From a18da2c75dd566a875d1c1971afc726d83ab3413 Mon Sep 17 00:00:00 2001 From: huangzhibo Date: Thu, 19 Jun 2025 14:40:46 +0800 Subject: [PATCH 1/3] Update plotly.js library to v3.0.1 using tools/update_plotlyjs.R --- DESCRIPTION | 2 +- R/sysdata.rda | Bin 165719 -> 196105 bytes inst/htmlwidgets/lib/plotlyjs/LICENSE | 4 +- inst/htmlwidgets/lib/plotlyjs/locales/cs.js | 2 +- .../htmlwidgets/lib/plotlyjs/locales/es-pe.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/es.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/fi.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/fr.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/hr.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/it.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/nl.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/no.js | 2 +- .../htmlwidgets/lib/plotlyjs/locales/pt-br.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/ro.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/si.js | 1 + inst/htmlwidgets/lib/plotlyjs/locales/sk.js | 2 +- inst/htmlwidgets/lib/plotlyjs/locales/tr.js | 2 +- .../htmlwidgets/lib/plotlyjs/locales/zh-tw.js | 2 +- .../lib/plotlyjs/plotly-latest.min.js | 3887 ++++++++++++++++- 19 files changed, 3865 insertions(+), 57 deletions(-) create mode 100644 inst/htmlwidgets/lib/plotlyjs/locales/si.js diff --git a/DESCRIPTION b/DESCRIPTION index 318fd9d49b..e1bc81f62f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -23,7 +23,7 @@ Description: Create interactive web graphics from 'ggplot2' graphs and/or a cust URL: https://plotly-r.com, https://github.com/plotly/plotly.R, https://plotly.com/r/ BugReports: https://github.com/plotly/plotly.R/issues Depends: - R (>= 3.2.0), + R (>= 3.5), ggplot2 (>= 3.0.0) Imports: tools, diff --git a/R/sysdata.rda b/R/sysdata.rda index 5be2b34f3d9663b7013c11a72dd2e01d45d68248..1c8a3d981f19b7d5787168bada5ec453adfd1f96 100644 GIT binary patch literal 196105 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 (#8}2AEJvazGA|{$w}+}*6Cha!Qy`lz*4D9 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∨kMqdUG-h5n9wlRSe8 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 z¥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 QHKO;);@^K`CQhIHKkKZENB{r; literal 165719 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 z zC1gXIwW=ZpW&}3kNBv_6HgS$X8t@q#g81 zT~b7uiW%7`a5bEs+%94;d+L%Vkmn>)#qB~NNOlh4!vo(*TsVhJR}2klHy*RwW7BA7 zIFBS(X!3_`_Ef1+ZZx=fBS?oj@L3`~JqtZ6dBTJpiM)&_1|j_h7perXD(f6%BxyCm z*WO$d2rO6|t>=0y323qngP6sT;;$Ug7;7so0Fe?@XiB0~=fLhwH%`5WC$_c-XS8SX z%dw7qN+{7>iGVbNovS)vDOH}mc}e>( zjwiV<1a-pr9g{@-uHMbA>8^tgA+^;6Ii@uy3>FJ>DR!{3#eq_=^4S{aeBK)-OKn1| zeT)ryQ1+`6nqyl{_A3Z?!-K{LIvsoKZps{Taa;*6zAH$+0-o)@2M82FeUI>7u>xOr z-OgJz&y&;wQUg*+1kc^gNkt@l#3veu21{or+(ZuB<=HQ-aAhN!K?D!r%o29|347-X z8SHeuIoPgJ2W2IXw-eGF_6+coa;F9C`(PR=zCAwLSPx?^Bkz6thPHR1FSqqJH4l9G z9E<7cFH*X_?!Q+jT539EV9ajBY4v<}Z3fn)G~x2`i8oZ34BjWJQM_%`)}I|4#~3J) zgO~*n2_ZU$+zV+8MTG>hPMZ)Cj&LrzH@Y;Ce4xky9%`jn?GjEJoO0vcQhpaxJ@vAy zIbRSqLybUs{nD zR3Lx^c}*h1pE7+>NIC@DOAvs;fG}E!dloQAT9)3dTk}1~Jn`8$$s3pv zx@a)MOpQ$T1h#s@43J~RWU-lwfL=lnN7LEwz);6$ZE_K0#dt}&uhg38IC$}OINejM zG8rcsh;?yCi56a`eY zustf71Zn{A3tu0UNU$^F0Lf73bOQujJ$?^loK@IU$7{p_n?=f z+MlQZqz%3U*a-c&{3JiL5a6G%G(*!1AA%*(3WT6A%iCk#8825pjyC{VtE*fYjl3g( z*1&^v0_#>7loqz0YkN3}tzCt4VOOwIfb&JmGbR{j9`t&XBlqmxm0^UCnE2v>;rp47Hmb0>rJ{{K_4Qt}w8pXXJiy^W#S zYN_l`m?_79Q}oZs(?DNa{qVYGK60w3y!IPsA~JMSTQf8BcWl!f;!V1-PD4F;EJ`b1 zr*QhC&^VYiTq&y)!R&hL(j*$eS#W3)mmBJM0%7OzyWe~8*EQG5b zjAc}!#Hlg;Jvj4myYuPi(EV=bQm0u(C63Elrl1RGo4+&I^<6WB+C-);iOSONd~-X6 zQ(trJ&JQ0B<=OjBei-zvx9*d6hW5juR0R|P>HWhMbeZ_}{fhDQspA@hqZBlQ)D4%y zlYzB?MbRD<9~p1WbbI+6?_Z;k7wYFMS~HAu_F%{^NCCxKD}?GNILG1_$OnQ`DwwQb zb7n7faW_8==;P2Oet`E;NP(CviSvHF6Xu6gkL|B=q)}B$dcQD0AqWsXpn5*zWql={ z(Q;t&H80Fw-)3tk)FqGzYi5`*3#GlnL;^=Kh_Fpyjo};^5E8VoED~Tg2~QTdX{2O) zfU{te23uWC4MgLLL@)*IQx$-D@bj2kZTXQwalvq}Gm)t{f*ycFbB^bg?s=P>`HR>q zoK2@8d&M~D8!hph0^(xKvsCyw?E$J#!T8w&juHgp10;lJMDNqLn>_E+x9y9_^6Jn} z6f~@WT9_YxRuKfGq7Rt_#!1|4XaN$|xKrzT(|uJLi{cIj{EeWK;Fxe^82CBJx4jaZ z$OSfjN1L$NY%&rO9k`f?qN8)Aqpxgf;U7l=zBH`RVo#lhd$!k2hqGct^k^ z$Rp_pz>Y#cr3mW~-aTUB>TFXq>m8xTW9fn6iU|Ncz_96yV&(laS*GS@ z)=KnZoi=)(TrMfy^ZXD8?%*G210WnADbb$!DCSau%_3faVyuNuovGSnz^_4Miz11^ z2hkl`-FV!`5Of)gQCI@T9xE2yV=H9MKqW3n_4ZI zq?ohEuLgt2Fvhpe6#SlFPko(xIqvtQ`rI7yV-Dzaba{RcPo*b=q=>E_eQb*Tp`dr| zzgxvr{S|~icJru{kYCpp0s!&-5>Tk%%F+UO08iNA)jYuIkXNW!sw9A+`*1<$5kT-8 zL_IMt=CRdkrf4#kh0kVehe@r_b$5UnX6R z`c62{-SF}3N70oBP^gHy8I#SP$*-Ly8yhKEKNWPb^v{JbTR3KN%!S7~sCC;f?WWE( zw)yAVZ3PxVpe=poLy7x2Mu+G6m8yeceuBQ;c(H0JHLOi9=hs#Ox$>96pNG%+= zzRn2(plMGA=E=GKiFR(oU ziLp>lC1A1AE9bGS7f`S}@G&8gO>Qa~^@T(ty-CA>cDMj>0^=-sER5?88DuWR%{dad zrpxBH>E@jI3eX2p)CZ2M0_w{5|ZNt}5r@}oa+ z#u4&M74=Y{_B-;;+?AING*e6T1XHMh<^^OW8NkYWx~aG>2p$O^QSIqr!)WZr=$5>Z)d6Gn@9NwEbR5@T`8=gd&_vz8FeUdXo zb&^++*oa^j!yOB0H69v!O$DLrPGIae=#>}1ilvzNz3%@F{G#oY<6k&=y%KA%Me_Iq zhPZK&Xe>2Di?RgvTOU|_9QdOa9OnEJ`5$j^jfp=(Sr(_#3W1N_W4T|$U6n0Q;H)+m zUgYqeg!@zNOeb(OI3Dr*1NjfULr`pe3(Uk5h-e8%>mQv23?2Ow_!201E8F@_N5Bxs zA(3z4{jq>&)0~K50Hgyb2S3f7Isx;g`~riiA!r4Lb3hIvlH7BHA6ycGc$w7DBNJiCvSfG!qw(Gc{Q87r#gRDf>`&#^8vE21qi%xa=hB$a@Hc zGAKb(Cr(dc;Y;rxFDLDLo&(7=Y1N^^!otF|dm01|dU|FeA`P&I_wqBKaL~gNDglTX zOvazm8^bd-9O3NU;p(V&c{;q^*=7hmTaSJs_sjeD?}EDPTES;T9XDNKFMU@&c|){! zb$Z?0p|b&ucay`fWZ5jr0x!%Sfnh$rkzQJ&styQnY^{3E5&F?2DFGqeIR`JMZ-PL) z9@#AYL2w6-4!lee5dp_9BUr4f<ykUX!mK*?k)4e zX2G>bF`=+5u>nBh=LaFyLlUFoNTqF4FoJp0;_^mw-P`7ytjIQF=77d?AGnw?) z*=3OL8h9Cx4EZySf+#2?Fb)KQkl-jBBt4GNt#sNt;q?#RI7p#^c;`;>z+Q3m1C&|C zTr16~`M-j$0&Jc7#$KSrNs@YX18~;rxDRyS2_A*arz(M_xOnD7AQC zVtdWuDY2N$E`+g94WdwuQ(EVBG}w=E%P}N)7K{po8AnMSY%L-ZAJnDq2p3;09RvW2 zt4BNuj3wlueVHv9J-P`qs5k-;b8j1B{RVdTqrt~0A3mpEIRV%)*|0s})0#V)kc4Y5 zcx90~bQhB*jLDv#*FE6wxMtu<(1W2zNCtomh7OIAY?I61J$18^9j2r_Jp#Q9R_9g_ zF#!aMI=l&wB#sb-vKXB>2CDxo1Mq-Y2Lv)~nkEJC4Xj(3%%>!M03M^|8MqL3AfJD8 z=z09f(gPw5A=?64&IjZIz%K#`>QEDtmhb@v@5LEJ=9KxCG}2CTPIH|Ur8Ab+(A!@q zy7!^$;Aw>tV&fnl=HLl>liEzj!mSEF^zcf7SzDGfJd-f6s`qqEKnrS-#{?A z8-pAK7_2zf*~rXfAkebwb*}rYvC2#sqb9=U#d`1!m$q$P0%|w-W{$rwjUy~zV*ncu zr_?oPxEk;)fkPSl{R8C`;G`Uhz!AlO=;#Apr#Th(4IbRNqk&QH$dfTP1d7K1nVtcsRf+No z^$XlCMe!FqrmG4}jWKLRsWK5^x;{Q09^UeMxO49B90VANh7W}E1jJXj2R$E%4(86= zOmQv2NJ))Vl8BRvQY#XyP{17uS?}pG2$Rh^Ly$sixojwv@7L`R{FwQpf%CmKNgrV& z-TQ8S-rLoFrt97@*{X7IXKEGG6A7`Jq zJ|MvP9-^8kgb560W@A$(W@cuX!!t3NnVFeo$D^)l+bQG`N(n^?VV0df(sg2FNSDEbIlSqq>(Be&^rBte+4Mn`w%&g0qW@XH|monyD&PaR6SN4BI zk6a$(QB%@-#7|m9Ir}l}FbRx&Rh;A&4G@fAP_y=oh zZ+S7A-cA0ijAEVc;yvIWu&hS8 z7mu&gk57-+^=|!fjAHJc-2EQD-aiJj_cZmY-BiC1F#kKWyh|=-Os{%IT7dC&TG0}r zfa4OHnprZz5~tO|!oxv!`Su@L0o}$BUZfMP1f$*E-P?6{i(B}MQ{xtjphNc(#=-dp zgxgJX4-p`by;D{A^Ak3H5tbNmF0SF?KM)XpAR(@%x@)b~-cBav5YsX%fqxLRE*B_c zIFd;-RqLwIs*@+I+JX0}>Kp;<_ELHMAAWT^i^lhRfP-QzLc9%Fy^d^pAOz(eNKZ#4apXyRukbX5b1 z%vg4HfQRuiAf2Ax*)#H;&_fuKhQ)&2$WWdfafvBT0{baX{2~8l4#pjIl6aL+laAL{ zcTzsusU(uw%U_T}hp_e?I&k-3?J=gI@^=V>etyHhPdD~V%*@NXxj(4$SLye^D?Hw| z`FCTnD^QBS3Jz!|hGhCafo|md^-@VDb{BCF#w79)3aK{EEZ*pt^}T9z(zCHsaaW(wP3l#TXuZPfE(O?JkX#D^X>x6= zuUwN+`x5R+B+kGZ0v*4b;Its00pMeUfT1mZJAw~5d5q}uRaG+;RARjs-Q8O0p?l)? zcNWEafe17&;V@(nc3b{D34NcO60K-UX?lZ?uDZTvW@cH4{D&TDE+W>58jC(37;z>s z-{jn!^l~xp`f2dKtDWn=6Eia`(IflnVp`?xNdj6WeqUly;7jTh+=WcRX1lX^^UhCY z*W$hqgdqlJ;UZ6(QjuqX9Xn4T2Os z{4Z&yBV7_8R==r6=viTQ`NDpKAQ}>}50Ev2kpMJEqyQxZm3RhfcptsrAPMy8iY_Aa{%An-L!*AO>a!IusI(_m57F zWl(f^#djgDBshNd7y%M=A>ptZz%1HufC5xcXJjZ?UJ?U6K52o6fGrW=a4Dt)Bjf$L zA1uorNe~at7FS>zBZGfxbiNRjE+QkPpyJc_;cp^$etza0+=dVL`m(-Pzg_IqSsa)l zLVSl1y))Is>6|WO?m8z#nEZDFUdlQ|A}2sB#Hl7vc<*e>qylNY38s#6_bKR57nb%*c^@W;WhNo@8!0+Vl!+M=#R!T=<#LktAd z351&D0i1?OJOMrdh+GXG+)M>4!t#X6m!$MH;inLU{s5V2FDd^wH>UwD52WP;+^;#T z(o4oqrBulTzGaGJk`eCuJfb^c^w!V@KUNR>D#iKFv}gd+rDy^ltXUl5)qj-uhhzIq zYX7_w!_U_KL&#R&*S?i#^r29`Zu|b+5OsimI70w1!b#{^fsuyOCKTX+KS?0K0B^P+ zU`ce@Bm&$X1azMyA`>JWc1a%72ok(x6VS&AF3FTG$H0)Vd0cf%gVWhAB!DGAV#=}b zg&8oASVcn}ya$q3nFk3^s!(L<5FCdsV@DL*$s3BZle7RsoWS5^1-6JqN7$s4=UEj; z?atZ*+6>NkhljxbmfF~$yiUYo1TT2I>%j<*>6zcHAP@a}CH}Tb>o2{b=wLz|!LHXN zy--1VaKY*yjz`N3p#mn${_W^M3LjN)@p)9z*Y`q#Q5q{~(_oS9#EWiko zLzy7~$10J+MN%H+=g9yBPP|fyVT7V4)ckIM3Ecf)$^c9sXz922f5VVJAE2N=Oo1K$ zv91H{;nSt(u_7Y%kT-|T{_?KspjB2E;Yu-I;v@9jpVtS>V`4Y-PJthXR7H}iaVDe4<>H?#)USFNQ zxA?vs=KAGr01He6#v^;;l7%WgxtnT@i}_zB$w!i(MU1DYMnx_%QQBVUprX3wYYVv# zHw#4-Py{-oj6n3*>ShWNEj)QGN|=kgJ7Lb) zHN0I<3nA)Y*dzUA?fc*UxY3^u?-`|dot(Cx#1g0UB;wY%Sq_2^M3D@;owgcJ4(*iaQSnFf9M0DU3F;_dTPy)`6PP#@_hElrMGwAIGZ|+f?P57EU-(= zNA3tLO2uEsfn)ykiv~u7&2wy%qF}W@r744`AS3<51!LYIC~_p0Z?8!Dl%FT=Pjvn` zlgD`RBHCds_1GsU@DqR;86!S13GHcUywJ-4f6*;agDwGXC2D}K%X0#}P%n};6jB>> zcB<<(+JjJPC~?Pp{?~UGKppcl-Tm^o^^ePwDiydRKvcnOeeusFiZLt4;NnFrn0;sW zv!0J0>ox!3-z)8^)4U!m)z@7$*ZlhHuCVE^$^LNtlKXTXBk2UNUI&mb#ftkp3%;f{ zkJ{c%l22uPx&;kO(5pp}7DD9g5#9q2KMnFk;KCyFc@L2?#V5_<0B?$9vtRQ+KNDjl z0FD~5s&ObZ|uLqKemMP`iIygZshdAA9xWa5F_a^?s`l4c<>mG)Sc_{ zQ1Q`7LW!wUNtUHbzY8W75&ium!VZOHIchv2oq+cj(FTJ7`X#4Bh>buzEZZcIgMcQ#FB8b<7s&q9wu7+#mV5?5in*Di)O-)~`2_lh^bXMgR*wqt05Ivq0OJS? zCMuyP%qH_VWHJQ(C%Sy2@{RBy2aD=>z$H400Ene{o`58E|4|%^ya3n^U*0~|&#^QB zia+=T>)7vA3l>8lNxK0}jUpkT2^Esa5!K@eAHYqd0i6KMUw{_>G+H}I|4B6A?`d=@ zfukYJC`v+8CHc4|%OFahY{01yMD8V<_caN7k|%1XNFZH5kmr=JDQFH~!yUL_`gQwx zW~ejRl)xPhNywJ6eIn8~slIjOu_ii4{>YH&|-V7kjj2$&{FvoCq9|WnQqHED$mD zA#PD7ugh&3Mgsz;zmz+UIGi6zFi?AJeWQcC&((DkisN@^|8zL?83oZbpr;~Q_Tthm zkFJN;Ig1r0R-6U^o`X3^1p~qvY(#EXjMQhMfn;El=wTm7dpRNJ(feeKsvugD$dxDu z5vrgam>@(^(@^(=y$mSp*C34*Tw{bnFYA5coyIcwbnS^qA*h$+`q?Nf&f#b2MUx;f z>6o|?kQ@yxj6nqvObin44iY2ScOe}_B(`Wio`vZ++s_S+qn&U80g&nhpoUHcP-oam zPjHrnlV@V*U>i#(zkHT2tW+a}WZ@h(3STfZCH?F4yr1{|+mO=&l!sWD_)GN%;y{9RIh3}RJJ(f0qlZ70E7 z{yZ6E+qCWV?3hIyGF64EhE|!V%Cg>`OW)DjSKeiNYP@ZkV)U{{Oi#My&vvOh+m!7d z`n`W>-n3}E1KUb+d@H37q<9|8y&jjgFBNH1GOegBVD`OquQDc#Rq0?j+HH-kJnZKc z?D{J2FIswj2Oi5y#+jzD#*Audf~=1g1Ma`+=b!Oe>s^m}hur_e8MXfi#6;yt)g0Jb z)eA?`?*t}8_wTDtXo%Ll?rA5mMVaqkMw5j4jk(!~9q9{H%D@(_N*f?jhWn$$VuAmx zL*zn%A6k9=Ee%EFNI^cf0>|pQy76)sUTdZ@^H+g8r0{Avr)tYo%#L!lRy#ufNOF_3 z8&ba%`wc&hl{Kc?!HSF1kW772)Ka6FIgKW#_7o5Ljz^>OJ4ZxL)(~&Q^yJl(_I;+h zNlXZ85BK+Sh%exX+7J(RMIQYEmJFZY>KOye>~@IJ&>uEU=|9-I{0GI*s##mRJ2xs- zm1LP#{a5Q)BhZDL`#K|CP{{Z<-mO};pITFNKg1ejFQ?K2PBW3rJ?a3!4gyHIWf8R2 zqbxQHuY>lyit&rHn*NI7!y&mv3K=L4h|xgMecl-dBjP_9O~L}rtKzC9ztO4@bO*#A zMU@lB=c;b2#+My9eL2Myn;!kK%ylxwm~TzpaO76B7Y?r&=X`@2=|LnPz$YF0FSqY-5d?KuiQWU?0G(>5Xf_W~qJ0pH-Rw^E zr4RkYJ*mih=Y;WT6S#x%qL_gA6RIk>_PhWi04QHbw1I3jiYX#5%z{>~9lj#K6Ail$ zw4I~A;W zTCEi=pvGHD+NpjU)P0}OpU=6|Su^X;`5h|e)UC7hla@#I6*Tikc`S4_-AuJ*sBYIT zb+lUmv<->H*~Uk-`qYjzh#)GZ;RdU0P)()gRD%m((dl z^#k$UfYb(vkL!b1(zzUrX=2+583OZVq(CWcX=7?9VGK_2!rJ6iNv66~Ob$z=23iY6 zt_;vtOq;NcU5v(<-fKxi&iEMK|!uBBvq>1?aK!4Q;jkyhh>sgj1H9)*eTqm>ElRFZ!C`W! z@v0B9)SxaAs+qlMlX&;dt}L$~Rrx6z*hp>>Hi!Im=w@oLaj~ zjXiT_qGeSqB^hB%2Jxw~ZO4R4K*?jj%$t!EAiU$G-jYWp>PQPK2ys?#$?EXuxbO4ah8VZIUe)z6#z z0!+y>46HM1{b=?|e$kiQ{83J-J25Dx+mUjhwx}Y$8Tv$hu#2&1Ec9Pe{b&nZ-%Hdcm5l(REdmd2=q7{ zJjNQrL-YefO){|B)-huyKU4AhmZ}UkkJDR{n@m44pS92LNnewYu;N5GHH*#0er^8< z{5nVGi|mB>1kZyNvc`#~Qz?H2p{nghhtH=jKQAl7yQuU$G96~WH;U<%p?@`(vrv1T zf;#Af@}Be7M-wDbi7G|Kip54I?09***cMoi&9TZJSF`(B@_k>4w@&2f^!Ug|S)0OO zYA_Uu^HgX{5cGzagZX+-uj|;KzL(Vw(bgpSKHimN(WzR&wXv;bZp@Zk)cf$A%f?jd zwR*L&9qh*#w8f(arJBa8)~=H&GRyW^c$QnkxJTE>pB;QMwU^zi`IxD-DPwI!i$fz> zBIJ<_{ffr0Q|f&lyLlKIfuFvH$6X2)g@po{x)XIcm<6{P0+P}o&ryN^CD>rGfvsbG zOufp}(o>y^*sV-gnSAp2pkE4YPUlq2diYbpOjpl$q7;jRP3v6@BItop5%$Cta44M+ z!^IucaqLQYJRq3nnijg4qJR@~5ZHxTvhccJJcQDXQ-F%XA&{^SL-)?OCmC^U!$MHI zKqOV9aVH%#{mTWe9qS4|qpp?He3EJ@dnjsHIlxJ#Ybi{0q0&L+3Ijlx?Pp4JY;1=I zO{6(C#`UD8>l#eJIk}iuO}83&ZnoRZ>uqfhG__SMj;kax6+*CPws7~M_hyET<*?c@ z8|$d*4T<-O0YloAN)TWWNS!A@cjEqnw^XuTi2dK*kRyY@>-K{YVpxDb8YyT?Pq|O2 zUbi$s6X3r(#3^$g7zt0y<2eVr)=wfGf*ym_C_n=Eq09?8QD~n(;=cBW(Y_%1!a7f# z59qWck6r?l75!eoL6E;#opvpRSpYmB3uKSX-5P37fnci#@BZf`edUCxMNq4Rg!~Rs zaHrU3>7UB{e^I_MMQC|x+t&^Fm6P9>xRM)GNj&K?h&PH@>STdC?Kzh7HN#D^Dq)D+ zVW;r8hVi3g%^$~yyZ3DOww>J&6;@c2>G?C`vk3Fuq8x0PshdiJ37ML!xMge?1WZ*b zSj97DFlQqur2XP8>iRl2uul&n#wqNrUNUo1y+3_8_P{<%ReVcAo=Pk~l7dB901)M? zp_3DEgprH68t+FT%!FgM8CVw13`}GIh^`O}!p4aqJ|$tC=pNbfPm)QiI;RRmk1DSq z$!lG!z@M2gguDsnonI=w6#dyDJxtg_mVCr90x@lZk}Qn3M@ninv5YK6BMSYG+MZr+ zCFtOg(xj3sC0FOhLaIHMC!5~z)OW70Ml1ZM)A_!CtB8pc_|%9{u_VW8^zz=*eNiYx ze#H?a9wA5v>O-tf(;x!i`UO!RTu>wde@^%SPT^t!Aisi+hwi}jL`v)q*o9W>+^>*v zUmgUko!?&Z{OK47TM5H?C#<5_%QX0ob7L&n6IhEQTCHty$<}LWmYIx|iv@yFDJ4Nf zwPJ}+ptuzFMHf$tCBQ(4g$Vrrzoq^!yGlYd zvPer9fh4$2F(CIumnd3!ka>m#bg+~pS|HGg6<@pcpR}RTLs7^YMU_=6Qangcq%u5y ze{;`h5&Q{x3h%1>4MLs557p^DbhP*}58j-hp};{t(VT@kL{|cENQ>M#Bm3xfp^qdf z3Wc7@scL3#vma!SraC&4(ZpEAU<)9|N1@({&E6k5^{cm_GHdsLDns?HQO%M31CPg| zK4Ij@dMis_bw_4R4#{;i(M*hL?3t9{&9u!{VN+Gx3Yw(O?Kd&cHw(;{Y-x8buBUUN z@@dt0=DD?fM|t6tmdY`hV;*_Q`t;Z*sF2!WK=opJVudmz{rY&QVo~0)(A9r0#(@Md z*itsIwG+gWk1Cmc3pS)>4XVW@sUo-r^|;Tp-Z)ldM}4_&)tfb`lEy3>PdIL(c81ey zZF7$9j`FzkS%I}6pv8$U6$?$2(mO_?iL5|7RT5$Y_k3o%LtmDa;N$BC!~on7b&@Lu zoP^=?B$)`BqB%(T7jr4W%NVv>?{M+11spvnr}4##3&5?C0?`OFV`ea$RcsBU7MiJS zufFbs?J~I4XvWD=t3ypTT5qzlk2U#fhu_ewaNuZa(h5b)of-q zIXdb#Ha0&6ZhAS@U3^44G^e5n2b4a7x_*-gM7i|m_>|>1mP2O2uO)0Z4f%taHmvsJ zCXu8tA|9GBNEr9hT1|*?L{Q!bkkqzsU@X|pe#e;ir8w-hjWvhWwzf!+XoN1ShBH9hd5dx(3^zDOci} zr1@G)+|c?mKIUH}`=u@?hXg54GwJZ~!?OW-l|b=ez6%cmJP4EWc4|#M$~P)-v(l0` zsS}bmMj{`A#5YtYx<5JbCb#$gXm1+=bc*|aBF;uT*?q^l!>=D9+Exx1s&j;pgp&XP z%HWIm2r4KBov*+h4*Pw-H1v6%Q1?6X{Z#{#Q&gMk)mPSO17y5RTQ0kM9#veH)vTDk zImu$&+;+R0VV%RAxM6IVvnix{a@?-{=PoweHa3eaRV|AIT8m1Cem{HD)_rs0p696I zp%0j$I=YWf)x}-m?I0cL2P5f974MN>IXaU+=zqA}n^MYAZZfdg4 z@#m%B<#^R6OluoVwFWlyW1CHD*%g)J)6w7;tf1>hd>$_<>bE7_xHktp#3Gifm{F)l z0EE+846z_77iy~@Ybj#lHMVH@woOll^I~5B?i){joSIb8gn4djZ+^ZF=;tHRS(R*7 zV#T#S3rB8uE{b*5&7PR%ttmAY=*&u?iLnMjE=dI-z*|w3X%{eXnoNsJZAiO0MsC>3 zN|MNRdAm}k#dRW(~ z$>i8$Z8J@tXy$giORs|K*512JzBpdYjjv2Oq=~x3ug+I$Nwjj0Pk|2AGnGB zig`LG^)n)Sdq0WvrF{A<3K1Cv&3KQYDzQn-?yx!#@a{~dS(`g-GM9-dGoRyjdd#|} z=K&Bs`Y+H}H2D@!Cgjod9l6o@N^EY`a;km^;;gb4qfqxXC+C%K=+{X)$LL;D8@~-| zJ>I{x@GjvMB}pyt1|kU}t*c;!Ndg1w{y%Ej_aCfkcsFj6tL5tZzdq$7$@nYy_>8$? z7^#=n?z*1IS}#@=jw;;c?1r0FwWX^YX*O)uGMQzA^btDhovyjn(Sw_z`845E8MDS& zm!?atD{2|3SC+dj%xj&-&9$|bPC9+g@nwZ7qzC|Kkg4S#%g-9S2FVJiu8ww?s1=wj ziiXImv;>M02O0%B^MS=>E=w67QDSsNohHzsQL-C;flE;^@ls@E5)uGO^u!8hdFb`( zHj6SghMF*VxpA^>v}!GtnjOsNF*|i4eyTn$&r+04I-k$_)_{75b&C)(4?09UBC6Mo zdp&)8u!A7Sb)fzS5=I~bq1FgNp+SUXmrt)G>| zcC%hn5@3G?%SMTQWWzAN-aRMWzoS0kC(dEJOgSlZPmkC6z20-b=KK!vom=6Wf)@6X z4~Ihn9+H~EZl~)i2~lo|B~kHoeUSI)8{0^L`lz_-m=N6N0A#VVnn4eoeRf!oZjc** zcCZbCBH|)78qJM?L{NQcLqs(DX;1^z+VuV!KHKXheM{g^eJe8A_O2LkY8j}!N1D>{<@FGcaa{x3GBVSTD~o5t&3}8Ow&d) zo|~h_n^wOjl)FZ08yjrdR+=)}##>!I-Fy#DH8c7C;~PhpYc!_JWwKGURN4(P4OBamme7%bNWAnbU0v?1g#Zd*il4)=w&wS%pbX(v1rufk z!jgkip^O|v<6x?(<)q8I1IQdYF|0Y2ViAx-rD4#~2Dfq)!h(mAs7MrH(LnE}CU!L86eTR^J7P2i=4+-= zAdNPq(4GcB-3Q^4kTKz~+BaD=D?3S09WYp}F1bld#&W&2z&Z?oN19IU+TUwwyi;q7 zB8Pk^d0>mkp>`6ACB(g1puwXh0!Y+gsW|Xs8KU9RkPFN!PoDq|3yoVLfOm2%bQ+-s z#vzet=$O!4nl>dD9=Cv6HL7iqEMmcyl(lz5!e(tU1}Otw_&7L^rR9lV2f*Ftm4Z?(T=aD$Q1ph)q6BEs{bcIb>&~%3qPfq|U zB&r14HXX>Y3cPcHG23Tlc{ksbjjDLC^DKkal^VShxDw%tH{3MAdZ#!BVvfotz)q$> z-N7)MJRyWQq-4uD5v1CXG>Cw4fV)LLSj#N8(_nn&X11ou7#P^dRzN;kV}pvSAjmRD ztRX5q6irB;A}UVzEJGCO-y+{Tx0kqbMX*c21lj|{_#*!l$k2cw(a{Nc77Zekhherw zG-k;}PBs>e7lTmiOo*kz9ST6G!bHkaQZ0}nL71zZdS1jv!=G#m3+86PffJcK8ya^e zB9}RIceiw0g3=Og3lasvIU+0S-yE1 zq03RxQ!d#8(gIqiEvN7vp_a5%b@I0g+oBM2M; zh6l7^?3w4wsyXpFNrGjOWLYDyt>mu$J;}G5e2d#pHiLPIIqkQl?<1Qwv@nK6i#)70 z>K&coa3Q8cqyt@PHh`v1#%%tDwUBFgcaokFM+_9M`+Mt4nx!lc^3y<*@P?t z4TOhd0$ukaa5pf)iQk^-z(xdj<C>}d zGaV~qB4N;>?1W)l_Jc#ohCw-W%!7wDdIS~(B1S5m3__~&NR9eI!ZZR^$XA){3x-Bw2HVwKq10{-D)UIHNeBtn0l8*Nn zjjgC~OT{t90lktsLyX$25$Qr>vz?CTI(9owpakMPMd+rhV+UFuBUZ30Y96zgb(R}~ zM<7KABoc{8gtm=iDG$tIHJLI@@F8CS4wBpubPx$r3I=nsWf+p(CUTk3?s~B(VOlPX zoZ_+S!ZK<$8V4xsz+o4^4bbbI)pNH2#3y}=$V?G8dc zxy?)X9Jxp|GDUG7U@iQxunq}4S0a2Td8>;> z@%V0y?UC1o6>&+su~_Z4K^&$-6LoLLPP~hrq7NvW@Tw-U2?br?CBZN`x2t@cnE_LP z;L&i<#me5`&?Yy~wNyGoNTV{**dco$T64;!q>92Nw6wTOO`#&nqResA! z%6F;GhrQ|I@$u7XwAyB~Mc7pUQW%0NYZWhQN=UlFGzbZB7fzIEp-7N)T2leVOd#lx z9<050sbX-B0#s1fs+T=fv_Sznq6^nJkOhP>h;UWN^QVardBsxzMU%sU-xkWz&_ zJ#hnpLrKD75sNDEkbP5MWim&yzAu(GjTxs|#X1f^68aQn=SphmHNaRYSI2!&D(DH) zG))lZ4seQg!V8$^j0p;8)?|M^A*7U`Hbe z*f)WI*b}#KPKN-ZNf6HI!6AcMo2HejZ(YXP0QQ7}px}2;EU6n9C$M$=n>`Qd5BfZ!1l-=JTcdp?P#~(yn&E z?+K{DGc>)HjW7f?HY5x}Op=qctOzjr=0XU10$Yfct>`90^5M^qD*w)ETq!8&k0J|i{tYk1| zKuac~8IiJ5ASw(3PX@S>W^x>E92(|FSAKSs=VxY7oFTk!g$8KB1lh>+6+2K;C#YC( zXh}17y_7Uk`d>$I>`qg+#r-A;@ju4X>r>0OA0Q0Y5mz z=f|>nP_WuGA;hKg_%Da@s)Nqki|nnbI45;VNDF*X7*Y+^7)c8ot6&$36xL5(jjlP` z;Og7&`CNEt&S?sCeay})5EVGr zO#q<`F0@cw9^BHn>dI#cnctTIS_NkKK{k)0=gBD@CPzRBZ#EJ+n{~a4jeg&pxByJ>-#HFZ3|%iVBIKf* zoInz7NNBEkEClO0hH^Z%-oQ5nis7XsjYK+|?T27>aP6BLb(--dit(%#;s)W7(mEvp zfc4R+$v~Bk65`Ii1f2u;ay&5c9@4-u&*=k5<97h93KCTrsUyJA+1gAxd z0~$#&p^sgW3_?WdPV94VKex9+~5Kd4nc?~0`5d30e9YxwwSKfXfhs2 zZ|ueD3R*iXUtNa2)Pl(XC?NA0)g}?6*u4698ze*OLU)j7uZ@W(^9qt2FWs+U zd<69?+ZMG&wIKE!I8_kffkUJ0)YT+rr>of$VxaZ?z1@-{*q()v=(01n ztdr(DovL^Hc6^PHc2haRHkKsS3Op{YVw3<<0d^Fyhs^#b@;{yMRPZ8$=jiOW-UpbX z9=HnfSI6=}eql{e#^QS;>IvK9nNe2moP7w<+E0peNatu~O2+ zs1qh@n zWwm=y{_ixb#F>qXn;NuyC6Y(Z&y4)CUp~{cGfVbgxsmD|^C1>O8A0w%vsK1y8%dm9 zl@oZ_GU0ZzVAC|#7F#|VJ^h{QYX%!kY#B_g0%=KUV@80upc3Y#R#8f&QltErfQ`+! z55>Fq?cz_0c7*XY-Q^jcarcBGeBdn4Z`yeFD5n#OAwVirOc;xyvd^E!Pd@Q~IKyhR zX2Zp*sYLncGAFJk?LKWuJJqomS?x}wLh-;|P|-?v6d3K6R;ufe1EI0-4b?W-VMe=w zO_1#&Ng{5p74?`v8!&PDM2ZWb?Mdbw90#8mHhLEY5w7#Y;9qP?eiT50WUWlYve3hn zih~QSLnCJxl7|>Vo1(EWa+AoIkvbmRD>-3g?THHogAz-wA>7ZtEs{xOZktGl zA*1AWk@Zt|9%-)WRayJ==$;*ds94E4)|B(b4Wk+gnM^6tX(P%*@yJOXH9a8zKP*vw zj#!7BmTEg29nwd-EwLIWkPk$gw^=vPPsD|QT3Nq*kU-{(u*J*#uZo2&e2un{-?guQ zoA`V33G7so)Rjn;WLs%u*0gMGO@*?|%}Y}<%+@n#vr}qX+Z$8e@O4wkQ7WRWkH#H7 z9UY~q)*X8)9SGA8j3D-m##PESr{GfO(Tae!37`%V`2ZtQQ;EmqMsm}D20;j+Haatc zol{Gx4Cd{-MJiIJ?&_;%HY<552IVjeE^0N!g(@o;DH}+cWCJ0gwR(S{*UVa0J^ycNPh{0B-D*t1@G=SrXR`h;{AVCk#279PTBc zX@sFV&}>F%DX>+u@Rl^7sSYe*5y(dVqgpv_yY~&Gj=LuBZB0_*mlFB5*fhkHeMhNJ zPlL$zLY|`mpN$CDzf1_?Zch4%K4g#0_ur#VJa@y-kAg#m4tz%esLE3mW|LnK4B1BA z(WLqQDKo04J?jS<>N+V6wcvMhVcHH=Ol`_$u!kIQ%GPNktU&CFKw`q?omBZRygm;U z(@H;?s(S}(%0}`ee2ZI|4w>cH)rXKa00;*^M**Sw{nou`MIL48=~c`?1eQ*~E=NI6 zA$UE^;xY29XT3@{o=ZV3&Jo(kXPy~RHcu%mU}M4$9t!Ysg8&F}GGx#OLryVLB900I zO$(tNPf~Mz!hJi%q;r%>jb9z2@+IJhIF#p2(+Op(zDJ5|A%VSg5{v{AEwHmD>76V& z#xP)U1qLUyOa+)57!`mv2r$e+;sCxnZZwP|mB?}(DmmHp_o73h;3L;)R>C&iqhJV> z4{pg!2*EEoWHzA7WqH7TTiLT9XxK}V9(pBlMQ9Y_QuTCkX=#H+g++7#iX}-XIXQG^ zn=~s$5GfFA(|g8j5Oa`%1_vDH%8?M2p^?Qsq{Ad(k?AAX7CA)Wd99Q!j4DiHO$ci) zAOjXas>h)PA;j(xBg)uO01e|i-eeNXoR}y(L4+~J1>nt}Rc1i622$B1lF*!xuA!`a zJ+UUNb;xjoFp&CZH6n5uaKJGqx$;-jCIG}h!Igb**>>d}Zru)uc3RH5d1DfH)7zW~ zW&lPE;zg5sG?mG$k*5&MN$9X?uow`-l8aJgC^jC>Fe=o^lCng?yQFk!@C@8vIZ|P{ zfu~}WoI_;52b?_6pLY7uY#zcVXlzzyVhqwuX&3ihC#<=B_e0H1n;$=%*=tsqLJ(vbBwodMP}utca%0)V z4OF@hhlO8(8yTuITF_01(!fVR*%cmYcqiNrpgrIdg77((y+iCr(M+iM?!``IjAa#? zQreJhL)^&@)g|f2i3qr2I7oRSuYeuJ{*F5+dZMA&LC7SR0CkQ7g?K^OhDbX>!LLHt zTqIhMa4laLr`I}z=*9JaFel1()-jXWDJ%giG3)?LDtSR{o?hMsCtV6_4^@pR%}NF+ ziSk7sXNRD*1MPg@gNgWeIw~X4C(cTy1NFkBPgC`JrDnbIU23Jqs?!Y88wYAfpvu*L z!Ta%yeKP&`q3tW~<;cteM4Rw|$C-%FQ>v#$>mHb%H+0)IxOyXwx13PYtE z`a%oCp{I_)DG{8oTSMVcBB^l)&|f*gu`0a(QI%JBaX%h{xyICke_X z(?Fs_bbR^xyF*W*$WP_yr-HEr@)96Dh_6q-(Sd)B>7=Uk4~fz1^JpjYzmQ)k_BOJs zXOE24_cwLS7$JImM1cKp(f3!d6D+@4pt1U7N)EwHb< zJEp%?Ud`}LmVX!awf%sWbpgl+LI9Xmd8^t*7;83a{S)LK`dd|6YMR#3YevIu`bRA^ zT*YGy#x<>NwXGXAlzZxShr)vRrXnI&#?qgd@cw;Qbxa=T52kZ)2LVvv0jqst!>Ii` zBk8=GC4yqr2U1E9&WC!DT?EEY9EAxHO8OLqEum!+MnjR5R@v5D#YZ}aJg(JDB!Wn(6 zQ1bR0q6Y#f0C3L4WcZiZv|d(&+hF@*>H3egmC}dHVD}nK)oD_F&+7M&%>?SPRaPID z53->d>r9J8A7*?hvB91GEWEx`eyz~iKZ;Uzo%?#}T9!l5s}c&_s%S+W;4(Bml~wn4 z{*K?D?JM_)tPBunZXs|1rS$UV##xGapgWx-%3)KQR>sAchN#+FX2i4GIMyo}nbn@2 zBaFwLcBaPM?i*GKn7lmj?>u>SnAIj&*_&9Fnwa$7c)2&D95XewwsqakqpZC&?F~&@ znyHYvmuh1-hdJijw7X^>*O2&PR>l;&X%jf&Oqj7uux*A)T0$|5eiAz^A*9j`Ks1hy z0ibP%SNqKHbSk8$!%3kv{PcUQL<#omMbwfB-=AIrL{)UnOjtusMe%5 zp=K&f(ygi*)eT{6D`?p^6dNTil5C4KEsCQWCXGa7m+J`hF(!iAAQp;VwCf!TShLlx=DskzD{PDK(5$bq;K6I4`i?7r{6@_r8b?*47v z-@A&6bCeH7<|-#_MMDS&H3!iEUB}cs#tozP%7fS0+@HySL5}%PK@{)iDUM}N!+izK zOfr*bGQK%e?Gq5wMGP9Lvs%k5V9O?LY#?=g83Z+W3a!wg z<~=C~1IacuRV`8jYQ11Y5R#QK(s&9D?pTx{OBV?7As4ARBrvnPD%cJ_9!Pu|Df>sL zH3v}D4?@7Sm?8X9-&YoZ^|}u`LvZmog9Fh@jRaVPL?nWCs-L|5*WEpziOcsHwQV-m zn*#jc;A~BNv6wW7r*tU(vLGfP0O%k`6HYgV2d)d*1i-lgcG)0zI3SWZ(oOT9v}yH| z`viQ^;rdlyy+Hhf+G}<=zdo;4ewmCR)SJ?5-0}cI!D; z!^2vm)c9_-RoZ4!x+LAdrNdvi499K(y$jBq20>{F@bKR zpkS;nS$9$)v67F ztgV%qCd%3tXnixQl#FRpYNN<72WY9XEXu86Xi-ROh*P93|hBU z@9|#mbxZ-qGelN`x@zEpG5}zs($Obys14{Px>KPfRsvY{JQtCJBTc?iUc9kNb~cbj zazXca76}pXinS2~yS$-7L=)|J9&EO3t}Hai}D&#&_$qiu^I(Y?^r0DVMtF!_`~y;#Lmm9q*Zl`AO$7^@l~o~G>eaYDRu!F zDyKbL3{{53W)*}M#?6}2d%*S;%OJX5fad8gl{LWCL@*}7LYie%SKdhA(_-hnpI4sE z&4wg~7YH=mopf?Qp1`ycv4$mBx+#QO5$i$k4A69gVmUI6H3R|?mgN(qnIoD69)ye& zO_XGDIO7Yr<&m!xKuE^Ja^*;yFSnjgNT}n_z8Y7GR~zZkW=C}2OdPZVnG|noc#~*t zxGtjg;B2*WEFc7PIE+!_rWYAAeP!cXa%>4+836zVku>d#0a#n|$qa$G;qpgAd5-*| zZdtjdD-`5VuXjKfzygDD{Lc`zYSb^I2G34Wl0lrR#Y|@T1h|qz971DYo4h7M)-A~` z^aIZ?r)XE`C-97)sxPp#8Je#u9#MVMPdU(`ap2*ure8rM9-zHl(&yHdNXwF_2>!k!`Tanyh5jvQK?c*|jO! zn@N5mz^+ClLVQa_($)k9PbCXJo1n44q=JHgdk2TOPPhXORq_g)Mc{kdbCnTzC4H%r z62(CMX)m;cw&f=MQeO|Ysa>@)%j8!$)npA+)nwx=POBGnEa6?!x;u$FNNgDzb0=F| z>aJ63HCo2fW{Pu{N;KJbaL(&G$iVG&TH(~%7RF{{6^>S2Y+R;wDUOXBNwuypmj<1# zY#Us;u5xLP>C%kpaOJy|)n=++sH-Y+YE3rr(a3hpX9~?jM=b7@X*gQ0V!NkQ*GFl@ zeXsISV@SDw-jr-b42WRRQr z5-dklm4!tf2ZXyE3qt`6t%_hz=Dc!A2?+=mao!V^hOqc*7RxIZ8AiTYHDE{#J zM1p)>52k-LJ3Tb@`drNm2^?lHVv7SYr4)t5Taa35K;8>w7B&sn9?v~v#gu#)QF}Ef zn`BkJ%Dg;WlPxOqB7EjoqZyTHXoH;m6|ts6WoO5_+2u;> zZcB(Q(TlZ~M5021RH74e%QXi-B?#+*^Y9h|vm+IjyFKWGu%RG|ad4}a{whd$8h z`TWpM(1NSy!i5u9V2WYDgurfsB zfEY-^kSH}U>9#bqy1F7cZ6yH}*aFiunafO-SBf%GS*j2^lsMSl!I8@EIBXmjw9{@| zEndxKoYA^UYPX66A&>+ZB*+7l)L@7T6}ZkU)08y>nRToaLV#ON$it1G%OuV)!Ussm zAVX^6vV>6@L2OP$T{}~p+HcQDrghVzaFRy~)H4vKLx2HS8IyD!OCZJBFEj#ZNHct< zcPcjooH!N~W)fmIva6v0W};K3u#&8D!-EA%OC=oAV~vwx3`N=oH3|meRn-$%=Q$LR z1j&LyQoy!4*7of-gmT1SAlXn7Xfb^-_b4AqV`_oDklcOP z-}irS>^S4?jiaPk+7F-|?|I;)7uWbcq=+0+{Lv3JbRG&YVxtlR6X{GZq&X)cKAZux z`156+ym7*PzqsLIW*HkG7;+gyRzh&~NG~|_F(7k4hG_Bfsrrw4&4^rP(2 z(w+qM`wy<3PichNgA2@^HgNnIk|QJbEDK3Eetr`Qd*T=`9Yhi85TcOn08g*=ut==g z6!DSmw1lU>G8o8q`JaTJdf2}+Xw*E_p@Irr1d&I=Tmh)uQ{u}2rG3@%W_td)B$AB~ z7>fJUT1Q0#=YM7QxEFj2%%JK>?ipHuB!cxpArz2&iVxKb1a*q)n+(j67aOG-|^xdBZn3xjbm~fn7|HU~l~nO8H;n{sa@(Vc!IM{SWhgo`f zes#<|s`pHy@Fo)bFit`TV`3X_=EXtkQ;V5s|3UkypGXedQTitqU|Ucoe)U;94xi2?Za45ONaXq^y8Y$0a3< z%9+j9NUGVNcTuuvu4JbTRSemkcH*X!1c*YG1+Y05w1eHIBEryGv@s8-OnKeT`x}w* z}&bG5_W@%Ss`SHnn$TM$VMjT(;p=O{m}+R{P-wNJbpSLe`yhstD_&w`AR|0hDEwD zgV9o28xp|qt-wg4odO>wEy4#lE7PC?QM!O7r{pblhrpZ$Dbz$o(Id?S^v*{Bb0)QA znz1j#@46BAYNzL!>c2|AI`sfHxlUwJ{n(Pxe$>Kr^1_MQ548nF?0(fr+Z88ppcIi6 zkQ2IA(#)NX&}C{}Gp69ql0^n6R0IR_ey#f#^(_h1#22b4YIsCc=fL%3{VVKR5cq`P z*MF?wE7-liN>8VBWopH3`rPN3+MH_hPb}Ejk&$8=onmYYltoX+p-7fNQm|XPfuS7&`$B&pLwtbQ;$&-L=RGBG*$K=eW&R5f>8E?bO`5CBLYX->RBR0 zwsnuKa=QRLX>=6l?xkfXimE4227{tPQ;OT64>k{?oF zrUi}$B7Ly-`oW<@(DFGIfDMHb4zJ7$?>sVN;;z#ay+KE}Y!CxYeZiTZw{v5#P=q4^ zJioyBe+1ij4>dO!0P&!f791|<^b5p3C_aFSuJBd#vf|U}nt=}IB7ivb3CKWq!H%6H z!f^otboOG>#Hh6Rw)*#o-4HbipvqHIJdPz`Yu;Hwf>L% zZ4HA^`cD-~P#Z-es(d9pIPnI3@%}8$QrvS8fd?uevy&7=e8qB zJv4M}vj>hGF`1c|S(%jF-C(smCS}!B?6U(u>NM1~TUI8;$O5E!JAqGrTC`c|WYGa9dsh2%PCSEzT zGRc8qiejkB%N-mOs>3%;<|ftPcel-!URCO^A+R^AtfYwEuqqX?b7bv|-l?`>lJ<8` zHpV+JXD!E>T~oGmoXz8hL&|xc9vJ60M{TLq=T4pP%J5gCu2|Y+_2Zn^H51KZ?sj9G zj~mZBfi$k`&Us!loJ?|8P;z{cTdWft|ST$BqT z0tqpTts=YES9?70X)_JxE^L|;dv7+*vkc()w61$B)2OrH-14jwy}Vq}vX62#gGL)Q zfYU1}k}ZfZe91NWFMG^xbLPiZeHiZ)zpi#(rXeTojOas;Fdi{#+q4X#-^$4L#GLTrHVE{Ax18RE{2A?%6L6CU+-f7H@ zs=2yFDE_qMcSsTxRo*XQuJ2^Qr1aE3nN!F&mnusg~6|jOL!*SGEu7>FGIScJ`hu zo0FDzcdg>edh>|AntN=+ZHBa`lbKx?PiI~&cU?8E&9v3WWoYq*B6`9Vlx;>i+ zTM_Xq$=1r63Afw%=D<7KG}T&+w#COgJ+CTtU6o5)Kb>xRq-!VU{(Z~ zT*Wg+Y?f8GOQmSC!)A?*q-^9TEEB__;fvKwI(p?#S2&HmdgW`x?@iA+JUOR%Ml?n% zWf&mTTa1O0f(^?dg<|pJshQp@FzwxrwC3Fo49p#6UNh5I(R!Cs_GCLnWe?IOqsprC zr&V71Jf+jD;W(aOI%*srfIg*Md+XkEQttqeEenYtn4}?p8EOp{lJlIsR?}t;=qGl} zR<=$Fj@q>|S9Kj3m6|LXG%{*zp2f~z6Yz$85USKE^*tvjX;nUsqWDIyh3gh!@u1Ij z?4rL*NwtmS^w;;${h}Vfq5DqW?1WWAERlJCN3h)E^Y1x|FUrm+FqdO3=BPiCSTZmZ zJD!UXG#G#;sS*&juGMdY7j37nPCc`YUdv3InM2iN-ng*ZB!4wyhO*Qubt*B-IY;x; zq(BH0BwT+nIPyWlB4lOk2vt5C)>eB%sOV;8rDbM59~LXV5ytzYNgSf4ly+EbvUB&a zk8N1TtRDo(u&qq2+u^>?w^8-SbKcICyJW;?)6}c_tq~3cM3F!-Gqo#mIU5k6nMAOl91L2MsoV+J2V;F%6LoyReO6R6Z?KpL1yBD9A& zI5rF<7up{j3pDZONhT7&75;PTbp1>F@Ig$V>eCVt+%jO+4G$Pd5ST}bm>DAKqrDwZ zEUF742?G%rXd;c!?@9aukEduquCw`ckEZ?vPpzpC67_8nY`RG3k0adlc`OR6DCNcu zsheqITV6L;9r*n1;*1&U6OS`&rQ=m{$$8#cOZ2>(ax71R6U|JCqLcMJ{~IR8bESNTYE;Mb;}&VFcqBg;HD%NUq9A z0gS?=AXfG%zX(}U3sAP_uYU9X0nD*vxIyIXOlOT;CBNo zV>>>{!n$(k#?Xv>$b^B3Pa%#^=f`AX3SdgWusdhk{w9n(YO&{RT&v^WT<- z;#NtSvKVPLJ}nMMv3q%WOtmlF>2|CuRevj99&)yZX=#~?d5flvt>#YdyIGc_%sH55 z-nUnI$)}9pSd1c~b}5t$L!lcsS;sRbnRVM|CmXb)#UWJ_iH(fJ*OiH+_f{=ZW`kZT z=SXnhbcX9Pe^~n3NN^i4TbUqaY@z^Y7Owl`T;fqf7Ko21()^mEqfHws%#v{&zg2q_ zl@68&-)C8nMx^T7OAX8`GV;NZW;cy$l~ly3F?(uHBx`DFYGm_=Rz_`^rEN&XL%vSB z$zfeLHQ=%~kZLk8@a5@h%4n9r8Wtz*Yj1fwbVIsj1 z$@kwWk?ZgNET4wE$@$~!=y4f>*77|phqtP)Pv;pOFTALHV^7NYSBG|;sXpcl2*pUU zkPGY*h>{6o?+>srKIRY5JCCj+c{V|*);?s1_ge$j9xA@`kDjItsWk|GG}8L2r)QRv z%%yi5;^e_`Sru350L(;AqJx~Rje7e=gtnk&4wog?lNXiNkN`f%*oI<1BOJ!{msHYv z)jUVRmfI+)A_*X?Vth`)*du^XVCxsYfkpbFwlzjHkE)|Kix$PTRzp#bw@&QdH97Y? zqheXHp)+JQUMui-oV@V7qgzJB^?~y7zk262Cen9p%Eq>AkB+9A%CV$omS}y1{*|ct zF?xPHV{0d6>6JSUKHq9p1nwxRDogov;f3Nk3Y74S4rN8hK} zHn2YD?i~#^F6S1V+gWyVh}CTCmtP|EE8aBZ)n{_*wUoWDyjEqX@C`6;9aGa81f1dH z>4YcKQK#w%ueK*)LL7&@KF5w}po+){b&i6)Mir(D4x)+)+cGyP*LqDp6evFX4z3iR zA@mGjDsgf6Bgg;@ChG8U5-8VD0#b?jk7usKofcQ_?zwk&4{}(p z4qjjZ;-dPO-c(*?1U9Jc5Qj3Yr7rGQYIU~Rw{x3J*|cLanTocmtk>c|`6~Tspjm1b z6%|T^e9m^>$;z^gNHhSS*Lrd&{~;&{%VTXOepdW!YIG|{t@??P+jA0JZdriW?PmCW! zO6m^kmLcU74Nk#Lz1n-bENps|ua=yl@TAMZePWT_$7>wZ`0C7=L55T6Hr=|N#=q*DMf$5e11-2fDs^_ zaRcZg{J+EL@*IX#6V^a!Ej*D<|Hx+(300A^IB(*^f6uiWL~R6-XaS%@0I?`b6e*9M z8l`IpjJ*$5kGG{Gj_i1!Al3j>orHxb6#*Wgg!$BufP4cIbr5>X6-7!iu?VkC3e^i!!KC zDj&Wd7(n{NpRRvhpq`tPmFDiYN&1!1u6c7>pjo&iIWaLFaIeWb1J zTWt4LtV*?5tHm`WvWJIrmev|W8Iv^DW;RyZ+O0-Y8Ev&QHq&9XjI%RV(lMJ88XHX5 z8H!h7S)qP6hX?eYyu;3OoYSoD4a+OQ+-+#?nPAOpF01luH?g!uw6to&D4Cn2*ldoB zt(!Kku-(ShGd2<3+g8=o$;`iNbZ<@GhPrBDR>j&53>u`$s5V zwKldU)~T~oX)&uU40jI~oUyj>j?1gdUH+;F4P%=opfGj zD?qZLB1$6`5NS8;G!*B0zsS(;l%jJ*oduQc_G zu~@|>SeC06gw3rcG-;VxHEmUzn?~BO)lD+jM!St235!;#8MWb9^UUeHjK-#A&rRca zJ8HIVtTZ&#cpQ1+MhvDlT5L8;HJTV@ zwX`;(!M%BT3uDW>X^7nQx#upl*3sI#Y*|yC+gCa%xy7p2r-bv)HYVkk$6hxY%~sxY zySSHO*~-ncDaUJ#YPWDMF?DLK8Z^w5Ly!4~c-0$8myF36cCOAQB+P=`yFk&pwpf<6z zxU0|B=aHrL`YttT+FZsqSu8@B$Q1)HK(Tp)9greGNb}8=e;#2ilBSrc$$I`IGH6>Q zg)A&JUZe2#{!h~UyPuN!5ADhi;`;d{h`o<7Ubm9=ee&xwF$=WJZ{UpRY z!|H;EYNO-(Ws5{Z)_S{NERsmT2&l6PV_6A<=)NiE!#q02FU3u(9?$7QeKeBqxmIF+ zN|ay6#OjoLzgiUE9Mi|=;ZvD-(;G>to+Qd&1;(W^x2*B$oL7^gt1a@kQ zM<8_uCk5gJFpJ-@CIEmM1?ck}g-lsR zC?Uw<1*sa6%CWEl$__;ZUsf+Mly5?1=VJh1{3Z<-HmCF(9y_AKA;97^0RF}WV4U7X z_5||3I!>gX(rVwSy|S;@!MZ=8p3;}wqwUp!KPd3A9Q@L3iOi6B1bAmOxMvFuVdr@n zwvHX;6Mkwwt@=g|M-casO8EXOa5LnPEK-cXi4G6Nz!QMT3h#*?7;5B=MMcy#gl`(l z88(@0x29gOUQF+$(wOoA?1_XihR0RlK;xpdU2Xv+0rC(C-80UT zY0Jf1kPaDOl1h;aJl2gxJ%P^fZoe>-BB#0*3H4Y;yq`El2z`Ur;DQljGeZg}QDF)2 zlqUULemk4%;0VHcL`Rr>Fqsh}?$jxfHYpFl^VFS6bgv(VbXiuqQf#Sglxxh`<5RM8 z72R|-%o?oanddoW;_A7zhi;gww0dWa4;;X(zb zOS_49b|1i>0cAb?4Yq7mDv?Smn{60q#xa<)Iq6=@4r29sGZjiyrBbQ-+xKf?o6{u} zrBbMed!0OgQF0U~{ANKtgn!lZEx&@ClJ3AjU< zoFnAi{iL|bm(vK_Mhqx?sWstLQAtXti8BbyTO~1ti!4&Di&<_%2|PRX?saz89Wz}v z^1Mm+xi)Myj!b10S|t*%xQr4Js1p2#CP@qkGYBM0CWc67)_WyIt^$(6(v&cPm8|Ll z<$^ORo4`gmKH{Sz7&>;X!N_Ni0}#Sk3(tp5O8Xpg+o%wn6@V>77h`BU9g=K0oE=V+ zo4&5wL0b;Z*>R5v&dox@co9&8SOO>{)YZL}WNVC=0JL&sao8z@nvIDz(rQDFSZOCA za-cf3nWnX^Io{-@HuJ}vX)uLLCdUB)d_aT0lFAEGfwbm0p&??{6|Nbqm;@^=)Q?)) zuB4W+9cpJ~gMvY^xtb%F0~O;FJd(yqwz>0e@Se%phNC2RB9O(TQj66K-5$9>87LPi zq^n$8*V9{aWN+9TQ=%7SHdgj*b_!)xZI~8Ai_J}m_WFjLFvTKjet@CsD>KY!g_?k$gKz|VI?|mag_LX3T>LI^_|O4FP^8T ziK1m`kSsZy9BS7<Nr-Dm-_D5x*q$Zk6ohjYLNILb6^LuP`D2HI8O zgO4DV5z}EA6Ap$=;KR*#Z8p8N=}~fSlVqKeyi-KjA`L3Q1iGMT8>=D(QHyw37`itX zx*Tg{W$-2#62XM@83dUdc$ufIkLHw*2`VF+j!N#>lctkOb>7AjWfP?;rY^~--KgO= zVsz@j&>dwuMHvw^77Cal18UfJq0-pc7KXzvw5edkh+{O|>5AkyDmoFbJi~R~rD90U z=xHoN+}VxjmJuMziZu+J1+kEZokjGS?H-y~m44g z#sDSaOY9d01iB{`z3bKnJnV#1<(G?G9Q|2+CkD=hH~6NrM3? zCgk8lyK6+#j#N5Se_ZmO_zwc)LJcAWMbebDFA^yCX=tY} z(6hZBXPnxY&8kb5qvfZKL*Kb8k(GK@M#+5(moHt;(LPR}b?(0Zw3F5is|H!2t#IfS zl{%m`7etk@(_-}v3I&ZbS#I~0@Qhl-d$r8v^Y!U$GOoM=3<%`2u{KX?NqY$~y`s20 z*RFxtHWIOzN;l3;vm#38c zwMU{GPMWK@I^y$>AXh4AkpogGP*wyM5*e0lQLJkUK5V<$J*(pHf1Nx4Sh3ZPfr!xP z_8$cxrUm4fKF-lr2teYYMs*x+uG-k<8|+slz)1v<_9WJHHt5?yWmKU&WMo(4Q{h5H z#ff{37dsi^%!Ht#2MjL9J=t|AvENxEhqYzcBd|wk+I$tnamGgu37|y)A)XEb3lj!| zip0N|?oA6&FHd0F3q{+Ya5m|Ngg4R62PdLNam)#!U7?PM%fv#2RGstNhHjl=n7v*) z07HhTTr;FI^zi(J5@cv$IJPeWu|T%Hfr6NaPJ8mTCifujQ&B009i@RiK>?&P?gPff zknu;LvQAC2wy6#oVF<=7k%TxwFl8`YCs0Ab2KI)HC2t$)aV*xu0hBf~ZXm)EwaPc)Z$y))zH+eMP9gqTi3Z*auz1~>~wEb&ojX_;a$Y{16!F;TTR z@!2HmHVz#d>>Zz22cjUZL^xBQBi>klRSfPuj6N>jQv8YCuexN)@97HqoFl6u@P?GNRVb zS`4#`q3N3ud1TFqSkRh)Cd7myxgaeK7`=<$5XyUW&bpv2!AYq}W7pdOc2t0b1g{G@ z^I{&P+}NTc)eu`D6OGt|0bzyHy_s@irw#gjQy*Jd>)OyKJOhRs)Q}|qd20bjs z*rLp2lj9n8(nr?vN!UITmYc;glkpSn{8iWA*o;@7pC57ecZbrjJHcZeK4GBXa5zAh zlQXg*gp%KH!q@YC4qHOmN*h={8Po6|I{5y`h2#Tps?j!~aEO@20@TRcen?^!4}Y!s zB(AZ&@>~of1Yl_u(ESp;_vgP{Xy00qD zs`1^ro!q{I_XnX+CDtc2v?2^ZiV;9ROYVFh+k3kc^Uc3|P4ouj?xyq8o#0y4jPS@1 z7BUQK>W$GnVYh;(k2VD|Diob)ouh?ICJre4hAJ?SkdXvt5t&;nWiwXVV=}Ae@2$*f z@I)?Ti}5t^1M;zwTk)IeUvUr-Zk;U5%rMOSqBzX`P!<9$xhj%?sn6m9$6$Js>D1+# zkr@yqe%`uxucEvIg$i~+@d$f}a3%Z@Xc#d2V3jOD+5H_beWSo!;mAO^<{V4~gMlvs zqbY;XoHlotGMNi85mfl3oP+M?%O5UR;b@8KiTmXRD>?!4KQ06xOk5!Zg8;Y**l|#N z!?39#3qoOer>N&)h8BEjLd>>&>G1%GvO-A`JHs2si=K4ot{NMuw%<9UiCQqia>(3? z!SniqR)`{b0|3*f6L1u8x-@pOD3Lh$%xp@QS!pl;I)AhgoKs;XFQgx&xigk! z@tLIVxUFO}S29fr&ev-G7m)DY6EEUVBGh2-%4yUW^1S~010zk9=B^~gg(7H)qRTX} zabrm_93ry>Du#v>fr5f`Hrb79M&{EssJrcjGdE$IqEdK_7&Tbuoj11TUW0=OK@8c2 zFWmb>#Cm`e9BYk1xkd#elzzk4U4+BKkl)X$NG1^nNO8 z3VucKf*wRt&|cC0C#8NRz&@ji(6j(FAT+tmbZ0w2jY0U#p?aMJg`+#xafAT+`X6Es z+XMvX0i(kQxW-S|q*0=&Q5+f{j}LCThN_@?Qjg|7KbS4J6h7`{EtzZO@v3~=6|}6= zVm?@V@QOI+~oq+1?qp@KbkECeD$2V?<8eK->-n0+@|DEMoS9g4rhJ&=@S7@Q6t5d+}Gc zwKXi_c5e|jve2-i!C(;}(q5T#G75qe(m3CII)R*1t*H%`63dF*EC%z*hZh!{LB|lT zT|9~?BZ^!AP|>MS6e=`EX#*t6VSXq=1@p%~(Qct3bMz(k5|Y-bjb(U2h#* z-xbT+6NXxj!jQon$03Agum)rc7?hI%of*lF84Qu5yx4xNv>N4wfk*;6)>{HnyF7$S zV7t*tfD6QcV9pv%go>9yQ5U3lXm$gZBxoVp7O)N`1{9Fh;UY>Hw>BtAU`7rKE^;MO zhd``u?B%op$zYo^0JJ1nghZpo1OsY34q9p~S1Eu2D~KX*2EGo-#s%*ka_KG(E6W7F z1Sojq$!u^S*n^aWQtOJI1#CR91cI_d10|JN434!(1WM}j-b8iQf-qxg8@nTQmUS_Z zG98dbQ_?pJbwCtZv?>y7#egEh2QV^r1#x5{4uVi?1YxZOIx}l3N1#?lj>T`1g9L;E zy>-llv45!xT_RCA4l^dwC=sTR1UgUALulm=w(jwaB5q88L3sxdpMRD=?-KP+ApDVLAb7OZCD~TB!fC|-UOpZ zA|MFj9C64X2}XCbmet|MLv9rB;OLDV%h3s&yelOkuz@!j;CD*228VHw%qtMJQe!uz zYMa^`bTy|&G9^@NHce-GG+Mh_)0tASND)gArnM+sSOx%alI*aW$ahWlE!MUst4oF$ zVWG6u@^cXItgmHpUFV(<nT!A;0p)Ty zB}jfrz(G|BNpg-+l&BjF4`NBh2ZCU;BY-jy;GFV?NFlh1sYbZv+}I`91mS`KE&wui z3T6yVj!^E>G;Hm}Jnjl3BfwBsI*6d635kDv_%=OmI)JF8(QKq86hFF@q`D$6Skt+p+y zzE8$|010G8I-;M?07#+GKFmDaB65QEDHjY#ldwjU&P$~5TC=u0+a^P5VU;x&*|k2) zZR+;-p2Y7b!FpBWbB}Fyw|Tr}q8NF;p@581;7)^0p&*fwM&%?Bc(qffja{1t=1&*D zOV%sXjNNp~?Nz~Legv@Ifmb%twveLRUX;a&~(@NCcYcw)u%SNd2Z#;V~9Z<@Y ziUX+!YNE8Dx4xa?4<8j|UcGdU%g-1jWhCn&>bmm8G6NwiL{Oa;!E{1MsSBS4hL%U`##CO8XR9~4@`PZTAo&$-=dRh9S@~<)EN5(g4b7rqBi<1t7-O{h>Y@pS`12Hl~G1HATikWimck^43z+ zs3i-FsUCYK1aoakAxi=B;~R9&crt9VVx=Z(YX$Rh=FMGL)|#p3Pw7>jnAWn~Q4A1O zz35~VDkA8lR4A7-S2Zr6#H!T6jRnZnnS?Sha9%D1GkThx_zUR1Qc_=o63LmW1j{Kc zl0s?vXG|uPrn7ZFS9+>lPnAD@Yc4s~oad@$fRk>R_nuo%nf@nct5gHJG z5yp=*=kB~TdNbrp$SQD5EhAy~2ejrQLy`CZ(byP(s?*h>EZBy`lRZ_vq+DaQKG_KZYMze40OmPt=B_d;atu2^>iz@P`CDgVH3E-yaE) zOeA3if!3&j*My18Y(oOPP6qArMyJd?RQ@1xIIrDgUL);8<2^&>N5nd`9vZ8@YCN%w ztwj55N2jqt?yxXPnV_2j-IOm+E<*zWV@ZCIa+tkX)-b5=CEi8I5>aom-D^QQgh#FObHtMu7IW=Nj_imilg zB+V;iY99cKLo~<9d@Rgk7i9VWi=_NThh>P}mDddv!vw&0kUlB(Fu+D9aoPB0@@@F! zy2E9%SJ71JPN?!wZTjP2%#uq7TcCZex{)(Ji}#)bfEyYjA7@^`9lmUcCs-*|NnczO z=w1u>Rxbd;51M$PfIEx%Qj`?PtaOjOz7s1U|0hsB6k#_Bk@&Y{&%`YQ$&gwwfom89 zFFs)bdNl?(1OhP|f#nZd58Un-D0zn9nN!pthXD{C4&N2jbhn+n?Fd2^Z*O;=_rJ1h z{PL8f_rC9rCMGAf5KgHNtnOMsUiRVJQpFTVKrKP-X#W|2e}n_v2vV=l7u^tD_mC>7 zHi~fjMdFr`e#nBAG?X|Ntj23KfK%tfpnaL7*w8D$nEIaHO(q@dZ~vIu`X(Ha;o-H z`edi`N3bngnzX0ZN6GO=@Zk=MX8@R*#5#sTCq+JEzjLG1Z4p-V5pX^xkKeUd4IgJt z)9FaQmJ%R-A#y`#Cdv=l;sX7V6_5eR0D&0{df)!z0Pp-JiJ(8PR$7Ejmy2+he>d^bjOHY8+MbZ58uUAhtnG&oa~z`J|pL zn?~9rN>f!nw%O|?tqA!%oOv08Q$BhoVEg;R*^Qn#J9(Wf!e!#X0ER|1fh{%w9$Tn( z{&ezJW$qu@I#=wI@t)R;!TKWm-*;x1G|N=@nDHV=^o&rHd(2Ayn4a^c{Jl6b{#V+H zUvodVnUCt4FD*jP6j*asHKf?tTE7W=D5cPfqL5;!Us=utfT-Wj516N2pB)ciHL=tu zLjWV#MSW;TMDhF-qi8ZB!{Hy7H208M-91+#Bp{Lug3qsu@!CDctLTNApUB^(H)?p> zL-EFk^-?)P${7ywYd=YV4da38s)}SZP=Zpq!}>A_+X6vE(G5A$h(6MLPk{PuwKj-} zrU^NQFp~wlnby*>yAAfIq)%wSm+aa$yM8}NpVq-OB6_|rgjituE7~oAfGX}>qMy|J zej`-2jQs~J%Gz$}^|exTKuO4H6nJhJ4W7Vei@aOJWE+IIVz-SGE0yRRjCQch~B;a?0W_7jW=0AO^!zvQdnJ+Wup14IZC zhxP>+_~atLM0rE?DkP6$KL7N9k`BwLe9!UJ7Qc>(`Fqc~W$e9tDw!~5#cY_SYA&b4xa?eE8zZ4I*=@4NDe2?ZxvHGRpSTI7 zad`2Fw4c54t7HUp7Z4NoDFopKEIM$A{&m{hB9N#){?X$c73Ma|M$%46s;j7KRuvN@ z7(iAcYY{Cl5b%V_XiUTHp#xJv^A(5YA`hh>tK|_JM-UrFAs#H|qDbv0mc93{Q^MC) zF3kztT{SYwvec~9?K=kU>8{FbM#Od{F2G{WYb*>0e#Zh?r#)R_q zZ&aN@sn(uaih%bAgcw48Om+`aNQ8?SPkHx4M5Ew78DB%LjALV2s<33tGR-S!#$uan z*ljduHd-47s?^OLqL1T&S;IvggiiDA27z3LSiu-ia!ElzCjXwo_};!?K#O-vG~q-`4BOc{3NI zc;)S=>&A~-KR@K_){pBIq4QSJ4^yC9WrGcBu7aI3aGObEa%1KbCVS^c>iaIgiCsV^ z5!-;^ObRh5A_Mr-Y4=Fa?m>fpNod5srFOl!G2f z0R3miEuq~QJ!K?4;Rqg1uzUBIk=+FI?x|sjVUV({D{5wDTO`)4vo@TJu4*5*$Ln57 z?5X?hQcGI{Deo5E;P!{GAb18r+#+^AL-?BoI41~{L=_w@S=-GqWb{+t?UBLANS_2j z4*mCih(P;(PqWe&2L6JqRLCGg5t>-dvsBtL(Y0Y1l{?5ygJTom1AmYiTxk>cKN(Y{dQC=e14AhY5755yKo3;$=waYkhA& zWm2WGSf!|1S;`lEjp?IqcZ;%<^*nUUZ;m)e*DI$A`r2SQGhE0xZ`6jHt9)Yc1=iw{ zU1us{DWF{9GYUp2s5IgzOQs>GAXro)%%()I)wl(P@=YST-ZO9z?tsf;Oj0Jnj+YBC z30`CnLP~25_%w2gNjmd{Xjq`u7Ozh3sXL1ISBaJ5(?em+=5G_nyCtr3N>MZj@QRk% zK_Lu(ulOTpbEg{kzg)(#pWmV2;F?0cwL9$&rPT<#kif;3X1@W zX+c;X0i$Psui+=h^KN@Qb~)e^?(?5NN1h!TV_3E;x|03f>G_aU13ip^_CWe=KXo>77w>J2cxMy+aW^8$N}k#K~$v~A8V<` z2EK!bt1h`WKvS9L+=zI^Z~_hG&!xd=Ng#KTItmNO$L3Un0C<8w#`&lol&8%7`9<-; zEYK;iY)G}1)gfu68Kkp8Z4#=>QpTlOC1w#HpS=3dtg|DLA`B6c(bh+^wJ3mg&`2v5 zCvjop;Yp2Mp5QE^A=(Nfo!G;OKMn{UIqpXK8>I$gkQ;!1c^A-!B1E5~6mW>5r`(U( zM)5vo?(GkOKtsGY`oAH>RQWF+nOH)=^Eb4)AdlRh>5#;!{gJygEg?mcZ&G{RL-osN4B>BcUD0w=Yh=fgU4np9Aj?z;jLyUy8(ZpRN_NUoMzo_^M5?J2 zilqWds-*!dnCiGF4O2=o*_neywtyR9TWCfa3J$i$fuIeuRY4$DiVoe)vr5pQkSI~D zB%o^At8G*%p{7Ej$Yj+jMQyMxwn&8mKnf{AKm-sfKxN^ILUvXTHsup**@fCWn0 zC1hG;y3>;&#MW%nb_PHyf`W4v!b+7%tlBLUtqg_=u?uD(C@G+8Z505mGAfaoR0g#y zjbs6A+cc>)wkalsD5i=OF>5I)Kv1fUs0@@87&IC+wl=6KX3DClq_H)sQIJ%CibB|E zsYoh-BxsOnK#-$sim6Hsu&Mx7%u%xe5mYe-icrv|w##9mMX=ITRRw9PP^+^=Q(djr zp%oB~2-8yp(=;YVr-;NRnrduO`lsr8iMEqO-lmgkev)HNOk|HhpQOlQCTe;nk5JPl znE{hcq`;bKr>Hc{rcV(Y)Q?kYJw~3P00E!?28@6JXwVFUO#lD@0|+z#01Sgb00T^z z5ugA7003wM2oL}o003yn00xZ!$TZLZ001z9KmY*9GyniJ$$=UG00006fG~h5B_u>@ zX;b|sRQ%FRlTGPIrjhD;f$D8TO#?xo00Rif157~38a+Xv00000007Vc&;V!+G!s;i zK>`5)n2k&mBTX6t8BfrfQ}s0T)izVoWCy5er>Fsl3_#ETdVmc80000000002l!$=> z0R+U*2*?196!3#VJqj^4Nul~lqabK$ri_QFrjJw7Xk^edJwN~e01r?A^#IeAh)X-$qYBpFIZ4@x3Qz?r00sgJZ|CLv=hr*T%2BR#p6|75B zCWT~PEUvX`3^J@WV?!#%U@Sz$F;y{YEK$@~SxZ$|D}GauPX| zm4I$Yo1#;3B&{lNVzVr!6-l{4ad4DI$t}dKP^4-NP}1!71t*8dOrYz)PwwmE+}kTDqL)(CN=9nwhDZ znW>%B!%I2$>uQWW$nM{9$J(6prWbHVgB~H&( z6>wj#i@VsloYfA{+ik?^2Y2<|kNRB07Me@7*li`3obr+ z_3x)9x01~K)_tu%FPFN#jAl9cEC@`20WKhienK@PD?APH&Tl3ufNx?u^L?RZ9sCJx zj3SF<^@QflswJwmsuNa}0?8Jc6>NT{TRCe+pHk*)4P%F!CZDE{;JI$hc5>{t(loEd zS`90@v{agU0aW-_9j7w^-u-&5X zed6#lHr92OcaDy$6X36OxT@jL!kZA%u~zV7Tc+eW=QGN1?Mu#iPbqnW4;#vPPab(r z@VA=gF`iS;Cyui?GoDkpcy*_3rh1gUo_h4M(_?#6k1?9VZzGMlxvk|ntrnVPW?78p zD~)oi?MHiY*RS|JEsHbg*9pxTD(e^KEHAoV^7#vL)ErZlK6Ls){1p12;HN5LpNzdl z_e*LoxL&1K)?UKgzR_WPBEt6;7qGW4irQRE@QtjW)E@-q7%l_07IRHCs%E0l!z?ao z=x37NTbpfn8|LSf%}sdCQv-!%!nkS0F_gwr8BDk}=ak&tP0iHirtDiAI-b1ox@5R@ z!DmWok*yf5Rg71$@;q4d?LOz@X8GFY+h%%~+O&KA0ClFOVVITeqfKKKo!VBV-}4st z&pzK;uQ}$c&}D0T;PvC)UOT(a&gplzuROc1*DEWW^)DsfEoW8ZH-=%AX}QCTje|*T zS!0I8aLZ`cqFFMQ>4@3GP{PWO8CxxBYh2?8I|rl8^6|~q@?LoLbDH(fUOkxgdO5SW zJu958SF^*j+t-~f=bJ~Z9&a}*L$S2Qv^L3dxtjZoUaIn1hc_zPxM^9E;{&2Krw%u{ zc;_Dedh%Yp*705^2GZVMbDiY8PaV`;j%vJU@ujl6jvd!Cti7*Zb>-))*NWY9XP!0T zJI@|w^WSml+NSl%lU&yK_2+k$YCYbS?N^CHO<#-Ja@imEEU}S{~xC=*zCjG?x^{qdDWC{5-nB_a z6vfL1nH=j_am#5NWhc*ugbkY+pvziSZG|M()vBwX<1|B@vn3qys5#B?noD_--m3E5 zs>H-UsXwZy{=-c~(@id)3rSC2xh3#do_I>`>X&yboaA!4u7kUf?&($9D|ad#+z#%8 zyNY*ko!pmqLW}V4ohL?5c1DO{tjiC#C*;U(;*ZX@-f_cwo6PBcRkl_cO;|LL{k+t;w%Z$R zL9w$dP}vo=Q#6ge+1u^lyKk2#Z7jW-d*{Qs?SS{x=3lI2duQt!N5t3}sj0BBSt{$9 zip&?bPV8}rag;MC>)bfyWo@%>Yfo1BYh$sR9jC_! zjH@dqWTUQ1tz$A7gW`U=B?*R@8JfVxS|dX?YOz^jFc?XdV2ooReL_){^a{GaQd&R$*fgqu)1Ax-mBPL8hWb? zGXp7#V9Y+YTEvSb7?;ox6to~AERmwYr){E>7QLmE)#SFTT3SFFdP`Jm6?;n+^jSve z!x)TzG_}`a)U9{Z`Z2tz!GV}hb`$pE?~xn_#m~oFIEFOFu~=m>s=iM9`gptFgPC7O zqw|W--?98R==hb+e_Q;9jh+^jq{wUN*OnCgxSq>C*G`wp;U5MwD7a-O?_#v;rm+(k zuXgxax1VF>&wp#P@4KH9LFA_A>!>0dFwy>NrEy zdaK?Z&~R4Pf0(QeZdJv3u`?f29k-^q%y4E{&6;a~!0AjJStsJG&K0T7MZ*^zbuE74 z>=|NZgv6{8`=JVGB3f9H9UX4;(Bh6IC3FpF4uZicI{r$336jdoPqK_ppt3wD{Vmm3 zEU>cK&UfY>{CRY`DbdeIGDv*8L4NV4qhv2t*=%GlonBl$bH?wW+ zqf--VdZT3HEz4NV^)c-8JIS6Mp0lqVo4l79UF99pxn{dK>)Tb?*zx6|-FC|MxZ2V> z^gnjLbhm0+mq~Er_%4b(L$7nag3N7iD$GBFT{(I7^K1Ax>5@|~6OsM*hgTK-^Eu3% z-`B0JxX11$YBOiYZH4NZ^T^d=ZGK!YJtz8Y{XNO+ZQ})nTYiJ5>8d}LBgE>Szk>$^%qNh{k?n0d`vqlsZ3Tx>KD}#O8XV| z3s6GQgvpguGayD-qE#2#8B!}5Bn4t+Bm$iE`-wzZloasoy9ng#*_^f%q+%~>Eg^KK zveH3jz6&&U(#nncGKYnQMiU`}H_2yiD=w-)se|VGe>`fuyzPDjx85IvufqI3_+6gc zKb8H<@^8+#uVmh{HzLg5Gc;Tt1*R2@uuD|Hfi-A`ddww6aUZ!Qv}_aSkHY8leoEuL zJ6P+l?Z>2jonW0AO1*EJz4F!%UrhCD(&w97YFSL-nQl)f4A+TgL0wlO zW%N~d@OEQataW9^ z+jxvy<)X=~e5_+0UeWFuoA-CInT`F^gZjbu52N@#bof;CkB+YQv)N}6sew+vE7$Z| zefpo5#m@`2Udq=+8>ePI9(;R~_r6IkCG5<{+2!H*vGFUQz24rxkGr>@;POwcUOjTJ zgnXXqGCfx8uL{ll_bp7=QS)gsK2qXehtrVp?WlSA-n(lr$3FW9=6Y)yz8$mCSBrh~ z>SK+wg0bg-n=4yge|p!Us@WZ;TOlplE1g@FK;kU@)I8Z&&2s# zc&o?LPm7fem{KIHHAdUBWG z`S`B*@vQP!NxK)TENP`Vr?D+|NyhQ!r%gs=$mKHaN_C>~rly`{c*TvG4vR)=;|r$m z1P9bFHRrrex%?a>nk> zvom8$L$KzxGO=1+n!_1evrgFUi!(8Fx|WtSxVvcCT&}rT+PT)VW0q;HjK^~;t=;xo zu5UZ17--ntw>d6qc1LZelGm1#&}UVo&8=v!S0k{q4YrzDEU{WL7Aq2$Mz!+d`eQRQ zr!6|mb(%0_37{#BVR&n0u8D;|kcsw{(>X$Ai zy?R=+3tDVbW}9VWvysZ#9hKW`=HS_Z3EQ_0KRzn6x*{aIW#Kf_( z+BRm|re$r6STk*`%T=~BY|XO_Y-<~BwlYLrZ8f> zIxD-|>w~&qPL49^-_Z2+`n|n(-_v+__q5rUR<6qRE7@NqPAru#sg@~NZ!B$XOESE* zY>L-1!tQA!G+GO*&$@O@JiRlfXVmWKYi;p~(dR!G zm)nTz_WfM^ZoYl~9o$&;*@ibt%bOYFe5udb97gep!h1T)rO)O~2Y;}>)86nM>gXNc zC;1wyhYV&6y!+|bH}CiSH_tgcQ6C?_>{ii7mO1qJD}DZY7ZUy8=p3ujJ@=+QK3%?_ zUsLaYKk@kduaAz}+W9LhmGpS=_u2Hev)~0*CQePtIXN?1Fe=)MP*@9NDH^J1tEygv zDL&+Bj3z})R@AbrU}ROW%}BbJZ48QeYE_RDL~y!(GW|P84!p>DMY#=&1EP`jHJ$=uDpFw z+MGmQEhn$SyZot%|(pPqaB?{;|J_u&3c9$C-5`GX!M z^0{F8<@omat19KySt~?grY-gJE02ADqQo^8nff$(OSyIQ1*l3b&1=G9(HYG3vN(^P zJ4LIHb;Z2Z-L!0d39@%}JdIiN!RPimRqkE%uG0Hu`gY$1UbZ8%2k6SF2l(&`hNVd) z%2`OTfg#;lAyq$A$qJQfFb(h(e}z^_f8Ah5{Wex)2UrrALY{aiqYRd2Mk+d11eCPF zC2JK3jIkwQaIZYSth$8WUzUwr#3g zQE6sdR>_+N)om(Fv{iwPv9{QOwl+v*R;-pyl`*3*u@Q`c8Ci=X63QyV#8wtXOrpZV z#SAQzi&z>mQx+tQ!Ai3gOu<2zq@TvJiYfl+FeCrjhgF2TftDn$h{OtF%Ay)X-Xdcm z{|g||ipEPnjC>3~*am(Q`>NWXN|)RFbo?`4w}oy`_p*LupSn*uZ6{qng}<*q-Kx)J zf0`bu?t3BL{%`u+)$3PCbJbs*b9`k^ir-ap{Ob3f@cCb=@nY%xve`Vj*O}&Rw<`UE zh3J;~J;`V~GEHQ!Zk$zOzN1bZb^dwguctuc(BWD!OUW-A!neP?jJz)zmV>h)xN@$F;IAXG(9*P-4pYK9#?9k^ zyyK4dJI8yz{x^lLZhVb4mMhOJ{!727e!cV3Sud|Uj)9ZMrPVfaU1OqdnWk>y#Mr9a z`ZM5h9B9;cmW@Vlu8qf4eAVw)5~mBg_bWlwcS+X%<>|%B@>$S)6Rc$8Bi$a$r0~64 zCX=js<6ngvF9_$iRc(%I+RJ$@qpWN@CMQ}mqb^*e*RwCxr@FG zVPg<*#7CQ{%3$etWv}?J9MPu9?RhjpQvMW`tOUlzQ0z zGnG@#O9$mb>mAU)(xGsLq^ByfRLAVXV*vN=RQM#9#c{b)6%Q;a(*QjsiZLuIo;o!v z=omvVm#ZpHInyxwakDDG;+)l!7J=^g2iBJn)Nq%Ts>bgonrX21yZWZg@1fQAC#$~- z^W|?ky7-=MtsEU3PL*=gAmkoKX~kSs_NP~qz8HFpjo?4B=f`s3f?G_028sI*5p*~bCp!@p<5 zH0#%^JiC5gJ5`l<4~2oyU|}o|F!PtMk1IFY*1KC`ba3fHbkjlS#`|M#?D3N=^Y0HW zyW=s@<)cBbK8yp_Q39My40GFx3EDb_fR<7;@r+Pj+IeH~J`Rqm z>M5buS?>5Hm$wOiA}hPjxUmwqznJWkc< z=xOC@?Bi0^(!8EeDaP3x%U2g8yzg8bwC`%&oYpnc>P?-F?eD8R_S5oeJp5C`a(QVU zQN(CCM-jv~zdnOTx#`C!=N@`n<<3V)*HG?`mrUvAt!d`q>UK08Qps4bJ7b0ik4aUf zTXycY>vXl-0_$u%HOS<4yVJs^mFu{7%{9_6NRbPJ5_Vix7s+}9R~DvtFpWC!?VxEo5@obMonsOORVY+I*)AQ&lO^C8be$2}t+YSvZLvBh&&zsNT_D{U))!0XN2>m1&f-7Lv^2a33d0rOUx z#qEl{o!0L!cQthMoL1=R4ic|5dKx&Et|8mhIgMMVpz^#%-4nE*k4fg7vMSD#TExA- z-m9(QZetvVL*a_(uT=8fbg?mtd$2mJx)~|J!JU!p#?^}3+0kB)>0fNO&^$D{d0Jct z%C9a@-&daVG0O$%uUB15!#;iG_Ro7)ZvoTHJtfP~J@*QG_?106b=L1?ZZ0)h=eL&u z+t@xYqs!l$2O-O|7q`-`4xs8BheOU=Rt&UO{M;+My^}%QIyy?3cbV;Ql{s?aG?wE} zM6yQqL*W>n78Sz2JImF)7xg9(?z?!~RduSwdgBPemG|A%d~=ndZL>=TH`dATQtMu< z=$%lwty>R&QRV148~Amt(SM)nxa(Dtvng~QeE1HYq{lHlyQ{Lj14_&qyYc8`tm4yH z9ysP4UQAcA-A4h}j^T*x8(g!vYX6^?61xXraIcmV$UQW#saRKq+10k5?9=m?qPM+E zg{5PlYr3Aw)+*!KWSZ^_4i{$*klIU`QvB{qD9hQao-)gxc5Li8jg_*qVVcG?uCm~-wQA5}KF>#Pid;Mv9PZzB$CAUx zKFfK6GfNtyH>$mU!;1L09>(7WwArn++YNknJxj}IW$vrehh0jYWw7Kqw<>9AYN@MA z&}VE7?rVChmK@weinVFV&05X#E;-XHM)(Gb)xLRdPC4V1z-eO6Lzh)rU8SJvu3sIg z#yC?r#dTNBYs~M5d!y~R?k@4+864Ghj}HrX3iO_*T6CD`acShbEM6BYqUj!~b*Ieg zJ}Zta)y(plIG!A%%I{)yPi4F|&Qmp2+NJBdJ2(#VdB(X+&XxTM3s-dXCsr?#us+=F zknA3m#z<{odAF*quop$o8}~QKPhMfn>Q+n)l{zu%bWezK8}!P)Th)>|S>?q45FB>p zuw!|jKQG9PtGeQ3@h_6ZdMkqVI(qL9ZFbKlyEhM`0n{Hyy3dF`QPb3;XZTSKIci{#~B$O&wj?o4Ay-=18CYkdpEqyvf$Lz_2qp^ zvDolyspIaK&+)U5u(rQ1pNz5(vkU8b>hlkzPpVcV&#nB=dC-_c@iUb3=HuL)%j3ae=8 zH%GR5w;N0jnRw+E!?m?Fx=u1J%S-qr@>*X$%x6V(dyjMVxUYwnzP`7%8+hB6-!igZ zegi$~$1=}?y>B(Wr0O3FD%!I=z6#;SU7j#JOU$jx`+a)3eW#qdONU2BQz_l%_{!Dk zk7#wdD;a@`#bH^K*8GkA7`>e(?JSq2+fwJ$F<@l6Ez4lxd5`+V(|FD4Cn1Eze8Uod zDO=5xd(!PIR&$_%zB+HTMMqO4Z^1KzO@0>k)2U{*b(Ts+>yBj?i zoqX5UtNK-n^p(x!9i8JUyklxPPi4*CJR>_@a&`ps`(HOcaofWxTV0oo@~^fyqu(Cb z`|-2Yj<9B$`nS#CHPzqv%Cc2FsypY;^f!4+4~8A;>nWF9jYg)t`e~f@Y@P2I)Q=k^ zw!Wh4wbutR-qIKN2wWj)97Z=-kAfFuFNAyJ5-W@<;mxO=YBd_)Q!=CEv@1{SbJ1^^ zM%gZn`XzOH`gnWY<)>S!3wMBT&aU2yNY9I(PU%aRru-S8(uZc`!627 zp1&PWBM`qDm$p6atdA(Q6SvX)*7{tL+E-s^HoVtIczh0<-L9;c9h^&9Yx%WTRn+a- zU1xW0rnUT3L;px-sSJtjqpnYvifXi7uI?<<| zFE#NOpOnyXfa&KeIO7|QOW?rhsk*Q=&!W8*)8E~A`uB`u9ekeVmih(T>hg7C+XG$v zI{WJ8S7lzfuX%5_PVDPf#P7A}yylmY;nsFs2fdT3vNgYyWMpiHMq8|lnysj|t+6@> zWG$+{3SVhU62yCxXSsCkw_eA)1MLjtIS-OuuBKUf*X8dV#`JL-j=qyt_VsSaX$xgy zxn0*o?+%&=iOt#7j#ZUY-&O~_JF7)!k34G|l{%|WuJYrZbW6WToUW|1QrE8Ljj{0! z6kUfqn+w}Nt+$-kIvw_Et0*x_?b%jK?HWm}pokH*#U52fZKcH4)=o%>9eWe2VsEiy z#oqMu{RhvL=gEEDzj;?U#-O}@Iu_6xd$zrNKR+0kU(H?{4GsXExf|JTtI(-vAuD|h zWu2YeM{9+NTju>Dn8>w?Bii1s>Lim5-_a`BhFLvQR8rG;YHCT?nlBDm!r~xt;=w_cat}l=Gv1}CRy*CF?Cppi~ z_^L*`t>?8{!=fH$Xv45M)2s-lx+mMjtI&V|qK$v)5&W1Q+5wRsALwyrC>~Z6WU7B5 zOG#zfqfKltGsAE0yX}btkC}u!i$FctIZqHDW)V0ET0qKZRCjTHv{7%{87Kb4Z7&wR zTBgZaJi9|2(1**IC1o|-JXKf1wE1ho={ZXE)}asQMt#UHlC^BFuo>47u7TjndUCps zvL}~Cfvyr$+tNqfcS&^dKD*mwyBlNA33tva+Dw}@59=oj@jWmC{vxePw9X?P;NqaUhXyui{v* zMXuh~kZ9E{4K+mioXun`ZIV{_jBEcWq?-MJtKQ|L7*S|*Xhk1`bbR3BbkX!44Fg@( zJb1FIurrwPev|<;cb9|r0$dcLP3o|9O4<`T2&gw5#dKuyd(r~TjvAQDYdndOM9@iM zxvp?ExAcoGe>8wv-)ss?mME@ z8zhhZ!%6d;^el$qj|Eo05bVGK2TT{nEG&wi*9Iqg^Ma-^xBAegfL|_Ka1-Z@!LKF8 zMpH|^YN+IzYWspV(B+ZzqKS%G;T(MOQ9~`$bBHW&%eF%dr<}&?NOuu0fur7p^{yKM zw?FcD)WL_EO;)z*(`32bsfx<-DClIl8vf=Wsy`XFS0A>w+OfNF9PRsSvqT{EAW76T z+%?Z4`r?6&z=dW2Q{yL2Hpdi-?Tik{zB=T?)j zsY}C%pNP_X+bWX(5olcfbhF(r$MqNS*}-01kD`H4O+7fSR!-GnEKU$Z)ZV5WfX)xX z@Y_GP##U+;mM9k3160A;`!W+Jkc+lrFGnv<=b_yOFhHbJz34}BIzj+l8aT|aT zKm}Xeycvr;89{q&4VU_bP`oboTT0n+^smp1yA3PhZ~yJ^8pB+NJMln^GezaGdIP|h-Zof)|y|}d_ zO6Y35!&Hp-zXpJ)PoNyCZ4C3-d3mZ*nFJ6K=mePsW>!09aTZ6^niLQW4r8^0YgavG z0ToPC4k@cCp#&UkH4gf{VVt}1XXm5KB2i--8%-?xMhVY)*XFkHpY3~xZd~#L>`Ay;&2>hfT~*nvOS9Y4wf z?JkohrXnwWiYoYg_O1C+H%>y20Twb$b)U$V2d!LUVe5+a$YjH6gPI)Js!=&!{?ZMy zH~$cILWQ=I@;(ac)qZSQDmqh4|I>?Be~`f}DQN{Hva*Aw=sS=m4D*ww*QC=} zWIqJ~CQWrWaW(X=dr2~8YTxdD=c$&H%3M*-5*Kyc()*@S_xB zW(FJLGoU=9Fte7@E}U%@&mxA;2)@<@Uvelhn@t5Jqpb+t+d3V;J#qIJ6hu-@0R5??ke^aluYB%T^q?9_ooI-Wuy6#a`KqWCPDyLVakSwjbD~!lr#nM3O62J?Jv# zhXkOXR*-UGW?8t^y&M*wI|DdtD^X&Jtg&(3@tr28|VOxwGvtCF0iAbtGwcz*-_B1;kUW>2cVgciBW(Z$_ihDU#>m*Z7GHG;>z zCek&sM(32wNis}I@T%eM`&U}so&CjNy@KV18?jgt8N}|m!Qm)b3{G)0lR?}n|G3gK znzGvtr~5G)Kd;3wrv0e8B?G6T+vlpHqB|!U7aJ!%B-i==#E7j+92OnNJSA`CO=jU3 zYIWvHmQyvBx5~A)_U;_|e^$+V#Fd4O-^XTsEJW>VZG#_31&K}0?blAO2WuoJ6Xu-E zZ;H<7KUrHld>gTb4M+h8V~mk_P$Y?++$A)lk;N`pA;Hk!06MRbqj|IYX5uiFLk{S1 zEHE|i4YqYeZ?giMH;+Y^XPa+&6gWlCLYjb(^DuuN?Upq^K5*p1zp&h`JNIR2jj8E#Fp+) zFC-7>Z&i2o%#MM%go8^r>2P!wq&%HlC$97%JDc-aP|xPASX_S8lPD3l4&!jD59ONX;mSwY^JHRaHt0j!X*Bfh$-)4x6P6Ey;N@r+0gZhIS1#>vR83PRaIq8jX&&@ z{%%j6J4sz5qa1Q7Djj6nO?WXmQ6FzQ%WF7`2y@<@ktF&64#vVQ&MRSawwZKPPIPU) z*!l8CeJU6bYGEtT;b>x9w$i3z)mSOm2fDMxd~?y#?V zAH}I}j>_0a!{OCA)76fZscS4pT{5gC!%S#sG@OOtte;vmzSMtxz9KKE!zMd$kUn$h zbh3!^6-gjuI~p!gw2D`HG}_wl){ssCBMb2T9ZV}n-Udk|C_XUDIZ$y+;ct<{p%)@E zj+&0S=LlfP8nFsaYq+rQ{h=`9Kka~=&YhoDEiQ9k#%0r9Lp*-gWjm)bnJnT!IeY$~ zbZoDWqz<8`s)R8LsKuK&m(hi0&a~<^zX?81NUJ_rfp7@m^c+t_%~o6mJQW{KNIJY! z?JU0Qv&M`TU5e0GUw9d|H7Efyn96urYr3ppJOajv)txVIg_f?PC@C-JfS#@cG#DTR zl!{E4q@B6b2@a~6~5&e9D)Nkr22(~%tjnP*4=%l0mlcoV;%elN5bn3)jb7I1K#dJe_x~^J35v|8u@{5W^6%8l&^cpE7fHcG@8Pd;*V% zy07Sqet6(z((+!;_S1@}4bQ*-_LcYuKaI$y{-^kXNx@NUc9?BZno{+0(=T%`d;L>- zP8F&&$gpj0s;cCi1gX{IGC({7MCU9QScWpQ3gQ}#MJ#as+OOvVEc&w#vThb0pp(@u z=jy;MQ)CbNFPO;9AilQBVYw7@GqVOQ$$?7YZzE2Nuu9J>y9L*&@r)oh#q_D;`uPV+ zftxlTKL+JCc-k;Bt<_tNa$$Ba8LkA*=tW17Fi|sbTYz$sH{!w%)he0Ts-WnL^IX*4 z+uM9eYz$-{7p+3~j1mB!c=dGi$u)Ip9;VvOLqRe`M?3h zp_IxtxueEMz7vOmKUd>EIgeX50J$I_ZQyv+LjOE|dEarzeW?6T8y#ZaJs|QRR&}xy z^!wyEi5y$@y&a}__jqX}^l)X{NA;_}>v#tQCDz#cPE?Hc(Wt_}Nt0AeLlObPGdmR* zambg#_r7+ygJiiEow!tf6nGsVcOepbqPoQ83ic}Nn&Hh~0ify!23CELu!~JFP zJf~DM*KsGrJPSKr;N{U~qpOm&?{N_)>=d;Hj_NaGny8^`P|leg53Tg)+*HHDV2caB zWc8(Qwd18%bvZvCx#Twqo$`&`m)vnl^V&|7No;bQc?f~@BnZ78Di~MWO`;bIA zdKB1Wdb7g-_XY$iB)Kd${WyWgdU8%UndzLqf@%ZhI&KXzxM%+qA`*^++sdwIUyk%xQ#cG-< zh*Lg}?#a*o>p(=9h&my)z#a8^-a|etEaNA z0St2_dI|4CP|}PHIHwM5xIto{<<_0-C$dUcmCR{JP8zYW92|sq`G>zFgHF~jyfZ+T z*(Pg#X=o};pXYKA7It?fdQM4C-#~oNxgx<+ z%xuDl1T$ivyA|alQupu>wTf5)0T>S7#T{A`gyJurIRQ_9wmUM%eLS&hS+Nqd?zEDK zE@ADrDQ6yjd2?_sH5Iyu$@7s9DAM11g9THcJX>dNe3;{@PiCZg^hr*y^!oF>*m@vI zBLR*OEv{4><1)0e3HiM6A}-V{E{a-Lv_SRQTNAaf{GXDBQs3ve{8RG}!^ZWG`r3P> zzEXt|CkW5au74hVkG#E+{FwTW@Q+%#s3#r_t7?f%{~9y+ir~RxxLM~VmGM#VUKs9m zebeh-7vC?q^_43e@7^fK&^FM%N`Blr`&l+m^Ho?VRQ^? zD@JAg)H-0qk!v!iK0nVF_53K+M>EF*E87>N_I)D`cuuj=Ks|@%&fSuYvo5I82SR#+ zY!F49xvu`)Dd*g}WH!iFUqg-vx~>9&1!IrzgH>Ir3x)fvzioYYc&f)($n?(I<)r)K4 zy7k(3xq*>p6=fo`<6CX>m;C2#_6^_()RSZ7r^PLSOt#A!cILG}tnupmWA0VeE)j_E zgDWBT2TcDBKFWXX?4I-fiQRm|Jy`>1BNn62&mMekzk_(D`h>$!Nb~XSZ^Q7CQ$gm^ zPpq#`+3J;lk>l37RI899zVh5(k7S&-b@x|u8s`^BKaYs19(sYVwHa!~o4>!^)7_vn zxcwITrBP+%{pSGXSMS&j|Dp6@Q0#_70^=!sZ@r}$_$Sl!Ln!!mkc^1G@BYiqxCU0P z29qc51l0NSYxx_foN>!+*>tj6)o*Q`hPo8q`o%d{>Fcj@#c+|f z;a&8FQiy5pTIqGSfVH0i4}}j+%TY`d|C~QHna)bR99)QF;d*ZNunx!M<|2RYyYiN9 zU8Gs^Y5VQhfrgErPj!sZDtb7@)I0A{>>)@A>(3uvinZ_u@V_Z~^&cyrzY%q@N^q&W z<)haBZP#-xasF#o;|i=3xqNPpoO*cvz4`Bd?-h)Nx~pa0w?2KQrd?aEY9kmaTnPEl z^pF27fynSv3uK^<({qZBzFjZ5;-cqI*}grNw*JrcHu)7oVCns>*hmC8?f!!g_&c*o z&G|Y9sSsqDyK?s0FX-}>TDyJ*(|Xd#U$5HK%pi{j=)BjyQWq{5Qu;e$I)+W?59N3M zgSF@GuiurwQ@0EWMaFQMUbp`}QAE5I=K5jv-uzM_$j;Z~mq=T=Uju7JNStzrK!x_u zgU>%7VFc)u|L5`#A1F=04*0Ej<2*I5Wrr2>?R3yiZAh;VIch=Dh26HMer4R;kYL>S zPveJ&PX$~o?$wFBP&kP8>(Uy$=KiL40(PcbC#at*z;QS z;x2FO`L%MXdM;7b?NhI)(z2bIl|=lNY*Z3Vqtt7wNm0o?k6NM@xOKrEMjf{k)CE3sYyE4+UJeS{ z4F|$ywsG0VWpYBgL|0qtyH~|Q_x|=I!-Fgp<^DT;M@+RZ-|}me3HjHj{aUR;wQ4-7 zn+YWH9P+qc>x=w4Rr$_8YGsnVici_N#L2WW@u%YN_722n$a>D-``aJ0hF$2zeT*9` zfOP9@MPqZZxrM!a&t&3!eY;n<`&52X4Gix*Mic&F{_`LCJ-r>_FYk2FoJ9CjrGvUV zz>D|heQ&N!t`?aX4F5v#{96#0vnH6836>7DHi>qHXPaR2f6K(bl5jbyEi>>>=XCme z)%GB9O~4}jcmjM?i@7xT{o)z+Y1xCg(^mhUzfVz!;b(7sN_7JzEI#|V`z(KZl7hiB z_hqs|1s*qDTU>X|T;@PcvHPP-wBi0$*@f5J*F^>G>%(56ac4>9(i2r&XExyz5=zmZ zO#Zqr`mAIhs;2jk{#7sP!0$P&^bVDK9jczaZvS+>8NUD5C&-+&-`h-4c#!GaH6orY zH)z<0S^wwRox=JGA%=LfR}Hli$S;Rq{<}@lwEq{9Z!di> zL9nrF|62h0lQFXe1K)Fo54A4cpWnE;FJ8$iWj8sX+h&;S!nFZ6Mzd0&*X$Ig<;e zy>PQRBXV=8*KYUR=v=P>?bmk*7iJ^b`qZhrf5+-d4U(`RC7!MO9NLzp~R4qXcLFVdwW_S zAw6I~L=r`vhm6ffFd4%MX z@wXp2o_Fg0irB%Y2X2Gv!Ks3LA!@aL*ffw>vwtGEXXY59)^p zOnTF6|?oNzq%NNv2&P*u2HoUl2IC#;cJ3yd$ z-17{H%Lnd&(?~6Ko`=7t1QwRrZU${W|J5pwCiQ(vmRIxe)eDA{9t-OiEc8biA`(GA zI$ea`T;@OLd1q-@9L-Gq47Bvf*)aQA`G7j)$#Fc6krx;&=B_wWFOU~AZgdAhwsp=h9+M+yBcJ4I+Up^((ABTvDAXHnbh;~c}tf1$+ z{L+1XGU|RKk2cQ^7+F2kWyFjxrl8oO<0^p+1;=uwH8HjqY)wy!rhGxDV0BPW)6IFPGORJk%KO%%cnb{B!&cH1L1(~U z<{o=`m)uyG%bPxdXGdaJ)ie%XBbqgznAS@G$l)b4G-@|Mpz)1b61gWLR})(i-io-=G6h(CY+DC!umt{hSm;6$u;UGR z)Ex9VhoK&{{;3GrJ!b-h)rgfHVbeMS`rh`VR^H67>O8A%;FS=fWktjXf+(QZOljGe zhg~>>LlEFm(48|qt7nsffcd>4%(7abOs zrNuY7IBtf|(rV=lKM6&XCcwsT*#pZg383U3=`=KjPFf-phA76TWV7wg{W*KVM9@hY zwa2t>0->x`1vxCx$KU+$OU80TdXoGQE*j*H8P&fCXW!9iD?4VWJ$c;}TnNe& z38mOp`(c>)%=Ec6V!tVUDXr53Fv{Z6x zlsNfS=Q>`p5=tmOTBilRD|DcZ9)8}Gcj~=VetvZX)s4hbTzUMyS`9gr65w)tF73?a)UKfW)jOx_#K^F6u`NkR*+dZ)r2=U+wPs`CtDP2?C>^1&Lv~KG3{Tv<8|(7#|q{ zt)UDRWqdTO$tp(bmL_+<+n@aY6F0qDSa2zeu(G?RQB%;h0IvjsjNH*NS z7d{)cm`(S9q)&8(W;LftTGj#aM5ZY;!&Vf74W&N!A8Ezk-a$u$rKl~ac1Mz5`S2al z;7IE@%GX8ucbRE4e`qGv)VlJ((dv*T(#je}c-7)1aixGRUzbk){FglL$pYn@!o%u&!$=ryuUhSWJV(hCIdVN~Q|iUhGL2hx;+TZJLoYoBJ5 zEn!ARemi$TEJT->=h0h#5;)?`=`#r24XfwpmX#y)y>s)AsC#5YR zWIjvCbB~ba7R^=~EWfEKAU%<7ZkyCJRUgO}n_RVc8vZ)6Ct4IC#tN*2@bY#c>s3n( z1^2!7Qb+ddz&A5^kLI@$h`LZD$6$lyg3QXZ+M}?U=~o<+-sC`Gmvwrr(|cZSA`$J9 zR4#1Z(m%RWk52rZu4TY^j``G}*xmG6`srD8gC_jMx|3#<7xDPRdDW#b>{mjvL6l|L z7mF9}cKxgxwzxIztPBefn`4~bf1pW3KfjKU<)ZR*5MWG`SL$=Kfh=afpg z5Udyh5)`BTm#E>(yJwgZW}~Lnt1j`pJ)H*S>G*Y{MEvG6fifQOQZkAG#I&I(Ju3!m zKSh)ZvX7=@79L?J+1fXm88NBfuX0@Rl93W>7$(W83TiWFF%EB}==Tyv38fiV@>fXa z7-K$VLCZv(=?e0)$`%RrC~3KTLu{`RCmR;KcePQ?KmC+l*OL~34L{elG|W4-_-mKk z1Jge*g6fXQ(R`>c*it=wsATTU$KYEjhQi-S>7G>7CvFvyhpE5|`VmQE#RK|3A9KQw zLcR;q{BVrK%nC;BGMxvVC@qJPz^io4*R2~2v)r$d^zR~%PcaSDM9QZ@6B@ea$)f>9 z#;Cfg9fuSYv?+8;L_JgDVIJj8WVD56M52xgLKs3KdCA;#_l!#ZR$h-35&4FnfEJIM+&G z9V0^QEoa}qJjF5i`yz)b@DV@T_g(?=Sb&%J7!U9@JczE!a|rs^Vk+NPxHb#-xnWdB z1~TZ=H8EuC1<@>b;B`F4+dSuwGvQ-!#?-WN{-ChI|s(j78i^*+MceOb`fsy*m{51 zLf3ub;86MUekH90Hp`*Rc*Hl^2U*`eCXAOTBw5H9OFDvvJgxDQ%6UILgVUZ(@mb(n zDghbhlLF`ZfiwnvA^?WS|-vnu8UpeQo6OGQ`GKsnP&_&LolIt zXmniaXM(l~ZHx?81L1B7L=%FnM&AgW_f&j0)ykB2)YzE?rnzWzw^n9^=zXB|8xYMB z!8RlM$(@KE^0=!Xpi+*j!)bGEPaI-!OOn zWNjiBWYq}4laZ@X)w<^{T_A9i8);NqU}YRT$+?Wp2^jz8g<3%C(;Y|5i*w4iy*}Rc z>lJzB0T^H^vgAwNujK1S|o98lA~fwx43Z zM@803++SH;uD(Tt%9;&6C{PsW@C1LJDl^0gRB&XJD(o$L!==~PF#xxMH>Ko-7aR

zmI?h%a9T@d9-$fv66Ya7FMa5RKB08^GXqUd;)AQ zB9CqFO&Wv4lcubmG(D?Vi3a`=)eZhSMs;gxxYTX!{r2K)s=$r$#%g?LH>x~M;mTKi zr(?>9{_z%va+<7=QB;POr71Q?Oe8!DRiWvJ+W;!eQJ0S{V=PFoH*9OcXfNh<4i`~i z0*T|ExaS`bN&sEjx~0&NQ@=?NZ-=f$_JRDspN01b!m!%8IaxE&rSAl12rj=L<#?i_ zwe*{*hyCW5I(nd?tlpW^j7|M|N}f+TW~0>35*^YElatz;avbqS&ih4-p#qqg3~!uk zV6C>_gHH?4JDF$s;yb4{Wi2q)ItMdny4fs0TWn3r0-1)KVN(H$C$(<6kXnWsvw7Me z7w(;D_R;nh9^TGh2VRIn1cvix_+A~-Y2*;dz{dEY8BpF)Q-m=?w~x2*-xuhvYBgC4 zI1nGMPDso)H_wy$(c#Fk?MrDo5V46<4U8Z*SlB~GHEZbvlWCt#9Dubyw$+QvjY2`g z^^zH#veN=~;3vsB74|r*25=zKQ5#lA6`fu$n!CgTPP%~sf)sRTU}nnK@+62}P&lAF zMpT85n#Zoh081z}0a3k-?xjdDq8fZgjL73!`unqEC?G7*AqMqn*b#zM#OJC&a|W(!N(c*=|_b@&P}Asa%~ZVSh>+HepjejM^N z=1seeuwwO)lNLNSdAx45k;7S$%3Fvpv^@4D(71p4_(p2W>k_`!M#&a@77J*>SCp8J zYWp}7hfAD7o8q1~EOktk{Pvzonjw*p3`-&w34 z$hzYhtE!QIlduVIMPH&a06#L?K5@?#FIgGpTPj@8ME9Esn$jKFU%E4=)GoOV)cPC^ zIqj2vg=@!JIT)5WH;$Sq{D&jI8^(n;$gk{$FOn__-!#?)y$}4brLzUxI-xoxlpz6+ z6xDVM`lX5y9n5H&FZk{W|Bs=2PyE%)|D+)M-eQ?kQYtF#Khfrw`WVnBnQZ;Zp!}&= zX!dWQO`iFN#;;n6HUe~A4Fao)k1LHGGr#l>llsNAb-jD`waH;OB7JsV zXD^@^=yZvZ&)viPaIfqV_SU{fC=r*?7aOYy{~R#n_Y}ggP_WD}>7n{~1@1rP`~DOP zoDyGZ`)0VukeC0?#KNsd641veC2Qv6v@8|ITh(jxZsz3Vh}|2-U}yE9!3SvdT+_O! zZr;i7lHgLw(Cwd|qyVkeX`N){zW%NG$R&s&q2kGOQx&RK-fH>He1v2RV63>?NlImx z6_irUE2i;phoyE5BeC=ZSmRN<3i`A6W&rBWp??$}di?7Ep6jD}GhS~mm?0dzmM;>z zySwfpH7I7Tmp%?s>-F9`or4}8^Sz#`UmPwn>}I3u@JPl(o@gtl>?<-oSf6ji;9v!@ zFWJmtjVJP2sAOoHoJLp(hqV2X6oetN1Ik;q5}PmKBkfl2wo3K@{WoXhHwAq_q3-U-xFI9?pK|T z;;-0$McfFOusa+9ZHSd5Zb1BuM#$z4_eXljRJsUMP!8JhD@L|Mu;m6VQ#|C7>BwA+CrZtD zl9)@KftmCT)-I3&;ep5@{c76}8*r#O#}AnnqtV>#a_(~MM#B1LdgE&%U2=Jr$%hwQjH^e1M_mgUoWy55?}AiGZshveD@2wUokivjKlYa7X!g2-5kri@^3Ew zt43lT?P}-}G%9ner0*zj!WNOv&-Tywugp_NWceyZJiKozXhlKC!ZTWuIlL-BG19?& zE=Js}D86}E{WQE&NS7TFTB(ub6D~@lk+_J-rXBGg$)T>MzR|?pYDhO%1;McWMc8Jn zxqE;SyH4Wbo5AS1F4NlmDvn%Y>xGOwFlGk2AW<)WiYiVu zE)yA4*cnao8JxUDTJw-?^BIb&@k)|HFtN*pzl#dz%uJUyY(wXVL%jE;SN8}8BsrXq zB;94(#J?aexTcjX6P?V|>n8~h(+yd~ha*vH@b zZpV#os; zOEK2ugdShHMz}99m{d7lFg_wbo;je9kEJh*?+O0Yp+)4j0SIEP#adqUDAWA=SFbq3 zY`35>DR`Dicbca;+a)!U5pcghcf+NDsg!9UdB9jy|vp!YsUSxUa;zwQD< z5+FVt(tA2d{^!+UciDXvf^uN3hnbAPb~Rf<)GpuvFZ=T=FXbWZ4`SqQ&}U7xyT z@v?+~^Sv2OWAP#T_)(O=R0-^LOvLYEsBRuDurK{_RXm=M-wT!cp)xX4^vk#iS*aVG z4}^&+(I2lbo!-YW7WuAU2OV&7{oB=gH1!65dP9h=Sw+P6K8eQ~oabrY`4!j_6eXw2 zbUP>@yz%Q!*8^nv&5!f>;%E>5a4u(^+d-$R|MEKHP5tk7xv)YX#&;x953mqdb-7+W z46EeJtLvAP72sbC3d8qJ>%X&xvakx^a8)|gX1I_K+T1x4|be2c*#EUOcwb-sNh4SO}rd@UA1rU$68CpS>t2I7YpzS=nv037ka?h1QEm6$@h~ZWptRZ)JJ?MR3(b3j^c7!xy zE1V@Y)qOQkB{koc>&-eUjB3oi(D8SG{3%^9nNKWYTA^FcyqZ7R5?gf9Y0(NkVt%*t zk^h%w&x>{|{#1S7@k)W^M9GUP-kZ$JDh1R5D$`@CMdKPt!rFv^a`EA8#reKXEdX{J z12=Y{l|aXc1Y-t&F6qd36y6r9|7cP9dlGZvReJ*Ldjlw(d zvs0Rn>s2USC8iPs68FVl%Rf#sMHaHZ$TYtvq;Fpf|HTI`UD{u0{Tgy1fwuM*ibwFYft)#DGgk{ z-mnbJy>gXRqG6#jKlx{u9+!9;6v5E@;DDM(OH`4&Up!66_oMiAn1^ntiARrUWT}PF z?WR_({Olnq@(c!UTJpTpdZ$#PGkzVzuip!s%3pFo%Bq#5Xn*A!B4al9uLqk-INw)@^ICTd(sEofl++fNC zV&h!m_C)ax0{Gr(L+;7VSt^EW?uthJ*gu1H&S2uQV3S;viZJ}2pc+Ov2et|K5 zh39QUK(Dj;fHO9+9>%+=)&|{;Yg1jd|DJ(m!wgqwSd$ddlY0t(I4R$0TIaci&gGHK zqL?uKXlXSy+k3#?Uf%Fhi*+;D&jfZ^~~wKPN_-3O>y3(D401*z*CIrpb)TwL(HF z!P^X11;5qjgO_B%^JUc2vBZeLM8GF=71>FCCHIFob9>)X%^rp1yRs-a1Q?ZE!?#Q{ z*8FT48<9Z3HLe5*JwISvUFE)kKi&3b6A>&42ooWQ&qzABFfB%PsASb0KbkzX$_&D< z`RxOwYR*;FukFsAe%GE+F;ow!0_4*Fj;T8MeYoOMLMZPyXA6 z@+qO2k*QNPUcGjmG%eu!0L`T6ROV+a)&S;68+tSz2s65S1N|NCz!sZSM#e9VLv{+d zd^N+Ap4MEvR39M#J0*C3=9!Co9yGQ>rzAsK{r66(;86XG;K~OVtqm?3h25j?g54l= zP$(W-{vMmi7zTJhDvo`4Klx5{sAXkLQJ#H{GC&=_fzUwqNK`6+AblrjL0R&+=qF9s z*o4wLdPMFKP!ufuFQikWBYwAvj~F5=GJmx@G6<=TWO>z6>$oT~077mDJgoCFGGAF# zu5^LtPI!SMB{{)3;%_u`U@dW~bq6!z{reoi!@U-NDyACo0sL0PJUkA$9C`BlidE~8 zd4GXHv~_M@lJJ8L)86~546DvKrp5!*2Qfodi{xj?Cn>Y)UMhr4ZcuJd;b^EGXZyHz zY?W$j`*w)ulH^36YIwQ~!X#Zs)~S+jI$+*smzE-*LX0;gYPku;Zbb z)EoO1TLHz-s0=`{=osLrS$UiHOV5|O5t4Y&ShAQg8iZVp0RWV-*qRr)7gD@-N99eT$ISO&Vu*$|}klyWp z;PZcEeRot-!PhN_f>Kp_RX}Q}k=`sw4Mj>qZ-F4agLFj&qzMEPsz?hZ3B6Zo0TMuZ z7o_*z1Oa_~zwg!c=B_n!=dPJM_ng1xo;iE(q3^pZir=8-Ca#Z)u3VK)GJhH9?a!0i zJ&NRNoS1%N_W8Hoqvy}GLUf8M9IKu|^UW>MN9&UZhGCYo#CkAFz zr%y2N2#5444IgeH%o%NBb{y+~u8go6i{Fasm+h;Tfh{S`$V(9ri?edIDdsO{2 zVp3SH+Q}YrgIFL5&t4iCWyo3QnoI0Xuj@0?)@Xt2=q<9;>)5oK?+tCLVoE%zYfMI7 z{yf-dw0OJUk^*-7dQUPjLqud{qqKcUzK`_Px&%A?pdM`|2gQf|NP0aMA?SpK?~Mp! zY~W)BoiET8rx&-}3E=ChwTqC{h2NUr%ov!}FC4S`#l!ykT5JT4XO62fL*I0|fuma- zgAEUNFvOQ6kA4KAFeeNzmD;Yt{($yqHfRnmNk0|^D@LDQReWmAzvRZtqMCj5dkK^f z2EZSly1x40RcWK+zXk)LW@t-MoK*`7qU=t##%_3GvI5QzohMih_SabP3eWNAdTDJj zsT$(#Y4>&hwSf4qwwil**+`A(xLd7ai&5A6TU&aImu@zHC~oLKhW_Q{(gd=-DG5!2s?=z zS%_iCg6wcWgW5c0-sv0`Di#V82=@1r1xev)GGN>sUs%qzz)~&bsaT&tYJMxTQ*Zk) z9cJg{G0m|pWgLaA6GV2^d+M6!?%eW+@9h`hY44NDa#VnQMPi-R#^Q_;MW_* zh~JSKUZQT9m{EO`y_%L3W=UH_S3_r;heO@x+2Cr{zAp@t%_*$Hr6lh?5$>@c1B-A` zSfF7aQ{RAfDMj$;M}~T%hXu?6(d(t~rFrhpjw2gv3!Z{rRD`(kZ$JKqyN=KE^ed$1 ziIX{NnB{b34ZYKJ@IlCO5BWM9)|@Indw11cQ>U6SSbeSb=5DF2VCyj0&s1e8JWC9` z#gZSW*Fe<{Pdp#C;<>2)ZS|@!o?DyQ#1UKVii8NIrN#I3rHKx)P?29do+g4%LLs7N zE9F#zsmyf!eGe76d4$1EY0TIh7;Uze^7uPmw6xW$v&F>3WP5!=hvnmfRhXZ}o& zUcc)jD;Hg+0VEC2yNSXt)HqKOSC6WG|LtlB`mitPz${?pI_EFRWh$}c6{GLU%Y?0j zb~79Gb2S0_73GFP>jqBigd_!>8Xzb{&H*x^a-LA95|3Bg2o5+K?fI6Hiub1$kHes% zWZh$tbiraexi~ddVZvHOTG$E%9ph2vWDVfv#TN@im>C?~xiG7lz_g&HVvb@6G$BUY zx!Zg9OEn95Zy_knyQt!+Il2YJxm?nzuFSjT<)?+=wFFtJBV$8Z8hD{CXJEm4BSwMR zv>&4{esPx4ELP4w>;J(7AwgHyCu=2-6(g&jDws?}KnBt$$}3{+j6b!_h(`~bnUxrK znoc=tvq(6uI;XWq6ri*@(X}iXZu{gPIo;9Q1W8qm^S+0ZE>vXT5mv~FYY`hj?cp-X zo$S#Xi*qvKQG{cSttF3LjlFPzDM3cFN-|lZ@5LnVmh_xkZH1dR$^|PhNF4Lm)zooj zQ&KoGmb%&(^2Yb=Xc><$Cbz`e69@TX>uTT+b!)G7!GiM%NTKz}JC5cw=(+ zOzQiejD3$YZi-Z>tEqNzHF^0{eDq;IA9;sIB_Bi5Ll_YGG0v2#I78{+Sq$c^Ch+PY zNXLxUG|4456fVKOig1f;HzD21f}!Wj6(sX#uME~id!S`LcJ_({qhExw`}0gJDvOum zHIMvcbus?e$KysdV&Jfy>+QxqM*5JAqu&(|((XuAKyuS14fvVbt|tND3*cAk_nU@z zoA<&?1zR{^EY*~8MW}|E3uIU_GDr&i7iUVH#&^SP=a6n+!mXdAMXkN*NEw0bj&T+=vdX2r0oM$c>CskC!v(Wa-YjH*C< znM<#YK(|NK7M6J7>wXD3F^tXLvB|B-|3<1|-FD44QKH`xSEA|xd8W)J_VxDLQ&7mI zo*cr{HWNcDXzwVYIaT5e3w?0juXl`J72@?^=8CZ4gknG03o?CiVg}u^CxMUx9(Kej zBUGw|qe6+h%9uS+T{_3b4&!bT+YG3!+3D=BGRZPXQfpwu9ejrj$w-%Q8a*1w1FxVh zq5N6CY5tX&Ar4qBKd$yLW$E5t=xTkd7f;AgtDpkRa_%2D;uQ8{#_BEkbIK zMRS~^{G4Qg#W?bw0Z0{+Zj&(j;G)W@Z;F|cvfjkjVU!+Qx@x*o{NwZh(-TK&3R}}C zF!rHRA!wmkF@Ur@UsHzaI%Z*SW|@~=Px&i2N?S@qMULhL&%D+k6IFU^$`GcKObrwg zRom$&sn6=}>4Ae+y@-y97I?4 z0jP_E=3ONOE606&-&I`jc!5xAENw3~XF?01psVmf>JiG>K))p(t&y!j5IX3M21KLO zE(;_{ustz}RSJ^lUn!gyLO#zBo9s)EB&#y;^KxR#gYk;%Ip5vGei$o8uvShra=FpA z+a9dmfCoM|A##G9at@TwKa|(|>$QS87&9nNP3^Erj`_f&&aluh<9O*7oZ+SJ^R2hkvO}UKt|TH(?$8q$6pU z5to+y*`7WY{t@}0E7w{K5dnRqm!dffaCFv)+vuS?hUA(ugKi5&eXx$<<9icBXAMMhKS=&+15SlN^A>5hr=0^bRF8`LjnIg7 zcz@E9%f|7bsl=)J9d?fB4wWL$_P@c!IcfzYKK{Ek4Mqb|O3`2&T`Yzt@ZS4U5;h(! zBiz1i-Ppa-k%mNBQJ=Dq`9e4#RBvuSKibKo-FcO}lEmGS;MRrC$RO3W+kf&$G3Q}}?+mr}n?r}Q9bkl;)OZ83b} zrK#GhChs2=?~=cY#MKmJ=L!twGiI+TU?VA9!;o={nq48^gwdyEH!VVvj-!n0#{_vVQ801RA$}?=9Ra zxUAvbs?^S_FYe8|*!p{ItWpg>RH{GEZR^`M?a#@sv~UxwI2suOn%En9KN2vmqYFa6 zrG(?P#4T88uurZl3((J={-NMMHd=4n5o$?Eu0;!nUZv4=#E}1eH7#lMnOZiRse-jS86)gD8ne=;tdrZUg+=^Ev!{lZ2ZX6R6Bz-hMa)a z=JcnksZpF&swbGJQZ*OQDnI*J6&mXsg!}Nrlh(yeHgzgv!-3I`UN^x9>yKYv@T`bIV)yAAP_n|PdLdrA;{uU(P-A%!ucAvP&R(VNPdCVV${Ml4Ye<)4M`S;qZ zACF#LP%lrN)@V!ot&te*FdO%;Ejl_km@czGi01YH*L=Q>UJD0prQRg+wrC(30>qxu zE6wCy-cE&IE`GoNZ$%~c?0Dkk;O6e3toR_J@PX+pB``lIuK3X54cs>?u$ESM)K7@>) zzEIe~;!-)1?cndcB%&{Nmx_HpoQDQVsH&<}Py`tpLwLD&`{u7FuXeXQZDOw){{Z91 zm<D8bIs-dD9Th;_mpzwBG$a0( zG(?>}uYW#rdRH*M8*jW>BJTltKHWlJ#AH9?#7tQ}jKV?)Llb**`UQkdj4k%)$OMHL z8h{)w>5BOU{5(Y8$WetagK&vII~!9#Ma-tLWja2^s3r3)W^_Z8Fy&L?RKanGrYV5i zVH7}WYJI}Cjxf^fiw0Iliu0sOfm~1}La_xY4Cq2|kKQ)U*RV<+5P|sECkKiBnC6N8 z5$XM5?fk{?q80QA)Sh)rkB77=m5bvxwSZ_I8{djCsPwhL9hK-TAnDKqd~-1 zoJbaU&a8AU(E2nGK4v`wltNNg0{i^ik(azGDIa`IYmpFD2qJg7<`&DB3WTF5L>jt|4OKg)5=rr6OFCL8~cB zJ!UP^(?=!x>*U|+LX^He+V{5N+jyHh#T@@&jxo$>Ksfa1T6C!FuVkQTP@6~D>tkwV zl6}$-Ys&L)QnPCEJ>x`Gp!|3PW+sHV=>$I9@%qA`n(?BZ!&7wp)>o~ZT)hxN)ZEFd zjDtMeCs4jVW*71*E&^6{7aWZjH;7d&nu684>)U$GnYll7wJQhGYW7Y84M!Y71~8yr z1#k@NRl#Do>6J4L%F7d+@R})2`N9`{9PZD~if*N#X)F_y#9t>{RzgD?QIj1QL{h57 z#w>4%o%J+x%dtG2-zjA&_1z0EkqzT}K~;va!qY}iw=l1U6?TJUzlT(QH+Znkq5Y@u z10(H;Q>CJV1)BROmTAh&ZJ?TIJaw#k6zD!Ey7G3MMospOb&&JyHkCK0Lnqvgp zm4HD51k0m8`R8Bo22+6j$wfP{nBaiSvX?z2iE+o1?T9(N`kHX@W``$z+Z3 zrhN3;;S4(kGv!mR(c}5c^$JJF+}++f7-o}z_R${hK0qah?68c<8&kQlpEm)rrjk|G zw!_uf>f8|nQqt#_ zH>$#EKHG17LSws4QU^%oeJV!f-D%`ZjSL1XESaYZlWTsVo9$VVCxIY^BZa-n@uB^K zdCi)ODUZF`<_ziBI2c`TFQfp_Fdxat zH$Zoul{Lvq4tSPz(pcloF#M|~_I{9woLz0wF)tf7w}!7;R8k0+5et)c1;C3fmN$+* z>w}~p#fS46tF^&Re6w$4)%2TOSuJeArX3x%pj(X}7M83^x>h=EHr#!oO$R08eUacd zcHMa){`)mXZpG+>NbwPGW|eB2R*-Ww^5?OGH-winh+9x3EPT$Q6Cu0Af_vi|%rM+k z9EL33I~nE+;stc7k9X9}&W{LRT()FsxzDq;FlerShpkmvY8}m4x)cSP=#Ufz01Wi! zny@YOdqx!Ry>Gfrja4yIiprHWMmz!DVWUO?H%!v)t?emUbB*j~mYVxA5kGP!9lMId z+Kth!uwNQ21yR+Tb|wHmi%!qXKNY^vdTkxI!;G1{&^psn8D{6#d#Rb@K90P34{&bj zaXNb?Eo7jw#92(XpD`x4Vl>bp7TM34`8HmwVSj60CMj^8A%lAP4Z>-q_OktLhCWqkJFzzHR$kO4F}dAtGDHv0}0exnaUgD6>KE?%#aLq`yAivBSnNX2;J47wH@4!r*^Vub>iF~9D2UCTah{`%rNq3JoSPL}5RC;Yp zA)0TSJ8jC>HchFfZa`Z2F}s*(!mJ)@U?rV4*GW20KpL!2uKgRg3J9W9V?;OjQj3V$ z3yJ(~?p;wJBSz;>Xq%0Q!+aomr5rK~)uoHMazEfgKCDwZo)kcyQEn6Z(Z)t|vND!Z z(5i^kJMie%x4(@M&( zvXm()1x=V(%bfPE^U|E@VN;);kdiDy8I^rk{mb6tvg zX_veL`9Tr(OkwZNXwSULX3&_7Q)iH{f$&zTFd1al!cu?M{wY)2s;SqC)GvsPJ=0Ax zpMg*Rd}<{SJMTAflL+8TeQjnEldi+4;;@Xaz;#s4$n5?=nk%z;eg~Hx?JB-;suFB? zxgobzBhLrPW6JQ6UIw{}_g9&&nrRssn0{$K?(uyW=h4X2Q8$Y1%yq2?Vl468dRxok z!W(j;$WFCzN9;s;X77o>D*j@Y7eAQ20FnqKVGL6B31enwS}#) zNUZU15^k*qbu>qOMPE!CX?&DqDUr-GuCSXIfL117eeX~k?mQ{{?L))cS+`TY7{8On zGhh%Nj6w-g7w=tB71qm4gbi4oKg7XDRw_+rqt`(%`n3>J|Ha(ZLOSk^wQlQk3-I8( z*WfAW;Zx%bfkLLq2YOzX@<4%NaytS|$>VA-J`ki4IazuH0~>fD;V*zUZ{FdZ$B>&* zkxbgm5WyeKBwKOTs>Qr?4UB2;EUd!nCuIcdoYb zDEn-4{kp}cT=du5io@TBx=o)^6F8~~ee2$UvEWdKNgF;o-M(R&y%UFvVB6ovPZ#Gr zyAv_%m;cHxt5ADZ$lbJ$O_T2rM|nD5ZVnF)M%3@R&E|a}%%9Jy&11V^9_y8LwVNIF zm*W|I>9I?)z7rEh0(@HDVekS+c%Y*x%`!E87_=4KSeP zqHk?JZW@c;_rBBov;CufjRtxNI&VD>l#Y#!{X%7m1kguMG+_2x-}W~TvyoDBR$kT3 zP=S6=DQEq=Ls2bS^|KUiDgVdEoTN6D30zpjQ5IMW0rVICWTnWj))#&>gjLx`zN*`f z`K_lQ%BhA)zd8mWjFncS{yedMWOJ!`I>*=kP7xJkoPEL*58+!h5-Mk!2R(0uYpAAduBb{SZa?0T|QJeBd3x#Xj&7SKdYGTOJYxm#)=W8!kP zuSzyj#TT-tKLLm|$kUML(|)ovg6)=Rbf+xu)}cQ20hY3PIlOT-BDF}AkqjLW{aQe$W;(kU|C}SzfOk*|Dbi;Y4@K<0iFyi?{O` zGoBQIW!hr_W)np{t{wO25;bg?hxYt1(g6=5UQ>}yC-YRmBHpxBRD#i3;Brvwj zHO4~yY^KWwc0O&W>4}Ndco69*+PkHZ(WtUSb4`AFqM*@Vz%; z7$kyD6_Y$&#Y3!`wVw}#-cs+Nfw>)6gak|SR%z6lX4eF-Rh!a^RBd@hhiW+bh{?{q>uR5z;KMGGa+923^y9pF*7ni&-{Mk(1GT7#7su~}v^AiuOE??D1w5p_NBD0u z2B}Pr8(Axj7%sA7diNQd!n(1WYhgAfvV}K)x>y6VP%cvpI`0u&3yC^Hb4Nu#30)vy z=m-MLysyF6X7^sq_*EWCjF(Uur=m;|pKG{gw7{4BNrs?R0C~&i)ygI{O;@UKilB;H zy0qaONOMNgx38=?Xyh#2=y_QWjZ@I*B1o&(+M_gj|AjFY@&pI{9&UN7`o&5KDPUiB z>Wf}ih-ZIjSIC1){ZQj`wMmW#a?wXdJpO>yEo@3|LP!0oxSX1X=v16)Zi!lch^}35 zl=0s8NURr4?x4i?o-57t(CBCG^WR-p*F}3T)14JE)_BJg%u7I`-(R`%PLhWf2aamp zVrQvw6|$enPbYwd-AsgRT}eNx@?2UfR{;0C4Ue?rjJ~V}OoH4%AY4XQT2bsH=7^_C0x>E+vrlOaArFd%m==oVFWYwrx_x^9tFA@G=Gx@qDc2U2%_kZgl zY2RK4J@mmDe7bP^sGc$F?MkOLW7spmG5XR{D|uj)tD9W^8sWw3XDZ_0_;a=sKbfSwp>Ih%E@%WBa) zq#!;O{4x|$Uq5U?-jEVjE@_TYF*i==$~1fg)tu%#zR|zo&%ELszbfWg7x1F-3n+Iu zLSuPG^2U1m`$L0Ky_4-ZX9^pKn$;JfwyrfLSX)Z*_&F-mYTdP?LuD)AcY)~C4k?wX zRlZAUJjvC#`Q%CCuTF}=4a8;cIE0rEZ)m6MeSiOjMNls zMHvZBwlnUkA~mrkeW3%m9Xt-qBqMH%x88o1@%!VDNX}jX_>b}m)ieH}U+-bDSMcF$ z+*(c`|6jY7#Bn8~QpPHJ`zID&?;KG9P)u*$m;Ms8B+wb0($DUc{Jo<;iIYKy_Kc5l zEDK|4lv{an`r(>lk5)ZkBPPw5=4;Xxvyr$s?8p-HIs+POP6n^N^#5qH{J1{f>J?tY z-;ddPUW-|^T5MeE)fQD&{+!xi@0ECsv*K3U&x*KB%RzOOQy}NbGkNv(!{w^F3Ec{l zG>Gcs6OzrFpEMG#V+6Fik`jU_3RQ6t*liGD#*i4g=7Qn=VoWPK1PO6a~el3KB8QR{CJZ_n39rpT~v>Au2OI-R69Le>5t5v}k*%!}a zhcKsIz}YeYAu7-g8)GbZ1LXF-LL#v=;3LVCl%9vJ;xT@Sm-aJKIlFl4(e`VlJi7~X zJ?s~|)>Eg0sR5u-fDIJ@Ev!GYoX+_1Wa11ED2;XIUcWA-E%Mf#I|Kim_ook=Hv+rz z0`wRE-b+b5q4`a|@zZuL^gL*5kKL*5phU!VFb-o2>C`;eCe^~|6Ds`zIjv$_r;-shcCOIX{Ob|*~Xqu-pq)&4}qO^Gu$i}i_(;X5FD!2~x zWt^1TB}|wSwkIzA#;-!$^#1rvKset#C?ZJkoWocV&*D%{hB#+)w{=!iN+yL|xe3DT zr^-!AR!(a|TkrLYMXwZ9M4_WWnJExdy7%A;AyMA#wQWH^se|6^fpofjSeqI5{*e<9 zk1Mqouw+J;w%D5c?6AvhV5sZmFnN|QK8+(}NTX`q`s4z}<8*>(Ef6bZEE}=ZJs*x2 zOrxf=moroBP3vl_5vj}o7wIrd!HrTqL|7}8;DI;h5&&HLi&ofP({XDY&p~o}s+Ld$ zS}4OLuLg>ncxn+&76KCuCz*18Y;!GKCoY7#>f9adA_P7pn{>V+zRk}SoDY&ZeVCk` zJA;(dh55&uv+sn|mQa~YhaIH*Ik~$bOB5)+)^B#*9b!w1s(so~Ffq`~Z%W~K8cc&=8vp{1nj}uIp+MyDOcGINK6CQtJ2GNmkY{e z%VqR{KX>uZ!%O(j7R%3rVlE1r|K0#Dy}oB4E;g<1UqOtnOGGXegVT7m9<8(`f8-=) zOz?SSmwP)D_?T^I?OSH{9isdfMt!(D zGRiwO@=ri0x`B!w0lzzzb!R}|L+EAHxH(S@`S7!U;x9~i4NOjiGji@U5&r$By!-Fw zKlT3c-oLBggtvoxf13Wi3rSo!`}?~OqQ0FORwGZxW|1sDA*e|_;o^#HBQ6-N-TB&- zI(2)q)2E&9IUvaoUraZF@*w(AK;-7@S|vM|^5pJ{PyZd$xt>?=iFxwCTxfK@-mPfv zJh0!;XFZ-;R7HXz{S!K(V##be{S3!fiH4f!#rJ=&;dh0XF+{L%nEzK34qvD6NXRXrL(=`0zQ1c%A`qp!2O{q__ z4|5Ev^l?$9&>5U01uuGA@JsbWl&kBV+NdYmCO2QMB3U~zW87n5KFvw@r5>*hI~CmhKs~#mBr8s7yMo}FYSZ8 z=VPM+8)GLAnG2HmP>PA05_wQ6?q1qnsA^Vh)Iywgvf~!BRKZYKVzrZF($EMC)b8X# z0ZWE~L>e$a_jOoKHVe@ZkVt~`J?VWS;?G1xHw_CB3k%6}A|MfQHpz1qA|jT%EG)#? zR3wi{o;wiP5D_uGC%S2fvx#%EC5T8K-;9?a&c5k$^5<$B(50<%6c$U^x$?qD#)eo} zNS_mtJnwZN`cEOfnfc%49$NkRkUX9*8r~urViqT&BBkZN zPeesUMMO08&Ua=;={}6tp>C<9F1(ou@Y-fbtdB^&LY<$5j0hLQS>}cLSG3|AnM>nT za4$w6iJ40rNWB|H@Spjmv&&jpL|o*0 zXcZ)dSRAPnx=*vzLy+BqV7Uo=xg;=|+c?smY&LKuljQlvQDrJ;LeHEBC!~*mALI3T zP9Ji5+m2OJbDCcG1LvTP5iO|@x@e(TM+bcOCnLo@bGj1LD<`UZZPVl;Y;3|P6-kCL zbao5vBnvV7BK5%IkY+)32mY9~doS2?75jE@dnyevcXEGDiUcZ#Kl?^`%FWl!9pPY~r|FcUwcTr!6Udb`A<06g zIZ=(!!B3b_mPXch^;9}^k@ZkgKk0lTCWfa>z*ABx1oVEcH`EHu>jV?OKLb1?w+i`q z>AK&!c2DshSBTvy^ZZamU_b5ser;t#6Dz!CByHP?d8%zYHG90?U&mkaWLUXR1>i`eS(85q3Rh;)%IEgxAFk>aDf%-h|>9cSXIl>POzg zJsj~B_sn%yOP=>FfS^J}FX=bo2IEiPTs5}VZ8RQ^aEw0NUfbBK)vXgaHWA%>C(-LO z=To@WS@%Q91Y$Gr^kA%6thuiBH~Een%yD+(U)A(KgM?=KwB)0Ibck6MCuF5d{+R;x zK`CDCy3p(fDPppqx271?x=-zSZ>f{v@E?NzZE9Gqb&J zuc?b&Pl)|*shTA0POY((iPM)gDNCNB+~14|SDmmq<7eOF<;zD}F$T!ap!8Oy?Zv;p zEVb7A8XSVWn>f73gZ`<9wJ%(~uixe)Rd@A@(IJx=NqG9=!GrsBz5SG36*Q#kc9G0t z%Zy31_74Gg!zj>aW$g#FhBJRZ-(}VGP~W&h`B%GnsAR%$%Q63bcUAPoARqDdi>c974#_W>oAO z^#QR|M;4f(>Ca%@kNE1rs&>u!tUp0Y#v=)vMIHi&Sa;^YFU;7&FWZKr(O#K@{NDYt z5C(6QTjnGyuFW}J)INx<-uuhubZ9dE9J@)B7`B>wO% z-Mo$K0&C0hvabhB=}q*xynbrx-G_8rava{G5%NQnDEa=v!o)zDSdux!5wWOTc=9H- zrFXRX6vy4;NO|Yf!$nYPy~JbRaDtHVShWHVVIZNmqYJZ)uJ zu>a3f-86otm1-7DC@?RfQ zO#HT06F*?1?wd9mc`7WRff@oo(ad>qyRs6X`DyfVb+NioIS*j`lgE9z*Q>qB-+=o} zA6`pf)Y)1kH*N!FPb_+#IGCua+p)m-y6)xN;!)5*mV$H0%9Zp|qMwf?k8`AH-}QRL zk@5V6gn%u{H1WxMf@TJ}wN_vF6B=?&m;wx#iNCLcB(egMBqts+HhtCzBJ!FdC<|eU zx0UYFXb9xEF)3(F9}+>;ZU_2~J)q_PO8TVH47Irr(R+-be@;yKgybIO zJ^I%I>IAqZA!w+91+D+et`fx6GD_cAUYp3V9>%r?p6P~wV{Pvg$MC(2-#VF9fL-bC znq-}~wx9M}^jF(_A+dT(M7tF5P~6c6yzcQjg@#ubIM$JrXZR;yPWu=kMfbDvvMuZb^Q4kWXCeM z0YePel?>n%ivH>=ac%3Ap{Q@s^+vw?j4DH1;>7z1o3AqzOkOn&9r1cCA%VJn`)e+-i8RHOc}A8A#*i9X>oi|FfLc zntpnExQ}}>v`yU*+o`eGPFwf_>UM>t(`H-+Tp@%>B+Oc?MqM?M^X{-1M8C8Dx>*;0 zB&~DWQ%A!2ixOB_0qyF-#hB&{ohPhi1gjIImzpE{md8D1R^{-cu5h=y?V3*3?mQO* zy$_x|e^XAbH9wVAB-{xDC!L|dSj6QVpZ`^K%O z|Ep>evOtRTF~VXhanm6bjkr1JUd3DECalGT$Tp*IOe1a@y3Oc0!7QhUgP% z^iB(dsAT1lnJCYZrSos2^i#{2^kd7I;h;(Q_3Bo=C1#-o**ERdV$>d3GHBAUDXqx6 zo_U((&6jzdG!jZX5`-D{wv1V6frx@{;%L)>WnO3IqOg?~Blw9WV=iu^K~x1FC~|YR zR%eF2xr8i1jNvgIxJBqeh5vt9_`mJ`zb*NXBmVQCv2;5fHvnC$@HTGvFLyZq#~uHV z+5czo|8XOJKDf8FH^d|4MhCUIHG1n@N2&C?emd4s{6^|DGze;gF!r3Zb3 z4lGimVq=mlII0f@8MAgrVJ%Wd9GUxxzO?pGvt8DSos1(ER__#fr!ocI{O_biUL75H zBQ5md;rh?Z$&c#sDyTgE4;htDqy0YI@H-;_0I$ybcYyHYQdrCBa_m8!aBYj%JDH%M zcfe*nUPK*MvB*vA^T{>FBESj`hC@2}hn6k`v{HTcN-*lqK%gHg6nQSwKY zOARv{&|W1m)+q(|#mOlX=9)BE7v!#75iA=L-c<%&Wt@@nYS=0PIFHSSH{*e!@#hluNU@@mi|I52W?X(P%l7`rPl3FBxJ!-sI(sPM|-0V9ucimug zQn*=n%yM{76UAvvO1yl3mX&A7+XC;_;0FJFBe0I^jEe^#-ngCkUMR1Cy3-g4x z+qkxKF#7}cF!sU&+GG2?1FoTxDo91K47Up;m<-*9s-}~ThDzN~PW@3uk-IVgE7NPU zEHa~j3h+i zj~!^Esv@nkSMIVHtLht*5Q83%SOeb6s8PO-Cr+ls^4q6>Qu8KaV_3Ld!k^rqr!EUJ z6cUi2ybVwKtm?7h5SEPMu@I=Bk7o9~YptOU<0BSGo>n&{6B6M`;LNFn`!id5_T^A^ zjV0fE`8t_}ZV7&X*s8q~R)EwK36ElW?|>@KPEP*xm`5eIm!WRGbil-E;tlC6vf&xm zhMB83yWFD&k=FTtKN@@s6a~8mU^+eA3(j2?LMB?p5ztoU2Y!hRe$rYPy=Q@adhp>u}6k z0`IonZ!~>olr@F&!Te8d*7=kN8k)z2%KU=1b+khm)??Q!TIQoHa`*kRB}Q*qY2Rx1 znrX+TtbWaW;5SSG@J|Zhr`62oYtHW`*4#4C;SnOKZc;%NWGwnq#+-(*w_Gd5>$)g@ z;!E!+WpF(F26r8-E-BV|%#5WHG$!M+)1WVhltYpEV+3-8HUkkd8_!8t8O@FMx` zRomr_jI4(5N3D-Wzmx{ucH5lXF1!_~EB|fw#K;PdK!U$NtK+%~NB;Zd8&A^P>WxSr z54Lg_`L`;b_N$;^=ey>hb`z2TH*2R&>ij8N7~tYy(N(nCyfA8DfWge(cG@wTI#f=cdP;3+C)~yy za+X@fnr^(l4z20M`o12iuM71=O|`!omN%WORvt8q>gHxqtnU{?ViZ%t*P4X?7#{?u zq&a*S_b~@=Dw+1p1n=PvEMJ=7HZ&JZrER*Cd#k8-wCX<p+uj=)Hc1RNedPvOUj8&5Bowk2nU5NE>8_Zb2eoY^q z`zUo4dfiMeIPCG0=MOjn$Tj=XpO`;?kOYerXcFxC^}-W*42(4x7zCrA@`rO?dg?0x z4W$vUC4n%g)_g=hp-93ZTUm4SR`Qc@NcxMr58vnTlRkf+{g?-?S`_~97Ja^|2H5fW ztFVMy8l<0K`GVPc8c)E9*8J$#s;|>j93Q^6w$UJ`7vM69AbN4{7K+E_em(=!tB5;7 z3_`{q8Hlw^ZrKAK6Ptqd!welw@8qjE888(+{ z`dib;>u;~0hI(FN5i(I z%kqhqj26^TnVsqb_e!7u;{cS1DG{EEr-E15;M{pzF2u$2;hS`ofeHH=mA#mPRf0C7VaLzL6xSFx9LnhT{)TDH?1#;T#@{is9WzIkAm6FxYuIvoh*FCY@VMEh zh3w^2!bV5<=PtS1C;XP-n)Am$ zvG;xnNbl|clWlqn-~k+5_+12CHmEE{+rUkLJar67rF2Fm@4pvYgX_LUqbkH`6H=Fb zjV>BMzu+7)E4&X1?i8%MN-+_EURG<6v|@6IG{#19wTE;MZ|~mA&eRAKE33qx{5>nm zynRLw_$4)^b=1zM$|LFugb0M6F6xc04=JUWe**~w9Yt?hXVnU}NXkkU443%Zc&gGb ziez5uA8h(I1_sot{oIe8dZRN7HIE|`TJ8R4e`;R8TRzaRKk6pG{Y50jIi9+Hv&8J} z;tbow*Xo$ulI_oqkKC=QiY_B{8Nn8+6MjeI&ZXB+rEAJIW7=KJkc^q;j9fcrvnH^% zU0ws3)fo=D#i=yL?qZ-4N2;5~&k{s&Fp9naSH$NlYYX=$sZRimn? z6|468wu%y?6`Mq<8GCQKP@~k08Q)fuAS8Aqg4!fT?b=%qvG?lZ_dKuX{BiGn-FweH z<9^P$=YGcfJ?w?Y`eRu~YW+NG*ZV_5^!)RJ$HuW=@zV=q38I_5O_1;T{+K+W#)b$} z6|DiHJSHm(?9{b7>k{Q$Fx>;fE6e%2#$`E?COidLiG5Y^Xz-Ug+?@qib5>76LAQxu zbFT{#8=ExB6ziaJS21Q4_ng$V`w$msw}?y}_vRpO&vh)!j?Oa;%w|!`h5~lM7$Gy8 zs4S?8vc*1qI4r|^tp2C}EH26gp93~tv7TZmAOsHK&Jein@JiqfY9Qj-351u)41RITwEzkAHel=YYTo&%b%tJZbWcw-Kns1E6zE%1r{99letBOzs@!s)^-%| zI@mRu&06m;vB146@-7^m_*4B*oXFxtcyS_~~;+xNZ>OrX?gw z|5G9x-|>OjA?VnIOR`pS>w)kb&5@XfdDC>S>0U=t?oB{SZIP2Cwt44B5VO!?b<>@1 zggal6XKtdwyL)gE5*Wr_Jm*lGxCz{xvz{vE8}V~!SkM(kbO~+m&d6eO>Ix(h$96E<%RoSf|j0)AcIl|M06tOV)1eChKKf!h-kuSCKoq`&L)Au7;6J;d%vCgN-PR zDExa94;nGy{I=^@=OR!NxKwAC=)Vn#b1m2bwMsUnL3$kA{6Q!gt@f5 zM>=ZvFg8TLi4N5;Y+{5FMtAn%O2Dm3jZQ}aGskS<=TcM2>{=16`^H_K`L4gogb|-8 zJxR}289VU`xuwXYMQViHq@*D6|5RD+>t#!C?+JC*q_OeO%<(Vj0s% zJRnjPP}#%1oj(YsNWkL}(8m$^KB6v}*fH*wJ0*ndo?FoWMqM@McIQx*jrRq$3PS8N zLxVQmD-tmM=^n}-DLfw()}yrjddhIYm6mfnG4@wg*OFT8{fG99gHKNOr}}Y6PSjgE zb5hbh+9C2o&!{=I-U*`p^|yS3*V(FrW)c%zY^-F2Hkm4eqw-G^$Gx^&XfzB;w}?~} zm09Gy+8;_BwzA*vW%|}`2Wmz;N}nsNVjR)vuF0(Y5H5`w;{CxibA72=3yd3k8Rh8v z>hSeVx^Q-JEDA=;ON=tI%!JRF>16aUxpGzwI|ohimU`+d`E`~J@j;Dw`+`1`VL=r3 zD1Di>szc0}B8R8GletM6xYp6W&8=(&&V}qSM@#ifF9_dpbTe1-o60rY3!U;;%%NF4 z)7qYGw>y7%!nfavRJo81QWl=SPQ3vg@mM5KrKHw|${pmENV_CyDkZNn#4CU&wb?r% zzgk(2RyKzY_ZLg+bLe$~DtU5qo(WZg?mFmi2bu5+lT?|xK4pf-D&5CMcPq=NR8RnE z1;Gy*i&T*j%l9oEd#&NkB{eK}R|sh=-(^tC!2*gr)$jV)2iZ_&!CQ{g1@E8S;%5=^ z5T3b!)OOV99AeZq))<{Ulji%B7(-+WVxtq^r7t0R{rK@mel))xJU2%TRjDqlR&mT< z?&w`lp||K6lGu?cS94&m=L7SH92bpl=;mVg>UZZ6y(E4^i!VJ94WXKv;*J zGUKB&R@q72`rzsvnmGalgXPu3lBBD z8EW~g2H605qr0)BYNnNK)W9M%jLT; zv8VqHg_n*0?yRFv}{Vp0;;Ga)&PS8QDVQC5#3)=gDkayn?aFQMr_q z9J|PBcB+e|rUPdkAJIt`6a0>q5L72Qgx#7~ENF&?z6k0MHUh4>ab| z@=}of&F)kpw8M?VRz-V-9URV`1%m_x>uxgm*5g|121=?ain^q*KE&Y$hJ(RH= zugr>NEKYLxHmyIWR#K#4VRUSuI!A_P@=42wRxmTnc``7=S1G{(2&mJl>hc>7zvG}{ z=vo!GV*Zt_0%MAirr47Jz5c;%;F2ZCT3WX}!LQD4$(%EA^Bfwc^?9JbI4j2h&{7oT?g@@In zljf&>S7N`?<552bYDJ6He3lz0ms5Qz1{|bvR)VPax(MeM2FUT&$sf#rlpe*9L-thK zdP3K7OSe*NKQu$13poWx4g8)Rp$5^@4C?$i{5bU>POf5la3mt*nynMp>xm7N09Zy+ zjMWF`+&Pdn104>A>iwWp*aUXW&SJ_Vql?MZVHJ!QRixVqH8p3n>~SF<`N+y3^@*U1 z0qH{I({AI$Onp0fCcB``0AH^BL+}_twwlN(n>^qtU~^#P2519Lej-;Iuk*g%{(L}n zr8O(MR`|>?-B%HEgENFnM<{iEqGDKQ6GBM+JuaP7V{Ot<%j)G%1-{#yLd7e85XW{k zMb$2zwv~x(52#VW0e$qbw#1&u%Dz#FJqPW@Oi2WEd6onGRrj6LGkH2}3yxZ@K}29P zv&JJUV3~s)Y#PHaLggTu-)M#e{VQp89p_<^^JX2kmTV!h1n07%CB$uOfzWSWAo#|y^Qy^htf0o9{v88~2&ms>?YIEEn0;mH)-AJ;95mUdpIWei}y z9w<*>Fxkg4oPtEZJ)cnsV`8YM8_ETS{|Uf!AkHF@i~Tjygi>44|msx(u=UC z;>Y+PALpEaWmi2v_Z)(2E4|vdrDm#)qniCsCE#w;w^@tqaoN^WA`2XCPLONWE+u%m zoL9iaIAZ}>w_ECv=-xYp=VSDD8R*F}auk5UpzH5YI|}=^gl`OfiiVk24`g;o8E3gE zYm6CzxVnqYD?KX}+1QfR=o=e1s3s#cF*Bn7R(D;zy+_o$uROsk@W=acgYL$$cYwN~ zo`EIKcjtVi3|4bu0a){lcU)jyYJxU0VueN{c>3>eiG6U8P9i*#zbBq)uAa zstuD!m4(ZJ04skzCH1Mwa~Q|3N}`8Z;jShO#Q39Wtf&B5Qjc*M6NFqgnnMQ1mcnW^ z;v!3}rci1#EeeNeCv^`8IlGj_UFZc>GGg&WVK{8ccAEpZLc>4o_+6z}8z^)DfI{!i zX9pPhrUr=ATvc1vq(@mjOrXRc+C9)0vew^pD4lUir#ZCA#&sWNjJes4;-S(zTQmJ> zC{)Gdr;)L&d}+F7rEVVFx_X;b{%ZMHMdoCor|NtwhVa){C_a;^A?{hO zbyRV{Oic9DIQqwd*;z(~``#G&N;}DRs@eBRu7+P-Aq9V+$lWyDoj`%_0X3AQ(6m9n zm?cb(5+w+U8y2N}scW42eCQ#qShFUR3fnqjeDkFpIpt~>yaTW0I`H$V_RhrVt&x1F zw8^lxXA{5*d|qR#!peGlF4ON`8D#r%cR}#Am|9+IuWd{vbPN!L+*mj)iFFaTwDyfR zG%3R{_DGzY!`nhCFpuf`-#whL%b55%`{Tl7qeW*I!iG>1o9Xf68Bd8Q7Ni3#{bpYm1@GX?}f(N#jyxVvS^ ztQq?0R>a~)99qw5#5$ce5UN$fj!K~ zFr|nLj$Lg)j5?@X(>)p-a4*gf(R@$@lHc6hQV{O+eKY)VARVjV)Z?zZL+eK^4`mDO zlz8_D$FryzxsE&Ng|-e#M{}?(=Qp*u!!m4qfXcBO=DS#9gkMExK#-rNHpwr56aWeG zA1z+D=-11W=46YyH(%MlKCB0Swlno9>h^@wFyfw5>M%aQgUjq{VT(MNvB6nA)$-^K za+$pK$2wqC+I*5d>Rva;lxU6ju|79+SY&s(EN8jUNzW-FNbUNhgr+vkB*2S;F zRe%!^8}nxm%(@H}`*%y}%C~MWvhA-Sb(BISR`ct#Vhn}yfv`F=?;|u_d}^~WCg?$F zebX{G!!#*L>ypqzgvxwvX(c61ZjMfpjsZfRptk2&HP3I2gT@XBR_ZMJl{Zkq2hHv| z!&J**?;yS@8XGgYwTMwC+4|hi0+>==AUW?K3hWpW{aAxJnXi<)o5FA_j%vLFcwmy} zvKfbW;drhK#DAX5#(*@g0~)m31d1X0kEqYBI>H55A_`Qa1ZR5^6YjX&je zT@G%SyhF_d~w-IE_LG+1^HNW|FdkeGtZ2 z*HT&iv%JA%OHCF0ewdh=w}@KfES)SA7!TlZoT+H?Y8;){t(pr3xT}gHMmYW38tpvlf(!@e z%-*iG$l&Ay4w^{H*z92Bcc7a-gcO?r0V%VDEf?vH=#~1jgC+b>DJ}A-c<1+vmMw%} z!5ql_R*bHab!5f^;`&f#S|R>nHPG!^z}8|892k@qrHwrV27-TD$R^Ei7GtX+HcOVX zjqNpT14oY!*nVu7#v&sKUa>D4w?t#x@xYelA8UH*4dH&kmLahhi>9Vf^->@7m0DR{ zaHgH?HLRsN?PsM9@4yzfk=?7?U%m&SR??x2f|o63gDH%R9~&E|T2~0Lb7ZRL?PZg5 zM(CU3GtXGvS3J;l*c>hrZ-Ss7##;HJ^Wj7=rgla+H^X}t<#`ME$2lH4wuYdIigN6P zJ=w&1`7Lt>9u5MVphztIN=Rij(ZRZGn zXjK~_Sh{fQr#ScF91*8(ilLwLx){*MGr0tW z!Q(+_d3?^&Z+-3%X#vy;6AyRAxCaSEQu&iVi3>6Wy6Bs%GCtQ*hU(>1$G! z1=NC3%R!`TH3>k9VszI)8!`nd~bI|1tpGndzu1a+u0DW_q@Uaj;B$ByJ83jiGma)QBN zMn8H()yc}BDe&@OBF>pS?UIS+`n)Clzyek4^g)rS>38`%=pQ>F_aKoY@!@YesKTwz zO>C{7DNDLH^zL#DH-nvWwC|04AC$1r*6`=@xkhE+pUCPp7W)NXV10`J!}0zpI}n0% zzHwBPlIcP!%34nh%D%-`<>Hn_rmn5GyIaeNpixHS^|$3j%$aqO#cG z{@_?wyx5gt``Nmg9ist4_+3@on*M9YPB!|D$kt281AqB7bPIdFvxU2v?M6@q4sS1E zwiS;0&a|zpRq@g7_4s5Pn?U42{-4Y{)ratz#;M(XRZ-#f-DT~=1Z*ttq>e6|wRPCT z2YmVUeiB9%VHc#3*QWG0dw>Q?G>ukUI(04pNGX)IwxHwho~s@JB9AIYm10kgGAJvT)6^=>St zrV7_;Up0~tUYp^{5P2fPY@T6o_1aHHZ38y3f_&6g%6+f5NrvB01ht6!z=c0$Vi{g0 zkRJyCjGG-fC$}n8`K(~6R$hpokrK{S+Xx zcy>obOi1i~lg&=>DOROC#bx}wN@I0V*uG;%f_0c=Z!l#|G;mN1c~18|kxU2yrJXUX zWegsj2I!ZC1o8B_WolmRn>yRYX-Oyk?01w++HOjmNp)>AC--3Sa%oZGOjqX z^Ai;$O`!5L!2I9e&KgfJ+L>CQ*Wd22n^}fMCd04)wr8$V`Tm_~hYeXF&AG~_5`*s;C@3+0H&Ly;uE)J;my3pZT=uyUpDwtL!~ms_eii8i&HlB=b%JG zL-?EB(u3J>KnLz5<5)5Qe*Yxa#LZ2AEcH0cVqPHZ8I-ZT?#CvTgXosC_HJru+n+FD zPqWyT5OFb|lZt?@1+UY|?F$y(9%hNI(;g24yv&)re9R>M5p2^PzLXfZ+-Jmo!^NDC zi?$Z%FZ7#eh7I`prFie|tl;HQ1m5k1t#=M*8}KoG@(8{nVbw@Bl zafp|7gtK=k0k_eooPV77L#e$_fp@?6^g3PP&d<=O>Ok!+E~~FXJGuS**UB)y!MQQ; zd(~pck*N-R`EJ}H%DG7D=DtSMG<1A__>CMIzp#rY+t?1&{RmqLBL3&2mrOcDZ*)8O zEFlCd_DpMVjf7%2-$*D8G>*4=F$%>H=`va8iC^1mC#`=v`3X7iiKM>CVRo4bO9fp~ zx9dEibb46!vR?0XZe~aZ=wwLRZs=2#lfgd%^pcAP7QN+lb#?VvMilh=e=aKsyj;oB z_vu(r?k^f&Ruae_*w>l*yswL*W^diL`wI$|VQph55ywkD8kxQ+0Rt{5L5A5jv!7_5sz@#~*3 zX+&{q!n@#+<2xL|zO~dvL=RU#LiMFLHXvQWcld!wHkC00KfYL6@1_`xhe877C*&kO z<#CLKGv#KDt6sz-VEmid!j&>dstKf9@XL&+*-cC&Ai_)xKqLT`vYsN)9&o z90VueaClKS@1gP5w0OdZ2Pw$Q!csIXdpG6xB-Koh0VB?9_p2?l6q?bd>qC*PavzT8 z#Fu*Z$#BV6astyF!a}LSUzWP^!a^2JT+BsgyQMqiy{6|an)tV!`e0e)Nxy7eUFyd% zGY9q@yr^dzBu669-u_+Hk zCl5vcs({1}qd)#3MYb$tQ$9|YRLOR?ko$-trls!Nd$o*dVYhYp2jDX9ic@9 zAM=iZN=kj9FD58(Mb!w(V!1n;9b2z5=#4NF3O=$6zE$H9{E%Z|fR4=XA7Q@XIf{!v z>N*Y@L!))JZk(^^<~MJigCjUI?Ro5NagF%j=$M2wy5)Wd=gJlqoSVk6`XS^-mACro zV(rkD0eo#sr?W$WV>NJZ&{g0nZ%o!^F!9O;4f1mqZg;ehQ?uQ}0XgPe=y|pe9?A^* zNe>}ejeLT+nVRfqEy)^%8JX0qhAwQz8a9%v*i`91f18KrHj0KxivU*CQ~s0?XK~>R zVh^UeN@JQ>BSAvf3qIOBvfJQQ z6VPieIzO0S%uM_mNiKu;VJ1dZGjCJ#o^g6zCGH9pWa<3t_xWo5N8WokbVii0PPk{~ zpSN`*AHHdT88ib`o93a;^xV(exglrr2YL=t8J&wyweNmT(t45(Bfk^jUl$tu`MJLn zSyA#+jIYBB>g-FZW32x%<5nRTyM>z%s&yYbyNTxcO$6rU;Vw^3*T>bPQ>N?w66Nw%gl8@-rYxc5!T=1Rtl)#2SI%5z1|?Ejw<~sX1(U&G;{WDA zkeSY>yG81=;Ajb5(4v*6hXoM87YhO%@pw%ZY}AerEz@X8El6a2k)`M`W5oFtdZnza zBn;+WD=U|+lbMOQikge&*Fj{+Wot>=?l%drMDyzc|GH6piRam7Yqhon{-7CfmCR*! zD)so)A-7!rTqcg~tMsxqbNar{zz!mLD5xjod`ivk{$GC#3=FJz;L|9+W%C3e;Jie( z<4q)zI1$v=>@aE^eh+%OPBb9{SxwCZlJr+RZ;hoFoL(=>-S%z`)Yl>)%SPO+{-goC z{L%_^60Jj61owsmNBwga7g3AU*9h8;&RK8ytjw&eoIs&LX?@-3K5qrRWN)yycO#q+ zQj#T}BOvv2)(z(7=Aqs^KI$@QkHsS)sf9e{K1QDXulQED$$nU|Guyv9H@Ivs%-Xj4;0^x$R=}BQcn$d2=Q%NAO`TWcKe?<_L9KAX|T5Wk?LGkVK zsIqMH8qMkWq)w2Utp%k`On8uJxDZdhUAaxR^L1k=v;Ol0&w1C=L0&{u0Nu*a~9@iyDW#uk;{S2 zBA^awN8G@+nyMZfdVe@YZQiu}-6+kDWsLn(Jo6Ev?dw=eBPqQ~3>D z_lKgklA5i$I1Pry(FH1vpYv^F#9 zV}u-i@8{jMuiY<{4d987b1|)0zEJ_4L5&*M%{uYn`!|1FcsJ(_1G~3=Lx0^uQCW|! zI9+Qtuv5F&Ud_WDy>a&PawF%WnILXM>mTBy8;|4`GwXHCnVu4s+SMX1{(kC}_$*a~ z!H2=!n&m8B#q#s&TEdnP`tWl28}1i!$lu{t6NE|FvDfiQ_2GuR+YVIju@(A_sYU$` zzt-@)4&5D-BvQQ(UVxtbI6lgXJT=eYR&aE0W94|oeSP9+;<4+2yC3>SaIO0qc&|2U zr~W}OQej&4!knkd`h`>J)5Oi;tYN`H92(qV3`uaAv`SN*MGt~MqK7p>WyhMM+bZzI zQ0(wr`#(61AgG?5?N8#aBe)P;YJ%Lczi?gt%cGZ{mAEF~ig01Fab@W=SH$Sxt4AT@ z3rc({u0e`{JWt@yUi`WUy{r`TQu)utclk_-L3~^AUmmDfaD z0iV^{j$@k+p}eIc%h#`~|4F*T9eWZ6wL2^N3s)J#9f!?GpE$NS@~brNSX^HZhJ0Yq zX)#>=%|lNVWM!Xidt;~T>vTK+!n5WlJUZ83MEN!yb4Q=VQWH{5FUa~0c*inq8-53U z%--(SxuhzgpY%%M&%c-V=Y^Q{uV<|-p$`@aW2Obe_XmzSWvNFo0e1IYLfh)C z>SUSvH@>P04~ww|M+E*ASO>Z*?p<075nFk>hhWB>>T^#BA1XkjLaiVZ8-c27(J_4b2ddP(iynWMwM4%A(toIc90f7V&& zU$>lX{#M0(_c^OSI02a3_@71lOioM?JSc@VgM&`P*#G`ojXs02dNx};o89~^coCnU zMCO8}D<2^YPF(xXiUSK@t%K|JMFkX#Q)vUUf`9+n5eg`@029t4HOzX_x68ycF*W`ZH=ey3 zF8>(Q+n3x_YylcD{r;DZ)z6rf}NrkrNqo{SN@jzuTR|LaHA z*-l8%?cRi+s>s%5lFn2a=q`b5=GQ(1fZJQ>L*OFihGNPu>md{UOF&ZXcxoW~e)Pnp;iXI*-5Npcj`X`LHUdYR%$Kug04sMWHiK z7rFc4(n_%tl?t8<*6yII#nWpYVzjrO_3qOqL8AnFBCQpk7ey(VjnlCQix_D}gg}=J^t0KwRVtp>nzGH4>A0B|mDaYE->(wn; zOt2zoSO_AE`2ls;xz}teO|1Z;xU=CK;;PoluAD%^-B1#ujmzHh6x;nf`4>ciXN_#B zXjXA`bLk91J*F!BVU|Wmuw{-NOu$@xu)Ra$qQh8KW$`|WZH{Fjic*Oc+|vD(oge_`FJ(bSTFg(+<CiKa*0R2W>zyoqb+*O0Y+|RimE*k(p3FrsrA*euXR( zV8{DAw3a~4Mw3fjVtATxUwXZY)!19~YNVF(eIDgz2_DpQQ@bn4PqY_Hj36%G&;^8s zFpN$8?6i9fi6Qst%edSBl9Q?p@}@5l!irb)o|0>>ULPotu%w}kbWLSYrRG{B-Uu7@ z)_XI;kI3zLH(!)LHgjyqf7_-Fi_?s*!z;CPDGtY@dHa)OG)(6LZ?%Wz z`^?73ME}dr8i9OIjX6FwU-HyQEqs$E)Y(}OcP(AN>sz^i_RV4*D9`7!O`ifqdWFE_4o1nCvm(iJ6PokpMIKj43bI!2-AkRW8YDPlR#Vg2`W3Q^tf=KW;W&#J8&$szoI5Lrexj#c+t*;pEU|I*|#GmUpkCSH%R7>#Dl z-IN_I#0DU_3g`vYo?Hhr4)g{5kNExJ7+>7ws%zBF5d?^b@Z1U(8RPa=20$`?4ElKPI@ zYy7*kGg_2v;=;(bXc~H)8Ns<#WS}jQf8p+<7jo&G$Qy?Nw<3j84lZw_K~@~3g30WA z)TGL%N0Lz?h0&`TT7M_n^}9NP(1{L;ar=33x6VNsZzfdAo_g&;`Kmsf+jPN)%fq82 zD|Wh>cfX(V!c=@W#qKRJKJ85II}#RtQ7d#vWZLI5STUaCDJ<~%G>U9EXNW8nC59=0 zf6*UAJ9I(K3WvlQY@g=rJN$dHaa;Z1p(v_eW^9{s2`MftS zZEL%{=eS@ObxGY8a53{?%)gOxAFCTpXGN1)SQttkiU>v|$qZ^h?X0#Z%;574KrfRC z{~Pg5A2$l)Bx8Kd3@gA(GF7o#)M((&ZymjOweDc%uO{=!PjNC#X$#aCvj`FL9ippp z*;&6;=<8$31FOiDypx$+QtEpv1VcT$rP=-CF79TlWj1Q!UhP-Mopq?fvWIqU!;Y3XaO}Vs};_S|VxJTip4c zgk{|EGzzm@Vc}PDO6g$#lpRU7L4*yZ`~}acNFk8Q$bQ}jQjh)B7qwD9+rvQIMf`6_ z!V*jpmj}c@|17$B>1EvY7mb!r{*awa4Z~JZs~9m;)>D|BmW!nEjgmU(Da?M;=|jMz z5@@V_(NzbPJ^XJrI0yq!Oe28Jc<)YXd%uwXdB%bI=$rPX!!7btppfSqYz)=jXmI$> zq)yI7JEoNKI5lfY$c@5a(t|Ouv6^)bamh;rW!HZCjru%2`A!>a`G2}bl4-0H#-f*ZW9t7Qn=GSvf8!Ju1lAZ7 z(dfV(?PhU_`&RkpQB>ZY@6`Dp^+{Gr1$2gy033s z-*vz1PxSxc7p!8;d<$Ml7JAe2Z5e1p=Cv(LeCv?jYfi3@Kg&AFJyZQxza(KhPID7p zf4jb8VOQShU@b*emRWLwO_*A2T<|`VMX=D0?XsQC>jpjA^1$tr6tV{6Q>!s`)dcl} ziGy#lA%g~{!j0+36CZ-+EVF~Aa>)J3*|EOIr26hd&lbIRyE=tKkF4KDyiGGUzI!J% zG4xV=$?USW?{q4Wka96wf?>Nmwg(o4qD@CHgh%{+m1`<5BJNz( zQ%}!0LOFK|sR6>4$f_sfhiTV}%tpJlhG`+Pl5~Z@+VBu)VlAln{GDwen_*;aj~|| z>PYn+B1v@dtZN?M59Fz~mE_vm;w{5QFsg<_xg)(G=F7XhOB%dS7X^RHs(tIJY3d&; zHr%0HHSC_0qz0Tvath{3d^WQ&p{S}V2&a!iH9&EOYc}vQvxC4}PwP1&%bxCl+KIyp zsfWoCpk=#$+*IbtdIxo`rwL!Xb{++6@5uH1PJoqTPY0pPO$B)z3uy3tW75v{8a)iU z?fX5ck#Z%;So`x{JD8#GC+}18oqsw@$PXf{-Gx{DC7IrzO|9^$DL?{ ze9FD@E7pz~;FvPqOCPhG9{%e1ViPMRVlZBD>)(!tX_;x6U!Mj{l_E7+6$2P*H! z*_``D{4n0?()z~34Pv}#@c7@m%;o&|zooEi_8B(3zWnG_*@6c%j&&vBpJ#>lc!H*z z3(FrgmZ8L=T6T_>My&T1Mel{~d z-j%uRdi}+9j?_SMctpo9UU`e?u)}|6v7udflcu5tb$Y4TbXexE)0gLJ6)WgHT^kCUDOzKOIn{wcDX6yQ%EY`4_RYc*zEHq;~t`< z*_>NPJ}C&nUo=}W3T*g!7xW7&n8aK4Uwv^n-jwsQlWfiQ=|1X@@nF)#vn>cC)bu?3 zIU`D)yCUhPpxeruZ6l#tb7aFGuBU{K{}Ouyctn0Khw|{ooGZnXzvbTgpSmdg=GlY! z9YO2hTDu_Fr`D{9q2`c&_uwTtj*$P9lpbskkjroxz;iyzlTxM(ok&?d!PlGXuU9nK zQLM*BiNSwO#5eBcucjHDO5DQn7I4Y@EncE)wcbPtCTJ5`l37K+=T6|9E~+e+-ksq) za2Cn9_Wdz}+2cCq8qL3YJmX2*^=f*+*ZzHdQH`b>O`%U`OR}`ds7Sh*NULOi;Qlk! zc*GT@f)+-@L$Klex(BAKA;DI~)@7~>s{XMoZy&OcUu#9PoA2qklsyzlW)y#L>(PC~ z7ZIN$A8FsQ<7fN$iaUl`^E}S_?M=Ztp{EA_g?`hz%66IWk!eKfhfggp9#k6HUG5MN zy8Y}2@*m7?o)=eyQg36wJ=H99`LgwrkI(GAa(siN_r3J_4Z_1PUk5ei)ZfTFAs z^Mc19U(+SwQ2UH{g~0LJTb;?tnfanevk;1fZY-kGf4PKSS8C>5)i8H;PZRDB^qH%5 zh+hfvyFCnUvu#+2XfyL82m17Cici;I5*In0W|vz+4W|VnlpbzuMUp%!bypfYf^Pb8 zi?WrcJ@@OXamNO;t&n1CxrhBh{+33>qS(^Fo6}XRCWa#qef#6a(zV(zwU?BTbgUip zt;6nWb9U#&J9WwN=0zr=GU3`af1d|VOTbk*stPR$om=DeYssJIdWn75fZQS2pDG=2 zjD>BWKy({ybrG@dNWamh<%Q@}OY~hTmkKnIg#D!3v6i}IIERt&p!gfzBGJW1sN@1S z^TzE5^62NErpmE$7Cz2lSNxo2ZX(6(-lh8w%B_HND53tNqYa|N@_{bsB#OnYfFh+6 z{^hdD2(QK*#%@sv8|Y2A1t7Ojc-SWQ?S zw@X>+D2P< zDFB{uHR-xeD728Vc{reDVwrcrT2WeJj1Q)2f2_rnC0_?aFfE#8kBkmjZ+Zf?ZW?Ob zpv5&ca$eo7jkVpIC3#`tT+env+Mbub48QmAlf@b-KJwK!N*UNjy?)!6 zura=Y`&{Omfa08^1?lmvrR@D=H{Tvj()uvyQXT@-^{wq0eFTGkwt<}x&RiX#Mlkl- zLHJ@e{Vwk;Me!(mzi9DhhT1hi%7Sd8FgHkF-`LXQN`WS>%AG<}Jfren3-4Tgy#xu? zl9|#LTX3@%Q@~v>PQhQEw7H+IT>*lHMn3!pr~)%aS81?)meMt@>+Y3ogL#bRm|SPP zGB8l25P)E9f;l?GlS(-xxYV8_l`FfL?gchQ)GP1pE{v@FUTqNW3GvWp4RkhTb~7@+ z5wo*!U#eWq$gQL@+gDW7#(Tokkic=tUJEPo=p%k^i(mwOd|S?UTinx@2GGxg{n;(m%UPul$3Y{$*73S_dJSpP&Eyq>VS> zJQei8e6mH)%?;q_W)PTPkGSYOk|XXWJB1LZVOrdjL0_Gn;u$sQ2i-BAnjq8Vu_6L) zjRMeeuh;SNamv$(OHZSJt^7G5^)5JVf+gF248Yr3v$l%XvI$VC; zt0$r=aqg@0@zFl4Df$WciKYoJHfYK|E81)gp7@&-i#~T|w^fYjih&J6FpRHV9wz5| zL>ZQHt~9Q~FVxkf4CpyIJRtg|w{*xtXmNoKA@PdqO>7U?Xg}pJ;?j^22tIup@hbQp z=kC+lr&~!I>sn{hqObe!zHQ}uuY6B7Uj9CyP}@Uq;MVlLf$YtK)BQC>LO#o?!=U~_ zC=7V|D_GDwx%{I8{P&PDlA~vXfny%0a4sldGm$m^pUyDO$Xy|8`HlC}Y+gL6-OZN; z|CLGosMg;xzsT9N@G6q!2laCDPZyfSqNMTw?=BJiYJUVM229{4iWE#s3a!rcQ4H6$a0Qn~si;6-so;ngdllum80EIG99#`Y6!^y|%^}oDXr+$k` zcausmm2WHF;_%KqwH@z>CY6D?2DL_NNF@f9K5YIhfH|Rf{g6-52>bGA(c1Kl^*agB z&Bk_OFuan6ch#N{{}o`(lXM*BP}g(+nHISkGp8^p_GH|6lSYsc`YX+L#nR~5SUq1L zfoJ!P(RevyA6_&CQ3x^v)N$C!lCDy8T8lxCp1;2Q@8w^&<9@!^w*FpZb+6B-+t|HD zm$AiQGRw`l(5Ss?@OSw>WkahIU|{njAbG-fA2)6`cHKiV*+_l_?))=e&`D7e>odwh zyjtK@tUaqDx@2MH+GXe+ABwSArV3BTCVEXCIm=p^xt8_^du{FM2j{r~ac2^+vpN$usNeSkST zRR{EORysQI*of87K~k z-yDq#=sXw*oGp`7FBZL$WX*V$q5gtPsFQ!MTal=p35AxK=BZa1^3kd7m3PNme1 z(DI4SOh0;@b)-&44vXzzpLfnx;|;s6sTiMe`C)yg1$+(8dJH2t6$4Z6ul2*IVR(?& zMDhp!4*t)V6=G`s}YC449JX5VYTdFSjB+N^aHkRFk z8E$q<(=tABLm@n5Td)~%Cqp69rB*8E^ve7v#yDQGO1gFD7FGtAp?L9?75IX3k>#14 zDWx4|QF)&DX76q|VgoCqrP|H`&^*D%`jl zW5-ip+Gb!SyYPv(O zUWz9YyeZ+ZaqCZKK3&=xYozt{*N+WTrlHp@_X*0mqmLeY^Qw4LH61IbfvbDgwab*& z7hG5}HQ&!%^}izT&fRpyCUxsu;>FR6msgf%>fJYinRAUXta_tqR2^yLlz1!DtGsnj zIK9QwiWS@GQ_*v+9$V{ad1UM4D-~g6E>V?{iK5k3Cre)xdLt_I@$=Vh_Ux@@JdSgp z82VU2iB#brq1Z=v3b3+(62Th8|Ent%ab>k}-Rd(2GBJR(EdtCf0YgIkdJ8L$rlE6F zVZAHv1j5BxIOUKrh_m@A?x%cpP8H;XJX(q~EXb_Hlr`X?>~D!O8cBOT9>+ymFki{) zQ~IRHest&Rcay4p>avcJ8A$0epXdbZ__Py=;uCp1J+D@s=vLRc^6U^st7D0~LXbB394m{=SQe^2J`v+^h%@aakPStuHnoMi$0`Te}L?v?Wj z&+2+VcdrsxbzwV=QhvI!la+BW(SH`7zw&QCn#Epf#BK~yZl>DGdn#g?GGxjyu(!Ed zEsJ_wiRU({pY0#0uJ<#Z3xTtcYPDfSE*4 zg#vyunD=;=J*MPY9W!kze_EI9gGJ8O8xsm!r!{#fX--I7B<`ol@912wau|ogrc(5i z%K15Ua_xaN{=(=W4_%N(O3~7z4<-&Cl(7gL6idhmui;}cBfVgr31UkrggM1qm{D&6 zKX|e#HHj@|Qwu4KgDEwX!IYlj!r_}a3A4k>4(&2a%cuNzxWvFE=l<^6HlDxA@;(KRBY0?{~z4)xG z$gzN}ajuPAo2Sf$khnUO=h>g#I=$QZ7@bIu;-{Kj2ZW^XR_gwCK>2b@@hqyo`OtDK zgVr4m5d0m#D4;50xR zq+lzUG_0g3K&i<9;@sv8(bwt!NXsWhVhyW~jHebOTB~O2)&2qATHiPsgItydTBn^1 zRb;!!Z;2Wz!e8^{O3%!v+Nz zgsUSdOEF2Ag@nMFQXe%ucs^V~*%JQr#Y{}f=#h*vu$ai@B{F5AdgWARAkk0Liqd5@ zRiJq8l+2N*h4bncdwMLDFb!b{1fc;-3s^&GHCT&*o12~rFKs?!$f$0i z;x4{+w@WyUg)*saNK#}T73I>HDj-Jwg~WX2K2C+HnHZB4zENN-jFDzhVHjCViX1;B z^9`)=;u|CH=PJKa@lyKZ*HvCQqUA=SbmG7(s-BrBMWs<4&SMWTlOs17T7b`*nUH;j z*&fQibLv+j`ir$a)om_?>nqy{+Xho8t5!t6B=!|=E5AL3^lvKxFe#~1@c#ugh<6St z&>Ne|bm~Htl<1Bw>MejZm1?)0(7l1AJqmvmrTtT;O@2LY-8W5TEw!+k6=gn8T56gv z-=-#_mkh3iVy4-MjD@E$W?!?M{j@6-l})HQ!BsEgJ8!Pc}o5fuh^;>XG*%ptQnPD zw>TXkoh3Yq+()tx)iEplH0c(F#F)TSdwW{7scqgK*E5 z6AW>bP61_QaIOanq)sc8Fs3TOgsfJWl{bi|0hLoA-9N(JI8Bkls`njp*#Yq79b%p7 zVLw(rx9{kv{TVH|)zwdYi@}ns$>nGw@}~KO%<&sZqRL>y6-Fs=SXwTZ>wR@!F6y{b zWxU1=!pxQpsAy7O4{ofr#jPc|o3@J8HZ0KI->GktYTi#>##;NOZNKYBhuPT|A1Pd~ zvP^h9Jf*eLp}}4ncDOuIw(-{7U1ixiYOcFvoUuB1E;{m+o5M%o+p%`ktrjf!Xt=Ij z@TVQunA%IVZ&otbj*GIL3CVMLOP!WpEK`Kvf?S2lt}OB7n%=wU(vG*2J=3iN8sl@d304B(yS%lO@W&wHl)f;hY zWw#b`9jqP0RH5!v`26Kc!z!!dm7(*n%!&-iW>~Q(ssdCfL?S??1|bN9DQQLdC`2&} z5FpZ|&@~E)C=e2~tpoxPNUhq}U6OY1Jh_;15&v_td%7m(rNrOZ7&3o6>R7m(M@)|}FP zC6Oy^6wJ&ivlmGSK1@~k`vmuU`!n6yLG)CAk5tkV_gz?I5rz~v3l(y*uQV@UPnVpv z6_UtSkdLZc61u72ry|I-(S0@(MD|s-*D#NF*dlu;*5q)OkTuCzh}Ir+cC%|zJ;>?P zCRKvGvPqaN8by^ie;llRW!i(ftiAxqym%sHGAind{#EvRGJR$I3HoXk_^HFlze;Sr z-evN+e7u*9=%3A`+_h>*(wCWJS+Z!gsWk;zh_fm>;cF?$X`-hIe@K>wfZ_x7T#}Y?YV`jblelMARvuB95vfm$DGnQ?7(p3Ysc# zC3AdVz>a{r{BN`9%&e-*GZ&II-)&H+&06EL$PzVyqW{J}j{4;f&5 zt6!l*=KOOl1(r&l^XO&Zj5RT9Gbw43X}V9Kw2j;!T{7u9&JKCN(;1mTEDA^y5RZza z*bUV=$-LklOxbS{l;~Y5%DV6`QjO%iG9BvZwGO?LRHsO|c%yn(2+W5a2TQjI#ar+k zmpH98PJo?FbqQAtK{XWt92lzg+wH(vv_fK^Ciz2VQzcG0i z#m+3a9TL3l4N_P#O9$_l624b>)y`jLN#&BqOf6+lznB#=awhi4wAUY-Z6IOrC)$deoJ^`^uLkWL&xo|V(NYpXf0T#FO2?4 zlO{}=GH#zc@C?H;6Eh6MO%$@Q48t(YFu=?(Lku$v!!pRkWr>GBqLYus@zVQJ>7x2+ z=XaY9zo^kU&sBDvZzyiCYRi^){r;Z$H7S%M#=c3m8@mxOh%&ly}7Mp4RN zTUWZ27sCigg8lr4!WZhXGZ52dO2gw%T=-M>>E8=Wd6M4ok7n~|{8y%t(vLj!PoF1g zVOY0hJq@X(+bS}vHDMcjc&I;WGL0;H!jjESF4bm}c;uYIM2WsP|kadzDSgw=`R(+)XWN zn%rIL>vObi>SD7s8Aysguet+E=bTN7}r z_YdAJSM@aN?5S*C7^!6+w-VW03)q+LrjCIyHNqdBuTh~t zQGGy@>->H{Y9>LkO9oXLSy_PfEJmveVBBLk)9JOQ)E|_Fh&+_D^eyiVAL`%T3}gB zk~i+BNKbDY)mF+*bD?DCg`4Y2%v%L+o6;K){W|#(jgF#r$c}S%5W41L@SUJHmW5w7y>Dog$fyE zmPANlh6D%@2~u(lsg;?cATY@zHB&(~7NNSeEsnO^S6a7=jjmj42IXL{xUp5Ck-=)~ zw5+E!v2e`PGyLdjo7%0TR$OA*nb@1gw%m!EYKvo0wg!mov|1Tg3~LpNvPTRJj+;NE zU3kUbw=EYTz7AJ4TT<#XzIB}i)?F$#tm5fR(r(j~xjLt1dI>2Y9%QTsJ5P?mK-#AS z)!|Lkjsd{UWg)EHH$z??cO%QL5Ru>wmB2YejKd&G;{ZV*$e9ZcWXLcq!m|mz>YvMr za12&ttb$}PHqu%{qSJEBP~8lcCJY%>n7XFXX*nh)^v-Q{O#oalu)DZT%>X3jJ(61C zHBo8@6vZ@}Q(L8(C8~QV(ylqo{4kuhHG@>r2NP<^lLrLgCRP$wNdX{nb=sMf;+Tto zaR#tiyq6gc8N8GH=|5NVBPsf#=b_P+3}iB>d)15$L)mS`Hw_7|eOiN-^>fj397|Q38$)U84p9)pfe%E z391en77$}AhU(iTl;JX2m8uflF&JmfOK7zTvn^D=%chk#H&zj%WvOV9&Pv5BhHa}@ zjHNeC;agJ$fi{-rw_1iM$eju`OAxTG6}6FRyMp1mqb8}PV@TC-nuiK%hUt{znx_j` z+JJDB9>S3TUkphM0VESVaA9FmK$2pVrIJF%9Q>#g1mbK=s{@Bdsa2y60h(b?T&iZX zMEoN7(?!b)c?{_34?d~TQ@7@(`V~6J;|rN$nI=J4VK2q|F+;r@Q;DF+24!UwK#3BB z5`+=31&pgA${~Q}s>NAI=+UURm0>ZMMP(~VZiQ|})qYfe()rWaHL~`1106%CcFBV&LF76nd$W7D~GS~X3nQTeGh4<$dS+GM2yshC(N9%1PHDw3F{z5Cc_DbA zp)(ArZ~-i;Lf`~}FjA0(Ffat6G$54Kg_5ipRwhGhQR-ZhM>#5NP{|{=MNYLmm26S= zC-_3uUvWQrb@tMYFsrT>zhg1JCel@JLNciLj7mSBMqh{GnkQTH$@odfjJ(0ARcVPTX=${3XNRtKv0B6>iEhziz0kh2Rk z$+nYqTOof|!58u{OLcIwjf;$x&mR1)<>jvVRCWoKJ5!a`s&sM-CSRwa$r%h687HUh z?|g+1)#X*i3ojxPO5%aAoJ8X%rc0}(0=#|YK*1Z5kR%Ml6DWbEQvZ`Dsj#`67JsHio z_8BU#olk~+!&ZV8GNxim9WhT63h5|V!ysirgaSc=B_dQHJE#LFKHvsX(kn>;cJzff zsy{nXEl|l=qcDeTshH|Mak{bHrCfyHDrqw@hAZPMAmEwNnVm49m}@FAijN0(&rjF2 zEw@TyTByXqiaZpk@JW=8js-TO)kigUb;yrA3z=_w4t`~lLs-dM+o}BurK*zh&9Guz z?JH7`nF)}8VJOO8G_sWW!+=ivCiC6f=ZZahmA5H6WhLD?sZYKyhC|jT@DJl!pT1Ci z+G#!-)j^!Irck~&yuO>cc^4A0y#hVaU?#!&6(L$tWh`zfD)9mkKFb6&mMJx9si?!%CjR=iubU;+Ufda`c^g$9sZEpd%CNtpTNab~3opW7%P;SJefBX{ zWj)?sXJFEj&xgvIrqUlRdgqISRIv-F>M3TXt2wEKpH)mPa3ygAB}&S`*a1DE55C}6 zcua6vebmJ!uz1g!71vDmPIhB$wlx0Ce&QU%qu1Ziuua>7xM7>V+$YGi+e*~ zO*KtrH=^A)O}whoZEmI(Xt%PL8;vV?!D1~}85*mNHi3ztyJQ_orPvf%oFS{ z!e6`B*sA_!6trKfPO8UglZcnj)c$rKrmv!%Q`y3v@SHUj@5<)w^4(ow?pL%bqgVx6 zP(TQPCO{HmAc?N@$V{M@qJi;NZUQw~xi8`trOfRUD0LggY*aUp~fIAP$5+|&+Ib`^4%vJHjGO-fTMD%A{>#Knn{U`<0H zWQSp$g)*UsWXi-CQ!#v{tX%pR*z0c(9M0 z;!trRi1xAu6F@hJ>2T0Z)@wiycZ(ysjtcS%a{CO>ohhm-u-s}2=N+BPsJvMbAz{ptrN=I3@oUtDvZno z!r;yBneqPsPRghBu(k(uq;#+?NRPo(r$^D)%BZzfW9LPv8#Vb(N4Q?2s+#05)Rg^VMP+$bGu(SXMgmfuj2%uacl(aOxXzEZoR_frw=aLSo-nv}nXbikh#JYts!`bf~J z&0;YT#(zYcs-95y)b&S1lfWiJoUF?+->^>~qL@FZO-Ry@qOz=(d}7VvocT#zAd9US ztE+0zvJL90Xfl>a-CCZ7C^Xo(nSF?~irBLVm9kok6+@DOsmfn)@f9E_qF!Wj@HEv%J=kzrXH z_)=GRn5#k4029K(1V{%lkvs_5v4Pw+q_LS(O|(s=;}v9>e}|gC8Q>$>Kr$E{4511% zD=^913RS6JJ~btp{5+!kl4)`u%2SZ$XuKZ%-a^j&x?SUcqi+4p`>a{=$-_t)LQ$L< zqytCRxH9rwPF0 zgJXoX_|Gd#ZyqD1E(^j8Whlj}bhmE`w@g|0urx(>IBcur%4 z<0Y!?-kmpGxzs!`-fp|;r4MgPY93zH^x7wp&0(7LjuFn;H@s-7#L&*gm0Rqa)oDG8 z%(mqWPi~aYG1J&*Zt1^L;Z~u=z{gbfSCx2h?JpLGjcc{dFmW!@>!Gli9I1gc#^YLa zZll*|xWf?T`GAh+7i6@EkfpArR}!ksbw|OzE-H_H68Z7{v^1#V@nF~^R)lg?assKL^);a5tv9$`8J=?(X|38R}XlZt6>TdN!2 zth-gXwj2y=jXY+}&ECnj%(5HQnN2+>g*kQ!(OtR@-8e=g!5pK}8%L3Ua#&7g6E|mG zy{kIR$>D1i$Zx@UCaa5Pu+rGFR*S*#k`W0!J`$2;hT*bxGO#%IE4W?6uV8L)JrXj* z!Mw|4;>pgTz18PT4s)80^vKsraBf6bpkehWjE z+2mY?&Puv!&TBbyVr;PWdMi!eL}xzAE9*Az5@`pmt2ARL&C$&*c|18>WV(?g9Z-HTbQhbSkz2&id1AB@>m>+{Fl$50;WNArE%)-LL?w_Jf7R80M zoQvx%i&W!I^>dWUWhdh`6XSvLd}PjPsx_4lrRdXmP186ZXA`2G+{Q}vESiR7F;|Y` z^4)n3=_{5+g8_x@N_CX_bJctdOCZCt{nTgE#*`jgDQhK{!_ zd%kehRh^5NA+xNyq7<%Wy(=3suL=xprc0B6XHegmXkD|6ko&WFBi^4qsV!q6m0tBP zrxVX>u&ViYZ1tOK+nQ6%;N-rPidR`SQtD8d;|bHGCB)iFi-%Nd#2MOan$6j*H7C*c z{64Sh9Py4C;$L&<-s83U+Ya%|ikk1yy}7k**Y4-b>$z3SZHD^Mj{IoQ%&Fs>=v_CS z94AfXIo~cEePxap6&zJ~>QV7-9@z8?&wdrXiRB;+C{nSirK)1Wty5O1q5Fek!ZM!0 zo2C)?IIPAMXFr`y(90;@0) zYo)gpX4Z1V<0R;;yZ1QUx*HsHPMXneO;<6dBU+|Yiesl}c#+oNtAcckmr~L8a~w)# zSMGT7p&j~zo}4RLsS?M~5gx^(|V9#wQYjHe!y+MY^cj=HP1kl%H7SM|boa`ft? z-ZFJ9<#7|OUN+>+S9bdEUENEFVq`qZ!PAPhPC154%fpi7rjqc3JGdsM>C%MjQRd@k ztAZor@}O7kaKOn;4qW#I39w=`NI8 z#f8CWlYF_dC1C5<#<%asi?1q|J=Jv1`q5Succu+TF0pUV)Uj6#EE_?0j)RfUfx76q z7Rll?ob00S92TbBZO-PJyB3p?cNNRQbXyiKn-@~zH!?I@H=&if^RBA$L&tg#3#X7_ z&sQO%G1tc2y4_*Vk7RO=ou%VBOqnub$ztJYX>ZsUeC*^q_0Bx1+FSNnsi^JEblEx+ z6>?78?VMWGGdL$2*M%0cmE@gG%A5Bqj(wyeyZDY<;LZlcb1pM}HD>XKQ&nV30g^%I z3@0InV05lt2oS7eG8QWZGYMF$A{YWz6(E*Mq9`U-SI7bBBmAuQCDjhoCQO+!Wa|~7 z=PXkBsmirGV2_-gf_nGSUIj02+WL2pyZ8EY=-wBVQuRGXR$;f6JuPK2GBYHrR{Es0 zG>dUQI-5eDFo7QQ1gt5LBu6ONLxxp-1OR|nTtJbo%Ard!lM^G6l~+7SuUVNfPj*wJ zwZ_7CWU`&QHO~;ejmw2DooeV-C3Hu4VKrwli;S!Zs;5aSWF66+>g>u4r7)HR(zQ|1 z)M0r*$!fBh`K9QV+hStosq{+_pDy&gep5q5tQlfxPX>;5jYV*tF*y19IXY?V>S$$L z={cq=DT6SKSjH{Ol(e}@m6cuhCYKY?az!^JeTT<@NkWQB1WLq}lPa<>lLsWwdfKYL zYDeK#skEcyO;Z-H;(Or4vbmXIa+#>eVY2;+>5-YaYw#Mc;I6d%F4D;4aycIvJ!$Q) z;fedOn3EE+pFCtTMPu;NpX|QM(mJ$_IF<2fR;6WT6C?TMiPFc5dK_VyE16{&^HL0< zD=(+<@`_h zls5%3n>IS*3UCmV#s(7*Bb1d)q2yd{LLfqJ$~hhqF_n%;CJd&IE2hBP3pG|oi&c*v z@|RXV&y71`WM>qoz9sp_UixJ|oY7%+uK%K9k3GsT)HZ8q$?Qi6M+$G!+`c7O5|@bu zz`~V38z5D;tx~~iuuCevk3sH=wUrj>s6O@hQ|)1lIsVl+EQ3&eiM2k+_(w{fb<$kZ z+Nt#5_;@*vUd80vV<*Gvy2b1i_LD%mJ=sjkg6CmVQ()jQ|li?y6V3Q#r!K5@T^;{*6VfnkHb9uFJw>YQom^* zL3%%&oGRsxo3h@){ig@>% z?-$4^>)9CLljMX)+l52uK88nPAAZAJB{Gvdhvh-=T{JFM>ab z3;Vs&m)S4JRFLS8hxVaAkxfdE9*K)qkvg zkJ|22rA5}jGEG|TR-ah1N3BL>`)cx}Y;z>cBcgcEDa^#-l$9U^?f_^*Nl2^!vXJ6& zG)>J-%$YK7r}O1r6#0F)&id>VEk#e%lEkM-jwywrgX+qN{25h!w6jHUT+6jKGlH*2 zsQ8V*U3?{&k7YXDFCxa}svOgFZIU)EIM#0E zQR#{~`)4%pwzs-$;Z~O`!e6w zX9xIyMLqK0=DaBGnGYIiY7D2zsAD0Z#ACmls=oSr=L7Cd>F@mOl2=D-St)5&7Ey(f z{OOeu{4rP?#e0+MPwdkZ)jxo|o&&>b7Pzbcr2s;RDWi37R1fxTdF3e$BjViEA4BGM6Dg zZ;doqrl4;Xb+`$drh;WNd~Zm3DxF6S#pzd0I|TDNOTA8c z{up#vvri7)DaV7X@XBwl_D$eTcW7^n-y7hM31@qmqD0wUbRQh`7s1~{zHp2NPC8S` znb9>yrbCq)O|b5qjw-n2(Jgc=b}e$1n8jTx%G7d4Ehjz;9JY%YRz z?hXsDJK4GiIw))D1(|+~7r=cvI_ImE3!GS6j4hcagL_2McJxPazt2BB$&>4!eEO&2 zo(bpM7+ynJGgiY*Y7OFy)~c+OzPFp}9?8s~&nMp}C+FgdKE}_|f9ze?JhZ%onaq-oyi;B|EDM|UCl3(Y^(?r@*cy5MZIC63TaN)>ERRUxV2-cNfQxRJWdmhf# zg?_qSax_1*PR*lgvPGr|3dYtc=9qY z60L_~e}gCU3I0r<*OSo`{=Tk3rIrvRk@(C9@1Qd9WT5pMvS}Xr0rU?)(DVxESQ?a+ z3krCN%9&69Lj1RkD1OpZ(!P=K>;RHK=)4dK#$5-5Wj`l8=kA^X5C2{V0r-kQCxQSt zo|#=Kh&T|e!|kJwv~#j}hEwTmsVm{{=sE%~r2s%5zZHrrNMcN;Bv8_w|CjqM9fAc@gRTv#RX)UO=cg&)i@JUf&c&i|NsC0|NsC0|NsC0|NsB)&%5vEpE-AJ zyYJ7h|94k|zkK>BL$&}G22jun6f^-q(t|*tY}(U605Vo{vDYKh*8fMxw&Tas9 zZD;^pupNPpXkpzHp;c2U1xO~qGO7?rB2_{Xiisr^Nh(l6sRE|hg(8TGK#HWLDpeIK zgi%qpN|K}`szjkx2?+^OBmk*Iiii-Zl{>Sl=Bb#49J&V*QscKpD1u4?2|-Js*|k6u zU<}wUw?eci8llaty1}YeKsR7_aP}YL!RYHQaX3bCqTLT3mL8)W~QB50Q1+`GN zGEksUDu7S`01Z({Ra7M;szRg+RESET6#!Z&0002Q03wM}t6@S^0)+(>kO3i5RW7uY zApvaA2U-;*QmbL4Ku`)4&^6YIr4pe)DOSo200002iU27k04Sn?)>0HvKve{Qs*s^T z+XPe;3IGbKC<2K9pa9f?R8)$o04X3yQEbov4!YcKiI|o-#L?<$ zNMqtilTQJ_T-2oRG-ge3A|8cmWE z@lVl4o=AF4GXOb8kP1kz!s$i+QV!g@7NA*D9jsME20$21007VfO&EcufEfamh=Byq5F7c2 zN~MstC^ssG>QpTyaIsjhDz-v6IFVJfP7JKYD}Yw&lC2e>aJE#5w&sA5rCLKkQPB2? zx}o@LAIq>G(m;>V6dybJkU^M|A}3$f&(>4+w9_V1(SCWS8F*a9R+CAUm8X_!V)O}x z;CQD>V=1Fn8fG<2YVxLN+ZMECGMi>>w3frOPLz9-+(A95s%a#vc_f|B_V`z&+tg+= zT55Zi_qy7{7FH~=Ws59XV%uBRwB4pNI?G#TWrnHPysa1h^C!`XnRKqJF5#Vw$(C3# zjIc4^O>Qn&P28>vR+d<~w9I9O>8|y&g~+sIveL^IlU6~-Q&ogvW=0?HL1(oZJ`2N6eFZ+l8~h12>hhtoA=KjJc_rG<+ZyA@t(<~GK!HE!C=ILgii zHY^qWqYjq_Jgj|JZPwe$&HaJ@mXrJk3SwCOtv=DZ5(Qzib%u-o=sWw5Y!?%lJbuB- z8#RBfAwN&~WH7)!(uJ2p_5M95{hz^;+a7YtkdR~uAp!#8vVD)&bwk4fkfaIyYfsR( zYz80De_umRz~WjMKFtSB570uMn5mDu{Ch1Oe;3MA!aa@}Q67+aWe4pt&#USA=@5)S zRpE!&K+yJs5Ef?)E?a43jHXlh>7{x%PdaQQ`BT+x`!8FXc&1a=@pl`>L%yqu(8V-S$Mi^OY;grl_rjeMjm5fsu%&}%$Sz^l; zw6wKp%{nk&4~>lv^s>4__H|BSK;>7t})2hz)J>1VGW(}9!Z!E&wb#z8D zqpGq@u0|NfPqC)lBxCy-n8u;Ckj5pMM>!hCWgiV%Mw*%|V|Hj|m`rJCX)#?>WN!E^ zL~9c=shP@R8n(4rkk%^8OGs+c(AFf|M%MM2nVFfHW?EUO%weUiW?^Netqjbume#Ed zIt1u+<;GacE27J#nY~RjOlC%4+RGO7o5;+p%apm>qJ6a8IA$>FeL5d^`x^0E%`>Ea zZqH1azY^HL8u+91FN)!QWsBlizH1l3 zaK6XSiPInAdRI23$mNDh19fo5Wn#+~OBNWI?8RtnRxoL0i(0cSF8VHGHB7d!WX4Qn z#fCCtCNg6(-o>e_OG_(xjqs1lj){)dYFaWr|9Qp!zc#Md@xKdm&l!c8&u7_XH+ODg z*&57yE9-D-HNfOc zNUa)5q=;1*t7J89nk8|}X&grMjty^O%}qs`YFUkCHKR35(lM%Vw#~IRxU+LD(^gw+ zhBv0MYf!@5TCzAzw$qr?Tj!H)wZk_YW{Y<8)MChG8;xrm7G;YGi{!qoUi}8OrAH<5jU{!$S1wwb z)~PhpOLH1M^+ux$qe$<%Hp#Ti zj2OebWVIO?8Cu3LwUFZxYbv^HOCuAUc(I06<1OZ6FymH?rXCoE*+%l|-$fueBG5I2 zm{=hhDoHT}C{ucy)k?-Og=Q9I4sqKvDqLc5inAq{W=0u46X~C=P(gsnR!mGrCK#B+ z%M8hxC6ZvuVKS`5#xO=x1!FQt&SgHL!r2teg3q6lPRl#H>84oBYfUo72G&@+y))Z7 zY4MHyxuneVJgiG5O|Lg2O5Y{ZCORfNHfoTh1CPE@F9l(g#HQM9G#+69LXaTZ={J4; z%U9Rm(y{Zs+QLlY|hUrYU*ZQ1O2H0rLyzY*J6Qm6NZH-|55aEH4$tO%RDVeNk7-1O9 z%oxgJ6tcx+VXU=fmMk%gS|(&_*0p9arcE%dSkoo86>+wh+}z?u%M@xxFV{@vHO7l( zwU%PaZqp-k2IJuyjhU9Z+HS^Na@uLW4Az@B8DwW1Ci8T0tt`WKVPi3uIcjXOGBV90 ztDNEV=YNI1_)VVdB3>{ z&AO@ufayO7x;y|YloTp}@A>uX7l(Q!YqQeWW~I}(?O>NcVSW2}msfkC? zqP*q_Xo2_$A6OSFwF44f$2SeDZ_?S1AovD}s`gYlgCUNZsLk?pPgHqauAO%xzg#){ zKk*;B3zF;VnqiVOLz_QhO);wP#k$e-WDr6)5*Mk10;UaOXahO>DRb88^&aPfrjL0( zLy{;XA)+bF=TG8NPt!B6R<*u_?B+wKdY$7$_U892#zQf`8vf_fM1w1f;W!c3&|88% z$+gDtgh*&;s^NbpM)$b9mGkM;@W;GWrWsSlK-XD-q$f6Ed3pQQ9rDTAZipert~ERp{a zo!)y-Xd=&2wUJ&wrDk-h!G-1jPSO9FxBs{9|Jyk4;2`O*LZF68Fdy~o=CN4qGUeArOPnN()N$P z8qtwy7~1;d62vv}%H<}1NWXjVUb}Sae>g^$Q7qJA7@T>}$gq52>0^f?i*Ph%NMvkD zsOBMuVOaMgBb}Z>XA@DP2}MXMU0T(rUSxGoHB0)1O%ysOHUe2`sjvLg_gz9uKxfb%r2Zw03(5`xx0X9P@X|kPswXPb|)C2)evgAz5siyv~TS>{oB#0(Pv}N!v$X zf6ntwN+kFixp8DSHW$Rq_tf_sB-RV6Ro~;Zy9~1Q%ttMi(_?O$wVbVpo4zkGHL#GG zn+`S&tMH|tj!lG5&>e*=a@7p+nl4dSHBrU;``iMz!*<+f^0A@bzEgb2sMg1#o{Le$wUbRUc-8} ztG%Cr)$u;PXJ#Jf+5F+0>GBgYX|Y)>FyCS>WiAd|E*49Ya7%EM>A+%HrnSBSXq-g3 z9|UC?mO?TEfh@U+hq+mXqPZq4F=}FA!%_eYz09m|a8_1qW>)M3@i5mgGcj~q>2k}gCz-yj~62Bp$$>27n2LtUEgbeW%n+^NNw(K=Y%9FIhMln;Q@Oa6Fg2U8Rn z^o(tn<^H*TjB9)kH!7}e?sVb$$Z-!X-z#^Gx;M#@StxeHh(m4V={eeWV$eq1qkZ2!#MuBN6V49Bi!&%s2gww#1IG!xKqPE6a(@l*W})1h#^EOU;x z10yXsIk0U=0CP6eJT2?fOEqKh+vyE?hxiNsnZ|zlF<&~-Cp)g8bak;|Yp4YskZKH6 zmW49YZ(v?sqDmZ_FfHV_@Af#HC;hCzJ`1-SQA-oRu8AuxM$Hta{yd+0t3*GO;Y;7e zkxwlgu9hZ%IlqyO@3t%!2&_#)A2xns~ zDGGyBq<_EMdLMMk+r)1B-EN+Stpw#b$pp|&i_@Nz{mr5?0|@7q?|l2`%~0jHbGr%t z{iibNk?tdVf#Jed>8V>?7y(m>4fjWd3x50*Tt>j8eOy}$=J1YoL@Z{tf6JQ&0_<_O8G9<1}51L;n4)QqcR+twq~W$wKSTl zdP;}tK)N8au-HiH{J|T3)zK~P@5yOusG!UALeM?E+j)lCry?`-vJ^8hH$jz@Iw1X9 zfU%K)YM)lWV&R=OtubDjs&tVNLte^?MZ1@pB8duJO6nd<7=CIR-Y9`Qs>0(ZNJ8)j z4IOiNE*%=KZ!!)XNg99B5ov7n6%#h*3I64eVpS95+9K-H2&cct80XYaSC$mUv@OL` zrUj+bApili8iXmRG@M}?h&2$68l1dXumv;0FsQ$gdDHSc@u&q;6%1@T){x1Wl@3lp zvLH#6lmQ>mg~RWxXE;S>QCHBZ4_<7-MU) zNc8n4k})jJp_#NXc;@}-Z%Q(WnD-oqy6z`r&j_{bb^> zI2lM>SzM7an=(B|$|tbJ@u`W|QNe9~^e=EueAu|c;g&gWM{!v!rGaV>JFOKcLWLyV zGZi83kBzOnwpRFf_?KG>ii53LK1V_p)nnymLq=Q%dBj@Tjzq+w_UnGL}|h95sUjHe1?4U6{j;``9ttC|^carSNs% zY;wUd@x(}8O$~FDRnMm#a#Nqgd>3>p9vIoL>Kjh=2ls#QZZ5q8h~d&beW@LLA2MaK zX#bIp#dKn%RL@@73w*v0u98yc)E&X`s2UCA!J54Y{(Fwh!3&=X!bs@v&*!Q)+(ym~ zd0q+b5vfpZD0~XF3ij4Po z#N>sALFbx8W6W*JP*4Q#SJQ8=aa%N}Ql1R+r@!ES^^5APeJi8D!NAut^mQs;# zNx_3reA_t-Qu1yIC^zwdDG_>xBPCDkp*^w@+>Xeh)~%0h0F5~=k)#{s9I_vw^74Rm zK%xioyHjB-iB6eUnV=B$5;AGo1YehBny%@@0#Y;y2K1h`Eb9&*NS$1f&E~V)SpjD>TZf za^39uaM+3ZOA(zULvuUwx;%SsKWjYsIVM8UE&gbJU}@AN{t$MPuxUmv*CYS%kH>R~ zxa*#jg^hbLsbbz>S{9I&Y8JVbxWm>e1oEahVU>lK_J>K(Jcu{7iP-4bh=e z+iN1>CX7ajD-;cRxZfWyfDHY_-4dm2m?nn=-?4(rAdYO*a*1}V9;u=@!DzUO^W)tf zPJSpFsMPXO)#2>#emc46wA8v{ZSRC^k_{8M!ZXg!>qzPMoiufK*K^y>E_quxejzlCglDEZz9AW`BH zefInDGlwL+^QEIDJHfJB$>Z!-r$Th*k3FBk3nX8wRdkQZyaVEpN| z94dR~*NDL|83Dw7|(Q@~_U*@vZ`YDLT#O{9+32O)wR2{$6LBLLXlISN=@vds-#M zS>aaSOQAbKwQh=GUa0uK`CZ2t-{Gl58B4`VMHo#v;YgCrfWh*9Fd;UBC)z=%KI2+~ ztwC&@EI`^bmUdio(O_bte^Sr-9z2(-Da+LB9ja1Dap@t40?RVv7)WjKzgHqOw8&Eq ztPk4|&`nyMoW{)gRQc|QP@?3wkLjLe$|@ebcJ9`nQKW?Yk8LLJ^#1_4_pQfKdO;5q zJCkVlaImp;;nAOB$=f;c>~@<@?bRL_{+@Q*BMb{TsisvpB2(FTi%ed_*njN8Za6 zh>16D316=otkP61f_;s3wohTXN)(FD)!u-w%DKFMEC#e5Df53?8r1~2nfnrX=DMos z9mHD4vdeTS0Z7i{bZO`E2D#wHHa3p3vU05>k3B_YUh}Bii9Ejc_8)I@@3PHqtA4m% zf^F>H=iB#;e7=_kj&l2Nb7U~@+Bicad=Y>Xb>e)K})P35h* zE-bmNtwWx`D7(y3f}^0oF15>|&&b6hHe&l#jZSf=NN`Oseq3FA{qr_b$r+hJ${u_t zHp7z=0zWJ(mj%-pJ$ZSN=gVmwZ;(SoHv;;rEE#p6ZME#Xi_4VIUih=+4N;@LyZM>b!zy)^G$kNKM49)B=`cteXFp_rI*(uxFxWb1#=hD)r-U zoP-O!gX;D#zKxXbSZ(2ybAm+*aU1?Cik zBJlCUBOy5TU*TnXau3Oi^s-1tyeZ2Asj=#wi^sm5y_>1GVZb``=V2Gdw{<($*_kXl ze;DZ&6>J@Fg?$?^=Qbc6$_WF-saJC+vQ2MV;q{ z_UF54|2xIR^3ZK$Bt@dZ$OXmCW*&d#;G1-!1|Qj^gWYj;?tymORnBQ_X{YKG#__e4 zndOLyk34*4&@S|dncp6(-shXKKZZBsAyF5W`K)&BMom0vbeTTxg{p=r)9fnEgE*;dXNe>5q2 zfwHY~7hJwb(!Yi+rN3|N+vVW5)+C1*Hi5-!>0WZS=}Y)U}x(zuSt+iqlXW~{LJ*u24TiB!=%bsVGcvhQPnt#!>W;7sb%(i>XXAtq9mLJ7YeqW28xRP+uRW%< z_8y~5Lb-etIds}_Mq`L*gnbXgg_4n@fK^*E+9WXEJ-%#9F?c1~DYT&2hAgq8Tztac z4Le$$AwedVN>;QES#85Q)JH|n5LY4vBXO$MB|Qb;oxofF!LR5HTN3UXih3iiIvN#V zEtfoeaxpj>vnVcZyM3ct^-!xYGPS{o3Unsiq=SpUm+FcBP04}IuMU`zty~ecsBu;* zfY=I2B>j--3zL@&-A4R*P}l}>d{5rDX6}sk?Av}e(A}0rMqFzyijLl3=DS06YA6ew z6TKjKFdUKJ*;M-yrQOLrmJA6+QTN6PSIMK)aGgXa;S*}mRUZIwV0fO4w{*Sw5-FDf?jHT2Na!KI!_(J+_?B9a(khQ@fbDB~Zh z&p~^-uH2geg&6AVw%0586$hO;ESgO2+xlT(E2{<)YFxT#6}CdUtpec3zw_az1gUOy z3P;%~U>F7~RC(gi0)#{en#i~Rb9LvZBf(g+4ZEk#YCXso z>6j7$?Yqxn?q`wWUHVo75_OerKIK@LbaKkS5Z8`}GBD z_Rtb-$Gmni=pji8;Vfy7(|y_X<7_zicSjdXys(+8&zBa5Gl;O(2?<5f^gb^|K6tx; zU4Yz*v)L8~J0dM$ za>7zDe~?*#i9wNk<{Hi1pqEb|$28;y#aa5@Kol!Jldp|-7{@{|PYE24NUb>qhzi;R!G!?f^R_%YP z)xp5&YXEar2mkIvRm7K!gege#5QhQ+Di#~`%M2i{*PhJ@ru9K$PY%I<3I z!|n*}QZanaPrA-Gz9htgY-@>ppX~p_LcPMAH^x$)z`LTK7~) z0ttx6%_L}78%mg7vJUw%ZJ=wg^^vNnec{hd(EYxUKmx>N#uKU|w|1Q|ie<#k+|1GF z@|)PmT(pnWLf z@O3AW6uz&bsOvvllqoKflnxf6D3dtFE|1PbG<`DVJ@;zGI@Dqe<_|;?zR!uGkDA5A znb*Qn{KW?>&8p}Ws5_d=R*4wSb{9shnA<8eNAUg{rD=#r>n()sjH=RVZlAV?08=H`}p;wD+Ee{A}^yhdk^t^E?ZY2{w^i(Am#TGBO*Mir|wAcATA#6=5xQ z1(aaHBNk`4q8F_*_Hy20Gkj}`&;-c8lP_T+iOpKtGoz(WFZ z=)qMf6PP&~S<(S(7b@=Ym89%ZkrzodlLi*lM$QyAX14Nc zYBm~x41Y_leqwaS{9^h~ZNbJGp$iOTDYswQ;ICZ6Mt zxKP--f7C%p)*0AbJC`qA=q4!HJH`B-h@v~xx7#XK23e(fv;BBJa-ZwsrAsg#e-rx0 z0=zQRT?<5S=P{PqHrzkq=*mK>k?Kvv$SEdItY|uFsqUSw{z^TdKIPfb=JYYIZwsw( z9i?&tj>7^@hA|iZ3+oL0vePz3KN)g3cg9r0NP4Mh87eAM67pD(nH12U=t7MfW)*!e0h$X@V;-V}qmb+ln| zM{GuajeereTqs_LCw@Oh*Fb@=S8l+e0g?oh_00$0*jN%qD9%pXn%SOq1_Te{)?DGF?_Lb0i78^dP^)Lf$t&A~vbLNokH zPDt}niiRl6C5p$ac+lP?w4;EC4hjkuEs19aTFa^jJGXb_;Hw)a<0aPZEfhL4Z{X4h z1i7Fsiagq-Za0awVDG z^A3*PcIG-Za$dU3<2aY<+0>J`yLi|cxkggtP29*rLKRQ^RkVmcnVhr@359d(n|kW) z3{Av27=Us?o^(KN0RT+#lNV>cEjT&Oq}D6QwsH!9(T{PVff%FNveCJ9V{*iAIVo1T z>@GV&$@%CyPFA)pP8R5LsHZ11I>%jRmpe9~+Q=qkgdeO*dsXc9Q&1POlidP8g$#&| zue<))jcaHSLV{T}U;S<)TpnvT$N5X>2)^k?Z|h&YzELZ=PSu6qr`2TjCTtv@dQ~;FJzT%_G5Ni zJ)xN6#CG}>D^6iG7zaGE6~C3?gY{(X5)cM>WN&|{cP$806UY`S`BoSyU1Vh?y?NW+ zN->*SW57!-Vf_jH-L0wsH;QZ*O1rF&^=YZZtvjsGE@17T(Lp=2W6S@KP8|=Af$8=T zUwxeDb4H@$s1P>vL-CGTf$s^DQ(5q-SFEOuh5%CK4xY(w{?@_H;v{YrM?%K$cgRd2 zCASM&z&GMrf|S&|vz2uTFCpL1evNnB=1z}FLwug&T*cDcTP2fjL=YP?nJI!WUo+%H zGZMh(No%ft&N=r}GS|})ts@mex7fImdTgM8%MuqiaqeL}I_-3-fJGyGInS$>yqjG|0lbf358Nk+R^HX#b1SAKEZV ziAKWy?#U;y41Xmo1R)I`LWfgD;g0GaEv@Wr?0ONS(UTf6P?UNbZpQI5h|+Stk%VQ6 zZyAe`>QPYsw(DLyCXQ4r)oZmw3g_&lLN?{UPRFCk@svCQ5!mx$fZ`^SPi z^O*zxd7KTh`=ya<{GWIoG0h=`nz*BpTrBF(Ho~UEN2w*CEi@`b4)z}&Hs7g{?e$Z; zD+YGrPpf~D2B>)Z+0+{WGYRC(SmcxAl*v)ml;u;9-N_K+)ybrqx+>4hzdqe74QuyQ zzbPbLLgfurs#Pd@)KW$Jwy^=Lo!ojSlJvE?mxy_R1sfuNof5Nl?y_7B` z2y8fQE1TB#{?9sEw}`LQzKTW^Y)ye4byYo_w?uba*F=AQwkGr`*YEhqHIJU+rOw;8aA!(L8|2TV$ou8H6vdCm&o(c7@uC6GE|_yM#-v z)K6^65FX%QtAVfdI4oT&!mOlKP$z|CQ8^r5NP4(EIn?G-q!$`0hyo;Ojg+Jcq2zN{ z_vQFZ3cPt) z;XyZaLAaBtUXdjQ#lOEGdzB6-i&%R~$bA;NUAx|mk~)$qUixc5C^>p6Mj&eKU3kJk z?V4VO?XH#|@ARpBftZ~Vb*+?O!cX3RswrYHqOt=XK6RU?{OaUNuAYC7Xwalj(@m83 z+AVHXtpwYe+%({jGt`+|aI2=VH;s+8)Bu@F-3=4;L_+CK$uemQ15gC27Nn@rsB9N8IADoW2`Wx| zm(Tyq18f4ky@>Xx0u7Kfw5vaOlpmZOsLq}ztdcftixZghlMu&^_!!uiSniy^_{9BX zJ?5v3S?I0^K-V_CH|UyMtpVL{geLEq4txnHOUq*OEEP~I)t{DaIU!A_XMEwi!;a${ zA?GoqCpI9m7pEBCz(j-3uDsq4QD2K{EE_XYER1;}WQad}y=AQjL=~+@j68@w{|LJuioam6E~_k&zWY=pr&)cHshSK$3?ZbU3YCk9cr#wNk90 zLWB>@GNeBQ-;9r(cjcZ|)+ZAnXLyJP>atCts~ut@#7oo4te+d%jr-5jweG|t&N{Zc zOAsj~+xCn>_is=;+yn2<(QCewSQTZw9=o&|g^m(Y;KuaMb8&axs7TbYio#ZkLc2fc zioQ*kgePy~z@(~+ceQd+gaXFaakXgXIrpo(C;H*osj^R>sHcwWm$h%GZ-;T40-6e4 zD=H_3tBV~C-rQ$-+957Dz!=s6Qj)RVi?m zfgZBXr-<(A>I&)?yepgE4VR)NPD}Oi`{3Y_S8nrPWN*{x>V1y-eLh{;n;TvVohtAp z>LNQ2x1`;SmL**Ym64HALxgso(XIV355LM@lunKDGSBirVcU5~y6P-4L8eOn7?oG1i}Z6AFW2zVfuQa@^bk5DM7 zh@DGdtF??`Fz9f9nAEH9_%*aSv zo{2DwKYT2gTp#AVY)ltzuU8YZNb;&) z5k42kU;P+25_{3DZTT}I*PD2RUN(G!kI#BJe0Yj+r(ED#wOjb|*U_D4yokl?T0q5R z+{hf4DBx#}t*FwJkQ{C|Kw&5UYO>lpYqLWdMYrI6I|I9L`m*#*Q zHKo^i$vr-VCETF(_j*xOxLc|?@SiV(@ZPrfovyb?RO(FjUg6NG2W&&Z3`(H@;+LzN1cu|M zVfU-G?=9riXloFVRP?0G<)eY7YP1&DB=RBNzNe!_5R z8($XtL&!aw>MLV_kI8mIvN&FYUfoJM`;2xeYsk$aztXSD)HRSL{X)R*t?>>aF|;9; zGZti)mBLI5;xx+~Aki~>b5tTW9l+ptdw>6tUMx3;e543gTUSbcS{vENNPnOs($u~C zm-!Y$NLi;bqn2Yw4Yoac(Mm3AmYYEedL0YBp9D37)AFu<&jx%d+CLw;uY4x5x+v;& zVfT?4pS|1OqFG&bVksAWgZkNSLr)DzAOGI%+z))lL<>~7WKX>k|MXA}D@ZN?zwH6E z$)g~sJ}oUR=gx*NHh$-oIMMY;>Uow(SsuN@fnaWV-w{))f=&@7zsO%2UfpYD>IkX@ zWFEBQKlolf4LVBqQ>6)uY_qfTHTGm&s!alfkqb~m^fbY0${zx<(ShLtw((X`XI!?n zZnFFP`@a`iLPk{wompgyHz{}GEnKtaKnn~1Q26nw+bY{qfWT2Qet}%&?CgR)TL*`? zq9f9roGf16xAt$D(aOrVDs*LKDk^VP-Y$!vFPL!p0JBZ#=Q3uK>WiORC>@ulMXp24 z(3E8K*4FmLH)Z82dOEW;&4Ga9*n|6s4u5!*7DCTB)XFjkyZu((SA8u*1q%Kdc^v zL~B}HRF0uiiQ&E~60t|JRCJ6Sdm}cLuZrv|7la8-D88+d(b6xm>T7GGDe}#{T%h9z zS@EZ}a_+1Y`X6OwZ#XiZdH>Dd{{DaIH@qV}Jbb`!Q%c8OapZRqHOh3OP;Gw2a{Q>l zZD)b(x0fp20lq8HHLSFKZf?{i{ju(QI}u_GQK3Qh|1|#(nZ_f2@V{t+|6aXl>iUl_6D$`OzBmU7B`o6w+_T zl%`nv#y2~f;u=*s`1Tw}C$?=}brSOu$H+om6%*5y%TgFis?1Ij zrIAvm4gS@E0HP;TGq=~CW)T%mHJOyTmR?ZcObv|5aOpyK+Z+Ja) zVSE3X#Rlt=`YBCqmN4?4H7$;RDuKAoA1@kR$c9}fV+fr7J7Kf2ChRw*v=|Oo^$U_x zcEXv|ksKtT^>OyK`Fb1K)|V+GU#%u@VXY4SbSXXnwD)hvt>}UUr+X7-a_4&m-*eRk z?P&;<)$f)s?#M3lCT%%Z<~f#t*9%5e{}~y8APV87bUJ%V@jNWNIX>YVE`aShS~ZGr zf0r7P^j)Cz5{ZApqJ5Oa*%zFj{D&NtK9lQo8~&RuqToo`<3Khd;iPca_f{m)GY_dgje&rHnIa)*4<>_fE+=>SY${<93ID8USoG(12odjDXejULy zR!)*q{*TAVo-Eurx#GtFtacr_orgm}~@)FnC@Li-G zleKZw_}v~}Lnae5{TDE(_;H!ZqrD}=Yj%JIs9Tkw@q_K)#9Rg}^j=5Np*>{x}LAwk-o zQIdcJf8-c8VL_yWPJ|2;YCnuGY~GyhDGvh}J@i@rncYjNi$7fH0-=GO*J=Z7*Zat7 zbzhV;PV$)dMO>4~zWv3hfYTGm`pi8vBPq>@;|)?hh}wClT3yXe=rj;Y5u)aIAjqpRX-}owLpuT%M~2>^R;Lma7wL?3MCx zaKniemK$KWz%aWV%s!{JL1^s$PHX5s&-w zQ*clCoVE+U1u|r1qZkmlbcOu^>o++UIqrI%+%?u$0HDbW$=a7X!*gyW2kVND@o_#V zU(*R_Sis6#DSi@qKE)0`cJX)Qn8rG!zuAH{1q28)P%JOKXbBLxetj~gmT!v4i@)?_ zo9<0zA3AppP_*hd5wx>mUtcxJH;9;LZ`Ws^hyVMkDD;hAvx%5jTVLEBo<=?=U`7%G zarvY{{SK=cJM@kWxm_x|@%aAvR)8~`9rTQmQ^JFDtG=IjI#U!L^3l}yj`2!0UrL%s z%A^>`E|3{6Yiu>TRM^9f_e{>zZO=Bv!1X?!f=z0ip9C(CQJpe7hO%{!MvxK;Y-ZPu^Ixbbcj5n-6*m7(GToit z#f&j2CA$l35)$M;`d3tj0N-Fz4j2}<4M@3NJs7_ipRfYnFgGy#Lj$9mP`0eBdR4y` zkM6PGxN}By-Te@BFk-r7!@cksG?zrqg}4s_`*42cCg>@_K3VMrFGYXW{3K}QvBw}Q zf@Fd}e|vXmszaA;YP(dr)*qJ1^2eR@IstdBz#f>qw1LRlY9eX55t}r{driaH%6r`g#mSP3l{)DB+|=Qh>QDe+7FsTfxi2aHyL%nz?(EQ=Gz;}MVwvy{>SS;*^y@^gU zDMuiS$5(^~|COV!9Ei`&1%kqJHOu3Fg9$uA)+i)tKNj<4N%B1^Nd5XVuDK`9n-pr` z$E}}yc|7j<G-?8@JcyMGd8kWddxXhG znQXo*TB{%*9+wOmk=1Dw9w5!G0HS4Nlsm0dsOd_z(qZKuu4lq|+W37V0JVE%U>_?({TvrF9gs^^OS3Qa zPpkSB{724C_E3EDn}}L67P@F5g`*JfbnQL01t>|X+QOxQ&b59Q+G65FsRb*szKQ`$ zaQOH1S|#ZwkR@&O+!uV^d;581mIkiDhV);o%G&1)Z`fcYY%N;s-tHNacR3l@sc4>Ws>f{dWjc-z=6F5qw<~1EKV+S&?w}I zB`eKxsD(ll|E52eV1r|D;tl7{FZ$1Dif!4@nL$n&Xw*Fa`N4i?^_FMjYU-S|DmJJ@ z0!mcqdv1Y?OUR!1v5-M8)YdI-*iA{unH*4(&ASQEI{~>J*l*SHCUVx;{3sUtJB>9a z*=R&+cO=B5zDHb_Z)=<=`pNeXv-{`^&*oVEUE#HU;MY9d#kG@$EIoEb-M9^dN)P^v zCL3e0wSXC!v(mK|L%n(sF*4fvX*fZu*L`npCF-6_O3j$(!|>OIaxh&y;@uT#PdHLg z;GULwB{yCpL0wvJBR69xlf^$>i9nB)Y7I;5ul=xp4LY|UD}!qc$_TYnt7+^QYWEVG z^QxMQu4;~P)?(&V>xblrWi`_1lbt!KGcJ{}`%)h1zg%b(NKUX&hjB$tB#on!5E&L@ zEc5r-rWniT`ZZEnBnaMgKQ#Nu1NnrameB4IHJ(^$Pr7ZGL za|2H+S7xO%=IIf}oRP_D%6Q1Hb`Rlk^P2`_S;5yOCuWpxH3XAW`v}X|K8zHI5 zdn(7EF|ZDgwjsiiE)spRPd<7;L{)PC0XI{_y}rpq;4qJV(j9vvV2xw5hD=z?=mm3o zlp~#5kbi)iYuKV=cSN&ri&5-Q5{1qV9RvDqRw9Wu*0NS>kk_ot&ef-?pXJST7uifl zNB6<(OKb(~jf!2?E_UK)k{S=Y0H}EayRV*L@ls8|2#RCD_(SnWO#PDUkWk4sFFfvF zZv5ipTS7`9lVswmE#G!~qd4FGJM(l-yjJGs{;5^oe~9=KwV(g~1)tNrF%U?cGcD*I zopudrU(}xxvY7Onq<2IA+53*W#}EzoJecSQI<;>ByKBHPjF#MV-Up>jnVnG;>D7aN zmF+)@HYPYPD6AV<)ST*GR2Fp@r*Olfht0)*eK6D!HR>!HM-Ahp*hBhE6g; zUYQ5p>vjL#_~Qo;9jsUrK%n)VKhYNX=#!(f6P1*^%NK%4b_VJ#hGLe_7;qyTuqNx) z4-et+_p&l)z{jq3>X*4Rk2b4FeL5h%aAtj3`t14WX-XlZCnx)NV@_Vr{TeYbqm4SE{8Z*1ic}AL|i0xzA!AbYQ8}M&)RytxKD-=9&rUzJX0u z9M36x<7JzIO=_Rz6^lZWzp~DEaEiyLr4Qve+!~o!0EYSj3r8NokO@Or;0 zHx=mx-4pr6WzuO0%}R~|kfed%;=E{6p;;`l80ybryB!R7@}9sa)DyL36*<_pnik01 zJPa+KK{4d)lKQh4&fyF z9jm*lP4W6kEufh){{y8DizJvund#+8HRaO=>MFV`lXGOY_EY@(CbbgnRl}^W3bQe# zXa&|fTaUJX^-tFK%`zZx~&5=h&d&7Rk6a7);f0^rn0N**%*i_u8lYpkO&4cvi4n0D4VnQNTRr%D}Eb)RHYIT(oxi0Iw!+2uX5X+?F(ftSfWrQ233wOkJ{>9U6 zV}xOm!w?vc5}**+tE$hZtgQCFt?*anaC9~pc3q&x2RE*0dS84P3qV=JU58l5nXxEU zfxlmzsBzqt(H>skSXs=S7kK=OaPPX9B-pxU34ZZb;i^2=zI!+|6wba`WAB5`$=wE6 zRtntz1ke&W3+m2MY&l8|cVg<=cIdwu#H(}>nc~rZlc$9ac8n7>b&;QYVM>~6>?J+m zGhz<{=`{QKvtmejVinRGh{q+DVmNribr8)P+8gqH?oaAEbVWIu3M7B(c6*gpT+}pw z>Xbc8zcO&(!>E*|NrY7K}nS!snRfFqd`PLhA=v} z(XdSz9fFjKGz^d$j8tKxYjk&wkd~GZBm^ZzK>hLgeRu!Ab9T;suIudedOjZy;@)aD zV6oX#VU+Dc+_;9$ojF@rqEfkINp!78nhwH}m?IKRM6p1$e>kgB#F7KR=4 zPUN*KNioN)nk%=Dpp3a;jYVJHDdqR?0gJt7%fFb%u*{3iIaUk;1j0$?KdQWRiqZ$8 z6QhRh`ke1ZU932(k+5&2nfpxfRMdE|ve7S8NkS*bH|noTpy`C%yLdBv>5^2nQjcmy z(f~O=xF#6zs$lS}rSNdi$0pMnN( ze#H8hmIDI8&mHvIwB-|UbId&_zNSI8gnfFgi$B~$5~;4{h@=oEkZyukP zlN~FHkGJyge$%h1_~R}zO19Or>$SO(=FfFJYE~&Smp7j4>!ZP*ztKfA!9q-F z2ML&BpIZFt>`tT}xNT^i|6!L9K5+^7?!x+p{%GR#w&w z$HwtbkMpv&9MKxit3}EVIFl)dfrdEsQv1~9E=C?m818zP6traUF5`HE6ulLDoZBEg1Yep! zN$}AN%=va_TjxcZ%e*`wYCIV|KO<0@0WkR7Z0bg(mE;@Hy6l-4S9MhvJsjVdUWUGJ zmZw(_K!DY-BJ(`TAHp0D1r5Fy87PVI(Frr$z86T*5J5lHNAWz1rYrT%ve8~mKz7mY zC-bZ!bTak|8PWeV>u@IzOnpQm6I*Q3DrHbe$+OChwTC+{hEr!JEko)@qL z9*d8@abv6NCtNRzr|g{N9SEQsFf;YZRG+KfZabF~{NBVgf2H}8>R`~Q#Yaz^UQ>D(> zNRjMp4Gm^oJStq&lglE)kwsEj+xicwVvFtpUK$q1uYA7q`9?Y|iL;Wm^zmGh&mb47 zI;IhL(hGU_-`)2&B_zBNbPqf- z%Cm}#;*GIX7$p%#Mf)vWZ`enI9cDILrpYy_7cG(Bxh~<*;&-r?od+})>!JU(otV)H zyzOy3Fs?QD)u?A1Jf1iMQa+9ATQBQ>#dh1xnFwdNsY8Pb?6NccjifC_5%+=nzoEcL9s4b^y1RS?z?eq9mS`lek`HPB8* zkalG%<-?66M#ejLnBRCe$hJ;g*^a5G*39DOGDFo?*3Oz3d&Y(e?-Ydyj1`i3J|Em5 zuqsLlpVN5Mi@kM)isne=EV%0SkPj0yWPYnS4Zn;Jj@1aKdcP<&AWKvJMh5a7A{$3s9 zL#BHc@cw(`FO6-e+5KpHg~AbtRzuH*Ck#FUx%#)YwPu63xq$mtAi&LU-L)=xcOMVh zucoPc9c*gz#doYGK>={@M`jJZ=yY@F-C|gBX!Wz{s3|fR2n7-OERn|9Mw*lvAU6PY zL3l(O8$)9Eaxwf<9qTGTe;21JU6dW&qgPw4Ay-W#E^dt9UN*G4$LmWXvy;dWIfc(VJd}&1?GHi|6X$Xt76ln zxWe?&hzj#2wEN6y(Q4}Q3T!CL-wO=7xjcn`G&>YEh@}wY^SX%XIqNv5RBglRu;3j4 zO*99uZqNU0|P;NKY};(C2HOBR+I2CH~@u$^>3M+f1jSx?+7(xh3(nRt&dFQhVA9j`t<@+Szmfb zu*2YKfNBXG4ai4uxQm5>;hl z8EH`~C!RbtM@mjXdMQ82-xEYJ9M%%YNAaRt{h)~qva4fz8Gp;SM30@4MOb!$mmW_{ zZW0cXd)0jSSJOXo`30CJqpmX1kUU^ z!H=5ib$8Q8YkogoL&T*?YNYrw{#4>FvJ!23pv+hBY{?S(Y_dp=GNn=`G*cj!@4A<8Z(^$0&TF5!u9>{)3%R=d zG+64JzQy-830n$xQw%&Cz*`sYzqxbJwz0Dv#_t|T`NiE8S3AKOG5N8Tq_Q}jG@0+r zN7O9iZa7t;?P}cZZpcejP&)(aGW^M|z*$OW%zadNBaSYg&X`MJf z+Yu#fC=IAUm&Lx6x;5O{rb{!_w@rBK{y4Od%~K~#0}O^vNz<|vZj+|GAEgEuUt37N zu_%;x?Wfhs9+U8+kZaWZq8a77_YwB2vp87fMRauju>Zx7R5dM-)ecQ7Rm}$;mgux| zT8m`p?D)$2_Q3$TN-4{GhWbMA{9;lp{qW;(p%N*^T-jY4E+3xs$>(ee?~Pbh{$3Q+ zYGM-uXKS+Zb6Vai8t1_yn^Nt};mMZ<55M`o_f(O5#-%k9Xu5CS)fq5EYZ(3+Wo?q$ zO;H-qm-y#pR|6ZJ$)AR#2^0_%A%ML%|Br3^AC+s1PV%fxK`brp9?P*Mi}L5@IZ>3} z%wRUAwS>h#cAmJr`MvZ)^=HYKDl>56FUT{JloJG=;&esJrKOd{5mI%<%xbY?op@l0 zS&S4IZP4K0-)P1O95)uWuP0{6WJ1xyONQxmeAMWt7-Rk!e))(wktX{*X<5gNo`_^v z`pn~j3?i~t{C+r*HJQ)-L?iNq)FTaqak00x07j>C3t_us-g^m_2P(d61K%>k?Bp#1_`2d z`LnIR#daGMa^~n9)0oO^5+7#W96E#^1+(|N=leiiB>U}aR?kj z`=<0642wQe^Dp{q43<6|zL<@`f~%zOUZj6WP2`1AmfRyHgW&04JPsVew#1&Sv+R^K zO!sVU0*9xA4R=lVEp&kZz@@8Yla3u8NdnV7TQ-`McQ!*-OaHO6JM#$kv6sx8Y8ytBUOT)01pk}RCsiK*0R~a|gT87GAscrKAW=SHXn|x&& zL>ohMKo)CgwDtf%6buqZivp6QX^>S^NNM5jJ7hEn4kTV7g0H}5|IrPY*_la|+Eaki z9}I~WlI_s{f$=88YSmJt)OR4!;p?Z~zkC;uc28W#|MHBzR_-O)b%8#W|vi2_)q{$lygwyWIL2={f3Xk1aa(Z5x^ppRz5m zY;K3CB%|$gQjZ`;Qk5kD2uM(yY==tM@?04DUH9ilF$1>Rhs3i%78=+VN?aOu_cZmg z!vJ@}is`Ojfh`4vwcijUNWO0%9CV16nyDpv0Wa-anZHTwspu;qq>}!y^~eJW(QDCQLx-nU?aAFXuW$CWk$d;bp-Yj{pU?uQX)}LQ^)~eKgOQS5 z1+ny+rS8;q^%S~bqp7pnU3t0oGO4vi4J>%uwD6?Y@`0_`zC_pbna=_gCPCda6)RfJ zzxX1ga7^|KJHAJj&|BEY){z>l8cbTdQqo3dUMt6>8?^j5CX}y&l}}_@dA$AzTsVq1 znNLc=!z)hku0ClTJ_4g=huNgSA(~f|p5n+}*KiL)Qqwq`gK(uXv6!X*iKF8bqgmv} zH#>P7Com|NB%2Xx+_H+k7N{th>u$9$Hc#zPdYiiiRr#Hs+tb;D=p0ypLW6%Y0S2X4?;i31764rU?6?4=Vop)n~}- zyI+B_al~*ej_k`aThH|&0YY8_!?JvpF%@)$o%`bVH+mZ8oo_zgRVd-nDqII~dh3{u zw#sl3lV!Df9P%hPvVI>!+>|xuGt3%K`~?Dc0>3yUG_J9}A9V@^aEMJp**Z#pv*ehf z%tNd-0*0Jd&vM+4&ffj;P?_dn*&hl3ezZRR;@6X^19?#0%41Ng&tMXbqXqV<2?C8l zbY@Io!*n!FHT4w~%XS!L(1{!%iGd)w4GVPg6VU`#A@T<>ecEF)bO=G#+KhJ-blB<#Bvx1nyFhqq zECMR4%PJ850U^%HCjizpb7n$l6s71Fen&cpvCF`mB7m$PEKKoY?4{B6=8fEs1e{<{p$G_O5;Fxwq-2I1X#}(zw!!r~h z5xiDXNjIhrSLnKkH^&EspWIS$ ziC}U&nX)mcv+$Pesi0mNgg&k1sC|MdnE-JDu|*+tgL-H2=m*}nzZI;^oBqu`{DO)g+K~QtHaEVf$S1WBjqqCaE|SI|~0T0Dxr+;HLTKge5{NbVqu z2?gy>a0N?fq$cX`Nfv}XN;UpXC+;1zq4wu{;YA6<(P78Q^=%!TX2rne6pt!&Yu*el zypi4x@rQE2(}&C8VlXs)#{87zbyt$Rex2O5QbQxr6o%B3u|zdv831THjNDw@)>!YP zE+jACgC5B>WUF;Ur;l}2c%Ig-OieWGMKT$&q=2(UzW|pPJJ-(We9vxr@0*6)aT~Yj4LYBp+0^p3*fKJq4s9q;l3WdDbGG z5M6bd;?Uj0XD;+KB@#s|A7YnOBlzStz*>N5sAi2T-?i(9qMrNhkkCZ~4=CLZLq zuL!k1eN6e&ZQ{;5bAzxqc^;e{-#)}Jc=`e*!hf`G{0QcwcD>*`(#&#kvyAE*fU}Xy z2)<08zWrqS6h7RZmO2y~XW<}w%J<9PCJ8T43VJBNw_*Fj=-8%emS>&o@v*uhDm)s6 zijE8#*6&m`;T}2?`I@yJ;FhXXTs>CY+B?<@Zaey3=S2umW!^g5kmkX>d}R&hVqReG z-pxh*{}8f;*aXvJs#5@CZ{T`#aj>tJM`bzR$}i~NrzVxr5S0Gp3GjmQf}3*Uc3|%^ z6F^4_kCzt7-XXp#1EZ4chXpfm)vTZh=smPLbJq|hUI*CKr}Z}mlfgPqJg%#|$b050 zUaz~&6A%)DK_enI@+U0lEnIcYoN#AcvxkTOlnC$6cp^g2S(ih@DRqAiBYG3~yOYYz#=WmeNKwYw&KMccBE=Q-on2f&k*8(8_4xITMgEF@Ls z-AXN>TiYqR#Wfs96??Zd{w}sE5gQ%+QbK1LBJ@%u7?TW9%8UJ&sWxRAWknOmU$Uyh z3`^IvFPR4K&i#%xkbNi1^>~0csD~$@(M|83{kjN4`bMmqQ_Ur)!wT%pwKZp_YubcT zbdoYIwoEH?%Y=Ta{9(A}E@;1eX5plq#!+IHl_6fOGd1v;vsC;;S3euIv)WQ-pYuJm zt`1s|1i;4(&uluP5)0XT`j`S2G4|4?ui}|9D%aH}ibr}osmj`PE8=WayuAENy(v8l zGWoMV?=Hqu&ZO!guBSwJzwRBzw|rBTauI!-U) zWVJzN+H|v6ohZU}u8;cwfR5&mDj9o@UTem@97k!lzX>a>Y#r@|tzm&fm7AZU-(3ha z`k9}UoYDX3d-QB*$#kBI5MzAsSC!(rzJJlTvn8jqWf8B~4{v?W-}5AX+)+;l$nv;< z;=~<%v1Bn5od@vpSFlz0S^>yeFS7Xzm#lL#g3bB8Cp@5Q8ew~I(ZhNn8aL~h6IT-t zs=Pbkt0NEwcjX->yXuQGUDZ6RWYY7UxtW5k6H|rkOPP1Qm7LIMK|zHX7csuTdANKO zZ>K_u;H2n0RfDIgK=zBGOpXj>FW3RLCSUdz|B4zJ`NdxFFrUcf&5@Bln28VfS#T?t z{d=V(*NSO^4CuMBxKa(vqT*RG;Ph^8SWT5JT&kPK){O7U<|`A=iI^#~cP(?cx;Z&Q z3ae$saYeNYM;79&<0TbJU9+TeFPKyrlr|p&TSqCz^RKO0T?}1SVXMPN0DzaQlit2f zN%ASOVw{A+-uOn>W{nsW>#61IB2MQVuAe#Pe1@Iw9HcC-Qlf)wc~zRak5|@*JfGEJ z56|AP5ka^f|G+ZAuUl$ZokBxVd(n^cH9FaxfetXq1NP1+UP z$#B8SGv|lmxxq_Os~HhQuNl_{k|0W_*PZr!`|TpEM3_CZFO)i^v0hioOptS$1B<)b zcU|cVa!lrAvY|{-L$y7w(dpJo`-)cLn!<{cc^NWa#}(^aJEoRWfoKSyR%_lp?dZj9I#O zhO+N$=Q|7NlZb@!gCdM%C>@bDl7(Z_YpR>3kL|~o7d(mBuCr-9vJ2k$*{iOJ+?>q7 z-s3aL;MH<$H6VtZj?(VT(Zj_){uNlt2phCS%7lg&qD1;?U;|Sw7V%8N)1VLrfcn*M zg8H(}i0=vRuuFL9|LofsPigdk;X;iDN_6rvN~r|oEIQq=5s&9H<)m-25S)mj(+E?H z&fOG@JbjjN7@UiP2n`kJk`?nz?7_fg2;wlRS(^{C2qKWQgo~G%Kw__S9kExM+fHl` z*=_vS<0W%xdlW2Q!XYl))k&vTbjQA+IC}%b_N3pOrj4kXHom7A$m*}@rN1E8@JU9W zzsUiF7nw*0Mo`=2p3jK-Cp)eZ>?iqXDARGaL%`H`M9u49;D>(3xuni_I_ek;(XtOU zsyeOXKP`+$P3|AD6V|p-5G^z!3eB9UW0)S{svkoSt-)^nd zm2Z{bd-YR)b-rokVkhLM>6yvJ4<&`Km+;YGcJt%r8pTpO`)oa6UCMDPuuQukQ;6JF_pMA+bP?X(F8XPC9{cSJBfBjp~c2hFdz+G6-+0 z^IPbYGtSv}_B0zO1H38jb>ANh@7C4AR#uhbz~T@$j&cWQQ+p~fm0Xvnpe!)8Hx+>_ z(MoLrVQlLi`I%B-$A-#w)&-2@R-P7v2?)m zA(^ghktp6q?~m>xo-keTy5L5Pe9S5x61i-4VVphW8McO(XkV0Uk_)X>*byJ{Z*nRe z=mYmG=lQGF^!*aoM0PBa^nR-o*-5dDfbfG!mu0j@hKPq_RBn1l@zzvvcx)2orrD>0 zsHK}yQdvXpK&5G}E+;NN=B9wQ`l!&1I8n>aGy$QqAn1mT(st|LX4BNvpf&_|vq)-E z&K^DEnd)F#=g}jY!bhsfM;D8#&nM2Wf6;%PU;Ik+camwLUxRTi)UnsCWMek8Ljr7C zj;Xk2^(XaVs9N-E*ObIHPct6$YM-XX(C2YL3R(zVb+wk&&)MT~9C;Cvr_+@+lcx)o zi5sY_Z1AT1i)9d5z@^HnAL37c+6ebveRIyIJ6+Tz0wz9E9z{@5Tb*ZvU@Wo}UM6 zCK&?`A2mRW!Fz)8sQ(Zt3;Ra-FpHIzaF&m@x~#S8>?I;$rR-$e$_6B9rUsWM3Jr7I z9A5oL9XH_3Q7S-KBU#XezOc6^!U55!PK%AQ*q4&RLr>S>vK)Qk3phN^Ekgk`7#ibc zJAq0mo|2U?UnhJvgmseX#9s%tbJOY2ZE%=H5TcWMGD-xZu_@Iz1?#d3=r=ycdd7_) z(m)|tF=_T{AetR^z&-&4<|kj|M(zte>r+2uJx$idsEQUXu;(b}WU?lfFwu%pMt7Nu zsR(>Jj?Gs7nQK4op;JvVUl~-X9X{fLW8q2UI7Cw3Bu>Qj;asSoR389qmrQ+oJUAQ+ zfKyPtP6N&!rj}Q_hR26$W6Iuor|R|oV!`BG9KYNNIe!XB8`71Bvt;? zlZK7NK>>#7ScSYVz)S`{iJN5)bMq7>I+K}mO>FpHmXczRV!z{NMl@0e8ujeOqS<~^ z|Mjv>c*M;1X(ZU^{FH9OSz6bS0L1yq0|em$O}kL~H@m^gxFRWC#P2)V$)_Fj){8FX za!>(pt1<_51DV#{Z!Ld$9|cM)u=J$~O+xav%yy>QcB%rV2RUAsJ^yfQ{Ox%?br`It zvIidQnOL0q4fEY?92^}fFm5nA#1PeUd27OLF@s3ODu}u1WM@{HDMY@k>H&iXI(L?F z5ylO~n=+NvGO-UD!B;_Hid*0Dw!8}$le^g7^QFX@k8XyiA4k&++xH^PL%~N$!IdE%bdn zkT??&OAV|<*^*=&;I>s#fGbNz*I==;Sq4V-112$tebGI=+hxj`j~(!_Q%1*Nq6-IQ zbYL~68MdP%Bau=LbOYc%mQebNKRWVB?&6Q9U~skW7$+hh&MCaN7*PoZSzsNdTn5pQ zlhQR=3HhRCZ*Rs0{!aTUuoO5Q2VfsWB}R3#R||uM0Ij>Q^b%cm5)6sQ>e!;S${tTX zg{Mq8n5EQmR2!kM!19dX!7C_TbcFH!5E;ZUJ*=0=$Ks&N4#$pz(6MkRa2`43DklDT z;OgQAd?XtTqW~0a)+T{B(J=|lS3ucAX!6z$cXXHb%!lSaSTh25s1+$cY zG-7C3QaP{ABIB98-)*>DzsY31%#=!an%A1dq4TO5 z%m@dL))1ex%=*qPBc?VSAp;xYAC))Di`D36H4exhAr@9sRBRL+$_7bRFQ?AE#zgjE z(+-T3E-Fu=$3B5n4D0X~-Gy!TBqv&y!}k})qYu_>yvm*^N;3&W>phxv z5z2prJWT^fMzLGY&D?x(+MfgdYmYH2e$;i&7j9)`Y89fH+)-lZi zOscdO6>b;STOBmpNh>-8X0K&;G&Y)!LDJEhCc%MxcgA|`tDMSir$>6>B?R=SwAW@h z<&3o*==<_uCE(1Nqq}*gp>hRbW_;i!RaxRRJO<$u%cKz!%g$;qO$&snX7b|_)2nY? zX7L?s6ix2_I=Oi-(ZFl$R+)B&!7p2m#xJlDm+6vk1VX6}U7jvt1pWarf|>FU%)5*A zex6u6G~0Iv$R?p-af7~X{_Yh^EJf;Pxa(c2cO*dJlYAv(FDclIw(Rw?P6f}o-;ie7 z!NMOLWU8{h;tVnx1Gco-%r=mvNN4}XP*vo&a0U3tbOH?-N9|~G2%Miae3m(u@Mncm z%lQxwl7LL-o9xutQMa@rhmc1knU9<$S-F&%`S3A79BbRRqGtEYJQcovQ?x5-A z$<_a?(`RTY4U{;ZT2d?SyEmc;##78IV8j{&G~aGnYDGG(8^aGrBb$x3Vm%|oZ@C!q z1b$e3AKhlIt&w6|v|-ON2oHsafBYn~OxWm^Yx>$;w8}7GI6%Jv51Zi17NJb8d>EP{ zz)9mpKOzzt!skXU9~V-EKCvoKj5V6`%wMDv=ey?=Z>7;HzDv8H>F@S)Q`bjlySi-n zc~rkdGo&evdP;6u|88PARDk)tTHKv*Et(Iaj{PtEY3r*3+?K`pbbn6QjFI+kGd3GfdFFvkq)3ALz;+MRNpSh(_7 zp+zm-N@%>=M-$MJmiik<$y=I^Om{ZHYD5ySX=qZY9$ju>+khLf)4~?7N$EdZZXNG* zzRI%wu(P85;P{DqY_6SqC?LT};{F_%o76MhyUn#Ld3Q6;z=84mz#5!y2+=r&vE;K@ zF6D`iIwf8os8j@oX7UNN@?$`{;53&7x&(!3al27n$TK|v54#VzXq2zmUY@<=;SjA+ z_5DvO0me~rn(A5;Gk^GE;`t0~?8^$5Dck?sx6s7zavh6*$Gypky*VGoF|)FN``*AC zZq{k?e7|MHb5Ka>ae~Z*b$K*b6Vhv-Hp%#t!f~A6*V^cz8hL$Ba}RE6$v58ew?acz z7>7f-lz>+(NzkpK>{)c=2Cr$$^qcW4_wc*PH~+1JA+5%9cEaVK^##Xm~~;{CW*r)l1v& z5!aKStqk4(MYycXyg%7)m<)2rZr~~Wj*;(;b=b>S4GH_hi*$cwbirO;l&4Xmi)QQW znX0DHDJtxkywN96QK33;`C}xLHn;fk3U48Q`_e^w8mBqN;a5Mn6X9-9MtN z(Z^X5?f5Kv<7b(~MNr(VF@i9}kUw5YIht=|Mr0s7R zzPg~TyCa_nP(8*MU7`~G4fbP+Lkq|H%~(%fK~W#`3h|!T)Gy0 zny)9+a$@6Ue*V_U4ahasd3Od`U*`x+zI!G10Ym^26Y&7{9J5+>d<1M5i;ZLZk!;w| zXOA92jC*tc87I4ehNKw|eXt+SBl6oMu?pCt^qaE*9HEAp4K}e>cNdCm1CyU%9%kNV z?mEy`04DYBe|+&_I{*(ftr&B>M00%D&`ViT4Y0_~SR4a>iKc#R8w$qxJP7j$lOa4H zu~9S851Q*>ja5)1=GFBZEs+mpf$nWl(=@VU{_)HYo|ZyBYXE?Bx`#TYLtO`grm zyte?K0OiY1W7=RZN=ccJnagK9eEdCz)XG3_U)~Eu+qfS;GBQ@ zBmIki&R)_XpUJr1Th*4k+o;Mz2VoaAa0wDMBi)&ql8CdjE)NGeh=M`g)NojZ_8fw)^-F9CX>)$`wkD`whvU1iqGL5n zxMS&72`z1JK|hG;YU@jXw;b)9UC-dJdj;1_OdO&|qmfsi2A7di9@$T#PAauKHjJlf z8x?B5%(DX~1q5^_+>Gb-IQ)tpJWCf@Av(@*Ln)aI>7h4VZur-!jUl5#T(0%1ValfY z@f_l^;c2V1oxk}~kbdTgE(t57rg}A9-bHM20OYBs=1;N`cN5i7vgqD(4pJ`DZKZVR zQbno~NiM!L-bQt=&T+@_l?Bs@>P^?qfPo>N=R4<&Ga-lr5l)ZRqi-j($GB>!Et>njFC}H04kdt`aRqCw&*wo8}3d z>vw}D2yWig_IZ4u@PBxdLhgr}u0P{8WWA@#8htnkGmB}?Z{PJuFqfCI6sI?Tyz{nQ zfb$(f{fT0`xJhFV_3H3a?|Pu#!lb`0^5vs{(uQp_qXC-P(G8nh-bq`c^iRv*Wrwer z%Z~^Suw5UB7LjaeLz)RgS_nR1awP8@I*FP>n`wUBr(KZbGa;+uF3J-gM#du0%~gs7p3# zQ}4Js%vn#zchTnunJU$LpSXZmi!jk>fu@y4SfVh#qbf-+t;qzNxmK|JoA2AMCk|ntzqy2yG!^JoYs?#!llAR|31SmMWF%}K3tv% zUMD$Dy@>m6;;@s*TuKtljOC!o@~o)kwQ0lFx8W4F83q&)IGe#_|1 zL!-C0?9g{%DBN00F-NE8wjQN&3(7K^;L!SNC^EMw%D)9m@FA0KNocXehCL&K96{XA+n~M=R0t?b-cFTAa>fJW00O$bqd4LsWi}?qrt5G73S6NrKLxbcSApJHA$A~ z!_I~e@DAVq-tOv{PMBGa{;N(KxAQ2H`7^h#ZqLB{>9j13_ryY3SNr@|1x;&hDyr=Whpcn$g3&l$VFdXuwCedVc`@pZ;5C5?Bc;r z&Z95Q1o7h8R9q{;y1%Uvl_RJwBSY{_%_sqzX;lVd4iViT>W6h@(nxo&l=@N~>|l6w zZPYY8B=pp&M4-_UGs7z1Cf}9C$3*8ds)%5q>FL=(%PkRf`)Y_)9DSxM)n+F&y@e!p zghH2Vc(G$`GIgu8K$#f=d?_mw;Jg(dzE$}9-XGNeIL?|D6@Hll82CGXxU&?vLd(gd zL48B9NkPXge0(^$>*;E^3EB{<{|o@Bq7o`8&Q8kc8fIz4u=yU1Dw_`h%~(FRb;~7? zoL77xu~EmT#vnjUFi4*vc6{ouRl~x(81Ov1THt$3Ad^8>k|f?Pn6@rlwaoV9G%s8E zg}eC+m_BD#IRp67iN=H0}tResRoV{Xvgf(i53r^d>b-9kdFG?7x)x5a-8@bA~gJKYJ zxbr911X?#_;wez9@M`4V1-L+#oeP6VQ?04>@W;q7)Al?GQsXc31&C{FchVTGJAJhD zWFbDWv0)(^LT1hIcmDKbJonZp$C)d~!^|D~V4U_U^L`^~+x-AE8jiN_23B?}p~m1E zBX2PUxmwU%@JO}6MvW^p!&hD)-jLAZ@Lzq|9t|c=KxIy&_I5@kN{XB2VrLJ&kQ%p73CwnVeaSS1=f9-idDxIe8c2=2tI3!tIw zeSlbT)UB`Nn{RvNEZJ_H&za7&S6y!G^Od&J-CmXa%9?n#bMcSma9|j8<^b_0^Q`55 z$-VX6#>2RYRXgY687dX8NhT(gyr=$K3cfkEGLf{161hx%&Rlsx;^Fb?IW7)%GsWZ` z@BSVRtTG&bd#NX*E4`$@Rl>2;!uu}4C2(2M)>b8_}h?CEi+ z{2q(^SJypkVDqooU+IDl;@C!H3s0MnHik(>Uwbuu9VU@4RN8^Bob2p}fGoc*C^rwH z_t@d|rdZR&)-osnfX(xaV_PT2l-;f7`7W5)`mE9EwsuO-?H9S(ya~Y5&%L~r;yY9J zzlK)++LsLWOFq{y3?Te?TDXzA_Pg`6xN$($&G-VVP8K@(7yEjaxlJeI-K(tP;c8lJ zedT$s{FIgVrs)7tyE5D7?9t-HG~o&)@aCH-hbieduE?8Bf~8x{(@apin^uIgU~Qll zq`gKZ=FfUAg(&hunXF6hb#!?MnVgHEWNe0~H8UL@H*Oz$Vuxrkq@0^E;IE{g{VUJU zUhxiHwh8!}D0f@;amQb@lgj&TMh?yuj5o=RPH_bL9EF$t>0(bR-+K%f{;`@m()Y5v z|0p1w5ycTQX(TI4a7q|OiB)^Z5ME@XqyI-d6x1y~BzqQ+U*Be9sPFoeaQaX1Z^1M6 znyByjJ@FmOcya!M@($w#Qh{VNrV}@QX>|cP;Uzw_NN^)4eU(1Rs0hTC1Xs_SUEC{w zZs>5+zpP0DTSACgSOS<7z`0?=I#;S@fS|Mp8W5g@hw$-H=M-B6vKm}DuEKGQ6%3*; zO?JBRmT%Srg82fDOQKeF*81|olwX}>OFN~Or%YIkqB`A0+*Xn4u6?TWKH;UIYZKCD zdB?{EjtvQ(idGwA4@)Mhf}GP5M4JdGCCVlj9b)Ww1;O*+({xF_-)nBTgvm;J7I`K- z`e>?Jph8kb(Y~K%@&(K9yw!2s&esaF267`qhm?IK2&TfsVsfToU$)w2rSWU%L?HZU zT85&^m&`L?Ysy5f3aXgI+_%KswA{6G4u>Ppb0+XAUI2?kVf(}cfppmPj0tJz87l}S z-!C=cT{WC;ubPm?9q8;iJ}y}wsN><(?}?=EgYc1*?F$yNzBYz*8x{gM=IfLG^8S~d zrl&WyJx?m@7)(z`sTz6|K>f1iMk{5fyYS)%moZKeZp)g%%FSTKZMh z31olehYBVP8}xw2$?1~kjvi6U+4*G#w3gkn7TB?zEcm=Oy{(%iL|24OS{9^v zW%W0$VAHA%xOaQM`%v8*b@S7oXSGreT5O;^;F zOYSv!KSI?<*55%R{O?Q#Jxua9@EuoH=84OP;>TY~B0^N?S)l&Cdo7#5TVtyHs!80+ z&99!yGUS%&e=Sg+Rwx*UGIuyo`G{OwUH@Fve0}cC&uhV3^o)boZ~wmlo&aJ0_-w1g zCd^fm$bY}a%(h^k=P}4XxF84jL;v&prvUvp&_X1UL_f1eQ2pErf7@9cGRztJy1?3h z!N{C{gG|jP5C2Scx3B*eVgC`kbp80m=Oo50;WA-6w`QX4ENy=)RdbP%{|hyAz|nHk z{+~Bsy5uRAV;C~8_q1U}q_GT)6&0mBhgwU3$x04mo@mr$rUU={UC9*TLPLNiZq#W` BY%Tx* diff --git a/inst/htmlwidgets/lib/plotlyjs/LICENSE b/inst/htmlwidgets/lib/plotlyjs/LICENSE index 1196ce9631..13ffac3c94 100644 --- a/inst/htmlwidgets/lib/plotlyjs/LICENSE +++ b/inst/htmlwidgets/lib/plotlyjs/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +MIT License -Copyright (c) 2021 Plotly, Inc +Copyright (c) 2016-2024 Plotly Technologies Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/cs.js b/inst/htmlwidgets/lib/plotlyjs/locales/cs.js index e9adaea1fc..cd7aafeb1d 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/cs.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/cs.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"cs",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obd\xe9ln\xedkov\xfd v\xfdb\u011br","Click to enter Colorscale title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu barevn\xe9 \u0161k\xe1ly","Click to enter Component A title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty A","Click to enter Component B title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty B","Click to enter Component C title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty C","Click to enter Plot title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu grafu","Click to enter X axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy X","Click to enter Y axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy Y","Click to enter radial axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu radi\xe1ln\xed osy","Compare data on hover":"Porovnat hodnoty p\u0159i najet\xed my\u0161\xed","Double-click on legend to isolate one trace":"Dvojklikem na legendu izolujete jedinou datovou sadu","Double-click to zoom back out":"Dvojklikem vr\xe1t\xedte zv\u011bt\u0161en\xed","Download plot as a png":"Ulo\u017eit jako PNG","Download plot":"Ulo\u017eit","Edit in Chart Studio":"Editovat v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje pouze SVG form\xe1t. Zm\u011bn\u011bno na SVG.","Lasso Select":"Vyb\u011br lasem","Orbital rotation":"Rotace (orbit\xe1ln\xed)",Pan:"Posunovat","Produced with Plotly.js":"Vytvo\u0159eno pomoc\xed Plotly.js",Reset:"Obnovit nastaven\xed","Reset axes":"Obnovit nastaven\xed os","Reset camera to default":"Obnovit nastaven\xed kamery na v\xfdchoz\xed stav","Reset camera to last save":"Obnovit nastaven\xed kamery na posledn\xed ulo\u017een\xfd stav","Reset view":"Obnovit nastaven\xed pohledu","Reset views":"Obnovit nastaven\xed pohled\u016f","Show closest data on hover":"Zobrazit najbli\u017e\u0161\xed hodnotu p\u0159i najet\xed my\u0161\xed","Snapshot succeeded":"Sn\xedmek vytvo\u0159en","Sorry, there was a problem downloading your snapshot!":"Omlouv\xe1me se, ale do\u0161lo k chyb\u011b stahov\xe1n\xed sn\xedmku!","Taking snapshot - this may take a few seconds":"Vytv\xe1\u0159\xed se sn\xedmek - m\u016f\u017ee zabrat p\xe1r vte\u0159in",Zoom:"Zv\u011bt\u0161en\xed","Zoom in":"Zv\u011bt\u0161it","Zoom out":"Zmen\u0161it","close:":"zav\u0159\xedt:",trace:"datov\xe1 sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"c\xedl:","lower fence:":"doln\xed limit:","upper fence:":"horn\xed limit:","max:":"max.:","mean \xb1 \u03c3:":"pr\u016fm\u011br \xb1 \u03c3:","mean:":"pr\u016fm\u011br:","median:":"medi\xe1n:","min:":"min.:","new text":"nov\xfd text","Turntable rotation":"Rotace (oto\u010dn\xfd st\u016fl)","Toggle Spike Lines":"P\u0159epnout zobrazen\xed vod\xedc\xedch \u010dar","open:":"otev\u0159\xedt:","high:":"horn\xed:","low:":"doln\xed:","Toggle show closest data on hover":"P\u0159epnout zobrazov\xe1n\xed nejbli\u017e\u0161i hodnoty p\u0159i najet\xed my\u0161\xed","incoming flow count:":"po\u010det dat na vstupu:","outgoing flow count:":"po\u010det dat na v\xfdstupu:","kde:":"kde:"},format:{days:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"],shortDays:["ne","po","\xfat","st","\u010dt","p\xe1","so"],months:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"],shortMonths:["led","\xfano","b\u0159e","dub","kv\u011b","\u010der","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"cs",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obd\xe9ln\xedkov\xfd v\xfdb\u011br","Click to enter Colorscale title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu barevn\xe9 \u0161k\xe1ly","Click to enter Component A title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty A","Click to enter Component B title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty B","Click to enter Component C title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty C","Click to enter Plot title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu grafu","Click to enter X axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy X","Click to enter Y axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy Y","Click to enter radial axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu radi\xe1ln\xed osy","Compare data on hover":"Porovnat hodnoty p\u0159i najet\xed my\u0161\xed","Double-click on legend to isolate one trace":"Dvojklikem na legendu izolujete jedinou datovou sadu","Double-click to zoom back out":"Dvojklikem vr\xe1t\xedte zv\u011bt\u0161en\xed","Download plot as a png":"Ulo\u017eit jako PNG","Download plot":"Ulo\u017eit","Edit in Chart Studio":"Editovat v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje pouze SVG form\xe1t. Zm\u011bn\u011bno na SVG.","Lasso Select":"Vyb\u011br lasem","Orbital rotation":"Rotace (orbit\xe1ln\xed)",Pan:"Posunovat","Produced with Plotly.js":"Vytvo\u0159eno pomoc\xed Plotly.js",Reset:"Obnovit nastaven\xed","Reset axes":"Obnovit nastaven\xed os","Reset camera to default":"Obnovit nastaven\xed kamery na v\xfdchoz\xed stav","Reset camera to last save":"Obnovit nastaven\xed kamery na posledn\xed ulo\u017een\xfd stav","Reset view":"Obnovit nastaven\xed pohledu","Reset views":"Obnovit nastaven\xed pohled\u016f","Show closest data on hover":"Zobrazit najbli\u017e\u0161\xed hodnotu p\u0159i najet\xed my\u0161\xed","Snapshot succeeded":"Sn\xedmek vytvo\u0159en","Sorry, there was a problem downloading your snapshot!":"Omlouv\xe1me se, ale do\u0161lo k chyb\u011b stahov\xe1n\xed sn\xedmku!","Taking snapshot - this may take a few seconds":"Vytv\xe1\u0159\xed se sn\xedmek - m\u016f\u017ee zabrat p\xe1r vte\u0159in",Zoom:"Zv\u011bt\u0161en\xed","Zoom in":"Zv\u011bt\u0161it","Zoom out":"Zmen\u0161it","close:":"zav\u0159\xedt:",trace:"datov\xe1 sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"c\xedl:","lower fence:":"doln\xed limit:","upper fence:":"horn\xed limit:","max:":"max.:","mean \xb1 \u03c3:":"pr\u016fm\u011br \xb1 \u03c3:","mean:":"pr\u016fm\u011br:","median:":"medi\xe1n:","min:":"min.:","new text":"nov\xfd text","Turntable rotation":"Rotace (oto\u010dn\xfd st\u016fl)","Toggle Spike Lines":"P\u0159epnout zobrazen\xed vod\xedc\xedch \u010dar","open:":"otev\u0159\xedt:","high:":"horn\xed:","low:":"doln\xed:","Toggle show closest data on hover":"P\u0159epnout zobrazov\xe1n\xed nejbli\u017e\u0161i hodnoty p\u0159i najet\xed my\u0161\xed","incoming flow count:":"po\u010det dat na vstupu:","outgoing flow count:":"po\u010det dat na v\xfdstupu:","kde:":"kde:"},format:{days:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"],shortDays:["ne","po","\xfat","st","\u010dt","p\xe1","so"],months:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"],shortMonths:["led","\xfano","b\u0159e","dub","kv\u011b","\u010der","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/es-pe.js b/inst/htmlwidgets/lib/plotlyjs/locales/es-pe.js index 0c4724dd7c..577470bf51 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/es-pe.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/es-pe.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"es-PE",dictionary:{},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","Sab"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"es-PE",dictionary:{},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","Sab"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:".",thousands:",",currency:["S/",""]}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/es.js b/inst/htmlwidgets/lib/plotlyjs/locales/es.js index a0d0499cb5..9dbf1afde3 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/es.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/es.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"es",dictionary:{Autoscale:"Autoescalar","Box Select":"Seleccionar Caja","Click to enter Colorscale title":"Introducir el t\xedtulo de la Escala de Color","Click to enter Component A title":"Introducir el t\xedtulo del Componente A","Click to enter Component B title":"Introducir el t\xedtulo del Componente B","Click to enter Component C title":"Introducir el t\xedtulo del Componente C","Click to enter Plot title":"Introducir el t\xedtulo de la Gr\xe1fica","Click to enter X axis title":"Introducir el t\xedtulo del eje X","Click to enter Y axis title":"Introducir el t\xedtulo del eje Y","Click to enter radial axis title":"Introducir el t\xedtulo del eje radial","Compare data on hover":"Comparar datos al pasar por encima","Double-click on legend to isolate one trace":"Haga doble-clic en la leyenda para aislar una traza","Double-click to zoom back out":"Haga doble-clic para restaurar la escala","Download plot as a png":"Descargar gr\xe1fica como png","Download plot":"Descargar gr\xe1fica","Edit in Chart Studio":"Editar en Chart Studio","IE only supports svg. Changing format to svg.":"IE solo soporta svg. Cambiando formato a svg.","Lasso Select":"Seleccionar con lazo","Orbital rotation":"Rotaci\xf3n esf\xe9rica",Pan:"Modo Panor\xe1mica","Produced with Plotly.js":"Hecho con Plotly.js",Reset:"Reiniciar","Reset axes":"Reiniciar ejes","Reset camera to default":"Restaurar c\xe1mara predeterminada","Reset camera to last save":"Restaurar anterior c\xe1mara","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Mostrar el dato m\xe1s cercano al pasar por encima","Snapshot succeeded":"La captura de la instant\xe1nea finaliz\xf3 correctamente","Sorry, there was a problem downloading your snapshot!":"\xa1La descarga de la instant\xe1nea fall\xf3!","Taking snapshot - this may take a few seconds":"Capturando una instant\xe1nea - podr\xeda tardar unos segundos","Toggle Spike Lines":"Mostrar/Ocultar Gu\xedas","Toggle show closest data on hover":"Activar/Desactivar mostrar el dato m\xe1s cercano al pasar por encima","Turntable rotation":"Rotaci\xf3n plana",Zoom:"Modo Ampliar/Reducir","Zoom in":"Ampliar","Zoom out":"Reducir","close:":"cierre:","high:":"alza:","incoming flow count:":"flujo de entrada:","kde:":"edp:","lat:":"lat:","lon:":"lon:","low:":"baja:","lower fence:":"l\xedmite inferior:","max:":"m\xe1x:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"m\xedn:","new text":"nuevo texto","open:":"apertura:","outgoing flow count:":"flujo de salida:","q1:":"q1:","q3:":"q3:","source:":"fuente:","target:":"destino:",trace:"traza","upper fence:":"l\xedmite superior:"},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"es",dictionary:{Autoscale:"Autoescalar","Box Select":"Seleccionar Caja","Click to enter Colorscale title":"Introducir el t\xedtulo de la Escala de Color","Click to enter Component A title":"Introducir el t\xedtulo del Componente A","Click to enter Component B title":"Introducir el t\xedtulo del Componente B","Click to enter Component C title":"Introducir el t\xedtulo del Componente C","Click to enter Plot title":"Introducir el t\xedtulo de la Gr\xe1fica","Click to enter Plot subtitle":"Introducir el subt\xedtulo de la Gr\xe1fica","Click to enter X axis title":"Introducir el t\xedtulo del eje X","Click to enter Y axis title":"Introducir el t\xedtulo del eje Y","Click to enter radial axis title":"Introducir el t\xedtulo del eje radial","Compare data on hover":"Comparar datos al pasar por encima","Double-click on legend to isolate one trace":"Haga doble-clic en la leyenda para aislar una traza","Double-click to zoom back out":"Haga doble-clic para restaurar la escala","Download plot as a png":"Descargar gr\xe1fica como png","Download plot":"Descargar gr\xe1fica","Edit in Chart Studio":"Editar en Chart Studio","IE only supports svg. Changing format to svg.":"IE solo soporta svg. Cambiando formato a svg.","Lasso Select":"Seleccionar con lazo","Orbital rotation":"Rotaci\xf3n esf\xe9rica",Pan:"Modo Panor\xe1mica","Produced with Plotly.js":"Hecho con Plotly.js",Reset:"Reiniciar","Reset axes":"Reiniciar ejes","Reset camera to default":"Restaurar c\xe1mara predeterminada","Reset camera to last save":"Restaurar anterior c\xe1mara","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Mostrar el dato m\xe1s cercano al pasar por encima","Snapshot succeeded":"La captura de la instant\xe1nea finaliz\xf3 correctamente","Sorry, there was a problem downloading your snapshot!":"\xa1La descarga de la instant\xe1nea fall\xf3!","Taking snapshot - this may take a few seconds":"Capturando una instant\xe1nea - podr\xeda tardar unos segundos","Toggle Spike Lines":"Mostrar/Ocultar Gu\xedas","Toggle show closest data on hover":"Activar/Desactivar mostrar el dato m\xe1s cercano al pasar por encima","Turntable rotation":"Rotaci\xf3n plana",Zoom:"Modo Ampliar/Reducir","Zoom in":"Ampliar","Zoom out":"Reducir","close:":"cierre:","high:":"alza:","incoming flow count:":"flujo de entrada:","kde:":"edp:","lat:":"lat:","lon:":"lon:","low:":"baja:","lower fence:":"l\xedmite inferior:","max:":"m\xe1x:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"m\xedn:","new text":"nuevo texto","open:":"apertura:","outgoing flow count:":"flujo de salida:","q1:":"q1:","q3:":"q3:","source:":"fuente:","target:":"destino:",trace:"traza","upper fence:":"l\xedmite superior:"},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/fi.js b/inst/htmlwidgets/lib/plotlyjs/locales/fi.js index faaa1f50d1..0c2bab3944 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/fi.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/fi.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"fi",dictionary:{Autoscale:"Autoskaalaa","Box Select":"Laatikkovalinta","Click to enter Colorscale title":"Klikkaa antaaksesi v\xe4riskaalan otsikko","Click to enter Component A title":"Klikkaa antaaksesi komponentin A otsikko","Click to enter Component B title":"Klikkaa antaaksesi komponentin B otsikko","Click to enter Component C title":"Klikkaa antaaksesi komponentin C otsikko","Click to enter Plot title":"Klikkaa antaaksesi kuvion otsikko","Click to enter X axis title":"Klikkaa antaaksesi x-akselin otsikko","Click to enter Y axis title":"Klikkaa antaaksesi y-akselin otsikko","Click to enter radial axis title":"Klikkaa antaaksesi radiaalisen akselin otsikko","Compare data on hover":"Vertaa dataa kursorilla","Double-click on legend to isolate one trace":"Kaksoisklikkaa selitett\xe4 erist\xe4\xe4ksesi yksi sarja","Double-click to zoom back out":"Kaksoisklikkaa zoomataksesi ulos","Download plot":"Lataa kuvio","Download plot as png":"Lataa kuvio png-muodossa","Edit in Chart Studio":"Muokkaa Chart Studiossa","IE only supports svg. Changing format to svg.":"Formaatiksi vaihdetaan IE:n tukema svg.","Lasso Select":"Lassovalinta","Orbital rotation":"Orbitaalikierto",Pan:"Panorointi","Produced with Plotly.js":"Tuotettu Plotly.jsll\xe4",Reset:"Palauta oletusasetukset","Reset axes":"Palauta akselien oletusasetukset","Reset camera to default":"Palauta kameran oletusasetukset","Reset camera to last save":"Palauta kameran viimeksi tallennetut asetukset","Reset view":"Palauta n\xe4kym\xe4n oletusasetukset","Reset views":"Palauta n\xe4kymien oletusasetukset","Show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Snapshot succeeded":"Tilannekuvan ottaminen onnistui","Sorry, there was a problem downloading your snapshot!":"Pahoittelut, tilannekuvan lataaminen ep\xe4onnistui!","Taking snapshot - this may take a few seconds":"Otetaan tilannekuvaa - odota hetki","Toggle Spike Lines":"N\xe4yt\xe4 huiput","Toggle show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Turntable rotation":"Tasokierto",Zoom:"Zoomaus","Zoom in":"Zoomaa sis\xe4\xe4n","Zoom out":"Zoomaa ulos","close:":"loppu:","high:":"korkein:","incoming flow count:":"saapuva virtaus:","kde:":"ydinestimointi:","lat:":"lat.:","lon:":"lon.:","low:":"matalin:","lower fence:":"alempi raja:","max:":"maks.:","mean \xb1 \u03c3:":"keskiarvo \xb1 \u03c3:","mean:":"keskiarvo:","median:":"mediaani:","min:":"min.:","new text":"uusi teksti","open:":"alku:","outgoing flow count:":"l\xe4htev\xe4 virtaus:","q1:":"q1:","q3:":"q3:","source:":"l\xe4hde:","target:":"kohde:",trace:"sarja","upper fence:":"ylempi raja:"},format:{days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["su","ma","ti","ke","to","pe","la"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"fi",dictionary:{Autoscale:"Autoskaalaa","Box Select":"Laatikkovalinta","Click to enter Colorscale title":"Klikkaa antaaksesi v\xe4riskaalan otsikko","Click to enter Component A title":"Klikkaa antaaksesi komponentin A otsikko","Click to enter Component B title":"Klikkaa antaaksesi komponentin B otsikko","Click to enter Component C title":"Klikkaa antaaksesi komponentin C otsikko","Click to enter Plot title":"Klikkaa antaaksesi kuvion otsikko","Click to enter X axis title":"Klikkaa antaaksesi x-akselin otsikko","Click to enter Y axis title":"Klikkaa antaaksesi y-akselin otsikko","Click to enter radial axis title":"Klikkaa antaaksesi radiaalisen akselin otsikko","Compare data on hover":"Vertaa dataa kursorilla","Double-click on legend to isolate one trace":"Kaksoisklikkaa selitett\xe4 erist\xe4\xe4ksesi yksi sarja","Double-click to zoom back out":"Kaksoisklikkaa zoomataksesi ulos","Download plot":"Lataa kuvio","Download plot as a png":"Lataa kuvio png-muodossa","Edit in Chart Studio":"Muokkaa Chart Studiossa","IE only supports svg. Changing format to svg.":"Formaatiksi vaihdetaan IE:n tukema svg.","Lasso Select":"Lassovalinta","Orbital rotation":"Orbitaalikierto",Pan:"Panorointi","Produced with Plotly.js":"Tuotettu Plotly.jsll\xe4",Reset:"Palauta oletusasetukset","Reset axes":"Palauta akselien oletusasetukset","Reset camera to default":"Palauta kameran oletusasetukset","Reset camera to last save":"Palauta kameran viimeksi tallennetut asetukset","Reset view":"Palauta n\xe4kym\xe4n oletusasetukset","Reset views":"Palauta n\xe4kymien oletusasetukset","Show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Snapshot succeeded":"Tilannekuvan ottaminen onnistui","Sorry, there was a problem downloading your snapshot!":"Pahoittelut, tilannekuvan lataaminen ep\xe4onnistui!","Taking snapshot - this may take a few seconds":"Otetaan tilannekuvaa - odota hetki","Toggle Spike Lines":"N\xe4yt\xe4 huiput","Toggle show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Turntable rotation":"Tasokierto",Zoom:"Zoomaus","Zoom in":"Zoomaa sis\xe4\xe4n","Zoom out":"Zoomaa ulos","close:":"loppu:","high:":"korkein:","incoming flow count:":"saapuva virtaus:","kde:":"ydinestimointi:","lat:":"lat.:","lon:":"lon.:","low:":"matalin:","lower fence:":"alempi raja:","max:":"maks.:","mean \xb1 \u03c3:":"keskiarvo \xb1 \u03c3:","mean:":"keskiarvo:","median:":"mediaani:","min:":"min.:","new text":"uusi teksti","open:":"alku:","outgoing flow count:":"l\xe4htev\xe4 virtaus:","q1:":"q1:","q3:":"q3:","source:":"l\xe4hde:","target:":"kohde:",trace:"sarja","upper fence:":"ylempi raja:"},format:{days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["su","ma","ti","ke","to","pe","la"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/fr.js b/inst/htmlwidgets/lib/plotlyjs/locales/fr.js index bc5ab8959d..097c63839d 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/fr.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/fr.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"fr",dictionary:{Autoscale:"\xc9chelle automatique","Box Select":"S\xe9lection rectangulaire","Click to enter Colorscale title":"Ajouter un titre \xe0 l'\xe9chelle de couleurs","Click to enter Component A title":"Ajouter un titre \xe0 la composante A","Click to enter Component B title":"Ajouter un titre \xe0 la composante B","Click to enter Component C title":"Ajouter un titre \xe0 la composante C","Click to enter Plot title":"Ajouter un titre au graphique","Click to enter X axis title":"Ajouter un titre \xe0 l'axe des x","Click to enter Y axis title":"Ajouter un titre \xe0 l'axe des y","Click to enter radial axis title":"Ajouter un titre \xe0 l'axe radial","Compare data on hover":"Comparaison entre donn\xe9es en survol","Double-click on legend to isolate one trace":"Double-cliquer sur la l\xe9gende pour isoler une s\xe9rie","Double-click to zoom back out":"Double-cliquer pour d\xe9zoomer","Download plot as a png":"T\xe9l\xe9charger le graphique en fichier PNG","Download plot":"T\xe9l\xe9charger le graphique","Edit in Chart Studio":"\xc9diter le graphique sur Chart Studio","IE only supports svg. Changing format to svg.":"IE ne permet que les conversions en SVG. Conversion en SVG en cours.","Lasso Select":"S\xe9lection lasso","Orbital rotation":"Rotation orbitale",Pan:"Translation","Produced with Plotly.js":"G\xe9n\xe9r\xe9 avec Plotly.js",Reset:"R\xe9initialiser","Reset axes":"R\xe9initialiser les axes","Reset camera to default":"R\xe9gler la cam\xe9ra \xe0 sa valeur d\xe9faut","Reset camera to last save":"R\xe9gler la cam\xe9ra \xe0 sa valeur sauvegard\xe9e","Reset view":"R\xe9initialiser","Reset views":"R\xe9initialiser","Show closest data on hover":"Donn\xe9es les plus proches en survol","Snapshot succeeded":"Conversion r\xe9ussie","Sorry, there was a problem downloading your snapshot!":"D\xe9sol\xe9, un probl\xe8me est survenu lors du t\xe9l\xe9chargement de votre graphique","Taking snapshot - this may take a few seconds":"Conversion en cours, ceci peut prendre quelques secondes",Zoom:"Zoom","Zoom in":"Zoom int\xe9rieur","Zoom out":"Zoom ext\xe9rieur","close:":"fermeture :",trace:"s\xe9rie","lat:":"lat. :","lon:":"lon. :","q1:":"q1 :","q3:":"q3 :","source:":"source :","target:":"embouchure :","lower fence:":"cl\xf4ture sup\xe9rieure :","upper fence:":"cl\xf4ture inf\xe9rieure :","max:":"max. :","mean \xb1 \u03c3:":"moyenne \xb1 \u03c3 :","mean:":"moyenne :","median:":"m\xe9diane :","min:":"min. :","new text":"nouveau texte","Turntable rotation":"Rotation planaire","Toggle Spike Lines":"Activer/d\xe9sactiver les pics","open:":"ouverture :","high:":"haut :","low:":"bas :","Toggle show closest data on hover":"Activer/d\xe9sactiver le survol","incoming flow count:":"flux entrant :","outgoing flow count:":"flux sortant :","kde:":"est. par noyau :"},format:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortDays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],shortMonths:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],date:"%d/%m/%Y",decimal:",",thousands:" ",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"fr",dictionary:{Autoscale:"\xc9chelle automatique","Box Select":"S\xe9lection rectangulaire","Click to enter Colorscale title":"Ajouter un titre \xe0 l'\xe9chelle de couleurs","Click to enter Component A title":"Ajouter un titre \xe0 la composante A","Click to enter Component B title":"Ajouter un titre \xe0 la composante B","Click to enter Component C title":"Ajouter un titre \xe0 la composante C","Click to enter Plot title":"Ajouter un titre au graphique","Click to enter Plot subtitle":"Ajouter un sous-titre au graphique","Click to enter X axis title":"Ajouter un titre \xe0 l'axe des x","Click to enter Y axis title":"Ajouter un titre \xe0 l'axe des y","Click to enter radial axis title":"Ajouter un titre \xe0 l'axe radial","Compare data on hover":"Comparaison entre donn\xe9es en survol","Double-click on legend to isolate one trace":"Double-cliquer sur la l\xe9gende pour isoler une s\xe9rie","Double-click to zoom back out":"Double-cliquer pour d\xe9zoomer","Download plot as a png":"T\xe9l\xe9charger le graphique en fichier PNG","Download plot":"T\xe9l\xe9charger le graphique","Edit in Chart Studio":"\xc9diter le graphique sur Chart Studio","IE only supports svg. Changing format to svg.":"IE ne permet que les conversions en SVG. Conversion en SVG en cours.","Lasso Select":"S\xe9lection lasso","Orbital rotation":"Rotation orbitale",Pan:"Translation","Produced with Plotly.js":"G\xe9n\xe9r\xe9 avec Plotly.js",Reset:"R\xe9initialiser","Reset axes":"R\xe9initialiser les axes","Reset camera to default":"R\xe9gler la cam\xe9ra \xe0 sa valeur d\xe9faut","Reset camera to last save":"R\xe9gler la cam\xe9ra \xe0 sa valeur sauvegard\xe9e","Reset view":"R\xe9initialiser","Reset views":"R\xe9initialiser","Show closest data on hover":"Donn\xe9es les plus proches en survol","Snapshot succeeded":"Conversion r\xe9ussie","Sorry, there was a problem downloading your snapshot!":"D\xe9sol\xe9, un probl\xe8me est survenu lors du t\xe9l\xe9chargement de votre graphique","Taking snapshot - this may take a few seconds":"Conversion en cours, ceci peut prendre quelques secondes",Zoom:"Zoom","Zoom in":"Zoom int\xe9rieur","Zoom out":"Zoom ext\xe9rieur","close:":"fermeture :",trace:"s\xe9rie","lat:":"lat. :","lon:":"lon. :","q1:":"q1 :","q3:":"q3 :","source:":"source :","target:":"embouchure :","lower fence:":"cl\xf4ture inf\xe9rieure :","upper fence:":"cl\xf4ture sup\xe9rieure :","max:":"max. :","mean \xb1 \u03c3:":"moyenne \xb1 \u03c3 :","mean:":"moyenne :","median:":"m\xe9diane :","min:":"min. :","new text":"nouveau texte","Turntable rotation":"Rotation planaire","Toggle Spike Lines":"Activer/d\xe9sactiver les pics","open:":"ouverture :","high:":"haut :","low:":"bas :","Toggle show closest data on hover":"Activer/d\xe9sactiver le survol","incoming flow count:":"flux entrant :","outgoing flow count:":"flux sortant :","kde:":"est. par noyau :"},format:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortDays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],shortMonths:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],date:"%d/%m/%Y",decimal:",",thousands:" ",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/hr.js b/inst/htmlwidgets/lib/plotlyjs/locales/hr.js index da061d7e60..f6c0edfa8f 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/hr.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/hr.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"hr",dictionary:{},format:{days:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010cetvrtak","Petak","Subota"],shortDays:["Ned","Pon","Uto","Sri","\u010cet","Pet","Sub"],months:["Sije\u010danj","Velja\u010da","O\u017eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],shortMonths:["Sij","Velj","O\u017eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],date:"%d.%m.%Y."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"hr",dictionary:{Autoscale:"Automatsko skaliranje","Box Select":"Pravokutni odabir","Click to enter Colorscale title":"Kliknite za unos Colorscale naziva","Click to enter Component A title":"Kliknite za unos naziva Komponente A","Click to enter Component B title":"Kliknite za unos naziva Komponente B","Click to enter Component C title":"Kliknite za unos naziva Komponente C","Click to enter Plot title":"Kliknite za unos naslova grafikona","Click to enter X axis title":"Kliknite za unos naziva X osi","Click to enter Y axis title":"Kliknite za unos naziva Y osi","Click to enter radial axis title":"Kliknite za unos naziva radijalne osi","Compare data on hover":"Usporedi podatke pri prijelazu mi\u0161em","Double-click on legend to isolate one trace":"Dvaput kliknite kako biste izolirali jednu oznaku","Double-click to zoom back out":"Dvaput kliknite kako biste vratili originalnu razinu zumiranja","Download plot as a png":"Preuzmite grafi\u010dki prikaz kao .png","Download plot":"Preuzmite grafi\u010dki prikaz","Edit in Chart Studio":"Uredite pomo\u0107u funkcionalnosti Chart Studio","IE only supports svg. Changing format to svg.":"IE podr\u017eava samo svg. Format se mijenja u svg.","Lasso Select":"Laso odabir","Orbital rotation":"Rotacija oko osi",Pan:"Pomicanje","Produced with Plotly.js":"Napravljeno u paketu Plotly.js",Reset:"Resetirajte","Reset axes":"Resetirajte osi","Reset camera to default":"Resetirajte kameru na zadane vrijednosti","Reset camera to last save":"Resetirajte kameru na zadnje snimljene postavke","Reset view":"Resetirajte pogled","Reset views":"Resetirajte poglede","Show closest data on hover":"Prika\u017ei najbli\u017ee podatke pri zadr\u017eavanju mi\u0161em","Snapshot succeeded":"Preuzimanje slike uspje\u0161no","Sorry, there was a problem downloading your snapshot!":"Pojavila se gre\u0161ka prilikom preuzimanja slike!","Taking snapshot - this may take a few seconds":"Preuzimanje slike - ovo mo\u017ee potrajati nekoliko sekundi","Toggle Spike Lines":"Postavljanje pomo\u0107nih linija","Toggle show closest data on hover":"Postavljanje prikaza najbli\u017eih podataka pri zadr\u017eavanju mi\u0161em","Turntable rotation":"Turntable rotiranje",Zoom:"Zumiranje","Zoom in":"Pove\u0107aj zumiranje","Zoom out":"Smanji zumiranje","close:":"zatvori:","high:":"visoko:","incoming flow count:":"broj dolaze\u0107eg flowa:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"nisko:","lower fence:":"donja granica:","max:":"max:","mean:":"prosjek","median:":"medijan:","min:":"min:","new text":"novi tekst","open:":"otvori:","outgoing flow count:":"broj odlaze\u0107eg flow-a:","q1:":"q1:","q3:":"q3:","source:":"izvor:","target:":"cilj:",trace:"oznaka","upper fence:":"gornja granica:"},format:{days:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010cetvrtak","Petak","Subota"],shortDays:["Ned","Pon","Uto","Sri","\u010cet","Pet","Sub"],months:["Sije\u010danj","Velja\u010da","O\u017eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],shortMonths:["Sij","Velj","O\u017eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],date:"%d.%m.%Y.",decimal:",",thousands:""}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/it.js b/inst/htmlwidgets/lib/plotlyjs/locales/it.js index 098ab47274..8cce73f44f 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/it.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/it.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"it",dictionary:{Autoscale:"Scala automaticamente","Box Select":"Selezione box","Click to enter Colorscale title":"Clicca per inserire un titolo alla scala di colori","Click to enter Component A title":"Clicca per inserire un titolo al componente A","Click to enter Component B title":"Clicca per inserire un titolo al componente B","Click to enter Component C title":"Clicca per inserire un titolo al componente C","Click to enter Plot title":"Clicca per inserire un titolo al grafico","Click to enter X axis title":"Clicca per inserire un titolo all'asse X","Click to enter Y axis title":"Clicca per inserire un titolo all'asse Y","Click to enter radial axis title":"Clicca per inserire un titolo per l' asse radiale","Compare data on hover":"Paragona i dati al passaggio del mouse","Double-click on legend to isolate one trace":"Doppio click per isolare i dati di una traccia","Double-click to zoom back out":"Doppio click per tornare allo zoom iniziale","Download plot as a png":"Scarica il grafico come immagine png","Download plot":"Scarica il grafico","Edit in Chart Studio":"Modifica in Chart Studio","IE only supports svg. Changing format to svg.":"IE supporta solo svg. Modifica formato in svg.","Lasso Select":"Selezione lazo","Orbital rotation":"Rotazione orbitale",Pan:"Sposta","Produced with Plotly.js":"Creato con Plotly.js",Reset:"Reset","Reset axes":"Resetta gli assi","Reset camera to default":"Reimposta la camera ai valori predefiniti","Reset camera to last save":"Reimposta la camera all' ultimo salvataggio","Reset view":"Reimposta la vista","Reset views":"Reimposta le viste","Show closest data on hover":"Mostra i dati pi\xf9 vicini al passaggio del mouse","Snapshot succeeded":"Screenshot creato con successo","Sorry, there was a problem downloading your snapshot!":"Si \xe8 verificato un errore durante la creazione dello screenshot","Taking snapshot - this may take a few seconds":"Creazione screenshot - potrebbe richiedere qualche secondo",Zoom:"Zoom","Zoom in":"Ingrandisci","Zoom out":"Rimpicciolisci","close:":"chiudi:",trace:"traccia","lat:":"lat.:","lon:":"lon.:","q1:":"q1:","q3:":"q3:","source:":"sorgente:","target:":"target:","max:":"max.:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"min.:","new text:":"Nuovo testo:","upper fence:":"limite superiore:","lower fence:":"limite inferiore:","Turntable rotation":"Rotazione piattaforma","Toggle Spike Lines":"Abilita linee di identificazione","open:":"apri:","high:":"alto:","kde:":"kde:","low:":"basso:","incoming flow count:":"Flusso in entrata:","outgoing flow count:":"Flusso in uscita:","Toggle show closest data on hover":"Abilita mostra i dati pi\xf9 vicini al passaggio del mouse"},format:{days:["Domenica","Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"it",dictionary:{Autoscale:"Scala automaticamente","Box Select":"Selezione box","Click to enter Colorscale title":"Clicca per inserire un titolo alla scala colori","Click to enter Component A title":"Clicca per inserire un titolo al componente A","Click to enter Component B title":"Clicca per inserire un titolo al componente B","Click to enter Component C title":"Clicca per inserire un titolo al componente C","Click to enter Plot title":"Clicca per inserire un titolo al grafico","Click to enter X axis title":"Clicca per inserire un titolo all'asse X","Click to enter Y axis title":"Clicca per inserire un titolo all'asse Y","Click to enter radial axis title":"Clicca per inserire un titolo per l' asse radiale","Compare data on hover":"Compara i dati al passaggio del mouse","Double-click on legend to isolate one trace":"Doppio click per isolare i dati di una traccia","Double-click to zoom back out":"Doppio click per tornare allo zoom iniziale","Download plot as a png":"Scarica il grafico come immagine png","Download plot":"Scarica il grafico","Edit in Chart Studio":"Modifica in Chart Studio","IE only supports svg. Changing format to svg.":"IE supporta solo svg. Modifica formato in svg.","Lasso Select":"Selezione lazo","Orbital rotation":"Rotazione orbitale",Pan:"Sposta","Produced with Plotly.js":"Creato con Plotly.js",Reset:"Reset","Reset axes":"Resetta gli assi","Reset camera to default":"Reimposta la camera ai valori predefiniti","Reset camera to last save":"Reimposta la camera all' ultimo salvataggio","Reset view":"Reimposta la vista","Reset views":"Reimposta le viste","Show closest data on hover":"Mostra i dati pi\xf9 vicini al passaggio del mouse","Snapshot succeeded":"Screenshot creato con successo","Sorry, there was a problem downloading your snapshot!":"Si \xe8 verificato un errore durante la creazione dello screenshot","Taking snapshot - this may take a few seconds":"Creazione screenshot - potrebbe richiedere qualche secondo",Zoom:"Zoom","Zoom in":"Ingrandisci","Zoom out":"Riduci","close:":"chiudi:",trace:"traccia","lat:":"lat:","lon:":"lon:","q1:":"q1:","q3:":"q3:","source:":"sorgente:","target:":"target:","max:":"max:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"min:","new text:":"Nuovo testo:","upper fence:":"limite superiore:","lower fence:":"limite inferiore:","Turntable rotation":"Rotazione piattaforma","Toggle Spike Lines":"Abilita linee di identificazione","open:":"apri:","high:":"alto:","kde:":"kde:","low:":"basso:","incoming flow count:":"Flusso in entrata:","outgoing flow count:":"Flusso in uscita:","Toggle show closest data on hover":"Abilita mostra i dati pi\xf9 vicini al passaggio del mouse",concentration:"concentrazione"},format:{days:["Domenica","Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/nl.js b/inst/htmlwidgets/lib/plotlyjs/locales/nl.js index 189b78c822..dbb6f288e0 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/nl.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/nl.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"nl",dictionary:{},format:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zon","maa","din","woe","don","vri","zat"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"nl",dictionary:{Autoscale:"Automatische schaal","Click to enter Colorscale title":"Klik om kleurenschaal titel in te vullen","Click to enter Component A title":"Klik om Component A titel in te vullen","Click to enter Component B title":"Klik om Component B titel in te vullen","Click to enter Component C title":"Klik om Component C titel in te vullen","Click to enter Plot title":"Klik om Plot titel in te vullen","Click to enter X axis title":"Klik om x-as titel in te vullen","Click to enter Y axis title":"Klik om y-as titel in te vullen","Click to enter radial axis title":"Klik om radiaal-as titel in te vullen","Double-click to zoom back out":"Zoom uit door te dubbel klikken","Download plot as a png":"Dowload de plot als een png-bestand","Download plot":"Download de plot","Draw circle":"Teken cirkel","Draw closed freeform":"Teken gesloten vorm","Draw line":"Teken lijn","Draw open freeform":"Teken open vorm","Draw rectangle":"Teken rechthoek","Edit in Chart Studio":"In Chart Studio wijzigen","Erase active shape":"Wis huidige vorm","IE only supports svg. Changing format to svg.":"IE ondersteunt alleen svg bestanden. Formaat gewijzigd naar svg.","Lasso Select":"Lasso selectie","Produced with Plotly.js":"Gemaakt met Plotly.js",Zoom:"Inzoomen","max:":"maximum:","mean \xb1 \u03c3:":"gemiddelde \xb1 \u03c3:","mean:":"gemiddelde:","min:":"minimum:","new text":"nieuwe tekst","open:":"openen:","high:":"hoog:","low:":"laag:","source:":"bron:","target:":"doel:"},format:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zon","maa","din","woe","don","vri","zat"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],date:"%d-%m-%Y",decimal:",",thousands:".",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/no.js b/inst/htmlwidgets/lib/plotlyjs/locales/no.js index a72125877d..af4ed9fdcd 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/no.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/no.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"no",dictionary:{},format:{days:["S\xf8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xf8rdag"],shortDays:["S\xf8n","Man","Tir","Ons","Tor","Fre","L\xf8r"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],shortMonths:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"no",dictionary:{Autoscale:"Autoskalere","Box Select":"Velg rektangel","Click to enter Colorscale title":"Klikk for \xe5 oppgi tittel p\xe5 fargeskala","Click to enter Component A title":"Klikk for \xe5 oppgi tittel p\xe5 komponent A","Click to enter Component B title":"Klikk for \xe5 oppgi tittel p\xe5 komponent B","Click to enter Component C title":"Klikk for \xe5 oppgi tittel p\xe5 komponent C","Click to enter Plot title":"Klikk for \xe5 oppgi tittel p\xe5 plot","Click to enter X axis title":"Klikk for \xe5 oppgi tittel p\xe5 x-akse","Click to enter Y axis title":"Klikk for \xe5 oppgi tittel p\xe5 y-akse","Click to enter radial axis title":"Klikk for \xe5 oppgi tittel p\xe5 radiell akse","Compare data on hover":"Sammenligne data n\xe5r musepekeren holdes \xe5ver","Double-click on legend to isolate one trace":"Dobbelklikk p\xe5 p\xe5 forklaringen for \xe5 vise bare en serie","Double-click to zoom back out":"Dobbelklikk for \xe5 zoome ut igjen","Download plot":"Last ned plot","Download plot as a png":"Last ned plot som png","Edit in Chart Studio":"Editer i Chart Studio","IE only supports svg. Changing format to svg.":"IE st\xf8tter bare svg. Bytt format til svg.","Lasso Select":"Velg lasso","Orbital rotation":"Orbital rotasjon",Pan:"Panne","Produced with Plotly":"Laget med Plotly",Reset:"Nullstille","Reset akses":"Nullstille akser","Reset camera to default":"Nullstille kamera til standard","Reset camera to last save":"Nullstille kamera til siste lagret","Reset view":"Nullstille visning","Reset views":"Nullstille visninger","Show closest data on hover":"Vis n\xe6rmeste verdi n\xe5r musepekeren holdes over","Snapshot succeeded":"Bilde Laget","Sorry, there was a problem downloading your snapshot!":"Beklager, noe gikk galt under nedlasting av bildet","Taking snapshot - this may take a few seconds":"Oppretter bilde - dette kan ta noen sekunder","Toggle Spike Lines":"Aktiver / deaktiver topplinjer","Toggle show closest data on hover":"Aktiver / deaktiver n\xe6rmeste verdi n\xe5r musepekeren holdes over","Turntable rotation":"Flat rotation",Zoom:"Zoom","Zoom in":"Zoom inn","Zoom out":"Zoom ut","close:":"steng:","concentration:":"konsentrasjon:","high:":"h\xf8y:","incoming flow count:":"innkommende str\xf8mningssammendrag:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"lav:","lower fence:":"lavere grense","max:":"maks:","mean \xb1 \u03c3:":"gjennomsnitt \xb1 \u03c3:","mean:":"gjennomsnitt:","median:":"median:","min:":"min:","new text":"ny text","open:":"\xe5pen:","outgoing flow count:":"utg\xe5ende str\xf8mningssammendrag:","q1:":"q1:","q3:":"q3:","source:":"kilde:","target:":"m\xe5l:",trace:"serie","upper fence:":"\xf8vre grense:"},format:{days:["S\xf8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xf8rdag"],shortDays:["S\xf8n","Man","Tir","Ons","Tor","Fre","L\xf8r"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],shortMonths:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/pt-br.js b/inst/htmlwidgets/lib/plotlyjs/locales/pt-br.js index 7a8f7b28ee..2990a247e5 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/pt-br.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/pt-br.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"pt-BR",dictionary:{Autoscale:"Escala autom\xe1tica","Box Select":"Sele\xe7\xe3o retangular","Click to enter Colorscale title":"Clique para editar o t\xedtulo da escala de cor","Click to enter Component A title":"Clique para editar o t\xedtulo do Componente A","Click to enter Component B title":"Clique para editar o t\xedtulo do Componente B","Click to enter Component C title":"Clique para editar o t\xedtulo do Componente C","Click to enter Plot title":"Clique para editar o t\xedtulo do Gr\xe1fico","Click to enter X axis title":"Clique para editar o t\xedtulo do eixo X","Click to enter Y axis title":"Clique para editar o t\xedtulo do eixo Y","Click to enter radial axis title":"Clique para editar o t\xedtulo do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma s\xe9rie","Double-click to zoom back out":"Duplo clique para reverter zoom","Download plot as a png":"Fazer download do gr\xe1fico como imagem (png)","Download plot":"Fazer download do gr\xe1fico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Sele\xe7\xe3o de la\xe7o","Orbital rotation":"Rota\xe7\xe3o orbital",Pan:"Mover","Produced with Plotly.js":"Criado com o Plotly.js",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar c\xe2mera para padr\xe3o","Reset camera to last save":"Restaurar c\xe2mera para \xfaltima salva","Reset view":"Restaurar vis\xe3o","Reset views":"Restaurar vis\xf5es","Show closest data on hover":"Exibir dado mais pr\xf3ximo ao pairar","Snapshot succeeded":"Captura instant\xe2nea completa","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instant\xe2nea!","Taking snapshot - this may take a few seconds":"Efetuando captura instant\xe2nea - isso pode levar alguns instantes","Toggle Spike Lines":"Habilitar/desabilitar triangula\xe7\xe3o de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibi\xe7\xe3o de dado mais pr\xf3ximo ao pairar","Turntable rotation":"Rota\xe7\xe3o de mesa",Zoom:"Zoom","Zoom in":"Ampliar zoom","Zoom out":"Reduzir zoom",close:"fechamento",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"m\xe1ximo","mean \xb1 \u03c3":"m\xe9dia \xb1 \u03c3",mean:"m\xe9dia",median:"mediana",min:"m\xednimo","new text":"novo texto",open:"abertura","outgoing flow count":"contagem de fluxo de sa\xedda",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"s\xe9rie","upper fence":"limite superior"},format:{days:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"pt-BR",dictionary:{Autoscale:"Escala autom\xe1tica","Box Select":"Sele\xe7\xe3o retangular","Click to enter Colorscale title":"Clique para editar o t\xedtulo da escala de cor","Click to enter Component A title":"Clique para editar o t\xedtulo do Componente A","Click to enter Component B title":"Clique para editar o t\xedtulo do Componente B","Click to enter Component C title":"Clique para editar o t\xedtulo do Componente C","Click to enter Plot title":"Clique para editar o t\xedtulo do Gr\xe1fico","Click to enter X axis title":"Clique para editar o t\xedtulo do eixo X","Click to enter Y axis title":"Clique para editar o t\xedtulo do eixo Y","Click to enter radial axis title":"Clique para editar o t\xedtulo do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma s\xe9rie","Double-click to zoom back out":"Duplo clique para reverter zoom","Download plot as a png":"Fazer download do gr\xe1fico como imagem (png)","Download plot":"Fazer download do gr\xe1fico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Sele\xe7\xe3o de la\xe7o","Orbital rotation":"Rota\xe7\xe3o orbital",Pan:"Mover","Produced with Plotly.js":"Criado com o Plotly.js",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar c\xe2mera para padr\xe3o","Reset camera to last save":"Restaurar c\xe2mera para \xfaltima salva","Reset view":"Restaurar vis\xe3o","Reset views":"Restaurar vis\xf5es","Show closest data on hover":"Exibir dado mais pr\xf3ximo ao pairar","Snapshot succeeded":"Captura instant\xe2nea completa","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instant\xe2nea!","Taking snapshot - this may take a few seconds":"Efetuando captura instant\xe2nea - isso pode levar alguns instantes","Toggle Spike Lines":"Habilitar/desabilitar triangula\xe7\xe3o de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibi\xe7\xe3o de dado mais pr\xf3ximo ao pairar","Turntable rotation":"Rota\xe7\xe3o de mesa",Zoom:"Zoom","Zoom in":"Ampliar zoom","Zoom out":"Reduzir zoom",close:"fechamento",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"m\xe1ximo","mean \xb1 \u03c3":"m\xe9dia \xb1 \u03c3",mean:"m\xe9dia",median:"mediana",min:"m\xednimo","new text":"novo texto",open:"abertura","outgoing flow count":"contagem de fluxo de sa\xedda",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"s\xe9rie","upper fence":"limite superior"},format:{days:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/ro.js b/inst/htmlwidgets/lib/plotlyjs/locales/ro.js index 81c12023c6..a7206f9a81 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/ro.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/ro.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"ro",dictionary:{},format:{days:["Duminic\u0103","Luni","Marti","Miercuri","Joi","Vineri","S\xe2mb\u0103t\u0103"],shortDays:["Dum","Lun","Mar","Mie","Joi","Vin","S\xe2m"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],shortMonths:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"ro",dictionary:{Autoscale:"Scalare automat\u0103","Box Select":"Selectare caset\u0103","Click to enter Colorscale title":"Introdu titlul paletei de culori","Click to enter Component A title":"Introdu titlul componentei A","Click to enter Component B title":"Introdu titlul componentei B","Click to enter Component C title":"Introdu titlul componentei C","Click to enter Plot title":"Introdu titlul graficului","Click to enter X axis title":"Introdu titlul axei X","Click to enter Y axis title":"Introdu titlul axei Y","Click to enter radial axis title":"Introdu titlul axei radiale","Compare data on hover":"Compar\u0103 datele cu mouse-ul peste","Double-click on legend to isolate one trace":"Dublu clic pe legend\u0103 pentru a izola un r\xe2nd","Double-click to zoom back out":"Dublu clic pentru mic\u0219ora \xeenapoi","Download plot":"Descarc\u0103 graficul","Download plot as a png":"Descarc\u0103 graficul ca imagine PNG","Draw circle":"Deseneaz\u0103 un cerc","Draw closed freeform":"Deseneaz\u0103 o form\u0103 liber\u0103 \xeenchis\u0103","Draw line":"Deseneaz\u0103 o linie","Draw open freeform":"Deseneaz\u0103 o form\u0103 liber\u0103 deschis\u0103","Draw rectangle":"Deseneaz\u0103 un dreptunghi","Edit in Chart Studio":"Modific\u0103 \xeen Chart Studio","Erase active shape":"\u0218terge forma activ\u0103","Lasso Select":"Selec\u021bie Lasso","Orbital rotation":"Rota\u021bie orbital\u0103",Pan:"Panoramare","Produced with Plotly":"Creat cu Plotly",Reset:"Resetare","Reset axes":"Reseteaz\u0103 axele","Reset camera to default":"Reseteaz\u0103 camera la valorile implicite","Reset camera to last save":"Reseteaz\u0103 camera la ultima salvare","Reset view":"Reseteaz\u0103 vizualizarea","Reset views":"Reseteaz\u0103 vizualiz\u0103rile","Show closest data on hover":"Afi\u0219eaz\u0103 cele mai apropiate date la trecerea cu mouse-ul","Snapshot succeeded":"Crearea capturii de ecran a reu\u0219it","Sorry, there was a problem downloading your snapshot!":"Ne pare r\u0103u, a ap\u0103rut o eroare la desc\u0103rcarea capturii de ecran!","Taking snapshot - this may take a few seconds":"Se creaz\u0103 captura de ecran - poate dura c\xe2teva secunde","Toggle Spike Lines":"Comutarea afi\u0219\u0103rii liniilor de v\xe2rf","Toggle show closest data on hover":"Comutarea afi\u0219\u0103rii celor mai apropiate date","Turntable rotation":"Rota\u021bie pe ax\u0103",Zoom:"Zoom","Zoom in":"M\u0103re\u0219te","Zoom out":"Mic\u0219oreaz\u0103","close:":"\xeenchide:","concentration:":"concentrare:","high:":"maxim:","incoming flow count:":"num\u0103rul fluxurilor de intrare:","kde:":"kde:","lat:":"latitudine:","lon:":"longitudine:","low:":"minim:","lower fence:":"limita inferioar\u0103:","max:":"max.:","mean \xb1 \u03c3:":"mediu \xb1 \u03c3:","mean:":"mediu:","median:":"median:","min:":"min.:","new text":"text nou","open:":"deschide:","outgoing flow count:":"num\u0103rul fluxurilor de ie\u0219ire:","q1:":"q1:","q3:":"q3:","source:":"surs\u0103:","target:":"\u021bint\u0103:",trace:"linie de date","upper fence:":"limita superioar\u0103:"},format:{days:["Duminic\u0103","Luni","Marti","Miercuri","Joi","Vineri","S\xe2mb\u0103t\u0103"],shortDays:["Dum","Lun","Mar","Mie","Joi","Vin","S\xe2m"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],shortMonths:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/si.js b/inst/htmlwidgets/lib/plotlyjs/locales/si.js new file mode 100644 index 0000000000..ef82b0d199 --- /dev/null +++ b/inst/htmlwidgets/lib/plotlyjs/locales/si.js @@ -0,0 +1 @@ +var locale={moduleType:"locale",name:"si",dictionary:{Autoscale:"\u0dc3\u0dca\u0dc0\u0dba\u0d82 \u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1\u0dba","Box Select":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0dc0\u0dbb\u0dab\u0dba","Click to enter Colorscale title":"\u0dc0\u0dbb\u0dca\u0dab\u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component A title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d85 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component B title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d86 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component C title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d87 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Plot title":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0\u0dd9\u0dc4\u0dd2 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter X axis title":"\u0dad\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Y axis title":"\u0dc3\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter radial axis title":"\u0d85\u0dbb\u0dd3\u0dba \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Compare data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0daf\u0dad\u0dca\u0dad \u0dc3\u0dc3\u0db3\u0db1\u0dca\u0db1","Double-click on legend to isolate one trace":"Double-click on legend to isolate one trace","Double-click to zoom back out":"\u0d86\u0db4\u0dc3\u0dd4 \u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0daf\u0dd9\u0dc0\u0dbb\u0d9a\u0dca \u0d94\u0db6\u0db1\u0dca\u0db1","Download plot":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Download plot as a png":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db4\u0dd3\u0d91\u0db1\u0dca\u0da2\u0dd3 \u0dbd\u0dd9\u0dc3 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Draw circle":"\u0d9a\u0dc0\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw closed freeform":"\u0dc3\u0d82\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw line":"\u0dbb\u0dda\u0d9b\u0dcf\u0dc0\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw open freeform":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw rectangle":"\u0dc3\u0dd8\u0da2\u0dd4\u0d9a\u0ddd\u0dab\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Edit in Chart Studio":"\u0db4\u0dca\u200d\u0dbb\u0dc3\u0dca\u0dad\u0dcf\u0dbb \u0da0\u0dd2\u0dad\u0dca\u200d\u0dbb\u0dcf\u0d9c\u0dcf\u0dbb\u0dba\u0dd9\u0dc4\u0dd2 \u0dc3\u0d82\u0dc3\u0dca\u0d9a\u0dbb\u0dab\u0dba","Erase active shape":"\u0dc3\u0d9a\u0dca\u200d\u0dbb\u0dd2\u0dba \u0dc4\u0dd0\u0da9\u0dba \u0db8\u0d9a\u0db1\u0dca\u0db1","IE only supports svg. Changing format to svg.":"\u0d89.\u0d91. \u0d91\u0dc3\u0dca\u0dc0\u0dd3\u0da2\u0dd3 \u0dc3\u0db3\u0dc4\u0dcf \u0db4\u0db8\u0dab\u0d9a\u0dca \u0dc3\u0dc4\u0dcf\u0dba \u0daf\u0d9a\u0dca\u0dc0\u0dba\u0dd2. \u0d86\u0d9a\u0dd8\u0dad\u0dd2\u0dba \u0d91\u0dba\u0da7 \u0dc0\u0dd9\u0db1\u0dc3\u0dca \u0dc0\u0dd9\u0db8\u0dd2\u0db1\u0dca","Lasso Select":"\u0db8\u0dcf\u0dba\u0dd2\u0db8 \u0dc0\u0dbb\u0dab\u0dba","Orbital rotation":"\u0d9a\u0dcf\u0d9a\u0dca\u200d\u0dc2\u0dd2\u0d9a \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Pan:"\u0da0\u0dbd\u0d9a\u0dba","Produced with Plotly":"\u0db4\u0dca\u0dbd\u0ddc\u0da7\u0dca\u0dbd\u0dd2 \u0dc3\u0db8\u0d9f \u0d8b\u0db4\u0daf\u0dc0\u0db1 \u0dbd\u0daf\u0dd2",Reset:"\u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset axes":"\u0d85\u0d9a\u0dca\u200d\u0dc2 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset camera to default":"Reset camera to default","Reset camera to last save":"Reset camera to last save","Reset view":"\u0daf\u0dd0\u0d9a\u0dca\u0db8 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset views":"\u0daf\u0dd0\u0d9a\u0dca\u0db8\u0dca \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Show closest data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0d86\u0dc3\u0db1\u0dca\u0db1\u0db8 \u0daf\u0dad\u0dca\u0dad \u0db4\u0dd9\u0db1\u0dca\u0dc0\u0db1\u0dca\u0db1","Snapshot succeeded":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dba\u0dd2","Sorry, there was a problem downloading your snapshot!":"\u0dc3\u0db8\u0dcf\u0dc0\u0db1\u0dca\u0db1, \u0d94\u0db6\u0d9c\u0dda \u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0db6\u0dcf\u0d9c\u0dd0\u0db1\u0dd3\u0db8\u0dda \u0d9c\u0dd0\u0da7\u0dbd\u0dd4\u0dc0\u0d9a\u0dca \u0d87\u0dad!","Taking snapshot - this may take a few seconds":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0d9c\u0dd0\u0db1\u0dd9\u0db8\u0dd2\u0db1\u0dca - \u0db8\u0dd9\u0dba\u0da7 \u0dad\u0dad\u0dca. \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba\u0d9a\u0dca \u0d9c\u0dad\u0dc0\u0dd2\u0dba \u0dc4\u0dd0\u0d9a\u0dd2\u0dba","Toggle Spike Lines":"Toggle Spike Lines","Toggle show closest data on hover":"Toggle show closest data on hover","Turntable rotation":"\u0db6\u0db8\u0dbb \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Zoom:"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd \u0d9a\u0dbb\u0db1\u0dca\u0db1","Zoom in":"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd\u0db1\u0dba","Zoom out":"\u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba","close:":"\u0dc0\u0dc3\u0db1\u0dca\u0db1:","concentration:":"\u0dc3\u0d82\u0d9a\u0dda\u0db1\u0dca\u0daf\u0dca\u200d\u0dbb\u0dab\u0dba:","high:":"high:","incoming flow count:":"\u0d87\u0dad\u0dd4\u0dc5\u0da7\u0d91\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"low:","lower fence:":"lower fence:","max:":"\u0d8b\u0db4\u0dbb\u0dd2\u0db8:","mean \xb1 \u03c3:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba \xb1 \u03c3:","mean:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba:","median:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0dc3\u0dae\u0dba:","min:":"\u0d85\u0dc0\u0db8:","new text":"\u0db1\u0dc0 \u0db4\u0dcf\u0da8\u0dba","open:":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad:","outgoing flow count:":"\u0db4\u0dd2\u0da7\u0dad\u0da7\u0dba\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","q1:":"q1:","q3:":"q3:","source:":"\u0db8\u0dd6\u0dbd\u0dcf\u0dc1\u0dca\u200d\u0dbb\u0dba:","target:":"\u0d89\u0dbd\u0d9a\u0dca\u0d9a\u0dba:",trace:"trace","upper fence:":"upper fence:"},format:{days:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf","\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf","\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf"],shortDays:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca","\u0dc3\u0dd2\u0d9a\u0dd4","\u0dc3\u0dd9\u0db1"],months:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4\u0dc0\u0db4\u0dca"],shortMonths:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/sk.js b/inst/htmlwidgets/lib/plotlyjs/locales/sk.js index d4d947663b..9aacb2089b 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/sk.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/sk.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"sk",dictionary:{},format:{days:["Nedel'a","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"],shortDays:["Ned","Pon","Uto","Str","\u0160tv","Pia","Sob"],months:["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"],shortMonths:["Jan","Feb","Mar","Apr","M\xe1j","J\xfan","J\xfal","Aug","Sep","Okt","Nov","Dec"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"sk",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obd\u013a\u017enikov\xfd v\xfdber","Click to enter Colorscale title":"Kliknite pre zadanie n\xe1zvu farebnej \u0161k\xe1ly","Click to enter Component A title":"Kliknite pre zadanie n\xe1zvu komponentu A","Click to enter Component B title":"Kliknite pre zadanie n\xe1zvu komponentu B","Click to enter Component C title":"Kliknite pre zadanie n\xe1zvu komponentu C","Click to enter Plot title":"Kliknite pre zadanie n\xe1zvu grafu","Click to enter X axis title":"Kliknite pre zadanie n\xe1zvu osi X","Click to enter Y axis title":"Kliknite pre zadanie n\xe1zvu osi Y","Click to enter radial axis title":"Kliknite pre zadanie n\xe1zvu radi\xe1lnej osi","Compare data on hover":"Porovna\u0165 hodnoty pri prejden\xed my\u0161ou","Double-click on legend to isolate one trace":"Dvojklikom na legendu izolujete jednu d\xe1tov\xfa sadu","Double-click to zoom back out":"Dvojklikom vr\xe1tite zv\xe4\u010d\u0161enie","Download plot as a png":"Ulo\u017ei\u0165 ako PNG","Download plot":"Ulo\u017ei\u0165","Edit in Chart Studio":"Editova\u0165 v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje iba SVG form\xe1t. Zmenen\xe9 na SVG.","Lasso Select":"V\xfdber lasom","Orbital rotation":"Rot\xe1cia (orbit\xe1lna)",Pan:"Pos\xfavanie","Produced with Plotly.js":"Vytvoren\xe9 pomocou Plotly.js",Reset:"Obnovi\u0165 nastavenie","Reset axes":"Obnovi\u0165 nastavenie os\xed","Reset camera to default":"Obnovi\u0165 nastavenie kamery do predvolen\xe9ho stavu","Reset camera to last save":"Obnovi\u0165 nastavenie kamery do posledn\xe9ho ulo\u017een\xe9ho stavu","Reset view":"Obnovi\u0165 nastavenie poh\u013eadu","Reset views":"Obnovi\u0165 nastavenie poh\u013eadov","Show closest data on hover":"Zobrazi\u0165 najbli\u017e\u0161iu hodnotu p\u0159i prejden\xed my\u0161ou","Snapshot succeeded":"Obr\xe1zok vytvoren\xfd","Sorry, there was a problem downloading your snapshot!":"Ospravedl\u0148ujeme sa, do\u0161lo k chybe pri s\u0165ahovan\xed obr\xe1zka!","Taking snapshot - this may take a few seconds":"Sn\xedmanie - m\xf4\u017ee trva\u0165 nieko\u013eko sek\xfand",Zoom:"Zv\xe4\u010d\u0161enie","Zoom in":"Zv\xe4\u010d\u0161i\u0165","Zoom out":"Zmen\u0161i\u0165","close:":"zavrie\u0165:",trace:"d\xe1tov\xe1 sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"cie\u013e:","lower fence:":"spodn\xe1 hranica:","upper fence:":"vrchn\xe1 hranica:","max:":"max.:","mean \xb1 \u03c3:":"priemer \xb1 \u03c3:","mean:":"priemer:","median:":"medi\xe1n:","min:":"min.:","new text":"nov\xfd text","Turntable rotation":"Rot\xe1cia (oto\u010dn\xfd stol\xedk)","Toggle Spike Lines":"Prepn\xfa\u0165 zobrazenie vodiacich \u010diar","open:":"otvori\u0165:","high:":"horn\xe1:","low:":"doln\xe1:","Toggle show closest data on hover":"Prepn\xfa\u0165 zobrazovanie najbli\u017e\u0161ej hodnoty pri prejden\xed my\u0161ou","incoming flow count:":"po\u010det \xfadajov na vstupe:","outgoing flow count:":"po\u010det \xfadajov na v\xfdstupe:","kde:":"kde:"},format:{days:["Nede\u013ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"],shortDays:["Ned","Pon","Uto","Str","\u0160tv","Pia","Sob"],months:["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"],shortMonths:["Jan","Feb","Mar","Apr","M\xe1j","J\xfan","J\xfal","Aug","Sep","Okt","Nov","Dec"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/tr.js b/inst/htmlwidgets/lib/plotlyjs/locales/tr.js index 6a370f4691..d8ccb45843 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/tr.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/tr.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"tr",dictionary:{},format:{days:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"],shortDays:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"],shortMonths:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"tr",dictionary:{Autoscale:"Otomatik \xd6l\xe7eklendir","Box Select":"Dikd\xf6rtgen Kutu Se\xe7imi","Click to enter Colorscale title":"Renk \xd6l\xe7e\u011fi ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component A title":"A bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component B title":"B bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component C title":"C bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Plot title":"Grafik ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter X axis title":"X ekseni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Y axis title":"Y ekseni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Compare data on hover":"\xdczerine gelince verileri kar\u015f\u0131la\u015ft\u0131r","Double-click on legend to isolate one trace":"Bir izi izole etmek i\xe7in g\xf6stergeye (legend) \xe7ift t\u0131klay\u0131n","Double-click to zoom back out":"Geri uzakla\u015ft\u0131rmak i\xe7in \xe7ift t\u0131klay\u0131n","Download plot as a png":"Grafi\u011fi PNG olarak indir","Download plot":"Grafi\u011fi indir","Edit in Chart Studio":"Chart Studio'da d\xfczenle","IE only supports svg. Changing format to svg.":"IE yaln\u0131zca svg'yi destekler. Format svg'ye d\xf6n\xfc\u015ft\xfcr\xfcl\xfcyor.","Lasso Select":"Serbest se\xe7im","Orbital rotation":"Y\xf6r\xfcngesel d\xf6nd\xfcrme",Pan:"Kayd\u0131r","Produced with Plotly.js":"Plotly.js ile \xfcretilmi\u015ftir",Reset:"S\u0131f\u0131rla","Reset axes":"Eksenleri s\u0131f\u0131rla","Reset camera to default":"Kameray\u0131 varsay\u0131lana s\u0131f\u0131rla","Reset camera to last save":"Kameray\u0131 son kaydedilene s\u0131f\u0131rla","Reset view":"G\xf6r\xfcn\xfcm\xfc s\u0131f\u0131rla","Reset views":"G\xf6r\xfcn\xfcmleri s\u0131f\u0131rla","Show closest data on hover":"\xdczerine gelince en yak\u0131n veriyi g\xf6ster","Snapshot succeeded":"Anl\u0131k g\xf6r\xfcnt\xfc al\u0131nd\u0131","Sorry, there was a problem downloading your snapshot!":"\xdczg\xfcn\xfcz, anl\u0131k g\xf6r\xfcnt\xfcn\xfcz indirilirken bir sorun olu\u015ftu!","Taking snapshot - this may take a few seconds":"Anl\u0131k g\xf6r\xfcnt\xfc al\u0131n\u0131yor - bu i\u015flem birka\xe7 saniye s\xfcrebilir",Zoom:"Yak\u0131nla\u015ft\u0131r","Zoom in":"Yak\u0131nla\u015f","Zoom out":"Uzakla\u015f","close:":"kapan\u0131\u015f:",trace:"iz","lat:":"enlem:","lon:":"boylam:","q1:":"\xe71:","q3:":"\xe73:","source:":"kaynak:","target:":"hedef:","lower fence:":"alt s\u0131n\u0131r:","upper fence:":"\xfcst s\u0131n\u0131r:","max:":"maks:","mean \xb1 \u03c3:":"ortalama \xb1 \u03c3:","mean:":"ortalama:","median:":"medyan:","min:":"min:","Turntable rotation":"D\xf6ner tabla (turntable) d\xf6n\xfc\u015f\xfc","Toggle Spike Lines":"Yard\u0131mc\u0131 \xc7izgileri A\xe7/Kapat","open:":"a\xe7\u0131l\u0131\u015f:","high:":"y\xfcksek:","low:":"d\xfc\u015f\xfck:","Toggle show closest data on hover":"\xdczerine gelince en yak\u0131n veriyi g\xf6sterme se\xe7ene\u011fini a\xe7/kapat","incoming flow count:":"gelen ak\u0131\u015f say\u0131s\u0131:","outgoing flow count:":"giden ak\u0131\u015f say\u0131s\u0131:","kde:":"\xe7ekirdek yo\u011funluk tahmini (kde):"},format:{days:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"],shortDays:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"],shortMonths:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],date:"%d.%m.%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/locales/zh-tw.js b/inst/htmlwidgets/lib/plotlyjs/locales/zh-tw.js index 042bec2b38..cb80b15b3e 100644 --- a/inst/htmlwidgets/lib/plotlyjs/locales/zh-tw.js +++ b/inst/htmlwidgets/lib/plotlyjs/locales/zh-tw.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"zh-TW",dictionary:{},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],date:"%Y/%m/%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"zh-TW",dictionary:{Autoscale:"\u81ea\u52d5\u7e2e\u653e","Box Select":"\u77e9\u5f62\u9078\u64c7","Click to enter Colorscale title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u8272\u968e\u6a19\u984c","Click to enter Component A title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 A \u6a19\u984c","Click to enter Component B title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 B \u6a19\u984c","Click to enter Component C title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 C \u6a19\u984c","Click to enter Plot title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u7e6a\u5716\u6a19\u984c","Click to enter X axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165 X \u8ef8\u6a19\u984c","Click to enter Y axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165 Y \u8ef8\u6a19\u984c","Click to enter radial axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u8f3b\u5c04\u8ef8\u6a19\u984c","Compare data on hover":"\u6e38\u6a19\u505c\u7559\u6642\u6bd4\u8f03\u8cc7\u6599","Double-click on legend to isolate one trace":"\u96d9\u64ca\u5716\u4f8b\u4ee5\u9694\u96e2\u55ae\u4e00\u8ecc\u8de1","Double-click to zoom back out":"\u96d9\u64ca\u56de\u5fa9\u7e2e\u653e","Download plot as a png":"\u4e0b\u8f09\u5716\u8868\u70ba PNG \u5716\u6a94","Download plot":"\u4e0b\u8f09\u5716\u8868","Draw circle":"\u7e6a\u88fd\u5713\u5708","Draw closed freeform":"\u7e6a\u88fd\u5c01\u9589\u7684\u4efb\u610f\u5716\u5f62","Draw line":"\u7e6a\u88fd\u7dda\u689d","Draw open freeform":"\u7e6a\u88fd\u958b\u653e\u7684\u4efb\u610f\u5716\u5f62","Draw rectangle":"\u7e6a\u88fd\u77e9\u5f62","Edit in Chart Studio":"\u65bc Chart Studio \u7de8\u8f2f","Erase active shape":"\u6e05\u9664\u4f5c\u7528\u4e2d\u7684\u5f62\u72c0","IE only supports svg. Changing format to svg.":"IE \u50c5\u652f\u63f4 SVG\uff0c\u5c07\u8b8a\u66f4\u683c\u5f0f\u70ba SVG\u3002","Lasso Select":"\u5957\u7d22\u9078\u64c7","Orbital rotation":"\u8ecc\u9053\u65cb\u8f49",Pan:"\u5e73\u79fb","Produced with Plotly.js":"\u4f7f\u7528 Plotly.js \u88fd\u4f5c",Reset:"\u91cd\u7f6e","Reset axes":"\u91cd\u7f6e\u8ef8","Reset camera to default":"\u91cd\u7f6e\u76f8\u6a5f\u81f3\u9810\u8a2d\u4f4d\u7f6e","Reset camera to last save":"\u91cd\u7f6e\u76f8\u6a5f\u81f3\u4e0a\u6b21\u5132\u5b58\u7684\u4f4d\u7f6e","Reset view":"\u91cd\u7f6e\u8996\u5716","Reset views":"\u91cd\u7f6e\u8996\u5716","Show closest data on hover":"\u6e38\u6a19\u505c\u7559\u6642\u986f\u793a\u6700\u63a5\u8fd1\u7684\u8cc7\u6599","Snapshot succeeded":"\u5feb\u7167\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u62b1\u6b49\uff0c\u4e0b\u8f09\u5feb\u7167\u6642\u767c\u751f\u932f\u8aa4!","Taking snapshot - this may take a few seconds":"\u7522\u751f\u5feb\u7167\u4e2d - \u53ef\u80fd\u9700\u8981\u4e00\u9ede\u6642\u9593",Zoom:"\u7e2e\u653e","Zoom in":"\u653e\u5927","Zoom out":"\u7e2e\u5c0f","close:":"\u95dc\u9589:",concentration:"\u96c6\u4e2d",trace:"\u8ecc\u8de1:","lat:":"\u7def\u5ea6:","lon:":"\u7d93\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6578:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6578:","source:":"\u4f86\u6e90:","target:":"\u76ee\u6a19:","lower fence:":"\u4e0b\u570d\u7c6c\u503c:","upper fence:":"\u4e0a\u570d\u7c6c\u503c:","max:":"\u6700\u5927\u503c:","mean \xb1 \u03c3:":"\u5e73\u5747 \xb1 \u03c3:","mean:":"\u5e73\u5747\u503c:","median:":"\u4e2d\u4f4d\u6578:","min:":"\u6700\u5c0f\u503c:","Turntable rotation":"\u8f49\u76e4\u65cb\u8f49:","Toggle Spike Lines":"\u5207\u63db\u5c16\u5cf0\u7dda","open:":"\u958b\u555f:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u5207\u63db\u6ed1\u9f20\u61f8\u505c\u986f\u793a\u6700\u63a5\u8fd1\u7684\u8cc7\u6599","incoming flow count:":"\u50b3\u5165\u6d41\u91cf\u8a08\u6578:","outgoing flow count:":"\u50b3\u51fa\u6d41\u91cf\u8a08\u6578:","kde:":"kde:","new text":"\u65b0\u6587\u672c"},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js b/inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js index 27bfdaa93a..192d8ec10e 100644 --- a/inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js +++ b/inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js @@ -1,69 +1,3876 @@ /** -* plotly.js v2.11.1 -* Copyright 2012-2022, Plotly, Inc. +* plotly.js v3.0.1 +* Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var a in i){var o=a.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,i[a])}},{"../src/lib":498}],2:[function(t,e,r){"use strict";e.exports=t("../src/transforms/aggregate")},{"../src/transforms/aggregate":1113}],3:[function(t,e,r){"use strict";e.exports=t("../src/traces/bar")},{"../src/traces/bar":651}],4:[function(t,e,r){"use strict";e.exports=t("../src/traces/barpolar")},{"../src/traces/barpolar":664}],5:[function(t,e,r){"use strict";e.exports=t("../src/traces/box")},{"../src/traces/box":674}],6:[function(t,e,r){"use strict";e.exports=t("../src/components/calendars")},{"../src/components/calendars":359}],7:[function(t,e,r){"use strict";e.exports=t("../src/traces/candlestick")},{"../src/traces/candlestick":683}],8:[function(t,e,r){"use strict";e.exports=t("../src/traces/carpet")},{"../src/traces/carpet":702}],9:[function(t,e,r){"use strict";e.exports=t("../src/traces/choropleth")},{"../src/traces/choropleth":716}],10:[function(t,e,r){"use strict";e.exports=t("../src/traces/choroplethmapbox")},{"../src/traces/choroplethmapbox":723}],11:[function(t,e,r){"use strict";e.exports=t("../src/traces/cone")},{"../src/traces/cone":729}],12:[function(t,e,r){"use strict";e.exports=t("../src/traces/contour")},{"../src/traces/contour":744}],13:[function(t,e,r){"use strict";e.exports=t("../src/traces/contourcarpet")},{"../src/traces/contourcarpet":755}],14:[function(t,e,r){"use strict";e.exports=t("../src/core")},{"../src/core":476}],15:[function(t,e,r){"use strict";e.exports=t("../src/traces/densitymapbox")},{"../src/traces/densitymapbox":763}],16:[function(t,e,r){"use strict";e.exports=t("../src/transforms/filter")},{"../src/transforms/filter":1114}],17:[function(t,e,r){"use strict";e.exports=t("../src/traces/funnel")},{"../src/traces/funnel":773}],18:[function(t,e,r){"use strict";e.exports=t("../src/traces/funnelarea")},{"../src/traces/funnelarea":782}],19:[function(t,e,r){"use strict";e.exports=t("../src/transforms/groupby")},{"../src/transforms/groupby":1115}],20:[function(t,e,r){"use strict";e.exports=t("../src/traces/heatmap")},{"../src/traces/heatmap":795}],21:[function(t,e,r){"use strict";e.exports=t("../src/traces/heatmapgl")},{"../src/traces/heatmapgl":806}],22:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram")},{"../src/traces/histogram":818}],23:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram2d")},{"../src/traces/histogram2d":824}],24:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":828}],25:[function(t,e,r){"use strict";e.exports=t("../src/traces/icicle")},{"../src/traces/icicle":834}],26:[function(t,e,r){"use strict";e.exports=t("../src/traces/image")},{"../src/traces/image":847}],27:[function(t,e,r){"use strict";var n=t("./core");n.register([t("./bar"),t("./box"),t("./heatmap"),t("./histogram"),t("./histogram2d"),t("./histogram2dcontour"),t("./contour"),t("./scatterternary"),t("./violin"),t("./funnel"),t("./waterfall"),t("./image"),t("./pie"),t("./sunburst"),t("./treemap"),t("./icicle"),t("./funnelarea"),t("./scatter3d"),t("./surface"),t("./isosurface"),t("./volume"),t("./mesh3d"),t("./cone"),t("./streamtube"),t("./scattergeo"),t("./choropleth"),t("./scattergl"),t("./splom"),t("./pointcloud"),t("./heatmapgl"),t("./parcoords"),t("./parcats"),t("./scattermapbox"),t("./choroplethmapbox"),t("./densitymapbox"),t("./sankey"),t("./indicator"),t("./table"),t("./carpet"),t("./scattercarpet"),t("./contourcarpet"),t("./ohlc"),t("./candlestick"),t("./scatterpolar"),t("./scatterpolargl"),t("./barpolar"),t("./scattersmith"),t("./aggregate"),t("./filter"),t("./groupby"),t("./sort"),t("./calendars")]),e.exports=n},{"./aggregate":2,"./bar":3,"./barpolar":4,"./box":5,"./calendars":6,"./candlestick":7,"./carpet":8,"./choropleth":9,"./choroplethmapbox":10,"./cone":11,"./contour":12,"./contourcarpet":13,"./core":14,"./densitymapbox":15,"./filter":16,"./funnel":17,"./funnelarea":18,"./groupby":19,"./heatmap":20,"./heatmapgl":21,"./histogram":22,"./histogram2d":23,"./histogram2dcontour":24,"./icicle":25,"./image":26,"./indicator":28,"./isosurface":29,"./mesh3d":30,"./ohlc":31,"./parcats":32,"./parcoords":33,"./pie":34,"./pointcloud":35,"./sankey":36,"./scatter3d":37,"./scattercarpet":38,"./scattergeo":39,"./scattergl":40,"./scattermapbox":41,"./scatterpolar":42,"./scatterpolargl":43,"./scattersmith":44,"./scatterternary":45,"./sort":46,"./splom":47,"./streamtube":48,"./sunburst":49,"./surface":50,"./table":51,"./treemap":52,"./violin":53,"./volume":54,"./waterfall":55}],28:[function(t,e,r){"use strict";e.exports=t("../src/traces/indicator")},{"../src/traces/indicator":855}],29:[function(t,e,r){"use strict";e.exports=t("../src/traces/isosurface")},{"../src/traces/isosurface":861}],30:[function(t,e,r){"use strict";e.exports=t("../src/traces/mesh3d")},{"../src/traces/mesh3d":866}],31:[function(t,e,r){"use strict";e.exports=t("../src/traces/ohlc")},{"../src/traces/ohlc":871}],32:[function(t,e,r){"use strict";e.exports=t("../src/traces/parcats")},{"../src/traces/parcats":880}],33:[function(t,e,r){"use strict";e.exports=t("../src/traces/parcoords")},{"../src/traces/parcoords":891}],34:[function(t,e,r){"use strict";e.exports=t("../src/traces/pie")},{"../src/traces/pie":902}],35:[function(t,e,r){"use strict";e.exports=t("../src/traces/pointcloud")},{"../src/traces/pointcloud":911}],36:[function(t,e,r){"use strict";e.exports=t("../src/traces/sankey")},{"../src/traces/sankey":917}],37:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatter3d")},{"../src/traces/scatter3d":955}],38:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattercarpet")},{"../src/traces/scattercarpet":962}],39:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattergeo")},{"../src/traces/scattergeo":970}],40:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattergl")},{"../src/traces/scattergl":984}],41:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattermapbox")},{"../src/traces/scattermapbox":994}],42:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterpolar")},{"../src/traces/scatterpolar":1002}],43:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterpolargl")},{"../src/traces/scatterpolargl":1010}],44:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattersmith")},{"../src/traces/scattersmith":1017}],45:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterternary")},{"../src/traces/scatterternary":1025}],46:[function(t,e,r){"use strict";e.exports=t("../src/transforms/sort")},{"../src/transforms/sort":1117}],47:[function(t,e,r){"use strict";e.exports=t("../src/traces/splom")},{"../src/traces/splom":1035}],48:[function(t,e,r){"use strict";e.exports=t("../src/traces/streamtube")},{"../src/traces/streamtube":1043}],49:[function(t,e,r){"use strict";e.exports=t("../src/traces/sunburst")},{"../src/traces/sunburst":1051}],50:[function(t,e,r){"use strict";e.exports=t("../src/traces/surface")},{"../src/traces/surface":1060}],51:[function(t,e,r){"use strict";e.exports=t("../src/traces/table")},{"../src/traces/table":1068}],52:[function(t,e,r){"use strict";e.exports=t("../src/traces/treemap")},{"../src/traces/treemap":1079}],53:[function(t,e,r){"use strict";e.exports=t("../src/traces/violin")},{"../src/traces/violin":1092}],54:[function(t,e,r){"use strict";e.exports=t("../src/traces/volume")},{"../src/traces/volume":1100}],55:[function(t,e,r){"use strict";e.exports=t("../src/traces/waterfall")},{"../src/traces/waterfall":1108}],56:[function(t,e,r){!function(n,i){"object"==typeof r&&void 0!==e?i(r,t("d3-array"),t("d3-collection"),t("d3-shape"),t("elementary-circuits-directed-graph")):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){"use strict";function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&&i.hasOwnProperty("default")?i.default:i;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:"top"===t.circularLinkType||"bottom"===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function m(t){return p(t.target)}function g(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o1||i>1)}function M(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(q(n,r)&&A(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;lo.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c>s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&&(t.circularPathData={})})),M(t.links.filter((function(t){return"top"==t.circularLinkType})),r,a),M(t.links.filter((function(t){return"bottom"==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,q(e,a)&&A(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&&t.circularLinkType==l}));"bottom"==e.circularLinkType?c.sort(C):c.sort(L);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&&t.circularLinkType==l})),"bottom"==e.circularLinkType?c.sort(I):c.sort(P),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e="";e="top"==t.circularLinkType?"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 0 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 0 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 0 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 0 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY:"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 1 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 1 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 1 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 1 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return O(t)==O(e)?"bottom"==t.circularLinkType?C(t,e):L(t,e):O(e)-O(t)}function L(t,e){return t.y0-e.y0}function C(t,e){return e.y0-t.y0}function P(t,e){return t.y1-e.y1}function I(t,e){return e.y1-t.y1}function O(t){return t.target.column-t.source.column}function z(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=z(e)/Math.tan(r);return"up"==H(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=z(e)/Math.tan(r);return"up"==H(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&&i.target.column-i.source.column>1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a<=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),m=f*i.y0+h*i.y0+p*i.y1+d*i.y1,g=m-i.width/2,v=m+i.width/2;g>o.y0&&go.y0&&vo.y1)&&(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&&t.column==o.column&&t.y0o.y1&&N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0>e.y0&&t.y0e.y0&&t.y1e.y1)}function N(t,e,r,n){return t.y0+e>=r&&t.y1+e<=n&&(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&&i.y+(i.y1-i.y0)>e&&(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o>1&&a.sort((function(t,e){if(!t.circular&&!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column>e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column>t.target.column)return R(t,e)-e.y1}return t.circular&&!e.circular?"top"==t.circularLinkType?-1:1:e.circular&&!t.circular?"top"==e.circularLinkType?1:-1:t.circular&&e.circular?t.circularLinkType===e.circularLinkType&&"top"==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&&"bottom"==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:"top"==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if("bottom"==t.circularLinkType){for(var r=e+1,n=0;r1&&n.sort((function(t,e){if(!t.circular&&!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column0?"up":"down"}function q(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){"top"==t.circularLinkType?o=!0:"bottom"==t.circularLinkType&&(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,A=24,M=g,E=o,L=v,C=y,P=32,I=2,O=null;function z(){var t={nodes:L.apply(null,arguments),links:C.apply(null,arguments)};D(t),_(t,M,O),R(t),B(t),w(t,M),N(t,P,M),V(t);for(var e=4,r=0;r0?r+25+10:r,bottom:n=n>0?n+25+10:n,left:a=a>0?a+25+10:a,right:i=i>0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-A)/n),t.x1=t.x0+A})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&&1==e||0==t.depth&&1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):"top"==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,g=s;g>0;--g)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&&k(i,r)>0);else if(0==o&&1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&&1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,m),c=e.mean(i.targetLinks,d),u=((l&&c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i0&&(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)>0)for(o=r.y0-=n,r.y1-=n,i=s-2;i>=0;--i)(n=(r=e[i]).y1+t-o)>0&&(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return z.nodeId=function(t){return arguments.length?(M="function"==typeof t?t:s(t),z):M},z.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:s(t),z):E},z.nodeWidth=function(t){return arguments.length?(A=+t,z):A},z.nodePadding=function(e){return arguments.length?(t=+e,z):t},z.nodes=function(t){return arguments.length?(L="function"==typeof t?t:s(t),z):L},z.links=function(t){return arguments.length?(C="function"==typeof t?t:s(t),z):C},z.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],z):[b-i,T-a]},z.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],z):[[i,a],[b,T]]},z.iterations=function(t){return arguments.length?(P=+t,z):P},z.circularLinkGap=function(t){return arguments.length?(I=+t,z):I},z.nodePaddingRatio=function(t){return arguments.length?(n=+t,z):n},z.sortNodes=function(t){return arguments.length?(O=t,z):O},z.update=function(t){return w(t,M),V(t),t.links.forEach((function(t){t.circular&&(t.circularLinkType=t.y0+t.y1a&&(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=A;o>0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i0&&(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)>0)for(a=e.y0-=r,e.y1-=r,i=o-2;i>=0;--i)(r=(e=t[i]).y1+b-a)>0&&(e.y0-=r,e.y1-=r),a=e.y0}))}}function P(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return M.update=function(t){return P(t),t},M.nodeId=function(t){return arguments.length?(_="function"==typeof t?t:o(t),M):_},M.nodeAlign=function(t){return arguments.length?(w="function"==typeof t?t:o(t),M):w},M.nodeWidth=function(t){return arguments.length?(x=+t,M):x},M.nodePadding=function(t){return arguments.length?(b=+t,M):b},M.nodes=function(t){return arguments.length?(T="function"==typeof t?t:o(t),M):T},M.links=function(t){return arguments.length?(k="function"==typeof t?t:o(t),M):k},M.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],M):[i-t,y-n]},M.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],M):[[t,n],[i,y]]},M.iterations=function(t){return arguments.length?(A=+t,M):A},M},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":102,"d3-collection":103,"d3-shape":114}],58:[function(t,e,r){(function(){var t={version:"3.8.0"},r=[].slice,n=function(t){return r.call(t)},i=self.document;function a(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+"")},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+"")},u.setProperty=function(t,e,r){f.call(this,t,e+"",r)}}function h(t,e){return te?1:t>=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function m(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return et?1:e>=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++in&&(r=n)}else{for(;++i=n){r=n;break}for(;++in&&(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++ir&&(r=n)}else{for(;++i=n){r=n;break}for(;++ir&&(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a=n){r=i=n;break}for(;++an&&(r=n),i=n){r=i=n;break}for(;++an&&(r=n),i1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var g=m(h);function v(t){return t.length}t.bisectLeft=g.left,t.bisect=t.bisectRight=g.right,t.bisector=function(t){return m(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error("infinite range");var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],m=new _;++h=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,"\\$&")};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var H=function(t,e){return e.querySelector(t)},q=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[I(t,"matchesSelector")];return(G=function(t,e){return r.call(t,e)})(t,e)};"function"==typeof Sizzle&&(H=function(t,e){return Sizzle(t,e)[0]||null},q=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return"function"==typeof t?t:function(){return H(t,this)}}function X(t){return"function"==typeof t?t:function(){return q(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e=e&&(e=i+1);!(o=s[e])&&++e0&&(e=e.slice(0,o));var l=mt.get(e);function c(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}return l&&(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?z:function(){var r,n=new RegExp("^__on([^.]+)"+t.requote(e)+"$");for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s1?Et:t<-1?-Et:Math.asin(t)}function It(t){return((t=Math.exp(t))+1/t)/2}var Ot=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h<1e-12)n=Math.log(c/o)/Ot,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Ot*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),m=(c*c-o*o-4*h)/(2*c*2*p),g=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(m*m+1)-m);n=(v-g)/Ot,r=function(t){var e,r=t*n,s=It(g),l=o/(2*p)*(s*(e=Ot*r+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*u,a+l*f,o*s/It(Ot*r+g)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Rt,m=250,g=0,v="mousedown.zoom",y="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",_=N(w,"zoomstart","zoom","zoomend");function w(t){t.on(v,P).on(Dt+".zoom",O).on("dblclick.zoom",z).on(b,I)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function M(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),A(r=n,i),e=t.select(e),m>0&&(e=e.transition().duration(m)),e.call(w.event)}function S(){c&&c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&&f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){g++||t({type:"zoomstart"})}function L(t){S(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function C(t){--g||(t({type:"zoomend"}),r=null)}function P(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,A(t.mouse(e),a),L(r)}function c(){i.on(y,null).on(x,null),s(n),C(r)}Di.call(e),E(r)}function I(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=".zoom-"+t.event.changedTouches[0].identifier,l="touchmove"+o,c="touchend"+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&&(i[t.identifier]=T(t))})),n}function m(){var e=t.event.target;t.select(e).on(l,g).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function g(){var o,l,c,u,f=t.touches(r);Di.call(r);for(var h=0,p=f.length;h360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new Qt(a(t+120),a(t),a(t-120))}function Ut(e,r,n){return this instanceof Ut?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length<2?e instanceof Ut?new Ut(e.h,e.c,e.l):Xt(e instanceof qt?e.l:(e=ae((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ut(e,r,n)}Nt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,this.l/t)},Nt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,t*this.l)},Nt.rgb=function(){return jt(this.h,this.s,this.l)},t.hcl=Ut;var Vt=Ut.prototype=new Ft;function Ht(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new qt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function qt(t,e,r){return this instanceof qt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof qt?new qt(t.l,t.a,t.b):t instanceof Ut?Ht(t.h,t.c,t.l):ae((t=Qt(t)).r,t.g,t.b):new qt(t,e,r)}Vt.brighter=function(t){return new Ut(this.h,this.c,Math.min(100,this.l+Gt*(arguments.length?t:1)))},Vt.darker=function(t){return new Ut(this.h,this.c,Math.max(0,this.l-Gt*(arguments.length?t:1)))},Vt.rgb=function(){return Ht(this.h,this.c,this.l).rgb()},t.lab=qt;var Gt=18,Yt=qt.prototype=new Ft;function Wt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new Qt(Kt(3.2404542*(i=.95047*Zt(i))-1.5371385*(n=1*Zt(n))-.4985314*(a=1.08883*Zt(a))),Kt(-.969266*i+1.8760108*n+.041556*a),Kt(.0556434*i-.2040259*n+1.0572252*a))}function Xt(t,e,r){return t>0?new Ut(Math.atan2(r,e)*Ct,Math.sqrt(e*e+r*r),t):new Ut(NaN,NaN,t)}function Zt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function Jt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function Kt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Qt(t,e,r){return this instanceof Qt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof Qt?new Qt(t.r,t.g,t.b):ne(""+t,Qt,jt):new Qt(t,e,r)}function $t(t){return new Qt(t>>16,t>>8&255,255&t)}function te(t){return $t(t)+""}Yt.brighter=function(t){return new qt(Math.min(100,this.l+Gt*(arguments.length?t:1)),this.a,this.b)},Yt.darker=function(t){return new qt(Math.max(0,this.l-Gt*(arguments.length?t:1)),this.a,this.b)},Yt.rgb=function(){return Wt(this.l,this.a,this.b)},t.rgb=Qt;var ee=Qt.prototype=new Ft;function re(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ne(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(","),n[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(se(i[0]),se(i[1]),se(i[2]))}return(a=le.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function ie(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e0&&l<1?0:n),new Bt(n,i,l)}function ae(t,e,r){var n=Jt((.4124564*(t=oe(t))+.3575761*(e=oe(e))+.1804375*(r=oe(r)))/.95047),i=Jt((.2126729*t+.7151522*e+.072175*r)/1);return qt(116*i-16,500*(n-i),200*(i-Jt((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function oe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function se(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}ee.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e=200&&e<300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+"",o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&&"function"==typeof n&&(i=n,n=null),c.open(t,e,!0),null==r||"accept"in l||(l.accept=r+",*/*"),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=i&&o.on("error",i).on("load",(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,"on"),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}le.forEach((function(t,e){le.set(t,$t(e))})),t.functor=ce,t.xhr=ue(C),t.dsv=function(t,e){var r=new RegExp('["'+t+"\n]"),n=t.charCodeAt(0);function i(t,r,n){arguments.length<3&&(n=r,r=null);var i=fe(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++24?(isFinite(e)&&(clearTimeout(me),me=setTimeout(ye,e)),de=0):(de=1,ge(ye))}function xe(){for(var t=Date.now(),e=he;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function be(){for(var t,e=he,r=1/0;e;)e.c?(e.t1&&(e=t[a[o-2]],r=t[a[o-1]],n=t[s],(r[0]-e[0])*(n[1]-e[1])-(r[1]-e[1])*(n[0]-e[0])<=0);)--o;a[o++]=s}return a.slice(0,o)}function ke(t,e){return t[0]-e[0]||t[1]-e[1]}t.timer=function(){ve.apply(this,arguments)},t.timer.flush=function(){xe(),be()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},t.geom={},t.geom.hull=function(t){var e=_e,r=we;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,i=ce(e),a=ce(r),o=t.length,s=[],l=[];for(n=0;n=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;nkt)s=s.L;else{if(!((i=a-Ve(s,o))>kt)){n>-kt?(e=s.P,r=s):i>-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Fe(t);if(Pe.insert(e,l),e||r){if(e===r)return We(e),r=Fe(e.site),Pe.insert(l,r),l.edge=r.edge=Je(e.site,l.site),Ye(e),void Ye(r);if(r){We(e),We(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,m=d.x-u,g=d.y-f,v=2*(h*g-p*m),y=h*h+p*p,x=m*m+g*g,b={x:(g*y-p*x)/v+u,y:(h*x-m*y)/v+f};Qe(r.edge,c,d,b),l.edge=Je(c,t,null,b),r.edge=Je(t,d,null,b),Ye(e),Ye(r)}else l.edge=Je(e.site,l.site)}}function Ue(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ve(t,e){var r=t.N;if(r)return Ue(r,e);var n=t.site;return n.y===e?n.x:1/0}function He(t){this.site=t,this.edges=[]}function qe(t,e){return e.angle-t.angle}function Ge(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ye(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(g=a.y-s)-c*u);if(!(f>=-1e-12)){var h=l*l+c*c,p=u*u+g*g,d=(g*h-c*p)/f,m=(l*p-u*h)/f,g=m+s,v=De.pop()||new Ge;v.arc=t,v.site=i,v.x=d+o,v.y=g+Math.sqrt(d*d+m*m),v.cy=g,t.circle=v;for(var y=null,x=Oe._;x;)if(v.y=s)return;if(h>d){if(a){if(a.y>=c)return}else a={x:g,y:l};r={x:g,y:c}}else{if(a){if(a.y1)if(h>d){if(a){if(a.y>=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x0)){if(e/=h,h<0){if(e0){if(e>f)return;e>u&&(u=e)}if(e=i-l,h||!(e<0)){if(e/=h,h<0){if(e>f)return;e>u&&(u=e)}else if(h>0){if(e0)){if(e/=p,p<0){if(e0){if(e>f)return;e>u&&(u=e)}if(e=a-c,p||!(e<0)){if(e/=p,p<0){if(e>f)return;e>u&&(u=e)}else if(p>0){if(e0&&(t.a={x:l+u*h,y:c+u*p}),f<1&&(t.b={x:l+f*h,y:c+f*p}),t}}}}}),l=o.length;l--;)(!Xe(e=o[l],t)||!s(e)||y(e.a.x-e.b.x)kt||y(i-r)>kt)&&(s.splice(o,0,new $e(Ke(a.site,u,y(n-f)kt?{x:f,y:y(e-f)kt?{x:y(r-d)kt?{x:h,y:y(e-h)kt?{x:y(r-p)=r&&c.x<=i&&c.y>=n&&c.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ar(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ar(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(qe),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++ua||f>o||h=_)<<1|e>=b,T=w+4;wa&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:dr(r,n)})),a=vr.lastIndex;return am&&(m=l.x),l.y>g&&(g=l.y),c.push(l.x),u.push(l.y);else for(f=0;fm&&(m=b),_>g&&(g=_),c.push(b),u.push(_)}var w=m-p,T=g-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)<.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r>=l,f=n>=c,h=f<<1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w>T?g=d+w:m=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(M,t,+v(t,++f),+x(t,f),p,d,m,g)},visit:function(t){ur(t,M,p,d,m,g)},find:function(t){return fr(M,t[0],t[1],p,d,m,g)}};if(f=-1,null==e){for(;++f=0&&!(n=t.interpolators[i](e,r)););return n}function xr(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r=1?1:t(e)}}function kr(t){return function(e){return 1-t(1-e)}}function Ar(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Sr(t){return t*t*t}function Er(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Lr(t){return 1-Math.cos(t*Et)}function Cr(t){return Math.pow(2,10*(t-1))}function Pr(t){return 1-Math.sqrt(1-t*t)}function Ir(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Or(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function zr(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=Rr(i),s=Dr(i,a),l=Rr(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]=0?t.slice(0,e):t,i=e>=0?t.slice(e+1):"in";return n=_r.get(n)||br,Tr((i=wr.get(i)||C)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Ht(n+o*t,i+s*t,a+l*t)+""}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return jt(n+o*t,i+s*t,a+l*t)+""}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Wt(n+o*t,i+s*t,a+l*t)+""}},t.interpolateRound=Or,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(t){if(null!=t){r.setAttribute("transform",t);var e=r.transform.baseVal.consolidate()}return new zr(e?e.matrix:Fr)})(e)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function Br(t){return t.length?t.pop()+",":""}function Nr(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push("translate(",null,",",null,")");n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(Br(r)+"rotate(",null,")")-2,x:dr(t,e)})):e&&r.push(Br(r)+"rotate("+e+")")}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(Br(r)+"skewX(",null,")")-2,x:dr(t,e)}):e&&r.push(Br(r)+"skewX("+e+")")}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Br(r)+"scale(",null,",",null,")");n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(Br(r)+"scale("+e+")")}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=ve(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t=0;)r.push(i[n])}function $r(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return $r(i,(function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Qr(t,(function(t){t.children&&(t.value=0)})),$r(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++cs&&(s=n),o.push(n)}for(r=0;ri&&(n=r,i=e);return n}function dn(t){return t.reduce(mn,0)}function mn(t,e){return t+e[1]}function gn(t,e){return vn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function vn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function yn(e){return[t.min(e),t.max(e)]}function xn(t,e){return t.value-e.value}function bn(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function _n(t,e){t._pack_next=e,e._pack_prev=t}function wn(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function Tn(t){if((e=t.children)&&(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(kn),(r=e[0]).x=-r.r,r.y=0,x(r),l>1&&((n=e[1]).x=n.r,n.y=0,x(n),l>2))for(Mn(r,n,i=e[2]),x(i),bn(r,i),r._pack_prev=i,bn(i,n),n=r._pack_next,a=3;a0)for(o=-1;++o=f[0]&&l<=f[1]&&((s=c[t.bisect(h,l,1,d)-1]).y+=m,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ce(t),a):n},a.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return vn(e,t)}:ce(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(xn),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,$r(s,(function(t){t.r=+u(t.value)})),$r(s,Tn),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;$r(s,(function(t){t.r+=f})),$r(s,Tn),$r(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++op.x&&(p=t),t.depth>d.depth&&(d=t)}));var m=r(h,p)/2-h.x,g=n[0]/(p.x+r(p,h)/2+m),v=n[1]/(d.depth||1);Qr(u,(function(t){t.x=(t.x+m)*g,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=Ln(s),a=En(a),s&&a;)l=En(l),(o=Ln(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))>0&&(Cn(Pn(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&&!Ln(o)&&(o.t=s,o.m+=f-u),a&&!En(l)&&(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Kr(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;$r(c,(function(e){var n=e.children;n&&n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&&r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&&(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return $r(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Kr(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=In,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i0;)s.push(r=c[i-1]),s.area+=r.area,"squarify"!==l||(n=p(s,m))<=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,m,a,!1),m=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&&(d(s,m,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++oi&&(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u>r.dy)&&(u=r.dy);++or.dx)&&(u=r.dx);++o1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r2?jn:Rn,s=i?Ur:jr;return a=t(e,r,s,n),o=t(r,e,s,yr),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(Or)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return qn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Vn(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],yr,!1)};t.scale.log=function(){return function t(e,r,n,i){function a(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(r)}function o(t){return n?Math.pow(r,t):-Math.pow(r,-t)}function s(t){return e(a(t))}return s.invert=function(t){return o(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((i=t.map(Number)).map(a)),s):i},s.base=function(t){return arguments.length?(r=+t,e.domain(i.map(a)),s):r},s.nice=function(){var t=Fn(i.map(a),n?Math:Gn);return e.domain(t),i=t.map(o),s},s.ticks=function(){var t=zn(i),e=[],s=t[0],l=t[1],c=Math.floor(a(s)),u=Math.ceil(a(l)),f=r%1?2:r;if(isFinite(u-c)){if(n){for(;c0;h--)e.push(o(c)*h);for(c=0;e[c]l;u--);e=e.slice(c,u)}return e},s.copy=function(){return t(e.copy(),r,n,i)},Un(s,e)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Gn={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Yn(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Yn(r),a=Yn(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return qn(n,t)},o.tickFormat=function(t,e){return d3_scale_linearTickFormat(n,t,e)},o.nice=function(t){return o.domain(Vn(n,t))},o.exponent=function(t){return arguments.length?(i=Yn(r=t),a=Yn(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},Un(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||("range"===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a0?i[t-1]:r[0],tf?0:1;if(c=St)return l(c,p)+(s?l(s,1-p):"")+"Z";var d,m,g,v,y,x,b,_,w,T,k,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&&(g=n===Qn?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&&(S=Pt(g/c*Math.sin(v))),s&&(M=Pt(g/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var L=Math.abs(f-u-2*S)<=At?0:1;if(S&&ii(y,x,b,_)===p^L){var C=(u+f)/2;y=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-M),T=s*Math.sin(f-M),k=s*Math.cos(u+M),A=s*Math.sin(u+M);var P=Math.abs(u-f+2*M)<=At?0:1;if(M&&ii(w,T,k,A)===1-p^P){var I=(u+f)/2;w=s*Math.cos(I),T=s*Math.sin(I),k=A=null}}else w=T=0;if(h>kt&&(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))>.001){m=s0?0:1}function ai(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,m=(f+p)/2,g=h-u,v=p-f,y=g*g+v*v,x=r-n,b=u*p-h*f,_=(v<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-g*_)/y,T=(-b*g-v*_)/y,k=(b*v+g*_)/y,A=(-b*g+v*_)/y,M=w-d,S=T-m,E=k-d,L=A-m;return M*M+S*S>E*E+L*L&&(w=k,T=A),[[w-l,T-c],[w*r/x,T*r/x]]}function oi(){return!0}function si(t){var e=_e,r=we,n=oi,i=ci,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ce(e),p=ce(r);function d(){l.push("M",i(t(c),o))}for(;++u1&&i.push("H",n[0]);return i.join("")},"step-before":fi,"step-after":hi,basis:mi,"basis-open":function(t){if(t.length<4)return ci(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(gi(xi,a)+","+gi(xi,o)),--n;for(;++n9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function ci(t){return t.length>1?t.join("L"):t+"Z"}function ui(t){return t.join("L")+"Z"}function fi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],",",n[1]];++e1){s=e[1],a=t[l],l++,n+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var c=2;cAt)+",1 "+e}function l(t,e,r,n){return"Q 0,0 "+n}return a.radius=function(t){return arguments.length?(r=ce(t),a):r},a.source=function(e){return arguments.length?(t=ce(e),a):t},a.target=function(t){return arguments.length?(e=ce(t),a):e},a.startAngle=function(t){return arguments.length?(n=ce(t),a):n},a.endAngle=function(t){return arguments.length?(i=ce(t),a):i},a},t.svg.diagonal=function(){var t=ki,e=Ai,r=Si;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(r))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return n.source=function(e){return arguments.length?(t=ce(e),n):t},n.target=function(t){return arguments.length?(e=ce(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=Si,n=e.projection;return e.projection=function(t){return arguments.length?n(Ei(r=t)):r},e},t.svg.symbol=function(){var t=Ci,e=Li;function r(r,n){return(Ii.get(t.call(this,r,n))||Pi)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ce(e),r):t},r.size=function(t){return arguments.length?(e=ce(t),r):e},r};var Ii=t.map({circle:Pi,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*zi)),r=e*zi;return"M0,"+-e+"L"+r+",0 0,"+e+" "+-r+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return"M0,"+r+"L"+e+","+-r+" "+-e+","+-r+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return"M0,"+-r+"L"+e+","+r+" "+-e+","+r+"Z"}});t.svg.symbolTypes=Ii.keys();var Oi=Math.sqrt(3),zi=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=Bi||++Ui,i=qi(t),a=[],o=Ni||{time:Date.now(),ease:Er,delay:0,duration:250},s=-1,l=this.length;++s0;)c[--h].call(t,o);if(a>=1)return f.event&&f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=ve((function(t){var e=f.delay;if(o.t=e+a,e<=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ji.call=Y.call,ji.empty=Y.empty,ji.node=Y.node,ji.size=Y.size,t.transition=function(e,r){return e&&e.transition?Bi?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ji,ji.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",s[1]-s[0])}function m(t){t.select(".extent").attr("y",l[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function g(){var f,g,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&&i,T=!/^(e|w)$/.test(_)&&a,k=y.classed("extent"),A=bt(v),M=t.mouse(v),S=t.select(o(v)).on("keydown.brush",C).on("keyup.brush",P);if(t.event.changedTouches?S.on("touchmove.brush",I).on("touchend.brush",z):S.on("mousemove.brush",I).on("mouseup.brush",z),b.interrupt().selectAll("*").interrupt(),k)M[0]=s[0]-M[0],M[1]=l[0]-M[1];else if(_){var E=+/w$/.test(_),L=+/^n/.test(_);g=[s[1-E]-M[0],l[1-L]-M[1]],M[0]=s[E],M[1]=l[L]}else t.event.altKey&&(f=M.slice());function C(){32==t.event.keyCode&&(k||(f=null,M[0]-=s[1],M[1]-=l[1],k=2),F())}function P(){32==t.event.keyCode&&2==k&&(M[0]+=s[1],M[1]+=l[1],k=0,F())}function I(){var e=t.mouse(v),r=!1;g&&(e[0]+=g[0],e[1]+=g[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),M[0]=s[+(e[0]>>1;e.dtype||(e.dtype="array"),"string"==typeof e.dtype?d=new(f(e.dtype))(g):e.dtype&&(d=e.dtype,Array.isArray(d)&&(d.length=g));for(var v=0;vr||s>1073741824){for(var h=0;he+n||w>r+n||T=A||a===o)){var s=y[i];void 0===o&&(o=s.length);for(var l=a;l=d&&u<=g&&f>=m&&f<=v&&S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],M=h[4*a+2],E=h[4*a+3],P=C(h,a+1),I=.5*n,O=i+1;L(e,r,I,O,p,b||M||E||P),L(e,r+I,I,O,b,M||E||P),L(e+I,r,I,O,M,E||P),L(e+I,r+I,I,O,E,P)}}function C(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n>t.length)return null;return r}return L(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s0){e+=Math.abs(a(t[0]));for(var r=1;r2){for(s=0;st[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e<0&&(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=r.areaFactors[e];if(!i)throw new Error("invalid original units");var a=r.areaFactors[n];if(!a)throw new Error("invalid final units");return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&&t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!d(t))throw new Error("bbox must only contain numbers")}))},r.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},{}],65:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/helpers");function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,m="FeatureCollection"===d,g="Feature"===d,v=m?t.features.length:1,y=0;yc||p>u||d>f)return l=i,c=r,u=p,f=d,void(o=0);var m=n.lineString([l,i],t.properties);if(!1===e(m,r,a,d,o))return!1;o++,l=i}))&&void 0}}}))}function u(t,e){if(!t)throw new Error("geojson is required");l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var s=0;si&&(i=t[o]),t[o] - * @license MIT - */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&v(i,r,"Missing expected exception"+n);var a="string"==typeof n,s=!t&&i&&!r;if((!t&&o.isError(i)&&a&&_(i,r)||s)&&v(i,r,"Got unwanted exception"+n),t&&i&&r&&!_(i,r)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return m(g(t.actual),128)+" "+t.operator+" "+m(g(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&&v(t,e,r,"==",h.equal)},h.notEqual=function(t,e,r){t==e&&v(t,e,r,"!=",h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&&v(t,e,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&&v(e,r,n,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,r){t!==e&&v(t,e,r,"===",h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&&v(t,e,r,"!==",h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&&e.push(r);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":242,"util/":74}],72:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],73:[function(t,e,r){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],74:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r=a)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),l=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(e)?n.showHidden=e:e&&r._extend(n,e),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?"\x1b["+s.colors[r][0]+"m"+t+"\x1b["+s.colors[r][1]+"m":t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),w(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?": "+e.name:"";return t.stylize("[Function"+l+"]","special")}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(_(e))return t.stylize(Date.prototype.toString.call(e),"date");if(w(e))return f(e)}var c,b="",k=!1,A=["{","}"];(p(e)&&(k=!0,A=["[","]"]),T(e))&&(b=" [Function"+(e.name?": "+e.name:"")+"]");return x(e)&&(b=" "+RegExp.prototype.toString.call(e)),_(e)&&(b=" "+Date.prototype.toUTCString.call(e)),w(e)&&(b=" "+f(e)),0!==o.length||k&&0!=e.length?n<0?x(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),E(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=m(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function p(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function v(t){return"string"==typeof t}function y(t){return void 0===t}function x(t){return b(t)&&"[object RegExp]"===k(t)}function b(t){return"object"==typeof t&&null!==t}function _(t){return b(t)&&"[object Date]"===k(t)}function w(t){return b(t)&&("[object Error]"===k(t)||t instanceof Error)}function T(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&&(a=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=p,r.isBoolean=d,r.isNull=m,r.isNullOrUndefined=function(t){return null==t},r.isNumber=g,r.isString=v,r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t("./support/isBuffer");var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log("%s - %s",S(),r.format.apply(r,arguments))},r.inherits=t("inherits"),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":73,_process:272,inherits:72}],75:[function(t,e,r){"use strict";r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[u++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;os?s:o+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],76:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return"function"==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],77:[function(t,e,r){"use strict";function n(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],78:[function(t,e,r){"use strict";var n=t("clamp");e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,m,g=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error("For raw data width and height should be provided by options");r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(f=(h=t).getContext("2d"),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&&t instanceof window.ImageData&&(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,m=c.length;d { +"use strict";var Plotly=(()=>{var Wet=Object.create;var EM=Object.defineProperty,Zet=Object.defineProperties,Xet=Object.getOwnPropertyDescriptor,Yet=Object.getOwnPropertyDescriptors,Ket=Object.getOwnPropertyNames,oee=Object.getOwnPropertySymbols,Jet=Object.getPrototypeOf,lee=Object.prototype.hasOwnProperty,$et=Object.prototype.propertyIsEnumerable;var see=(e,t,r)=>t in e?EM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uee=(e,t)=>{for(var r in t||(t={}))lee.call(t,r)&&see(e,r,t[r]);if(oee)for(var r of oee(t))$et.call(t,r)&&see(e,r,t[r]);return e},cee=(e,t)=>Zet(e,Yet(t));var Ll=(e,t)=>()=>(e&&(t=e(e=0)),t);var _e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fee=(e,t)=>{for(var r in t)EM(e,r,{get:t[r],enumerable:!0})},hee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ket(t))!lee.call(e,i)&&i!==r&&EM(e,i,{get:()=>t[i],enumerable:!(n=Xet(t,i))||n.enumerable});return e};var Qet=(e,t,r)=>(r=e!=null?Wet(Jet(e)):{},hee(t||!e||!e.__esModule?EM(r,"default",{value:e,enumerable:!0}):r,e)),B1=e=>hee(EM({},"__esModule",{value:!0}),e);var e6=_e(dee=>{"use strict";dee.version="3.0.1"});var pee=_e((vee,t6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof t6!="undefined"&&t6.exports&&(t6.exports=r[t])})("Promise",typeof window!="undefined"?window:vee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(E,k,A,L){return Object.defineProperty(E,k,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(k,A,L){return k[A]=L,k}}n=function(){var E,k,A;function L(_,C){this.fn=_,this.self=C,this.next=void 0}return{add:function(C,S){A=new L(C,S),k?k.next=A:E=A,k=A,A=void 0},drain:function(){var C=E;for(E=k=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(p,E){n.add(p,E),r||(r=a(n.drain))}function s(p){var E,k=typeof p;return p!=null&&(k=="object"||k=="function")&&(E=p.then),typeof E=="function"?E:!1}function l(){for(var p=0;p0&&o(l,k))}catch(A){f.call(new d(k),A)}}}function f(p){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=p,E.state=2,E.chain.length>0&&o(l,E))}function h(p,E,k,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(W){return t.call(W)},n=self.document;function i(W){return W&&(W.ownerDocument||W.document||W).documentElement}function a(W){return W&&(W.ownerDocument&&W.ownerDocument.defaultView||W.document&&W||W.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(W){r=function(oe){for(var Ae=oe.length,Oe=new Array(Ae);Ae--;)Oe[Ae]=oe[Ae];return Oe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(W){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(oe,Ae){s.call(this,oe,Ae+"")},o.setAttributeNS=function(oe,Ae,Oe){l.call(this,oe,Ae,Oe+"")},u.setProperty=function(oe,Ae,Oe){c.call(this,oe,Ae+"",Oe)}}e.ascending=f;function f(W,oe){return Woe?1:W>=oe?0:NaN}e.descending=function(W,oe){return oeW?1:oe>=W?0:NaN},e.min=function(W,oe){var Ae=-1,Oe=W.length,Be,Ve;if(arguments.length===1){for(;++Ae=Ve){Be=Ve;break}for(;++AeVe&&(Be=Ve)}else{for(;++Ae=Ve){Be=Ve;break}for(;++AeVe&&(Be=Ve)}return Be},e.max=function(W,oe){var Ae=-1,Oe=W.length,Be,Ve;if(arguments.length===1){for(;++Ae=Ve){Be=Ve;break}for(;++AeBe&&(Be=Ve)}else{for(;++Ae=Ve){Be=Ve;break}for(;++AeBe&&(Be=Ve)}return Be},e.extent=function(W,oe){var Ae=-1,Oe=W.length,Be,Ve,bt;if(arguments.length===1){for(;++Ae=Ve){Be=bt=Ve;break}for(;++AeVe&&(Be=Ve),bt=Ve){Be=bt=Ve;break}for(;++AeVe&&(Be=Ve),bt1)return bt/(zt-1)},e.deviation=function(){var W=e.variance.apply(this,arguments);return W&&Math.sqrt(W)};function v(W){return{left:function(oe,Ae,Oe,Be){for(arguments.length<3&&(Oe=0),arguments.length<4&&(Be=oe.length);Oe>>1;W(oe[Ve],Ae)<0?Oe=Ve+1:Be=Ve}return Oe},right:function(oe,Ae,Oe,Be){for(arguments.length<3&&(Oe=0),arguments.length<4&&(Be=oe.length);Oe>>1;W(oe[Ve],Ae)>0?Be=Ve:Oe=Ve+1}return Oe}}}var x=v(f);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(W){return v(W.length===1?function(oe,Ae){return f(W(oe),Ae)}:W)},e.shuffle=function(W,oe,Ae){(Oe=arguments.length)<3&&(Ae=W.length,Oe<2&&(oe=0));for(var Oe=Ae-oe,Be,Ve;Oe;)Ve=Math.random()*Oe--|0,Be=W[Oe+oe],W[Oe+oe]=W[Ve+oe],W[Ve+oe]=Be;return W},e.permute=function(W,oe){for(var Ae=oe.length,Oe=new Array(Ae);Ae--;)Oe[Ae]=W[oe[Ae]];return Oe},e.pairs=function(W){for(var oe=0,Ae=W.length-1,Oe,Be=W[0],Ve=new Array(Ae<0?0:Ae);oe=0;)for(bt=W[oe],Ae=bt.length;--Ae>=0;)Ve[--Be]=bt[Ae];return Ve};var p=Math.abs;e.range=function(W,oe,Ae){if(arguments.length<3&&(Ae=1,arguments.length<2&&(oe=W,W=0)),(oe-W)/Ae===1/0)throw new Error("infinite range");var Oe=[],Be=E(p(Ae)),Ve=-1,bt;if(W*=Be,oe*=Be,Ae*=Be,Ae<0)for(;(bt=W+Ae*++Ve)>oe;)Oe.push(bt/Be);else for(;(bt=W+Ae*++Ve)=oe.length)return Be?Be.call(W,zt):Oe?zt.sort(Oe):zt;for(var lr=-1,zr=zt.length,Rr=oe[or++],li,fi,Or,$r=new A,oi;++lr=oe.length)return et;var or=[],lr=Ae[zt++];return et.forEach(function(zr,Rr){or.push({key:zr,values:bt(Rr,zt)})}),lr?or.sort(function(zr,Rr){return lr(zr.key,Rr.key)}):or}return W.map=function(et,zt){return Ve(zt,et,0)},W.entries=function(et){return bt(Ve(e.map,et,0),0)},W.key=function(et){return oe.push(et),W},W.sortKeys=function(et){return Ae[oe.length-1]=et,W},W.sortValues=function(et){return Oe=et,W},W.rollup=function(et){return Be=et,W},W},e.set=function(W){var oe=new V;if(W)for(var Ae=0,Oe=W.length;Ae=0&&(Oe=W.slice(Ae+1),W=W.slice(0,Ae)),W)return arguments.length<2?this[W].on(Oe):this[W].on(Oe,oe);if(arguments.length===2){if(oe==null)for(W in this)this.hasOwnProperty(W)&&this[W].on(Oe,null);return this}};function ae(W){var oe=[],Ae=new A;function Oe(){for(var Be=oe,Ve=-1,bt=Be.length,et;++Ve=0&&(Ae=W.slice(0,oe))!=="xmlns"&&(W=W.slice(oe+1)),Xe.hasOwnProperty(Ae)?{space:Xe[Ae],local:W}:W}},Me.attr=function(W,oe){if(arguments.length<2){if(typeof W=="string"){var Ae=this.node();return W=e.ns.qualify(W),W.local?Ae.getAttributeNS(W.space,W.local):Ae.getAttribute(W)}for(oe in W)this.each(lt(oe,W[oe]));return this}return this.each(lt(W,oe))};function lt(W,oe){W=e.ns.qualify(W);function Ae(){this.removeAttribute(W)}function Oe(){this.removeAttributeNS(W.space,W.local)}function Be(){this.setAttribute(W,oe)}function Ve(){this.setAttributeNS(W.space,W.local,oe)}function bt(){var zt=oe.apply(this,arguments);zt==null?this.removeAttribute(W):this.setAttribute(W,zt)}function et(){var zt=oe.apply(this,arguments);zt==null?this.removeAttributeNS(W.space,W.local):this.setAttributeNS(W.space,W.local,zt)}return oe==null?W.local?Oe:Ae:typeof oe=="function"?W.local?et:bt:W.local?Ve:Be}function At(W){return W.trim().replace(/\s+/g," ")}Me.classed=function(W,oe){if(arguments.length<2){if(typeof W=="string"){var Ae=this.node(),Oe=(W=nt(W)).length,Be=-1;if(oe=Ae.classList){for(;++Be=0;)(Ve=Ae[Oe])&&(Be&&Be!==Ve.nextSibling&&Be.parentNode.insertBefore(Ve,Be),Be=Ve);return this},Me.sort=function(W){W=yt.apply(this,arguments);for(var oe=-1,Ae=this.length;++oe=oe&&(oe=Be+1);!(zt=bt[oe])&&++oe0&&(W=W.slice(0,Be));var bt=Gt.get(W);bt&&(W=bt,Ve=hr);function et(){var lr=this[Oe];lr&&(this.removeEventListener(W,lr,lr.$),delete this[Oe])}function zt(){var lr=Ve(oe,r(arguments));et.call(this),this.addEventListener(W,this[Oe]=lr,lr.$=Ae),lr._=oe}function or(){var lr=new RegExp("^__on([^.]+)"+e.requote(W)+"$"),zr;for(var Rr in this)if(zr=Rr.match(lr)){var li=this[Rr];this.removeEventListener(zr[1],li,li.$),delete this[Rr]}}return Be?oe?zt:et:oe?Z:or}var Gt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Gt.forEach(function(W){"on"+W in n&&Gt.remove(W)});function $t(W,oe){return function(Ae){var Oe=e.event;e.event=Ae,oe[0]=this.__data__;try{W.apply(this,oe)}finally{e.event=Oe}}}function hr(W,oe){var Ae=$t(W,oe);return function(Oe){var Be=this,Ve=Oe.relatedTarget;(!Ve||Ve!==Be&&!(Ve.compareDocumentPosition(Be)&8))&&Ae.call(Be,Oe)}}var _r,Nr=0;function Br(W){var oe=".dragsuppress-"+ ++Nr,Ae="click"+oe,Oe=e.select(a(W)).on("touchmove"+oe,we).on("dragstart"+oe,we).on("selectstart"+oe,we);if(_r==null&&(_r="onselectstart"in W?!1:G(W.style,"userSelect")),_r){var Be=i(W).style,Ve=Be[_r];Be[_r]="none"}return function(bt){if(Oe.on(oe,null),_r&&(Be[_r]=Ve),bt){var et=function(){Oe.on(Ae,null)};Oe.on(Ae,function(){we(),et()},!0),setTimeout(et,0)}}}e.mouse=function(W){return ut(W,Ee())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ut(W,oe){oe.changedTouches&&(oe=oe.changedTouches[0]);var Ae=W.ownerSVGElement||W;if(Ae.createSVGPoint){var Oe=Ae.createSVGPoint();if(Ur<0){var Be=a(W);if(Be.scrollX||Be.scrollY){Ae=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ve=Ae[0][0].getScreenCTM();Ur=!(Ve.f||Ve.e),Ae.remove()}}return Ur?(Oe.x=oe.pageX,Oe.y=oe.pageY):(Oe.x=oe.clientX,Oe.y=oe.clientY),Oe=Oe.matrixTransform(W.getScreenCTM().inverse()),[Oe.x,Oe.y]}var bt=W.getBoundingClientRect();return[oe.clientX-bt.left-W.clientLeft,oe.clientY-bt.top-W.clientTop]}e.touch=function(W,oe,Ae){if(arguments.length<3&&(Ae=oe,oe=Ee().changedTouches),oe){for(var Oe=0,Be=oe.length,Ve;Oe0?1:W<0?-1:0}function Ot(W,oe,Ae){return(oe[0]-W[0])*(Ae[1]-W[1])-(oe[1]-W[1])*(Ae[0]-W[0])}function rr(W){return W>1?0:W<-1?Je:Math.acos(W)}function Jr(W){return W>1?le:W<-1?-le:Math.asin(W)}function ni(W){return((W=Math.exp(W))-1/W)/2}function Gr(W){return((W=Math.exp(W))+1/W)/2}function ri(W){return((W=Math.exp(2*W))-1)/(W+1)}function Ti(W){return(W=Math.sin(W/2))*W}var an=Math.SQRT2,Yi=2,Xi=4;e.interpolateZoom=function(W,oe){var Ae=W[0],Oe=W[1],Be=W[2],Ve=oe[0],bt=oe[1],et=oe[2],zt=Ve-Ae,or=bt-Oe,lr=zt*zt+or*or,zr,Rr;if(lr0&&(pn=pn.transition().duration(bt)),pn.call(hi.event)}function va(){$r&&$r.domain(Or.range().map(function(pn){return(pn-W.x)/W.k}).map(Or.invert)),pi&&pi.domain(oi.range().map(function(pn){return(pn-W.y)/W.k}).map(oi.invert))}function ga(pn){et++||pn({type:"zoomstart"})}function io(pn){va(),pn({type:"zoom",scale:W.k,translate:[W.x,W.y]})}function ba(pn){--et||(pn({type:"zoomend"}),Ae=null)}function eo(){var pn=this,Ra=fi.of(pn,arguments),Eo=0,Ro=e.select(a(pn)).on(or,fu).on(lr,dl),js=Qr(e.mouse(pn)),xl=Br(pn);Qn.call(pn),ga(Ra);function fu(){Eo=1,Sn(e.mouse(pn),js),io(Ra)}function dl(){Ro.on(or,null).on(lr,null),xl(Eo),ba(Ra)}}function Ts(){var pn=this,Ra=fi.of(pn,arguments),Eo={},Ro=0,js,xl=".zoom-"+e.event.changedTouches[0].identifier,fu="touchmove"+xl,dl="touchend"+xl,xc=[],Mt=e.select(pn),Sr=Br(pn);Ai(),ga(Ra),Mt.on(zt,null).on(Rr,Ai);function Wr(){var Ni=e.touches(pn);return js=W.k,Ni.forEach(function(cn){cn.identifier in Eo&&(Eo[cn.identifier]=Qr(cn))}),Ni}function Ai(){var Ni=e.event.target;e.select(Ni).on(fu,Vi).on(dl,Bi),xc.push(Ni);for(var cn=e.event.changedTouches,zn=0,Fn=cn.length;zn1){var In=yn[0],Rn=yn[1],fn=In[0]-Rn[0],Si=In[1]-Rn[1];Ro=fn*fn+Si*Si}}function Vi(){var Ni=e.touches(pn),cn,zn,Fn,yn;Qn.call(pn);for(var $a=0,In=Ni.length;$a1?1:oe,Ae=Ae<0?0:Ae>1?1:Ae,Be=Ae<=.5?Ae*(1+oe):Ae+oe-Ae*oe,Oe=2*Ae-Be;function Ve(et){return et>360?et-=360:et<0&&(et+=360),et<60?Oe+(Be-Oe)*et/60:et<180?Be:et<240?Oe+(Be-Oe)*(240-et)/60:Oe}function bt(et){return Math.round(Ve(et)*255)}return new Da(bt(W+120),bt(W),bt(W-120))}e.hcl=Wt;function Wt(W,oe,Ae){return this instanceof Wt?(this.h=+W,this.c=+oe,void(this.l=+Ae)):arguments.length<2?W instanceof Wt?new Wt(W.h,W.c,W.l):W instanceof Zr?$i(W.l,W.a,W.b):$i((W=As((W=e.rgb(W)).r,W.g,W.b)).l,W.a,W.b):new Wt(W,oe,Ae)}var gr=Wt.prototype=new Xn;gr.brighter=function(W){return new Wt(this.h,this.c,Math.min(100,this.l+Hr*(arguments.length?W:1)))},gr.darker=function(W){return new Wt(this.h,this.c,Math.max(0,this.l-Hr*(arguments.length?W:1)))},gr.rgb=function(){return qr(this.h,this.c,this.l).rgb()};function qr(W,oe,Ae){return isNaN(W)&&(W=0),isNaN(oe)&&(oe=0),new Zr(Ae,Math.cos(W*=be)*oe,Math.sin(W)*oe)}e.lab=Zr;function Zr(W,oe,Ae){return this instanceof Zr?(this.l=+W,this.a=+oe,void(this.b=+Ae)):arguments.length<2?W instanceof Zr?new Zr(W.l,W.a,W.b):W instanceof Wt?qr(W.h,W.c,W.l):As((W=Da(W)).r,W.g,W.b):new Zr(W,oe,Ae)}var Hr=18,mi=.95047,Ei=1,ki=1.08883,Ri=Zr.prototype=new Xn;Ri.brighter=function(W){return new Zr(Math.min(100,this.l+Hr*(arguments.length?W:1)),this.a,this.b)},Ri.darker=function(W){return new Zr(Math.max(0,this.l-Hr*(arguments.length?W:1)),this.a,this.b)},Ri.rgb=function(){return ji(this.l,this.a,this.b)};function ji(W,oe,Ae){var Oe=(W+16)/116,Be=Oe+oe/500,Ve=Oe-Ae/200;return Be=Sa(Be)*mi,Oe=Sa(Oe)*Ei,Ve=Sa(Ve)*ki,new Da(sa(3.2404542*Be-1.5371385*Oe-.4985314*Ve),sa(-.969266*Be+1.8760108*Oe+.041556*Ve),sa(.0556434*Be-.2040259*Oe+1.0572252*Ve))}function $i(W,oe,Ae){return W>0?new Wt(Math.atan2(Ae,oe)*Qe,Math.sqrt(oe*oe+Ae*Ae),W):new Wt(NaN,NaN,W)}function Sa(W){return W>.206893034?W*W*W:(W-4/29)/7.787037}function Gn(W){return W>.008856?Math.pow(W,1/3):7.787037*W+4/29}function sa(W){return Math.round(255*(W<=.00304?12.92*W:1.055*Math.pow(W,1/2.4)-.055))}e.rgb=Da;function Da(W,oe,Ae){return this instanceof Da?(this.r=~~W,this.g=~~oe,void(this.b=~~Ae)):arguments.length<2?W instanceof Da?new Da(W.r,W.g,W.b):_s(""+W,Da,Vt):new Da(W,oe,Ae)}function Pa(W){return new Da(W>>16,W>>8&255,W&255)}function Vo(W){return Pa(W)+""}var aa=Da.prototype=new Xn;aa.brighter=function(W){W=Math.pow(.7,arguments.length?W:1);var oe=this.r,Ae=this.g,Oe=this.b,Be=30;return!oe&&!Ae&&!Oe?new Da(Be,Be,Be):(oe&&oe>4,Oe=Oe>>4|Oe,Be=zt&240,Be=Be>>4|Be,Ve=zt&15,Ve=Ve<<4|Ve):W.length===7&&(Oe=(zt&16711680)>>16,Be=(zt&65280)>>8,Ve=zt&255)),oe(Oe,Be,Ve))}function Vs(W,oe,Ae){var Oe=Math.min(W/=255,oe/=255,Ae/=255),Be=Math.max(W,oe,Ae),Ve=Be-Oe,bt,et,zt=(Be+Oe)/2;return Ve?(et=zt<.5?Ve/(Be+Oe):Ve/(2-Be-Oe),W==Be?bt=(oe-Ae)/Ve+(oe0&&zt<1?0:bt),new It(bt,et,zt)}function As(W,oe,Ae){W=wt(W),oe=wt(oe),Ae=wt(Ae);var Oe=Gn((.4124564*W+.3575761*oe+.1804375*Ae)/mi),Be=Gn((.2126729*W+.7151522*oe+.072175*Ae)/Ei),Ve=Gn((.0193339*W+.119192*oe+.9503041*Ae)/ki);return Zr(116*Be-16,500*(Oe-Be),200*(Be-Ve))}function wt(W){return(W/=255)<=.04045?W/12.92:Math.pow((W+.055)/1.055,2.4)}function Lr(W){var oe=parseFloat(W);return W.charAt(W.length-1)==="%"?Math.round(oe*2.55):oe}var Pr=e.map({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});Pr.forEach(function(W,oe){Pr.set(W,Pa(oe))});function Xr(W){return typeof W=="function"?W:function(){return W}}e.functor=Xr,e.xhr=bi(H);function bi(W){return function(oe,Ae,Oe){return arguments.length===2&&typeof Ae=="function"&&(Oe=Ae,Ae=null),ai(oe,Ae,W,Oe)}}function ai(W,oe,Ae,Oe){var Be={},Ve=e.dispatch("beforesend","progress","load","error"),bt={},et=new XMLHttpRequest,zt=null;self.XDomainRequest&&!("withCredentials"in et)&&/^(http(s)?:)?\/\//.test(W)&&(et=new XDomainRequest),"onload"in et?et.onload=et.onerror=or:et.onreadystatechange=function(){et.readyState>3&&or()};function or(){var lr=et.status,zr;if(!lr&&ii(et)||lr>=200&&lr<300||lr===304){try{zr=Ae.call(Be,et)}catch(Rr){Ve.error.call(Be,Rr);return}Ve.load.call(Be,zr)}else Ve.error.call(Be,et)}return et.onprogress=function(lr){var zr=e.event;e.event=lr;try{Ve.progress.call(Be,et)}finally{e.event=zr}},Be.header=function(lr,zr){return lr=(lr+"").toLowerCase(),arguments.length<2?bt[lr]:(zr==null?delete bt[lr]:bt[lr]=zr+"",Be)},Be.mimeType=function(lr){return arguments.length?(oe=lr==null?null:lr+"",Be):oe},Be.responseType=function(lr){return arguments.length?(zt=lr,Be):zt},Be.response=function(lr){return Ae=lr,Be},["get","post"].forEach(function(lr){Be[lr]=function(){return Be.send.apply(Be,[lr].concat(r(arguments)))}}),Be.send=function(lr,zr,Rr){if(arguments.length===2&&typeof zr=="function"&&(Rr=zr,zr=null),et.open(lr,W,!0),oe!=null&&!("accept"in bt)&&(bt.accept=oe+",*/*"),et.setRequestHeader)for(var li in bt)et.setRequestHeader(li,bt[li]);return oe!=null&&et.overrideMimeType&&et.overrideMimeType(oe),zt!=null&&(et.responseType=zt),Rr!=null&&Be.on("error",Rr).on("load",function(fi){Rr(null,fi)}),Ve.beforesend.call(Be,et),et.send(zr==null?null:zr),Be},Be.abort=function(){return et.abort(),Be},e.rebind(Be,Ve,"on"),Oe==null?Be:Be.get(Wi(Oe))}function Wi(W){return W.length===1?function(oe,Ae){W(oe==null?Ae:null)}:W}function ii(W){var oe=W.responseType;return oe&&oe!=="text"?W.response:W.responseText}e.dsv=function(W,oe){var Ae=new RegExp('["'+W+` +]`),Oe=W.charCodeAt(0);function Be(or,lr,zr){arguments.length<3&&(zr=lr,lr=null);var Rr=ai(or,oe,lr==null?Ve:bt(lr),zr);return Rr.row=function(li){return arguments.length?Rr.response((lr=li)==null?Ve:bt(li)):lr},Rr}function Ve(or){return Be.parse(or.responseText)}function bt(or){return function(lr){return Be.parse(lr.responseText,or)}}Be.parse=function(or,lr){var zr;return Be.parseRows(or,function(Rr,li){if(zr)return zr(Rr,li-1);var fi=function(Or){for(var $r={},oi=Rr.length,pi=0;pi=fi)return Rr;if(pi)return pi=!1,zr;var un=Or;if(or.charCodeAt(un)===34){for(var dn=un;dn++24?(isFinite(oe)&&(clearTimeout(xa),xa=setTimeout(lo,oe)),Tn=0):(Tn=1,fo(lo))}e.timer.flush=function(){To(),mo()};function To(){for(var W=Date.now(),oe=Ui;oe;)W>=oe.t&&oe.c(W-oe.t)&&(oe.c=null),oe=oe.n;return W}function mo(){for(var W,oe=Ui,Ae=1/0;oe;)oe.c?(oe.t=0;--et)Or.push(Be[or[zr[et]][2]]);for(et=+li;et1&&Ot(W[Ae[Oe-2]],W[Ae[Oe-1]],W[Be])<=0;)--Oe;Ae[Oe++]=Be}return Ae.slice(0,Oe)}function Xs(W,oe){return W[0]-oe[0]||W[1]-oe[1]}e.geom.polygon=function(W){return K(W,wl),W};var wl=e.geom.polygon.prototype=[];wl.area=function(){for(var W=-1,oe=this.length,Ae,Oe=this[oe-1],Be=0;++Wit)et=et.L;else if(bt=oe-uo(et,Ae),bt>it){if(!et.R){Oe=et;break}et=et.R}else{Ve>-it?(Oe=et.P,Be=et):bt>-it?(Oe=et,Be=et.N):Oe=Be=et;break}var zt=vs(W);if(Hs.insert(Oe,zt),!(!Oe&&!Be)){if(Oe===Be){Mo(Oe),Be=vs(Oe.site),Hs.insert(zt,Be),zt.edge=Be.edge=cf(Oe.site,zt.site),jn(Oe),jn(Be);return}if(!Be){zt.edge=cf(Oe.site,zt.site);return}Mo(Oe),Mo(Be);var or=Oe.site,lr=or.x,zr=or.y,Rr=W.x-lr,li=W.y-zr,fi=Be.site,Or=fi.x-lr,$r=fi.y-zr,oi=2*(Rr*$r-li*Or),pi=Rr*Rr+li*li,hi=Or*Or+$r*$r,Qr={x:($r*pi-li*hi)/oi+lr,y:(Rr*hi-Or*pi)/oi+zr};Al(Be.edge,or,fi,Qr),zt.edge=cf(or,W,null,Qr),Be.edge=cf(W,fi,null,Qr),jn(Oe),jn(Be)}}function Rl(W,oe){var Ae=W.site,Oe=Ae.x,Be=Ae.y,Ve=Be-oe;if(!Ve)return Oe;var bt=W.P;if(!bt)return-1/0;Ae=bt.site;var et=Ae.x,zt=Ae.y,or=zt-oe;if(!or)return et;var lr=et-Oe,zr=1/Ve-1/or,Rr=lr/or;return zr?(-Rr+Math.sqrt(Rr*Rr-2*zr*(lr*lr/(-2*or)-zt+or/2+Be-Ve/2)))/zr+Oe:(Oe+et)/2}function uo(W,oe){var Ae=W.N;if(Ae)return Rl(Ae,oe);var Oe=W.site;return Oe.y===oe?Oe.x:1/0}function Zl(W){this.site=W,this.edges=[]}Zl.prototype.prepare=function(){for(var W=this.edges,oe=W.length,Ae;oe--;)Ae=W[oe].edge,(!Ae.b||!Ae.a)&&W.splice(oe,1);return W.sort(Xl),W.length};function Ks(W){for(var oe=W[0][0],Ae=W[1][0],Oe=W[0][1],Be=W[1][1],Ve,bt,et,zt,or=Ys,lr=or.length,zr,Rr,li,fi,Or,$r;lr--;)if(zr=or[lr],!(!zr||!zr.prepare()))for(li=zr.edges,fi=li.length,Rr=0;Rrit||p(zt-bt)>it)&&(li.splice(Rr,0,new Hc(rh(zr.site,$r,p(et-oe)it?{x:oe,y:p(Ve-oe)it?{x:p(bt-Be)it?{x:Ae,y:p(Ve-Ae)it?{x:p(bt-Oe)=-Ze)){var Rr=zt*zt+or*or,li=lr*lr+$r*$r,fi=($r*Rr-or*li)/zr,Or=(zt*li-lr*Rr)/zr,$r=Or+et,oi=Hu.pop()||new Ec;oi.arc=W,oi.site=Be,oi.x=fi+bt,oi.y=$r+Math.sqrt(fi*fi+Or*Or),oi.cy=$r,W.circle=oi;for(var pi=null,hi=Ql._;hi;)if(oi.y0)){if(Or/=li,li<0){if(Or0){if(Or>Rr)return;Or>zr&&(zr=Or)}if(Or=Ae-et,!(!li&&Or<0)){if(Or/=li,li<0){if(Or>Rr)return;Or>zr&&(zr=Or)}else if(li>0){if(Or0)){if(Or/=fi,fi<0){if(Or0){if(Or>Rr)return;Or>zr&&(zr=Or)}if(Or=Oe-zt,!(!fi&&Or<0)){if(Or/=fi,fi<0){if(Or>Rr)return;Or>zr&&(zr=Or)}else if(fi>0){if(Or0&&(Be.a={x:et+zr*li,y:zt+zr*fi}),Rr<1&&(Be.b={x:et+Rr*li,y:zt+Rr*fi}),Be}}}}}}function Tl(W){for(var oe=ml,Ae=So(W[0][0],W[0][1],W[1][0],W[1][1]),Oe=oe.length,Be;Oe--;)Be=oe[Oe],(!uf(Be,W)||!Ae(Be)||p(Be.a.x-Be.b.x)=Ve)return;if(lr>Rr){if(!Oe)Oe={x:fi,y:bt};else if(Oe.y>=et)return;Ae={x:fi,y:et}}else{if(!Oe)Oe={x:fi,y:et};else if(Oe.y1)if(lr>Rr){if(!Oe)Oe={x:(bt-oi)/$r,y:bt};else if(Oe.y>=et)return;Ae={x:(et-oi)/$r,y:et}}else{if(!Oe)Oe={x:(et-oi)/$r,y:et};else if(Oe.y=Ve)return;Ae={x:Ve,y:$r*Ve+oi}}else{if(!Oe)Oe={x:Ve,y:$r*Ve+oi};else if(Oe.x=lr&&oi.x<=Rr&&oi.y>=zr&&oi.y<=li?[[lr,li],[Rr,li],[Rr,zr],[lr,zr]]:[];pi.point=zt[Or]}),or}function et(zt){return zt.map(function(or,lr){return{x:Math.round(Oe(or,lr)/it)*it,y:Math.round(Be(or,lr)/it)*it,i:lr}})}return bt.links=function(zt){return Gc(et(zt)).edges.filter(function(or){return or.l&&or.r}).map(function(or){return{source:zt[or.l.i],target:zt[or.r.i]}})},bt.triangles=function(zt){var or=[];return Gc(et(zt)).cells.forEach(function(lr,zr){for(var Rr=lr.site,li=lr.edges.sort(Xl),fi=-1,Or=li.length,$r,oi,pi=li[Or-1].edge,hi=pi.l===Rr?pi.r:pi.l;++fihi&&(hi=lr.x),lr.y>Qr&&(Qr=lr.y),li.push(lr.x),fi.push(lr.y);else for(Or=0;Or<$r;++Or){var un=+zr(lr=or[Or],Or),dn=+Rr(lr,Or);unhi&&(hi=un),dn>Qr&&(Qr=dn),li.push(un),fi.push(dn)}var Sn=hi-oi,qn=Qr-pi;Sn>qn?Qr=pi+Sn:hi=oi+qn;function va(ba,eo,Ts,gs,Bs,pn,Ra,Eo){if(!(isNaN(Ts)||isNaN(gs)))if(ba.leaf){var Ro=ba.x,js=ba.y;if(Ro!=null)if(p(Ro-Ts)+p(js-gs)<.01)ga(ba,eo,Ts,gs,Bs,pn,Ra,Eo);else{var xl=ba.point;ba.x=ba.y=ba.point=null,ga(ba,xl,Ro,js,Bs,pn,Ra,Eo),ga(ba,eo,Ts,gs,Bs,pn,Ra,Eo)}else ba.x=Ts,ba.y=gs,ba.point=eo}else ga(ba,eo,Ts,gs,Bs,pn,Ra,Eo)}function ga(ba,eo,Ts,gs,Bs,pn,Ra,Eo){var Ro=(Bs+Ra)*.5,js=(pn+Eo)*.5,xl=Ts>=Ro,fu=gs>=js,dl=fu<<1|xl;ba.leaf=!1,ba=ba.nodes[dl]||(ba.nodes[dl]=Hl()),xl?Bs=Ro:Ra=Ro,fu?pn=js:Eo=js,va(ba,eo,Ts,gs,Bs,pn,Ra,Eo)}var io=Hl();if(io.add=function(ba){va(io,ba,+zr(ba,++Or),+Rr(ba,Or),oi,pi,hi,Qr)},io.visit=function(ba){Js(ba,io,oi,pi,hi,Qr)},io.find=function(ba){return hc(io,ba[0],ba[1],oi,pi,hi,Qr)},Or=-1,oe==null){for(;++Or<$r;)va(io,or[Or],li[Or],fi[Or],oi,pi,hi,Qr);--Or}else or.forEach(io.add);return li=fi=or=lr=null,io}return zt.x=function(or){return arguments.length?(Ve=or,zt):Ve},zt.y=function(or){return arguments.length?(bt=or,zt):bt},zt.extent=function(or){return arguments.length?(or==null?oe=Ae=Oe=Be=null:(oe=+or[0][0],Ae=+or[0][1],Oe=+or[1][0],Be=+or[1][1]),zt):oe==null?null:[[oe,Ae],[Oe,Be]]},zt.size=function(or){return arguments.length?(or==null?oe=Ae=Oe=Be=null:(oe=Ae=0,Oe=+or[0],Be=+or[1]),zt):oe==null?null:[Oe-oe,Be-Ae]},zt};function ff(W){return W.x}function ih(W){return W.y}function Hl(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Js(W,oe,Ae,Oe,Be,Ve){if(!W(oe,Ae,Oe,Be,Ve)){var bt=(Ae+Be)*.5,et=(Oe+Ve)*.5,zt=oe.nodes;zt[0]&&Js(W,zt[0],Ae,Oe,bt,et),zt[1]&&Js(W,zt[1],bt,Oe,Be,et),zt[2]&&Js(W,zt[2],Ae,et,bt,Ve),zt[3]&&Js(W,zt[3],bt,et,Be,Ve)}}function hc(W,oe,Ae,Oe,Be,Ve,bt){var et=1/0,zt;return function or(lr,zr,Rr,li,fi){if(!(zr>Ve||Rr>bt||li=un,qn=Ae>=dn,va=qn<<1|Sn,ga=va+4;vaAe&&(Ve=oe.slice(Ae,Ve),et[bt]?et[bt]+=Ve:et[++bt]=Ve),(Oe=Oe[0])===(Be=Be[0])?et[bt]?et[bt]+=Be:et[++bt]=Be:(et[++bt]=null,zt.push({i:bt,x:$s(Oe,Be)})),Ae=dc.lastIndex;return Ae=0&&!(Oe=e.interpolators[Ae](W,oe)););return Oe}e.interpolators=[function(W,oe){var Ae=typeof oe;return(Ae==="string"?Pr.has(oe.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(oe)?Cc:us:oe instanceof Xn?Cc:Array.isArray(oe)?ec:Ae==="object"&&isNaN(oe)?xs:$s)(W,oe)}],e.interpolateArray=ec;function ec(W,oe){var Ae=[],Oe=[],Be=W.length,Ve=oe.length,bt=Math.min(W.length,oe.length),et;for(et=0;et=0?W.slice(0,oe):W,Oe=oe>=0?W.slice(oe+1):"in";return Ae=ov.get(Ae)||Ls,Oe=_o.get(Oe)||H,Od(Oe(Ae.apply(null,t.call(arguments,1))))};function Od(W){return function(oe){return oe<=0?0:oe>=1?1:W(oe)}}function Yo(W){return function(oe){return 1-W(1-oe)}}function Xa(W){return function(oe){return .5*(oe<.5?W(2*oe):2-W(2-2*oe))}}function Ef(W){return W*W}function tc(W){return W*W*W}function uu(W){if(W<=0)return 0;if(W>=1)return 1;var oe=W*W,Ae=oe*W;return 4*(W<.5?Ae:3*(W-oe)+Ae-.75)}function Sh(W){return function(oe){return Math.pow(oe,W)}}function jc(W){return 1-Math.cos(W*le)}function kf(W){return Math.pow(2,10*(W-1))}function Sl(W){return 1-Math.sqrt(1-W*W)}function Yh(W,oe){var Ae;return arguments.length<2&&(oe=.45),arguments.length?Ae=oe/ht*Math.asin(1/W):(W=1,Ae=oe/4),function(Oe){return 1+W*Math.pow(2,-10*Oe)*Math.sin((Oe-Ae)*ht/oe)}}function Eh(W){return W||(W=1.70158),function(oe){return oe*oe*((W+1)*oe-W)}}function nh(W){return W<1/2.75?7.5625*W*W:W<2/2.75?7.5625*(W-=1.5/2.75)*W+.75:W<2.5/2.75?7.5625*(W-=2.25/2.75)*W+.9375:7.5625*(W-=2.625/2.75)*W+.984375}e.interpolateHcl=hf;function hf(W,oe){W=e.hcl(W),oe=e.hcl(oe);var Ae=W.h,Oe=W.c,Be=W.l,Ve=oe.h-Ae,bt=oe.c-Oe,et=oe.l-Be;return isNaN(bt)&&(bt=0,Oe=isNaN(Oe)?oe.c:Oe),isNaN(Ve)?(Ve=0,Ae=isNaN(Ae)?oe.h:Ae):Ve>180?Ve-=360:Ve<-180&&(Ve+=360),function(zt){return qr(Ae+Ve*zt,Oe+bt*zt,Be+et*zt)+""}}e.interpolateHsl=kh;function kh(W,oe){W=e.hsl(W),oe=e.hsl(oe);var Ae=W.h,Oe=W.s,Be=W.l,Ve=oe.h-Ae,bt=oe.s-Oe,et=oe.l-Be;return isNaN(bt)&&(bt=0,Oe=isNaN(Oe)?oe.s:Oe),isNaN(Ve)?(Ve=0,Ae=isNaN(Ae)?oe.h:Ae):Ve>180?Ve-=360:Ve<-180&&(Ve+=360),function(zt){return Vt(Ae+Ve*zt,Oe+bt*zt,Be+et*zt)+""}}e.interpolateLab=Kh;function Kh(W,oe){W=e.lab(W),oe=e.lab(oe);var Ae=W.l,Oe=W.a,Be=W.b,Ve=oe.l-Ae,bt=oe.a-Oe,et=oe.b-Be;return function(zt){return ji(Ae+Ve*zt,Oe+bt*zt,Be+et*zt)+""}}e.interpolateRound=rc;function rc(W,oe){return oe-=W,function(Ae){return Math.round(W+oe*Ae)}}e.transform=function(W){var oe=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Ae){if(Ae!=null){oe.setAttribute("transform",Ae);var Oe=oe.transform.baseVal.consolidate()}return new ah(Oe?Oe.matrix:Nf)})(W)};function ah(W){var oe=[W.a,W.b],Ae=[W.c,W.d],Oe=df(oe),Be=Wc(oe,Ae),Ve=df(Cu(Ae,oe,-Be))||0;oe[0]*Ae[1]180?oe+=360:oe-W>180&&(W+=360),Oe.push({i:Ae.push(Zc(Ae)+"rotate(",null,")")-2,x:$s(W,oe)})):oe&&Ae.push(Zc(Ae)+"rotate("+oe+")")}function Bd(W,oe,Ae,Oe){W!==oe?Oe.push({i:Ae.push(Zc(Ae)+"skewX(",null,")")-2,x:$s(W,oe)}):oe&&Ae.push(Zc(Ae)+"skewX("+oe+")")}function Jh(W,oe,Ae,Oe){if(W[0]!==oe[0]||W[1]!==oe[1]){var Be=Ae.push(Zc(Ae)+"scale(",null,",",null,")");Oe.push({i:Be-4,x:$s(W[0],oe[0])},{i:Be-2,x:$s(W[1],oe[1])})}else(oe[0]!==1||oe[1]!==1)&&Ae.push(Zc(Ae)+"scale("+oe+")")}function Cf(W,oe){var Ae=[],Oe=[];return W=e.transform(W),oe=e.transform(oe),cs(W.translate,oe.translate,Ae,Oe),Ch(W.rotate,oe.rotate,Ae,Oe),Bd(W.skew,oe.skew,Ae,Oe),Jh(W.scale,oe.scale,Ae,Oe),W=oe=null,function(Be){for(var Ve=-1,bt=Oe.length,et;++Ve0?Ve=Qr:(Ae.c=null,Ae.t=NaN,Ae=null,oe.end({type:"end",alpha:Ve=0})):Qr>0&&(oe.start({type:"start",alpha:Ve=Qr}),Ae=zo(W.tick)),W):Ve},W.start=function(){var Qr,un=li.length,dn=fi.length,Sn=Oe[0],qn=Oe[1],va,ga;for(Qr=0;Qr=0;)Ve.push(lr=or[zt]),lr.parent=et,lr.depth=et.depth+1;Ae&&(et.value=0),et.children=or}else Ae&&(et.value=+Ae.call(Oe,et,et.depth)||0),delete et.children;return vc(Be,function(zr){var Rr,li;W&&(Rr=zr.children)&&Rr.sort(W),Ae&&(li=zr.parent)&&(li.value+=zr.value)}),bt}return Oe.sort=function(Be){return arguments.length?(W=Be,Oe):W},Oe.children=function(Be){return arguments.length?(oe=Be,Oe):oe},Oe.value=function(Be){return arguments.length?(Ae=Be,Oe):Ae},Oe.revalue=function(Be){return Ae&&(Pc(Be,function(Ve){Ve.children&&(Ve.value=0)}),vc(Be,function(Ve){var bt;Ve.children||(Ve.value=+Ae.call(Oe,Ve,Ve.depth)||0),(bt=Ve.parent)&&(bt.value+=Ve.value)})),Be},Oe};function Gu(W,oe){return e.rebind(W,oe,"sort","children","value"),W.nodes=W,W.links=Iu,W}function Pc(W,oe){for(var Ae=[W];(W=Ae.pop())!=null;)if(oe(W),(Be=W.children)&&(Oe=Be.length))for(var Oe,Be;--Oe>=0;)Ae.push(Be[Oe])}function vc(W,oe){for(var Ae=[W],Oe=[];(W=Ae.pop())!=null;)if(Oe.push(W),(bt=W.children)&&(Ve=bt.length))for(var Be=-1,Ve,bt;++BeBe&&(Be=et),Oe.push(et)}for(bt=0;btOe&&(Ae=oe,Oe=Be);return Ae}function Ps(W){return W.reduce(Pf,0)}function Pf(W,oe){return W+oe[1]}e.layout.histogram=function(){var W=!0,oe=Number,Ae=Vf,Oe=Ic;function Be(Ve,Rr){for(var et=[],zt=Ve.map(oe,this),or=Ae.call(this,zt,Rr),lr=Oe.call(this,or,zt,Rr),zr,Rr=-1,li=zt.length,fi=lr.length-1,Or=W?1:1/li,$r;++Rr0)for(Rr=-1;++Rr=or[0]&&$r<=or[1]&&(zr=et[e.bisect(lr,$r,1,fi)-1],zr.y+=Or,zr.push(Ve[Rr]));return et}return Be.value=function(Ve){return arguments.length?(oe=Ve,Be):oe},Be.range=function(Ve){return arguments.length?(Ae=Xr(Ve),Be):Ae},Be.bins=function(Ve){return arguments.length?(Oe=typeof Ve=="number"?function(bt){return ju(bt,Ve)}:Xr(Ve),Be):Oe},Be.frequency=function(Ve){return arguments.length?(W=!!Ve,Be):W},Be};function Ic(W,oe){return ju(W,Math.ceil(Math.log(oe.length)/Math.LN2+1))}function ju(W,oe){for(var Ae=-1,Oe=+W[0],Be=(W[1]-Oe)/oe,Ve=[];++Ae<=oe;)Ve[Ae]=Be*Ae+Oe;return Ve}function Vf(W){return[e.min(W),e.max(W)]}e.layout.pack=function(){var W=e.layout.hierarchy().sort(pc),oe=0,Ae=[1,1],Oe;function Be(Ve,bt){var et=W.call(this,Ve,bt),zt=et[0],or=Ae[0],lr=Ae[1],zr=Oe==null?Math.sqrt:typeof Oe=="function"?Oe:function(){return Oe};if(zt.x=zt.y=0,vc(zt,function(li){li.r=+zr(li.value)}),vc(zt,Ih),oe){var Rr=oe*(Oe?1:Math.max(2*zt.r/or,2*zt.r/lr))/2;vc(zt,function(li){li.r+=Rr}),vc(zt,Ih),vc(zt,function(li){li.r-=Rr})}return gc(zt,or/2,lr/2,Oe?1:1/Math.max(2*zt.r/or,2*zt.r/lr)),et}return Be.size=function(Ve){return arguments.length?(Ae=Ve,Be):Ae},Be.radius=function(Ve){return arguments.length?(Oe=Ve==null||typeof Ve=="function"?Ve:+Ve,Be):Oe},Be.padding=function(Ve){return arguments.length?(oe=+Ve,Be):oe},Gu(Be,W)};function pc(W,oe){return W.value-oe.value}function pf(W,oe){var Ae=W._pack_next;W._pack_next=oe,oe._pack_prev=W,oe._pack_next=Ae,Ae._pack_prev=oe}function Ph(W,oe){W._pack_next=oe,oe._pack_prev=W}function Dl(W,oe){var Ae=oe.x-W.x,Oe=oe.y-W.y,Be=W.r+oe.r;return .999*Be*Be>Ae*Ae+Oe*Oe}function Ih(W){if(!(oe=W.children)||!(Rr=oe.length))return;var oe,Ae=1/0,Oe=-1/0,Be=1/0,Ve=-1/0,bt,et,zt,or,lr,zr,Rr;function li(Qr){Ae=Math.min(Qr.x-Qr.r,Ae),Oe=Math.max(Qr.x+Qr.r,Oe),Be=Math.min(Qr.y-Qr.r,Be),Ve=Math.max(Qr.y+Qr.r,Ve)}if(oe.forEach(Wu),bt=oe[0],bt.x=-bt.r,bt.y=0,li(bt),Rr>1&&(et=oe[1],et.x=et.r,et.y=0,li(et),Rr>2))for(zt=oe[2],hl(bt,et,zt),li(zt),pf(bt,zt),bt._pack_prev=zt,pf(zt,et),et=bt._pack_next,or=3;or$r.x&&($r=un),un.depth>oi.depth&&(oi=un)});var pi=oe(Or,$r)/2-Or.x,hi=Ae[0]/($r.x+oe($r,Or)/2+pi),Qr=Ae[1]/(oi.depth||1);Pc(li,function(un){un.x=(un.x+pi)*hi,un.y=un.depth*Qr})}return Rr}function Ve(lr){for(var zr={A:null,children:[lr]},Rr=[zr],li;(li=Rr.pop())!=null;)for(var fi=li.children,Or,$r=0,oi=fi.length;$r0&&(nc(pt(Or,lr,Rr),lr,un),oi+=un,pi+=un),hi+=Or.m,oi+=li.m,Qr+=$r.m,pi+=fi.m;Or&&!Yc(fi)&&(fi.t=Or,fi.m+=hi-pi),li&&!mc($r)&&($r.t=li,$r.m+=oi-Qr,Rr=lr)}return Rr}function or(lr){lr.x*=Ae[0],lr.y=lr.depth*Ae[1]}return Be.separation=function(lr){return arguments.length?(oe=lr,Be):oe},Be.size=function(lr){return arguments.length?(Oe=(Ae=lr)==null?or:null,Be):Oe?null:Ae},Be.nodeSize=function(lr){return arguments.length?(Oe=(Ae=lr)==null?null:or,Be):Oe?Ae:null},Gu(Be,W)};function iu(W,oe){return W.parent==oe.parent?1:2}function mc(W){var oe=W.children;return oe.length?oe[0]:W.t}function Yc(W){var oe=W.children,Ae;return(Ae=oe.length)?oe[Ae-1]:W.t}function nc(W,oe,Ae){var Oe=Ae/(oe.i-W.i);oe.c-=Oe,oe.s+=Ae,W.c+=Oe,oe.z+=Ae,oe.m+=Ae}function gf(W){for(var oe=0,Ae=0,Oe=W.children,Be=Oe.length,Ve;--Be>=0;)Ve=Oe[Be],Ve.z+=oe,Ve.m+=oe,oe+=Ve.s+(Ae+=Ve.c)}function pt(W,oe,Ae){return W.a.parent===oe.parent?W.a:Ae}e.layout.cluster=function(){var W=e.layout.hierarchy().sort(null).value(null),oe=iu,Ae=[1,1],Oe=!1;function Be(Ve,bt){var et=W.call(this,Ve,bt),zt=et[0],or,lr=0;vc(zt,function(Or){var $r=Or.children;$r&&$r.length?(Or.x=br($r),Or.y=Nt($r)):(Or.x=or?lr+=oe(Or,or):0,Or.y=0,or=Or)});var zr=vr(zt),Rr=Vr(zt),li=zr.x-oe(zr,Rr)/2,fi=Rr.x+oe(Rr,zr)/2;return vc(zt,Oe?function(Or){Or.x=(Or.x-zt.x)*Ae[0],Or.y=(zt.y-Or.y)*Ae[1]}:function(Or){Or.x=(Or.x-li)/(fi-li)*Ae[0],Or.y=(1-(zt.y?Or.y/zt.y:1))*Ae[1]}),et}return Be.separation=function(Ve){return arguments.length?(oe=Ve,Be):oe},Be.size=function(Ve){return arguments.length?(Oe=(Ae=Ve)==null,Be):Oe?null:Ae},Be.nodeSize=function(Ve){return arguments.length?(Oe=(Ae=Ve)!=null,Be):Oe?Ae:null},Gu(Be,W)};function Nt(W){return 1+e.max(W,function(oe){return oe.y})}function br(W){return W.reduce(function(oe,Ae){return oe+Ae.x},0)/W.length}function vr(W){var oe=W.children;return oe&&oe.length?vr(oe[0]):W}function Vr(W){var oe=W.children,Ae;return oe&&(Ae=oe.length)?Vr(oe[Ae-1]):W}e.layout.treemap=function(){var W=e.layout.hierarchy(),oe=Math.round,Ae=[1,1],Oe=null,Be=di,Ve=!1,bt,et="squarify",zt=.5*(1+Math.sqrt(5));function or(Or,$r){for(var oi=-1,pi=Or.length,hi,Qr;++oi0;)pi.push(Qr=hi[qn-1]),pi.area+=Qr.area,et!=="squarify"||(dn=Rr(pi,Sn))<=un?(hi.pop(),un=dn):(pi.area-=pi.pop().area,li(pi,Sn,oi,!1),Sn=Math.min(oi.dx,oi.dy),pi.length=pi.area=0,un=1/0);pi.length&&(li(pi,Sn,oi,!0),pi.length=pi.area=0),$r.forEach(lr)}}function zr(Or){var $r=Or.children;if($r&&$r.length){var oi=Be(Or),pi=$r.slice(),hi,Qr=[];for(or(pi,oi.dx*oi.dy/Or.value),Qr.area=0;hi=pi.pop();)Qr.push(hi),Qr.area+=hi.area,hi.z!=null&&(li(Qr,hi.z?oi.dx:oi.dy,oi,!pi.length),Qr.length=Qr.area=0);$r.forEach(zr)}}function Rr(Or,$r){for(var oi=Or.area,pi,hi=0,Qr=1/0,un=-1,dn=Or.length;++unhi&&(hi=pi));return oi*=oi,$r*=$r,oi?Math.max($r*hi*zt/oi,oi/($r*Qr*zt)):1/0}function li(Or,$r,oi,pi){var hi=-1,Qr=Or.length,un=oi.x,dn=oi.y,Sn=$r?oe(Or.area/$r):0,qn;if($r==oi.dx){for((pi||Sn>oi.dy)&&(Sn=oi.dy);++hioi.dx)&&(Sn=oi.dx);++hi1);return W+oe*Oe*Math.sqrt(-2*Math.log(Ve)/Ve)}},logNormal:function(){var W=e.random.normal.apply(e,arguments);return function(){return Math.exp(W())}},bates:function(W){var oe=e.random.irwinHall(W);return function(){return oe()/W}},irwinHall:function(W){return function(){for(var oe=0,Ae=0;Ae2?yi:hn,or=Oe?Lu:pd;return Be=zt(W,oe,or,Ae),Ve=zt(oe,W,or,Ml),et}function et(zt){return Be(zt)}return et.invert=function(zt){return Ve(zt)},et.domain=function(zt){return arguments.length?(W=zt.map(Number),bt()):W},et.range=function(zt){return arguments.length?(oe=zt,bt()):oe},et.rangeRound=function(zt){return et.range(zt).interpolate(rc)},et.clamp=function(zt){return arguments.length?(Oe=zt,bt()):Oe},et.interpolate=function(zt){return arguments.length?(Ae=zt,bt()):Ae},et.ticks=function(zt){return za(W,zt)},et.tickFormat=function(zt,or){return d3_scale_linearTickFormat(W,zt,or)},et.nice=function(zt){return wa(W,zt),bt()},et.copy=function(){return Ln(W,oe,Ae,Oe)},bt()}function Aa(W,oe){return e.rebind(W,oe,"range","rangeRound","interpolate","clamp")}function wa(W,oe){return Mi(W,Oi(Ma(W,oe)[2])),Mi(W,Oi(Ma(W,oe)[2])),W}function Ma(W,oe){oe==null&&(oe=10);var Ae=qi(W),Oe=Ae[1]-Ae[0],Be=Math.pow(10,Math.floor(Math.log(Oe/oe)/Math.LN10)),Ve=oe/Oe*Be;return Ve<=.15?Be*=10:Ve<=.35?Be*=5:Ve<=.75&&(Be*=2),Ae[0]=Math.ceil(Ae[0]/Be)*Be,Ae[1]=Math.floor(Ae[1]/Be)*Be+Be*.5,Ae[2]=Be,Ae}function za(W,oe){return e.range.apply(e,Ma(W,oe))}var kn={s:1,g:1,p:1,r:1,e:1};function sn(W){return-Math.floor(Math.log(W)/Math.LN10+.01)}function Ba(W,oe){var Ae=sn(oe[2]);return W in kn?Math.abs(Ae-sn(Math.max(p(oe[0]),p(oe[1]))))+ +(W!=="e"):Ae-(W==="%")*2}e.scale.log=function(){return ho(e.scale.linear().domain([0,1]),10,!0,[1,10])};function ho(W,oe,Ae,Oe){function Be(et){return(Ae?Math.log(et<0?0:et):-Math.log(et>0?0:-et))/Math.log(oe)}function Ve(et){return Ae?Math.pow(oe,et):-Math.pow(oe,-et)}function bt(et){return W(Be(et))}return bt.invert=function(et){return Ve(W.invert(et))},bt.domain=function(et){return arguments.length?(Ae=et[0]>=0,W.domain((Oe=et.map(Number)).map(Be)),bt):Oe},bt.base=function(et){return arguments.length?(oe=+et,W.domain(Oe.map(Be)),bt):oe},bt.nice=function(){var et=Mi(Oe.map(Be),Ae?Math:jo);return W.domain(et),Oe=et.map(Ve),bt},bt.ticks=function(){var et=qi(Oe),zt=[],or=et[0],lr=et[1],zr=Math.floor(Be(or)),Rr=Math.ceil(Be(lr)),li=oe%1?2:oe;if(isFinite(Rr-zr)){if(Ae){for(;zr0;fi--)zt.push(Ve(zr)*fi);for(zr=0;zt[zr]lr;Rr--);zt=zt.slice(zr,Rr)}return zt},bt.copy=function(){return ho(W.copy(),oe,Ae,Oe)},Aa(bt,W)}var jo={floor:function(W){return-Math.ceil(-W)},ceil:function(W){return-Math.floor(-W)}};e.scale.pow=function(){return bs(e.scale.linear(),1,[0,1])};function bs(W,oe,Ae){var Oe=Ko(oe),Be=Ko(1/oe);function Ve(bt){return W(Oe(bt))}return Ve.invert=function(bt){return Be(W.invert(bt))},Ve.domain=function(bt){return arguments.length?(W.domain((Ae=bt.map(Number)).map(Oe)),Ve):Ae},Ve.ticks=function(bt){return za(Ae,bt)},Ve.tickFormat=function(bt,et){return d3_scale_linearTickFormat(Ae,bt,et)},Ve.nice=function(bt){return Ve.domain(wa(Ae,bt))},Ve.exponent=function(bt){return arguments.length?(Oe=Ko(oe=bt),Be=Ko(1/oe),W.domain(Ae.map(Oe)),Ve):oe},Ve.copy=function(){return bs(W.copy(),oe,Ae)},Aa(Ve,W)}function Ko(W){return function(oe){return oe<0?-Math.pow(-oe,W):Math.pow(oe,W)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ps([],{t:"range",a:[[]]})};function ps(W,oe){var Ae,Oe,Be;function Ve(et){return Oe[((Ae.get(et)||(oe.t==="range"?Ae.set(et,W.push(et)):NaN))-1)%Oe.length]}function bt(et,zt){return e.range(W.length).map(function(or){return et+zt*or})}return Ve.domain=function(et){if(!arguments.length)return W;W=[],Ae=new A;for(var zt=-1,or=et.length,lr;++zt0?Ae[Ve-1]:W[0],VeRr?0:1;if(lr=Ie)return zt(lr,fi)+(or?zt(or,1-fi):"")+"Z";var Or,$r,oi,pi,hi=0,Qr=0,un,dn,Sn,qn,va,ga,io,ba,eo=[];if((pi=(+bt.apply(this,arguments)||0)/2)&&(oi=Oe===Ru?Math.sqrt(or*or+lr*lr):+Oe.apply(this,arguments),fi||(Qr*=-1),lr&&(Qr=Jr(oi/lr*Math.sin(pi))),or&&(hi=Jr(oi/or*Math.sin(pi)))),lr){un=lr*Math.cos(zr+Qr),dn=lr*Math.sin(zr+Qr),Sn=lr*Math.cos(Rr-Qr),qn=lr*Math.sin(Rr-Qr);var Ts=Math.abs(Rr-zr-2*Qr)<=Je?0:1;if(Qr&&Dc(un,dn,Sn,qn)===fi^Ts){var gs=(zr+Rr)/2;un=lr*Math.cos(gs),dn=lr*Math.sin(gs),Sn=qn=null}}else un=dn=0;if(or){va=or*Math.cos(Rr-hi),ga=or*Math.sin(Rr-hi),io=or*Math.cos(zr+hi),ba=or*Math.sin(zr+hi);var Bs=Math.abs(zr-Rr+2*hi)<=Je?0:1;if(hi&&Dc(va,ga,io,ba)===1-fi^Bs){var pn=(zr+Rr)/2;va=or*Math.cos(pn),ga=or*Math.sin(pn),io=ba=null}}else va=ga=0;if(li>it&&(Or=Math.min(Math.abs(lr-or)/2,+Ae.apply(this,arguments)))>.001){$r=or0?0:1}function Ia(W,oe,Ae,Oe,Be){var Ve=W[0]-oe[0],bt=W[1]-oe[1],et=(Be?Oe:-Oe)/Math.sqrt(Ve*Ve+bt*bt),zt=et*bt,or=-et*Ve,lr=W[0]+zt,zr=W[1]+or,Rr=oe[0]+zt,li=oe[1]+or,fi=(lr+Rr)/2,Or=(zr+li)/2,$r=Rr-lr,oi=li-zr,pi=$r*$r+oi*oi,hi=Ae-Oe,Qr=lr*li-Rr*zr,un=(oi<0?-1:1)*Math.sqrt(Math.max(0,hi*hi*pi-Qr*Qr)),dn=(Qr*oi-$r*un)/pi,Sn=(-Qr*$r-oi*un)/pi,qn=(Qr*oi+$r*un)/pi,va=(-Qr*$r+oi*un)/pi,ga=dn-fi,io=Sn-Or,ba=qn-fi,eo=va-Or;return ga*ga+io*io>ba*ba+eo*eo&&(dn=qn,Sn=va),[[dn-zt,Sn-or],[dn*Ae/hi,Sn*Ae/hi]]}function Ja(){return!0}function Jc(W){var oe=Ds,Ae=Es,Oe=Ja,Be=_c,Ve=Be.key,bt=.7;function et(zt){var or=[],lr=[],zr=-1,Rr=zt.length,li,fi=Xr(oe),Or=Xr(Ae);function $r(){or.push("M",Be(W(lr),bt))}for(;++zr1?W.join("L"):W+"Z"}function ue(W){return W.join("L")+"Z"}function w(W){for(var oe=0,Ae=W.length,Oe=W[0],Be=[Oe[0],",",Oe[1]];++oe1&&Be.push("H",Oe[0]),Be.join("")}function B(W){for(var oe=0,Ae=W.length,Oe=W[0],Be=[Oe[0],",",Oe[1]];++oe1){et=oe[1],Ve=W[zt],zt++,Oe+="C"+(Be[0]+bt[0])+","+(Be[1]+bt[1])+","+(Ve[0]-et[0])+","+(Ve[1]-et[1])+","+Ve[0]+","+Ve[1];for(var or=2;or9&&(Ve=Ae*3/Math.sqrt(Ve),bt[et]=Ve*Oe,bt[et+1]=Ve*Be));for(et=-1;++et<=zt;)Ve=(W[Math.min(zt,et+1)][0]-W[Math.max(0,et-1)][0])/(6*(1+bt[et]*bt[et])),oe.push([Ve||0,bt[et]*Ve||0]);return oe}function Et(W){return W.length<3?_c(W):W[0]+Ue(W,$e(W))}e.svg.line.radial=function(){var W=Jc(Dt);return W.radius=W.x,delete W.x,W.angle=W.y,delete W.y,W};function Dt(W){for(var oe,Ae=-1,Oe=W.length,Be,Ve;++AeJe)+",1 "+zr}function or(lr,zr,Rr,li){return"Q 0,0 "+li}return Ve.radius=function(lr){return arguments.length?(Ae=Xr(lr),Ve):Ae},Ve.source=function(lr){return arguments.length?(W=Xr(lr),Ve):W},Ve.target=function(lr){return arguments.length?(oe=Xr(lr),Ve):oe},Ve.startAngle=function(lr){return arguments.length?(Oe=Xr(lr),Ve):Oe},Ve.endAngle=function(lr){return arguments.length?(Be=Xr(lr),Ve):Be},Ve};function Dr(W){return W.radius}e.svg.diagonal=function(){var W=tr,oe=yr,Ae=Fr;function Oe(Be,Ve){var bt=W.call(this,Be,Ve),et=oe.call(this,Be,Ve),zt=(bt.y+et.y)/2,or=[bt,{x:bt.x,y:zt},{x:et.x,y:zt},et];return or=or.map(Ae),"M"+or[0]+"C"+or[1]+" "+or[2]+" "+or[3]}return Oe.source=function(Be){return arguments.length?(W=Xr(Be),Oe):W},Oe.target=function(Be){return arguments.length?(oe=Xr(Be),Oe):oe},Oe.projection=function(Be){return arguments.length?(Ae=Be,Oe):Ae},Oe};function Fr(W){return[W.x,W.y]}e.svg.diagonal.radial=function(){var W=e.svg.diagonal(),oe=Fr,Ae=W.projection;return W.projection=function(Oe){return arguments.length?Ae(Yr(oe=Oe)):oe},W};function Yr(W){return function(){var oe=W.apply(this,arguments),Ae=oe[0],Oe=oe[1]-le;return[Ae*Math.cos(Oe),Ae*Math.sin(Oe)]}}e.svg.symbol=function(){var W=Ii,oe=vi;function Ae(Oe,Be){return(en.get(W.call(this,Oe,Be))||Pi)(oe.call(this,Oe,Be))}return Ae.type=function(Oe){return arguments.length?(W=Xr(Oe),Ae):W},Ae.size=function(Oe){return arguments.length?(oe=Xr(Oe),Ae):oe},Ae};function vi(){return 64}function Ii(){return"circle"}function Pi(W){var oe=Math.sqrt(W/Je);return"M0,"+oe+"A"+oe+","+oe+" 0 1,1 0,"+-oe+"A"+oe+","+oe+" 0 1,1 0,"+oe+"Z"}var en=e.map({circle:Pi,cross:function(W){var oe=Math.sqrt(W/5)/2;return"M"+-3*oe+","+-oe+"H"+-oe+"V"+-3*oe+"H"+oe+"V"+-oe+"H"+3*oe+"V"+oe+"H"+oe+"V"+3*oe+"H"+-oe+"V"+oe+"H"+-3*oe+"Z"},diamond:function(W){var oe=Math.sqrt(W/(2*da)),Ae=oe*da;return"M0,"+-oe+"L"+Ae+",0 0,"+oe+" "+-Ae+",0Z"},square:function(W){var oe=Math.sqrt(W)/2;return"M"+-oe+","+-oe+"L"+oe+","+-oe+" "+oe+","+oe+" "+-oe+","+oe+"Z"},"triangle-down":function(W){var oe=Math.sqrt(W/Mn),Ae=oe*Mn/2;return"M0,"+Ae+"L"+oe+","+-Ae+" "+-oe+","+-Ae+"Z"},"triangle-up":function(W){var oe=Math.sqrt(W/Mn),Ae=oe*Mn/2;return"M0,"+-Ae+"L"+oe+","+Ae+" "+-oe+","+Ae+"Z"}});e.svg.symbolTypes=en.keys();var Mn=Math.sqrt(3),da=Math.tan(30*be);Me.transition=function(W){for(var oe=Lo||++oo,Ae=co(W),Oe=[],Be,Ve,bt=Rs||{time:Date.now(),ease:uu,delay:0,duration:250},et=-1,zt=this.length;++et0;)zr[--pi].call(W,oi);if($r>=1)return bt.event&&bt.event.end.call(W,W.__data__,oe),--Ve.count?delete Ve[Oe]:delete W[Ae],1}bt||(et=Be.time,zt=zo(Rr,0,et),bt=Ve[Oe]={tween:new A,time:et,timer:zt,delay:Be.delay,duration:Be.duration,ease:Be.ease,index:oe},Be=null,++Ve.count)}e.svg.axis=function(){var W=e.scale.linear(),oe=Gl,Ae=6,Oe=6,Be=3,Ve=[10],bt=null,et;function zt(or){or.each(function(){var lr=e.select(this),zr=this.__chart__||W,Rr=this.__chart__=W.copy(),li=bt==null?Rr.ticks?Rr.ticks.apply(Rr,Ve):Rr.domain():bt,fi=et==null?Rr.tickFormat?Rr.tickFormat.apply(Rr,Ve):H:et,Or=lr.selectAll(".tick").data(li,Rr),$r=Or.enter().insert("g",".domain").attr("class","tick").style("opacity",it),oi=e.transition(Or.exit()).style("opacity",it).remove(),pi=e.transition(Or.order()).style("opacity",1),hi=Math.max(Ae,0)+Be,Qr,un=Ji(Rr),dn=lr.selectAll(".domain").data([0]),Sn=(dn.enter().append("path").attr("class","domain"),e.transition(dn));$r.append("line"),$r.append("text");var qn=$r.select("line"),va=pi.select("line"),ga=Or.select("text").text(fi),io=$r.select("text"),ba=pi.select("text"),eo=oe==="top"||oe==="left"?-1:1,Ts,gs,Bs,pn;if(oe==="bottom"||oe==="top"?(Qr=cu,Ts="x",Bs="y",gs="x2",pn="y2",ga.attr("dy",eo<0?"0em":".71em").style("text-anchor","middle"),Sn.attr("d","M"+un[0]+","+eo*Oe+"V0H"+un[1]+"V"+eo*Oe)):(Qr=el,Ts="y",Bs="x",gs="y2",pn="x2",ga.attr("dy",".32em").style("text-anchor",eo<0?"end":"start"),Sn.attr("d","M"+eo*Oe+","+un[0]+"H0V"+un[1]+"H"+eo*Oe)),qn.attr(pn,eo*Ae),io.attr(Bs,eo*hi),va.attr(gs,0).attr(pn,eo*Ae),ba.attr(Ts,0).attr(Bs,eo*hi),Rr.rangeBand){var Ra=Rr,Eo=Ra.rangeBand()/2;zr=Rr=function(Ro){return Ra(Ro)+Eo}}else zr.rangeBand?zr=Rr:oi.call(Qr,Rr,zr);$r.call(Qr,zr,Rr),pi.call(Qr,Rr,Rr)})}return zt.scale=function(or){return arguments.length?(W=or,zt):W},zt.orient=function(or){return arguments.length?(oe=or in Zu?or+"":Gl,zt):oe},zt.ticks=function(){return arguments.length?(Ve=r(arguments),zt):Ve},zt.tickValues=function(or){return arguments.length?(bt=or,zt):bt},zt.tickFormat=function(or){return arguments.length?(et=or,zt):et},zt.tickSize=function(or){var lr=arguments.length;return lr?(Ae=+or,Oe=+arguments[lr-1],zt):Ae},zt.innerTickSize=function(or){return arguments.length?(Ae=+or,zt):Ae},zt.outerTickSize=function(or){return arguments.length?(Oe=+or,zt):Oe},zt.tickPadding=function(or){return arguments.length?(Be=+or,zt):Be},zt.tickSubdivide=function(){return arguments.length&&zt},zt};var Gl="bottom",Zu={top:1,right:1,bottom:1,left:1};function cu(W,oe,Ae){W.attr("transform",function(Oe){var Be=oe(Oe);return"translate("+(isFinite(Be)?Be:Ae(Oe))+",0)"})}function el(W,oe,Ae){W.attr("transform",function(Oe){var Be=oe(Oe);return"translate(0,"+(isFinite(Be)?Be:Ae(Oe))+")"})}e.svg.brush=function(){var W=ke(lr,"brushstart","brush","brushend"),oe=null,Ae=null,Oe=[0,0],Be=[0,0],Ve,bt,et=!0,zt=!0,or=zc[0];function lr(Or){Or.each(function(){var $r=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fi).on("touchstart.brush",fi),oi=$r.selectAll(".background").data([0]);oi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),$r.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pi=$r.selectAll(".resize").data(or,H);pi.exit().remove(),pi.enter().append("g").attr("class",function(dn){return"resize "+dn}).style("cursor",function(dn){return au[dn]}).append("rect").attr("x",function(dn){return/[ew]$/.test(dn)?-3:null}).attr("y",function(dn){return/^[ns]/.test(dn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pi.style("display",lr.empty()?"none":null);var hi=e.transition($r),Qr=e.transition(oi),un;oe&&(un=Ji(oe),Qr.attr("x",un[0]).attr("width",un[1]-un[0]),Rr(hi)),Ae&&(un=Ji(Ae),Qr.attr("y",un[0]).attr("height",un[1]-un[0]),li(hi)),zr(hi)})}lr.event=function(Or){Or.each(function(){var $r=W.of(this,arguments),oi={x:Oe,y:Be,i:Ve,j:bt},pi=this.__chart__||oi;this.__chart__=oi,Lo?e.select(this).transition().each("start.brush",function(){Ve=pi.i,bt=pi.j,Oe=pi.x,Be=pi.y,$r({type:"brushstart"})}).tween("brush:brush",function(){var hi=ec(Oe,oi.x),Qr=ec(Be,oi.y);return Ve=bt=null,function(un){Oe=oi.x=hi(un),Be=oi.y=Qr(un),$r({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ve=oi.i,bt=oi.j,$r({type:"brush",mode:"resize"}),$r({type:"brushend"})}):($r({type:"brushstart"}),$r({type:"brush",mode:"resize"}),$r({type:"brushend"}))})};function zr(Or){Or.selectAll(".resize").attr("transform",function($r){return"translate("+Oe[+/e$/.test($r)]+","+Be[+/^s/.test($r)]+")"})}function Rr(Or){Or.select(".extent").attr("x",Oe[0]),Or.selectAll(".extent,.n>rect,.s>rect").attr("width",Oe[1]-Oe[0])}function li(Or){Or.select(".extent").attr("y",Be[0]),Or.selectAll(".extent,.e>rect,.w>rect").attr("height",Be[1]-Be[0])}function fi(){var Or=this,$r=e.select(e.event.target),oi=W.of(Or,arguments),pi=e.select(Or),hi=$r.datum(),Qr=!/^(n|s)$/.test(hi)&&oe,un=!/^(e|w)$/.test(hi)&&Ae,dn=$r.classed("extent"),Sn=Br(Or),qn,va=e.mouse(Or),ga,io=e.select(a(Or)).on("keydown.brush",Ts).on("keyup.brush",gs);if(e.event.changedTouches?io.on("touchmove.brush",Bs).on("touchend.brush",Ra):io.on("mousemove.brush",Bs).on("mouseup.brush",Ra),pi.interrupt().selectAll("*").interrupt(),dn)va[0]=Oe[0]-va[0],va[1]=Be[0]-va[1];else if(hi){var ba=+/w$/.test(hi),eo=+/^n/.test(hi);ga=[Oe[1-ba]-va[0],Be[1-eo]-va[1]],va[0]=Oe[ba],va[1]=Be[eo]}else e.event.altKey&&(qn=va.slice());pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",$r.style("cursor")),oi({type:"brushstart"}),Bs();function Ts(){e.event.keyCode==32&&(dn||(qn=null,va[0]-=Oe[1],va[1]-=Be[1],dn=2),we())}function gs(){e.event.keyCode==32&&dn==2&&(va[0]+=Oe[1],va[1]+=Be[1],dn=0,we())}function Bs(){var Eo=e.mouse(Or),Ro=!1;ga&&(Eo[0]+=ga[0],Eo[1]+=ga[1]),dn||(e.event.altKey?(qn||(qn=[(Oe[0]+Oe[1])/2,(Be[0]+Be[1])/2]),va[0]=Oe[+(Eo[0]{(function(e,t){typeof i6=="object"&&typeof gee!="undefined"?t(i6):(e=e||self,t(e.d3=e.d3||{}))})(i6,function(e){"use strict";var t=new Date,r=new Date;function n(Ge,yt,_t,Ct){function St(kt){return Ge(kt=arguments.length===0?new Date:new Date(+kt)),kt}return St.floor=function(kt){return Ge(kt=new Date(+kt)),kt},St.ceil=function(kt){return Ge(kt=new Date(kt-1)),yt(kt,1),Ge(kt),kt},St.round=function(kt){var ft=St(kt),Gt=St.ceil(kt);return kt-ft0))return $t;do $t.push(hr=new Date(+kt)),yt(kt,Gt),Ge(kt);while(hr=ft)for(;Ge(ft),!kt(ft);)ft.setTime(ft-1)},function(ft,Gt){if(ft>=ft)if(Gt<0)for(;++Gt<=0;)for(;yt(ft,-1),!kt(ft););else for(;--Gt>=0;)for(;yt(ft,1),!kt(ft););})},_t&&(St.count=function(kt,ft){return t.setTime(+kt),r.setTime(+ft),Ge(t),Ge(r),Math.floor(_t(t,r))},St.every=function(kt){return kt=Math.floor(kt),!isFinite(kt)||!(kt>0)?null:kt>1?St.filter(Ct?function(ft){return Ct(ft)%kt===0}:function(ft){return St.count(0,ft)%kt===0}):St}),St}var i=n(function(){},function(Ge,yt){Ge.setTime(+Ge+yt)},function(Ge,yt){return yt-Ge});i.every=function(Ge){return Ge=Math.floor(Ge),!isFinite(Ge)||!(Ge>0)?null:Ge>1?n(function(yt){yt.setTime(Math.floor(yt/Ge)*Ge)},function(yt,_t){yt.setTime(+yt+_t*Ge)},function(yt,_t){return(_t-yt)/Ge}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Ge){Ge.setTime(Ge-Ge.getMilliseconds())},function(Ge,yt){Ge.setTime(+Ge+yt*o)},function(Ge,yt){return(yt-Ge)/o},function(Ge){return Ge.getUTCSeconds()}),h=f.range,d=n(function(Ge){Ge.setTime(Ge-Ge.getMilliseconds()-Ge.getSeconds()*o)},function(Ge,yt){Ge.setTime(+Ge+yt*s)},function(Ge,yt){return(yt-Ge)/s},function(Ge){return Ge.getMinutes()}),v=d.range,x=n(function(Ge){Ge.setTime(Ge-Ge.getMilliseconds()-Ge.getSeconds()*o-Ge.getMinutes()*s)},function(Ge,yt){Ge.setTime(+Ge+yt*l)},function(Ge,yt){return(yt-Ge)/l},function(Ge){return Ge.getHours()}),b=x.range,p=n(function(Ge){Ge.setHours(0,0,0,0)},function(Ge,yt){Ge.setDate(Ge.getDate()+yt)},function(Ge,yt){return(yt-Ge-(yt.getTimezoneOffset()-Ge.getTimezoneOffset())*s)/u},function(Ge){return Ge.getDate()-1}),E=p.range;function k(Ge){return n(function(yt){yt.setDate(yt.getDate()-(yt.getDay()+7-Ge)%7),yt.setHours(0,0,0,0)},function(yt,_t){yt.setDate(yt.getDate()+_t*7)},function(yt,_t){return(_t-yt-(_t.getTimezoneOffset()-yt.getTimezoneOffset())*s)/c})}var A=k(0),L=k(1),_=k(2),C=k(3),S=k(4),g=k(5),P=k(6),T=A.range,F=L.range,q=_.range,V=C.range,H=S.range,X=g.range,G=P.range,N=n(function(Ge){Ge.setDate(1),Ge.setHours(0,0,0,0)},function(Ge,yt){Ge.setMonth(Ge.getMonth()+yt)},function(Ge,yt){return yt.getMonth()-Ge.getMonth()+(yt.getFullYear()-Ge.getFullYear())*12},function(Ge){return Ge.getMonth()}),Z=N.range,ie=n(function(Ge){Ge.setMonth(0,1),Ge.setHours(0,0,0,0)},function(Ge,yt){Ge.setFullYear(Ge.getFullYear()+yt)},function(Ge,yt){return yt.getFullYear()-Ge.getFullYear()},function(Ge){return Ge.getFullYear()});ie.every=function(Ge){return!isFinite(Ge=Math.floor(Ge))||!(Ge>0)?null:n(function(yt){yt.setFullYear(Math.floor(yt.getFullYear()/Ge)*Ge),yt.setMonth(0,1),yt.setHours(0,0,0,0)},function(yt,_t){yt.setFullYear(yt.getFullYear()+_t*Ge)})};var ae=ie.range,we=n(function(Ge){Ge.setUTCSeconds(0,0)},function(Ge,yt){Ge.setTime(+Ge+yt*s)},function(Ge,yt){return(yt-Ge)/s},function(Ge){return Ge.getUTCMinutes()}),Ee=we.range,ke=n(function(Ge){Ge.setUTCMinutes(0,0,0)},function(Ge,yt){Ge.setTime(+Ge+yt*l)},function(Ge,yt){return(yt-Ge)/l},function(Ge){return Ge.getUTCHours()}),ye=ke.range,K=n(function(Ge){Ge.setUTCHours(0,0,0,0)},function(Ge,yt){Ge.setUTCDate(Ge.getUTCDate()+yt)},function(Ge,yt){return(yt-Ge)/u},function(Ge){return Ge.getUTCDate()-1}),ce=K.range;function pe(Ge){return n(function(yt){yt.setUTCDate(yt.getUTCDate()-(yt.getUTCDay()+7-Ge)%7),yt.setUTCHours(0,0,0,0)},function(yt,_t){yt.setUTCDate(yt.getUTCDate()+_t*7)},function(yt,_t){return(_t-yt)/c})}var xe=pe(0),Ce=pe(1),Me=pe(2),Le=pe(3),je=pe(4),Se=pe(5),Xe=pe(6),lt=xe.range,At=Ce.range,Yt=Me.range,nt=Le.range,ot=je.range,Ft=Se.range,Lt=Xe.range,Rt=n(function(Ge){Ge.setUTCDate(1),Ge.setUTCHours(0,0,0,0)},function(Ge,yt){Ge.setUTCMonth(Ge.getUTCMonth()+yt)},function(Ge,yt){return yt.getUTCMonth()-Ge.getUTCMonth()+(yt.getUTCFullYear()-Ge.getUTCFullYear())*12},function(Ge){return Ge.getUTCMonth()}),Xt=Rt.range,xr=n(function(Ge){Ge.setUTCMonth(0,1),Ge.setUTCHours(0,0,0,0)},function(Ge,yt){Ge.setUTCFullYear(Ge.getUTCFullYear()+yt)},function(Ge,yt){return yt.getUTCFullYear()-Ge.getUTCFullYear()},function(Ge){return Ge.getUTCFullYear()});xr.every=function(Ge){return!isFinite(Ge=Math.floor(Ge))||!(Ge>0)?null:n(function(yt){yt.setUTCFullYear(Math.floor(yt.getUTCFullYear()/Ge)*Ge),yt.setUTCMonth(0,1),yt.setUTCHours(0,0,0,0)},function(yt,_t){yt.setUTCFullYear(yt.getUTCFullYear()+_t*Ge)})};var er=xr.range;e.timeDay=p,e.timeDays=E,e.timeFriday=g,e.timeFridays=X,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=F,e.timeMonth=N,e.timeMonths=Z,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=S,e.timeThursdays=H,e.timeTuesday=_,e.timeTuesdays=q,e.timeWednesday=C,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=ie,e.timeYears=ae,e.utcDay=K,e.utcDays=ce,e.utcFriday=Se,e.utcFridays=Ft,e.utcHour=ke,e.utcHours=ye,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=we,e.utcMinutes=Ee,e.utcMonday=Ce,e.utcMondays=At,e.utcMonth=Rt,e.utcMonths=Xt,e.utcSaturday=Xe,e.utcSaturdays=Lt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=xe,e.utcSundays=lt,e.utcThursday=je,e.utcThursdays=ot,e.utcTuesday=Me,e.utcTuesdays=Yt,e.utcWednesday=Le,e.utcWednesdays=nt,e.utcWeek=xe,e.utcWeeks=lt,e.utcYear=xr,e.utcYears=er,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=_e((n6,mee)=>{(function(e,t){typeof n6=="object"&&typeof mee!="undefined"?t(n6,yq()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(n6,function(e,t){"use strict";function r(le){if(0<=le.y&&le.y<100){var be=new Date(-1,le.m,le.d,le.H,le.M,le.S,le.L);return be.setFullYear(le.y),be}return new Date(le.y,le.m,le.d,le.H,le.M,le.S,le.L)}function n(le){if(0<=le.y&&le.y<100){var be=new Date(Date.UTC(-1,le.m,le.d,le.H,le.M,le.S,le.L));return be.setUTCFullYear(le.y),be}return new Date(Date.UTC(le.y,le.m,le.d,le.H,le.M,le.S,le.L))}function i(le,be,Qe){return{y:le,m:be,d:Qe,H:0,M:0,S:0,L:0}}function a(le){var be=le.dateTime,Qe=le.date,xt=le.time,Ot=le.periods,rr=le.days,Jr=le.shortDays,ni=le.months,Gr=le.shortMonths,ri=h(Ot),Ti=d(Ot),an=h(rr),Yi=d(rr),Xi=h(Jr),An=d(Jr),Qi=h(ni),Un=d(ni),Xn=h(Gr),It=d(Gr),ct={a:Gn,A:sa,b:Da,B:Pa,c:null,d:N,e:N,f:Ee,g:Se,G:lt,H:Z,I:ie,j:ae,L:we,m:ke,M:ye,p:Vo,q:aa,Q:Br,s:Ur,S:K,u:ce,U:pe,V:Ce,w:Me,W:Le,x:null,X:null,y:je,Y:Xe,Z:At,"%":Nr},Vt={a:go,A:_s,b:Vs,B:As,c:null,d:Yt,e:Yt,f:Rt,g:Gt,G:hr,H:nt,I:ot,j:Ft,L:Lt,m:Xt,M:xr,p:wt,q:Lr,Q:Br,s:Ur,S:er,u:Ge,U:yt,V:Ct,w:St,W:kt,x:null,X:null,y:ft,Y:$t,Z:_r,"%":Nr},Wt={a:mi,A:Ei,b:ki,B:Ri,c:ji,d:S,e:S,f:V,g:A,G:k,H:P,I:P,j:g,L:q,m:C,M:T,p:Hr,q:_,Q:X,s:G,S:F,u:x,U:b,V:p,w:v,W:E,x:$i,X:Sa,y:A,Y:k,Z:L,"%":H};ct.x=gr(Qe,ct),ct.X=gr(xt,ct),ct.c=gr(be,ct),Vt.x=gr(Qe,Vt),Vt.X=gr(xt,Vt),Vt.c=gr(be,Vt);function gr(Pr,Xr){return function(bi){var ai=[],Wi=-1,ii=0,Ui=Pr.length,Vn,Tn,xa;for(bi instanceof Date||(bi=new Date(+bi));++Wi53)return null;"w"in ai||(ai.w=1),"Z"in ai?(ii=n(i(ai.y,0,1)),Ui=ii.getUTCDay(),ii=Ui>4||Ui===0?t.utcMonday.ceil(ii):t.utcMonday(ii),ii=t.utcDay.offset(ii,(ai.V-1)*7),ai.y=ii.getUTCFullYear(),ai.m=ii.getUTCMonth(),ai.d=ii.getUTCDate()+(ai.w+6)%7):(ii=r(i(ai.y,0,1)),Ui=ii.getDay(),ii=Ui>4||Ui===0?t.timeMonday.ceil(ii):t.timeMonday(ii),ii=t.timeDay.offset(ii,(ai.V-1)*7),ai.y=ii.getFullYear(),ai.m=ii.getMonth(),ai.d=ii.getDate()+(ai.w+6)%7)}else("W"in ai||"U"in ai)&&("w"in ai||(ai.w="u"in ai?ai.u%7:"W"in ai?1:0),Ui="Z"in ai?n(i(ai.y,0,1)).getUTCDay():r(i(ai.y,0,1)).getDay(),ai.m=0,ai.d="W"in ai?(ai.w+6)%7+ai.W*7-(Ui+5)%7:ai.w+ai.U*7-(Ui+6)%7);return"Z"in ai?(ai.H+=ai.Z/100|0,ai.M+=ai.Z%100,n(ai)):r(ai)}}function Zr(Pr,Xr,bi,ai){for(var Wi=0,ii=Xr.length,Ui=bi.length,Vn,Tn;Wi=Ui)return-1;if(Vn=Xr.charCodeAt(Wi++),Vn===37){if(Vn=Xr.charAt(Wi++),Tn=Wt[Vn in o?Xr.charAt(Wi++):Vn],!Tn||(ai=Tn(Pr,bi,ai))<0)return-1}else if(Vn!=bi.charCodeAt(ai++))return-1}return ai}function Hr(Pr,Xr,bi){var ai=ri.exec(Xr.slice(bi));return ai?(Pr.p=Ti[ai[0].toLowerCase()],bi+ai[0].length):-1}function mi(Pr,Xr,bi){var ai=Xi.exec(Xr.slice(bi));return ai?(Pr.w=An[ai[0].toLowerCase()],bi+ai[0].length):-1}function Ei(Pr,Xr,bi){var ai=an.exec(Xr.slice(bi));return ai?(Pr.w=Yi[ai[0].toLowerCase()],bi+ai[0].length):-1}function ki(Pr,Xr,bi){var ai=Xn.exec(Xr.slice(bi));return ai?(Pr.m=It[ai[0].toLowerCase()],bi+ai[0].length):-1}function Ri(Pr,Xr,bi){var ai=Qi.exec(Xr.slice(bi));return ai?(Pr.m=Un[ai[0].toLowerCase()],bi+ai[0].length):-1}function ji(Pr,Xr,bi){return Zr(Pr,be,Xr,bi)}function $i(Pr,Xr,bi){return Zr(Pr,Qe,Xr,bi)}function Sa(Pr,Xr,bi){return Zr(Pr,xt,Xr,bi)}function Gn(Pr){return Jr[Pr.getDay()]}function sa(Pr){return rr[Pr.getDay()]}function Da(Pr){return Gr[Pr.getMonth()]}function Pa(Pr){return ni[Pr.getMonth()]}function Vo(Pr){return Ot[+(Pr.getHours()>=12)]}function aa(Pr){return 1+~~(Pr.getMonth()/3)}function go(Pr){return Jr[Pr.getUTCDay()]}function _s(Pr){return rr[Pr.getUTCDay()]}function Vs(Pr){return Gr[Pr.getUTCMonth()]}function As(Pr){return ni[Pr.getUTCMonth()]}function wt(Pr){return Ot[+(Pr.getUTCHours()>=12)]}function Lr(Pr){return 1+~~(Pr.getUTCMonth()/3)}return{format:function(Pr){var Xr=gr(Pr+="",ct);return Xr.toString=function(){return Pr},Xr},parse:function(Pr){var Xr=qr(Pr+="",!1);return Xr.toString=function(){return Pr},Xr},utcFormat:function(Pr){var Xr=gr(Pr+="",Vt);return Xr.toString=function(){return Pr},Xr},utcParse:function(Pr){var Xr=qr(Pr+="",!0);return Xr.toString=function(){return Pr},Xr}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(le,be,Qe){var xt=le<0?"-":"",Ot=(xt?-le:le)+"",rr=Ot.length;return xt+(rr68?1900:2e3),Qe+xt[0].length):-1}function L(le,be,Qe){var xt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(be.slice(Qe,Qe+6));return xt?(le.Z=xt[1]?0:-(xt[2]+(xt[3]||"00")),Qe+xt[0].length):-1}function _(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+1));return xt?(le.q=xt[0]*3-3,Qe+xt[0].length):-1}function C(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+2));return xt?(le.m=xt[0]-1,Qe+xt[0].length):-1}function S(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+2));return xt?(le.d=+xt[0],Qe+xt[0].length):-1}function g(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+3));return xt?(le.m=0,le.d=+xt[0],Qe+xt[0].length):-1}function P(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+2));return xt?(le.H=+xt[0],Qe+xt[0].length):-1}function T(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+2));return xt?(le.M=+xt[0],Qe+xt[0].length):-1}function F(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+2));return xt?(le.S=+xt[0],Qe+xt[0].length):-1}function q(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+3));return xt?(le.L=+xt[0],Qe+xt[0].length):-1}function V(le,be,Qe){var xt=s.exec(be.slice(Qe,Qe+6));return xt?(le.L=Math.floor(xt[0]/1e3),Qe+xt[0].length):-1}function H(le,be,Qe){var xt=l.exec(be.slice(Qe,Qe+1));return xt?Qe+xt[0].length:-1}function X(le,be,Qe){var xt=s.exec(be.slice(Qe));return xt?(le.Q=+xt[0],Qe+xt[0].length):-1}function G(le,be,Qe){var xt=s.exec(be.slice(Qe));return xt?(le.s=+xt[0],Qe+xt[0].length):-1}function N(le,be){return c(le.getDate(),be,2)}function Z(le,be){return c(le.getHours(),be,2)}function ie(le,be){return c(le.getHours()%12||12,be,2)}function ae(le,be){return c(1+t.timeDay.count(t.timeYear(le),le),be,3)}function we(le,be){return c(le.getMilliseconds(),be,3)}function Ee(le,be){return we(le,be)+"000"}function ke(le,be){return c(le.getMonth()+1,be,2)}function ye(le,be){return c(le.getMinutes(),be,2)}function K(le,be){return c(le.getSeconds(),be,2)}function ce(le){var be=le.getDay();return be===0?7:be}function pe(le,be){return c(t.timeSunday.count(t.timeYear(le)-1,le),be,2)}function xe(le){var be=le.getDay();return be>=4||be===0?t.timeThursday(le):t.timeThursday.ceil(le)}function Ce(le,be){return le=xe(le),c(t.timeThursday.count(t.timeYear(le),le)+(t.timeYear(le).getDay()===4),be,2)}function Me(le){return le.getDay()}function Le(le,be){return c(t.timeMonday.count(t.timeYear(le)-1,le),be,2)}function je(le,be){return c(le.getFullYear()%100,be,2)}function Se(le,be){return le=xe(le),c(le.getFullYear()%100,be,2)}function Xe(le,be){return c(le.getFullYear()%1e4,be,4)}function lt(le,be){var Qe=le.getDay();return le=Qe>=4||Qe===0?t.timeThursday(le):t.timeThursday.ceil(le),c(le.getFullYear()%1e4,be,4)}function At(le){var be=le.getTimezoneOffset();return(be>0?"-":(be*=-1,"+"))+c(be/60|0,"0",2)+c(be%60,"0",2)}function Yt(le,be){return c(le.getUTCDate(),be,2)}function nt(le,be){return c(le.getUTCHours(),be,2)}function ot(le,be){return c(le.getUTCHours()%12||12,be,2)}function Ft(le,be){return c(1+t.utcDay.count(t.utcYear(le),le),be,3)}function Lt(le,be){return c(le.getUTCMilliseconds(),be,3)}function Rt(le,be){return Lt(le,be)+"000"}function Xt(le,be){return c(le.getUTCMonth()+1,be,2)}function xr(le,be){return c(le.getUTCMinutes(),be,2)}function er(le,be){return c(le.getUTCSeconds(),be,2)}function Ge(le){var be=le.getUTCDay();return be===0?7:be}function yt(le,be){return c(t.utcSunday.count(t.utcYear(le)-1,le),be,2)}function _t(le){var be=le.getUTCDay();return be>=4||be===0?t.utcThursday(le):t.utcThursday.ceil(le)}function Ct(le,be){return le=_t(le),c(t.utcThursday.count(t.utcYear(le),le)+(t.utcYear(le).getUTCDay()===4),be,2)}function St(le){return le.getUTCDay()}function kt(le,be){return c(t.utcMonday.count(t.utcYear(le)-1,le),be,2)}function ft(le,be){return c(le.getUTCFullYear()%100,be,2)}function Gt(le,be){return le=_t(le),c(le.getUTCFullYear()%100,be,2)}function $t(le,be){return c(le.getUTCFullYear()%1e4,be,4)}function hr(le,be){var Qe=le.getUTCDay();return le=Qe>=4||Qe===0?t.utcThursday(le):t.utcThursday.ceil(le),c(le.getUTCFullYear()%1e4,be,4)}function _r(){return"+0000"}function Nr(){return"%"}function Br(le){return+le}function Ur(le){return Math.floor(+le/1e3)}var ut;rt({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 rt(le){return ut=a(le),e.timeFormat=ut.format,e.timeParse=ut.parse,e.utcFormat=ut.utcFormat,e.utcParse=ut.utcParse,ut}var it="%Y-%m-%dT%H:%M:%S.%LZ";function Ze(le){return le.toISOString()}var Je=Date.prototype.toISOString?Ze:e.utcFormat(it);function ht(le){var be=new Date(le);return isNaN(be)?null:be}var Ie=+new Date("2000-01-01T00:00:00.000Z")?ht:e.utcParse(it);e.isoFormat=Je,e.isoParse=Ie,e.timeFormatDefaultLocale=rt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var _q=_e((a6,yee)=>{(function(e,t){typeof a6=="object"&&typeof yee!="undefined"?t(a6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(a6,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((g=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var g,P=C.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+C.slice(g+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(g,P){for(var T=g.length,F=[],q=0,V=C[0],H=0;T>0&&V>0&&(H+V+1>P&&(V=Math.max(1,P-H)),F.push(g.substring(T-=V,T+V)),!((H+=V+1)>P));)V=C[q=(q+1)%C.length];return F.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}l.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 u(C){e:for(var S=C.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(T+1):C}var c;function f(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],T=g[1],F=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,q=P.length;return F===q?P:F>q?P+new Array(F-q+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+r(C,Math.max(0,S+F-1))[0]}function h(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:f,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function v(C){return C}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var S=C.grouping===void 0||C.thousands===void 0?v:i(x.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",T=C.decimal===void 0?".":C.decimal+"",F=C.numerals===void 0?v:a(x.call(C.numerals,String)),q=C.percent===void 0?"%":C.percent+"",V=C.minus===void 0?"-":C.minus+"",H=C.nan===void 0?"NaN":C.nan+"";function X(N){N=s(N);var Z=N.fill,ie=N.align,ae=N.sign,we=N.symbol,Ee=N.zero,ke=N.width,ye=N.comma,K=N.precision,ce=N.trim,pe=N.type;pe==="n"?(ye=!0,pe="g"):d[pe]||(K===void 0&&(K=12),ce=!0,pe="g"),(Ee||Z==="0"&&ie==="=")&&(Ee=!0,Z="0",ie="=");var xe=we==="$"?g:we==="#"&&/[boxX]/.test(pe)?"0"+pe.toLowerCase():"",Ce=we==="$"?P:/[%p]/.test(pe)?q:"",Me=d[pe],Le=/[defgprs%]/.test(pe);K=K===void 0?6:/[gprs]/.test(pe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function je(Se){var Xe=xe,lt=Ce,At,Yt,nt;if(pe==="c")lt=Me(Se)+lt,Se="";else{Se=+Se;var ot=Se<0||1/Se<0;if(Se=isNaN(Se)?H:Me(Math.abs(Se),K),ce&&(Se=u(Se)),ot&&+Se==0&&ae!=="+"&&(ot=!1),Xe=(ot?ae==="("?ae:V:ae==="-"||ae==="("?"":ae)+Xe,lt=(pe==="s"?b[8+c/3]:"")+lt+(ot&&ae==="("?")":""),Le){for(At=-1,Yt=Se.length;++Atnt||nt>57){lt=(nt===46?T+Se.slice(At+1):Se.slice(At))+lt,Se=Se.slice(0,At);break}}}ye&&!Ee&&(Se=S(Se,1/0));var Ft=Xe.length+Se.length+lt.length,Lt=Ft>1)+Xe+Se+lt+Lt.slice(Ft);break;default:Se=Lt+Xe+Se+lt;break}return F(Se)}return je.toString=function(){return N+""},je}function G(N,Z){var ie=X((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(Z)/3)))*3,we=Math.pow(10,-ae),Ee=b[8+ae/3];return function(ke){return ie(we*ke)+Ee}}return{format:X,formatPrefix:G}}var E;k({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function k(C){return E=p(C),e.format=E.format,e.formatPrefix=E.formatPrefix,E}function A(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function _(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=k,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var xee=_e((dtr,_ee)=>{"use strict";_ee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ao=_e((vtr,bee)=>{"use strict";var ett=xee();bee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&ett(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Jo=_e((ptr,wee)=>{"use strict";wee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var xq=_e((o6,Tee)=>{(function(e,t){typeof o6=="object"&&typeof Tee!="undefined"?t(o6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(o6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var py=_e((gtr,Aee)=>{"use strict";Aee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var vv=_e(mg=>{"use strict";var ttt=xq().decode,rtt=py(),bq=Array.isArray,itt=typeof ArrayBuffer=="undefined"||!ArrayBuffer.isView?{isView:function(){return!1}}:ArrayBuffer,ntt=typeof DataView=="undefined"?function(){}:DataView;function Mee(e){return itt.isView(e)&&!(e instanceof ntt)}mg.isTypedArray=Mee;function s6(e){return bq(e)||Mee(e)}mg.isArrayOrTypedArray=s6;function att(e){return!s6(e[0])}mg.isArray1D=att;mg.ensureArray=function(e,t){return bq(e)||(e=[]),e.length=t,e};var Sd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Sd.uint8c=Sd.u1c;Sd.uint8=Sd.u1;Sd.int8=Sd.i1;Sd.uint16=Sd.u2;Sd.int16=Sd.i2;Sd.uint32=Sd.u4;Sd.int32=Sd.i4;Sd.float32=Sd.f4;Sd.float64=Sd.f8;function wq(e){return e.constructor===ArrayBuffer}mg.isArrayBuffer=wq;mg.decodeTypedArraySpec=function(e){var t=[],r=ott(e),n=r.dtype,i=Sd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;wq(o)||(o=ttt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var Eee=ao(),Aq=vv().isArrayOrTypedArray;Pee.exports=function(t,r){if(Eee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=kM(),ftt=/^\w*$/,htt=0,Iee=1,l6=2,Ree=3,ob=4;Dee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|l6,f.set(h,null);if(c){for(a=d;a{"use strict";var dtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,vtt=/^[^\.\[\]]+$/;Fee.exports=function(e,t){for(;t;){var r=e.match(dtt);if(r)e=r[1];else if(e.match(vtt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var u6=_e((btr,Oee)=>{"use strict";var ptt=ao();Oee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return ptt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Uee=_e((wtr,Nee)=>{"use strict";var Bee=vv().isArrayOrTypedArray,CM=py();Nee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Bee(i)&&Bee(a)&&CM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function gtt(e,t){var r=e%t;return r<0?r+t:r}function mtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Vee.exports={mod:gtt,modHalf:mtt}});var id=_e((Mq,Sq)=>{(function(e,t){typeof Mq=="object"&&typeof Sq!="undefined"?Sq.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.tinycolor=t())})(Mq,function(){"use strict";function e(K){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},e(K)}var t=/^\s+/,r=/\s+$/;function n(K,ce){if(K=K||"",ce=ce||{},K instanceof n)return K;if(!(this instanceof n))return new n(K,ce);var pe=i(K);this._originalInput=K,this._r=pe.r,this._g=pe.g,this._b=pe.b,this._a=pe.a,this._roundA=Math.round(100*this._a)/100,this._format=ce.format||pe.format,this._gradientType=ce.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=pe.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ce=this.toRgb();return(ce.r*299+ce.g*587+ce.b*114)/1e3},getLuminance:function(){var ce=this.toRgb(),pe,xe,Ce,Me,Le,je;return pe=ce.r/255,xe=ce.g/255,Ce=ce.b/255,pe<=.03928?Me=pe/12.92:Me=Math.pow((pe+.055)/1.055,2.4),xe<=.03928?Le=xe/12.92:Le=Math.pow((xe+.055)/1.055,2.4),Ce<=.03928?je=Ce/12.92:je=Math.pow((Ce+.055)/1.055,2.4),.2126*Me+.7152*Le+.0722*je},setAlpha:function(ce){return this._a=F(ce),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ce=l(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=l(this._r,this._g,this._b),pe=Math.round(ce.h*360),xe=Math.round(ce.s*100),Ce=Math.round(ce.v*100);return this._a==1?"hsv("+pe+", "+xe+"%, "+Ce+"%)":"hsva("+pe+", "+xe+"%, "+Ce+"%, "+this._roundA+")"},toHsl:function(){var ce=o(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=o(this._r,this._g,this._b),pe=Math.round(ce.h*360),xe=Math.round(ce.s*100),Ce=Math.round(ce.l*100);return this._a==1?"hsl("+pe+", "+xe+"%, "+Ce+"%)":"hsla("+pe+", "+xe+"%, "+Ce+"%, "+this._roundA+")"},toHex:function(ce){return c(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return f(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(q(this._r,255)*100)+"%",g:Math.round(q(this._g,255)*100)+"%",b:Math.round(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(q(this._r,255)*100)+"%, "+Math.round(q(this._g,255)*100)+"%, "+Math.round(q(this._b,255)*100)+"%)":"rgba("+Math.round(q(this._r,255)*100)+"%, "+Math.round(q(this._g,255)*100)+"%, "+Math.round(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(ce){var pe="#"+h(this._r,this._g,this._b,this._a),xe=pe,Ce=this._gradientType?"GradientType = 1, ":"";if(ce){var Me=n(ce);xe="#"+h(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ce+"startColorstr="+pe+",endColorstr="+xe+")"},toString:function(ce){var pe=!!ce;ce=ce||this._format;var xe=!1,Ce=this._a<1&&this._a>=0,Me=!pe&&Ce&&(ce==="hex"||ce==="hex6"||ce==="hex3"||ce==="hex4"||ce==="hex8"||ce==="name");return Me?ce==="name"&&this._a===0?this.toName():this.toRgbString():(ce==="rgb"&&(xe=this.toRgbString()),ce==="prgb"&&(xe=this.toPercentageRgbString()),(ce==="hex"||ce==="hex6")&&(xe=this.toHexString()),ce==="hex3"&&(xe=this.toHexString(!0)),ce==="hex4"&&(xe=this.toHex8String(!0)),ce==="hex8"&&(xe=this.toHex8String()),ce==="name"&&(xe=this.toName()),ce==="hsl"&&(xe=this.toHslString()),ce==="hsv"&&(xe=this.toHsvString()),xe||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(ce,pe){var xe=ce.apply(null,[this].concat([].slice.call(pe)));return this._r=xe._r,this._g=xe._g,this._b=xe._b,this.setAlpha(xe._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(ce,pe){return ce.apply(null,[this].concat([].slice.call(pe)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(L,[3])},tetrad:function(){return this._applyCombination(L,[4])}},n.fromRatio=function(K,ce){if(e(K)=="object"){var pe={};for(var xe in K)K.hasOwnProperty(xe)&&(xe==="a"?pe[xe]=K[xe]:pe[xe]=Z(K[xe]));K=pe}return n(K,ce)};function i(K){var ce={r:0,g:0,b:0},pe=1,xe=null,Ce=null,Me=null,Le=!1,je=!1;return typeof K=="string"&&(K=ke(K)),e(K)=="object"&&(Ee(K.r)&&Ee(K.g)&&Ee(K.b)?(ce=a(K.r,K.g,K.b),Le=!0,je=String(K.r).substr(-1)==="%"?"prgb":"rgb"):Ee(K.h)&&Ee(K.s)&&Ee(K.v)?(xe=Z(K.s),Ce=Z(K.v),ce=u(K.h,xe,Ce),Le=!0,je="hsv"):Ee(K.h)&&Ee(K.s)&&Ee(K.l)&&(xe=Z(K.s),Me=Z(K.l),ce=s(K.h,xe,Me),Le=!0,je="hsl"),K.hasOwnProperty("a")&&(pe=K.a)),pe=F(pe),{ok:Le,format:K.format||je,r:Math.min(255,Math.max(ce.r,0)),g:Math.min(255,Math.max(ce.g,0)),b:Math.min(255,Math.max(ce.b,0)),a:pe}}function a(K,ce,pe){return{r:q(K,255)*255,g:q(ce,255)*255,b:q(pe,255)*255}}function o(K,ce,pe){K=q(K,255),ce=q(ce,255),pe=q(pe,255);var xe=Math.max(K,ce,pe),Ce=Math.min(K,ce,pe),Me,Le,je=(xe+Ce)/2;if(xe==Ce)Me=Le=0;else{var Se=xe-Ce;switch(Le=je>.5?Se/(2-xe-Ce):Se/(xe+Ce),xe){case K:Me=(ce-pe)/Se+(ce1&&(At-=1),At<1/6?Xe+(lt-Xe)*6*At:At<1/2?lt:At<2/3?Xe+(lt-Xe)*(2/3-At)*6:Xe}if(ce===0)xe=Ce=Me=pe;else{var je=pe<.5?pe*(1+ce):pe+ce-pe*ce,Se=2*pe-je;xe=Le(Se,je,K+1/3),Ce=Le(Se,je,K),Me=Le(Se,je,K-1/3)}return{r:xe*255,g:Ce*255,b:Me*255}}function l(K,ce,pe){K=q(K,255),ce=q(ce,255),pe=q(pe,255);var xe=Math.max(K,ce,pe),Ce=Math.min(K,ce,pe),Me,Le,je=xe,Se=xe-Ce;if(Le=xe===0?0:Se/xe,xe==Ce)Me=0;else{switch(xe){case K:Me=(ce-pe)/Se+(ce>1)+720)%360;--ce;)xe.h=(xe.h+Ce)%360,Me.push(n(xe));return Me}function S(K,ce){ce=ce||6;for(var pe=n(K).toHsv(),xe=pe.h,Ce=pe.s,Me=pe.v,Le=[],je=1/ce;ce--;)Le.push(n({h:xe,s:Ce,v:Me})),Me=(Me+je)%1;return Le}n.mix=function(K,ce,pe){pe=pe===0?0:pe||50;var xe=n(K).toRgb(),Ce=n(ce).toRgb(),Me=pe/100,Le={r:(Ce.r-xe.r)*Me+xe.r,g:(Ce.g-xe.g)*Me+xe.g,b:(Ce.b-xe.b)*Me+xe.b,a:(Ce.a-xe.a)*Me+xe.a};return n(Le)},n.readability=function(K,ce){var pe=n(K),xe=n(ce);return(Math.max(pe.getLuminance(),xe.getLuminance())+.05)/(Math.min(pe.getLuminance(),xe.getLuminance())+.05)},n.isReadable=function(K,ce,pe){var xe=n.readability(K,ce),Ce,Me;switch(Me=!1,Ce=ye(pe),Ce.level+Ce.size){case"AAsmall":case"AAAlarge":Me=xe>=4.5;break;case"AAlarge":Me=xe>=3;break;case"AAAsmall":Me=xe>=7;break}return Me},n.mostReadable=function(K,ce,pe){var xe=null,Ce=0,Me,Le,je,Se;pe=pe||{},Le=pe.includeFallbackColors,je=pe.level,Se=pe.size;for(var Xe=0;XeCe&&(Ce=Me,xe=n(ce[Xe]));return n.isReadable(K,xe,{level:je,size:Se})||!Le?xe:(pe.includeFallbackColors=!1,n.mostReadable(K,["#fff","#000"],pe))};var g=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=n.hexNames=T(g);function T(K){var ce={};for(var pe in K)K.hasOwnProperty(pe)&&(ce[K[pe]]=pe);return ce}function F(K){return K=parseFloat(K),(isNaN(K)||K<0||K>1)&&(K=1),K}function q(K,ce){X(K)&&(K="100%");var pe=G(K);return K=Math.min(ce,Math.max(0,parseFloat(K))),pe&&(K=parseInt(K*ce,10)/100),Math.abs(K-ce)<1e-6?1:K%ce/parseFloat(ce)}function V(K){return Math.min(1,Math.max(0,K))}function H(K){return parseInt(K,16)}function X(K){return typeof K=="string"&&K.indexOf(".")!=-1&&parseFloat(K)===1}function G(K){return typeof K=="string"&&K.indexOf("%")!=-1}function N(K){return K.length==1?"0"+K:""+K}function Z(K){return K<=1&&(K=K*100+"%"),K}function ie(K){return Math.round(parseFloat(K)*255).toString(16)}function ae(K){return H(K)/255}var we=function(){var K="[-\\+]?\\d+%?",ce="[-\\+]?\\d*\\.\\d+%?",pe="(?:"+ce+")|(?:"+K+")",xe="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?",Ce="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?";return{CSS_UNIT:new RegExp(pe),rgb:new RegExp("rgb"+xe),rgba:new RegExp("rgba"+Ce),hsl:new RegExp("hsl"+xe),hsla:new RegExp("hsla"+Ce),hsv:new RegExp("hsv"+xe),hsva:new RegExp("hsva"+Ce),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee(K){return!!we.CSS_UNIT.exec(K)}function ke(K){K=K.replace(t,"").replace(r,"").toLowerCase();var ce=!1;if(g[K])K=g[K],ce=!0;else if(K=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var pe;return(pe=we.rgb.exec(K))?{r:pe[1],g:pe[2],b:pe[3]}:(pe=we.rgba.exec(K))?{r:pe[1],g:pe[2],b:pe[3],a:pe[4]}:(pe=we.hsl.exec(K))?{h:pe[1],s:pe[2],l:pe[3]}:(pe=we.hsla.exec(K))?{h:pe[1],s:pe[2],l:pe[3],a:pe[4]}:(pe=we.hsv.exec(K))?{h:pe[1],s:pe[2],v:pe[3]}:(pe=we.hsva.exec(K))?{h:pe[1],s:pe[2],v:pe[3],a:pe[4]}:(pe=we.hex8.exec(K))?{r:H(pe[1]),g:H(pe[2]),b:H(pe[3]),a:ae(pe[4]),format:ce?"name":"hex8"}:(pe=we.hex6.exec(K))?{r:H(pe[1]),g:H(pe[2]),b:H(pe[3]),format:ce?"name":"hex"}:(pe=we.hex4.exec(K))?{r:H(pe[1]+""+pe[1]),g:H(pe[2]+""+pe[2]),b:H(pe[3]+""+pe[3]),a:ae(pe[4]+""+pe[4]),format:ce?"name":"hex8"}:(pe=we.hex3.exec(K))?{r:H(pe[1]+""+pe[1]),g:H(pe[2]+""+pe[2]),b:H(pe[3]+""+pe[3]),format:ce?"name":"hex"}:!1}function ye(K){var ce,pe;return K=K||{level:"AA",size:"small"},ce=(K.level||"AA").toUpperCase(),pe=(K.size||"small").toLowerCase(),ce!=="AA"&&ce!=="AAA"&&(ce="AA"),pe!=="small"&&pe!=="large"&&(pe="small"),{level:ce,size:pe}}return n})});var to=_e(IM=>{"use strict";var Hee=py(),LM=Array.isArray;function ytt(e,t){var r,n;for(r=0;r{"use strict";Gee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var RM=_e((Str,jee)=>{"use strict";jee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=_e((Etr,Xee)=>{"use strict";var Wee=RM(),Zee=Mu(),Eq=Zee({editType:"none"});Eq.family.dflt=Wee.HOVERFONT;Eq.size.dflt=Wee.HOVERFONTSIZE;Xee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Eq,grouptitlefont:Zee({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=_e((ktr,Yee)=>{"use strict";var _tt=Mu(),c6=N1().hoverlabel,f6=to().extendFlat;Yee.exports={hoverlabel:{bgcolor:f6({},c6.bgcolor,{arrayOk:!0}),bordercolor:f6({},c6.bordercolor,{arrayOk:!0}),font:_tt({arrayOk:!0,editType:"none"}),align:f6({},c6.align,{arrayOk:!0}),namelength:f6({},c6.namelength,{arrayOk:!0}),editType:"none"}}});var vl=_e((Ctr,Kee)=>{"use strict";var xtt=Mu(),btt=i3();Kee.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:xtt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:btt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=_e((Ltr,Qee)=>{"use strict";var wtt=id(),h6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Jee=h6.RdBu;function Ttt(e,t){if(t||(t=Jee),!e)return t;function r(){try{e=h6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),$ee(e)?e:t}function $ee(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var ha=_e((Itr,ete)=>{"use strict";var xp=id(),Mtt=ao(),Stt=vv().isTypedArray,nd=ete.exports={},d6=dh();nd.defaults=d6.defaults;var Ett=nd.defaultLine=d6.defaultLine;nd.lightLine=d6.lightLine;var Cq=nd.background=d6.background;nd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};nd.rgb=function(e){return nd.tinyRGB(xp(e))};nd.opacity=function(e){return e?xp(e).getAlpha():0};nd.addOpacity=function(e,t){var r=xp(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};nd.combine=function(e,t){var r=xp(e).toRgb();if(r.a===1)return xp(e).toRgbString();var n=xp(t||Cq).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return xp(a).toRgbString()};nd.interpolate=function(e,t,r){var n=xp(e).toRgb(),i=xp(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return xp(a).toRgbString()};nd.contrast=function(e,t,r){var n=xp(e);n.getAlpha()!==1&&(n=xp(nd.combine(e,Cq)));var i=n.isDark()?t?n.lighten(t):Cq:r?n.darken(r):Ett;return i.toString()};nd.stroke=function(e,t){var r=xp(t);e.style({stroke:nd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};nd.fill=function(e,t){var r=xp(t);e.style({fill:nd.tinyRGB(r),"fill-opacity":r.getAlpha()})};nd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=_e((Rtr,tte)=>{"use strict";tte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=_e(rte=>{"use strict";rte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var ote=_e(bp=>{"use strict";var Lq=ao(),ite=id(),nte=to().extendFlat,ktt=vl(),Ctt=sb(),Ltt=ha(),Ptt=U1().DESELECTDIM,a3=kM(),ate=n3().counter,Itt=r3().modHalf,dm=vv().isArrayOrTypedArray,V1=vv().isTypedArraySpec,H1=vv().decodeTypedArraySpec;bp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:V1(e)?H1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=H1(e)),e%1||!Lq(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=H1(e)),ite(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return ite(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Ctt.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=H1(e)),e==="auto"?t.set("auto"):Lq(e)?t.set(Itt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||ate(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!ate(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var ste={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},lte={};function ute(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),ute(n,t[r]))}}ute(ste,lte);cte.exports={configAttributes:ste,dfltConfig:lte}});var Iq=_e((qtr,fte)=>{"use strict";var Pq=ya(),Rtt=ao(),DM=[];fte.exports=function(e,t){if(DM.indexOf(e)!==-1)return;DM.push(e);var r=1e3;Rtt(t)?r=t:t==="long"&&(r=3e3);var n=Pq.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(DM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=DM.indexOf(s);l!==-1&&DM.splice(l,1),Pq.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=Pq.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,Rq=Iq(),Dq=hte.exports={};Dq.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};Dq.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};Dq.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var p6=_e((Btr,dte)=>{"use strict";dte.exports=function(){}});var zq=_e((Ntr,vte)=>{"use strict";vte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{pte.exports=Dtt;function Dtt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yte=_e((Vtr,mte)=>{mte.exports=ztt;function ztt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var xte=_e((Htr,_te)=>{_te.exports=Ftt;function Ftt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Fq=_e((Gtr,bte)=>{bte.exports=qtt;function qtt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Tte=_e((jtr,wte)=>{wte.exports=Ott;function Ott(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Mte=_e((Wtr,Ate)=>{Ate.exports=Btt;function Btt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15],E=r*s-n*o,k=r*l-i*o,A=r*u-a*o,L=n*l-i*s,_=n*u-a*s,C=i*u-a*l,S=c*x-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*x,F=f*p-d*x,q=h*p-d*b,V=E*q-k*F+A*T+L*P-_*g+C*S;return V?(V=1/V,e[0]=(s*q-l*F+u*T)*V,e[1]=(i*F-n*q-a*T)*V,e[2]=(x*C-b*_+p*L)*V,e[3]=(h*_-f*C-d*L)*V,e[4]=(l*P-o*q-u*g)*V,e[5]=(r*q-i*P+a*g)*V,e[6]=(b*A-v*C-p*k)*V,e[7]=(c*C-h*A+d*k)*V,e[8]=(o*F-s*P+u*S)*V,e[9]=(n*P-r*F-a*S)*V,e[10]=(v*_-x*A+p*E)*V,e[11]=(f*A-c*_-d*E)*V,e[12]=(s*g-o*T-l*S)*V,e[13]=(r*T-n*g+i*S)*V,e[14]=(x*k-v*L-b*E)*V,e[15]=(c*L-f*k+h*E)*V,e):null}});var Ete=_e((Ztr,Ste)=>{Ste.exports=Ntt;function Ntt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+x*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+x*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+x*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*x)-c*(s*p-u*x)+v*(s*d-u*f),e[9]=-(r*(f*p-d*x)-c*(n*p-a*x)+v*(n*d-a*f)),e[10]=r*(s*p-u*x)-o*(n*p-a*x)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*x)-c*(s*b-l*x)+v*(s*h-l*f)),e[13]=r*(f*b-h*x)-c*(n*b-i*x)+v*(n*h-i*f),e[14]=-(r*(s*b-l*x)-o*(n*b-i*x)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Cte=_e((Xtr,kte)=>{kte.exports=Utt;function Utt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],x=e[14],b=e[15],p=t*o-r*a,E=t*s-n*a,k=t*l-i*a,A=r*s-n*o,L=r*l-i*o,_=n*l-i*s,C=u*v-c*d,S=u*x-f*d,g=u*b-h*d,P=c*x-f*v,T=c*b-h*v,F=f*b-h*x;return p*F-E*T+k*P+A*g-L*S+_*C}});var Pte=_e((Ytr,Lte)=>{Lte.exports=Vtt;function Vtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],x=t[12],b=t[13],p=t[14],E=t[15],k=r[0],A=r[1],L=r[2],_=r[3];return e[0]=k*n+A*s+L*f+_*x,e[1]=k*i+A*l+L*h+_*b,e[2]=k*a+A*u+L*d+_*p,e[3]=k*o+A*c+L*v+_*E,k=r[4],A=r[5],L=r[6],_=r[7],e[4]=k*n+A*s+L*f+_*x,e[5]=k*i+A*l+L*h+_*b,e[6]=k*a+A*u+L*d+_*p,e[7]=k*o+A*c+L*v+_*E,k=r[8],A=r[9],L=r[10],_=r[11],e[8]=k*n+A*s+L*f+_*x,e[9]=k*i+A*l+L*h+_*b,e[10]=k*a+A*u+L*d+_*p,e[11]=k*o+A*c+L*v+_*E,k=r[12],A=r[13],L=r[14],_=r[15],e[12]=k*n+A*s+L*f+_*x,e[13]=k*i+A*l+L*h+_*b,e[14]=k*a+A*u+L*d+_*p,e[15]=k*o+A*c+L*v+_*E,e}});var Rte=_e((Ktr,Ite)=>{Ite.exports=Htt;function Htt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,x,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],x=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=x,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+x*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var zte=_e((Jtr,Dte)=>{Dte.exports=Gtt;function Gtt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var qte=_e(($tr,Fte)=>{Fte.exports=jtt;function jtt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,x,b,p,E,k,A,L,_,C,S,g,P,T,F,q,V,H;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],x=t[4],b=t[5],p=t[6],E=t[7],k=t[8],A=t[9],L=t[10],_=t[11],C=i*i*c+u,S=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,F=o*a*c+i*l,q=i*o*c+a*l,V=a*o*c-i*l,H=o*o*c+u,e[0]=f*C+x*S+k*g,e[1]=h*C+b*S+A*g,e[2]=d*C+p*S+L*g,e[3]=v*C+E*S+_*g,e[4]=f*P+x*T+k*F,e[5]=h*P+b*T+A*F,e[6]=d*P+p*T+L*F,e[7]=v*P+E*T+_*F,e[8]=f*q+x*V+k*H,e[9]=h*q+b*V+A*H,e[10]=d*q+p*V+L*H,e[11]=v*q+E*V+_*H,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Bte=_e((Qtr,Ote)=>{Ote.exports=Wtt;function Wtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Ute=_e((err,Nte)=>{Nte.exports=Ztt;function Ztt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Hte=_e((trr,Vte)=>{Vte.exports=Xtt;function Xtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var jte=_e((rrr,Gte)=>{Gte.exports=Ytt;function Ytt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Zte=_e((irr,Wte)=>{Wte.exports=Ktt;function Ktt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,x=a*u,b=o*s,p=o*l,E=o*u;return e[0]=1-(d+x),e[1]=f+E,e[2]=h-p,e[3]=0,e[4]=f-E,e[5]=1-(c+x),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Yte=_e((nrr,Xte)=>{Xte.exports=Jtt;function Jtt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Jte=_e((arr,Kte)=>{Kte.exports=$tt;function $tt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Qte=_e((orr,$te)=>{$te.exports=Qtt;function Qtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tre=_e((srr,ere)=>{ere.exports=ert;function ert(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ire=_e((lrr,rre)=>{rre.exports=trt;function trt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var qq=_e((urr,nre)=>{nre.exports=rrt;function rrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,x=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ore=_e((crr,are)=>{are.exports=irt;function irt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var lre=_e((frr,sre)=>{sre.exports=nrt;function nrt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var cre=_e((hrr,ure)=>{ure.exports=art;function art(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var hre=_e((drr,fre)=>{fre.exports=ort;function ort(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var vre=_e((vrr,dre)=>{var srt=Fq();dre.exports=lrt;function lrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],x=t[1],b=t[2],p=n[0],E=n[1],k=n[2],A=r[0],L=r[1],_=r[2];return Math.abs(v-A)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?srt(e):(c=v-A,f=x-L,h=b-_,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=E*h-k*f,a=k*c-p*h,o=p*f-E*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*x+o*b),e[13]=-(s*v+l*x+u*b),e[14]=-(c*v+f*x+h*b),e[15]=1,e)}});var gre=_e((prr,pre)=>{pre.exports=urt;function urt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Oq=_e((grr,mre)=>{mre.exports={create:gte(),clone:yte(),copy:xte(),identity:Fq(),transpose:Tte(),invert:Mte(),adjoint:Ete(),determinant:Cte(),multiply:Pte(),translate:Rte(),scale:zte(),rotate:qte(),rotateX:Bte(),rotateY:Ute(),rotateZ:Hte(),fromRotation:jte(),fromRotationTranslation:Zte(),fromScaling:Yte(),fromTranslation:Jte(),fromXRotation:Qte(),fromYRotation:tre(),fromZRotation:ire(),fromQuat:qq(),frustum:ore(),perspective:lre(),perspectiveFromFieldOfView:cre(),ortho:hre(),lookAt:vre(),str:gre()}});var g6=_e(Xf=>{"use strict";var crt=Oq();Xf.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var frt=ya(),yre=G1(),hrt=g6(),drt=Oq();function vrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function prt(e){var t=frt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function _re(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function grt(e,t){xre("global",e,t)}function xre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):yre.warn("addStyleRule failed"):yre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function mrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&_re(r)}function yrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function _rt(e){var t=wre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=bre(n);if(i){var a=hrt.convertCssMatrix(i);r=drt.multiply(r,r,a)}}),r}function bre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function wre(e){for(var t=[];xrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function xrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function brt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Tre.exports={getGraphDiv:vrt,isPlotDiv:prt,removeElement:_re,addStyleRule:grt,addRelatedStyleRule:xre,deleteRelatedStyleRule:mrt,setStyleOnHover:yrt,getFullTransformMatrix:_rt,getElementTransformMatrix:bre,getElementAndAncestors:wre,equalDomRects:brt}});var FM=_e((_rr,Are)=>{"use strict";Are.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Bu=_e((xrr,Pre)=>{"use strict";var Sre=to().extendFlat,wrt=py(),Ere={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},kre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Trt=Ere.flags.slice().concat(["fullReplot"]),Art=kre.flags.slice().concat("layoutReplot");Pre.exports={traces:Ere,layout:kre,traceFlags:function(){return Mre(Trt)},layoutFlags:function(){return Mre(Art)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";Bq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Bq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Nq=_e((wrr,Ire)=>{"use strict";Ire.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ho=_e(m6=>{"use strict";var Rre=Nq(),Trr=Rre.FORMAT_LINK,Arr=Rre.DATE_FORMAT_LINK;function Uq(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function j1(e,t){return t?t.d2l(e):e}function Dre(e,t){return t?t.l2d(e):e}function Mrt(e){return e.x0}function Srt(e){return e.x1}function Ert(e){return e.y0}function krt(e){return e.y1}function zre(e){return e.x0shift||0}function Fre(e){return e.x1shift||0}function qre(e){return e.y0shift||0}function Ore(e){return e.y1shift||0}function y6(e,t){return j1(e.x1,t)+Fre(e)-j1(e.x0,t)-zre(e)}function _6(e,t,r){return j1(e.y1,r)+Ore(e)-j1(e.y0,r)-qre(e)}function Crt(e,t){return Math.abs(y6(e,t))}function Lrt(e,t,r){return Math.abs(_6(e,t,r))}function Prt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(y6(e,t),2)+Math.pow(_6(e,t,r),2))}function Irt(e,t){return Dre((j1(e.x1,t)+Fre(e)+j1(e.x0,t)+zre(e))/2,t)}function Rrt(e,t,r){return Dre((j1(e.y1,r)+Ore(e)+j1(e.y0,r)+qre(e))/2,r)}function Drt(e,t,r){return e.type!=="line"?void 0:_6(e,t,r)/y6(e,t)}Bre.exports={x0:Mrt,x1:Srt,y0:Ert,y1:krt,slope:Drt,dx:y6,dy:_6,width:Crt,height:Lrt,length:Prt,xcenter:Irt,ycenter:Rrt}});var Vre=_e((Err,Ure)=>{"use strict";var zrt=Bu().overrideAll,cb=vl(),Nre=Mu(),Frt=Ed().dash,W1=to().extendFlat,qrt=Ho().shapeTexttemplateAttrs,Ort=x6();Ure.exports=zrt({newshape:{visible:W1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},cb.legend,{}),legendgroup:W1({},cb.legendgroup,{}),legendgrouptitle:{text:W1({},cb.legendgrouptitle.text,{}),font:Nre({})},legendrank:W1({},cb.legendrank,{}),legendwidth:W1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},Frt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:W1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:qrt({newshape:!0},{keys:Object.keys(Ort)}),font:Nre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Gre=_e((krr,Hre)=>{"use strict";var Brt=Ed().dash,Nrt=to().extendFlat;Hre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Nrt({},Brt,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var b6=_e((Crr,jre)=>{"use strict";jre.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=_e((Lrr,Yre)=>{"use strict";var Vq=Mu(),Urt=FM(),w6=dh(),Wre=Vre(),Zre=Gre(),Vrt=b6(),Xre=to().extendFlat,T6=Vq({editType:"calc"});T6.family.dflt='"Open Sans", verdana, arial, sans-serif';T6.size.dflt=12;T6.color.dflt=w6.defaultLine;Yre.exports={font:T6,title:{text:{valType:"string",editType:"layoutstyle"},font:Vq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Vq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Xre(Vrt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:w6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:w6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:w6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Wre.newshape,activeshape:Wre.activeshape,newselection:Zre.newselection,activeselection:Zre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Xre({},Urt.transition,{editType:"none"})}});var Kre=Ll(()=>{});var Hrt={};var Jre=Ll(()=>{Kre()});var _a=_e(Fs=>{"use strict";var l3=G1(),$re=p6(),Qre=zq(),Grt=py(),jrt=zM().addStyleRule,eie=to(),Wrt=vl(),Zrt=s3(),Xrt=eie.extendFlat,Hq=eie.extendDeepAll;Fs.modules={};Fs.allCategories={};Fs.allTypes=[];Fs.subplotsRegistry={};Fs.componentsRegistry={};Fs.layoutArrayContainers=[];Fs.layoutArrayRegexes=[];Fs.traceLayoutAttributes={};Fs.localeRegistry={};Fs.apiMethodRegistry={};Fs.collectableSubplotTypes=null;Fs.register=function(t){if(Fs.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var eit=e3().timeFormat,fie=ao(),Gq=G1(),X1=r3().mod,f3=Jo(),_0=f3.BADNUM,wp=f3.ONEDAY,qM=f3.ONEHOUR,Z1=f3.ONEMIN,c3=f3.ONESEC,OM=f3.EPOCHJD,gy=_a(),aie=e3().utcFormat,tit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,rit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,oie=new Date().getFullYear()-70;function my(e){return e&&gy.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Yf.dateTick0=function(e,t){var r=iit(e,!!t);if(t<2)return r;var n=Yf.dateTime2ms(r,e);return n+=wp*(t-1),Yf.ms2DateTime(n,0,e)};function iit(e,t){return my(e)?t?gy.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:gy.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Yf.dfltRange=function(e){return my(e)?gy.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Yf.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var M6,S6;Yf.dateTime2ms=function(e,t){if(Yf.isJSDate(e)){var r=e.getTimezoneOffset()*Z1,n=(e.getUTCMinutes()-e.getMinutes())*Z1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*Z1;r=r-i/2+X1(n-r+i/2,i)}return e=Number(e)-r,e>=M6&&e<=S6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=my(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?rit:tit);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var x;try{var b=gy.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),x=b.newDate(u,b.toMonthIndex(u,c,p),f)}else x=b.newDate(u,Number(c),f)}catch(k){return _0}return x?(x.toJD()-OM)*wp+h*qM+d*Z1+v*c3:_0}u.length===2?u=(Number(u)+2e3-oie)%100+oie:u=Number(u),c-=1;var E=new Date(Date.UTC(2e3,c,f,h,d));return E.setUTCFullYear(u),E.getUTCMonth()!==c||E.getUTCDate()!==f?_0:E.getTime()+v*c3};M6=Yf.MIN_MS=Yf.dateTime2ms("-9999");S6=Yf.MAX_MS=Yf.dateTime2ms("9999-12-31 23:59:59.9999");Yf.isDateTime=function(e,t){return Yf.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var A6=90*wp,sie=3*qM,lie=5*Z1;Yf.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=M6&&e<=S6))return _0;t||(t=0);var n=Math.floor(X1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(my(r)){var f=Math.floor(i/wp)+OM,h=Math.floor(X1(e,wp));try{a=gy.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=aie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=M6+wp&&e<=S6-wp))return _0;var t=Math.floor(X1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=eit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return hie(n,i,a,o,s)};function hie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}Yf.cleanDate=function(e,t,r){if(e===_0)return t;if(Yf.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(my(r))return Gq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Yf.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Yf.isDateTime(e,r))return Gq.error("unrecognized date",e),t;return e};var nit=/%\d?f/g,ait=/%h/g,oit={1:"1",2:"1",3:"2",4:"2"};function uie(e,t,r,n){e=e.replace(nit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(ait,function(){return oit[r("%q")(i)]}),my(n))try{e=gy.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var sit=[59,59.9,59.99,59.999,59.9999];function lit(e,t){var r=X1(e+.05,wp),n=u3(Math.floor(r/qM),2)+":"+u3(X1(Math.floor(r/Z1),60),2);if(t!=="M"){fie(t)||(t=0);var i=Math.min(X1(e/c3,60),sit[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}Yf.formatDate=function(e,t,r,n,i,a){if(i=my(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return lit(e,r)+` +`+uie(a.dayMonthYear,e,n,i);return uie(t,e,n,i)};var cie=3*wp;Yf.incrementMonth=function(e,t,r){r=my(r)&&r;var n=X1(e,wp);if(e=Math.round(e-n),r)try{var i=Math.round(e/wp)+OM,a=gy.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-OM)*wp+n}catch(l){Gq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+cie);return s.setUTCMonth(s.getUTCMonth()+t)+n-cie};Yf.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=my(t)&&gy.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";vie.exports=function(t){return t}});var E6=_e(yy=>{"use strict";var uit=ao(),cit=G1(),fit=BM(),hit=Jo().BADNUM,jq=1e-9;yy.findBin=function(e,t,r){if(uit(t.start))return r?Math.ceil((e-t.start)/t.size-jq)-1:Math.floor((e-t.start)/t.size+jq);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?dit:vit:l=r?git:pit,e+=o*jq*(r?-1:1)*(o>=0?1:-1);n90&&cit.log("Long binary search..."),n-1};function dit(e,t){return et}function git(e,t){return e>=t}yy.sorterAsc=function(e,t){return e-t};yy.sorterDes=function(e,t){return t-e};yy.distinctVals=function(e){var t=e.slice();t.sort(yy.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===hit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};yy.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};yy.findIndexOfMin=function(e,t){t=t||fit;for(var r=1/0,n,i=0;i{"use strict";pie.exports=function(t){return Object.keys(t).sort()}});var gie=_e(Kf=>{"use strict";var NM=ao(),mit=vv().isArrayOrTypedArray;Kf.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),NM(t)||(t=!1),mit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var bie=_e((Nrr,xie)=>{"use strict";var mie=r3(),Wq=mie.mod,yit=mie.modHalf,UM=Math.PI,K1=2*UM;function _it(e){return e/180*UM}function xit(e){return e/UM*180}function Zq(e){return Math.abs(e[1]-e[0])>K1-1e-14}function yie(e,t){return yit(t-e,K1)}function bit(e,t){return Math.abs(yie(e,t))}function _ie(e,t){if(Zq(t))return!0;var r,n;t[0]n&&(n+=K1);var i=Wq(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function wit(e,t,r,n){if(!_ie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function Xq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=Zq([r,n]),l,u,c,f,h;s?(l=0,u=UM,c=K1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Mie=_e(hb=>{"use strict";var Yq=r3().mod;hb.segmentsIntersect=Aie;function Aie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var x=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||x<0||x>1?null:{x:e+l*x,y:t+f*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Aie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,x=Math.min(k6(u,c,d,a-t,o-r),k6(u,c,d,s-t,l-r),k6(f,h,v,t-a,r-o),k6(f,h,v,n-a,i-o));return Math.sqrt(x)};function k6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var C6,Kq,Tie;hb.getTextLocation=function(t,r,n,i){if((t!==Kq||i!==Tie)&&(C6={},Kq=t,Tie=i),C6[n])return C6[n];var a=t.getPointAtLength(Yq(n-i/2,r)),o=t.getPointAtLength(Yq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(Yq(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return C6[n]=f,f};hb.clearLocationCache=function(){Kq=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(x){var b=t.getPointAtLength(x);x===0?f=b:x===u&&(h=b);var p=b.xa?b.x-a:0,E=b.ys?b.y-s:0;return Math.sqrt(p*p+E*E)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var L6=_e(VM=>{"use strict";var _y={};VM.throttle=function(t,r,n){var i=_y[t],a=Date.now();if(!i){for(var o in _y)_y[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};VM.done=function(e){var t=_y[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};VM.clear=function(e){if(e)Sie(_y[e]),delete _y[e];else for(var t in _y)VM.clear(t)};function Sie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var kie=_e((Grr,Eie)=>{"use strict";Eie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Cie=_e((jrr,P6)=>{"use strict";P6.exports=Jq;P6.exports.isMobile=Jq;P6.exports.default=Jq;var Sit=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Eit=/CrOS/,kit=/android|ipad|playbook|silk/i;function Jq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=Sit.test(t)&&!Eit.test(t)||!!e.tablet&&kit.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Pie=_e((Wrr,Lie)=>{"use strict";var Cit=ao(),Lit=Cie();Lie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Pit(),typeof r!="string")return!0;var n=Lit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(Cit(u)&&(u=+u),u>=13)return!0}}}return n};function Pit(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Rie=_e((Zrr,Iie)=>{"use strict";var Iit=ya();Iie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Iit.select(this)}),i}});var zie=_e((Xrr,Die)=>{"use strict";var Rit=_a();Die.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=Rit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var $q=_e((Yrr,Fie)=>{"use strict";Fie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";qie.exports=function(t){for(var r=Fit(t)?zit:Dit,n=[],i=0;i{"use strict";Bie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Vie=_e(($rr,Uie)=>{"use strict";var qit=ao(),Oit=Jo().BADNUM,Bit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Uie.exports=function(t){return typeof t=="string"&&(t=t.replace(Bit,"")),qit(t)?Number(t):Oit}});var Mr=_e((Qrr,tne)=>{"use strict";var HM=ya(),Nit=e3().utcFormat,Uit=_q().format,Xie=ao(),Yie=Jo(),Kie=Yie.FP_SAFE,Vit=-Kie,Hie=Yie.BADNUM,ci=tne.exports={};ci.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Gie={};ci.warnBadFormat=function(e){var t=String(e);Gie[t]||(Gie[t]=1,ci.warn('encountered bad format: "'+t+'"'))};ci.noFormat=function(e){return String(e)};ci.numberFormat=function(e){var t;try{t=Uit(ci.adjustFormat(e))}catch(r){return ci.warnBadFormat(e),ci.noFormat}return t};ci.nestedProperty=kM();ci.keyedContainer=zee();ci.relativeAttr=qee();ci.isPlainObject=py();ci.toLogRange=u6();ci.relinkPrivateKeys=Uee();var J1=vv();ci.isArrayBuffer=J1.isArrayBuffer;ci.isTypedArray=J1.isTypedArray;ci.isArrayOrTypedArray=J1.isArrayOrTypedArray;ci.isArray1D=J1.isArray1D;ci.ensureArray=J1.ensureArray;ci.concat=J1.concat;ci.maxRowLength=J1.maxRowLength;ci.minRowLength=J1.minRowLength;var Jie=r3();ci.mod=Jie.mod;ci.modHalf=Jie.modHalf;var $1=ote();ci.valObjectMeta=$1.valObjectMeta;ci.coerce=$1.coerce;ci.coerce2=$1.coerce2;ci.coerceFont=$1.coerceFont;ci.coercePattern=$1.coercePattern;ci.coerceHoverinfo=$1.coerceHoverinfo;ci.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;ci.validate=$1.validate;var Wp=die();ci.dateTime2ms=Wp.dateTime2ms;ci.isDateTime=Wp.isDateTime;ci.ms2DateTime=Wp.ms2DateTime;ci.ms2DateTimeLocal=Wp.ms2DateTimeLocal;ci.cleanDate=Wp.cleanDate;ci.isJSDate=Wp.isJSDate;ci.formatDate=Wp.formatDate;ci.incrementMonth=Wp.incrementMonth;ci.dateTick0=Wp.dateTick0;ci.dfltRange=Wp.dfltRange;ci.findExactDates=Wp.findExactDates;ci.MIN_MS=Wp.MIN_MS;ci.MAX_MS=Wp.MAX_MS;var db=E6();ci.findBin=db.findBin;ci.sorterAsc=db.sorterAsc;ci.sorterDes=db.sorterDes;ci.distinctVals=db.distinctVals;ci.roundUp=db.roundUp;ci.sort=db.sort;ci.findIndexOfMin=db.findIndexOfMin;ci.sortObjectKeys=Y1();var xy=gie();ci.aggNums=xy.aggNums;ci.len=xy.len;ci.mean=xy.mean;ci.geometricMean=xy.geometricMean;ci.median=xy.median;ci.midRange=xy.midRange;ci.variance=xy.variance;ci.stdev=xy.stdev;ci.interp=xy.interp;var yg=g6();ci.init2dArray=yg.init2dArray;ci.transposeRagged=yg.transposeRagged;ci.dot=yg.dot;ci.translationMatrix=yg.translationMatrix;ci.rotationMatrix=yg.rotationMatrix;ci.rotationXYMatrix=yg.rotationXYMatrix;ci.apply3DTransform=yg.apply3DTransform;ci.apply2DTransform=yg.apply2DTransform;ci.apply2DTransform2=yg.apply2DTransform2;ci.convertCssMatrix=yg.convertCssMatrix;ci.inverseTransformMatrix=yg.inverseTransformMatrix;var vm=bie();ci.deg2rad=vm.deg2rad;ci.rad2deg=vm.rad2deg;ci.angleDelta=vm.angleDelta;ci.angleDist=vm.angleDist;ci.isFullCircle=vm.isFullCircle;ci.isAngleInsideSector=vm.isAngleInsideSector;ci.isPtInsideSector=vm.isPtInsideSector;ci.pathArc=vm.pathArc;ci.pathSector=vm.pathSector;ci.pathAnnulus=vm.pathAnnulus;var d3=wie();ci.isLeftAnchor=d3.isLeftAnchor;ci.isCenterAnchor=d3.isCenterAnchor;ci.isRightAnchor=d3.isRightAnchor;ci.isTopAnchor=d3.isTopAnchor;ci.isMiddleAnchor=d3.isMiddleAnchor;ci.isBottomAnchor=d3.isBottomAnchor;var v3=Mie();ci.segmentsIntersect=v3.segmentsIntersect;ci.segmentDistance=v3.segmentDistance;ci.getTextLocation=v3.getTextLocation;ci.clearLocationCache=v3.clearLocationCache;ci.getVisibleSegment=v3.getVisibleSegment;ci.findPointOnPath=v3.findPointOnPath;var D6=to();ci.extendFlat=D6.extendFlat;ci.extendDeep=D6.extendDeep;ci.extendDeepAll=D6.extendDeepAll;ci.extendDeepNoArrays=D6.extendDeepNoArrays;var Qq=G1();ci.log=Qq.log;ci.warn=Qq.warn;ci.error=Qq.error;var Hit=n3();ci.counterRegex=Hit.counter;var eO=L6();ci.throttle=eO.throttle;ci.throttleDone=eO.done;ci.clearThrottle=eO.clear;var _g=zM();ci.getGraphDiv=_g.getGraphDiv;ci.isPlotDiv=_g.isPlotDiv;ci.removeElement=_g.removeElement;ci.addStyleRule=_g.addStyleRule;ci.addRelatedStyleRule=_g.addRelatedStyleRule;ci.deleteRelatedStyleRule=_g.deleteRelatedStyleRule;ci.setStyleOnHover=_g.setStyleOnHover;ci.getFullTransformMatrix=_g.getFullTransformMatrix;ci.getElementTransformMatrix=_g.getElementTransformMatrix;ci.getElementAndAncestors=_g.getElementAndAncestors;ci.equalDomRects=_g.equalDomRects;ci.clearResponsive=kie();ci.preserveDrawingBuffer=Pie();ci.makeTraceGroups=Rie();ci._=zie();ci.notifier=Iq();ci.filterUnique=$q();ci.filterVisible=Oie();ci.pushUnique=zq();ci.increment=Nie();ci.cleanNumber=Vie();ci.ensureNumber=function(t){return Xie(t)?(t=Number(t),t>Kie||t=t?!1:Xie(e)&&e>=0&&e%1===0};ci.noop=p6();ci.identity=BM();ci.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};ci.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};ci.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(ci.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};ci.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};ci.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};ci.syncOrAsync=function(e,t,r){var n,i;function a(){return ci.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};ci.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};ci.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};ci.fillArray=function(e,t,r,n){if(n=n||ci.identity,ci.isArrayOrTypedArray(e))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};ci.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ene=/^\w*$/;ci.templateString=function(e,t){var r={};return e.replace(ci.TEMPLATE_STRING_REGEX,function(n,i){var a;return ene.test(i)?a=t[i]:(r[i]=r[i]||ci.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Yit={max:10,count:0,name:"hovertemplate"};ci.hovertemplateString=function(){return tO.apply(Yit,arguments)};var Kit={max:10,count:0,name:"texttemplate"};ci.texttemplateString=function(){return tO.apply(Kit,arguments)};var Jit=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $it(e){var t=e.match(Jit);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Qit={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ci.texttemplateStringForShapes=function(){return tO.apply(Qit,arguments)};var jie=/^[:|\|]/;function tO(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(ci.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,x=null;if(n.parseMultDiv){var b=$it(d);d=b.key,v=b.op,x=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var E,k;for(k=3;k=R6&&o<=Wie,u=s>=R6&&s<=Wie;if(l&&(n=10*n+o-R6),u&&(i=10*i+s-R6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;ci.seedPseudoRandom=function(){h3=2e9};ci.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?ci.pseudoRandom():h3/4294967296};ci.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=ci.extractOption(e,t,"htx","hovertext");if(ci.isValidTextValue(i))return n(i);var a=ci.extractOption(e,t,"tx","text");if(ci.isValidTextValue(a))return n(a)};ci.isValidTextValue=function(e){return e||e===0};ci.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,ci.strTranslate(i-u*(r+o),a-u*(n+s))+ci.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};ci.setTransormAndDisplay=function(e,t){e.attr("transform",ci.getTextTransform(t)),e.style("display",t.scale?null:"none")};ci.ensureUniformFontSize=function(e,t){var r=ci.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};ci.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};ci.bigFont=function(e){return Math.round(1.2*e)};var Zie=ci.getFirefoxVersion(),ent=Zie!==null&&Zie<86;ci.getPositionFromD3Event=function(){return ent?[HM.event.layerX,HM.event.layerY]:[HM.event.offsetX,HM.event.offsetY]}});var nne=_e(()=>{"use strict";var tnt=Mr(),rne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(rO in rne)ine=rO.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),tnt.addStyleRule(ine,rne[rO]);var ine,rO});var iO=_e((rir,ane)=>{ane.exports=!0});var aO=_e((iir,one)=>{"use strict";var rnt=iO(),nO;typeof window.matchMedia=="function"?nO=!window.matchMedia("(hover: none)").matches:nO=rnt;one.exports=nO});var vb=_e((nir,oO)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,sne=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},z6;p3&&typeof p3.ownKeys=="function"?z6=p3.ownKeys:Object.getOwnPropertySymbols?z6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:z6=function(t){return Object.getOwnPropertyNames(t)};function int(e){console&&console.warn&&console.warn(e)}var une=Number.isNaN||function(t){return t!==t};function Tc(){Tc.init.call(this)}oO.exports=Tc;oO.exports.once=snt;Tc.EventEmitter=Tc;Tc.prototype._events=void 0;Tc.prototype._eventsCount=0;Tc.prototype._maxListeners=void 0;var lne=10;function F6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tc,"defaultMaxListeners",{enumerable:!0,get:function(){return lne},set:function(e){if(typeof e!="number"||e<0||une(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lne=e}});Tc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||une(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function cne(e){return e._maxListeners===void 0?Tc.defaultMaxListeners:e._maxListeners}Tc.prototype.getMaxListeners=function(){return cne(this)};Tc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")sne(l,this,r);else for(var u=l.length,c=pne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,int(s)}return e}Tc.prototype.addListener=function(t,r){return fne(this,t,r,!1)};Tc.prototype.on=Tc.prototype.addListener;Tc.prototype.prependListener=function(t,r){return fne(this,t,r,!0)};function nnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function hne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=nnt.bind(n);return i.listener=r,n.wrapFn=i,i}Tc.prototype.once=function(t,r){return F6(r),this.on(t,hne(this,t,r)),this};Tc.prototype.prependOnceListener=function(t,r){return F6(r),this.prependListener(t,hne(this,t,r)),this};Tc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(F6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():ant(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Tc.prototype.off=Tc.prototype.removeListener;Tc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function dne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?ont(i):pne(i,i.length)}Tc.prototype.listeners=function(t){return dne(this,t,!0)};Tc.prototype.rawListeners=function(t){return dne(this,t,!1)};Tc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):vne.call(e,t)};Tc.prototype.listenerCount=vne;function vne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Tc.prototype.eventNames=function(){return this._eventsCount>0?z6(this._events):[]};function pne(e,t){for(var r=new Array(t),n=0;n{"use strict";var sO=vb().EventEmitter,unt={init:function(e){if(e._ev instanceof sO)return e;var t=new sO,r=new sO;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var yne=Mr(),cnt=ub().dfltConfig;function fnt(e,t){for(var r=[],n,i=0;icnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};by.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};by.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};by.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";bne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=_e(Bh=>{"use strict";var x0=_a(),GM=Mr(),O6=vl(),uO=s3(),hnt=lO(),dnt=FM(),vnt=ub().configAttributes,wne=Bu(),xg=GM.extendDeepAll,m3=GM.isPlainObject,pnt=GM.isArrayOrTypedArray,B6=GM.nestedProperty,gnt=GM.valObjectMeta,cO="_isSubplotObj",N6="_isLinkedToArray",mnt="_arrayAttrRegexps",Ane="_deprecated",fO=[cO,N6,mnt,Ane];Bh.IS_SUBPLOT_OBJ=cO;Bh.IS_LINKED_TO_ARRAY=N6;Bh.DEPRECATED=Ane;Bh.UNDERSCORE_ATTRS=fO;Bh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=_nt(t)}),{defs:{valObjects:gnt,metaKeys:fO.concat(["description","role","editType","impliedEdits"]),editType:{traces:wne.traces,layout:wne.layout},impliedEdits:{}},traces:e,layout:xnt(),frames:bnt(),animation:y3(dnt),config:y3(vnt)}};Bh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(fO.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Bh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Bh.crawl(o,t,i+1,s)}})};Bh.isValObject=function(e){return e&&e.valType!==void 0};Bh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)pnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!q6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function q6(e){return e===Math.round(e)&&e>=0}function _nt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xg({},O6),a=xg({},t.attributes);Bh.crawl(a,function(l,u,c,f,h){B6(i,h).set(void 0),l===void 0&&B6(a,h).set(void 0)}),xg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xg(n,a),r.attributes&&xg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};xg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Bh.crawl(o,function(l){Bh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function xnt(){var e={},t,r;xg(e,uO);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Mr(),Snt=vl(),Q1="templateitemname",hO={name:{valType:"string",editType:"none"}};hO[Q1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=hO.name,t[Q1]=hO[Q1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},Snt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Ene(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Q1]=u[Q1];if(!Sne(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][Q1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var x=f();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var ad=_e((cir,kne)=>{"use strict";var jM=n3().counter;kne.exports={idRegex:{x:jM("x","( domain)?"),y:jM("y","( domain)?")},attrRegex:jM("[xy]axis"),xAxisMatch:jM("xaxis"),yAxisMatch:jM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var af=_e(Tp=>{"use strict";var Ent=_a(),dO=ad();Tp.id2name=function(t){if(!(typeof t!="string"||!t.match(dO.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Tp.name2id=function(t){if(t.match(dO.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};Tp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(dO.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Tp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Tp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};Tp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Cne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function knt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Cnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Lne.exports={clearOutlineControllers:knt,clearOutline:Cnt}});var U6=_e((dir,Pne)=>{"use strict";Pne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var kd=_e(H6=>{"use strict";var V6=_a(),vir=ad().SUBPLOT_PATTERN;H6.getSubplotCalcData=function(e,t,r){var n=V6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var Lnt=_a(),b3=Mr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Ine(e,o,i.cache),i.check=function(){if(a){var c=Ine(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?vO(a,t,o,n+1):t(o,i,a)}})}});var Xu=_e((mir,Yne)=>{"use strict";var Vne=ya(),Int=e3().timeFormatLocale,Rnt=_q().formatLocale,WM=ao(),Dnt=xq(),bl=_a(),Hne=_3(),znt=Us(),Ea=Mr(),Gne=ha(),Fne=Jo().BADNUM,Ap=af(),Fnt=e_().clearOutline,qnt=U6(),pO=FM(),Ont=lO(),Bnt=kd().getModuleCalcData,qne=Ea.relinkPrivateKeys,mb=Ea._,ca=Yne.exports={};Ea.extendFlat(ca,bl);ca.attributes=vl();ca.attributes.type.values=ca.allTypes;ca.fontAttrs=Mu();ca.layoutAttributes=s3();var j6=zne();ca.executeAPICommand=j6.executeAPICommand;ca.computeAPICommandBindings=j6.computeAPICommandBindings;ca.manageCommandObserver=j6.manageCommandObserver;ca.hasSimpleAPICommandBindings=j6.hasSimpleAPICommandBindings;ca.redrawText=function(e){return e=Ea.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(bl.getComponentMethod("annotations","draw")(e),bl.getComponentMethod("legend","draw")(e),bl.getComponentMethod("colorbar","draw")(e),t(ca.previousPromises(e)))},300)})};ca.resize=function(e){e=Ea.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Ea.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Ea.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,bl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ca.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ca.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Ea.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Gne.defaultLine,"pointer-events":"all"}).each(function(){var u=Vne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Nnt(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Nnt(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ca.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ca.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Vne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ca.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Unt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Vnt=["year","month","dayMonth","dayMonthYear"];ca.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||ca.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=One(e,Unt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;ca.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),ca.sanitizeMargins(i)}else{ca.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,p=c.autosizable,E=x&&(b||p);E?ca.plotAutoSize(e,a,i):x&&ca.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=jnt(h,i.separators),i._extraFormat=One(e,Vnt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var k=i._subplots=Gnt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Hnt(o,l),ca.supplyDataDefaults(l,s,a,i);var _=Object.keys(A.x),C=Object.keys(A.y);if(_.length>1&&C.length>1){for(bl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f<_.length;f++)Ea.pushUnique(k.xaxis,_[f]);for(f=0;f15&&C.length>15&&i.shapes.length===0&&i.images.length===0,ca.linkSubplots(s,i,o,n),ca.cleanPlot(s,i,o,n);var F=!!(n._has&&n._has("cartesian")),q=!!(i._has&&i._has("cartesian")),V=F,H=q;V&&!H?n._bgLayer.remove():H&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Fnt({_fullLayout:n}),Wnt(s,i),qne(i,n),bl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var X=i._tracePreGUI,G={},N;for(N in X)G[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=ca.layoutAttributes.width.min,h=ca.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ca.sanitizeMargins(n)};ca.supplyLayoutModuleDefaults=function(e,t,r,n){var i=bl.componentsRegistry,a=t._basePlotModules,o,s,l,u=bl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(bl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Ea.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var E=r.xl!==void 0?r.xl:r.x,k=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:E,size:r.l+x},r:{val:k,size:r.r+x},b:{val:L,size:r.b+x},t:{val:A,size:r.t+x}},v[t]=1}if(!n._replotting)return ca.doAutoMargin(e)}};function Xnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Ap.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ca.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),jne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Ea.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var E in p)for(var k in p[E]){var A=p[E][k];o[k]=Math.max(o[k],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var _=0;for(var C in h)C!=="base"&&WM(h[C][L].size)&&(_=h[C][L].size>_?h[C][L].size:_);var S=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-S)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},F=P.val,q=P.size,V=T.val,H=T.size,X=r-o.r-o.l,G=n-o.t-o.b;for(var N in h){if(WM(q)&&h[N].r){var Z=h[N].r.val,ie=h[N].r.size;if(Z>F){var ae=(q*Z+(ie-X)*F)/(Z-F),we=(ie*(1-F)+(q-X)*(1-Z))/(Z-F);ae+we>l+u&&(l=ae,u=we)}}if(WM(H)&&h[N].t){var Ee=h[N].t.val,ke=h[N].t.size;if(Ee>V){var ye=(H*Ee+(ke-G)*V)/(Ee-V),K=(ke*(1-V)+(H-G)*(1-Ee))/(Ee-V);ye+K>f+c&&(f=ye,c=K)}}}}}var ce=Ea.constrain(r-a.l-a.r,Wne,v),pe=Ea.constrain(n-a.t-a.b,Zne,x),xe=Math.max(0,r-ce),Ce=Math.max(0,n-pe);if(xe){var Me=(l+u)/xe;Me>1&&(l/=Me,u/=Me)}if(Ce){var Le=(f+c)/Ce;Le>1&&(f/=Le,c/=Le)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ca.didMarginChange(s,i)||Xnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var je=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ca.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ca.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Ea.isPlainObject(h)){var v={},x;return Object.keys(h).sort().forEach(function(k){if(["_","["].indexOf(k.charAt(0))===-1){if(typeof h[k]=="function"){d&&(v[k]="_function");return}if(r==="keepdata"){if(k.substr(k.length-3)==="src")return}else if(r==="keepstream"){if(x=h[k+"src"],typeof x=="string"&&x.indexOf(":")>0&&!Ea.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[k+"src"],typeof x=="string"&&x.indexOf(":")>0))return;v[k]=u(h[k],d)}}),v}var b=Array.isArray(h),p=Ea.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var E=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Ea.isArrayBuffer(E)?Dnt.encode(E):E},d)}return b?h.map(function(k){return u(k,d)}):p?Ea.simpleMap(h,Ea.identity):Ea.isJSDate(h)?Ea.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};ca.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return bl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return bl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[ca.previousPromises,l,r.prepareFn,ca.rehover,ca.reselect,o],c=Ea.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}ca.doCalcdata=function(e,t){var r=Ap.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Fne,y:Fne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[E]=A}}for(Nne(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Nh=_e((_ir,Kne)=>{"use strict";Kne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Pl=_e(b0=>{"use strict";var vh=ya(),wy=Mr(),$nt=wy.strTranslate,gO=Zp(),Qnt=Nh().LINE_SPACING,eat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(eat),a=vh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=dat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};nat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var E=e.node().style.fill||"black",k=v.select("g");k.attr({fill:E,stroke:E});var A=k.node().getBoundingClientRect(),L=A.width,_=A.height;(L>b||_>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,_=A.height);var C=+e.attr("x"),S=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,C,S]+")"+$nt(-L/2,P-_/2)});else if(o[0]==="l")S=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var T=e.attr("text-anchor");C=C-L*(T==="middle"?.5:T==="end"?1:0),S=S+P-_/2}v.attr({x:C,y:S}),r&&r.call(e,x),l(x)})})):s(),e};var tat=/(<|<|<)/g,rat=/(>|>|>)/g;function iat(e){return e.replace(tat,"\\lt ").replace(rat,"\\gt ")}var Jne=[["$","$"],["\\(","\\)"]];function nat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){wy.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=wy.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Jne},displayAlign:"left"})},u=function(){a=wy.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Jne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var E="math-output-"+wy.randstr({},64);s=vh.select("body").append("div").attr({id:E}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(iat(e));var k=s.node();return n===2?MathJax.Hub.Typeset(k):MathJax.typeset([k])},d=function(){var E=s.select(n===2?".MathJax_SVG":".MathJax"),k=!E.empty()&&s.select("svg").node();if(!k)wy.log("There was an error in the tex syntax.",e),r();else{var A=k.getBoundingClientRect(),L;n===2?L=vh.select("body").select("#MathJax_SVG_glyphs"):L=E.select("defs"),r(E,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),p()}))}var tae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},aat={sub:"0.3em",sup:"-0.6em"},oat={sub:"-0.21em",sup:"0.42em"},$ne="\u200B",Qne=["http:","https:","mailto:","",void 0,":"],rae=b0.NEWLINES=/(\r\n?|\n)/g,yO=/(<[^<>]*>)/,_O=/<(\/?)([^ >]*)(\s+(.*))?>/i,sat=//i;b0.BR_TAG_ALL=//gi;var iae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,nae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,aae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,lat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&W6(n)}var uat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(yO),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,x-a)+i):s.push(f.substr(0,x));break}l=""}}return s.join("")};var cat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},fat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function W6(e){return e.replace(fat,function(t,r){var n;return r.charAt(0)==="#"?n=hat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=cat[r],n||t})}b0.convertEntities=W6;function hat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function dat(e,t){t=t.replace(rae," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(gO.svg,"tspan");vh.select(_).attr({class:"line",dy:a*Qnt+"em"}),e.appendChild(_),i=_;var C=n;if(n=[{node:_}],C.length>1)for(var S=1;S.",t);return}var C=n.pop();_!==C.type&&wy.log("Start tag <"+C.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var c=sat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(yO),h=0;h{"use strict";var vat=ya(),X6=id(),XM=ao(),Z6=Mr(),sae=ha(),pat=sb().isValid;function gat(e,t,r){var n=t?Z6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(Z6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function dae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var pae=Nq(),yat=pae.FORMAT_LINK,_at=pae.DATE_FORMAT_LINK;function xat(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?xO:gae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function xO(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+yat+"."].join(" ")}function gae(e,t){return xO(e,t)+[" And for dates see: "+_at+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}mae.exports={axisHoverFormat:xat,descriptionOnlyNumbers:xO,descriptionWithDates:gae}});var Cd=_e((Tir,Dae)=>{"use strict";var yae=Mu(),w3=dh(),Rae=Ed().dash,wO=to().extendFlat,_ae=Us().templatedArray,xae=Oc().descriptionWithDates,bat=Jo().ONEDAY,pm=ad(),wat=pm.HOUR_PATTERN,Tat=pm.WEEKDAY_PATTERN,bO={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Aat=wO({},bO,{values:bO.values.slice().concat(["sync"])});function bae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var wae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Tae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Aae={valType:"data_array",editType:"ticks"},Mae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Sae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Eae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var kae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Cae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Lae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Pae=wO({},Rae,{editType:"ticks"}),Iae={valType:"boolean",editType:"ticks"};Dae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:yae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:_ae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Tat,wat,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:bat},editType:"calc"}),tickmode:Aat,nticks:bae(),tick0:wae,dtick:Tae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Aae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Mae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Sae(),tickwidth:Eae(),tickcolor:kae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:wO({},Rae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:yae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:xae("tick label")},tickformatstops:_ae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:xae("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Iae,gridcolor:Cae,gridwidth:Lae(),griddash:Pae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:bO,nticks:bae("minor"),tick0:wae,dtick:Tae,tickvals:Aae,ticks:Mae,ticklen:Sae("minor"),tickwidth:Eae("minor"),tickcolor:kae,gridcolor:Cae,gridwidth:Lae("minor"),griddash:Pae,showgrid:Iae,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Y6=_e((Air,qae)=>{"use strict";var Ac=Cd(),zae=Mu(),Fae=to().extendFlat,Mat=Bu().overrideAll;qae.exports=Mat({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Ac.linecolor,outlinewidth:Ac.linewidth,bordercolor:Ac.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ac.minor.tickmode,nticks:Ac.nticks,tick0:Ac.tick0,dtick:Ac.dtick,tickvals:Ac.tickvals,ticktext:Ac.ticktext,ticks:Fae({},Ac.ticks,{dflt:""}),ticklabeloverflow:Fae({},Ac.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Ac.ticklen,tickwidth:Ac.tickwidth,tickcolor:Ac.tickcolor,ticklabelstep:Ac.ticklabelstep,showticklabels:Ac.showticklabels,labelalias:Ac.labelalias,tickfont:zae({}),tickangle:Ac.tickangle,tickformat:Ac.tickformat,tickformatstops:Ac.tickformatstops,tickprefix:Ac.tickprefix,showtickprefix:Ac.showtickprefix,ticksuffix:Ac.ticksuffix,showticksuffix:Ac.showticksuffix,separatethousands:Ac.separatethousands,exponentformat:Ac.exponentformat,minexponent:Ac.minexponent,showexponent:Ac.showexponent,title:{text:{valType:"string"},font:zae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Jl=_e((Sir,Bae)=>{"use strict";var Sat=Y6(),Eat=n3().counter,kat=Y1(),Oae=sb().scales,Mir=kat(Oae);function K6(e){return"`"+e+"`"}Bae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Oae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+K6(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",x=n+"max",b=n+"mid",p=K6(u+d),E=K6(u+v),k=K6(u+x),A=E+" and "+k,L={};L[v]=L[x]=void 0;var _={};_[d]=!1;var C={};return c==="color"&&(C.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},C[x]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=Sat),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:Eat("coloraxis"),dflt:null,editType:"calc"}),C}});var AO=_e((Eir,Nae)=>{"use strict";var Cat=to().extendFlat,Lat=Jl(),TO=sb().scales;Nae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:TO.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:TO.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:TO.RdBu,editType:"calc"}},coloraxis:Cat({_isSubplotObj:!0,editType:"calc"},Lat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var MO=_e((kir,Uae)=>{"use strict";var Pat=Mr();Uae.exports=function(t){return Pat.isPlainObject(t.colorbar)}});var kO=_e(EO=>{"use strict";var SO=ao(),Vae=Mr(),Hae=Jo(),Iat=Hae.ONEDAY,Rat=Hae.ONEWEEK;EO.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Iat:1;if(!e)return a;if(SO(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=SO(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};EO.tick0=function(e,t,r,n){if(t==="date")return Vae.cleanDate(e,Vae.dateTick0(r,n%Rat===0?1:0));if(!(n==="D1"||n==="D2"))return SO(e)?Number(e):0}});var xb=_e((Lir,jae)=>{"use strict";var Gae=kO(),Dat=Mr().isArrayOrTypedArray,zat=vv().isTypedArraySpec,Fat=vv().decodeTypedArraySpec;jae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(E){var k=s[E];return zat(k)&&(k=Fat(k)),k!==void 0?k:(l._template||{})[E]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Dat(d)?"array":h?"linear":"auto",x=n(u+"tickmode",v);if(x==="auto"||x==="sync")n(u+"nticks");else if(x==="linear"){var b=l.dtick=Gae.dtick(h,i);l.tick0=Gae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=_e((Pir,Zae)=>{"use strict";var CO=Mr(),Wae=Cd();Zae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Wae.minor:Wae,u=a?"minor.":"",c=CO.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=CO.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=CO.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var LO=_e((Iir,Xae)=>{"use strict";Xae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Zd=_e((Rir,Yae)=>{"use strict";var J6=Mr(),qat=Us();Yae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=J6.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=qat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var PO=Mr(),Oat=ha().contrast,Kae=Cd(),Bat=LO(),Nat=Zd();Jae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");PO.isPlainObject(o)||delete r.labelalias;var s=Bat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Oat(a.bgColor):c&&c!==Kae.color.dflt?c:u.color;if(PO.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Nat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Uat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function Uat(e,t){function r(i,a){return PO.coerce(e,t,Kae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=_e((zir,$ae)=>{"use strict";var Vat=LO();$ae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Vat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var IO=_e((Fir,Qae)=>{"use strict";var i_=Mr(),Hat=Us(),Gat=xb(),jat=T3(),Wat=t_(),Zat=r_(),Xat=Y6();Qae.exports=function(t,r,n){var i=Hat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,F){return i_.coerce(a,i,Xat,T,F)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),x=o("xref"),b=v==="paper",p=x==="paper",E,k,A,L="left";f?(A="middle",L=p?"left":"right",E=p?1.02:1,k=.5):(A=b?"bottom":"top",L="center",E=.5,k=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:E}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:k}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=i_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),Gat(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};_.indexOf("inside")!==-1&&(S.bgColor="black"),Zat(a,i,o,"linear",S),Wat(a,i,o,"linear",S),jat(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:C,P=i_.extendFlat({},C,{family:g.family,size:i_.bigFont(g.size)});i_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Uh=_e((qir,roe)=>{"use strict";var eoe=ao(),DO=Mr(),Yat=MO(),Kat=IO(),toe=sb().isValid,Jat=_a().traceIs;function RO(e,t){var r=t.slice(0,t.length-1);return t?DO.nestedProperty(e,r).get()||{}:e}roe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=RO(t,o),c=RO(r,o),f=RO(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var x=Jat(r,"contour")&&DO.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,DO.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[x,r,[h]];return}}var p=u[s+"min"],E=u[s+"max"],k=eoe(p)&&eoe(E)&&p{"use strict";var ioe=Mr(),$at=Us(),noe=AO(),Qat=Uh();aoe.exports=function(t,r){function n(f,h){return ioe.coerce(t,r,noe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return ioe.coerce(a,o,noe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=$at.newContainer(r,l,"coloraxis"),o._name=l,Qat(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var eot=Mr(),tot=Dv().hasColorscale,rot=Dv().extractOpts;soe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?eot.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=rot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var uoe=ao(),zO=Mr(),iot=Dv().extractOpts;coe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?zO.nestedProperty(r,o).get():r,l=iot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return zO.aggNums(Math.min,null,a)},v=function(){return zO.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&uoe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&uoe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,l._sync("colorscale",x)}}});var Su=_e((Uir,foe)=>{"use strict";var $6=sb(),A3=Dv();foe.exports={moduleType:"component",name:"colorscale",attributes:Jl(),layoutAttributes:AO(),supplyLayoutDefaults:ooe(),handleDefaults:Uh(),crossTraceDefaults:loe(),calc:zv(),scales:$6.scales,defaultScale:$6.defaultScale,getScale:$6.get,isValidScale:$6.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var lu=_e((Vir,doe)=>{"use strict";var hoe=Mr(),not=vv().isTypedArraySpec;doe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return hoe.isPlainObject(t)&&(hoe.isArrayOrTypedArray(t.size)||not(t.size))}}});var M3=_e((Hir,voe)=>{"use strict";var aot=ao();voe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return aot(l)&&l>0?Math.max(l,a):0}}});var rp=_e(pv=>{"use strict";var poe=Mr();pv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};pv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{yoe.exports=cot;var FO={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},uot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function cot(e){var t=[];return e.replace(uot,function(r,n,i){var a=n.toLowerCase();for(i=hot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==FO[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var dot=YM(),Zn=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},$o="M0,0Z",_oe=Math.sqrt(2),n_=Math.sqrt(3),qO=Math.PI,OO=Math.cos,BO=Math.sin;Aoe.exports={circle:{n:0,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?es(t,r,i):i}},square:{n:1,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.3,2);return es(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.4,2),i=Zn(e*1.2,2);return es(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.8/_oe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return es(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2/n_,2),i=Zn(e/2,2),a=Zn(e,2);return es(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2/n_,2),i=Zn(e/2,2),a=Zn(e,2);return es(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2/n_,2),i=Zn(e/2,2),a=Zn(e,2);return es(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2/n_,2),i=Zn(e/2,2),a=Zn(e,2);return es(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.6,2),i=Zn(e*1.2,2);return es(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.6,2),i=Zn(e*1.2,2);return es(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.6,2),i=Zn(e*1.2,2);return es(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.6,2),i=Zn(e*1.2,2);return es(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.951,2),i=Zn(e*.588,2),a=Zn(-e,2),o=Zn(e*-.309,2),s=Zn(e*.809,2);return es(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e/2,2),a=Zn(e*n_/2,2);return es(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e/2,2),a=Zn(e*n_/2,2);return es(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.924,2),i=Zn(e*.383,2);return es(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(Qo(t))return $o;var n=e*1.4,i=Zn(n*.225,2),a=Zn(n*.951,2),o=Zn(n*.363,2),s=Zn(n*.588,2),l=Zn(-n,2),u=Zn(n*-.309,2),c=Zn(n*.118,2),f=Zn(n*.809,2),h=Zn(n*.382,2);return es(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.66,2),i=Zn(e*.38,2),a=Zn(e*.76,2);return es(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*n_*.8,2),i=Zn(e*.8,2),a=Zn(e*1.6,2),o=Zn(e*4,2),s="A "+o+","+o+" 0 0 1 ";return es(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*n_*.8,2),i=Zn(e*.8,2),a=Zn(e*1.6,2),o=Zn(e*4,2),s="A "+o+","+o+" 0 0 1 ";return es(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.1,2),i=Zn(e*2,2),a="A "+i+","+i+" 0 0 1 ";return es(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.4,2),i=Zn(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return es(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*.7,2),i=Zn(e*1.4,2);return es(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.4,2),i=Zn(e*.7,2);return es(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e/_oe,2);return es(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.3,2);return es(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.3,2),i=Zn(e*.65,2);return es(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.4,2);return es(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.2,2),i=Zn(e*.85,2);return es(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e/2,2),i=Zn(e,2);return es(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.2,2),i=Zn(e*1.6,2),a=Zn(e*.8,2);return es(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.2,2),i=Zn(e*1.6,2),a=Zn(e*.8,2);return es(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.2,2),i=Zn(e*1.6,2),a=Zn(e*.8,2);return es(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.2,2),i=Zn(e*1.6,2),a=Zn(e*.8,2);return es(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.4,2);return es(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*1.4,2);return es(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2);return es(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e*2,2);return es(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e*2,2);return es(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2,2),i=Zn(e,2);return es(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2,2),i=Zn(e,2);return es(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e*2,2);return es(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e,2),i=Zn(e*2,2);return es(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2,2),i=Zn(e,2);return es(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Qo(t))return $o;var n=Zn(e*2,2),i=Zn(e,2);return es(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Qo(t))return $o;var n=qO/2.5,i=2*e*OO(n),a=2*e*BO(n);return es(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Qo(t))return $o;var n=qO/4,i=2*e*OO(n),a=2*e*BO(n);return es(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function Qo(e){return e===null}var xoe,boe,woe,Toe;function es(e,t,r){if((!e||e%360===0)&&!t)return r;if(woe===e&&Toe===t&&xoe===r)return boe;woe=e,Toe=t,xoe=r;function n(b,p){var E=OO(b),k=BO(b),A=p[0],L=p[1]+(t||0);return[A*E-L*k,A*k+L*E]}for(var i=e/180*qO,a=0,o=0,s=dot(r),l="",u=0;u{"use strict";var od=ya(),du=Mr(),vot=du.numberFormat,Ab=ao(),jO=id(),eL=_a(),Xd=ha(),pot=Su(),JM=du.strTranslate,tL=Pl(),got=Zp(),mot=Nh(),yot=mot.LINE_SPACING,zoe=U1().DESELECTDIM,_ot=lu(),xot=M3(),bot=rp().appendArrayPointValue,ia=joe.exports={};ia.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Xd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",NO(Tot(c))),l&&e.style("text-shadow",l==="auto"?tL.makeTextShadow(Xd.contrast(a)):NO(l)),u&&e.style("text-decoration-line",NO(Aot(u)))};function NO(e){return e==="none"?void 0:e}var wot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Tot(e){return wot[e]}function Aot(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ia.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};ia.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};ia.setRect=function(e,t,r,n,i){e.call(ia.setPosition,t,r).call(ia.setSize,n,i)};ia.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",JM(i,a));else return!1;return!0};ia.translatePoints=function(e,t,r){e.each(function(n){var i=od.select(this);ia.translatePoint(n,i,t,r)})};ia.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};ia.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=eL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){ia.hideOutsideRangePoint(u,od.select(this),r,n,o,s)})})}};ia.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};ia.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Xd.stroke(t,n||a.color),ia.dashLine(t,s,o)};ia.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";od.select(this).call(Xd.stroke,r||a.color).call(ia.dashLine,s,o)})};ia.dashLine=function(e,t,r){r=+r||0,t=ia.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};ia.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Foe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=i&&ia.getPatternAttr(i.shape,0,"");if(o){var s=ia.getPatternAttr(i.bgcolor,0,null),l=ia.getPatternAttr(i.fgcolor,0,null),u=i.fgopacity,c=ia.getPatternAttr(i.size,0,8),f=ia.getPatternAttr(i.solidity,0,.3),h=t.uid;ia.pattern(e,"point",r,h,o,c,f,void 0,i.fillmode,s,l,u)}else if(a&&a.type!=="none"){var d=a.type,v="scatterfill-"+t.uid;if(n&&(v="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var x,b;d==="horizontal"?(x={x:a.start,y:0},b={x:a.stop,y:0}):d==="vertical"&&(x={x:0,y:a.start},b={x:0,y:a.stop}),x.x=t._xA.c2p(x.x===void 0?t._extremes.x.min[0].val:x.x,!0),x.y=t._yA.c2p(x.y===void 0?t._extremes.y.min[0].val:x.y,!0),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.max[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.max[0].val:b.y,!0),e.call(Boe,r,v,"linear",a.colorscale,"fill",x,b,!0,!1)}else d==="horizontal"&&(d=d+"reversed"),e.call(ia.gradient,r,v,d,a.colorscale,"fill")}else t.fillcolor&&e.call(Xd.fill,t.fillcolor)}ia.singleFillStyle=function(e,t){var r=od.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Foe(e,i,t,!1)};ia.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=od.select(this);n[0].trace&&Foe(i,n[0].trace,t,r)})};var Soe=Moe();ia.symbolNames=[];ia.symbolFuncs=[];ia.symbolBackOffs=[];ia.symbolNeedLines={};ia.symbolNoDot={};ia.symbolNoFill={};ia.symbolList=[];Object.keys(Soe).forEach(function(e){var t=Soe[e],r=t.n;ia.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),ia.symbolNames[r]=e,ia.symbolFuncs[r]=t.f,ia.symbolBackOffs[r]=t.backoff||0,t.needLine&&(ia.symbolNeedLines[r]=!0),t.noDot?ia.symbolNoDot[r]=!0:ia.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(ia.symbolNoFill[r]=!0)});var Mot=ia.symbolNames.length,Sot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ia.symbolNumber=function(e){if(Ab(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=ia.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Mot||e>=400?0:Math.floor(Math.max(e,0))};function qoe(e,t,r,n){var i=e%100;return ia.symbolFuncs[i](t,r,n)+(e>=200?Sot:"")}var Eoe=vot("~f"),Ooe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};ia.gradient=function(e,t,r,n,i,a){var o=Ooe[n];return Boe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Boe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=ia.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=XO(e,r),f=ZO(e,r);t.attr("d",qoe(u,l,c,f))}var h=!1,d,v,x;if(e.so)x=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):du.isArrayOrTypedArray(s.color)?v=Xd.defaultLine:v=s.color,du.isArrayOrTypedArray(o.color)&&(d=Xd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Xd.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var p=o.gradient,E=e.mgt;E?h=!0:E=p&&p.type,du.isArrayOrTypedArray(E)&&(E=E[0],Ooe[E]||(E=0));var k=o.pattern,A=k&&ia.getPatternAttr(k.shape,e.i,"");if(E&&E!=="none"){var L=e.mgc;L?h=!0:L=p.color;var _=r.uid;h&&(_+="-"+e.i),ia.gradient(t,i,_,E,[[0,L],[1,d]],"fill")}else if(A){var C=!1,S=k.fgcolor;!S&&a&&a.color&&(S=a.color,C=!0);var g=ia.getPatternAttr(S,e.i,a&&a.color||null),P=ia.getPatternAttr(k.bgcolor,e.i,null),T=k.fgopacity,F=ia.getPatternAttr(k.size,e.i,8),q=ia.getPatternAttr(k.solidity,e.i,.3);C=C||e.mcc||du.isArrayOrTypedArray(k.shape)||du.isArrayOrTypedArray(k.bgcolor)||du.isArrayOrTypedArray(k.fgcolor)||du.isArrayOrTypedArray(k.size)||du.isArrayOrTypedArray(k.solidity);var V=r.uid;C&&(V+="-"+e.i),ia.pattern(t,"point",i,V,A,F,q,e.mcc,k.fillmode,P,g,T)}else du.isArrayOrTypedArray(d)?Xd.fill(t,d[e.i]):Xd.fill(t,d);x&&Xd.stroke(t,v)}};ia.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=ia.tryColorscale(r,""),t.lineScale=ia.tryColorscale(r,"line"),eL.traceIs(e,"symbols")&&(t.ms2mrc=_ot.isBubble(e)?xot(e):function(){return(r.size||6)/2}),e.selectedpoints&&du.extendFlat(t,ia.makeSelectedPointStyleFns(e)),t};ia.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:zoe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var x=i.size,b=a.size,p=o.size,E=b!==void 0,k=p!==void 0;return eL.traceIs(e,"symbols")&&(E||k)&&(t.selectedSizeFn=function(A){var L=A.mrc||x/2;return A.selected?E?b/2:L:k?p/2:L}),t};ia.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Xd.addOpacity(f,zoe))},t};ia.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=ia.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Xd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",qoe(ia.symbolNumber(s),l,XO(o,t),ZO(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=od.select(this),s=0;s0?r:0}ia.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=ia.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=od.select(this),u=a?du.extractOption(s,t,"txt","texttemplate"):du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};bot(h,t,s.i);var d=t._meta||{};u=du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,x=Uoe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(ia.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(u).call(tL.convertToTspans,r).call(Noe,v,x,s.mrc)})}};ia.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=ia.makeSelectedTextStyleFns(t);e.each(function(n){var i=od.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Uoe(n,t);Xd.fill(i,a);var l=eL.traceIs(t,"bar-like");Noe(i,o,s,n.mrc2||n.mrc,l)})}};var koe=.5;ia.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}ia.applyBackoff=Goe;ia.makeTester=function(){var e=du.ensureSingleById(od.select("body"),"svg","js-plotly-tester",function(r){r.attr(got.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ia.tester=e,ia.testref=t};ia.savedBBoxes={};var VO=0,Cot=1e4;ia.bBox=function(e,t,r){r||(r=Coe(e));var n;if(r){if(n=ia.savedBBoxes[r],n)return du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Coe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=ia.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=ia.savedBBoxes[r],n)return du.extendFlat({},n)}}var u,c;t?u=e:(c=ia.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),od.select(u).attr("transform",null).call(tL.positionText,0,0);var f=u.getBoundingClientRect(),h=ia.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return VO>=Cot&&(ia.savedBBoxes={},VO=0),r&&(ia.savedBBoxes[r]=d),VO++,du.extendFlat({},d)};function Coe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ia.setClipUrl=function(e,t,r){e.attr("clip-path",WO(t,r))};function WO(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}ia.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};ia.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=JM(t,r),o=o.trim(),e[a]("transform",o),o};ia.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};ia.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var Lot=/\s*sc.*/;ia.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(Lot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Pot=/translate\([^)]*\)\s*$/;ia.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=od.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Pot);t===1&&r===1?n=[]:n=[JM(o,s),"scale("+t+","+r+")",JM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function ZO(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}ia.getMarkerStandoff=ZO;var KM=Math.atan2,bb=Math.cos,E3=Math.sin;function Loe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Poe,Ioe,Roe,Doe,HO,GO;function XO(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=KM(h[1]-i,h[0]-n),v=KM(f[1]-i,f[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,E=Poe/180*Math.PI,k=Ioe/180*Math.PI,A=E-b,L=bb(k)*E3(A),_=E3(k)*bb(p)-bb(k)*E3(p)*bb(A);x=-KM(L,_)-Math.PI,Poe=u,Ioe=c}var C=Loe(d,[bb(x),0]),S=Loe(v,[E3(x),0]);r=KM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(GO===t.uid&&e.i===HO+1)&&(r=null)}if(a==="previous"&&!t._geo)if(GO===t.uid&&e.i===HO+1&&Ab(n)&&Ab(i)){var g=n-Roe,P=i-Doe,T=t.line&&t.line.shape||"",F=T.slice(T.length-1);F==="h"&&(P=0),F==="v"&&(g=0),r+=KM(P,g)/Math.PI*180+90}else r=null}return Roe=n,Doe=i,HO=e.i,GO=t.uid,r}ia.getMarkerAngle=XO});var Sb=_e((Xir,Yoe)=>{"use strict";var k3=ya(),Iot=ao(),Rot=Xu(),YO=_a(),Mb=Mr(),Woe=Mb.strTranslate,rL=ro(),iL=ha(),C3=Pl(),Zoe=U1(),Dot=Nh().OPPOSITE_SIDE,Xoe=/ [XY][0-9]* /,KO=1.6,JO=1.6;function zot(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},p=b.family,E=b.size,k=b.color,A=b.weight,L=b.style,_=b.variant,C=b.textcase,S=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,F=r.subtitlePlaceholder,q=(i.title||{}).subtitle||{text:"",font:{}},V=q.text.trim(),H=!1,X=1,G=q.font,N=G.family,Z=G.size,ie=G.color,ae=G.weight,we=G.style,Ee=G.variant,ke=G.textcase,ye=G.lineposition,K=G.shadow,ce;a==="title.text"?ce="titleText":a.indexOf("axis")!==-1?ce="axisTitleText":a.indexOf("colorbar"!==-1)&&(ce="colorbarTitleText");var pe=e._context.edits[ce];function xe(Lt,Rt){return Lt===void 0||Rt===void 0?!1:Lt.replace(Xoe," % ")===Rt.replace(Xoe," % ")}v===""?h=0:xe(v,o)&&(pe||(v=""),h=.2,x=!0),T&&(V===""?X=0:xe(V,F)&&(pe||(V=""),X=.2,H=!0)),r._meta?v=Mb.templateString(v,r._meta):n._meta&&(v=Mb.templateString(v,n._meta));var Ce=v||V||pe,Me;f||(f=Mb.ensureSingle(n._infolayer,"g","g-"+t),Me=n._hColorbarMoveTitle);var Le=f.selectAll("text."+t).data(Ce?[0]:[]);Le.enter().append("text"),Le.text(v).attr("class",t),Le.exit().remove();var je=null,Se=t+"-subtitle",Xe=V||pe;if(T&&Xe&&(je=f.selectAll("text."+Se).data(Xe?[0]:[]),je.enter().append("text"),je.text(V).attr("class",Se),je.exit().remove()),!Ce)return f;function lt(Lt,Rt){Mb.syncOrAsync([At,Yt],{title:Lt,subtitle:Rt})}function At(Lt){var Rt=Lt.title,Xt=Lt.subtitle,xr;!c&&Me&&(c={}),c?(xr="",c.rotate&&(xr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Me)&&(xr+=Woe(0,(c.offset||0)-(Me||0)))):xr=null,Rt.attr("transform",xr);function er(kt){if(kt){var ft=k3.select(kt.node().parentNode).select("."+Se);if(!ft.empty()){var Gt=kt.node().getBBox();if(Gt.height){var $t=Gt.y+Gt.height+KO*Z;ft.attr("y",$t)}}}}if(Rt.style("opacity",h*iL.opacity(k)).call(rL.font,{color:iL.rgb(k),size:k3.round(E,2),family:p,weight:A,style:L,variant:_,textcase:C,shadow:g,lineposition:S}).attr(u).call(C3.convertToTspans,e,er),Xt){var Ge=f.select("."+t+"-math-group"),yt=Rt.node().getBBox(),_t=Ge.node()?Ge.node().getBBox():void 0,Ct=_t?_t.y+_t.height+KO*Z:yt.y+yt.height+JO*Z,St=Mb.extendFlat({},u,{y:Ct});Xt.attr("transform",xr),Xt.style("opacity",X*iL.opacity(ie)).call(rL.font,{color:iL.rgb(ie),size:k3.round(Z,2),family:N,weight:ae,style:we,variant:Ee,textcase:ke,shadow:K,lineposition:ye}).attr(St).call(C3.convertToTspans,e)}return Rot.previousPromises(e)}function Yt(Lt){var Rt=Lt.title,Xt=k3.select(Rt.node().parentNode);if(l&&l.selection&&l.side&&v){Xt.attr("transform",null);var xr=Dot[l.side],er=l.side==="left"||l.side==="top"?-1:1,Ge=Iot(l.pad)?l.pad:2,yt=rL.bBox(Xt.node()),_t={t:0,b:0,l:0,r:0},Ct=e._fullLayout._reservedMargin;for(var St in Ct)for(var kt in Ct[St]){var ft=Ct[St][kt];_t[kt]=Math.max(_t[kt],ft)}var Gt={left:_t.l,top:_t.t,right:n.width-_t.r,bottom:n.height-_t.b},$t=l.maxShift||er*(Gt[l.side]-yt[l.side]),hr=0;if($t<0)hr=$t;else{var _r=l.offsetLeft||0,Nr=l.offsetTop||0;yt.left-=_r,yt.right-=_r,yt.top-=Nr,yt.bottom-=Nr,l.selection.each(function(){var Ur=rL.bBox(this);Mb.bBoxIntersect(yt,Ur,Ge)&&(hr=Math.max(hr,er*(Ur[l.side]-yt[xr])+Ge))}),hr=Math.min($t,hr),i._titleScoot=Math.abs(hr)}if(hr>0||$t<0){var Br={left:[-hr,0],right:[hr,0],top:[0,-hr],bottom:[0,hr]}[l.side];Xt.attr("transform",Woe(Br[0],Br[1]))}}}Le.call(lt,je);function nt(Lt,Rt){Lt.text(Rt).on("mouseover.opacity",function(){k3.select(this).transition().duration(Zoe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k3.select(this).transition().duration(Zoe.HIDE_PLACEHOLDER).style("opacity",0)})}if(pe&&(v?Le.on(".opacity",null):(nt(Le,o),x=!0),Le.call(C3.makeEditable,{gd:e}).on("edit",function(Lt){s!==void 0?YO.call("_guiRestyle",e,a,Lt,s):YO.call("_guiRelayout",e,a,Lt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Lt){this.text(Lt||" ").call(C3.positionText,u.x,u.y)}),T)){if(T&&!v){var ot=Le.node().getBBox(),Ft=ot.y+ot.height+JO*Z;je.attr("y",Ft)}V?je.on(".opacity",null):(nt(je,F),H=!0),je.call(C3.makeEditable,{gd:e}).on("edit",function(Lt){YO.call("_guiRelayout",e,"title.subtitle.text",Lt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Lt){this.text(Lt||" ").call(C3.positionText,je.attr("x"),je.attr("y"))})}return Le.classed("js-placeholder",x),je&&je.classed("js-placeholder",H),f}Yoe.exports={draw:zot,SUBTITLE_PADDING_EM:JO,SUBTITLE_PADDING_MATHJAX_EM:KO}});var ym=_e((Yir,ese)=>{"use strict";var Fot=ya(),qot=e3().utcFormat,Nu=Mr(),Oot=Nu.numberFormat,gm=ao(),a_=Nu.cleanNumber,Bot=Nu.ms2DateTime,Koe=Nu.dateTime2ms,mm=Nu.ensureNumber,Joe=Nu.isArrayOrTypedArray,o_=Jo(),nL=o_.FP_SAFE,bg=o_.BADNUM,Not=o_.LOG_CLIP,Uot=o_.ONEWEEK,aL=o_.ONEDAY,oL=o_.ONEHOUR,$oe=o_.ONEMIN,Qoe=o_.ONESEC,sL=af(),cL=ad(),lL=cL.HOUR_PATTERN,uL=cL.WEEKDAY_PATTERN;function $M(e){return Math.pow(10,e)}function $O(e){return e!=null}ese.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],C=t.range[1];return .5*(_+C-2*Not*Math.abs(_-C))}else return bg}function o(A,L,_,C){if((C||{}).msUTC&&gm(A))return+A;var S=Koe(A,_||t.calendar);if(S===bg)if(gm(A)){A=+A;var g=Math.floor(Nu.mod(A+.05,1)*10),P=Math.round(A-g/10);S=Koe(new Date(P))+g/10}else return bg;return S}function s(A,L,_){return Bot(A,L,_||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if($O(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return bg}function c(A,L){for(var _=new Array(L),C=0;Ct.range[1]&&(_=!_);for(var C=_?-1:1,S=C*A,g=0,P=0;PF)g=P+1;else{g=S<(T+F)/2?P:P+1;break}}var q=t._B[g]||0;return isFinite(q)?v(A,t._m2,q):0},p=function(A){var L=t._rangebreaks.length;if(!L)return x(A,t._m,t._b);for(var _=0,C=0;Ct._rangebreaks[C].pmax&&(_=C+1);return x(A,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?$M:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return $M(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(a_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(a_(A),L)},t.r2d=t.r2c=function(A){return $M(a_(A))},t.d2c=t.r2l=a_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=$M,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return $M(p(A))},t.r2p=function(A){return t.l2p(a_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=Nu.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,_){return t.l2p(o(A,0,_))},t.p2d=t.p2r=function(A,L,_){return s(p(A),L,_)},t.cleanPos=function(A){return Nu.cleanDate(A,bg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,_,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var g in S)if(g!==n){var P=r[sL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],F=[];for(_=0;_P[1]&&(C[g?0:1]=_),C[0]===C[1]){var T=t.l2r(L),F=t.l2r(_);if(L!==void 0){var q=T+1;_!==void 0&&(q=Math.min(q,F)),C[g?1:0]=q}if(_!==void 0){var V=F+1;L!==void 0&&(V=Math.max(V,T)),C[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var _=Nu.nestedProperty(t,A).get(),C,S;if(t.type==="date"?S=Nu.dfltRange(t.calendar):i==="y"?S=cL.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||cL.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!_||_.length!==2){Nu.nestedProperty(t,A).set(S);return}var g=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=Nu.cleanDate(_[0],bg,t.calendar),_[1]=Nu.cleanDate(_[1],bg,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!Nu.isDateTime(_[C],t.calendar)){t[A]=S;break}if(t.r2l(_[0])===t.r2l(_[1])){var T=Nu.constrain(t.r2l(_[0]),Nu.MIN_MS+1e3,Nu.MAX_MS-1e3);_[0]=t.l2r(T-1e3),_[1]=t.l2r(T+1e3);break}}else{if(!gm(_[C]))if(!(g||P)&&gm(_[1-C]))_[C]=_[1-C]*(C?10:.1);else{t[A]=S;break}if(_[C]<-nL?_[C]=-nL:_[C]>nL&&(_[C]=nL),_[0]===_[1]){var F=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=F,_[1]+=F}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var _=sL.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var C=A&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var F,q;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(F=0;FP&&(V=!V),V&&t._rangebreaks.reverse();var H=V?-1:1;for(t._m2=H*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),F=0;FS&&(S+=7,gS&&(S+=24,g=C&&g=C&&A=K.min&&(weK.max&&(K.max=Ee),ke=!1)}ke&&P.push({min:we,max:Ee})}};for(_=0;_{"use strict";var tse=ao(),QO=Mr(),Vot=Jo().BADNUM,fL=QO.isArrayOrTypedArray,Hot=QO.isDateTime,Got=QO.cleanNumber,rse=Math.round;nse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(fL(i)&&!i.length)return"-";if(!a&&Yot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function ise(e){return Math.max(1,(e-1)/1e3)}function Xot(e,t){for(var r=e.length,n=ise(r),i=0,a=0,o={},s=0;si*2}function Yot(e){return fL(e[0])&&fL(e[1])}});var wg=_e((Jir,hse)=>{"use strict";var Kot=ya(),lse=ao(),s_=Mr(),hL=Jo().FP_SAFE,Jot=_a(),$ot=ro(),use=af(),Qot=use.getFromId,est=use.isLinked;hse.exports={applyAutorangeOptions:fse,getAutoRange:eB,makePadFn:tB,doAutoRange:rst,findExtremes:ist,concatExtremes:nB};function eB(e,t){var r,n,i=[],a=e._fullLayout,o=tB(a,t,0),s=tB(a,t,1),l=nB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return s_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=k-o(_)-s(C),P>A?T/P>L&&(S=_,g=C,L=T/P):T/k>L&&(S={val:_.val,nopad:1},g={val:C.val,nopad:1},L=T/k));function F(G,N){return Math.max(G,s(N))}if(f===h){var q=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var H=(f>0?c:u).reduce(F,0),X=f/(1-Math.min(.5,H/k));i=f>0?[0,X]:[X,0]}else E?i=[Math.max(0,q),Math.max(1,V)]:i=[q,V]}else p?(S.val>=0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):E&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-S.val-ase(t,_.val,C.val))/(k-o(S)-s(g)),i=[S.val-L*o(S),g.val+L*s(g)];return i=fse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function ase(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=A(r.vpadplus||r.vpad),S=A(r.vpadminus||r.vpad);if(!u){if(E=1/0,k=-1/0,l)for(f=0;f0&&(E=h),h>k&&h-hL&&(E=h),h>k&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function rB(e,t,r,n){cse(e,t,r,n,nst)}function iB(e,t,r,n){cse(e,t,r,n,ast)}function cse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function sse(e){return lse(e)&&Math.abs(e)=t}function ost(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&dL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&dL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function sst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&dL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&dL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function dL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=ost(r,t),n=sst(n,t),[r,n]}});var Ka=_e(($ir,Dse)=>{"use strict";var w0=ya(),ph=ao(),P3=Xu(),eS=_a(),Bo=Mr(),I3=Bo.strTranslate,Eb=Pl(),lst=Sb(),tS=ha(),Xp=ro(),ust=Cd(),dse=kO(),Yd=Jo(),cst=Yd.ONEMAXYEAR,gL=Yd.ONEAVGYEAR,mL=Yd.ONEMINYEAR,fst=Yd.ONEMAXQUARTER,lB=Yd.ONEAVGQUARTER,yL=Yd.ONEMINQUARTER,hst=Yd.ONEMAXMONTH,R3=Yd.ONEAVGMONTH,_L=Yd.ONEMINMONTH,Yp=Yd.ONEWEEK,Fv=Yd.ONEDAY,l_=Fv/2,xm=Yd.ONEHOUR,rS=Yd.ONEMIN,xL=Yd.ONESEC,dst=Yd.ONEMILLI,vst=Yd.ONEMICROSEC,kb=Yd.MINUS_SIGN,TL=Yd.BADNUM,uB={K:"zeroline"},cB={K:"gridline",L:"path"},fB={K:"minor-gridline",L:"path"},Ase={K:"tick",L:"path"},vse={K:"tick",L:"text"},pse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},AL=Nh(),QM=AL.MID_SHIFT,Cb=AL.CAP_SHIFT,iS=AL.LINE_SPACING,pst=AL.OPPOSITE_SIDE,bL=3,En=Dse.exports={};En.setConvert=ym();var gst=L3(),Ty=af(),mst=Ty.idSort,yst=Ty.isLinked;En.id2name=Ty.id2name;En.name2id=Ty.name2id;En.cleanId=Ty.cleanId;En.list=Ty.list;En.listIds=Ty.listIds;En.getFromId=Ty.getFromId;En.getFromTrace=Ty.getFromTrace;var Mse=wg();En.getAutoRange=Mse.getAutoRange;En.findExtremes=Mse.findExtremes;var _st=1e-4;function pB(e){var t=(e[1]-e[0])*_st;return[e[0]-t,e[1]+t]}En.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Bo.coerce(e,t,u,l)};En.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};En.coercePosition=function(e,t,r,n,i,a){var o,s,l=En.getRefType(n);if(l!=="range")o=Bo.ensureNumber,s=r(i,a);else{var u=En.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};En.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Bo.ensureNumber:En.getFromId(t,r).cleanPos;return n(e)};En.redrawComponents=function(e,t){t=t||En.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=eS.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};En.saveRangeInitial=function(e,t){for(var r=En.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=En.tickIncrement(e,"M6","reverse")+Fv*1.5:a.exactMonths>o?e=En.tickIncrement(e,"M1","reverse")+Fv*15.5:e-=l_;var l=En.tickIncrement(e,r);if(l<=n)return l}return e}En.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&ph(t._tmin),i;if(n){var a=En.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Bo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Bo.simpleMap(i,t.l2r),e._isMinor=!0,En.prepTicks(e,r),n){var s=ph(t.dtick),l=ph(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?aB(u,c)?u===2*Yp&&c===2*Fv&&(e.dtick=Yp):u===2*Yp&&c===3*Fv?e.dtick=Yp:u===Yp&&!(t._input.minor||{}).nticks?e.dtick=Fv:yse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":aB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?aB(u,c)||(e.dtick=yse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function aB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function yse(e,t){return Math.abs(e/t-1)<.001}En.prepTicks=function(e,t){var r=Bo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Bo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Bo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,En.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=mL?u>=mL&&u<=cst?f=u:f=gL:r===lB&&c>=yL?u>=yL&&u<=fst?f=u:f=lB:c>=_L?u>=_L&&u<=hst?f=u:f=R3:r===Yp&&c>=Yp?f=Yp:c>=Fv?f=Fv:r===l_&&c>=l_?f=l_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,x=0,b=0;bYp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}En.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Bo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Bo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(k?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=A?t:Bo.extendFlat({},t,t.minor);if(L?En.prepMinorTicks(_,t,r):En.prepTicks(_,r),_.tickmode==="array"){A?(b=[],v=_se(t,!L)):(p=[],x=_se(t,!L));continue}if(_.tickmode==="sync"){b=[],v=Mst(t);continue}var C=pB(u),S=C[0],g=C[1],P=ph(_.dtick),T=n==="log"&&!(P||_.dtick.charAt(0)==="L"),F=En.tickFirst(_,r);if(A){if(t._tmin=F,F=g:V<=g;V=En.tickIncrement(V,G,c,i)){if(A&&H++,_.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===q)break;q=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&H%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var Z=(p[1].value-p[0].value)*(s?-1:1);Yst(Z,t.tickformat)||(l=!1)}if(!l)E=b;else{var ie=b.concat(p);o&&b.length&&(ie=ie.slice(1)),ie=ie.sort(function(Ft,Lt){return Ft.value-Lt.value}).filter(function(Ft,Lt,Rt){return Lt===0||Ft.value!==Rt[Lt-1].value});var ae=ie.map(function(Ft,Lt){return Ft.minor===void 0&&!Ft.skipLabel?Lt:null}).filter(function(Ft){return Ft!==null});ae.forEach(function(Ft){l.map(function(Lt){var Rt=Ft+Lt;Rt>=0&&Rt-1;Ce--){if(b[Ce].drop){b.splice(Ce,1);continue}b[Ce].value=sB(b[Ce].value,t);var Se=t.c2p(b[Ce].value);(Me?je>Se-Le:jeh||Xth&&(Rt.periodX=h),Xti&&hgL)t/=gL,n=i(10),e.dtick="M"+12*_m(t,n,vL);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,xse);else if(a>Fv){if(e.dtick=_m(t,Fv,e._hasDayOfWeekBreaks?[1,2,7,14]:Sst),!r){var o=En.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Bo.dateTick0(e.calendar,2):e.tick0=Bo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,xse):a>rS?e.dtick=_m(t,rS,bse):a>xL?e.dtick=_m(t,xL,bse):(n=i(10),e.dtick=_m(t,n,vL))}else if(e.type==="log"){e.tick0=0;var l=Bo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+_m(t,n,vL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):yB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,Est)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,vL));if(e.dtick===0&&(e.dtick=1),!ph(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Cse(e){var t=e.dtick;if(e._tickexponent=0,!ph(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Fv&&i<=10||t>=Fv*15)e._tickround="d";else if(t>=rS&&i<=16||t>=xm)e._tickround="M";else if(t>=xL&&i<=19||t>=rS)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(ph(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ph(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(wL(e.exponentformat)&&!gB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}En.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(ph(t))return Bo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Bo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?kse:Ese,l=e+i*.01,u=Bo.roundUp(Bo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};En.tickFirst=function(e,t){var r=e.r2l||Number,n=Bo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Bo.isArrayOrTypedArray(e.ticktext)){var f=Bo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=aS(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Cst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=nS(Math.pow(10,o),e,i,n);else if(ph(a)||l==="D"&&Bo.mod(o+.01,1)<.1){var u=Math.round(o),c=Math.abs(u),f=e.exponentformat;f==="power"||wL(f)&&gB(u)?(u===0?t.text=1:u===1?t.text="10":t.text="10"+(u>1?"":kb)+c+"",t.fontSize*=1.25):(f==="e"||f==="E")&&c>2?t.text="1"+f+(u>0?"+":kb)+c:(t.text=nS(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=String(Math.round(Math.pow(10,Bo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function Lst(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Pst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function Ist(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=nS(t.x,e,i,n)}function Rst(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Dst(a);if(o[1]>=100)t.text=nS(Bo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=kb+t.text)}}}else t.text=nS(t.x,e,i,n)}function Dst(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var zst=["f","p","n","\u03BC","m","","k","M","G","T"];function wL(e){return e==="SI"||e==="B"}function gB(e){return e>14||e<-15}function nS(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=En.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:ph(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Cse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,kb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":wL(o)&&(e+=zst[s/3+5])}return i?kb+e:e}En.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Bo.syncOrAsync(i.map(function(l){return function(){if(l){var u=En.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=En.drawOne(e,u,r);return u._shiftPusher&&vB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Bo.simpleMap(u._r,u.r2l),c}}}))};En.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=En.counterLetter(u),h=l._plots[t._mainSubplot];if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var d=t.linewidth/2||0;t.ticks==="inside"&&(d+=t.ticklen),vB(t,d,n,!0),vB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Xst(t,n));var v=h[c+"axislayer"],x=t._mainLinePosition,b=x+=t._shift,p=t._mainMirrorPosition,E=t._vals=En.calcTicks(t),k=[t.mirror,b,p].join("_");for(a=0;a0?Rt.bottom-Ft:0,Lt))));var Ge=0,yt=0;if(t._shiftPusher&&(Ge=Math.max(Lt,Rt.height>0?nt==="l"?Ft-Rt.left:Rt.right-Ft:0),t.title.text!==l._dfltTitle[c]&&(yt=(t._titleStandoff||0)+(t._titleScoot||0),nt==="l"&&(yt+=Tse(t))),t._fullDepth=Math.max(Ge,yt)),t.automargin){Xt={x:0,y:0,r:0,l:0,t:0,b:0};var _t=[0,1],Ct=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(nt==="b"?Xt[nt]=t._depth:(Xt[nt]=t._depth=Math.max(Rt.width>0?Ft-Rt.top:0,Lt),_t.reverse()),Rt.width>0){var St=Rt.right-(t._offset+t._length);St>0&&(Xt.xr=1,Xt.r=St);var kt=t._offset-Rt.left;kt>0&&(Xt.xl=0,Xt.l=kt)}}else if(nt==="l"?(t._depth=Math.max(Rt.height>0?Ft-Rt.left:0,Lt),Xt[nt]=t._depth-Ct):(t._depth=Math.max(Rt.height>0?Rt.right-Ft:0,Lt),Xt[nt]=t._depth+Ct,_t.reverse()),Rt.height>0){var ft=Rt.bottom-(t._offset+t._length);ft>0&&(Xt.yb=0,Xt.b=ft);var Gt=t._offset-Rt.top;Gt>0&&(Xt.yt=1,Xt.t=Gt)}Xt[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[_t[0]],t.title.text!==l._dfltTitle[c]&&(Xt[nt]+=Tse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(xr={x:0,y:0,r:0,l:0,t:0,b:0},xr[ot]=t.linewidth,t.mirror&&t.mirror!==!0&&(xr[ot]+=Lt),t.mirror===!0||t.mirror==="ticks"?xr[f]=t._anchorAxis.domain[_t[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(xr[f]=[t._counterDomainMin,t._counterDomainMax][_t[1]]))}Yt&&(er=eS.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(wse(Xt,t.automargin),wse(xr,t.automargin)),P3.autoMargin(e,mB(t),Xt),P3.autoMargin(e,Ise(t),xr),P3.autoMargin(e,Rse(t),er)}),Bo.syncOrAsync(lt)}};function wse(e,t){if(e){var r=Object.keys(pse).reduce(function(n,i){return t.indexOf(i)!==-1&&pse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Fst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Bo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(hB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(hB(h))+r)}};function hB(e){return e.periodX!==void 0?e.periodX:e.x}function Nst(e){var t=e.ticklabelposition||"",r=function(d){return t.indexOf(d)!==-1},n=r("top"),i=r("left"),a=r("right"),o=r("bottom"),s=r("inside"),l=o||i||n||a;if(!l&&!s)return[0,0];var u=e.side,c=l?(e.tickwidth||0)/2:0,f=bL,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*Cb,f+=(e.linewidth||0)/2),(i||a)&&(c+=(e.linewidth||0)/2,f+=bL),s&&u==="top"&&(f-=h*(1-Cb)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(f=-f),[l?c:0,s?f:0]}En.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};En.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(F){return n.indexOf(F)!==-1},a=i("top"),o=i("left"),s=i("right"),l=i("bottom"),u=l||o||a||s,c=i("inside"),f=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&e.tickson!=="boundaries",h=0,d=0,v=f?e.ticklen:0;if(c?v*=-1:u&&(v=0),f&&(h+=v,r)){var x=Bo.deg2rad(r);h=v*Math.cos(x)+1,d=v*Math.sin(x)}e.showticklabels&&(f||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:h,labelShift:d},p,E,k,A,L=0,_=e.side,C=e._id.charAt(0),S=e.tickangle,g;if(C==="x")g=!c&&_==="bottom"||c&&_==="top",A=g?1:-1,c&&(A*=-1),p=d*A,E=t+h*A,k=g?1:-.2,Math.abs(S)===90&&(c?k+=QM:S===-90&&_==="bottom"?k=Cb:S===90&&_==="top"?k=QM:k=.5,L=QM/2*(S/90)),b.xFn=function(F){return F.dx+p+L*F.fontSize},b.yFn=function(F){return F.dy+E+F.fontSize*k},b.anchorFn=function(F,q){if(u){if(o)return"end";if(s)return"start"}return!ph(q)||q===0||q===180?"middle":q*A<0!==c?"end":"start"},b.heightFn=function(F,q,V){return q<-60||q>60?-.5*V:e.side==="top"!==c?-V:0};else if(C==="y"){if(g=!c&&_==="left"||c&&_==="right",A=g?1:-1,c&&(A*=-1),p=h,E=d*A,k=0,!c&&Math.abs(S)===90&&(S===-90&&_==="left"||S===90&&_==="right"?k=Cb:k=.5),c){var P=ph(S)?+S:0;if(P!==0){var T=Bo.deg2rad(P);L=Math.abs(Math.sin(T))*Cb*A,k=0}}b.xFn=function(F){return F.dx+t-(p+F.fontSize*k)*A+L*F.fontSize},b.yFn=function(F){return F.dy+E+F.fontSize*QM},b.anchorFn=function(F,q){return ph(q)&&Math.abs(q)===90?"middle":g?"end":"start"},b.heightFn=function(F,q,V){return e.side==="right"&&(q*=-1),q<-30?-V:q<30?-.5*V:0}}return b};function ML(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}En.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,ML);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return tS.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),SL(t,[Ase]),a.attr("transform",r.transFn)};En.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&En.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var x=v?h:d;if(x){var b=x.selectAll("path."+n).data(v?o:a,ML);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return tS.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}SL(t,[cB,fB])}};En.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=En.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return mst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(tS.stroke,t.zerolinecolor||tS.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),SL(t,[uB])};En.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=r.cls||i+"tick",o=r.vals.filter(function(N){return N.text}),s=r.labelFns,l=r.secondary?0:t.tickangle,u=(t._prevTickAngles||{})[a],c=r.layer.selectAll("g."+a).data(t.showticklabels?o:[],ML),f=[];c.enter().append("g").classed(a,1).append("text").attr("text-anchor","middle").each(function(N){var Z=w0.select(this),ie=e._promises.length;Z.call(Eb.positionText,s.xFn(N),s.yFn(N)).call(Xp.font,{family:N.font,size:N.fontSize,color:N.fontColor,weight:N.fontWeight,style:N.fontStyle,variant:N.fontVariant,textcase:N.fontTextcase,lineposition:N.fontLineposition,shadow:N.fontShadow}).text(N.text).call(Eb.convertToTspans,e),e._promises[ie]?f.push(e._promises.pop().then(function(){h(Z,l)})):h(Z,l)}),SL(t,[vse]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(N){w0.select(this).select("text").call(Eb.positionText,s.xFn(N),s.yFn(N))});function h(N,Z){N.each(function(ie){var ae=w0.select(this),we=ae.select(".text-math-group"),Ee=s.anchorFn(ie,Z),ke=r.transFn.call(ae.node(),ie)+(ph(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(ie)+","+(s.yFn(ie)-ie.fontSize/2)+")":""),ye=Eb.lineCount(ae),K=iS*ie.fontSize,ce=s.heightFn(ie,ph(Z)?+Z:0,(ye-1)*K);if(ce&&(ke+=I3(0,ce)),we.empty()){var pe=ae.select("text");pe.attr({transform:ke,"text-anchor":Ee}),pe.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var xe=Xp.bBox(we.node()).width,Ce=xe*{end:-.5,start:.5}[Ee];we.attr("transform",ke+I3(Ce,0))}})}t._adjustTickLabelsOverflow=function(){var N=t.ticklabeloverflow;if(!(!N||N==="allow")){var Z=N.indexOf("hide")!==-1,ie=t._id.charAt(0)==="x",ae=0,we=ie?e._fullLayout.width:e._fullLayout.height;if(N.indexOf("domain")!==-1){var Ee=Bo.simpleMap(t.range,t.r2l);ae=t.l2p(Ee[0])+t._offset,we=t.l2p(Ee[1])+t._offset}var ke=Math.min(ae,we),ye=Math.max(ae,we),K=t.side,ce=1/0,pe=-1/0;c.each(function(Le){var je=w0.select(this),Se=je.select(".text-math-group");if(Se.empty()){var Xe=Xp.bBox(je.node()),lt=0;ie?(Xe.right>ye||Xe.leftye||Xe.top+(t.tickangle?0:Le.fontSize/4)t["_visibleLabelMin_"+Ee._id]?Le.style("display","none"):ye.K==="tick"&&!ke&&Le.style("display",null)})})})})},h(c,u+1?u:l);function d(){return f.length&&Promise.all(f)}var v=null;function x(){if(h(c,l),o.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){v=t.autotickangles[0];var N=0,Z=[],ie,ae=1;c.each(function(Rt){N=Math.max(N,Rt.fontSize);var Xt=t.l2p(Rt.x),xr=dB(this),er=Xp.bBox(xr.node());ae=Math.max(ae,Eb.lineCount(xr)),Z.push({top:0,bottom:10,height:10,left:Xt-er.width/2,right:Xt+er.width/2+2,width:er.width+2})});var we=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ee=o.length,ke=Math.abs((o[Ee-1].x-o[0].x)*t._m)/(Ee-1),ye=we?ke/2:ke,K=we?t.ticklen:N*1.25*ae,ce=Math.sqrt(Math.pow(ye,2)+Math.pow(K,2)),pe=ye/ce,xe=t.autotickangles.map(function(Rt){return Rt*Math.PI/180}),Ce=xe.find(function(Rt){return Math.abs(Math.cos(Rt))<=pe});Ce===void 0&&(Ce=xe.reduce(function(Rt,Xt){return Math.abs(Math.cos(Rt))H*V&&(T=V,S[C]=g[C]=F[C])}var X=Math.abs(T-P);X-A>0?(X-=A,A*=1+A/X):A=0,t._id.charAt(0)!=="y"&&(A=-A),S[_]=E.p2r(E.r2p(g[_])+L*A),E.autorange==="min"||E.autorange==="max reversed"?(S[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(S[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=S}var G=Bo.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function Ust(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,ML);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(tS.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}En.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Tse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Cb+r*iS):r?t*(r+1)*iS:t}function Vst(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Cb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(QM+s*iS));else{var l=aS(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=En.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(v={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xp.getTranslate(x.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,lst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}En.shouldShowZeroLine=function(e,t,r){var n=Bo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===TL)&&(Pse(t,0)||!Hst(e,t,r,n)||Gst(e,t))};En.clipEnds=function(e,t){return t.filter(function(r){return Pse(e,r.x)})};function Pse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=vst:/%L/.test(t)?e>=dst:/%[SX]/.test(t)?e>=xL:/%M/.test(t)?e>=rS:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=Fv:/%[UVW]/.test(t)?e>=Yp:/%[Bbm]/.test(t)?e>=_L:/%[q]/.test(t)?e>=yL:/%[Yy]/.test(t)?e>=mL:!0}});var _B=_e((Qir,zse)=>{"use strict";zse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var xB=_e((enr,Fse)=>{"use strict";var Kst=_B();Fse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Kst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Ose=_e((tnr,qse)=>{var Jst={left:0,top:0};qse.exports=$st;function $st(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Qst(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Qst(e){return e===window||e===document||e===document.body?Jst:e.getBoundingClientRect()}});var EL=_e((rnr,Bse)=>{"use strict";var elt=iO();function tlt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Bse.exports=elt&&tlt()});var Use=_e((inr,Nse)=>{"use strict";Nse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Gse=_e((nnr,Hse)=>{"use strict";var Vse=Mr(),rlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Hse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Vse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Vse.constrain(Math.floor(r*3),0,2),rlt[r][t]}});var Wse=_e((anr,jse)=>{"use strict";var ilt=g3(),nlt=L6(),alt=zM().getGraphDiv,olt=RM(),bB=jse.exports={};bB.wrapped=function(e,t,r){e=alt(e),e._fullLayout&&nlt.clear(e._fullLayout._uid+olt.HOVERID),bB.raw(e,t,r)};bB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&ilt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gv=_e((onr,Kse)=>{"use strict";var slt=Ose(),wB=aO(),llt=EL(),ult=Mr().removeElement,clt=ad(),Lb=Kse.exports={};Lb.align=Use();Lb.getCursor=Gse();var Xse=Wse();Lb.unhover=Xse.wrapped;Lb.unhoverRaw=Xse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,llt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(k,A,L){return Math.abs(k)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var _=f[L];!A[L]&&typeof _!="function"&&(A[L]=_)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",k))}r._dragging=!1,r._dragged=!1}};function Yse(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=Yse;function Zse(e){return slt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tg=_e((snr,Jse)=>{"use strict";Jse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var ele=_e((lnr,Qse)=>{"use strict";var TB=Tg(),oS="data-savedcursor",$se="!!";Qse.exports=function(t,r){var n=t.attr(oS);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var AB=Mu(),flt=dh();tle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:flt.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:AB({editType:"legend"}),grouptitlefont:AB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:AB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var CL=_e(kL=>{"use strict";kL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};kL.isVertical=function(t){return t.orientation!=="h"};kL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var kB=_e((fnr,rle)=>{"use strict";var SB=_a(),Kp=Mr(),hlt=Us(),dlt=vl(),vlt=MB(),plt=s3(),EB=CL();function glt(e,t,r,n){var i=t[e]||{},a=hlt.newContainer(r,e);function o(G,N){return Kp.coerce(i,a,vlt,G,N)}var s=Kp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(G,N){var Z=u._input,ie=u;return Kp.coerce(Z,ie,dlt,G,N)},f=r.font||{},h=Kp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,x="normal",b=(r.shapes||[]).filter(function(G){return G.showlegend}),p=n.concat(b).filter(function(G){return e===(G.legend||"legend")}),E=0;E(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),C=o("xref"),S=L==="h",g=_==="paper",P=C==="paper",T,F,q,V="left";S?(T=0,SB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(F=1.1,q="bottom"):(F=1,q="top"):g?(F=-.1,q="top"):(F=0,q="bottom")):(F=1,q="auto",P?T=1.02:(T=1,V="right")),Kp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Kp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:F}},"y"),o("traceorder",x),EB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",q),o("valign"),Kp.noneOrAll(i,a,["x","y"]);var H=o("title.text");if(H){o("title.side",S?"left":"top");var X=Kp.extendFlat({},s,{size:Kp.bigFont(s.size)});Kp.coerceFont(o,"title.font",X)}}}}rle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=_a(),LB=Mr(),mlt=LB.pushUnique,CB=!0;ile.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&CB&&r.data&&r._context.showTips&&LB.notifier(LB._(r,"Double-click on legend to isolate one trace"),"long"),CB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Ft){return Ft.showlegend}),v=h.concat(d),x=f.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,p,E,k,A,L,_,C={},S=[],g=[],P=[];function T(Ft,Lt){var Rt=S.indexOf(Ft),Xt=C.visible;return Xt||(Xt=C.visible=[]),S.indexOf(Ft)===-1&&(S.push(Ft),Rt=S.length-1),Xt[Rt]=Lt,Rt}var F=(i.shapes||[]).map(function(Ft){return Ft._input}),q=!1;function V(Ft,Lt){F[Ft].visible=Lt,q=!0}function H(Ft,Lt){if(!(f.groupTitle&&!u)){var Rt=Ft._fullInput||Ft,Xt=Rt._isShape,xr=Rt.index;xr===void 0&&(xr=Rt._index);var er=Rt.visible===!1?!1:Lt;Xt?V(xr,er):T(xr,er)}}var X=x.legend,G=x._fullInput,N=G&&G._isShape;if(!N&&D3.traceIs(x,"pie-like")){var Z=f.label,ie=c.indexOf(Z);if(l==="toggle")ie===-1?c.push(Z):c.splice(ie,1);else if(l==="toggleothers"){var ae=ie!==-1,we=[];for(p=0;p{"use strict";ale.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var lle=_e((vnr,sle)=>{"use strict";var ole=_a(),IB=CL();sle.exports=function(t,r,n){var i=r._inHover,a=IB.isGrouped(r),o=IB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function x(G,N,Z){if(r.visible!==!1&&!(n&&G!==r._id))if(N===""||!IB.isGrouped(r)){var ie="~~i"+f;l.push(ie),s[ie]=[Z],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[Z]):s[N].push(Z)}for(d=0;dP&&(g=P)}C[d][0]._groupMinRank=g,C[d][0]._preGroupSort=d}var T=function(G,N){return G[0]._groupMinRank-N[0]._groupMinRank||G[0]._preGroupSort-N[0]._preGroupSort},F=function(G,N){return G.trace.legendrank-N.trace.legendrank||G._preSort-N._preSort};for(C.forEach(function(G,N){G[0]._preGroupSort=N}),C.sort(T),d=0;d{"use strict";var LL=Mr();function ule(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=ule((t*100).toPrecision(3));return LL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=ule(t.toPrecision(10));return LL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(LL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var ylt=ro(),_lt=ha();cle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?ylt.pointStyle(t,n,i,r):_lt.fill(t,r.color)}});var z3=_e((mnr,vle)=>{"use strict";var hle=ha(),dle=u_().castOption,xlt=fle();vle.exports=function(t,r,n,i){var a=n.marker.line,o=dle(a.color,r.pts)||hle.defaultLine,s=dle(a.width,r.pts)||0;t.call(xlt,r,n,i).style("stroke-width",s).call(hle.stroke,o)}});var FB=_e((ynr,xle)=>{"use strict";var qv=ya(),RB=_a(),mv=Mr(),ple=mv.strTranslate,ip=ro(),T0=ha(),DB=Dv().extractOpts,PL=lu(),blt=z3(),wlt=u_().castOption,Tlt=PB(),gle=12,mle=5,Ib=2,Alt=10,F3=5;xle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+Tlt.itemGap*2)/2,l=ple(s,0),u=function(C,S,g,P){var T;if(C+1)T=C;else if(S&&S.width>0)T=S.width;else return 0;return a?P:Math.min(T,g)};t.each(function(C){var S=qv.select(this),g=mv.ensureSingle(S,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,T=n.valign,F=C[0].lineHeight,q=C[0].height;if(T==="middle"&&P===0||!F||!q)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],H=V*(.5*(F-q+3))||0,X=n.indentation;g.attr("transform",ple(X,H))}var G=g.selectAll("g.legendfill").data([C]);G.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var Z=g.selectAll("g.legendsymbols").data([C]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(v).each(d).each(b).each(A).each(k).each(c).each(f).each(p).each(E);function c(C){var S=yle(C),g=S.showFill,P=S.showLine,T=S.showGradientLine,F=S.showGradientFill,q=S.anyFill,V=S.anyLine,H=C[0],X=H.trace,G,N,Z=DB(X),ie=Z.colorscale,ae=Z.reversescale,we=function(xe){if(xe.size())if(g)ip.fillGroupStyle(xe,r,!0);else{var Ce="legendfill-"+X.uid;ip.gradient(xe,r,Ce,zB(ae),ie,"fill")}},Ee=function(xe){if(xe.size()){var Ce="legendline-"+X.uid;ip.lineGroupStyle(xe),ip.gradient(xe,r,Ce,zB(ae),ie,"stroke")}},ke=PL.hasMarkers(X)||!q?"M5,0":V?"M5,-2":"M5,-3",ye=qv.select(this),K=ye.select(".legendfill").selectAll("path").data(g||F?[C]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",ke+"h"+o+"v6h-"+o+"z").call(we),P||T){var ce=u(void 0,X.line,Alt,mle);N=mv.minExtend(X,{line:{width:ce}}),G=[mv.minExtend(H,{trace:N})]}var pe=ye.select(".legendlines").selectAll("path").data(P||T?[G]:[]);pe.enter().append("path").classed("js-line",!0),pe.exit().remove(),pe.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?ip.lineGroupStyle:Ee)}function f(C){var S=yle(C),g=S.anyFill,P=S.anyLine,T=S.showLine,F=S.showMarker,q=C[0],V=q.trace,H=!F&&!P&&!g&&PL.hasText(V),X,G;function N(K,ce,pe,xe){var Ce=mv.nestedProperty(V,K).get(),Me=mv.isArrayOrTypedArray(Ce)&&ce?ce(Ce):Ce;if(a&&Me&&xe!==void 0&&(Me=xe),pe){if(Mepe[1])return pe[1]}return Me}function Z(K){return q._distinct&&q.index&&K[q.index]?K[q.index]:K[0]}if(F||H||T){var ie={},ae={};if(F){ie.mc=N("marker.color",Z),ie.mx=N("marker.symbol",Z),ie.mo=N("marker.opacity",mv.mean,[.2,1]),ie.mlc=N("marker.line.color",Z),ie.mlw=N("marker.line.width",mv.mean,[0,5],Ib),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var we=N("marker.size",mv.mean,[2,16],gle);ie.ms=we,ae.marker.size=we}T&&(ae.line={width:N("line.width",Z,[0,10],mle)}),H&&(ie.tx="Aa",ie.tp=N("textposition",Z),ie.ts=10,ie.tc=N("textfont.color",Z),ie.tf=N("textfont.family",Z),ie.tw=N("textfont.weight",Z),ie.ty=N("textfont.style",Z),ie.tv=N("textfont.variant",Z),ie.tC=N("textfont.textcase",Z),ie.tE=N("textfont.lineposition",Z),ie.tS=N("textfont.shadow",Z)),X=[mv.minExtend(q,ie)],G=mv.minExtend(V,ae),G.selectedpoints=null,G.texttemplate=null}var Ee=qv.select(this).select("g.legendpoints"),ke=Ee.selectAll("path.scatterpts").data(F?X:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(ip.pointStyle,G,r),F&&(X[0].mrc=3);var ye=Ee.selectAll("g.pointtext").data(H?X:[]);ye.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ye.exit().remove(),ye.selectAll("text").call(ip.textPointStyle,G,r)}function h(C){var S=C[0].trace,g=S.type==="waterfall";if(C[0]._distinct&&g){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,x(C,this,"waterfall")}var T=[];S.visible&&g&&(T=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=qv.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(q){var V=qv.select(this),H=S[q[0]].marker,X=u(void 0,H.line,F3,Ib);V.attr("d",q[1]).style("stroke-width",X+"px").call(T0.fill,H.color),X&&V.call(T0.stroke,H.line.color)})}function d(C){x(C,this)}function v(C){x(C,this,"funnel")}function x(C,S,g){var P=C[0].trace,T=P.marker||{},F=T.line||{},q=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:RB.traceIs(P,"bar"),H=qv.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(V?[C]:[]);H.enter().append("path").classed("legend"+g,!0).attr("d",q).attr("transform",l),H.exit().remove(),H.each(function(X){var G=qv.select(this),N=X[0],Z=u(N.mlw,T.line,F3,Ib);G.style("stroke-width",Z+"px");var ie=N.mcc;if(!n._inHover&&"mc"in N){var ae=DB(T),we=ae.mid;we===void 0&&(we=(ae.max+ae.min)/2),ie=ip.tryColorscale(T,"")(we)}var Ee=ie||N.mc||T.color,ke=T.pattern,ye=ke&&ip.getPatternAttr(ke.shape,0,"");if(ye){var K=ip.getPatternAttr(ke.bgcolor,0,null),ce=ip.getPatternAttr(ke.fgcolor,0,null),pe=ke.fgopacity,xe=_le(ke.size,8,10),Ce=_le(ke.solidity,.5,1),Me="legend-"+P.uid;G.call(ip.pattern,"legend",r,Me,ye,xe,Ce,ie,ke.fillmode,K,ce,pe)}else G.call(T0.fill,Ee);Z&&T0.stroke(G,N.mlc||F.color)})}function b(C){var S=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&RB.traceIs(S,"box-violin")?[C]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=qv.select(this);if((S.boxpoints==="all"||S.points==="all")&&T0.opacity(S.fillcolor)===0&&T0.opacity((S.line||{}).color)===0){var T=mv.minExtend(S,{marker:{size:a?gle:mv.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(ip.pointStyle,T,r)}else{var F=u(void 0,S.line,F3,Ib);P.style("stroke-width",F+"px").call(T0.fill,S.fillcolor),F&&T0.stroke(P,S.line.color)}})}function p(C){var S=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var F=qv.select(this),q=S[T?"increasing":"decreasing"],V=u(void 0,q.line,F3,Ib);F.style("stroke-width",V+"px").call(T0.fill,q.fillcolor),V&&T0.stroke(F,q.line.color)})}function E(C){var S=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var F=qv.select(this),q=S[T?"increasing":"decreasing"],V=u(void 0,q.line,F3,Ib);F.style("fill","none").call(ip.dashLine,q.line.dash,V),V&&T0.stroke(F,q.line.color)})}function k(C){L(C,this,"pie")}function A(C){L(C,this,"funnelarea")}function L(C,S,g){var P=C[0],T=P.trace,F=g?T.visible&&T.type===g:RB.traceIs(T,g),q=qv.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(F?[C]:[]);if(q.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),q.exit().remove(),q.size()){var V=T.marker||{},H=u(wlt(V.line.width,P.pts),V.line,F3,Ib),X="pieLike",G=mv.minExtend(T,{marker:{line:{width:H}}},X),N=mv.minExtend(P,{trace:G},X);blt(q,N,G,r)}}function _(C){var S=C[0].trace,g,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var T=qv.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(F,q){var V=qv.select(this),H=DB(S),X=H.colorscale,G=H.reversescale,N=function(we){if(we.size()){var Ee="legendfill-"+S.uid;ip.gradient(we,r,Ee,zB(G,g==="radial"),X,"fill")}},Z;if(X){if(!g){var ae=X.length;Z=q===0?X[G?ae-1:0][1]:q===1?X[G?0:ae-1][1]:X[Math.floor((ae-1)/2)][1]}}else{var ie=S.vertexcolor||S.facecolor||S.color;Z=mv.isArrayOrTypedArray(ie)?ie[q]||ie[0]:ie}V.attr("d",F[0]),Z?V.call(T0.fill,Z):V.call(N)})}};function zB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function yle(e){var t=e[0].trace,r=t.contours,n=PL.hasLines(t),i=PL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function _le(e,t,r){return e&&mv.isArrayOrTypedArray(e)?t:e>r?r:e}});var NB=_e((_nr,Lle)=>{"use strict";var Mp=ya(),gh=Mr(),OB=Xu(),B3=_a(),ble=g3(),qB=gv(),mh=ro(),RL=ha(),Rb=Pl(),wle=nle(),Vh=PB(),BB=Nh(),kle=BB.LINE_SPACING,O3=BB.FROM_TL,Tle=BB.FROM_BR,Ale=lle(),Mlt=FB(),Mle=CL(),q3=1,Slt=/^legend[0-9]*$/;Lle.exports=function(t,r){if(r)Sle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Mp.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(Slt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),OB.autoMargin(e,i);var x=gh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=gh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),p=gh.ensureSingle(x,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});p.call(RL.stroke,r.bordercolor).call(RL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var E=gh.ensureSingle(x,"g","scrollbox"),k=r.title;r._titleWidth=0,r._titleHeight=0;var A;k.text?(A=gh.ensureSingle(E,"text",i+"titletext"),A.attr("text-anchor","start").call(mh.font,k.font).text(k.text),DL(A,E,e,r,q3)):E.selectAll("."+i+"titletext").remove();var L=gh.ensureSingle(x,"rect","scrollbar",function(S){S.attr(Vh.scrollBarEnterAttrs).call(RL.fill,Vh.scrollBarColor)}),_=E.selectAll("g.groups").data(l);_.enter().append("g").attr("class","groups"),_.exit().remove();var C=_.selectAll("g.traces").data(gh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){var g=S[0].trace;return B3.traceIs(g,"pie-like")?v.indexOf(S[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Mp.select(this).call(klt,e,r)}).call(Mlt,e,r).each(function(){s||Mp.select(this).call(Clt,e,i)}),gh.syncOrAsync([OB.previousPromises,function(){return Ilt(e,_,C,r)},function(){var S=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(k.text&&Elt(A,r,g),!s){var F,q;P?F=S.l+S.w*r.x-O3[zL(r)]*r._width:F=n.width*r.x-O3[zL(r)]*r._width,T?q=S.t+S.h*(1-r.y)-O3[FL(r)]*r._effHeight:q=n.height*(1-r.y)-O3[FL(r)]*r._effHeight;var V=Rlt(e,i,F,q);if(V)return;if(n.margin.autoexpand){var H=F,X=q;F=P?gh.constrain(F,0,n.width-r._width):H,q=T?gh.constrain(q,0,n.height-r._effHeight):X,F!==H&&gh.log("Constrain "+i+".x to make legend fit inside graph"),q!==X&&gh.log("Constrain "+i+".y to make legend fit inside graph")}mh.setTranslate(x,F,q)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var G=r._effHeight;s&&(G=r._height),p.attr({width:r._width-g,height:G-g,x:g/2,y:g/2}),mh.setTranslate(E,0,0),b.select("rect").attr({width:r._width-2*g,height:G-2*g,x:g,y:g}),mh.setClipUrl(E,a,e),mh.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(Vh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),Z=r._effHeight-N-2*Vh.scrollBarMargin,ie=r._height-r._effHeight,ae=Z/ie,we=Math.min(r._scrollY||0,ie);p.attr({width:r._width-2*g+Vh.scrollBarWidth+Vh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+Vh.scrollBarWidth+Vh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+we}),mh.setClipUrl(E,a,e),Ce(we,N,ae),x.on("wheel",function(){we=gh.constrain(r._scrollY+Mp.event.deltaY/Z*ie,0,ie),Ce(we,N,ae),we!==0&&we!==ie&&Mp.event.preventDefault()});var Ee,ke,ye,K=function(Xe,lt,At){var Yt=(At-lt)/ae+Xe;return gh.constrain(Yt,0,ie)},ce=function(Xe,lt,At){var Yt=(lt-At)/ae+Xe;return gh.constrain(Yt,0,ie)},pe=Mp.behavior.drag().on("dragstart",function(){var Xe=Mp.event.sourceEvent;Xe.type==="touchstart"?Ee=Xe.changedTouches[0].clientY:Ee=Xe.clientY,ye=we}).on("drag",function(){var Xe=Mp.event.sourceEvent;Xe.buttons===2||Xe.ctrlKey||(Xe.type==="touchmove"?ke=Xe.changedTouches[0].clientY:ke=Xe.clientY,we=K(ye,Ee,ke),Ce(we,N,ae))});L.call(pe);var xe=Mp.behavior.drag().on("dragstart",function(){var Xe=Mp.event.sourceEvent;Xe.type==="touchstart"&&(Ee=Xe.changedTouches[0].clientY,ye=we)}).on("drag",function(){var Xe=Mp.event.sourceEvent;Xe.type==="touchmove"&&(ke=Xe.changedTouches[0].clientY,we=ce(ye,Ee,ke),Ce(we,N,ae))});E.call(xe)}function Ce(Xe,lt,At){r._scrollY=e._fullLayout[i]._scrollY=Xe,mh.setTranslate(E,0,-Xe),mh.setRect(L,r._width,Vh.scrollBarMargin+Xe*At,Vh.scrollBarWidth,lt),b.select("rect").attr("y",g+Xe)}if(e._context.edits.legendPosition){var Me,Le,je,Se;x.classed("cursor-move",!0),qB.init({element:x.node(),gd:e,prepFn:function(Xe){if(Xe.target!==L.node()){var lt=mh.getTranslate(x);je=lt.x,Se=lt.y}},moveFn:function(Xe,lt){if(je!==void 0&&Se!==void 0){var At=je+Xe,Yt=Se+lt;mh.setTranslate(x,At,Yt),Me=qB.align(At,r._width,S.l,S.l+S.w,r.xanchor),Le=qB.align(Yt+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Me!==void 0&&Le!==void 0){var Xe={};Xe[i+".x"]=Me,Xe[i+".y"]=Le,B3.call("_guiRelayout",e,Xe)}},clickFn:function(Xe,lt){var At=o.selectAll("g.traces").filter(function(){var Yt=this.getBoundingClientRect();return lt.clientX>=Yt.left&<.clientX<=Yt.right&<.clientY>=Yt.top&<.clientY<=Yt.bottom});At.size()>0&&Cle(e,x,At,Xe,lt)}})}}],e)}}function IL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Cle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),B3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=ble.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&wle(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=ble.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&wle(r,e,n)}}function klt(e,t,r){var n=qL(r),i=e.data()[0][0],a=i.trace,o=B3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=gh.templateString(u,a._meta))));var f=gh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(mh.font,c).text(s?Ele(u,l):u);var h=r.indentation+r.itemwidth+Vh.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(DL,e,t,r).on("edit",function(d){this.text(Ele(d,l)).call(DL,e,t,r);var v=i.trace._fullInput||{},x={};return x.name=d,v._isShape?B3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):B3.call("_guiRestyle",t,x,a.index)}):DL(f,e,t,r)}function Ele(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function Clt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=gh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(RL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Cle(t,s,e,a,Mp.event)}}))}function DL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){Llt(t,r,n,i)})}function Llt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=qL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===q3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*kle,f,h;if(o){var d=mh.bBox(o);f=d.height,h=d.width,n===q3?mh.setTranslate(a,l,l+f*.75):mh.setTranslate(a,0,f*.25)}else{var v="."+s+(n===q3?"title":"")+"text",x=e.select(v),b=Rb.lineCount(x),p=x.node();if(f=c*b,h=p?mh.bBox(p).width:0,n===q3)r.title.side==="left"&&(h+=Vh.itemGap*2),Rb.positionText(x,l+Vh.titlePad,l+c);else{var E=Vh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(E=Vh.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(x,E,-c*((b-1)/2-.3))}}n===q3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Plt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Ilt(e,t,r,n){var i=e._fullLayout,a=qL(n);n||(n=i[a]);var o=i._size,s=Mle.isVertical(n),l=Mle.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=Vh.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),x=FL(n),b=n.y<0||n.y===0&&x==="top",p=n.y>1||n.y===1&&x==="bottom",E=n.tracegroupgap,k={};n._maxHeight=Math.max(b||p?i.height/2:o.h,30);var A=0;n._width=0,n._height=0;var L=Plt(n);if(s)r.each(function(ye){var K=ye[0].height;mh.setTranslate(this,c+L[0],c+L[1]+n._height+K/2+h),n._height+=K,n._width=Math.max(n._width,ye[0].width)}),A=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(ye,K){mh.setTranslate(this,0,K*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var _=zL(n),C=n.x<0||n.x===0&&_==="right",S=n.x>1||n.x===1&&_==="left",g=p||b,P=i.width/2;n._maxWidth=Math.max(C?g&&_==="left"?o.l+o.w:P:S?g&&_==="right"?o.r+o.w:P:o.w,2*d);var T=0,F=0;r.each(function(ye){var K=IL(ye,n,d);T=Math.max(T,K),F+=K}),A=null;var q=0;if(l){var V=0,H=0,X=0;t.each(function(){var ye=0,K=0;Mp.select(this).selectAll("g.traces").each(function(pe){var xe=IL(pe,n,d),Ce=pe[0].height;mh.setTranslate(this,L[0],L[1]+c+h+Ce/2+K),K+=Ce,ye=Math.max(ye,xe),k[pe[0].trace.legendgroup]=ye});var ce=ye+h;H>0&&ce+c+H>n._maxWidth?(q=Math.max(q,H),H=0,X+=V+E,V=K):V=Math.max(V,K),mh.setTranslate(this,H,X),H+=ce}),n._width=Math.max(q,H)+c,n._height=X+V+v}else{var G=r.size(),N=F+f+(G-1)*h=n._maxWidth&&(q=Math.max(q,we),ie=0,ae+=Z,n._height+=Z,Z=0),mh.setTranslate(this,L[0]+c+ie,L[1]+c+ae+K/2+h),we=ie+ce+h,ie+=pe,Z=Math.max(Z,K)}),N?(n._width=ie+f,n._height=Z+v):(n._width=Math.max(q,we)+f,n._height+=Z+v)}}n._width=Math.ceil(Math.max(n._width+L[0],n._titleWidth+2*(c+Vh.titlePad))),n._height=Math.ceil(Math.max(n._height+L[1],n._titleHeight+2*(c+Vh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Ee=e._context.edits,ke=Ee.legendText||Ee.legendPosition;r.each(function(ye){var K=Mp.select(this).select("."+a+"toggle"),ce=ye[0].height,pe=ye[0].trace.legendgroup,xe=IL(ye,n,d);l&&pe!==""&&(xe=k[pe]);var Ce=ke?d:A||xe;!s&&!u&&(Ce+=h/2),mh.setRect(K,0,-ce/2,Ce,ce)})}function Rlt(e,t,r,n){var i=e._fullLayout,a=i[t],o=zL(a),s=FL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return OB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*O3[o],r:a._width*Tle[o],b:a._effHeight*Tle[s],t:a._effHeight*O3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function zL(e){return gh.isRightAnchor(e)?"right":gh.isCenterAnchor(e)?"center":"left"}function FL(e){return gh.isBottomAnchor(e)?"bottom":gh.isMiddleAnchor(e)?"middle":"top"}function qL(e){return e._id||"legend"}});var GB=_e(HB=>{"use strict";var Db=ya(),Ay=ao(),Ple=id(),Rf=Mr(),Dlt=Rf.pushUnique,UB=Rf.strTranslate,zlt=Rf.strRotate,Flt=g3(),A0=Pl(),qlt=ele(),bm=ro(),sd=ha(),OL=gv(),wm=Ka(),Olt=ad().zindexSeparator,U3=_a(),Ag=rp(),zb=RM(),Blt=kB(),Nlt=NB(),Ble=zb.YANGLE,VB=Math.PI*Ble/180,Ult=1/Math.sin(VB),Vlt=Math.cos(VB),Hlt=Math.sin(VB),Bc=zb.HOVERARROWSIZE,Ns=zb.HOVERTEXTPAD,Ile={box:!0,ohlc:!0,violin:!0,candlestick:!0},Glt={scatter:!0,scattergl:!0,splom:!0};function Rle(e,t){return e.distance-t.distance}HB.hover=function(t,r,n,i){t=Rf.getGraphDiv(t);var a=r.target;Rf.throttle(t._fullLayout._uid+zb.HOVERID,zb.HOVERMINTIME,function(){jlt(t,r,n,i,a)})};HB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Gle(i),o=jle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,E=b._x1||b.x1||b.x||0,k=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(p,E),C=Math.max(p,E),S=Math.min(k,A),g=Math.max(k,A),P=b.trace;if(U3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,F=T.offsetLeft,q=T.offsetTop;_+=F,C+=F,S+=q,g+=q}L.bbox={x0:_+o,x1:C+o,y0:S+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||sd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=Ule(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||sd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var E=b.y0-b.by/2;E-fC[0]._length||Se<0||Se>S[0]._length)return OL.unhoverRaw(e,t)}if(t.pointerX=je+C[0]._offset,t.pointerY=Se+S[0]._offset,"xval"in t?X=Ag.flat(a,t.xval):X=Ag.p2c(C,je),"yval"in t?G=Ag.flat(a,t.yval):G=Ag.p2c(S,Se),!Ay(X[0])||!Ay(G[0]))return Rf.warn("Fx.hover failed",t,e),OL.unhoverRaw(e,t)}var At=1/0;function Yt(Xi,An){for(Z=0;Zpe&&(V.splice(0,pe),At=V[0].distance),f&&q!==0&&V.length===0){ce.distance=q,ce.index=!1;var ct=ae._module.hoverPoints(ce,ye,K,"closest",{hoverLayer:s._hoverlayer});if(ct&&(ct=ct.filter(function(Hr){return Hr.spikeDistance<=q})),ct&&ct.length){var Vt,Wt=ct.filter(function(Hr){return Hr.xa.showspikes&&Hr.xa.spikesnap!=="hovered data"});if(Wt.length){var gr=Wt[0];Ay(gr.x0)&&Ay(gr.y0)&&(Vt=ot(gr),(!xe.vLinePoint||xe.vLinePoint.spikeDistance>Vt.spikeDistance)&&(xe.vLinePoint=Vt))}var qr=ct.filter(function(Hr){return Hr.ya.showspikes&&Hr.ya.spikesnap!=="hovered data"});if(qr.length){var Zr=qr[0];Ay(Zr.x0)&&Ay(Zr.y0)&&(Vt=ot(Zr),(!xe.hLinePoint||xe.hLinePoint.spikeDistance>Vt.spikeDistance)&&(xe.hLinePoint=Vt))}}}}}Yt();function nt(Xi,An,Qi){for(var Un=null,Xn=1/0,It,ct=0;ct0&&Math.abs(Xi.distance)ft-1;Ur--)Br(V[Ur]);V=hr,Xt()}var ut=e._hoverdata,rt=[],it=Gle(e),Ze=jle(e);for(N=0;N1||V.length>1)||h==="closest"&&Ce&&V.length>1,ri=sd.combine(s.plot_bgcolor||sd.background,s.paper_bgcolor),Ti=Ule(V,{gd:e,hovermode:h,rotateLabels:Gr,bgColor:ri,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),an=Ti.hoverLabels;if(Ag.isUnifiedHover(h)||(Zlt(an,Gr,s,Ti.commonLabelBoundingBox),Hle(an,Gr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Yi=U3.getComponentMethod("annotations","hasClickToShow")(e,rt);qlt(Db.select(i),Yi?"pointer":"")}!i||n||!Klt(e,t,ut)||(ut&&e.emit("plotly_unhover",{event:t,points:ut}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:S,xvals:X,yvals:G}))}function Nle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Wlt=/([\s\S]*)<\/extra>/;function Ule(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||zb.HOVERFONT,f=t.fontSize||zb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,E=e[0],k=E.xa,A=E.ya,L=i.charAt(0),_=L+"Label",C=E[_];if(C===void 0&&k.type==="multicategory")for(var S=0;Sn.width-ut&&(rt=n.width-ut),Ct.attr("d","M"+(Nr-rt)+",0L"+(Nr-rt+Bc)+","+Ur+Bc+"H"+ut+"v"+Ur+(Ns*2+_r.height)+"H"+-ut+"V"+Ur+Bc+"H"+(Nr-rt-Bc)+"Z"),Nr=rt,Z.minX=Nr-ut,Z.maxX=Nr+ut,k.side==="top"?(Z.minY=Br-(Ns*2+_r.height),Z.maxY=Br-Ns):(Z.minY=Br+Ns,Z.maxY=Br+(Ns*2+_r.height))}else{var it,Ze,Je;A.side==="right"?(it="start",Ze=1,Je="",Nr=k._offset+k._length):(it="end",Ze=-1,Je="-",Nr=k._offset),Br=A._offset+(E.y0+E.y1)/2,St.attr("text-anchor",it),Ct.attr("d","M0,0L"+Je+Bc+","+Bc+"V"+(Ns+_r.height/2)+"h"+Je+(Ns*2+_r.width)+"V-"+(Ns+_r.height/2)+"H"+Je+Bc+"V-"+Bc+"Z"),Z.minY=Br-(Ns+_r.height/2),Z.maxY=Br+(Ns+_r.height/2),A.side==="right"?(Z.minX=Nr+Bc,Z.maxX=Nr+Bc+(Ns*2+_r.width)):(Z.minX=Nr-Bc-(Ns*2+_r.width),Z.maxX=Nr-Bc);var ht=_r.height/2,Ie=P-_r.top-ht,le="clip"+n._uid+"commonlabel"+A._id,be;if(Nr<_r.width+2*Ns+Bc){be="M-"+(Bc+Ns)+"-"+ht+"h-"+(_r.width-Ns)+"V"+ht+"h"+(_r.width-Ns)+"Z";var Qe=_r.width-Nr+Ns;A0.positionText(St,Qe,Ie),it==="end"&&St.selectAll("tspan").each(function(){var Ot=Db.select(this),rr=bm.tester.append("text").text(Ot.text()).call(bm.font,hr),Jr=N3(r,rr.node());Math.round(Jr.width)=0?er=Lt:Rt+Se=0?er=Rt:Xt+Se=0?Ge=ot:Ft+Xe=0?Ge=Ft:xr+Xe=0,(_t.idealAlign==="top"||!Ot)&&rr?(Je-=Ie/2,_t.anchor="end"):Ot?(Je+=Ie/2,_t.anchor="start"):_t.anchor="middle",_t.crossPos=Je;else{if(_t.pos=Je,Ot=Ze+ht/2+xt<=T,rr=Ze-ht/2-xt>=0,(_t.idealAlign==="left"||!Ot)&&rr)Ze-=ht/2,_t.anchor="end";else if(Ot)Ze+=ht/2,_t.anchor="start";else{_t.anchor="middle";var Jr=xt/2,ni=Ze+Jr-T,Gr=Ze-Jr;ni>0&&(Ze-=ni),Gr<0&&(Ze+=-Gr)}_t.crossPos=Ze}Br.attr("text-anchor",_t.anchor),ut&&Ur.attr("text-anchor",_t.anchor),Ct.attr("transform",UB(Ze,Je)+(a?zlt(Ble):""))}),{hoverLabels:yt,commonLabelBoundingBox:Z}}function Dle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Rf.templateString(e.name,e.trace._meta)),o=qle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Rf.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Wlt,function(h,d){return o=qle(d,e.nameLength),""})}return[s,o]}function Zlt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,x=function(X){return X*r._invScaleX},b=function(X){return X*r._invScaleY};e.each(function(X){var G=X[i],N=X[a],Z=G._id.charAt(0)==="x",ie=G.range;c===0&&ie&&ie[0]>ie[1]!==Z&&(s=-1);var ae=0,we=Z?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ee=Vle(X,t),ke=X.anchor,ye=ke==="end"?-1:1,K,ce;if(ke==="middle")K=X.crossPos+(Z?b(Ee.y-X.by/2):x(X.bx/2+X.tx2width/2)),ce=K+(Z?b(X.by):x(X.bx));else if(Z)K=X.crossPos+b(Bc+Ee.y)-b(X.by/2-Bc),ce=K+b(X.by);else{var pe=x(ye*Bc+Ee.x),xe=pe+x(ye*X.bx);K=X.crossPos+Math.min(pe,xe),ce=X.crossPos+Math.max(pe,xe)}Z?d!==void 0&&v!==void 0&&Math.min(ce,v)-Math.max(K,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,we=r.width):we=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(ce,h)-Math.max(K,f)>1&&(N.side==="top"?(ae=N._mainLinePosition,we=r.height):we=N._mainLinePosition)}u[c++]=[{datum:X,traceIndex:X.trace.index,dp:0,pos:X.pos,posref:X.posref,size:X.by*(Z?Ult:1)/2,pmin:ae,pmax:we}]}),u.sort(function(X,G){return X[0].posref-G[0].posref||s*(G[0].traceIndex-X[0].traceIndex)});var p,E,k,A,L,_,C;function S(X){var G=X[0],N=X[X.length-1];if(E=G.pmin-G.pos-G.dp+G.size,k=N.pos+N.dp+N.size-G.pmax,E>.01){for(L=X.length-1;L>=0;L--)X[L].dp+=E;p=!1}if(!(k<.01)){if(E<-.01){for(L=X.length-1;L>=0;L--)X[L].dp-=k;p=!1}if(p){var Z=0;for(A=0;AG.pmax&&Z++;for(A=X.length-1;A>=0&&!(Z<=0);A--)_=X[A],_.pos>G.pmax-1&&(_.del=!0,Z--);for(A=0;A=0;L--)X[L].dp-=k;for(A=X.length-1;A>=0&&!(Z<=0);A--)_=X[A],_.pos+_.dp+_.size>G.pmax&&(_.del=!0,Z--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=E;for(g.push.apply(g,P),u.splice(A+1,1),C=0,L=g.length-1;L>=0;L--)C+=g[L].dp;for(k=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=k;p=!1}else A++}u.forEach(S)}for(A=u.length-1;A>=0;A--){var q=u[A];for(L=q.length-1;L>=0;L--){var V=q[L],H=V.datum;H.offset=V.dp,H.del=V.del}}}function Vle(e,t){var r=0,n=e.offset;return t&&(n*=-Hlt,r=e.offset*Vlt),{x:r,y:n}}function Xlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Bc+Ns),n=r+t*(e.txwidth+Ns),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Ns),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Hle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Xlt(o),h=Vle(o,t),d=h.x,v=h.y,x=u==="middle";s.select("path").attr("d",x?"M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":"M0,0L"+i(c*Bc+d)+","+a(Bc+v)+"v"+a(o.by/2-Bc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Bc+d)+"V"+a(v-Bc)+"Z");var b=d+f.textShiftX,p=v+o.ty0-o.by/2+Ns,E=o.textAlign||"auto";E!=="auto"&&(E==="left"&&u!=="start"?(l.attr("text-anchor","start"),b=x?-o.bx/2-o.tx2width/2+Ns:-o.bx-Ns):E==="right"&&u!=="end"&&(l.attr("text-anchor","end"),b=x?o.bx/2-o.tx2width/2-Ns:o.bx+Ns)),l.call(A0.positionText,i(b),a(p)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*Ns+d),a(v+o.ty0-o.by/2+Ns)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Ylt(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Ay(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Rf.castOption(i,r,h);return o(v)?v:Rf.extractOption({},n,"",d)}:function(h,d){return Rf.extractOption(a,n,h,d)};function l(h,d,v){var x=s(d,v);o(x)&&(e[h]=x)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Rf.constrain(e.x0,0,e.xa._length),e.x1=Rf.constrain(e.x1,0,e.xa._length),e.y0=Rf.constrain(e.y0,0,e.ya._length),e.y1=Rf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function zle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=sd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var x=c.spikesnap;x==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Ple.readability(h.color,f)<1.5?sd.contrast(f):h.color,p=c.spikemode,E=c.spikethickness,k=c.spikecolor||b,A=wm.getPxPosition(e,c),L,_;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,_=d),p.indexOf("across")!==-1){var C=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),S=Math.max(S,c.position)),L=a.l+C*a.w,_=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":E,stroke:k,"stroke-dasharray":bm.dashStyle(c.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":E+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?E:-E),cy:v,r:E,fill:k}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var F=u.spikesnap;F==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var q=Ple.readability(g.color,f)<1.5?sd.contrast(f):g.color,V=u.spikemode,H=u.spikethickness,X=u.spikecolor||q,G=wm.getPxPosition(e,u),N,Z;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=G,Z=T),V.indexOf("across")!==-1){var ie=u._counterDomainMin,ae=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),ae=Math.max(ae,u.position)),N=a.t+(1-ae)*a.h,Z=a.t+(1-ie)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:Z,"stroke-width":H,stroke:X,"stroke-dasharray":bm.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:Z,"stroke-width":H+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:G-(u.side!=="top"?H:-H),r:H,fill:X}).classed("spikeline",!0)}}}function Klt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function Fle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function qle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Jlt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var $lt=Mr(),Qlt=ha(),eut=rp().isUnifiedHover;Wle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&eut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Qlt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),$lt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Xle=_e((wnr,Zle)=>{"use strict";var tut=Mr(),rut=sS(),iut=N1();Zle.exports=function(t,r){function n(i,a){return tut.coerce(t,r,iut,i,a)}rut(t,r,n)}});var Jle=_e((Tnr,Kle)=>{"use strict";var Yle=Mr(),nut=i3(),aut=sS();Kle.exports=function(t,r,n,i){function a(s,l){return Yle.coerce(t,r,nut,s,l)}var o=Yle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),aut(t,r,a,o)}});var jB=_e((Anr,$le)=>{"use strict";var out=Mr(),sut=N1();$le.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:out.coerce(t,r,sut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var tue=_e((Mnr,eue)=>{"use strict";var Qle=Mr(),lut=N1(),uut=jB(),cut=sS();eue.exports=function(t,r){function n(c,f){return Qle.coerce(t,r,lut,c,f)}var i=uut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),cut(t,r,n),Qle.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var nue=_e((Snr,iue)=>{"use strict";var WB=Mr(),rue=_a();iue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return WB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var hut=_a(),dut=GB().hover;aue.exports=function(t,r,n){var i=hut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&dut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Nc=_e((knr,uue)=>{"use strict";var vut=ya(),BL=Mr(),put=gv(),lS=rp(),sue=N1(),lue=GB();uue.exports={moduleType:"component",name:"fx",constants:RM(),schema:{layout:sue},attributes:i3(),layoutAttributes:sue,supplyLayoutGlobalDefaults:Xle(),supplyDefaults:Jle(),supplyLayoutDefaults:tue(),calc:nue(),getDistanceFunction:lS.getDistanceFunction,getClosest:lS.getClosest,inbox:lS.inbox,quadrature:lS.quadrature,appendArrayPointValue:lS.appendArrayPointValue,castHoverOption:mut,castHoverinfo:yut,hover:lue.hover,unhover:put.unhover,loneHover:lue.loneHover,loneUnhover:gut,click:oue()};function gut(e){var t=BL.isD3Selection(e)?e:vut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function mut(e,t,r){return BL.castOption(e,t,"hoverlabel."+r)}function yut(e,t,r){function n(i){return BL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return BL.castOption(e,r,"hoverinfo",n)}});var Mg=_e(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var uS=_e((Lnr,cue)=>{"use strict";cue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var NL=_e((Pnr,fue)=>{"use strict";fue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var VL=_e((Inr,hue)=>{"use strict";var UL=32;hue.exports={CIRCLE_SIDES:UL,i000:0,i090:UL/4,i180:UL/2,i270:UL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var HL=_e((Rnr,vue)=>{"use strict";var _ut=Mr().strTranslate;function due(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function xut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function but(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return due(e,r[t])}}function wut(e){return _ut(e.xaxis._offset,e.yaxis._offset)}vue.exports={p2r:due,r2p:xut,axValue:but,getTransform:wut}});var c_=_e(Sy=>{"use strict";var Tut=YM(),mue=VL(),V3=mue.CIRCLE_SIDES,ZB=mue.SQRT2,yue=HL(),pue=yue.p2r,gue=yue.r2p,Aut=[0,3,4,5,6,1,2],Mut=[0,3,4,1,2];Sy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var Tue=Mg(),Sut=Tue.drawMode,Eut=Tue.openMode,H3=VL(),_ue=H3.i000,xue=H3.i090,bue=H3.i180,wue=H3.i270,kut=H3.cos45,Cut=H3.sin45,Aue=HL(),jL=Aue.p2r,f_=Aue.r2p,Lut=e_(),Put=Lut.clearOutline,WL=c_(),Iut=WL.readPaths,Rut=WL.writePaths,Dut=WL.ellipseOver,zut=WL.fixDatesForPaths;function Fut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Sut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var qut=Mg(),Out=qut.selectMode,But=e_(),Nut=But.clearOutline,XB=c_(),Uut=XB.readPaths,Vut=XB.writePaths,Hut=XB.fixDatesForPaths;Eue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Out(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";kue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=_e(Ld=>{"use strict";var Fb=fS(),Cue=Mr(),XL=Ka();Ld.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Ld.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Ld.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Ld.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Ld.extractPathCoords=function(e,t,r){var n=[],i=e.match(Fb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(Fb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return u>d&&(v=v.replace(/[\s,]*X.*/,""),Cue.log("Ignoring extra params in segment "+l)),c+v})}function hS(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var JB=_e((Bnr,Rue)=>{"use strict";var jut=Mr(),G3=Ka(),Lue=Pl(),Pue=ro(),Wut=c_().readPaths,KB=h_(),Zut=KB.getPathString,Iue=x6(),Xut=Nh().FROM_TL;Rue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=G3.getFromId(t,n.xref),l=G3.getFromId(t,n.yref);for(var u in Iue){var c=Iue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=jut.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),x=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,E,k;if(n.path){var A=Zut(t,n),L=Wut(A,t);b=1/0,E=1/0,p=-1/0,k=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Kut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,x=i.label.yanchor,b,p,E,k;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Jut=Mr(),$ut=Jut.strTranslate,Due=gv(),que=Mg(),Qut=que.drawMode,Oue=que.selectMode,Bue=_a(),zue=ha(),KL=VL(),ect=KL.i000,tct=KL.i090,rct=KL.i180,ict=KL.i270,nct=e_(),Nue=nct.clearOutlineControllers,QB=c_(),YL=QB.pointsOnRectangle,$B=QB.pointsOnEllipse,act=QB.writePaths,oct=ZL().newShapes,sct=ZL().createShapeObj,lct=YB(),uct=JB();Uue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),($B(t[0])||n.hasText)&&s({redrawing:!0})}function s(G){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=oct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=lct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Bue.call((G||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Qut(c),h=Oue(c);(f||h)&&(a._fullLayout._outlining=!0),Nue(a),r.attr("d",act(t));var d,v,x,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=cct([],t);var E=u.append("g").attr("class","outline-controllers");P(E),X()}if(f&&n.hasText){var k=u.select(".label-temp"),A=sct(r,n,n.dragmode);uct(a,"label-temp",A,k)}function L(G){x=+G.srcElement.getAttribute("data-i"),b=+G.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(G,N){if(t.length){var Z=p[x][b][1],ie=p[x][b][2],ae=t[x],we=ae.length;if(YL(ae)){var Ee=G,ke=N;if(n.isActiveSelection){var ye=Fue(ae,b);ye[1]===ae[b][1]?ke=0:Ee=0}for(var K=0;K1&&!(G.length===2&&G[1][0]==="Z")&&(b===0&&(G[0][0]="M"),t[x]=G,o(),s())}}function g(G,N){if(G===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var Z=t[x];!YL(Z)&&!$B(Z)&&S()}}function P(G){d=[];for(var N=0;N{"use strict";var hct=ya(),Zue=_a(),Vue=Mr(),j3=Ka(),dct=c_().readPaths,vct=JL(),QL=JB(),Xue=e_().clearOutlineControllers,eN=ha(),rN=ro(),pct=Us().arrayEditor,Hue=gv(),Gue=Tg(),qb=fS(),Sp=h_(),tN=Sp.getPathString;Jue.exports={draw:iN,drawOne:Yue,eraseActiveShape:yct,drawLabel:QL};function iN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Lt>s&&!nt.shiftKey?Hue.getCursor(Rt/Ft,1-Xt/Lt):"move";Gue(t,xr),ce=xr.split("-")[0]}}function Me(nt){$L(e)||(l&&(p=ae(r.xanchor)),u&&(E=we(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:ae(r.x0),v=u?r.y0:we(r.y0),x=l?r.x1:ae(r.x1),b=u?r.y1:we(r.y1)),db?(k=v,C="y0",A=b,S="y1"):(k=b,C="y1",A=v,S="y0"),Ce(nt),lt(i,r),Yt(t,r,e),K.moveFn=ce==="move"?Se:Xe,K.altKey=nt.altKey)}function Le(){$L(e)||(Gue(t),At(i),Kue(t,e,r),Zue.call("_guiRelayout",e,a.getUpdateObj()))}function je(){$L(e)||At(i)}function Se(nt,ot){if(r.type==="path"){var Ft=function(Xt){return Xt},Lt=Ft,Rt=Ft;l?h("xanchor",r.xanchor=Ee(p+nt)):(Lt=function(xr){return Ee(ae(xr)+nt)},q&&q.type==="date"&&(Lt=Sp.encodeDate(Lt))),u?h("yanchor",r.yanchor=ke(E+ot)):(Rt=function(xr){return ke(we(xr)+ot)},H&&H.type==="date"&&(Rt=Sp.encodeDate(Rt))),h("path",r.path=jue(T,Lt,Rt))}else l?h("xanchor",r.xanchor=Ee(p+nt)):(h("x0",r.x0=Ee(d+nt)),h("x1",r.x1=Ee(x+nt))),u?h("yanchor",r.yanchor=ke(E+ot)):(h("y0",r.y0=ke(v+ot)),h("y1",r.y1=ke(b+ot)));t.attr("d",tN(e,r)),lt(i,r),QL(e,n,r,F)}function Xe(nt,ot){if(f){var Ft=function(_r){return _r},Lt=Ft,Rt=Ft;l?h("xanchor",r.xanchor=Ee(p+nt)):(Lt=function(Nr){return Ee(ae(Nr)+nt)},q&&q.type==="date"&&(Lt=Sp.encodeDate(Lt))),u?h("yanchor",r.yanchor=ke(E+ot)):(Rt=function(Nr){return ke(we(Nr)+ot)},H&&H.type==="date"&&(Rt=Sp.encodeDate(Rt))),h("path",r.path=jue(T,Lt,Rt))}else if(c){if(ce==="resize-over-start-point"){var Xt=d+nt,xr=u?v-ot:v+ot;h("x0",r.x0=l?Xt:Ee(Xt)),h("y0",r.y0=u?xr:ke(xr))}else if(ce==="resize-over-end-point"){var er=x+nt,Ge=u?b-ot:b+ot;h("x1",r.x1=l?er:Ee(er)),h("y1",r.y1=u?Ge:ke(Ge))}}else{var yt=function(_r){return ce.indexOf(_r)!==-1},_t=yt("n"),Ct=yt("s"),St=yt("w"),kt=yt("e"),ft=_t?k+ot:k,Gt=Ct?A+ot:A,$t=St?L+nt:L,hr=kt?_+nt:_;u&&(_t&&(ft=k-ot),Ct&&(Gt=A-ot)),(!u&&Gt-ft>s||u&&ft-Gt>s)&&(h(C,r[C]=u?ft:ke(ft)),h(S,r[S]=u?Gt:ke(Gt))),hr-$t>o&&(h(g,r[g]=l?$t:Ee($t)),h(P,r[P]=l?hr:Ee(hr)))}t.attr("d",tN(e,r)),lt(i,r),QL(e,n,r,F)}function lt(nt,ot){(l||u)&&Ft();function Ft(){var Lt=ot.type!=="path",Rt=nt.selectAll(".visual-cue").data([0]),Xt=1;Rt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Xt}).classed("visual-cue",!0);var xr=ae(l?ot.xanchor:Vue.midRange(Lt?[ot.x0,ot.x1]:Sp.extractPathCoords(ot.path,qb.paramIsX))),er=we(u?ot.yanchor:Vue.midRange(Lt?[ot.y0,ot.y1]:Sp.extractPathCoords(ot.path,qb.paramIsY)));if(xr=Sp.roundPositionForSharpStrokeRendering(xr,Xt),er=Sp.roundPositionForSharpStrokeRendering(er,Xt),l&&u){var Ge="M"+(xr-1-Xt)+","+(er-1-Xt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Rt.attr("d",Ge)}else if(l){var yt="M"+(xr-1-Xt)+","+(er-9-Xt)+"v18 h2 v-18 Z";Rt.attr("d",yt)}else{var _t="M"+(xr-9-Xt)+","+(er-1-Xt)+"h18 v2 h-18 Z";Rt.attr("d",_t)}}}function At(nt){nt.selectAll(".visual-cue").remove()}function Yt(nt,ot,Ft){var Lt=ot.xref,Rt=ot.yref,Xt=j3.getFromId(Ft,Lt),xr=j3.getFromId(Ft,Rt),er="";Lt!=="paper"&&!Xt.autorange&&(er+=Lt),Rt!=="paper"&&!xr.autorange&&(er+=Rt),rN.setClipUrl(nt,er?"clip"+Ft._fullLayout._uid+er:null,Ft)}}function jue(e,t,r){return e.replace(qb.segmentRE,function(n){var i=0,a=n.charAt(0),o=qb.paramIsX[a],s=qb.paramIsY[a],l=qb.numParams[a],u=n.substr(1).replace(qb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function mct(e,t){if(eP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Wue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Wue,iN(e)}}}function Wue(e){if(eP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Xue(e),delete e._fullLayout._activeShapeIndex,iN(e))}}function yct(e){if(eP(e)){Xue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var M0=_a(),$ue=Xu(),Que=af(),al=NL(),_ct=tP().eraseActiveShape,rP=Mr(),qs=rP._,ol=oce.exports={};ol.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?qs(e,"Download plot as a png"):qs(e,"Download plot")},icon:al.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};rP.notifier(qs(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),M0.call("downloadImage",e,r).then(function(n){rP.notifier(qs(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){rP.notifier(qs(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};ol.sendDataToCloud={name:"sendDataToCloud",title:function(e){return qs(e,"Edit in Chart Studio")},icon:al.disk,click:function(e){$ue.sendDataToCloud(e)}};ol.editInChartStudio={name:"editInChartStudio",title:function(e){return qs(e,"Edit in Chart Studio")},icon:al.pencil,click:function(e){$ue.sendDataToCloud(e)}};ol.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return qs(e,"Zoom")},attr:"dragmode",val:"zoom",icon:al.zoombox,click:Ov};ol.pan2d={name:"pan2d",_cat:"pan",title:function(e){return qs(e,"Pan")},attr:"dragmode",val:"pan",icon:al.pan,click:Ov};ol.select2d={name:"select2d",_cat:"select",title:function(e){return qs(e,"Box Select")},attr:"dragmode",val:"select",icon:al.selectbox,click:Ov};ol.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return qs(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:al.lasso,click:Ov};ol.drawclosedpath={name:"drawclosedpath",title:function(e){return qs(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:al.drawclosedpath,click:Ov};ol.drawopenpath={name:"drawopenpath",title:function(e){return qs(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:al.drawopenpath,click:Ov};ol.drawline={name:"drawline",title:function(e){return qs(e,"Draw line")},attr:"dragmode",val:"drawline",icon:al.drawline,click:Ov};ol.drawrect={name:"drawrect",title:function(e){return qs(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:al.drawrect,click:Ov};ol.drawcircle={name:"drawcircle",title:function(e){return qs(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:al.drawcircle,click:Ov};ol.eraseshape={name:"eraseshape",title:function(e){return qs(e,"Erase active shape")},icon:al.eraseshape,click:_ct};ol.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return qs(e,"Zoom in")},attr:"zoom",val:"in",icon:al.zoom_plus,click:Ov};ol.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return qs(e,"Zoom out")},attr:"zoom",val:"out",icon:al.zoom_minus,click:Ov};ol.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return qs(e,"Autoscale")},attr:"zoom",val:"auto",icon:al.autoscale,click:Ov};ol.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return qs(e,"Reset axes")},attr:"zoom",val:"reset",icon:al.home,click:Ov};ol.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return qs(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:al.tooltip_basic,gravity:"ne",click:Ov};ol.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return qs(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:al.tooltip_compare,gravity:"ne",click:Ov};function Ov(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Que.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v;for(c=0;c{"use strict";var sce=oN(),wct=Object.keys(sce),lce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],uce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(lce),Z3=[],Tct=function(e){if(uce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Z3.indexOf(t)===-1&&Z3.push(t),Z3.indexOf(r)===-1&&Z3.push(r)}};wct.forEach(function(e){Tct(sce[e])});Z3.sort();cce.exports={DRAW_MODES:lce,backButtons:uce,foreButtons:Z3}});var lN=_e((jnr,fce)=>{"use strict";var Gnr=sN();fce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var dce=_e((Wnr,hce)=>{"use strict";var Act=Mr(),dS=ha(),Mct=Us(),Sct=lN();hce.exports=function(t,r){var n=t.modebar||{},i=Mct.newContainer(r,"modebar");function a(s,l){return Act.coerce(n,i,Sct,s,l)}a("orientation"),a("bgcolor",dS.addOpacity(r.paper_bgcolor,.5));var o=dS.contrast(dS.rgb(r.modebar.bgcolor));a("color",dS.addOpacity(o,.3)),a("activecolor",dS.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var mce=_e((Znr,gce)=>{"use strict";var uN=ya(),Ect=ao(),nP=Mr(),vce=NL(),kct=e6().version,Cct=new DOMParser;function pce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=pce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this._uid=i,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),nP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&r.setAttribute("data-title",n),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&uN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||vce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=Ect(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=Cct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=uN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:nP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Ict=af(),yce=lu(),cN=_a(),Rct=rp().isUnifiedHover,Dct=mce(),aP=oN(),zct=sN().DRAW_MODES,Fct=Mr().extendDeep;_ce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Vct(a):!n.displayModeBar&&n.watermark?o=[]:o=qct(t),i?i.update(t,o):r._modeBar=Dct(t,o)};function qct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,Z){if(typeof Z=="string"){if(Z.toLowerCase()===N.toLowerCase())return!0}else{var ie=Z.name,ae=Z._cat||Z.name;if(ie===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var Z=0;Z1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:k?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Nct(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?F=["zoom2d","pan2d"]:x||b||f?F=["pan2d"]:p&&(F=["zoom2d"]),Bct(r)&&F.push("select2d","lasso2d");var q=[],V=function(N){q.indexOf(N)===-1&&P.indexOf(N)!==-1&&q.push(N)};if(Array.isArray(s)){for(var H=[],X=0;X{"use strict";bce.exports={moduleType:"component",name:"modebar",layoutAttributes:lN(),supplyLayoutDefaults:dce(),manage:xce()}});var hN=_e((Knr,wce)=>{"use strict";var Hct=Nh().FROM_BL;wce.exports=function(t,r,n){n===void 0&&(n=Hct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=_e(vS=>{"use strict";var Ob=Mr(),dN=wg(),Sg=af().id2name,Gct=Cd(),Tce=hN(),jct=ym(),Wct=Jo().ALMOST_EQUAL,Zct=Nh().FROM_BL;vS.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Yct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oWct*v&&!E)){for(a=0;aF&&ieP&&(P=ie);var we=(P-g)/(2*T);f/=we,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=_{"use strict";var sP=ya(),Bv=_a(),Jp=Xu(),S0=Mr(),gN=Pl(),mN=uS(),pS=ha(),X3=ro(),Ece=Sb(),Ice=fN(),gS=Ka(),Ey=Nh(),Rce=Bb(),Kct=Rce.enforce,Jct=Rce.clean,kce=wg().doAutoRange,Dce="start",$ct="middle",zce="end",Qct=ad().zindexSeparator;ld.layoutStyles=function(e){return S0.syncOrAsync([Jp.doAutoMargin,tft],e)};function eft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function tft(e){var t=e._fullLayout,r=t._size,n=r.p,i=gS.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(X3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),ld.drawMainTitle(e),Ice.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Me,Le,je){var Se=Me._lw/2;if(Me._id.charAt(0)==="x"){if(Le){if(je==="top")return Le._offset-n-Se}else return r.t+r.h*(1-(Me.position||0))+Se%1;return Le._offset+Le._length+n+Se}if(Le){if(je==="right")return Le._offset+Le._length+n+Se}else return r.l+r.w*(Me.position||0)+Se%1;return Le._offset-n-Se}for(a=0;a0){aft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Pce(t.yanchor)}).call(gN.positionText,o,a);var c=(t.text.match(gN.BR_TAG_ALL)||[]).length;if(c){var f=Ey.LINE_SPACING*c+Ey.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=sP.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,x=v+Ece.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Pce(t.yanchor)}).call(gN.positionText,o,x)}}}};function rft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=S0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return S0.isTopAnchor(t)&&r==="t"||S0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=ift(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function aft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&rft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function oft(e,t){var r=e.title,n=e._size,i=0;switch(t===Dce?i=r.pad.l:t===zce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function sft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Ey.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Pce(e){return e==="top"?Ey.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Ey.MID_SHIFT+"em"}function lft(e){var t=e.title,r=$ct;return S0.isRightAnchor(t)?r=zce:S0.isLeftAnchor(t)&&(r=Dce),r}function uft(e){var t=e.title,r="0em";return S0.isTopAnchor(t)?r=Ey.CAP_SHIFT+"em":S0.isMiddleAnchor(t)&&(r=Ey.MID_SHIFT+"em"),r}ld.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var cft=c_().readPaths,fft=JL(),Fce=e_().clearOutlineControllers,yN=ha(),qce=ro(),hft=Us().arrayEditor,Oce=h_(),dft=Oce.getPathString;Nce.exports={draw:lP,drawOne:Bce,activateLastSelection:gft};function lP(e){var t=e._fullLayout;Fce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(yN.stroke,f).call(yN.fill,c).call(qce.dashLine,b?"solid":d,b?4+h:h);if(vft(p,e,n),v){var E=hft(e.layout,"selections",n);p.style({cursor:"move"});var k={element:p.node(),plotinfo:i,gd:e,editHelpers:E,isActiveSelection:!0},A=cft(s,e);fft(A,p,k)}else p.style("pointer-events",b?"all":"none");x[b]=p}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return pft(e,L)})}}function vft(e,t,r){var n=r.xref+r.yref;qce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function pft(e,t){if(uP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){_N(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=_N,lP(e)}}}function gft(e){if(uP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=_N,lP(e)}}function _N(e){if(uP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Fce(e),delete e._fullLayout._activeSelectionIndex,lP(e))}}});var Vce=_e((ear,Uce)=>{function mft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Uce.exports=mft});var Gce=_e((tar,Hce)=>{function yft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Hce.exports=yft});var Wce=_e((rar,jce)=>{var _ft={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};jce.exports=_ft});var Xce=_e((iar,Zce)=>{var yS=Wce();function xft(e,t,r){function n(v,x){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:null,below:null},otherFill:null}}function i(v,x,b){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=yS.create();function o(v,x,b,p,E,k){var A=t.pointsCompare(x,E);return A!==0?A:t.pointsSame(b,k)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?E:k,p?k:E)?1:-1}function s(v,x){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,x,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,x){var b=yS.node({isStart:!0,pt:v.start,seg:v,primary:x,other:null,status:null});return s(b,v.end),b}function u(v,x,b){var p=yS.node({isStart:!1,pt:x.end,seg:x,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,x){var b=l(v,x);return u(b,v,x),b}function f(v,x){r&&r.segmentChop(v.seg,x),v.other.remove(),v.seg.end=x,v.other.pt=x,s(v.other,v.pt)}function h(v,x){var b=i(x,v.seg.end,v.seg);return f(v,x),c(b,v.primary)}function d(v,x){var b=yS.create();function p(H,X){var G=H.seg.start,N=H.seg.end,Z=X.seg.start,ie=X.seg.end;return t.pointsCollinear(G,Z,ie)?t.pointsCollinear(N,Z,ie)||t.pointAboveOrOnLine(N,Z,ie)?1:-1:t.pointAboveOrOnLine(G,Z,ie)?1:-1}function E(H){return b.findTransition(function(X){var G=p(H,X.ev);return G>0})}function k(H,X){var G=H.seg,N=X.seg,Z=G.start,ie=G.end,ae=N.start,we=N.end;r&&r.checkIntersection(G,N);var Ee=t.linesIntersect(Z,ie,ae,we);if(Ee===!1){if(!t.pointsCollinear(Z,ie,ae)||t.pointsSame(Z,we)||t.pointsSame(ie,ae))return!1;var ke=t.pointsSame(Z,ae),ye=t.pointsSame(ie,we);if(ke&&ye)return X;var K=!ke&&t.pointBetween(Z,ae,we),ce=!ye&&t.pointBetween(ie,ae,we);if(ke)return ce?h(X,ie):h(H,we),X;K&&(ye||(ce?h(X,ie):h(H,we)),h(X,Z))}else Ee.alongA===0&&(Ee.alongB===-1?h(H,ae):Ee.alongB===0?h(H,Ee.pt):Ee.alongB===1&&h(H,we)),Ee.alongB===0&&(Ee.alongA===-1?h(X,Z):Ee.alongA===0?h(X,Ee.pt):Ee.alongA===1&&h(X,ie));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let H=function(){if(C){var X=k(L,C);if(X)return X}return S?k(L,S):!1};var V=H;r&&r.segmentNew(L.seg,L.primary);var _=E(L),C=_.before?_.before.ev:null,S=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var g=H();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;S?L.primary===S.primary?T=S.seg.otherFill.above:T=S.seg.myFill.above:T=L.primary?x:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=_.insert(yS.node({ev:L}))}else{var F=L.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(F.prev)&&b.exists(F.next)&&k(F.prev.ev,F.next.ev),r&&r.statusRemove(F.ev.seg),F.remove(),!L.primary){var q=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=q}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var x,b=v[v.length-1],p=0;p{function bft(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,H,X){return c.index=V,c.matches_head=H,c.matches_pt1=X,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function _S(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var wft={union:function(e,t){return _S(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return _S(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return _S(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return _S(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return _S(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Jce.exports=wft});var efe=_e((oar,Qce)=>{var Tft={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var Aft=Vce(),Mft=Gce(),tfe=Xce(),Sft=Kce(),xS=$ce(),rfe=efe(),E0=!1,bS=Mft(),Ep;Ep={buildLog:function(e){return e===!0?E0=Aft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return bS.epsilon(e)},segments:function(e){var t=tfe(!0,bS,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=tfe(!1,bS,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:xS.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:xS.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:xS.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:xS.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:xS.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Sft(e.segments,bS,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return rfe.toPolygon(Ep,e)},polygonToGeoJSON:function(e){return rfe.fromPolygon(Ep,bS,e)},union:function(e,t){return wS(e,t,Ep.selectUnion)},intersect:function(e,t){return wS(e,t,Ep.selectIntersect)},difference:function(e,t){return wS(e,t,Ep.selectDifference)},differenceRev:function(e,t){return wS(e,t,Ep.selectDifferenceRev)},xor:function(e,t){return wS(e,t,Ep.selectXor)}};function wS(e,t,r){var n=Ep.segments(e),i=Ep.segments(t),a=Ep.combine(n,i),o=r(a);return Ep.polygon(o)}typeof window=="object"&&(window.PolyBool=Ep);ife.exports=Ep});var ofe=_e((lar,afe)=>{afe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;x&&(s=!s)}return s}});var TS=_e((uar,sfe)=>{"use strict";var bN=g6().dot,cP=Jo().BADNUM,fP=sfe.exports={};fP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===cP||po||x&&u(v))}function f(v,x){var b=v[0],p=v[1];if(b===cP||bi||p===cP||po)return!1;var E=r.length,k=r[0][0],A=r[0][1],L=0,_,C,S,g,P;for(_=1;_Math.max(C,k)||p>Math.max(S,A)))if(ps||Math.abs(bN(f,u))>i)return!0;return!1};fP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var ufe=_e((car,lfe)=>{"use strict";lfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Pfe=_e((far,Lfe)=>{"use strict";var cfe=nfe(),Eft=ofe(),SS=_a(),kft=ro().dashStyle,AS=ha(),Cft=Nc(),Lft=rp().makeEventData,PS=Mg(),Pft=PS.freeMode,Ift=PS.rectMode,ES=PS.drawMode,MN=PS.openMode,SN=PS.selectMode,ffe=h_(),hfe=fS(),mfe=JL(),yfe=e_().clearOutline,_fe=c_(),wN=_fe.handleEllipse,Rft=_fe.readPaths,Dft=ZL().newShapes,zft=YB(),Fft=xN().activateLastSelection,dP=Mr(),qft=dP.sorterAsc,xfe=TS(),MS=L6(),k0=af().getFromId,Oft=uS(),Bft=mS().redrawReglTraces,vP=ufe(),Am=vP.MINSELECT,Nft=xfe.filter,EN=xfe.tester,kN=HL(),dfe=kN.p2r,Uft=kN.axValue,Vft=kN.getTransform;function CN(e){return e.subplot!==void 0}function Hft(e,t,r,n,i){var a=!CN(n),o=Pft(i),s=Ift(i),l=MN(i),u=ES(i),c=SN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,x=v._fullLayout,b=c&&x.newselection.mode==="immediate"&&a,p=x._zoomlayer,E=n.element.getBoundingClientRect(),k=n.plotinfo,A=Vft(k),L=t-E.left,_=r-E.top;x._calcInverseTransform(v);var C=dP.apply3DTransform(x._invTransform)(L,_);L=C[0],_=C[1];var S=x._invScaleX,g=x._invScaleY,P=L,T=_,F="M"+L+","+_,q=n.xaxes[0],V=n.yaxes[0],H=q._length,X=V._length,G=e.altKey&&!(ES(i)&&l),N,Z,ie,ae,we,Ee,ke;wfe(e,v,n),o&&(N=Nft([[L,_]],vP.BENDPX));var ye=p.selectAll("path.select-outline-"+k.id).data([1]),K=u?x.newshape:x.newselection;u&&(n.hasText=K.label.text||K.label.texttemplate);var ce=u&&!l?K.fillcolor:"rgba(0,0,0,0)",pe=K.line.color||(a?AS.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ye.enter().append("path").attr("class","select-outline select-outline-"+k.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":kft(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(AS.stroke,pe).call(AS.fill,ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",F+"Z");var xe=p.append("path").attr("class","zoombox-corners").style({fill:AS.background,stroke:AS.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var Ce=p.select(".label-temp");Ce.empty()&&(Ce=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Me=x._uid+vP.SELECTID,Le=[],je=pP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Xe=q._id,lt=V._id;Efe(v,Xe,lt,je);for(var At=(v.layout||{}).selections||[],Yt=[],nt=!1,ot=0;ot=0){v._fullLayout._deactivateShape(v);return}if(!u){var At=x.clickmode;MS.done(Me).then(function(){if(MS.clear(Me),Xe===2){for(ye.remove(),we=0;we-1&&bfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ye),At==="event"&&LS(v,void 0);Cft.click(v,lt,k.id)}).catch(dP.error)}},n.doneFn=function(){xe.remove(),MS.done(Me).then(function(){MS.clear(Me),!b&&ae&&n.selectionDefs&&(ae.subtract=G,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,ie)),(b||u)&&kS(n,b),n.doneFnCompleted&&n.doneFnCompleted(Le),c&&LS(v,ke)}).catch(dP.error)}}function bfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,x,b,p,E,k,A,L;if(Xft(s)){wfe(e,t,a),h=pP(t,r,n,i);var _=Yft(s,h),C=_.pointNumbers.length>0;if(C?Kft(h,_):Jft(h)&&(E=pfe(_))){for(o&&o.remove(),L=0;L=0}function Zft(e){return e._fullLayout._activeSelectionIndex>=0}function kS(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Wft(i)&&i._fullLayout._deactivateShape(i),Zft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=ES(r),l=SN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Dft(u,e)),c&&SS.call("_guiRelayout",i,{shapes:c});var f;l&&!CN(e)&&(f=zft(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,SS.call("_guiRelayout",i,{selections:f}).then(function(){t&&Fft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function vfe(e){return e._id}function pP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(vfe),o=r.map(vfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Kft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function CS(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Xe=gfe(e,!0);if(Xe.length){var lt=Xe[0].xref,At=Xe[0].yref;if(lt&&At){var Yt=kfe(Xe),nt=Cfe([k0(e,lt,"x"),k0(e,At,"y")]);nt(Le,Yt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Se&&LS(e,Le),h._reselect=!1}if(!o&&h._deselect){var ot=h._deselect;s=ot.xref,l=ot.yref,eht(s,l,c)||Efe(e,s,l,n),Se&&(Le.points.length?LS(e,Le):IN(e)),h._deselect=!1}return{eventData:Le,selectionTesters:r}}function Qft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Ife.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var IS=_e((dar,Rfe)=>{"use strict";Rfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=_e((gar,Ffe)=>{"use strict";var Dfe=RN(),zfe=Mu(),gP=ad(),aht=Us().templatedArray,par=IS();Ffe.exports=aht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:zfe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Dfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Dfe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",gP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",gP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",gP.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",gP.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:zfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Mm=_e((mar,qfe)=>{"use strict";qfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Eg=_e((yar,Ofe)=>{"use strict";Ofe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Uc=_e((_ar,Gfe)=>{"use strict";var Bfe=Oc().axisHoverFormat,oht=Ho().texttemplateAttrs,sht=Ho().hovertemplateAttrs,Nfe=Jl(),lht=Mu(),uht=Ed().dash,cht=Ed().pattern,fht=ro(),hht=Mm(),mP=to().extendFlat,dht=Eg();function Ufe(e){return{valType:"any",dflt:0,editType:"calc"}}function Vfe(e){return{valType:"any",editType:"calc"}}function Hfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Gfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Ufe("x"),yperiod:Ufe("y"),xperiod0:Vfe("x0"),yperiod0:Vfe("y0"),xperiodalignment:Hfe("x"),yperiodalignment:Hfe("y"),xhoverformat:Bfe("x"),yhoverformat:Bfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:oht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:sht({},{keys:hht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mP({},uht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:dht(!0),fillgradient:mP({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:cht,marker:mP({symbol:{valType:"enumerated",values:fht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Nfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Nfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:lht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var DN=_e((bar,Zfe)=>{"use strict";var jfe=Nb(),Wfe=Uc().line,vht=Ed().dash,yP=to().extendFlat,pht=Bu().overrideAll,ght=Us().templatedArray,xar=IS();Zfe.exports=pht(ght("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yP({},jfe.xref,{}),yref:yP({},jfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Wfe.color,width:yP({},Wfe.width,{min:1,dflt:1}),dash:yP({},vht,{dflt:"dot"})}}),"arraydraw","from-root")});var Jfe=_e((war,Kfe)=>{"use strict";var Xfe=Mr(),_P=Ka(),mht=Zd(),yht=DN(),Yfe=h_();Kfe.exports=function(t,r){mht(t,r,{name:"selections",handleItemDefaults:_ht});for(var n=r.selections,i=0;i{"use strict";$fe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var RS=_e((Aar,rhe)=>{"use strict";var xht=_a(),ehe=Mr(),the=af();rhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=xht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var ihe=xN(),DS=Pfe();nhe.exports={moduleType:"component",name:"selections",layoutAttributes:DN(),supplyLayoutDefaults:Jfe(),supplyDrawNewSelectionDefaults:Qfe(),includeBasePlot:RS()("selections"),draw:ihe.draw,drawOne:ihe.drawOne,reselect:DS.reselect,prepSelect:DS.prepSelect,clearOutline:DS.clearOutline,clearSelectionsCache:DS.clearSelectionsCache,selectOnClick:DS.selectOnClick}});var UN=_e((Sar,Ahe)=>{"use strict";var BN=ya(),C0=Mr(),ahe=C0.numberFormat,bht=id(),wht=EL(),xP=_a(),vhe=C0.strTranslate,Tht=Pl(),ohe=ha(),v_=ro(),Aht=Nc(),she=Ka(),Mht=Tg(),Sht=gv(),phe=Mg(),bP=phe.selectingOrDrawing,Eht=phe.freeMode,kht=Nh().FROM_TL,Cht=uS(),Lht=mS().redrawReglTraces,Pht=Xu(),FN=af().getFromId,Iht=wf().prepSelect,Rht=wf().clearOutline,Dht=wf().selectOnClick,zN=hN(),NN=ad(),lhe=NN.MINDRAG,np=NN.MINZOOM,uhe=!0;function zht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,x,b,p,E,k,A,L,_,C,S,g,P,T,F,q,V,H,X,G;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,k=f._length,A=h._length,p=f._offset,E=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var kt=t.overlays,ft=0;ft=0){Gt._fullLayout._deactivateShape(Gt);return}var $t=Gt._fullLayout.clickmode;if(ON(Gt),kt===2&&!c&&er(),u)$t.indexOf("select")>-1&&Dht(ft,Gt,x,b,t.id,ae),$t.indexOf("event")>-1&&Aht.click(Gt,ft,t.id);else if(kt===1&&c){var hr=o?h:f,_r=o==="s"||s==="w"?0:1,Nr=hr._name+".range["+_r+"]",Br=Fht(hr,_r),Ur="left",ut="middle";if(hr.fixedrange)return;o?(ut=o==="n"?"top":"bottom",hr.side==="right"&&(Ur="right")):s==="e"&&(Ur="right"),Gt._context.showAxisRangeEntryBoxes&&BN.select(ie).call(Tht.makeEditable,{gd:Gt,immediate:!0,background:Gt._fullLayout.paper_bgcolor,text:String(Br),fill:hr.tickfont?hr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:ut}).on("edit",function(rt){var it=hr.d2r(rt);it!==void 0&&xP.call("_guiRelayout",Gt,Nr,it)})}}Sht.init(ae);var ke,ye,K,ce,pe,xe,Ce,Me,Le,je;function Se(kt,ft,Gt){var $t=ie.getBoundingClientRect();ke=ft-$t.left,ye=Gt-$t.top,e._fullLayout._calcInverseTransform(e);var hr=C0.apply3DTransform(e._fullLayout._invTransform)(ke,ye);ke=hr[0],ye=hr[1],K={l:ke,r:ke,w:0,t:ye,b:ye,h:0},ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:bht(e._fullLayout.plot_bgcolor).getLuminance(),pe="M0,0H"+k+"V"+A+"H0V0",xe=!1,Ce="xy",je=!1,Me=yhe(l,ce,p,E,pe),Le=_he(l,p,E)}function Xe(kt,ft){if(e._transitioningWithDuration)return!1;var Gt=Math.max(0,Math.min(k,X*kt+ke)),$t=Math.max(0,Math.min(A,G*ft+ye)),hr=Math.abs(Gt-ke),_r=Math.abs($t-ye);K.l=Math.min(ke,Gt),K.r=Math.max(ke,Gt),K.t=Math.min(ye,$t),K.b=Math.max(ye,$t);function Nr(){Ce="",K.r=K.l,K.t=K.b,Le.attr("d","M0,0Z")}if(L.isSubplotConstrained)hr>np||_r>np?(Ce="xy",hr/k>_r/A?(_r=hr*A/k,ye>$t?K.t=ye-_r:K.b=ye+_r):(hr=_r*k/A,ke>Gt?K.l=ke-hr:K.r=ke+hr),Le.attr("d",wP(K))):Nr();else if(_.isSubplotConstrained)if(hr>np||_r>np){Ce="xy";var Br=Math.min(K.l/k,(A-K.b)/A),Ur=Math.max(K.r/k,(A-K.t)/A);K.l=Br*k,K.r=Ur*k,K.b=(1-Br)*A,K.t=(1-Ur)*A,Le.attr("d",wP(K))}else Nr();else!S||_r0){var rt;if(_.isSubplotConstrained||!C&&S.length===1){for(rt=0;rt1&&(Nr.maxallowed!==void 0&&P===(Nr.range[0]1&&(Br.maxallowed!==void 0&&T===(Br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Oht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vhe(r,n)).attr("d",i+"Z")}function _he(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ohe.background,stroke:ohe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vhe(t,r)).attr("d","M0,0Z")}function xhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),bhe(e,t,i,a)}function bhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function ON(e){BN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function whe(e){uhe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),uhe=!1)}function Bht(e,t){return"M"+(e.l-.5)+","+(t-np-.5)+"h-3v"+(2*np+1)+"h3ZM"+(e.r+.5)+","+(t-np-.5)+"h3v"+(2*np+1)+"h-3Z"}function Nht(e,t){return"M"+(t-np-.5)+","+(e.t-.5)+"v-3h"+(2*np+1)+"v3ZM"+(t-np-.5)+","+(e.b+.5)+"v3h"+(2*np+1)+"v-3Z"}function wP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,np)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function hhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var Uht=ya(),TP=Nc(),Vht=gv(),Hht=Tg(),kg=UN().makeDragBox,ud=ad().DRAGGERSIZE;AP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Uht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=kg(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&TP.hover(t,h,a)},TP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Vht.unhover(t,h))},t._context.showAxisDragHandles&&(kg(t,o,s._offset-ud,l._offset-ud,ud,ud,"n","w"),kg(t,o,s._offset+s._length,l._offset-ud,ud,ud,"n","e"),kg(t,o,s._offset-ud,l._offset+l._length,ud,ud,"s","w"),kg(t,o,s._offset+s._length,l._offset+l._length,ud,ud,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=ud),kg(t,o,s._offset+s._length*.1,c,s._length*.8,ud,"","ew"),kg(t,o,s._offset,c,s._length*.1,ud,"","w"),kg(t,o,s._offset+s._length*.9,c,s._length*.1,ud,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=ud),kg(t,o,f,l._offset+l._length*.1,ud,l._length*.8,"ns",""),kg(t,o,f,l._offset+l._length*.9,ud,l._length*.1,"s",""),kg(t,o,f,l._offset,ud,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,TP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,TP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},AP.updateFx(t)}};AP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Hht(t._draggers,r)}});var Ehe=_e((kar,She)=>{"use strict";var Mhe=_a();She.exports=function(t){for(var r=Mhe.layoutArrayContainers,n=Mhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Ght=py(),HN=p6(),zS=G1(),jht=E6().sorterAsc,GN=_a();FS.containerArrayMatch=Ehe();var Wht=FS.isAddVal=function(t){return t==="add"||Ght(t)},khe=FS.isRemoveVal=function(t){return t===null||t==="remove"};FS.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=GN.getComponentMethod(o,"supplyLayoutDefaults"),l=GN.getComponentMethod(o,"draw"),u=GN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===HN||l===HN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&zS.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(khe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return zS.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(jht),x=r.get(),b=x||[],p=a(h,o).get(),E=[],k=-1,A=b.length,L,_,C,S,g,P,T,F;for(L=0;Lb.length-(T?0:1)){zS.warn("index out of range",o,C);continue}if(P!==void 0)g.length>1&&zS.warn("Insertion & removal are incompatible with edits to the same index.",o,C),khe(P)?E.push(C):T?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):zS.warn("Unrecognized full object edit value",o,C,P),k===-1&&(k=C);else for(_=0;_=0;L--)b.splice(E[L],1),p&&p.splice(E[L],1);if(b.length?x||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==HN){var q;if(k===-1)q=v;else{for(A=Math.max(b.length,A),q=[],L=0;L=k));L++)q.push(C);for(L=k;L{"use strict";var Rhe=ao(),Lar=qq(),Dhe=_a(),kp=Mr(),qS=Xu(),zhe=af(),Fhe=ha(),OS=zhe.cleanId,Zht=zhe.getFromTrace,jN=Dhe.traceIs;Cg.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&kp.log("Clearing previous rejected promises from queue."),e._promises=[]};Cg.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(qS.subplotsRegistry.cartesian||{}).attrRegex,i=(qS.subplotsRegistry.polar||{}).attrRegex,a=(qS.subplotsRegistry.ternary||{}).attrRegex,o=(qS.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Fhe.clean(e),e.template&&e.template.layout&&Cg.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=OS(r,n,!0))}Cg.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Cg.hasParent=function(e,t){for(var r=Ihe(t);r;){if(r in e)return!0;r=Ihe(r)}return!1};var Kht=["x","y","z"];Cg.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var kP=ya(),Jht=ao(),$ht=aO(),oa=Mr(),Yu=oa.nestedProperty,XN=g3(),ap=xne(),L0=_a(),zP=_3(),No=Xu(),Nv=Ka(),Qht=xB(),edt=Cd(),WN=ro(),tdt=ha(),rdt=VN().initInteractions,idt=Zp(),ndt=wf().clearOutline,Vhe=ub().dfltConfig,SP=Che(),yh=qhe(),$l=mS(),p_=Bu(),adt=ad().AX_NAME_PATTERN,ZN=0,Ohe=5;function odt(e,t,r,n){var i;if(e=oa.getGraphDiv(e),XN.init(e),oa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=XN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!oa.isPlotDiv(e)&&oa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return pl.addFrames(e,i)}Ghe(e,n),r||(r={}),kP.select(e).classed("js-plotly-plot",!0),WN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(yh.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=yh.cleanLayout(r)),No.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(Cdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),WN.initGradients(e),WN.initPatterns(e),l&&Nv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&No.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function jhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),LP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&LP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function fdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof S.parts[T]!="string";)T--;var F=S.parts[T],q=S.parts[T-1]+"."+F,V=S.parts.slice(0,T).join("."),H=Yu(e.layout,V).get(),X=Yu(n,V).get(),G=S.get();if(g!==void 0){p[C]=g,E[C]=F==="reverse"?g:ky(G);var N=zP.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&g!==null)for(var Z in N.impliedEdits)k(oa.relativeAttr(C,Z),N.impliedEdits[Z]);if(["width","height"].indexOf(C)!==-1)if(g){k("autosize",null);var ie=C==="height"?"width":"height";k(ie,n[ie])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")k("width",g?null:n.width),k("height",g?null:n.height);else if(q.match(ede))_(q),Yu(n,V+"._inputRange").set(null);else if(q.match(tde)){_(q),Yu(n,V+"._inputRange").set(null);var ae=Yu(n,V).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else q.match(pdt)&&Yu(n,V+"._inputDomain").set(null);if(F==="type"){L=H;var we=X.type==="linear"&&g==="log",Ee=X.type==="log"&&g==="linear";if(we||Ee){if(!L||!L.range)k(V+".autorange",!0);else if(X.autorange)we&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],ye=L.range[1];we?(ke<=0&&ye<=0&&k(V+".autorange",!0),ke<=0?ke=ye/1e6:ye<=0&&(ye=ke/1e6),k(V+".range[0]",Math.log(ke)/Math.LN10),k(V+".range[1]",Math.log(ye)/Math.LN10)):(k(V+".range[0]",Math.pow(10,ke)),k(V+".range[1]",Math.pow(10,ye)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,X,g,k),L0.getComponentMethod("images","convertCoords")(e,X,g,k)}else k(V+".autorange",!0),k(V+".range",null);Yu(n,V+"._inputRange").set(null)}else if(F.match(adt)){var K=Yu(n,C).get(),ce=(g||{}).type;(!ce||ce==="-")&&(ce="linear"),L0.getComponentMethod("annotations","convertCoords")(e,K,ce,k),L0.getComponentMethod("images","convertCoords")(e,K,ce,k)}var pe=SP.containerArrayMatch(C);if(pe){c=pe.array,f=pe.index;var xe=pe.property,Ce=N||{editType:"calc"};f!==""&&xe===""&&(SP.isAddVal(g)?E[C]=null:SP.isRemoveVal(g)?E[C]=(Yu(r,c).get()||[])[f]:oa.warn("unrecognized full object value",t)),p_.update(b,Ce),u[c]||(u[c]={});var Me=u[c][f];Me||(Me=u[c][f]={}),Me[xe]=g,delete t[C]}else F==="reverse"?(H.range?H.range.reverse():(k(V+".autorange",!0),H.range=[1,0]),X.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(g===!1&&G!==!1||g!==!1&&G===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(g==="lasso"||g==="select")&&!(G==="lasso"||G==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,S.set(g))}}for(c in u){var Le=SP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);Le||(b.plot=!0)}for(var je in A){L=Nv.getFromId(e,je);var Se=L&&L._constraintGroup;if(Se){b.calc=!0;for(var Xe in Se)A[Xe]||(Nv.getFromId(e,Xe)._constraintShrinkable=!0)}}(ide(e)||t.height||t.width)&&(b.plot=!0);var lt=n.shapes;for(f=0;f1;)if(n.pop(),r=Yu(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function ydt(e,t){for(var r=0;r=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var F=n._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var q=0;qn._timeToNext&&v()};F()}var b=0;function p(F){return Array.isArray(i)?b>=i.length?F.transitionOpts=i[b]:F.transitionOpts=i[0]:F.transitionOpts=i,b++,F}var E,k,A=[],L=t==null,_=Array.isArray(t),C=!L&&!_&&oa.isPlainObject(t);if(C)A.push({type:"object",data:p(oa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(E=0;E0&&PP)&&T.push(k);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function Mdt(e,t,r){if(e=oa.getGraphDiv(e),t==null)return Promise.resolve();if(!oa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(oa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,x=l[d]||f[d];d&&v&&typeof v=="number"&&x&&ZNS.index?-1:C.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&oa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=No.modifyFrames,l=No.modifyFrames,u=[e,o],c=[e,a];return ap&&ap.add(e,s,u,l,c),No.modifyFrames(e,a)}function Edt(e){e=oa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return No.cleanPlot([],{},r,t),No.purge(e),XN.purge(e),t._container&&t._container.remove(),delete e._context,e}function kdt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!oa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=oa.inverseTransformMatrix(oa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function Cdt(e){var t=kP.select(e),r=e._fullLayout;if(r._calcInverseTransform=kdt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};kP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=oa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(idt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}pl.animate=Adt;pl.addFrames=Mdt;pl.deleteFrames=Sdt;pl.addTraces=Khe;pl.deleteTraces=Jhe;pl.extendTraces=Xhe;pl.moveTraces=YN;pl.prependTraces=Yhe;pl.newPlot=cdt;pl._doPlot=odt;pl.purge=Edt;pl.react=bdt;pl.redraw=udt;pl.relayout=BS;pl.restyle=PP;pl.setPlotConfig=sdt;pl.update=RP;pl._guiRelayout=JN(BS);pl._guiRestyle=JN(PP);pl._guiUpdate=JN(RP);pl._storeDirectGUIEdit=vdt});var Cy=_e(Sm=>{"use strict";var Ldt=_a();Sm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Sm.getRedrawFunc=function(e){return function(){Ldt.getComponentMethod("colorbar","draw")(e)}};Sm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Sm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nde=window.URL||window.webkitURL;Sm.createObjectURL=function(e){return nde.createObjectURL(e)};Sm.revokeObjectURL=function(e){return nde.revokeObjectURL(e)};Sm.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Pdt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Sm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Pdt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var QN=ya(),Dar=Mr(),Idt=ro(),Rdt=ha(),zar=Zp(),$N=/"/g,US="TOBESTRIPPED",Ddt=new RegExp('("'+US+")|("+US+'")',"g");function zdt(e){var t=QN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function Fdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ade.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(Idt.setRect,0,0,s,l).call(Rdt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var qdt=Mr(),Odt=vb().EventEmitter,VS=Cy();function Bdt(e){var t=e.emitter||new Odt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),x=new a,b,p;s==="svg"||qdt.isSafari()?p=VS.encodeSVG(o):(b=VS.createBlob(o,"svg"),p=VS.createObjectURL(b)),l.width=h,l.height=d,x.onload=function(){var E;switch(b=null,VS.revokeObjectURL(p),s!=="svg"&&v.drawImage(x,0,0,h,d),s){case"jpeg":E=l.toDataURL("image/jpeg");break;case"png":E=l.toDataURL("image/png");break;case"webp":E=l.toDataURL("image/webp");break;case"svg":E=p;break;default:var k="Image format is not jpeg, png, svg or webp.";if(i(new Error(k)),!e.promise)return t.emit("error",k)}n(E),e.promise||t.emit("success",E)},x.onerror=function(E){if(b=null,VS.revokeObjectURL(p),i(E),!e.promise)return t.emit("error",E)},x.src=p});return e.promise?r:t}ode.exports=Bdt});var tU=_e((Oar,ude)=>{"use strict";var sde=ao(),lde=qP(),Ndt=Xu(),Em=Mr(),HS=Cy(),Udt=OP(),Vdt=BP(),Hdt=e6().version,eU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Gdt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Em.validate(t[_],eU[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Em.join2(eU.format.values,", "," or ")+".");var s={};function l(_,C){return Em.coerce(t,s,eU,_,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&sde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&sde(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),E=HS.getRedrawFunc(x);function k(){return new Promise(function(_){setTimeout(_,HS.getDelay(x._fullLayout))})}function A(){return new Promise(function(_,C){var S=Udt(x,u,h),g=x._fullLayout.width,P=x._fullLayout.height;function T(){lde.purge(x),document.body.removeChild(x)}if(u==="full-json"){var F=Ndt.graphJson(x,!1,"keepdata","object",!0,!0);return F.version=Hdt,F=JSON.stringify(F),T(),_(v?F:HS.encodeJSON(F))}if(T(),u==="svg")return _(v?S:HS.encodeSVG(S));var q=document.createElement("canvas");q.id=Em.randstr(),Vdt({format:u,width:g,height:P,scale:h,canvas:q,svg:S,promise:!0}).then(_).catch(C)})}function L(_){return v?_.replace(HS.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,C){lde.newPlot(x,r,b,p).then(E).then(k).then(A).then(function(S){_(L(S))}).catch(function(S){C(S)})})}ude.exports=Gdt});var dde=_e((Bar,hde)=>{"use strict";var P0=Mr(),jdt=Xu(),Wdt=_3(),Zdt=ub().dfltConfig,Lg=P0.isPlainObject,Vb=Array.isArray,cde=P0.isArrayOrTypedArray;hde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Wdt.get(),i=[],a={_context:P0.extendFlat({},Zdt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(cd("array","data"))),Lg(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(cd("object","layout"))),jdt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(cd("unused",i,u.concat(f.length)));var p=f.length,E=Array.isArray(b);E&&(p=Math.min(p,b.length));var k,A,L,_,C;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(cd("unused",i,u.concat(A,f[A].length)));var S=f[A].length;for(k=0;k<(E?Math.min(S,b[A].length):S);k++)L=E?b[A][k]:b,_=c[A][k],C=f[A][k],P0.validate(_,L)?C!==_&&C!==+_&&n.push(cd("dynamic",i,u.concat(A,k),_,C)):n.push(cd("value",i,u.concat(A,k),_))}else n.push(cd("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var evt=Mr(),UP=Cy();function tvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=UP.createBlob(e,r),u=UP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),UP.revokeObjectURL(u),l=null,o(t);if(evt.isSafari()){var c=r==="svg"?",":";base64,";return UP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}vde.exports=tvt});var rU=_e((Var,mde)=>{"use strict";var gde=Mr(),rvt=tU(),ivt=pde(),Uar=Cy();function nvt(e,t){var r;return gde.isPlainObject(e)||(r=gde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=rvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),ivt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}mde.exports=nvt});var wde=_e(iU=>{"use strict";var Cp=Mr(),Lp=Cp.isPlainObject,yde=_3(),_de=Xu(),avt=vl(),xde=Us(),bde=ub().dfltConfig;iU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:bde},{data:e.data,layout:e.layout}),_de.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};GS(d,v,svt.bind(null,d));var x=Cp.coerce(d,{},avt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(v)}),GS(r,n.layout,ovt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lp(i)){var a=i.layout,o,s,l,u,c,f;Lp(a)&&VP(a,n.layout);var h=i.data;if(Lp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function E(k,A){for(var L in k)if(L.charAt(0)!=="_"){var _=k[L],C=I0(k,L,A);Lp(_)?(Array.isArray(k)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:C,templateitemname:_.templateitemname}),E(_,C)):Array.isArray(_)&&lvt(_)&&E(_,C)}}if(E({data:l,layout:s},""),o.length)return o.map(uvt)};function lvt(e){for(var t=0;t{"use strict";var Hh=qP();Mc._doPlot=Hh._doPlot;Mc.newPlot=Hh.newPlot;Mc.restyle=Hh.restyle;Mc.relayout=Hh.relayout;Mc.redraw=Hh.redraw;Mc.update=Hh.update;Mc._guiRestyle=Hh._guiRestyle;Mc._guiRelayout=Hh._guiRelayout;Mc._guiUpdate=Hh._guiUpdate;Mc._storeDirectGUIEdit=Hh._storeDirectGUIEdit;Mc.react=Hh.react;Mc.extendTraces=Hh.extendTraces;Mc.prependTraces=Hh.prependTraces;Mc.addTraces=Hh.addTraces;Mc.deleteTraces=Hh.deleteTraces;Mc.moveTraces=Hh.moveTraces;Mc.purge=Hh.purge;Mc.addFrames=Hh.addFrames;Mc.deleteFrames=Hh.deleteFrames;Mc.animate=Hh.animate;Mc.setPlotConfig=Hh.setPlotConfig;var cvt=zM().getGraphDiv,fvt=tP().eraseActiveShape;Mc.deleteActiveShape=function(e){return fvt(cvt(e))};Mc.toImage=tU();Mc.validate=dde();Mc.downloadImage=rU();var Tde=wde();Mc.makeTemplate=Tde.makeTemplate;Mc.validateTemplate=Tde.validateTemplate});var K3=_e((jar,Mde)=>{"use strict";var nU=Mr(),hvt=_a();Mde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=hvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=nU.minRowLength(a);o?s=Math.min(u,nU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=nU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=_e((War,kde)=>{"use strict";var Sde=Mr().dateTick0,dvt=Jo(),vvt=dvt.ONEWEEK;function Ede(e,t){return e%vvt===0?Sde(t,1):Sde(t,0)}kde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Ede(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Ede(s,r.ycalendar)),i("yperiodalignment"))}}});var Pde=_e((Zar,Lde)=>{"use strict";var Cde=["orientation","groupnorm","stackgaps"];Lde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Ide=ha(),Rde=Dv().hasColorscale,Dde=Uh(),pvt=lu();zde.exports=function(t,r,n,i,a,o){var s=pvt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Rde(t,"marker")&&Dde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Ide.background:u=Ide.defaultLine,a("marker.line.color",u),Rde(t,"marker.line")&&Dde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var R0=_e((Yar,Fde)=>{"use strict";var gvt=Mr().isArrayOrTypedArray,mvt=Dv().hasColorscale,yvt=Uh();Fde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),mvt(t,"line"))yvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(gvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=_e((Kar,qde)=>{"use strict";qde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=_e((Jar,Ode)=>{"use strict";var _vt=Mr();Ode.exports=function(e,t,r,n,i){i=i||{},n("textposition"),_vt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=_e(($ar,Nde)=>{"use strict";var GP=ha(),Bde=Mr().isArrayOrTypedArray;function xvt(e){for(var t=GP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Ude=Mr(),bvt=_a(),wvt=Uc(),Tvt=Mm(),$3=lu(),Avt=K3(),Mvt=Pg(),Svt=Pde(),Evt=$p(),kvt=R0(),Vde=J3(),Cvt=D0(),Lvt=Ig(),Pvt=Mr().coercePattern;Hde.exports=function(t,r,n,i){function a(d,v){return Ude.coerce(t,r,wvt,d,v)}var o=Avt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){Mvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Svt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Ivt=Bb().getAxisGroup;jde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Ivt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,x=v[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=x.offsetIndex)}});var aU=_e((tor,Wde)=>{"use strict";var Rvt=Mr(),Dvt=Hb(),zvt=Uc();Wde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Rvt.coerce(i._input,i,zvt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Xde=_e((ror,Zde)=>{"use strict";var Fvt=Mr(),qvt=U6();Zde.exports=function(e,t){function r(i,a){return Fvt.coerce(e,t,qvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=_e((ior,Kde)=>{"use strict";var Ovt=ao(),Yde=Mr(),Bvt=Yde.dateTime2ms,jP=Yde.incrementMonth,Nvt=Jo(),Uvt=Nvt.ONEAVGMONTH;Kde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Ovt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=Bvt(h,u)||0,v=[],x=[],b=[],p=i.length,E=0;Ek;)_=jP(_,-s,u);for(;_<=k;)_=jP(_,s,u);L=jP(_,-s,u)}else{for(A=Math.round((k-d)/o),_=d+A*o;_>k;)_-=o;for(;_<=k;)_+=o;L=_-o}v[E]=c?L:f?_:(L+_)/2,x[E]=L,b[E]=_}return{vals:v,starts:x,ends:b}}});var z0=_e((nor,$de)=>{"use strict";var oU=Dv().hasColorscale,sU=zv(),Jde=lu();$de.exports=function(t,r){Jde.hasLines(r)&&oU(r,"line")&&sU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Jde.hasMarkers(r)&&(oU(r,"marker")&&sU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),oU(r,"marker.line")&&sU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var km=_e((aor,Qde)=>{"use strict";var Df=Mr();Qde.exports=function(t,r){for(var n=0;n{"use strict";var eve=Mr();tve.exports=function(t,r){eve.isArrayOrTypedArray(r.selectedpoints)&&eve.tagSelected(t,r)}});var q0=_e((sor,lve)=>{"use strict";var rve=ao(),uU=Mr(),jS=Ka(),ive=Rg(),lU=Jo().BADNUM,cU=lu(),Vvt=z0(),Hvt=km(),Gvt=F0();function jvt(e,t){var r=e._fullLayout,n=t._xA=jS.getFromId(e,t.xaxis||"x","x"),i=t._yA=jS.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=ive(t,n,"x",a),l=ive(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=fU(t,r,n,i),x=!1,b,p,E,k,A,L;ove(r,t);var _="x",C="y",S;if(v)uU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",S="x"):(_="s",S="y"),A=v.stackgaps==="interpolate";else{var g=ave(t,f);nve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[k].gap;)k--;for(L=h[k].s,E=h.length-1;E>k;E--)h[E].s=L;for(;p{"use strict";uve.exports=WP;var Wvt=Mr().distinctVals;function WP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var O0=ao(),g_=Mr().isArrayOrTypedArray,Q3=Jo().BADNUM,Zvt=_a(),WS=Ka(),Xvt=Bb().getAxisGroup,ZP=cve();function Yvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!O0(s))}for(var c=0;c{"use strict";var pve=q0(),gve=Gb().setGroupPositions;function spt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var upt=ro(),wve=Jo(),ZS=wve.BADNUM,Tve=wve.LOG_CLIP,_ve=Tve+.5,xve=Tve-.5,XP=Mr(),cpt=XP.segmentsIntersect,bve=XP.constrain,mU=Mm();Ave.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,x=v==="linear",b=n.fill&&n.fill!=="none",p=[],E=mU.minTolerance,k=t.length,A=new Array(k),L=0,_,C,S,g,P,T,F,q,V,H,X,G,N,Z,ie,ae;function we(ut){var rt=t[ut];if(!rt)return!1;var it=r.linearized?i.l2p(rt.x):i.c2p(rt.x),Ze=r.linearized?a.l2p(rt.y):a.c2p(rt.y);if(it===ZS){if(o&&(it=i.c2p(rt.x,!0)),it===ZS)return!1;s&&Ze===ZS&&(it*=Math.abs(i._m*u*(i._m>0?_ve:xve)/(a._m*l*(a._m>0?_ve:xve)))),it*=1e3}if(Ze===ZS){if(s&&(Ze=a.c2p(rt.y,!0)),Ze===ZS)return!1;Ze*=1e3}return[it,Ze]}function Ee(ut,rt,it,Ze){var Je=it-ut,ht=Ze-rt,Ie=.5-ut,le=.5-rt,be=Je*Je+ht*ht,Qe=Je*Ie+ht*le;if(Qe>0&&Qe1||Math.abs(Ie.y-it[0][1])>1)&&(Ie=[Ie.x,Ie.y],Ze&&ce(Ie,ut)Ce||ut[1]Le)return[bve(ut[0],xe,Ce),bve(ut[1],Me,Le)]}function Lt(ut,rt){if(ut[0]===rt[0]&&(ut[0]===xe||ut[0]===Ce)||ut[1]===rt[1]&&(ut[1]===Me||ut[1]===Le))return!0}function Rt(ut,rt){var it=[],Ze=Ft(ut),Je=Ft(rt);return Ze&&Je&&Lt(Ze,Je)||(Ze&&it.push(Ze),Je&&it.push(Je)),it}function Xt(ut,rt,it){return function(Ze,Je){var ht=Ft(Ze),Ie=Ft(Je),le=[];if(ht&&Ie&&Lt(ht,Ie))return le;ht&&le.push(ht),Ie&&le.push(Ie);var be=2*XP.constrain((Ze[ut]+Je[ut])/2,rt,it)-((ht||Ze)[ut]+(Ie||Je)[ut]);if(be){var Qe;ht&&Ie?Qe=be>0==ht[ut]>Ie[ut]?ht:Ie:Qe=ht||Ie,Qe[ut]+=be}return le}}var xr;v==="linear"||v==="spline"?xr=ot:v==="hv"||v==="vh"?xr=Rt:v==="hvh"?xr=Xt(0,xe,Ce):v==="vhv"&&(xr=Xt(1,Me,Le));function er(ut,rt){var it=rt[0]-ut[0],Ze=(rt[1]-ut[1])/it,Je=(ut[1]*rt[0]-rt[1]*ut[0])/it;return Je>0?[Ze>0?xe:Ce,Le]:[Ze>0?Ce:xe,Me]}function Ge(ut){var rt=ut[0],it=ut[1],Ze=rt===A[L-1][0],Je=it===A[L-1][1];if(!(Ze&&Je))if(L>1){var ht=rt===A[L-2][0],Ie=it===A[L-2][1];Ze&&(rt===xe||rt===Ce)&&ht?Ie?L--:A[L-1]=ut:Je&&(it===Me||it===Le)&&Ie?ht?L--:A[L-1]=ut:A[L++]=ut}else A[L++]=ut}function yt(ut){A[L-1][0]!==ut[0]&&A[L-1][1]!==ut[1]&&Ge([lt,At]),Ge(ut),Yt=null,lt=At=0}var _t=XP.isArrayOrTypedArray(f);function Ct(ut){if(ut&&c&&(ut.i=_,ut.d=t,ut.trace=n,ut.marker=_t?f[ut.i]:f,ut.backoff=c),ke=ut[0]/l,ye=ut[1]/u,Se=ut[0]Ce?Ce:0,Xe=ut[1]Le?Le:0,Se||Xe){if(!L)A[L++]=[Se||ut[0],Xe||ut[1]];else if(Yt){var rt=xr(Yt,ut);rt.length>1&&(yt(rt[0]),A[L++]=rt[1])}else nt=xr(A[L-1],ut)[0],A[L++]=nt;var it=A[L-1];Se&&Xe&&(it[0]!==Se||it[1]!==Xe)?(Yt&&(lt!==Se&&At!==Xe?Ge(lt&&At?er(Yt,ut):[lt||Se,At||Xe]):lt&&At&&Ge([lt,At])),Ge([Se,Xe])):lt-Se&&At-Xe&&Ge([Se||lt,Xe||At]),Yt=ut,lt=Se,At=Xe}else Yt&&yt(xr(Yt,ut)[0]),A[L++]=ut}for(_=0;_K(T,St))break;S=T,N=V[0]*q[0]+V[1]*q[1],N>X?(X=N,g=T,F=!1):N=t.length||!T)break;Ct(T),C=T}}Yt&&Ge([lt||Yt[0],At||Yt[1]]),p.push(A.slice(0,L))}var kt=v.slice(v.length-1);if(c&&kt!=="h"&&kt!=="v"){for(var ft=!1,Gt=-1,$t=[],hr=0;hr{"use strict";var Mve={tonextx:1,tonexty:1,tonext:1};Sve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=ya(),fpt=_a(),XS=Mr(),tT=XS.ensureSingle,kve=XS.identity,zf=ro(),rT=lu(),hpt=yU(),dpt=_U(),YP=TS().tester;Cve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=dpt(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),vpt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Eve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Eve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function vpt(e,t,r){t.each(function(n){var i=tT(Dg.select(this),"g","fills");zf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,kve);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=tT(Dg.select(this),"path","js-fill")})})}function Eve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;ppt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(Xt){return u?Xt.transition():Xt}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,x=Dg.select(a),b=tT(x,"g","errorbars"),p=tT(x,"g","lines"),E=tT(x,"g","points"),k=tT(x,"g","text");if(fpt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(x).style("opacity",d.opacity);var A,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var C,S;_==="y"?(C=1,S=h.c2p(0,!0)):_==="x"&&(C=0,S=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var g="",P=[],T=d._prevtrace,F=null,q=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,F=T._fillsegments,q=T._fillElement);var V,H,X="",G="",N,Z,ie,ae,we,Ee,ke=[];d._polygons=[];var ye=[],K=[],ce=XS.noop;if(A=d._ownFill,rT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=zf.steps(v.shape),Z=zf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=Z=function(Xt){var xr=Xt[Xt.length-1];return Xt.length>1&&Xt[0][0]===xr[0]&&Xt[0][1]===xr[1]?zf.smoothclosed(Xt.slice(1),v.smoothing):zf.smoothopen(Xt,v.smoothing)}:N=Z=function(Xt){return"M"+Xt.join("L")},ie=function(Xt){return Z(Xt.reverse())},K=hpt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),ye=new Array(K.length);var pe=0;for(l=0;l=s[0]&&x.x<=s[1]&&x.y>=l[0]&&x.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(x,b){var p=x[0].trace;rT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Lve.exports={container:"marker",min:"cmin",max:"cmax"}});var JP=_e((gor,Pve)=>{"use strict";var KP=Ka();Pve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=KP.getFromTrace(a,r,"x"),s=KP.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=KP.tickText(o,o.c2l(l),!0).text,i.yLabel=KP.tickText(s,s.c2l(u),!0).text,i}});var op=_e((mor,Ive)=>{"use strict";var xU=ya(),nT=ro(),gpt=_a();function mpt(e){var t=xU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=xU.select(this),i=r.trace||r[0].trace;bU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=xU.select(this),i=r.trace||r[0].trace;wU(n,i,e)}),t.selectAll("g.trace path.js-line").call(nT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nT.fillGroupStyle,e,!1),gpt.getComponentMethod("errorbars","style")(t)}function bU(e,t,r){nT.pointStyle(e.selectAll("path.point"),t,r)}function wU(e,t,r){nT.textPointStyle(e.selectAll("text"),t,r)}function ypt(e,t,r){var n=t[0].trace;n.selectedpoints?(nT.selectedPointStyle(r.selectAll("path.point"),n),nT.selectedTextStyle(r.selectAll("text"),n)):(bU(r,n,e),wU(r,n,e))}Ive.exports={style:mpt,stylePoints:bU,styleText:wU,styleOnSelect:ypt}});var oT=_e((yor,Rve)=>{"use strict";var aT=ha(),_pt=lu();Rve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aT.opacity(a)?a:o&&aT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aT.opacity(i)<.3?aT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aT.opacity(n)&&_pt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sT=_e((_or,zve)=>{"use strict";var $P=Mr(),Dve=Nc(),xpt=_a(),bpt=oT(),TU=ha(),wpt=$P.fillText;zve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(G){if(v){var N=s.c2p(G.xStart),Z=s.c2p(G.xEnd);return u>=Math.min(N,Z)&&u<=Math.max(N,Z)?0:1/0}var ie=Math.max(3,G.mrc||0),ae=1-1/ie,we=Math.abs(s.c2p(G.x)-u);return we=Math.min(N,Z)&&c<=Math.max(N,Z)?0:1/0}var ie=Math.max(3,G.mrc||0),ae=1-1/ie,we=Math.abs(l.c2p(G.y)-c);return weke!=Le>=ke&&(xe=ce[K-1][0],Ce=ce[K][0],Le-Me&&(pe=xe+(Ce-xe)*(ke-Me)/(Le-Me),ie=Math.min(ie,pe),ae=Math.max(ae,pe)));return ie=Math.max(ie,0),ae=Math.min(ae,s._length),{x0:ie,x1:ae,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=F(o._fillElement)&&!F(o._fillExclusionElement);if(V){var H=q(o._polygons);H===null&&(H={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var X=TU.defaultLine;return TU.opacity(o.fillcolor)?X=o.fillcolor:TU.opacity((o.line||{}).color)&&(X=o.line.color),$P.extendFlat(t,{distance:t.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:X,hovertemplate:!1}),delete t.index,o.text&&!$P.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lT=_e((xor,qve)=>{"use strict";var Fve=lu();qve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Fve.hasMarkers(s)&&!Fve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Ove.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MU=_e((wor,Vve)=>{"use strict";var YS=_a().traceIs,AU=L3();Vve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(Tpt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function Tpt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Apt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!YS(a,"cartesian")||YS(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Uve(a,n)){var u=Nve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Uve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Nve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Uve(e,t){var r=Nve(e),n=YS(e,"box-violin"),i=YS(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var QP=_e((Tor,Hve)=>{"use strict";var Mpt=vv().isTypedArraySpec;function Spt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||Mpt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=Spt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var KS=_e((Aor,jve)=>{"use strict";var Gve=id().mix,Ept=dh(),kpt=Mr();jve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(C,S){return kpt.coerce2(t,r,i.attributes,C,S)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Gve(a,i.bgColor,i.blend||Ept.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=Gve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),p=o("minor.gridwidth",r.gridwidth||1),E=o("minor.griddash",r.griddash||"solid"),k=n("minor.showgrid",!!b||!!p||!!E);k||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinecolor",a),L=o("zerolinewidth"),_=n("zeroline",i.showGrid||!!A||!!L);_||(delete r.zerolinecolor,delete r.zerolinewidth)}}});var $S=_e((Mor,Jve)=>{"use strict";var Wve=ao(),Cpt=_a(),JS=Mr(),Lpt=Us(),Ppt=Zd(),SU=Cd(),Zve=xb(),Xve=T3(),Ipt=t_(),Rpt=r_(),Dpt=QP(),zpt=KS(),Fpt=xB(),Yve=ym(),eI=ad().WEEKDAY_PATTERN,qpt=ad().HOUR_PATTERN;Jve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=Cpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=JS.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),Yve(r,a),Fpt(t,r,n,i),Dpt(t,r,n,i),f!=="category"&&!i.noHover&&n("hoverformat");var x=n("color"),b=x!==SU.color.dflt?x:s.color,p=l.label||a._dfltTitle[o];if(Rpt(t,r,n,f,i),!u)return r;n("title.text",p),JS.coerceFont(n,"title.font",s,{overrideDflt:{size:JS.bigFont(s.size),color:b}}),Zve(t,r,n,f);var E=i.hasMinor;if(E&&(Lpt.newContainer(r,"minor"),Zve(t,r,n,f,{isMinor:!0})),Ipt(t,r,n,f,i),Xve(t,r,n,i),E){var k=i.isMinor;i.isMinor=!0,Xve(t,r,n,i),i.isMinor=k}zpt(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:E,attributes:SU}),E&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)){var L;A&&(L="boundaries");var _=n("tickson",L);_==="boundaries"&&delete r.ticklabelposition}if(A){var C=n("showdividers");C&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Ppt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Opt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var S=0;S=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Kve(a[s]),l){o=eI;break}}var u=n("pattern",o);if(u===eI)for(s=0;s<2;s++)l=Kve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case eI:if(!Wve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case qpt:if(!Wve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var Npt=ao(),tI=Mr();$ve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,x;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Npt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,x=!1;var b=tI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=tI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var E=n("autoshift");E&&(d=p==="left"?u[0]:u[1],x=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",x);var k=!1;if(o.length&&(k=tI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!k){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),tI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var spe=_e((Eor,ope)=>{"use strict";var jb=Mr(),Qve=ha(),Upt=rp().isUnifiedHover,Vpt=jB(),epe=Us(),Hpt=s3(),tpe=Cd(),Gpt=MU(),rpe=$S(),jpt=Bb(),ipe=rI(),kU=af(),Cm=kU.id2name,npe=kU.name2id,Wpt=ad().AX_ID_PATTERN,ape=_a(),iI=ape.traceIs,EU=ape.getComponentMethod;function nI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}ope.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},x,b;for(x=0;x{"use strict";var Zpt=ya(),lpe=_a(),aI=Mr(),Qp=ro(),oI=Ka();upe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){oI.redrawComponents(t);return}function o(b){var p=b.xaxis,E=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,E._offset).call(Qp.setScale,1,1);var k=b.plot.selectAll(".scatterlayer .trace");k.selectAll(".point").call(Qp.setPointGroupScale,1,1),k.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),k.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var E=b.plotinfo,k=E.xaxis,A=E.yaxis,L=k._length,_=A._length,C=!!b.xr1,S=!!b.yr1,g=[];if(C){var P=aI.simpleMap(b.xr0,k.r2l),T=aI.simpleMap(b.xr1,k.r2l),F=P[1]-P[0],q=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*q/F),k.range[0]=k.l2r(P[0]*(1-p)+p*T[0]),k.range[1]=k.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(S){var V=aI.simpleMap(b.yr0,A.r2l),H=aI.simpleMap(b.yr1,A.r2l),X=V[1]-V[0],G=H[1]-H[0];g[1]=(V[1]*(1-p)+p*H[1]-V[1])/(V[0]-V[1])*_,g[3]=_*(1-p+p*G/X),A.range[0]=k.l2r(V[0]*(1-p)+p*H[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*H[1])}else g[1]=0,g[3]=_;oI.drawOne(t,k,{skipTitle:!0}),oI.drawOne(t,A,{skipTitle:!0}),oI.redrawComponents(t,[k._id,A._id]);var N=C?L/g[2]:1,Z=S?_/g[3]:1,ie=C?g[0]:0,ae=S?g[1]:0,we=C?g[0]/g[2]*L:0,Ee=S?g[1]/g[3]*_:0,ke=k._offset-we,ye=A._offset-Ee;E.clipRect.call(Qp.setTranslate,ie,ae).call(Qp.setScale,1/N,1/Z),E.plot.call(Qp.setTranslate,ke,ye).call(Qp.setScale,N,Z),Qp.setPointGroupScale(E.zoomScalePts,1/N,1/Z),Qp.setTextPointsScale(E.zoomScaleTxt,1/N,1/Z)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return f=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var Jf=_e(yv=>{"use strict";var lI=ya(),fpe=_a(),Wb=Mr(),Xpt=Xu(),Ypt=ro(),hpe=kd().getModuleCalcData,m_=af(),zg=ad(),Kpt=Zp(),ql=Wb.ensureSingle;function sI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Zb=zg.zindexSeparator;yv.name="cartesian";yv.attr=["xaxis","yaxis"];yv.idRoot=["x","y"];yv.idRegex=zg.idRegex;yv.attrRegex=zg.attrRegex;yv.attributes=Bve();yv.layoutAttributes=Cd();yv.supplyLayoutDefaults=spe();yv.transitionAxes=cpe();yv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Zb)!==-1)continue;d+=Zb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],x,b=0;b1&&(L+=Zb+A),k.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=ql(n,"path","xlines-above"),t.ylines=ql(n,"path","ylines-above"),t.xaxislayer=ql(n,"g","xaxislayer-above"),t.yaxislayer=ql(n,"g","yaxislayer-above");else{if(!o){var h=ql(n,"g","layer-subplot");t.shapelayer=ql(h,"g","shapelayer"),t.imagelayer=ql(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=ql(n,"g","minor-gridlayer"),t.gridlayer=ql(n,"g","gridlayer"),t.zerolinelayer=ql(n,"g","zerolinelayer"));var d=ql(n,"g","layer-between");t.shapelayerBetween=ql(d,"g","shapelayer"),t.imagelayerBetween=ql(d,"g","imagelayer"),ql(n,"path","xlines-below"),ql(n,"path","ylines-below"),t.overlinesBelow=ql(n,"g","overlines-below"),ql(n,"g","xaxislayer-below"),ql(n,"g","yaxislayer-below"),t.overaxesBelow=ql(n,"g","overaxes-below")}t.overplot=ql(n,"g","overplot"),t.plot=ql(t.overplot,"g",i),o||(t.xlines=ql(n,"path","xlines-above"),t.ylines=ql(n,"path","ylines-above"),t.overlinesAbove=ql(n,"g","overlines-above"),ql(n,"g","xaxislayer-above"),ql(n,"g","yaxislayer-above"),t.overaxesAbove=ql(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,ql(f.overlinesBelow,"path",x),ql(f.overlinesBelow,"path",b),ql(f.overaxesBelow,"g",x),ql(f.overaxesBelow,"g",b),t.plot=ql(f.overplot,"g",i),ql(f.overlinesAbove,"path",x),ql(f.overlinesAbove,"path",b),ql(f.overaxesAbove,"g",x),ql(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+x),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+x),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(sI(t.minorGridlayer,"g",t.xaxis._id),sI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort),sI(t.gridlayer,"g",t.xaxis._id),sI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function ppe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=lI.select(this);c.remove(),gpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var uI=lu();mpe.exports={hasLines:uI.hasLines,hasMarkers:uI.hasMarkers,hasText:uI.hasText,isBubble:uI.isBubble,attributes:Uc(),layoutAttributes:U6(),supplyDefaults:Gde(),crossTraceDefaults:aU(),supplyLayoutDefaults:Xde(),calc:q0().calc,crossTraceCalc:yve(),arraysToCalcdata:km(),plot:iT(),colorbar:Kd(),formatLabels:JP(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:sT(),selectPoints:lT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Jf(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var bpe=_e((Por,xpe)=>{"use strict";var $pt=ya(),Qpt=ha(),_pe=RN(),CU=Mr(),e0t=CU.strScale,t0t=CU.strRotate,r0t=CU.strTranslate;xpe.exports=function(t,r,n){var i=t.node(),a=_pe[n.arrowhead||0],o=_pe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,E=d.y-v.y;if(x=Math.atan2(E,p),b=x+Math.PI,f&&h&&f+h>Math.sqrt(p*p+E*E)){V();return}if(f){if(f*f>p*p+E*E){V();return}var k=f*Math.cos(x),A=f*Math.sin(x);v.x+=k,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+E*E){V();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C{"use strict";var wpe=ya(),LU=_a(),i0t=Xu(),__=Mr(),PU=__.strTranslate,e4=Ka(),Xb=ha(),Ly=ro(),Tpe=Nc(),IU=Pl(),RU=Tg(),QS=gv(),n0t=Us().arrayEditor,a0t=bpe();Spe.exports={draw:o0t,drawOne:Ape,drawRaw:Mpe};function o0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Je="right":Je="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Je]}for(var Me=!1,Le=["x","y"],je=0;je1)&&(lt===Xe?(St=At.r2fraction(t["a"+Se]),(St<0||St>1)&&(Me=!0)):Me=!0),xr=At._offset+At.r2p(t[Se]),yt=.5}else{var kt=Ct==="domain";Se==="x"?(Ge=t[Se],xr=kt?At._offset+At._length*Ge:xr=s.l+s.w*Ge):(Ge=1-t[Se],xr=kt?At._offset+At._length*Ge:xr=s.t+s.h*Ge),yt=t.showarrow?.5:Ge}if(t.showarrow){Xt.head=xr;var ft=t["a"+Se];if(_t=nt*Ce(.5,t.xanchor)-ot*Ce(.5,t.yanchor),lt===Xe){var Gt=e4.getRefType(lt);Gt==="domain"?(Se==="y"&&(ft=1-ft),Xt.tail=At._offset+At._length*ft):Gt==="paper"?Se==="y"?(ft=1-ft,Xt.tail=s.t+s.h*ft):Xt.tail=s.l+s.w*ft:Xt.tail=At._offset+At.r2p(ft),er=_t}else Xt.tail=xr+ft,er=_t+ft;Xt.text=Xt.tail+_t;var $t=o[Se==="x"?"width":"height"];if(Xe==="paper"&&(Xt.head=__.constrain(Xt.head,1,$t-1)),lt==="pixel"){var hr=-Math.max(Xt.tail-3,Xt.text),_r=Math.min(Xt.tail+3,Xt.text)-$t;hr>0?(Xt.tail+=hr,Xt.text+=hr):_r>0&&(Xt.tail-=_r,Xt.text-=_r)}Xt.tail+=Rt,Xt.head+=Rt}else _t=Ft*Ce(yt,Lt),er=_t,Xt.text=xr+_t;Xt.text+=Rt,_t+=Rt,er+=Rt,t["_"+Se+"padplus"]=Ft/2+er,t["_"+Se+"padminus"]=Ft/2-er,t["_"+Se+"size"]=Ft,t["_"+Se+"shift"]=_t}if(Me){C.remove();return}var Nr=0,Br=0;if(t.align!=="left"&&(Nr=(K-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Br=(ce-ye)*(t.valign==="middle"?.5:1)),we)ae.select("svg").attr({x:P+Nr-1,y:P+Br}).call(Ly.setClipUrl,F?x:null,e);else{var Ur=P+Br-Ee.top,ut=P+Nr-Ee.left;X.call(IU.positionText,ut,Ur).call(Ly.setClipUrl,F?x:null,e)}q.select("rect").call(Ly.setRect,P,P,K,ce),T.call(Ly.setRect,S/2,S/2,pe-S,xe-S),C.call(Ly.setTranslate,Math.round(b.x.text-pe/2),Math.round(b.y.text-xe/2)),k.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var rt=function(Ze,Je){E.selectAll(".annotation-arrow-g").remove();var ht=b.x.head,Ie=b.y.head,le=b.x.tail+Ze,be=b.y.tail+Je,Qe=b.x.text+Ze,xt=b.y.text+Je,Ot=__.rotationXYMatrix(p,Qe,xt),rr=__.apply2DTransform(Ot),Jr=__.apply2DTransform2(Ot),ni=+T.attr("width"),Gr=+T.attr("height"),ri=Qe-.5*ni,Ti=ri+ni,an=xt-.5*Gr,Yi=an+Gr,Xi=[[ri,an,ri,Yi],[ri,Yi,Ti,Yi],[Ti,Yi,Ti,an],[Ti,an,ri,an]].map(Jr);if(!Xi.reduce(function(Hr,mi){return Hr^!!__.segmentsIntersect(ht,Ie,ht+1e6,Ie+1e6,mi[0],mi[1],mi[2],mi[3])},!1)){Xi.forEach(function(Hr){var mi=__.segmentsIntersect(le,be,ht,Ie,Hr[0],Hr[1],Hr[2],Hr[3]);mi&&(le=mi.x,be=mi.y)});var An=t.arrowwidth,Qi=t.arrowcolor,Un=t.arrowside,Xn=E.append("g").style({opacity:Xb.opacity(Qi)}).classed("annotation-arrow-g",!0),It=Xn.append("path").attr("d","M"+le+","+be+"L"+ht+","+Ie).style("stroke-width",An+"px").call(Xb.stroke,Xb.rgb(Qi));if(a0t(It,Un,t),l.annotationPosition&&It.node().parentNode&&!n){var ct=ht,Vt=Ie;if(t.standoff){var Wt=Math.sqrt(Math.pow(ht-le,2)+Math.pow(Ie-be,2));ct+=t.standoff*(le-ht)/Wt,Vt+=t.standoff*(be-Ie)/Wt}var gr=Xn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(le-ct)+","+(be-Vt),transform:PU(ct,Vt)}).style("stroke-width",An+6+"px").call(Xb.stroke,"rgba(0,0,0,0)").call(Xb.fill,"rgba(0,0,0,0)"),qr,Zr;QS.init({element:gr.node(),gd:e,prepFn:function(){var Hr=Ly.getTranslate(C);qr=Hr.x,Zr=Hr.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Hr,mi){var Ei=rr(qr,Zr),ki=Ei[0]+Hr,Ri=Ei[1]+mi;C.call(Ly.setTranslate,ki,Ri),d("x",y_(i,Hr,"x",s,t)),d("y",y_(a,mi,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,Hr,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,mi,"ay",s,t)),Xn.attr("transform",PU(Hr,mi)),k.attr({transform:"rotate("+p+","+ki+","+Ri+")"})},doneFn:function(){LU.call("_guiRelayout",e,v());var Hr=document.querySelector(".js-notes-box-panel");Hr&&Hr.redraw(Hr.selectedObj)}})}}};if(t.showarrow&&rt(0,0),A){var it;QS.init({element:C.node(),gd:e,prepFn:function(){it=k.attr("transform")},moveFn:function(Ze,Je){var ht="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,Ze,"ax",s,t)):d("ax",t.ax+Ze),t.ayref===t.yref?d("ay",y_(a,Je,"ay",s.w,t)):d("ay",t.ay+Je),rt(Ze,Je);else{if(n)return;var Ie,le;if(i)Ie=y_(i,Ze,"x",s,t);else{var be=t._xsize/s.w,Qe=t.x+(t._xshift-t.xshift)/s.w-be/2;Ie=QS.align(Qe+Ze/s.w,be,0,1,t.xanchor)}if(a)le=y_(a,Je,"y",s,t);else{var xt=t._ysize/s.h,Ot=t.y-(t._yshift+t.yshift)/s.h-xt/2;le=QS.align(Ot-Je/s.h,xt,0,1,t.yanchor)}d("x",Ie),d("y",le),(!i||!a)&&(ht=QS.getCursor(i?.5:Ie,a?.5:le,t.xanchor,t.yanchor))}k.attr({transform:PU(Ze,Je)+it}),RU(C,ht)},clickFn:function(Ze,Je){t.captureevents&&e.emit("plotly_clickannotation",_(Je))},doneFn:function(){RU(C),LU.call("_guiRelayout",e,v());var Ze=document.querySelector(".js-notes-box-panel");Ze&&Ze.redraw(Ze.selectedObj)}})}}l.annotationText?X.call(IU.makeEditable,{delegate:C,gd:e}).call(G).on("edit",function(Z){t.text=Z,this.call(G),d("text",Z),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),LU.call("_guiRelayout",e,v())}):X.call(G)}});var Ipe=_e((Ror,Ppe)=>{"use strict";var Epe=Mr(),s0t=_a(),kpe=Us().arrayEditor;Ppe.exports={hasClickToShow:l0t,onClick:u0t};function l0t(e,t){var r=Lpe(e,t);return r.on.length>0||r.explicitOff.length>0}function u0t(e,t){var r=Lpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var DU=Mr(),uT=ha();Rpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),DU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),x=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",x.bgcolor||(uT.opacity(a)?uT.rgb(a):uT.defaultLine)),p=i("hoverlabel.bordercolor",x.bordercolor||uT.contrast(b)),E=DU.extendFlat({},x.font);E.color||(E.color=p),DU.coerceFont(i,"hoverlabel.font",E)}i("captureevents",!!v)}});var zpe=_e((zor,Dpe)=>{"use strict";var FU=Mr(),Yb=Ka(),c0t=Zd(),f0t=zU(),h0t=Nb();Dpe.exports=function(t,r){c0t(t,r,{name:"annotations",handleItemDefaults:d0t})};function d0t(e,t,r){function n(k,A){return FU.coerce(e,t,h0t,k,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){f0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,x=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[v]="pixel");var b=x==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,x,v,b)}n(f+"anchor"),n(f+"shift")}if(FU.noneOrAll(e,t,["x","y"]),o&&FU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),E=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=E===void 0?t.y:Yb.cleanPosition(E,u,t.yref)}}}});var Ope=_e((For,qpe)=>{"use strict";var qU=Mr(),Kb=Ka(),v0t=cI().draw;qpe.exports=function(t){var r=t._fullLayout,n=qU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return qU.syncOrAsync([v0t,p0t],t)};function p0t(e){var t=e._fullLayout;qU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Fpe(r,n),o==="range"&&Fpe(r,i)})}function Fpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,x=v+c,b=v-c,p;if(s===o){var E=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),k=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,x),ppadminus:Math.max(u,b)});p={min:[E.min[0],k.min[0]],max:[E.max[0],k.max[0]]}}else x=a?x+a:x,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,x),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Npe=_e((qor,Bpe)=>{"use strict";var g0t=ao(),m0t=u6();Bpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],x=null;a?x=m0t(v,r.range):x=Math.pow(10,v),g0t(x)||(x=null),i(c+d,x)}for(var h=0;h{"use strict";var OU=cI(),Upe=Ipe();Vpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:zpe(),includeBasePlot:RS()("annotations"),calcAutorange:Ope(),draw:OU.draw,drawOne:OU.drawOne,drawRaw:OU.drawRaw,hasClickToShow:Upe.hasClickToShow,onClick:Upe.onClick,convertCoords:Npe()}});var fI=_e((Bor,Gpe)=>{"use strict";var Ku=Nb(),y0t=Bu().overrideAll,_0t=Us().templatedArray;Gpe.exports=y0t(_0t("annotation",{visible:Ku.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ku.xanchor,xshift:Ku.xshift,yanchor:Ku.yanchor,yshift:Ku.yshift,text:Ku.text,textangle:Ku.textangle,font:Ku.font,width:Ku.width,height:Ku.height,opacity:Ku.opacity,align:Ku.align,valign:Ku.valign,bgcolor:Ku.bgcolor,bordercolor:Ku.bordercolor,borderpad:Ku.borderpad,borderwidth:Ku.borderwidth,showarrow:Ku.showarrow,arrowcolor:Ku.arrowcolor,arrowhead:Ku.arrowhead,startarrowhead:Ku.startarrowhead,arrowside:Ku.arrowside,arrowsize:Ku.arrowsize,startarrowsize:Ku.startarrowsize,arrowwidth:Ku.arrowwidth,standoff:Ku.standoff,startstandoff:Ku.startstandoff,hovertext:Ku.hovertext,hoverlabel:Ku.hoverlabel,captureevents:Ku.captureevents}),"calc","from-root")});var Wpe=_e((Nor,jpe)=>{"use strict";var BU=Mr(),x0t=Ka(),b0t=Zd(),w0t=zU(),T0t=fI();jpe.exports=function(t,r,n){b0t(t,r,{name:"annotations",handleItemDefaults:A0t,fullLayout:n.fullLayout})};function A0t(e,t,r,n){function i(s,l){return BU.coerce(e,t,T0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],x0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(w0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),BU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),BU.noneOrAll(e,t,["ax","ay"])))}});var Kpe=_e((Uor,Ype)=>{"use strict";var Zpe=Mr(),Xpe=Ka();Ype.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function NU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function S0t(e,t){var r=NU(e.projection,NU(e.view,NU(e.model,[t[0],t[1],t[2],1])));return r}Jpe.exports=S0t});var Qpe=_e((Hor,$pe)=>{"use strict";var E0t=cI().drawRaw,k0t=UU(),C0t=["x","y","z"];$pe.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=k0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),E0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var r0e=_e((Gor,t0e)=>{"use strict";var L0t=_a(),e0e=Mr();t0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:fI()}}},layoutAttributes:fI(),handleDefaults:Wpe(),includeBasePlot:P0t,convert:Kpe(),draw:Qpe()};function P0t(e,t){var r=L0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var i0e=Nb(),n0e=Mu(),a0e=Uc().line,I0t=Ed().dash,Fg=to().extendFlat,R0t=Us().templatedArray,jor=IS(),cT=vl(),D0t=Ho().shapeTexttemplateAttrs,z0t=x6();o0e.exports=R0t("shape",{visible:Fg({},cT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fg({},cT.legend,{editType:"calc+arraydraw"}),legendgroup:Fg({},cT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fg({},cT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:n0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fg({},cT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fg({},cT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Fg({},i0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Fg({},i0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Fg({},a0e.color,{editType:"arraydraw"}),width:Fg({},a0e.width,{editType:"calc+arraydraw"}),dash:Fg({},I0t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:D0t({},{keys:Object.keys(z0t)}),font:n0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var u0e=_e((Zor,l0e)=>{"use strict";var t4=Mr(),fT=Ka(),F0t=Zd(),q0t=VU(),s0e=h_();l0e.exports=function(t,r){F0t(t,r,{name:"shapes",handleItemDefaults:B0t})};function O0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function B0t(e,t,r){function n(Z,ie){return t4.coerce(e,t,q0t,Z,ie)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),t4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var x=d[v],b=x+"anchor",p=x==="x"?f:h,E={_fullLayout:r},k,A,L,_=fT.coerceRef(e,t,E,x,void 0,"paper"),C=fT.getRefType(_);if(C==="range"?(k=fT.getFromId(E,_),k._shapeIndices.push(t._index),L=s0e.rangeToShapePosition(k),A=s0e.shapePositionToRange(k),(k.type==="category"||k.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):A=L=t4.identity,u){var S=.25,g=.75,P=x+"0",T=x+"1",F=e[P],q=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(fT.coercePosition(t,E,n,_,P,S),fT.coercePosition(t,E,n,_,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=F,e[T]=q}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),fT.coercePosition(t,E,n,_,b,.25),t[b]=L(t[b]),e[b]=V}}u&&t4.noneOrAll(e,t,["x0","x1","y0","y1"]);var H=l==="line",X,G;if(u&&(X=n("label.texttemplate")),X||(G=n("label.text")),G||X){n("label.textangle");var N=n("label.textposition",H?"middle":"middle center");n("label.xanchor"),n("label.yanchor",O0t(H,N)),n("label.padding"),t4.coerceFont(n,"label.font",r.font)}}}});var h0e=_e((Xor,f0e)=>{"use strict";var N0t=ha(),c0e=Mr();function U0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}f0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),c0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",N0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",U0t(o,u)),n("newshape.label.padding"),c0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var m0e=_e((Yor,g0e)=>{"use strict";var HU=Mr(),hT=Ka(),dT=fS(),v0e=h_();g0e.exports=function(t){var r=t._fullLayout,n=HU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function d0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(dT.segmentRE),v,x,b,p,E;for(e.type==="date"&&(u=v0e.decodeDate(u)),v=0;vh&&(h=E)));if(h>=f)return[f,h]}}});var x0e=_e((Kor,_0e)=>{"use strict";var y0e=tP();_0e.exports={moduleType:"component",name:"shapes",layoutAttributes:VU(),supplyLayoutDefaults:u0e(),supplyDrawNewShapeDefaults:h0e(),includeBasePlot:RS()("shapes"),calcAutorange:m0e(),draw:y0e.draw,drawOne:y0e.drawOne}});var GU=_e(($or,w0e)=>{"use strict";var b0e=ad(),G0t=Us().templatedArray,Jor=IS();w0e.exports=G0t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",b0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",b0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var A0e=_e((Qor,T0e)=>{"use strict";var j0t=Mr(),jU=Ka(),W0t=Zd(),Z0t=GU(),X0t="images";T0e.exports=function(t,r){var n={name:X0t,handleItemDefaults:Y0t};W0t(t,r,n)};function Y0t(e,t,r){function n(h,d){return j0t.coerce(e,t,Z0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=jU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=jU.getFromId(o,c);f._imgIndices.push(t._index)}jU.coercePosition(t,o,n,c,u,0)}return t}});var k0e=_e((esr,E0e)=>{"use strict";var M0e=ya(),K0t=ro(),vT=Ka(),S0e=af(),J0t=Zp();E0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var C0e=ao(),$0t=u6();L0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";I0e.exports={moduleType:"component",name:"images",layoutAttributes:GU(),supplyLayoutDefaults:A0e(),includeBasePlot:RS()("images"),draw:k0e(),convertCoords:P0e()}});var hI=_e((isr,D0e)=>{"use strict";D0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var WU=_e((nsr,F0e)=>{"use strict";var Q0t=Mu(),egt=dh(),tgt=to().extendFlat,rgt=Bu().overrideAll,igt=b6(),z0e=Us().templatedArray,ngt=z0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});F0e.exports=rgt(z0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:ngt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:tgt(igt({editType:"arraydraw"}),{}),font:Q0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:egt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var N0e=_e((asr,B0e)=>{"use strict";var dI=Mr(),q0e=Zd(),O0e=WU(),agt=hI(),ogt=agt.name,sgt=O0e.buttons;B0e.exports=function(t,r){var n={name:ogt,handleItemDefaults:lgt};q0e(t,r,n)};function lgt(e,t,r){function n(o,s){return dI.coerce(e,t,O0e,o,s)}var i=q0e(e,t,{name:"buttons",handleItemDefaults:ugt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),dI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),dI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ugt(e,t){function r(i,a){return dI.coerce(e,t,sgt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var H0e=_e((osr,V0e)=>{"use strict";V0e.exports=of;var qg=ya(),U0e=ha(),pT=ro(),vI=Mr();function of(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}of.barWidth=2;of.barLength=20;of.barRadius=2;of.barPad=1;of.barColor="#808BA4";of.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",x=f==="up",b=l,p=c,E,k,A,L;!h&&!d&&!v&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(E=s,k=E+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(k=s+b,E=Math.max(k-b,0),b=k-E):(E=s,k=Math.min(E+b,a),b=k-E)),this._box={l:E,t:A,w:b,h:p};var C=l>b,S=of.barLength+2*of.barPad,g=of.barWidth+2*of.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var F=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(U0e.fill,of.barColor),C?(this.hbar=F.attr({rx:of.barRadius,ry:of.barRadius,x:P,y:T,width:S,height:g}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var q=c>p,V=of.barWidth+2*of.barPad,H=of.barLength+2*of.barPad,X=s+l,G=u;X+V>a&&(X=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(q?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(U0e.fill,of.barColor),q?(this.vbar=N.attr({rx:of.barRadius,ry:of.barRadius,x:X,y:G,width:V,height:H}),this._vbarYMin=G+H/2,this._vbarTranslateMax=p-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Z=this.id,ie=E-.5,ae=q?k+V+.5:k+.5,we=A-.5,Ee=C?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+Z).data(C||q?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",Z).append("rect"),C||q?(this._clipRect=ke.select("rect").attr({x:Math.floor(ie),y:Math.floor(we),width:Math.ceil(ae)-Math.floor(ie),height:Math.ceil(Ee)-Math.floor(we)}),this.container.call(pT.setClipUrl,Z,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),C||q){var ye=qg.behavior.drag().on("dragstart",function(){qg.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ye);var K=qg.behavior.drag().on("dragstart",function(){qg.event.sourceEvent.preventDefault(),qg.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(K),q&&this.vbar.on(".drag",null).call(K)}this.setTranslate(r,n)};of.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};of.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=qg.event.dx),this.vbar&&(r-=qg.event.dy),this.setTranslate(t,r)};of.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=qg.event.deltaY),this.vbar&&(r+=qg.event.deltaY),this.setTranslate(t,r)};of.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=vI.constrain(qg.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=vI.constrain(qg.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};of.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=vI.constrain(t||0,0,n),r=vI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(pT.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(pT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(pT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var Q0e=_e((ssr,$0e)=>{"use strict";var gT=ya(),r4=Xu(),i4=ha(),mT=ro(),e0=Mr(),pI=Pl(),cgt=Us().arrayEditor,j0e=Nh().LINE_SPACING,Uo=hI(),fgt=H0e();$0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[Uo.name]);function i(h){r4.autoMargin(t,K0e(h))}var a=r._menulayer.selectAll("g."+Uo.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Uo.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){gT.select(this).selectAll("g."+Uo.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uo.headerGroupClassName).data(n,hgt);o.enter().append("g").classed(Uo.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",Uo.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var _gt=hI();ege.exports={moduleType:"component",name:_gt.name,layoutAttributes:WU(),supplyLayoutDefaults:N0e(),draw:Q0e()}});var a4=_e((usr,rge)=>{"use strict";rge.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var KU=_e((csr,age)=>{"use strict";var ige=Mu(),xgt=b6(),bgt=to().extendDeepAll,wgt=Bu().overrideAll,Tgt=FM(),nge=Us().templatedArray,Jb=a4(),Agt=nge("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});age.exports=wgt(nge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Agt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:bgt(xgt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Tgt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:ige({})},font:ige({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var uge=_e((fsr,lge)=>{"use strict";var yT=Mr(),oge=Zd(),sge=KU(),Mgt=a4(),Sgt=Mgt.name,Egt=sge.steps;lge.exports=function(t,r){oge(t,r,{name:Sgt,handleItemDefaults:kgt})};function kgt(e,t,r){function n(f,h){return yT.coerce(e,t,sge,f,h)}for(var i=oge(e,t,{name:"steps",handleItemDefaults:Cgt}),a=0,o=0;o{"use strict";var Og=ya(),gI=Xu(),x_=ha(),Bg=ro(),t0=Mr(),Lgt=t0.strTranslate,o4=Pl(),Pgt=Us().arrayEditor,ds=a4(),QU=Nh(),hge=QU.LINE_SPACING,JU=QU.FROM_TL,$U=QU.FROM_BR;yge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=Igt(n,t),a=n._infolayer.selectAll("g."+ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),gI.autoMargin(t,dge(c))}if(a.exit().each(function(){Og.select(this).selectAll("g."+ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+ds.groupClassName).data(i,Rgt);s.enter().append("g").classed(ds.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Lgt(o-ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function eV(e,t){var r=e._dims;return r.inputAreaStart+ds.stepInset+(r.inputAreaLength-2*ds.stepInset)*Math.min(1,Math.max(0,t))}function fge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ds.stepInset-2*r.inputAreaStart)))}function Ngt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",ds.railTouchRectClass,function(a){a.call(gge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,ds.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function Ugt(e,t){var r=t._dims,n=r.inputAreaLength-ds.railInset*2,i=t0.ensureSingle(e,"rect",ds.railRectClass);i.attr({width:n,height:ds.railWidth,rx:ds.railRadius,ry:ds.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,ds.railInset,(r.inputAreaWidth-ds.railWidth)*.5+r.currentValueTotalHeight)}});var bge=_e((dsr,xge)=>{"use strict";var Vgt=a4();xge.exports={moduleType:"component",name:Vgt.name,layoutAttributes:KU(),supplyLayoutDefaults:uge(),draw:_ge()}});var yI=_e((vsr,Tge)=>{"use strict";var wge=dh();Tge.exports={bgcolor:{valType:"color",dflt:wge.background,editType:"plot"},bordercolor:{valType:"color",dflt:wge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var tV=_e((psr,Age)=>{"use strict";Age.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var _I=_e((gsr,Mge)=>{"use strict";Mge.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var kge=_e(bI=>{"use strict";var Hgt=af(),Ggt=Pl(),Sge=_I(),jgt=Nh().LINE_SPACING,xI=Sge.name;function Ege(e){var t=e&&e[xI];return t&&t.visible}bI.isVisible=Ege;bI.makeData=function(e){for(var t=Hgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var wI=Mr(),Cge=Us(),Lge=af(),Wgt=yI(),Zgt=tV();Pge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;wI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Cge.newContainer(a,"rangeslider");function l(L,_){return wI.coerce(o,s,Wgt,L,_)}var u,c;function f(L,_){return wI.coerce(u,c,Zgt,L,_)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Lge.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=wI.simpleMap(v,Lge.id2name),b=0;b{"use strict";var Xgt=af().list,Ygt=wg().getAutoRange,Kgt=_I();Rge.exports=function(t){for(var r=Xgt(t,"x",!0),n=0;n{"use strict";var TI=ya(),Jgt=_a(),$gt=Xu(),Ff=Mr(),AI=Ff.strTranslate,Fge=ro(),b_=ha(),Qgt=Sb(),emt=Jf(),rV=af(),tmt=gv(),rmt=Tg(),Os=_I();qge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)X=T[G+1];else if(H=N.pmax)X=T[G+1];else if(H0?e.touches[0].clientX:0}function imt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Os.slideBoxClassName).node(),a=e.select("rect."+Os.grabAreaMinClassName).node(),o=e.select("rect."+Os.grabAreaMaxClassName).node();function s(){var l=TI.event,u=l.target,c=zge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=tmt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b);function x(p){var E=zge(p),k=+E-c,A,L,_;switch(u){case i:if(_="ew-resize",h+k>r._length||d+k<0)return;A=h+k,L=d+k;break;case a:if(_="col-resize",h+k>r._length)return;A=h+k,L=d;break;case o:if(_="col-resize",d+k<0)return;A=h,L=d+k;break;default:_="ew-resize",A=f,L=f+k;break}if(L{"use strict";var dmt=Mr(),vmt=yI(),pmt=tV(),iV=kge();Bge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:dmt.extendFlat({},vmt,{yaxis:pmt})}}},layoutAttributes:yI(),handleDefaults:Ige(),calcAutorange:Dge(),draw:Oge(),isVisible:iV.isVisible,makeData:iV.makeData,autoMarginOpts:iV.autoMarginOpts}});var MI=_e((wsr,Vge)=>{"use strict";var gmt=Mu(),Uge=dh(),mmt=Us().templatedArray,ymt=mmt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Vge.exports={visible:{valType:"boolean",editType:"plot"},buttons:ymt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:gmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Uge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Uge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var nV=_e((Tsr,Hge)=>{"use strict";Hge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Wge=_e((Asr,jge)=>{"use strict";var SI=Mr(),_mt=ha(),xmt=Us(),bmt=Zd(),Gge=MI(),aV=nV();jge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=xmt.newContainer(r,"rangeselector");function l(d,v){return SI.coerce(o,s,Gge,d,v)}var u=bmt(o,s,{name:"buttons",handleItemDefaults:wmt,calendar:a}),c=l("visible",u.length>0);if(c){var f=Tmt(r,n,i);l("x",f[0]),l("y",f[1]),SI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),SI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",_mt.contrast(h,aV.lightAmount,aV.darkAmount)),l("bordercolor"),l("borderwidth")}};function wmt(e,t,r,n){var i=n.calendar;function a(l,u){return SI.coerce(e,t,Gge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function Tmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var Amt=yq(),Mmt=Mr().titleCase;Zge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Smt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Smt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Amt["utc"+Mmt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var rme=_e((Ssr,tme)=>{"use strict";var kI=ya(),Emt=_a(),kmt=Xu(),Yge=ha(),eme=ro(),Py=Mr(),Kge=Py.strTranslate,EI=Pl(),Cmt=af(),lV=Nh(),Jge=lV.LINE_SPACING,$ge=lV.FROM_TL,Qge=lV.FROM_BR,sV=nV(),Lmt=Xge();tme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Pmt(t),Imt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=kI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Py.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=kI.select(this),f=Lmt(o,u);u._isActive=Rmt(o,u,f),c.call(oV,s,u),c.call(zmt,s,u,t),c.on("click",function(){t._dragged||Emt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(oV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(oV,s,u)})}),qmt(t,l,s,o._name,a)})};function Pmt(e){for(var t=Cmt.list(e,"x",!0),r=[],n=0;n{"use strict";ime.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:MI()}}},layoutAttributes:MI(),handleDefaults:Wge(),draw:rme()}});var Ju=_e(uV=>{"use strict";var ame=to().extendFlat;uV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:ame({},r,{}),y:ame({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};uV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Omt=Mr(),Bmt=n3().counter,Nmt=Ju().attributes,ome=ad().idRegex,Umt=Us(),cV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Bmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ome.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ome.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Nmt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function CI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Vmt(e,t){var r=e.grid||{},n=CI(t,r,"x"),i=CI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Umt.newContainer(t,"grid");function h(_,C){return Omt.coerce(r,f,cV,_,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",E=a?.2:.1,k=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:sme("x",h,E,A,v),y:sme("y",h,k,L,d,p)}}function sme(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";cme.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var dme=_e((Psr,hme)=>{"use strict";var fme=ao(),Gmt=_a(),jmt=Mr(),Wmt=Us(),Zmt=hV();hme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Wmt.newContainer(t,i),o=e[i]||{};function s(v,x){return jmt.coerce(o,a,Zmt,v,x)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||fme(o.thickness)||fme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Gmt.traceIs(t,"gl3d")?0:4))}}});var dV=_e((Isr,pme)=>{"use strict";pme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=vme(r,t.value),s=vme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function vme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var yme=_e((Rsr,mme)=>{"use strict";var vV=ao(),Xmt=_a(),pV=Ka(),Ymt=Mr(),Kmt=dV();mme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var _me=ya(),w_=ao(),Jmt=ro(),$mt=lu();xme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(E){return E.id});var x=$mt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=_me.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Jmt.setClipUrl(b,n.layerClipId,t),b.each(function(E){var k=_me.select(this),A=Qmt(E,o,s);if(!(x&&!E.vis)){var L,_=k.select("path.yerror");if(d.visible&&w_(A.x)&&w_(A.yh)&&w_(A.ys)){var C=d.width;L="M"+(A.x-C)+","+A.yh+"h"+2*C+"m-"+C+",0V"+A.ys,A.noYS||(L+="m-"+C+",0h"+2*C),a=!_.size(),a?_=k.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var S=k.select("path.xerror");if(h.visible&&w_(A.y)&&w_(A.xh)&&w_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!S.size(),a?S=k.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Qmt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Ame=_e((zsr,Tme)=>{"use strict";var eyt=ya(),wme=ha();Tme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=eyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(wme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(wme.stroke,a.color)})}});var Eme=_e((Fsr,Sme)=>{"use strict";var s4=Mr(),Mme=Bu().overrideAll,l4=hV(),$b={error_x:s4.extendFlat({},l4),error_y:s4.extendFlat({},l4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var u4={error_x:s4.extendFlat({},l4),error_y:s4.extendFlat({},l4),error_z:s4.extendFlat({},l4)};delete u4.error_x.copy_ystyle;delete u4.error_y.copy_ystyle;delete u4.error_z.copy_ystyle;delete u4.error_z.copy_zstyle;Sme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Mme(u4,"calc","nested"),scattergl:Mme($b,"calc","nested")}},supplyDefaults:dme(),calc:yme(),makeComputeError:dV(),plot:bme(),style:Ame(),hoverInfo:tyt};function tyt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Cme=_e((qsr,kme)=>{"use strict";kme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Fme=_e((Osr,zme)=>{"use strict";var T_=ya(),gV=id(),PI=Xu(),Lme=_a(),Iy=Ka(),LI=gv(),B0=Mr(),Ug=B0.strTranslate,Dme=to().extendFlat,mV=Tg(),Ng=ro(),yV=ha(),ryt=Sb(),iyt=Pl(),nyt=Dv().flipScale,ayt=$S(),oyt=rI(),syt=Cd(),_V=Nh(),Pme=_V.LINE_SPACING,Ime=_V.FROM_TL,Rme=_V.FROM_BR,Vc=Cme().cn;function lyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Vc.colorbar).data(uyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Vc.colorbar,!0),r.each(function(n){var i=T_.select(this);B0.ensureSingle(i,"rect",Vc.cbbg),B0.ensureSingle(i,"g",Vc.cbfills),B0.ensureSingle(i,"g",Vc.cblines),B0.ensureSingle(i,"g",Vc.cbaxis,function(o){o.classed(Vc.crisp,!0)}),B0.ensureSingle(i,"g",Vc.cbtitleunshift,function(o){o.append("g").classed(Vc.cbtitle,!0)}),B0.ensureSingle(i,"rect",Vc.cboutline);var a=cyt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&fyt(i,n,e)}),r.exit().each(function(n){PI.autoMargin(e,n._id)}).remove(),r.order()}function uyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(k){return Dme(k,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?nyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var je=Math.pow(10,Math.floor(Math.log(Le)/Math.LN10));Ce*=je*B0.roundUp(Le/je,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(pe.tick0=0)}pe.dtick=Ce}pe.domain=n?[K+v/A.h,K+Z-v/A.h]:[K+d/A.w,K+Z-d/A.w],pe.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var Se=e.select("."+Vc.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Xe=pe.ticklabelposition,lt=pe.title.font.size,At=e.select("."+Vc.cbaxis),Yt,nt=0,ot=0;function Ft(er,Ge){var yt={propContainer:pe,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:k._dfltTitle.colorbar,containerGroup:e.select("."+Vc.cbtitle)},_t=er.charAt(0)==="h"?er.substr(1):"h"+er;e.selectAll("."+_t+",."+_t+"-math-group").remove(),ryt.draw(r,er,Dme(yt,Ge||{}))}function Lt(){if(n&&xe||!n&&!xe){var er,Ge;S==="top"&&(er=d+A.l+ie*x,Ge=v+A.t+ae*(1-K-Z)+3+lt*.75),S==="bottom"&&(er=d+A.l+ie*x,Ge=v+A.t+ae*(1-K)-3-lt*.25),S==="right"&&(Ge=v+A.t+ae*b+3+lt*.75,er=d+A.l+ie*K),Ft(pe._id+"title",{attributes:{x:er,y:Ge,"text-anchor":n?"start":"middle"}})}}function Rt(){if(n&&!xe||!n&&xe){var er=pe.position||0,Ge=pe._offset+pe._length/2,yt,_t;if(S==="right")_t=Ge,yt=A.l+ie*er+10+lt*(pe.showticklabels?1:.5);else if(yt=Ge,S==="bottom"&&(_t=A.t+ae*er+10+(Xe.indexOf("inside")===-1?pe.tickfont.size:0)+(pe.ticks!=="intside"&&t.ticklen||0)),S==="top"){var Ct=C.text.split("
").length;_t=A.t+ae*er+10-X-Pme*lt*Ct}Ft((n?"h":"v")+pe._id+"title",{avoid:{selection:T_.select(r).selectAll("g."+pe._id+"tick"),side:S,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?k.width:k.height},attributes:{x:yt,y:_t,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Xt(){if(!n&&!xe||n&&xe){var er=e.select("."+Vc.cbtitle),Ge=er.select("text"),yt=[-l/2,l/2],_t=er.select(".h"+pe._id+"title-math-group").node(),Ct=15.6;Ge.node()&&(Ct=parseInt(Ge.node().style.fontSize,10)*Pme);var St;if(_t?(St=Ng.bBox(_t),ot=St.width,nt=St.height,nt>Ct&&(yt[1]-=(nt-Ct)/2)):Ge.node()&&!Ge.classed(Vc.jsPlaceholder)&&(St=Ng.bBox(Ge.node()),ot=St.width,nt=St.height),n){if(nt){if(nt+=5,S==="top")pe.domain[1]-=nt/A.h,yt[1]*=-1;else{pe.domain[0]+=nt/A.h;var kt=iyt.lineCount(Ge);yt[1]+=(1-kt)*Ct}er.attr("transform",Ug(yt[0],yt[1])),pe.setScale()}}else ot&&(S==="right"&&(pe.domain[0]+=(ot+lt/2)/A.w),er.attr("transform",Ug(yt[0],yt[1])),pe.setScale())}e.selectAll("."+Vc.cbfills+",."+Vc.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-pe.domain[1]))):Ug(Math.round(A.w*pe.domain[0]),0)),At.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var ft=e.select("."+Vc.cbfills).selectAll("rect."+Vc.cbfill).attr("style","").data(V);ft.enter().append("rect").classed(Vc.cbfill,!0).attr("style",""),ft.exit().remove();var Gt=g.map(pe.c2p).map(Math.round).sort(function(Br,Ur){return Br-Ur});ft.each(function(Br,Ur){var ut=[Ur===0?g[0]:(V[Ur]+V[Ur-1])/2,Ur===V.length-1?g[1]:(V[Ur]+V[Ur+1])/2].map(pe.c2p).map(Math.round);n&&(ut[1]=B0.constrain(ut[1]+(ut[1]>ut[0])?1:-1,Gt[0],Gt[1]));var rt=T_.select(this).attr(n?"x":"y",we).attr(n?"y":"x",T_.min(ut)).attr(n?"width":"height",Math.max(X,2)).attr(n?"height":"width",Math.max(T_.max(ut)-T_.min(ut),2));if(t._fillgradient)Ng.gradient(rt,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var it=T(Br).replace("e-","");rt.attr("fill",gV(it).toHexString())}});var $t=e.select("."+Vc.cblines).selectAll("path."+Vc.cbline).data(_.color&&_.width?H:[]);$t.enter().append("path").classed(Vc.cbline,!0),$t.exit().remove(),$t.each(function(Br){var Ur=we,ut=Math.round(pe.c2p(Br))+_.width/2%1;T_.select(this).attr("d","M"+(n?Ur+","+ut:ut+","+Ur)+(n?"h":"v")+X).call(Ng.lineGroupStyle,_.width,P(Br),_.dash)}),At.selectAll("g."+pe._id+"tick,path").remove();var hr=we+X+(l||0)/2-(t.ticks==="outside"?1:0),_r=Iy.calcTicks(pe),Nr=Iy.getTickSigns(pe)[2];return Iy.drawTicks(r,pe,{vals:pe.ticks==="inside"?Iy.clipEnds(pe,_r):_r,layer:At,path:Iy.makeTickPath(pe,hr,Nr),transFn:Iy.makeTransTickFn(pe)}),Iy.drawLabels(r,pe,{vals:_r,layer:At,transFn:Iy.makeTransTickLabelFn(pe),labelFns:Iy.makeLabelFns(pe,hr)})}function xr(){var er,Ge=X+l/2;Xe.indexOf("inside")===-1&&(er=Ng.bBox(At.node()),Ge+=n?er.width:er.height),Yt=Se.select("text");var yt=0,_t=n&&S==="top",Ct=!n&&S==="right",St=0;if(Yt.node()&&!Yt.classed(Vc.jsPlaceholder)){var kt,ft=Se.select(".h"+pe._id+"title-math-group").node();ft&&(n&&xe||!n&&!xe)?(er=Ng.bBox(ft),yt=er.width,kt=er.height):(er=Ng.bBox(Se.node()),yt=er.right-A.l-(n?we:ce),kt=er.bottom-A.t-(n?ce:we),!n&&S==="top"&&(Ge+=er.height,St=er.height)),Ct&&(Yt.attr("transform",Ug(yt/2+lt/2,0)),yt*=2),Ge=Math.max(Ge,n?yt:kt)}var Gt=(n?d:v)*2+Ge+u+l/2,$t=0;!n&&C.text&&h==="bottom"&&b<=0&&($t=Gt/2,Gt+=$t,St+=$t),k._hColorbarMoveTitle=$t,k._hColorbarMoveCBTitle=St;var hr=u+l,_r=(n?we:ce)-hr/2-(n?d:0),Nr=(n?ce:we)-(n?N:v+St-$t);e.select("."+Vc.cbbg).attr("x",_r).attr("y",Nr).attr(n?"width":"height",Math.max(Gt-$t,2)).attr(n?"height":"width",Math.max(N+hr,2)).call(yV.fill,c).call(yV.stroke,t.bordercolor).style("stroke-width",u);var Br=Ct?Math.max(yt-10,0):0;e.selectAll("."+Vc.cboutline).attr("x",(n?we:ce+d)+Br).attr("y",(n?ce+v-N:we)+(_t?nt:0)).attr(n?"width":"height",Math.max(X,2)).attr(n?"height":"width",Math.max(N-(n?2*v+nt:2*d+Br),2)).call(yV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ur=n?Ee*Gt:0,ut=n?0:(1-ke)*Gt-St;if(Ur=E?A.l-Ur:-Ur,ut=p?A.t-ut:-ut,e.attr("transform",Ug(Ur,ut)),!n&&(u||gV(c).getAlpha()&&!gV.equals(k.paper_bgcolor,c))){var rt=At.selectAll("text"),it=rt[0].length,Ze=e.select("."+Vc.cbbg).node(),Je=Ng.bBox(Ze),ht=Ng.getTranslate(e),Ie=2;rt.each(function(ri,Ti){var an=0,Yi=it-1;if(Ti===an||Ti===Yi){var Xi=Ng.bBox(this),An=Ng.getTranslate(this),Qi;if(Ti===Yi){var Un=Xi.right+An.x,Xn=Je.right+ht.x+ce-u-Ie+x;Qi=Xn-Un,Qi>0&&(Qi=0)}else if(Ti===an){var It=Xi.left+An.x,ct=Je.left+ht.x+ce+u+Ie;Qi=ct-It,Qi<0&&(Qi=0)}Qi&&(it<3?this.setAttribute("transform","translate("+Qi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var le={},be=Ime[f],Qe=Rme[f],xt=Ime[h],Ot=Rme[h],rr=Gt-X;n?(a==="pixels"?(le.y=b,le.t=N*xt,le.b=N*Ot):(le.t=le.b=0,le.yt=b+i*xt,le.yb=b-i*Ot),s==="pixels"?(le.x=x,le.l=Gt*be,le.r=Gt*Qe):(le.l=rr*be,le.r=rr*Qe,le.xl=x-o*be,le.xr=x+o*Qe)):(a==="pixels"?(le.x=x,le.l=N*be,le.r=N*Qe):(le.l=le.r=0,le.xl=x+i*be,le.xr=x-i*Qe),s==="pixels"?(le.y=1-b,le.t=Gt*xt,le.b=Gt*Ot):(le.t=rr*xt,le.b=rr*Ot,le.yt=b-o*xt,le.yb=b+o*Ot));var Jr=t.y<.5?"b":"t",ni=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Gr={r:k.width-_r-Ur,l:_r+le.r,b:k.height-Nr-ut,t:Nr+le.b};E&&p?PI.autoMargin(r,t._id,le):E?r._fullLayout._reservedMargin[t._id][Jr]=Gr[Jr]:p||n?r._fullLayout._reservedMargin[t._id][ni]=Gr[ni]:r._fullLayout._reservedMargin[t._id][Jr]=Gr[Jr]}return B0.syncOrAsync([PI.previousPromises,Lt,Xt,Rt,PI.previousPromises,xr],r)}function fyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;LI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),mV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=LI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=LI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=LI.getCursor(s,l,t.xanchor,t.yanchor);mV(e,f)},doneFn:function(){if(mV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Lme.call("_guiRestyle",r,u,t._traceIndex):Lme.call("_guiRelayout",r,u)}}})}function hyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";qme.exports={moduleType:"component",name:"colorbar",attributes:Y6(),supplyDefaults:IO(),draw:Fme().draw,hasColorbar:MO()}});var Nme=_e((Nsr,Bme)=>{"use strict";Bme.exports={moduleType:"component",name:"legend",layoutAttributes:MB(),supplyLayoutDefaults:kB(),draw:NB(),style:FB()}});var Vme=_e((Usr,Ume)=>{"use strict";Ume.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Gme=_e((Vsr,Hme)=>{"use strict";Hme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var bV=_e((Hsr,Xme)=>{"use strict";var vyt=_a(),Zme=Mr(),xV=Zme.extendFlat,jme=Zme.extendDeep;function Wme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function pyt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Xme.exports=function(t,r){var n,i=t.data,a=t.layout,o=jme([],i),s=jme({},a,Wme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var gyt=vb().EventEmitter,myt=_a(),yyt=Mr(),Yme=Cy(),_yt=bV(),xyt=OP(),byt=BP();function wyt(e,t){var r=new gyt,n=_yt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=Yme.getDelay(i._fullLayout);setTimeout(function(){var l=xyt(i),u=document.createElement("canvas");u.id=yyt.randstr(),r=byt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=Yme.getRedrawFunc(i);return myt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Kme.exports=wyt});var eye=_e((jsr,Qme)=>{"use strict";var $me=Cy(),Tyt={getDelay:$me.getDelay,getRedrawFunc:$me.getRedrawFunc,clone:bV(),toSVG:OP(),svgToImg:BP(),toImage:Jme(),downloadImage:rU()};Qme.exports=Tyt});var rye=_e(Ry=>{"use strict";Ry.version=e6().version;pee();nne();var Ayt=_a(),c4=Ry.register=Ayt.register,TV=Ade(),tye=Object.keys(TV);for(II=0;II{"use strict";iye.exports=rye()});var Qb=_e((Xsr,aye)=>{"use strict";aye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=_e((Ysr,uye)=>{"use strict";var Tf=Uc(),oye=Oc().axisHoverFormat,Myt=Ho().hovertemplateAttrs,Syt=Ho().texttemplateAttrs,lye=Jl(),Eyt=Mu(),sye=Qb(),kyt=Ed().pattern,e2=to().extendFlat,AV=Eyt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Cyt=Tf.marker,Lyt=Cyt.line,Pyt=e2({},Lyt.width,{dflt:0}),Iyt=e2({width:Pyt,editType:"calc"},lye("marker.line")),Ryt=e2({line:Iyt,editType:"calc"},lye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:kyt,cornerradius:{valType:"any",editType:"calc"}});uye.exports={x:Tf.x,x0:Tf.x0,dx:Tf.dx,y:Tf.y,y0:Tf.y0,dy:Tf.dy,xperiod:Tf.xperiod,yperiod:Tf.yperiod,xperiod0:Tf.xperiod0,yperiod0:Tf.yperiod0,xperiodalignment:Tf.xperiodalignment,yperiodalignment:Tf.yperiodalignment,xhoverformat:oye("x"),yhoverformat:oye("y"),text:Tf.text,texttemplate:Syt({editType:"plot"},{keys:sye.eventDataKeys}),hovertext:Tf.hovertext,hovertemplate:Myt({},{keys:sye.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},AV,{}),insidetextfont:e2({},AV,{}),outsidetextfont:e2({},AV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},Tf.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Ryt,offsetgroup:Tf.offsetgroup,alignmentgroup:Tf.alignmentgroup,selected:{marker:{opacity:Tf.selected.marker.opacity,color:Tf.selected.marker.color,editType:"style"},textfont:Tf.selected.textfont,editType:"style"},unselected:{marker:{opacity:Tf.unselected.marker.opacity,color:Tf.unselected.marker.color,editType:"style"},textfont:Tf.unselected.textfont,editType:"style"},zorder:Tf.zorder}});var DI=_e((Ksr,cye)=>{"use strict";cye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var zI=_e((Jsr,dye)=>{"use strict";var Dyt=ha(),fye=Dv().hasColorscale,hye=Uh(),zyt=Mr().coercePattern;dye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=fye(t,"marker");s&&hye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Dyt.defaultLine),fye(t,"marker.line")&&hye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),zyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=_e(($sr,_ye)=>{"use strict";var vye=ao(),xT=Mr(),pye=ha(),Fyt=_a(),qyt=K3(),Oyt=Pg(),Byt=zI(),Nyt=Hb(),gye=Lm(),FI=xT.coerceFont;function Uyt(e,t,r,n){function i(u,c){return xT.coerce(e,t,gye,u,c)}var a=qyt(e,t,n,i);if(!a){t.visible=!1;return}Oyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");yye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Byt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=Fyt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||pye.defaultLine,{axis:"y"}),l(e,t,s||pye.defaultLine,{axis:"x",inherit:"y"}),xT.coerceSelectionMarkerOpacity(t,i)}function Vyt(e,t){var r,n;function i(s,l){return xT.coerce(n._input,n,gye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&vye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function yye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",x=d||i==="outside";if(v||x){var b=FI(n,"textfont",r.font),p=xT.extendFlat({},b),E=e.textfont&&e.textfont.color,k=!E;if(k&&delete p.color,FI(n,"insidetextfont",p),h){var A=xT.extendFlat({},b);k&&delete A.color,FI(n,"pathbar.textfont",A)}x&&FI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}_ye.exports={supplyDefaults:Uyt,crossTraceDefaults:Vyt,handleText:yye,validateCornerradius:mye}});var MV=_e((Qsr,xye)=>{"use strict";var Hyt=_a(),Gyt=Ka(),jyt=Mr(),Wyt=DI(),Zyt=r0().validateCornerradius;xye.exports=function(e,t,r){function n(x,b){return jyt.coerce(e,t,Wyt,x,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=Gyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Zyt(v)}});var f4=_e((elr,bye)=>{"use strict";var bT=Mr();bye.exports=function(t,r){for(var n=0;n{"use strict";var wye=Ka(),Tye=Rg(),Aye=Dv().hasColorscale,Mye=zv(),Xyt=f4(),Yyt=F0();Sye.exports=function(t,r){var n=wye.getFromId(t,r.xaxis||"x"),i=wye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=Tye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=Tye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Kyt=ya(),Jyt=Mr();function $yt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=Kyt.select(this).select("text");Jyt.setTransormAndDisplay(u,l)}})}}function Qyt(e,t,r){if(r.uniformtext.mode){var n=kye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var t1t=ao(),r1t=id(),Lye=Mr().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(t1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return r1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Lye(e)?t{"use strict";var h4=ya(),i1t=ha(),d4=ro(),Pye=Mr(),Iye=_a(),Rye=_v().resizeText,SV=Lm(),n1t=SV.textfont,a1t=SV.insidetextfont,o1t=SV.outsidetextfont,Jd=qI();function s1t(e){var t=h4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Rye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&h4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=h4.select(this),o=i[0].trace;Dye(a,o,e)}),Iye.getComponentMethod("errorbars","style")(t)}function Dye(e,t,r){d4.pointStyle(e.selectAll("path"),t,r),zye(e,t,r)}function zye(e,t,r){e.selectAll("text").each(function(n){var i=h4.select(this),a=Pye.ensureUniformFontSize(r,Fye(i,n,t,r));d4.font(i,a)})}function l1t(e,t,r){var n=t[0].trace;n.selectedpoints?u1t(r,n,e):(Dye(r,n,e),Iye.getComponentMethod("errorbars","style")(r))}function u1t(e,t,r){d4.selectedPointStyle(e.selectAll("path"),t),c1t(e.selectAll("text"),t,r)}function c1t(e,t,r){e.each(function(n){var i=h4.select(this),a;if(n.selected){a=Pye.ensureUniformFontSize(r,Fye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),d4.font(i,a)}else d4.selectedTextStyle(i,t)})}function Fye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Nye(t,r);a=Oye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Bye(r,t.i,i));return a}function qye(e,t,r){return EV(n1t,e.textfont,t,r)}function Oye(e,t,r,n){var i=qye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:i1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),EV(a1t,e.insidetextfont,t,i)}function Bye(e,t,r){var n=qye(e,t,r);return EV(o1t,e.outsidetextfont,t,n)}function EV(e,t,r,n){t=t||{};var i=Jd.getValue(t.family,r),a=Jd.getValue(t.size,r),o=Jd.getValue(t.color,r),s=Jd.getValue(t.weight,r),l=Jd.getValue(t.style,r),u=Jd.getValue(t.variant,r),c=Jd.getValue(t.textcase,r),f=Jd.getValue(t.lineposition,r),h=Jd.getValue(t.shadow,r);return{family:Jd.coerceString(e.family,i,n.family),size:Jd.coerceNumber(e.size,a,n.size),color:Jd.coerceColor(e.color,o,n.color),weight:Jd.coerceString(e.weight,s,n.weight),style:Jd.coerceString(e.style,l,n.style),variant:Jd.coerceString(e.variant,u,n.variant),textcase:Jd.coerceString(e.variant,c,n.textcase),lineposition:Jd.coerceString(e.variant,f,n.lineposition),shadow:Jd.coerceString(e.variant,h,n.shadow)}}function Nye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Uye.exports={style:s1t,styleTextPoints:zye,styleOnSelect:l1t,getInsideTextFont:Oye,getOutsideTextFont:Bye,getBarColor:Nye,resizeText:Rye}});var i2=_e((alr,Yye)=>{"use strict";var OI=ya(),BI=ao(),Pd=Mr(),f1t=Pl(),h1t=ha(),A_=ro(),d1t=_a(),NI=Ka().tickText,Vye=_v(),v1t=Vye.recordMinTextSize,p1t=Vye.clearMinTextSize,kV=N0(),wT=qI(),g1t=Qb(),Hye=Lm(),m1t=Hye.text,y1t=Hye.textposition,_1t=rp().appendArrayPointValue,Uv=g1t.TEXTPAD;function x1t(e){return e.id}function b1t(e){if(e.ids)return x1t}function CV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function T1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},p1t("bar",l));var c=Pd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=OI.select(this),d=f[0].trace,v=f[0].t,x=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",E=d.type==="bar",k=E||b,A=0;x&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",_=jye(i),C=Pd.ensureSingle(h,"g","points"),S=b1t(d),g=C.selectAll("g.point").data(Pd.identity,S);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,F){var q=OI.select(this),V=w1t(T,o,s,L),H=V[0][0],X=V[0][1],G=V[1][0],N=V[1][1],Z=(L?X-H:N-G)===0;Z&&k&&wT.getLineWidth(d,T)&&(Z=!1),Z||(Z=!BI(H)||!BI(X)||!BI(G)||!BI(N)),T.isBlank=Z,Z&&(L?X=H:N=G),A&&!Z&&(L?(H-=Pm(H,X)*A,X+=Pm(H,X)*A):(G-=Pm(G,N)*A,N+=Pm(G,N)*A));var ie,ae;if(d.type==="waterfall"){if(!Z){var we=d[T.dir].marker;ie=we.line.width,ae=we.color}}else ie=wT.getLineWidth(d,T),ae=T.mc||d.marker.color;function Ee(Ge){var yt=OI.round(ie/2%1,2);return i.gap===0&&i.groupgap===0?OI.round(Math.round(Ge)-yt,2):Ge}function ke(Ge,yt,_t){return _t&&Ge===yt?Ge:Math.abs(Ge-yt)>=2?Ee(Ge):Ge>yt?Math.ceil(Ge):Math.floor(Ge)}var ye=h1t.opacity(ae),K=ye<1||ie>.01?Ee:ke;e._context.staticPlot||(H=K(H,X,L),X=K(X,H,L),G=K(G,N,!L),N=K(N,G,!L));var ce=L?o.c2p:s.c2p,pe;T.s0>0?pe=T._sMax:T.s0<0?pe=T._sMin:pe=T.s1>0?T._sMax:T._sMin;function xe(Ge,yt){if(!Ge)return 0;var _t=Math.abs(L?N-G:X-H),Ct=Math.abs(L?X-H:N-G),St=K(Math.abs(ce(pe,!0)-ce(0,!0))),kt=T.hasB?Math.min(_t/2,Ct/2):Math.min(_t/2,St),ft;if(yt==="%"){var Gt=Math.min(50,Ge);ft=_t*(Gt/100)}else ft=Ge;return K(Math.max(Math.min(ft,kt),0))}var Ce=E||p?xe(v.cornerradiusvalue,v.cornerradiusform):0,Me,Le,je="M"+H+","+G+"V"+N+"H"+X+"V"+G+"Z",Se=0;if(Ce&&T.s){var Xe=CV(T.s0)===0||CV(T.s)===CV(T.s0)?T.s1:T.s0;if(Se=K(T.hasB?0:Math.abs(ce(pe,!0)-ce(Xe,!0))),Se0?Math.sqrt(Se*(2*Ce-Se)):0,Ft=lt>0?Math.max:Math.min;Me="M"+H+","+G+"V"+(N-nt*At)+"H"+Ft(X-(Ce-Se)*lt,H)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+X+","+(N-Ce*At-ot)+"V"+(G+Ce*At+ot)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+Ft(X-(Ce-Se)*lt,H)+","+(G+nt*At)+"Z"}else if(T.hasB)Me="M"+(H+Ce*lt)+","+G+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+H+","+(G+Ce*At)+"V"+(N-Ce*At)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+(H+Ce*lt)+","+N+"H"+(X-Ce*lt)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+X+","+(N-Ce*At)+"V"+(G+Ce*At)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+(X-Ce*lt)+","+G+"Z";else{Le=Math.abs(N-G)+Se;var Lt=Le0?Math.sqrt(Se*(2*Ce-Se)):0,Xt=At>0?Math.max:Math.min;Me="M"+(H+Lt*lt)+","+G+"V"+Xt(N-(Ce-Se)*At,G)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+(H+Ce*lt-Rt)+","+N+"H"+(X-Ce*lt+Rt)+"A "+Ce+","+Ce+" 0 0 "+Yt+" "+(X-Lt*lt)+","+Xt(N-(Ce-Se)*At,G)+"V"+G+"Z"}}else Me=je}else Me=je;var xr=Gye(Pd.ensureSingle(q,"path"),l,i,a);if(xr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((X-H)*(N-G))||Z&&e._context.staticPlot?"M0,0Z":Me).call(A_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&_){var er=A_.makePointStyleFns(d);A_.singlePointStyle(T,xr,d,er,e)}A1t(e,t,q,f,F,H,X,G,N,Ce,Se,i,a),t.layerClipId&&A_.hideOutsideRangePoint(T,q.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});d1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function A1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,x=e._fullLayout,b;function p(Le,je,Se){var Xe=Pd.ensureSingle(Le,"text").text(je).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,Se).call(f1t.convertToTspans,e);return Xe}var E=n[0].trace,k=E.orientation==="h",A=E1t(x,n,i,d,v);b=k1t(E,i);var L=f.mode==="stack"||f.mode==="relative",_=n[i],C=!L||_._outmost,S=_.hasB,g=u&&u-c>Uv;if(!A||b==="none"||(_.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,T=kV.getBarColor(n[i],E),F=kV.getInsideTextFont(E,i,P,T),q=kV.getOutsideTextFont(E,i,P),V=E.insidetextanchor||"end",H=r.datum();k?d.type==="log"&&H.s0<=0&&(d.range[0]0&&Ee>0,K;g?S?K=r2(N-2*u,Z,we,Ee,k)||r2(N,Z-2*u,we,Ee,k):k?K=r2(N-(u-c),Z,we,Ee,k)||r2(N,Z-2*(u-c),we,Ee,k):K=r2(N,Z-(u-c),we,Ee,k)||r2(N-2*(u-c),Z,we,Ee,k):K=r2(N,Z,we,Ee,k),ye&&K?b="inside":(b="outside",ie.remove(),ie=null)}else b="inside";if(!ie){ke=Pd.ensureUniformFontSize(e,b==="outside"?q:F),ie=p(r,A,ke);var ce=ie.attr("transform");if(ie.attr("transform",""),ae=A_.bBox(ie.node()),we=ae.width,Ee=ae.height,ie.attr("transform",ce),we<=0||Ee<=0){ie.remove();return}}var pe=E.textangle,xe,Ce;b==="outside"?(Ce=E.constraintext==="both"||E.constraintext==="outside",xe=S1t(a,o,s,l,ae,{isHorizontal:k,constrained:Ce,angle:pe})):(Ce=E.constraintext==="both"||E.constraintext==="inside",xe=Xye(a,o,s,l,ae,{isHorizontal:k,constrained:Ce,angle:pe,anchor:V,hasB:S,r:u,overhead:c})),xe.fontSize=ke.size,v1t(E.type==="histogram"?"bar":E.type,xe,x),_.transform=xe;var Me=Gye(ie,x,f,h);Pd.setTransormAndDisplay(Me,xe)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Wye(e){return e==="auto"?0:e}function Zye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function Xye(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,x=a.hasB,b=a.r,p=a.overhead,E=i.width,k=i.height,A=Math.abs(t-e),L=Math.abs(n-r),_=A>2*Uv&&L>2*Uv?Uv:0;A-=2*_,L-=2*_;var C=Wye(l);l==="auto"&&!(E<=A&&k<=L)&&(E>A||k>L)&&(!(E>L||k>A)||EUv){var T=M1t(e,t,r,n,S,b,p,o,x);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/S.x,L/S.y)),P=0;var F=i.left*v+i.right*d,q=(i.top+i.bottom)/2,V=(e+Uv)*v+(t-Uv)*d,H=(r+n)/2,X=0,G=0;if(f||c){var N=(o?S.x:S.y)/2;b&&(c||x)&&(_+=P);var Z=o?Pm(e,t):Pm(r,n);o?f?(V=e+Z*_,X=-Z*N):(V=t-Z*_,X=Z*N):f?(H=r+Z*_,G=-Z*N):(H=n-Z*_,G=Z*N)}return{textX:F,textY:q,targetX:V,targetY:H,anchorX:X,anchorY:G,scale:g,rotate:C}}function M1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Uv),c=Math.max(0,Math.abs(n-r)-2*Uv),f=a-Uv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,x,b,p,E,k;return i.y/i.x>=c/(u-d)?E=c/i.y:i.y/i.x<=(c-v)/u?E=u/i.x:!l&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,E=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):l?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,E=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,E=(-b+Math.sqrt(b*b-4*x*p))/(2*x)),E=Math.min(1,E),s?k=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*E)/2)*(f-(c-i.y*E)/2)))-o):k=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*E)/2)*(f-(u-i.x*E)/2)))-o),{scale:E,pad:k}}function S1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Uv?Uv:0:d=f>2*Uv?Uv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var x=Wye(l),b=Zye(i,x),p=(o?b.x:b.y)/2,E=(i.left+i.right)/2,k=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,_=0,C=0,S=o?Pm(t,e):Pm(r,n);return o?(A=t-S*d,_=S*p):(L=n+S*d,C=-S*p),{textX:E,textY:k,targetX:A,targetY:L,anchorX:_,anchorY:C,scale:v,rotate:x}}function E1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=C1t(e,t,r,n,i):a.textinfo?s=L1t(t,r,n,i):s=wT.getValue(a.text,r),wT.coerceString(m1t,s)}function k1t(e,t){var r=wT.getValue(e.textposition,t);return wT.coerceEnumerated(y1t,r)}function C1t(e,t,r,n,i){var a=t[0].trace,o=Pd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function x(_){return NI(h,h.c2l(_),!0).text}function b(_){return NI(v,v.c2l(_),!0).text}var p=t[r],E={};E.label=p.p,E.labelLabel=E[f+"Label"]=x(p.p);var k=Pd.castOption(a,p.i,"text");(k===0||k)&&(E.text=k),E.value=p.s,E.valueLabel=E[d+"Label"]=b(p.s);var A={};_1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?E.value:E.label),(s||A.y===void 0)&&(A.y=c?E.label:E.value),(s||A.xLabel===void 0)&&(A.xLabel=c?E.valueLabel:E.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?E.labelLabel:E.valueLabel),l&&(E.delta=+p.rawS||p.s,E.deltaLabel=b(E.delta),E.final=p.v,E.finalLabel=b(E.final),E.initial=E.final-E.delta,E.initialLabel=b(E.initial)),u&&(E.value=p.s,E.valueLabel=b(E.value),E.percentInitial=p.begR,E.percentInitialLabel=Pd.formatPercent(p.begR),E.percentPrevious=p.difR,E.percentPreviousLabel=Pd.formatPercent(p.difR),E.percentTotal=p.sumR,E.percenTotalLabel=Pd.formatPercent(p.sumR));var L=Pd.castOption(a,p.i,"customdata");return L&&(E.customdata=L),Pd.texttemplateString(o,E,e._d3locale,A,E,a._meta||{})}function L1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var _=a?n:r;return NI(_,L,!0).text}function u(L){var _=a?r:n;return NI(_,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(l(e[t].p)),x("text")&&(v=Pd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,E=p-b;x("initial")&&d.push(u(E)),x("delta")&&d.push(u(b)),x("final")&&d.push(u(p))}if(s){x("value")&&d.push(u(f.s));var k=0;x("percent initial")&&k++,x("percent previous")&&k++,x("percent total")&&k++;var A=k>1;x("percent initial")&&(v=Pd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),x("percent previous")&&(v=Pd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),x("percent total")&&(v=Pd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}Yye.exports={plot:T1t,toMoveInsideBar:Xye}});var TT=_e((olr,Qye)=>{"use strict";var v4=Nc(),P1t=_a(),Kye=ha(),I1t=Mr().fillText,R1t=qI().getLineWidth,LV=Ka().hoverLabelText,D1t=Jo().BADNUM;function z1t(e,t,r,n,i){var a=Jye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=$ye(s,l),P1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Jye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,x,b,p,E;o.orientation==="h"?(h=r,d=t,v="y",x="x",b=H,p=F):(h=t,d=r,v="x",x="y",p=H,b=F);var k=o[v+"period"],A=l||k;function L(K){return C(K,-1)}function _(K){return C(K,1)}function C(K,ce){var pe=K.w;return K[v]+ce*pe/2}function S(K){return K[v+"End"]-K[v+"Start"]}var g=l?L:k?function(K){return K.p-S(K)/2}:function(K){return Math.min(L(K),K.p-s.bardelta/2)},P=l?_:k?function(K){return K.p+S(K)/2}:function(K){return Math.max(_(K),K.p+s.bardelta/2)};function T(K,ce,pe){return i.finiteRange&&(pe=0),v4.inbox(K-h,ce-h,pe+Math.min(1,Math.abs(ce-K)/E)-1)}function F(K){return T(g(K),P(K),c)}function q(K){return T(L(K),_(K),f)}function V(K){var ce=K[x];if(u){var pe=Math.abs(K.rawS)||0;d>0?ce+=pe:d<0&&(ce-=pe)}return ce}function H(K){var ce=d,pe=K.b,xe=V(K);return v4.inbox(pe-ce,xe-ce,c+(xe-ce)/(xe-pe)-1)}function X(K){var ce=d,pe=K.b,xe=V(K);return v4.inbox(pe-ce,xe-ce,f+(xe-ce)/(xe-pe)-1)}var G=e[v+"a"],N=e[x+"a"];E=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function Z(K){return(b(K)+p(K))/2}var ie=v4.getDistanceFunction(n,b,p,Z);if(v4.getClosest(a,ie,e),e.index!==!1&&a[e.index].p!==D1t){A||(g=function(K){return Math.min(L(K),K.p-s.bargroupwidth/2)},P=function(K){return Math.max(_(K),K.p+s.bargroupwidth/2)});var ae=e.index,we=a[ae],Ee=o.base?we.b+we.s:we.s;e[x+"0"]=e[x+"1"]=N.c2p(we[x],!0),e[x+"LabelVal"]=Ee;var ke=s.extents[s.extents.round(we.p)];e[v+"0"]=G.c2p(l?g(we):ke[0],!0),e[v+"1"]=G.c2p(l?P(we):ke[1],!0);var ye=we.orig_p!==void 0;return e[v+"LabelVal"]=ye?we.orig_p:we.p,e.labelLabel=LV(G,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=LV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=LV(N,we.b,o[x+"hoverformat"]),e.spikeDistance=(X(we)+q(we))/2,e[v+"Spike"]=G.c2p(we.p,!0),I1t(we,o,e),e.hovertemplate=o.hovertemplate,e}}function $ye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=R1t(e,t);if(Kye.opacity(r))return r;if(Kye.opacity(n)&&i)return n}Qye.exports={hoverPoints:z1t,hoverOnBars:Jye,getTraceColor:$ye}});var t1e=_e((slr,e1e)=>{"use strict";e1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AT=_e((llr,r1e)=>{"use strict";r1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";i1e.exports={attributes:Lm(),layoutAttributes:DI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:MV(),calc:Eye(),crossTraceCalc:Gb().crossTraceCalc,colorbar:Kd(),arraysToCalcdata:f4(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:TT().hoverPoints,eventData:t1e(),selectPoints:AT(),moduleType:"trace",name:"bar",basePlotModule:Jf(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var o1e=_e((clr,a1e)=>{"use strict";a1e.exports=n1e()});var p4=_e((flr,c1e)=>{"use strict";var q1t=Eg(),U0=Uc(),s1e=Lm(),O1t=dh(),l1e=Oc().axisHoverFormat,B1t=Ho().hovertemplateAttrs,Dy=to().extendFlat,MT=U0.marker,u1e=MT.line;c1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:l1e("x"),yhoverformat:l1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Dy({},MT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Dy({},MT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Dy({},MT.angle,{arrayOk:!1,editType:"calc"}),size:Dy({},MT.size,{arrayOk:!1,editType:"calc"}),color:Dy({},MT.color,{arrayOk:!1,editType:"style"}),line:{color:Dy({},u1e.color,{arrayOk:!1,dflt:O1t.defaultLine,editType:"style"}),width:Dy({},u1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:q1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:s1e.offsetgroup,alignmentgroup:s1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Dy({},U0.text,{}),hovertext:Dy({},U0.hovertext,{}),hovertemplate:B1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var g4=_e((hlr,f1e)=>{"use strict";f1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var y4=_e((dlr,p1e)=>{"use strict";var V0=Mr(),N1t=_a(),U1t=ha(),V1t=Pg(),H1t=Hb(),h1e=L3(),m4=p4();function G1t(e,t,r,n){function i(v,x){return V0.coerce(e,t,m4,v,x)}if(d1e(e,t,i,n),t.visible!==!1){V1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",U1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else V0.validate(e.notchwidth,m4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),v1e(e,t,i,{prefix:"box"}),i("zorder")}}function d1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return V0.validate(e[P],m4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(V0.minRowLength(u),V0.minRowLength(c),V0.minRowLength(f))}var h=i(o),d=i(s),v=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},E,k;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?E="h":E="v",k=l;break;case"10":E="v",k=Math.min(l,x);break;case"20":E="h",k=Math.min(l,s.length);break;case"01":E="h",k=Math.min(l,v);break;case"02":E="v",k=Math.min(l,o.length);break;case"12":E="v",k=Math.min(l,x,o.length);break;case"21":E="h",k=Math.min(l,s.length,v);break;case"11":k=0;break;case"22":var _=!1,C;for(C=0;C0?(E="v",d>0?k=Math.min(x,v):k=Math.min(v)):d>0?(E="h",k=Math.min(x)):k=0;if(!k){t.visible=!1;return}t._length=k;var S=r("orientation",E);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var g=N1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function v1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,m4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function j1t(e,t){var r,n;function i(l){return V0.coerce(n._input,n,m4,l)}for(var a=0;a{"use strict";var W1t=_a(),Z1t=Mr(),X1t=g4();function g1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var IV=ao(),VI=Ka(),K1t=Rg(),$f=Mr(),i0=Jo().BADNUM,zy=$f._;S1e.exports=function(t,r){var n=t._fullLayout,i=VI.getFromId(t,r.xaxis||"x"),a=VI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var x=J1t(r,d,h,n[s]),b=x[0],p=x[1],E=$f.distinctVals(b,h),k=E.vals,A=E.minDiff/2,L,_,C,S,g,P,T=(r.boxpoints||r.points)==="all"?$f.identity:function(Yt){return Yt.vL.uf};if(r._hasPreCompStats){var F=r[f],q=function(Yt){return c.d2c((r[Yt]||[])[l])},V=1/0,H=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var G=q("lowerfence");L.lf=G!==i0&&G<=L.q1?G:b1e(L,C,S);var N=q("upperfence");L.uf=N!==i0&&N>=L.q3?N:w1e(L,C,S);var Z=q("mean");L.mean=Z!==i0?Z:S?$f.mean(C,S):(L.q1+L.q3)/2;var ie=q("sd");L.sd=Z!==i0&&ie>=0?ie:S?$f.stdev(C,S,L.mean):L.q3-L.q1,L.lo=T1e(L),L.uo=A1e(L);var ae=q("notchspan");ae=ae!==i0&&ae>0?ae:M1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var we=L.lf,Ee=L.uf;r.boxpoints&&C.length&&(we=Math.min(we,C[0]),Ee=Math.max(Ee,C[S-1])),r.notched&&(we=Math.min(we,L.ln),Ee=Math.max(Ee,L.un)),L.min=we,L.max=Ee}else{$f.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),H=Math.max(H,L.max),L.pts2=_.filter(T),o.push(L)}}r._extremes[c._id]=VI.findExtremes(c,[V,H],{padded:!0})}else{var ye=c.makeCalcdata(r,f),K=$1t(k,A),ce=k.length,pe=Q1t(ce);for(l=0;l=0&&xe0){if(L={},L.pos=L[d]=k[l],_=L.pts=pe[l].sort(_1e),C=L[f]=_.map(x1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=$f.mean(C,S),L.sd=$f.stdev(C,S,L.mean)*r.sdmultiple,L.med=$f.interp(C,.5),S%2&&(je||Se)){var Xe,lt;je?(Xe=C.slice(0,S/2),lt=C.slice(S/2+1)):Se&&(Xe=C.slice(0,S/2+1),lt=C.slice(S/2)),L.q1=$f.interp(Xe,.5),L.q3=$f.interp(lt,.5)}else L.q1=$f.interp(C,.25),L.q3=$f.interp(C,.75);L.lf=b1e(L,C,S),L.uf=w1e(L,C,S),L.lo=T1e(L),L.uo=A1e(L);var At=M1e(L,S);L.ln=L.med-At,L.un=L.med+At,Ce=Math.min(Ce,L.ln),Me=Math.max(Me,L.un),L.pts2=_.filter(T),o.push(L)}r.notched&&$f.isTypedArray(ye)&&(ye=Array.from(ye)),r._extremes[c._id]=VI.findExtremes(c,r.notched?ye.concat([Ce,Me]):ye,{padded:!0})}return e_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function J1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=K1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||IV(e.name)&&["linear","log"].indexOf(r.type)!==-1||$f.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var E1e=Ka(),t_t=Mr(),r_t=Bb().getAxisGroup,k1e=["v","h"];function i_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,E=1-a[e+"gap"],k=1-a[e+"groupgap"];for(l=0;l0;if(C==="positive"?(N=S*(_?1:.5),ae=ie,Z=ae=P):C==="negative"?(N=ae=P,Z=S*(_?1:.5),we=ie):(N=Z=S,ae=we=ie),pe){var xe=A.pointpos,Ce=A.jitter,Me=A.marker.size/2,Le=0;xe+Ce>=0&&(Le=ie*(xe+Ce),Le>N?(ce=!0,ye=Me,Ee=Le):Le>ae&&(ye=Me,Ee=N)),Le<=N&&(Ee=N);var je=0;xe-Ce<=0&&(je=-ie*(xe-Ce),je>Z?(ce=!0,K=Me,ke=je):je>we&&(K=Me,ke=Z)),je<=Z&&(ke=Z)}else Ee=N,ke=Z;var Se=new Array(c.length);for(u=0;u{"use strict";var ST=ya(),n2=Mr(),n_t=ro(),P1e=5,a_t=.01;function o_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=ST.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),I1e(l,{pos:h,val:d},f,c,i),R1e(l,{x:a,y:o},f,c),D1e(l,{pos:h,val:d},f,c)})}function I1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,x=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var E=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);E.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),E.exit().remove(),E.each(function(k){if(k.empty)return ST.select(this).attr("d","M0,0Z");var A=s.c2l(k.pos+u,!0),L=s.l2p(A-b)+f,_=s.l2p(A+p)+f,C=l?(L+_)/2:s.l2p(A)+f,S=r.whiskerwidth,g=l?L*S+(1-S)*C:s.l2p(A-c)+f,P=l?_*S+(1-S)*C:s.l2p(A+c)+f,T=s.l2p(A-b*x)+f,F=s.l2p(A+p*x)+f,q=r.sizemode==="sd",V=o.c2p(q?k.mean-k.sd:k.q1,!0),H=q?o.c2p(k.mean+k.sd,!0):o.c2p(k.q3,!0),X=n2.constrain(q?o.c2p(k.mean,!0):o.c2p(k.med,!0),Math.min(V,H)+1,Math.max(V,H)-1),G=k.lf===void 0||r.boxpoints===!1||q,N=o.c2p(G?k.min:k.lf,!0),Z=o.c2p(G?k.max:k.uf,!0),ie=o.c2p(k.ln,!0),ae=o.c2p(k.un,!0);a?ST.select(this).attr("d","M"+X+","+T+"V"+F+"M"+V+","+L+"V"+_+(v?"H"+ie+"L"+X+","+F+"L"+ae+","+_:"")+"H"+H+"V"+L+(v?"H"+ae+"L"+X+","+T+"L"+ie+","+L:"")+"Z"+(d?"M"+V+","+C+"H"+N+"M"+H+","+C+"H"+Z+(h===0?"":"M"+N+","+g+"V"+P+"M"+Z+","+g+"V"+P):"")):ST.select(this).attr("d","M"+T+","+X+"H"+F+"M"+L+","+V+"H"+_+(v?"V"+ie+"L"+F+","+X+"L"+_+","+ae:"")+"V"+H+"H"+L+(v?"V"+ae+"L"+T+","+X+"L"+L+","+ie:"")+"Z"+(d?"M"+C+","+V+"V"+N+"M"+C+","+H+"V"+Z+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+Z+"H"+P):""))})}function R1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,p=x*a_t,E=[],k=0,A;if(r.jitter){if(x===0)for(k=1,E=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(n_t.translatePoints,i,a)}function D1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),x=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(x+b)/2:a.l2p(v)+l,E=i.c2p(d.mean,!0),k=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?ST.select(this).attr("d","M"+E+","+x+"V"+b+(u==="sd"?"m0,0L"+k+","+p+"L"+E+","+x+"L"+A+","+p+"Z":"")):ST.select(this).attr("d","M"+x+","+E+"H"+b+(u==="sd"?"m0,0L"+p+","+k+"L"+x+","+E+"L"+p+","+A+"Z":""))})}z1e.exports={plot:o_t,plotBoxAndWhiskers:I1e,plotPoints:R1e,plotBoxMean:D1e}});var jI=_e((ylr,F1e)=>{"use strict";var DV=ya(),zV=ha(),FV=ro();function s_t(e,t,r){var n=r||DV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=DV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(zV.stroke,d).call(zV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=DV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(zV.stroke,o.line.color);var c=a.selectAll("path.point");FV.pointStyle(c,o,e)}})}function l_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?FV.selectedPointStyle(i,n):FV.pointStyle(i,n,e)}F1e.exports={style:s_t,styleOnSelect:l_t}});var OV=_e((_lr,N1e)=>{"use strict";var u_t=Ka(),qV=Mr(),M_=Nc(),q1e=ha(),c_t=qV.fillText;function f_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(O1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=B1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function O1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,x,b,p,E,k,A,L=l.bdPos,_,C,S=l.wHover,g=function(Me){return h.c2l(Me.pos)+l.bPos-h.c2l(x)};u&&s.side!=="both"?(s.side==="positive"&&(E=function(Me){var Le=g(Me);return M_.inbox(Le,Le+S,k)},_=L,C=0),s.side==="negative"&&(E=function(Me){var Le=g(Me);return M_.inbox(Le-S,Le,k)},_=0,C=L)):(E=function(Me){var Le=g(Me);return M_.inbox(Le-S,Le+S,k)},_=C=L);var P;u?P=function(Me){return M_.inbox(Me.span[0]-v,Me.span[1]-v,k)}:P=function(Me){return M_.inbox(Me.min-v,Me.max-v,k)},s.orientation==="h"?(v=t,x=r,b=P,p=E,c="y",h=o,f="x",d=a):(v=r,x=t,b=E,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));k=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function F(Me){return(b(Me)+p(Me))/2}var q=M_.getDistanceFunction(n,b,p,F);if(M_.getClosest(i,q,e),e.index===!1)return[];var V=i[e.index],H=s.line.color,X=(s.marker||{}).color;q1e.opacity(H)&&s.line.width?e.color=H:q1e.opacity(X)&&s.boxpoints?e.color=X:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+_,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var G=c+"Spike";e.spikeDistance=F(V)*A/k,e[G]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,Z=s.boxpoints||s.points,ie=Z&&N?["max","uf","q3","med","mean","q1","lf","min"]:Z&&!N?["max","uf","q3","med","q1","lf","min"]:!Z&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";U1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var BV=_e((blr,H1e)=>{"use strict";H1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";G1e.exports={attributes:p4(),layoutAttributes:g4(),supplyDefaults:y4().supplyDefaults,crossTraceDefaults:y4().crossTraceDefaults,supplyLayoutDefaults:UI().supplyLayoutDefaults,calc:RV(),crossTraceCalc:HI().crossTraceCalc,plot:GI().plot,style:jI().style,styleOnSelect:jI().styleOnSelect,hoverPoints:OV().hoverPoints,eventData:V1e(),selectPoints:BV(),moduleType:"trace",name:"box",basePlotModule:Jf(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var Z1e=_e((Tlr,W1e)=>{"use strict";W1e.exports=j1e()});var ET=_e((Alr,X1e)=>{"use strict";var n0=Uc(),h_t=vl(),d_t=Mu(),NV=Oc().axisHoverFormat,v_t=Ho().hovertemplateAttrs,p_t=Ho().texttemplateAttrs,g_t=Jl(),Pp=to().extendFlat;X1e.exports=Pp({z:{valType:"data_array",editType:"calc"},x:Pp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Pp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Pp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pp({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:NV("x"),yhoverformat:NV("y"),zhoverformat:NV("z",1),hovertemplate:v_t(),texttemplate:p_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:d_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},h_t.showlegend,{dflt:!1}),zorder:n0.zorder},g_t("",{cLetter:"z",autoColorDflt:!1}))});var ZI=_e((Mlr,K1e)=>{"use strict";var m_t=ao(),WI=Mr(),y_t=_a();K1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(WI.isArray1D(s)){l=n(a),u=n(o);var c=WI.minRowLength(l),f=WI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=Y1e(a,n),u=Y1e(o,n),!__t(s))return 0;n("transpose"),r._length=null}var h=y_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function Y1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function __t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var J1e=Mr();$1e.exports=function(t,r){t("texttemplate");var n=J1e.extendFlat({},r.font,{color:"auto",size:"auto"});J1e.coerceFont(t,"textfont",n)}});var UV=_e((Elr,Q1e)=>{"use strict";Q1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var r_e=_e((klr,t_e)=>{"use strict";var e_e=Mr(),x_t=ZI(),b_t=_4(),w_t=Pg(),T_t=UV(),A_t=Uh(),M_t=ET();t_e.exports=function(t,r,n,i){function a(s,l){return e_e.coerce(t,r,M_t,s,l)}var o=x_t(t,r,a,i);if(!o){r.visible=!1;return}w_t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),b_t(a,i),T_t(t,r,a,i),a("hoverongaps"),a("connectgaps",e_e.isArray1D(r.z)&&r.zsmooth!==!1),A_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var VV=_e((Clr,i_e)=>{"use strict";var kT=ao();i_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return kT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return kT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(kT(i))if(i=Number(i),kT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(kT(i))if(i=Number(i),kT(r[e])){if(r[e]{"use strict";n_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";a_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var CT=Jo(),a2=CT.ONEAVGYEAR,o_e=CT.ONEAVGMONTH,YI=CT.ONEDAY,s_e=CT.ONEHOUR,l_e=CT.ONEMIN,u_e=CT.ONESEC,c_e=Ka().tickIncrement;d_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(XI(u+s,u+l,i,a),XI(c+s,c+l,i,a)),h=Math.min(XI(u+o,u+s,i,a),XI(c+o,c+s,i,a)),d,v;if(f>h&&hYI){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,E){var k=i.c2d(p,a2,a),A=k.indexOf("-",x);A>0&&(k=k.substr(0,A));var L=i.d2c(k,0,a);if(Lu_e?e>YI?e>a2*1.1?a2:e>o_e*1.1?o_e:YI:e>s_e?s_e:e>l_e?l_e:u_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function S_t(e,t,r,n,i,a){if(n&&e>YI){var o=h_e(t,i,a),s=h_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var XV=_e((Rlr,g_e)=>{"use strict";var WV=ao(),Vv=Mr(),v_e=_a(),H0=Ka(),E_t=f4(),p_e=VV(),k_t=HV(),C_t=GV(),L_t=jV();function P_t(e,t){var r=[],n=[],i=t.orientation==="h",a=H0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=ZV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",x=[],b=v?x:h,p=[],E=[],k=[],A=0,L=t.histnorm,_=t.histfunc,C=L.indexOf("density")!==-1,S,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var T=_==="max"||_==="min",F=T?null:0,q=p_e.count,V=k_t[L],H=!1,X=function(Le){return a.r2c(Le,0,l)},G;for(Vv.isArrayOrTypedArray(t[s])&&_!=="count"&&(G=t[s],H=_==="avg",q=p_e[_]),c=X(h.start),g=X(h.end)+(c-H0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=xe;c--)if(n[c]){Ce=c;break}for(c=xe;c<=Ce;c++)if(WV(r[c])&&WV(n[c])){var Me={p:r[c],s:n[c],b:0};u.enabled||(Me.pts=k[c],ae?Me.ph0=Me.ph1=k[c].length?d[k[c][0]]:r[c]:(t._computePh=!0,Me.ph0=K(x[c]),Me.ph1=K(x[c+1],!0))),pe.push(Me)}return pe.length===1&&(pe[0].width1=H0.tickIncrement(pe[0].p,h.size,!1,l)-pe[0].p),E_t(pe,t),Vv.isArrayOrTypedArray(t.selectedpoints)&&Vv.tagSelected(pe,t,ke),pe}function ZV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,x,b,p=function(ye){return r.r2c(ye,0,d)},E=function(ye){return r.c2r(ye,0,d)},k=r.type==="date"?function(ye){return ye||ye===0?Vv.cleanDate(ye,null,d):null}:function(ye){return WV(ye)?Number(ye):null};function A(ye,K,ce){K[ye+"Found"]?(K[ye]=k(K[ye]),K[ye]===null&&(K[ye]=ce[ye])):(x[ye]=K[ye]=ce[ye],Vv.nestedProperty(f[0],a+"."+ye).set(ce[ye]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],_=!0,C=!1,S=!1;for(c=0;cr.r2l(G)&&(Z=H0.tickIncrement(Z,l.size,!0,d)),q.start=r.l2r(Z),X||Vv.nestedProperty(t,a+".start").set(q.start)}var ie=l.end,ae=r.r2l(F.end),we=ae!==void 0;if((l.endFound||we)&&ae!==r.r2l(ie)){var Ee=we?ae:Vv.aggNums(Math.max,null,v);q.end=r.l2r(Ee),we||Vv.nestedProperty(t,a+".start").set(q.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Vv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[q,v]}function I_t(e,t,r,n,i){var a=e._fullLayout,o=R_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}g_e.exports={calc:P_t,calcAllAutoBins:ZV}});var A_e=_e((Dlr,T_e)=>{"use strict";var m_e=Mr(),LT=Ka(),y_e=VV(),z_t=HV(),F_t=GV(),q_t=jV(),__e=XV().calcAllAutoBins;T_e.exports=function(t,r){var n=LT.getFromId(t,r.xaxis),i=LT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(kt){return n.r2c(kt,0,a)},l=function(kt){return i.r2c(kt,0,o)},u=function(kt){return n.c2r(kt,0,a)},c=function(kt){return i.c2r(kt,0,o)},f,h,d,v,x=__e(t,r,n,"x"),b=x[0],p=x[1],E=__e(t,r,i,"y"),k=E[0],A=E[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var _=[],C=[],S=[],g=typeof b.size=="string",P=typeof k.size=="string",T=[],F=[],q=g?T:b,V=P?F:k,H=0,X=[],G=[],N=r.histnorm,Z=r.histfunc,ie=N.indexOf("density")!==-1,ae=Z==="max"||Z==="min",we=ae?null:0,Ee=y_e.count,ke=z_t[N],ye=!1,K=[],ce=[],pe="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";pe&&Z!=="count"&&(ye=Z==="avg",Ee=y_e[Z]);var xe=b.size,Ce=s(b.start),Me=s(b.end)+(Ce-LT.tickIncrement(Ce,xe,!1,a))/1e6;for(f=Ce;f=0&&d=0&&v{"use strict";var Im=Mr(),M_e=Jo().BADNUM,S_e=Rg();E_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=S_e(t,r,i,l).vals,u=S_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,x,b=Im.distinctVals(l),p=b.vals,E=Im.distinctVals(u),k=E.vals,A=[],L,_,C=k.length,S=p.length;for(v=0;v{"use strict";var O_t=ao(),B_t=Mr(),JI=Jo().BADNUM;k_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(O_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var N_t=Mr(),C_e=.01,U_t=[[-1,0],[1,0],[0,-1],[0,1]];function V_t(e){return .5-.25*Math.min(1,e*.5)}P_e.exports=function(t,r){var n=1,i;for(L_e(t,r),i=0;iC_e;i++)n=L_e(t,r,V_t(n));return n>C_e&&N_t.log("interp2d didn't converge quickly",n),t};function L_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-x))))}return n}});var e8=_e((Olr,I_e)=>{"use strict";var H_t=Mr().maxRowLength;I_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=H_t(t),u,c,f,h,d,v,x,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(x[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(p,E){return E[2]-p[2]})}});var YV=_e((Blr,z_e)=>{"use strict";var R_e=_a(),D_e=Mr().isArrayOrTypedArray;z_e.exports=function(t,r,n,i,a,o){var s=[],l=R_e.traceIs(t,"contour"),u=R_e.traceIs(t,"histogram"),c,f,h,d=D_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var F_e=_a(),KV=Mr(),t8=Ka(),q_e=Rg(),G_t=A_e(),j_t=zv(),W_t=KI(),Z_t=$I(),X_t=QI(),Y_t=e8(),r8=YV(),JV=Jo().BADNUM;B_e.exports=function(t,r){var n=t8.getFromId(t,r.xaxis||"x"),i=t8.getFromId(t,r.yaxis||"y"),a=F_e.traceIs(r,"contour"),o=F_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,x,b,p,E;if(n._minDtick=0,i._minDtick=0,o)E=G_t(t,r),f=E.orig_x,l=E.x,u=E.x0,c=E.dx,x=E.orig_y,h=E.y,d=E.y0,v=E.dy,b=E.z;else{var k=r.z;KV.isArray1D(k)?(W_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,k=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],l=q_e(r,n,"x",f).vals,h=q_e(r,i,"y",x).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=Z_t(k,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=K_t(l,h,b),o||(l=O_e(l),h=O_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Y_t(b),X_t(b,r._emptypoints));function A(q){s=r._input.zsmooth=r.zsmooth=!1,KV.warn('cannot use zsmooth: "fast": '+q)}function L(q){if(q.length>1){var V=(q[q.length-1]-q[0])/(q.length-1),H=Math.abs(V/100);for(p=0;pH)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var _=KV.maxRowLength(b),C=r.xtype==="scaled"?"":l,S=r8(r,C,u,c,_,n),g=r.ytype==="scaled"?"":h,P=r8(r,g,d,v,b.length,i);r._extremes[n._id]=t8.findExtremes(n,S),r._extremes[i._id]=t8.findExtremes(i,P);var T={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&x&&(T.orig_y=x),C&&C.length===S.length-1&&(T.xCenter=C),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=E.xRanges,T.yRanges=E.yRanges,T.pts=E.pts),a||j_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var F={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=r8(F,C,u,c,_,n),T.yfill=r8(F,g,d,v,b.length,i)}return[T]};function O_e(e){for(var t=[],r=e.length,n=0;n{"use strict";n8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];n8.STYLE=n8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var $V=_e((Vlr,V_e)=>{"use strict";var N_e=a8(),J_t=ro(),U_e=Mr(),PT=null;function $_t(){if(PT!==null)return PT;PT=!1;var e=U_e.isSafari()||U_e.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(N_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PT=t.some(function(o){return r.apply(null,o)});else{var n=J_t.tester.append("image").attr("style",N_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PT}V_e.exports=$_t});var o8=_e((Hlr,J_e)=>{"use strict";var H_e=ya(),Q_t=id(),ext=_a(),txt=ro(),rxt=Ka(),G0=Mr(),G_e=Pl(),ixt=JP(),nxt=ha(),axt=Su().extractOpts,oxt=Su().makeColorScaleFuncFromTrace,sxt=Zp(),lxt=Nh(),QV=lxt.LINE_SPACING,uxt=$V(),cxt=a8().STYLE,Y_e="heatmap-label";function K_e(e){return e.selectAll("g."+Y_e)}function j_e(e){K_e(e).remove()}J_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;G0.makeTraceGroups(n,r,"hm").each(function(o){var s=H_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,x=l.xCenter,b=l.yCenter,p=ext.traceIs(u,"contour"),E=p?"best":u.zsmooth,k=h.length,A=G0.maxRowLength(h),L=!1,_=!1,C,S,g,P,T,F,q,V;for(F=0;C===void 0&&F0;)S=i.c2p(d[F]),F--;for(S0;)T=a.c2p(v[F]),F--;T=i._length||S<=0||P>=a._length||T<=0;if(Z){var ie=s.selectAll("image").data([]);ie.exit().remove(),j_e(s);return}var ae,we;H==="fast"?(ae=A,we=k):(ae=G,we=N);var Ee=document.createElement("canvas");Ee.width=ae,Ee.height=we;var ke=Ee.getContext("2d",{willReadFrequently:!0}),ye=oxt(u,{noNumericCheck:!0,returnArray:!0}),K,ce;H==="fast"?(K=L?function(Ri){return A-1-Ri}:G0.identity,ce=_?function(Ri){return k-1-Ri}:G0.identity):(K=function(Ri){return G0.constrain(Math.round(i.c2p(d[Ri])-C),0,G)},ce=function(Ri){return G0.constrain(Math.round(a.c2p(v[Ri])-P),0,N)});var pe=ce(0),xe=[pe,pe],Ce=L?0:1,Me=_?0:1,Le=0,je=0,Se=0,Xe=0,lt,At,Yt,nt,ot;function Ft(Ri,ji){if(Ri!==void 0){var $i=ye(Ri);return $i[0]=Math.round($i[0]),$i[1]=Math.round($i[1]),$i[2]=Math.round($i[2]),Le+=ji,je+=$i[0]*ji,Se+=$i[1]*ji,Xe+=$i[2]*ji,$i}return[0,0,0,0]}function Lt(Ri,ji,$i,Sa){var Gn=Ri[$i.bin0];if(Gn===void 0)return Ft(void 0,1);var sa=Ri[$i.bin1],Da=ji[$i.bin0],Pa=ji[$i.bin1],Vo=sa-Gn||0,aa=Da-Gn||0,go;return sa===void 0?Pa===void 0?go=0:Da===void 0?go=2*(Pa-Gn):go=(2*Pa-Da-Gn)*2/3:Pa===void 0?Da===void 0?go=0:go=(2*Gn-sa-Da)*2/3:Da===void 0?go=(2*Pa-sa-Gn)*2/3:go=Pa+Gn-sa-Da,Ft(Gn+$i.frac*Vo+Sa.frac*(aa+$i.frac*go))}if(H!=="default"){var Rt=0,Xt;try{Xt=new Uint8Array(ae*we*4)}catch(Ri){Xt=new Array(ae*we*4)}if(H==="smooth"){var xr=x||d,er=b||v,Ge=new Array(xr.length),yt=new Array(er.length),_t=new Array(G),Ct=x?Z_e:W_e,St=b?Z_e:W_e,kt,ft,Gt;for(F=0;Frr||rr>a._length))for(q=be;qni||ni>i._length)){var Gr=ixt({x:Jr,y:Ot},u,e._fullLayout);Gr.x=Jr,Gr.y=Ot;var ri=l.z[F][q];ri===void 0?(Gr.z="",Gr.zLabel=""):(Gr.z=ri,Gr.zLabel=rxt.tickText(Ze,ri,"hover").text);var Ti=l.text&&l.text[F]&&l.text[F][q];(Ti===void 0||Ti===!1)&&(Ti=""),Gr.text=Ti;var an=G0.texttemplateString(rt,Gr,e._fullLayout._d3locale,Gr,u._meta||{});if(an){var Yi=an.split("
"),Xi=Yi.length,An=0;for(V=0;V{"use strict";$_e.exports={min:"zmin",max:"zmax"}});var s8=_e((jlr,Q_e)=>{"use strict";var fxt=ya();Q_e.exports=function(t){fxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var u8=_e((Wlr,txe)=>{"use strict";var exe=Nc(),x4=Mr(),l8=x4.isArrayOrTypedArray,hxt=Ka(),dxt=Su().extractOpts;txe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,x=s.yCenter,b=s.zmask,p=l.zhoverformat,E=f,k=h,A,L,_,C;if(t.index!==!1){try{_=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(ie){x4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||C<0||C>d.length)return}else{if(exe.inbox(r-f[0],r-f[f.length-1],0)>0||exe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(E=[2*f[0]-f[1]],S=1;S{"use strict";rxe.exports={attributes:ET(),supplyDefaults:r_e(),calc:i8(),plot:o8(),colorbar:S_(),style:s8(),hoverPoints:u8(),moduleType:"trace",name:"heatmap",basePlotModule:Jf(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var axe=_e((Xlr,nxe)=>{"use strict";nxe.exports=ixe()});var eH=_e((Ylr,oxe)=>{"use strict";oxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var lxe=_e((Klr,sxe)=>{"use strict";sxe.exports={eventDataKeys:["binNumber"]}});var c8=_e((Jlr,fxe)=>{"use strict";var Ip=Lm(),uxe=Oc().axisHoverFormat,vxt=Ho().hovertemplateAttrs,pxt=Ho().texttemplateAttrs,tH=Mu(),cxe=eH(),gxt=lxe(),rH=to().extendFlat;fxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:uxe("x"),yhoverformat:uxe("y"),text:rH({},Ip.text,{}),hovertext:rH({},Ip.hovertext,{}),orientation:Ip.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:cxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:cxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:vxt({},{keys:gxt.eventDataKeys}),texttemplate:pxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:rH({},Ip.textposition,{arrayOk:!1}),textfont:tH({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:tH({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:tH({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Ip.insidetextanchor,textangle:Ip.textangle,cliponaxis:Ip.cliponaxis,constraintext:Ip.constraintext,marker:Ip.marker,offsetgroup:Ip.offsetgroup,alignmentgroup:Ip.alignmentgroup,selected:Ip.selected,unselected:Ip.unselected,zorder:Ip.zorder}});var pxe=_e(($lr,vxe)=>{"use strict";var hxe=_a(),b4=Mr(),dxe=ha(),mxt=r0().handleText,yxt=zI(),_xt=c8();vxe.exports=function(t,r,n,i){function a(E,k){return b4.coerce(t,r,_xt,E,k)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");mxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(b4.minRowLength(o)&&b4.minRowLength(s)):b4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=hxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+f),yxt(t,r,a,n,i),b4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=hxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||dxe.defaultLine,{axis:"y"}),p(t,r,b||dxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var h8=_e((Qlr,yxe)=>{"use strict";var w4=Mr(),xxt=af(),f8=_a().traceIs,bxt=Hb(),wxt=r0().validateCornerradius,gxe=w4.nestedProperty,iH=Bb().getAxisGroup,mxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Txt=["x","y"];yxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(H,X){return w4.coerce(s._input,s,s._module.attributes,H,X)}function x(H){return H.orientation==="v"?"x":"y"}function b(H,X){var G=xxt.getFromTrace({_fullLayout:r},H,X);return G.type}function p(H,X,G){var N=H.uid+"__"+G;X||(X=N);var Z=b(H,G),ie=H[G+"calendar"]||"",ae=n[X],we=!0;ae&&(Z===ae.axType&&ie===ae.calendar?(we=!1,ae.traces.push(H),ae.dirs.push(G)):(X=N,Z!==ae.axType&&w4.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+Z,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),ie!==ae.calendar&&w4.warn(["Attempted to group the bins of trace",H.index,"set with a",ie,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),we&&(n[X]={traces:[H],dirs:[G],axType:Z,calendar:H[G+"calendar"]||""}),H["_"+G+"bingroup"]=X}for(f=0;f{"use strict";var Axt=TT().hoverPoints,Mxt=Ka().hoverLabelText;_xe.exports=function(t,r,n,i,a){var o=Axt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=Mxt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var nH=_e((tur,bxe)=>{"use strict";bxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";wxe.exports={attributes:c8(),layoutAttributes:DI(),supplyDefaults:pxe(),crossTraceDefaults:h8(),supplyLayoutDefaults:MV(),calc:XV().calc,crossTraceCalc:Gb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:Kd(),hoverPoints:xxe(),selectPoints:AT(),eventData:nH(),moduleType:"trace",name:"histogram",basePlotModule:Jf(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Mxe=_e((iur,Axe)=>{"use strict";Axe.exports=Txe()});var v8=_e((nur,Exe)=>{"use strict";var Vg=c8(),Sxe=eH(),d8=ET(),Sxt=vl(),aH=Oc().axisHoverFormat,Ext=Ho().hovertemplateAttrs,kxt=Ho().texttemplateAttrs,Cxt=Jl(),T4=to().extendFlat;Exe.exports=T4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:Sxe("x"),nbinsy:Vg.nbinsy,ybins:Sxe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:T4({},Vg.bingroup,{}),xbingroup:T4({},Vg.bingroup,{}),ybingroup:T4({},Vg.bingroup,{}),xgap:d8.xgap,ygap:d8.ygap,zsmooth:d8.zsmooth,xhoverformat:aH("x"),yhoverformat:aH("y"),zhoverformat:aH("z",1),hovertemplate:Ext({},{keys:"z"}),texttemplate:kxt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:d8.textfont,showlegend:T4({},Sxt.showlegend,{dflt:!1})},Cxt("",{cLetter:"z",autoColorDflt:!1}))});var oH=_e((aur,Cxe)=>{"use strict";var Lxt=_a(),kxe=Mr();Cxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=kxe.minRowLength(a),l=kxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=Lxt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Pxe=_e((our,Lxe)=>{"use strict";var Pxt=Mr(),Ixt=oH(),Rxt=UV(),Dxt=Uh(),zxt=_4(),Fxt=v8();Lxe.exports=function(t,r,n,i){function a(o,s){return Pxt.coerce(t,r,Fxt,o,s)}Ixt(t,r,a,i),r.visible!==!1&&(Rxt(t,r,a,i),Dxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),zxt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Dxe=_e((sur,Rxe)=>{"use strict";var qxt=u8(),Ixe=Ka().hoverLabelText;Rxe.exports=function(t,r,n,i,a){var o=qxt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Ixe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Ixe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Fxe=_e((lur,zxe)=>{"use strict";zxe.exports={attributes:v8(),supplyDefaults:Pxe(),crossTraceDefaults:h8(),calc:i8(),plot:o8(),layerName:"heatmaplayer",colorbar:S_(),style:s8(),hoverPoints:Dxe(),eventData:nH(),moduleType:"trace",name:"histogram2d",basePlotModule:Jf(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Oxe=_e((uur,qxe)=>{"use strict";qxe.exports=Fxe()});var p8=_e((cur,Bxe)=>{"use strict";Bxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var A4=_e((fur,Hxe)=>{"use strict";var Gh=ET(),g8=Uc(),Uxe=Oc(),sH=Uxe.axisHoverFormat,Oxt=Uxe.descriptionOnlyNumbers,Bxt=Jl(),Nxt=Ed().dash,Uxt=Mu(),IT=to().extendFlat,Vxe=p8(),Vxt=Vxe.COMPARISON_OPS2,Hxt=Vxe.INTERVAL_OPS,Nxe=g8.line;Hxe.exports=IT({z:Gh.z,x:Gh.x,x0:Gh.x0,dx:Gh.dx,y:Gh.y,y0:Gh.y0,dy:Gh.dy,xperiod:Gh.xperiod,yperiod:Gh.yperiod,xperiod0:g8.xperiod0,yperiod0:g8.yperiod0,xperiodalignment:Gh.xperiodalignment,yperiodalignment:Gh.yperiodalignment,text:Gh.text,hovertext:Gh.hovertext,transpose:Gh.transpose,xtype:Gh.xtype,ytype:Gh.ytype,xhoverformat:sH("x"),yhoverformat:sH("y"),zhoverformat:sH("z",1),hovertemplate:Gh.hovertemplate,texttemplate:IT({},Gh.texttemplate,{}),textfont:IT({},Gh.textfont,{}),hoverongaps:Gh.hoverongaps,connectgaps:IT({},Gh.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Uxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Oxt("contour label")},operation:{valType:"enumerated",values:[].concat(Vxt).concat(Hxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IT({},Nxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Nxt,smoothing:IT({},Nxe.smoothing,{}),editType:"plot"},zorder:g8.zorder},Bxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var uH=_e((hur,jxe)=>{"use strict";var Hv=v8(),Fy=A4(),Gxt=Jl(),lH=Oc().axisHoverFormat,Gxe=to().extendFlat;jxe.exports=Gxe({x:Hv.x,y:Hv.y,z:Hv.z,marker:Hv.marker,histnorm:Hv.histnorm,histfunc:Hv.histfunc,nbinsx:Hv.nbinsx,xbins:Hv.xbins,nbinsy:Hv.nbinsy,ybins:Hv.ybins,autobinx:Hv.autobinx,autobiny:Hv.autobiny,bingroup:Hv.bingroup,xbingroup:Hv.xbingroup,ybingroup:Hv.ybingroup,autocontour:Fy.autocontour,ncontours:Fy.ncontours,contours:Fy.contours,line:{color:Fy.line.color,width:Gxe({},Fy.line.width,{dflt:.5}),dash:Fy.line.dash,smoothing:Fy.line.smoothing,editType:"plot"},xhoverformat:lH("x"),yhoverformat:lH("y"),zhoverformat:lH("z",1),hovertemplate:Hv.hovertemplate,texttemplate:Fy.texttemplate,textfont:Fy.textfont},Gxt("",{cLetter:"z",editTypeOverride:"calc"}))});var m8=_e((dur,Wxe)=>{"use strict";Wxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var cH=_e((vur,Zxe)=>{"use strict";var jxt=Mr();Zxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;jxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var y8=_e((pur,Xxe)=>{"use strict";var Wxt=Uh(),Zxt=cH();Xxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Wxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Zxt(n,i,l,a)}});var $xe=_e((gur,Jxe)=>{"use strict";var Yxe=Mr(),Xxt=oH(),Yxt=m8(),Kxt=y8(),Jxt=_4(),Kxe=uH();Jxe.exports=function(t,r,n,i){function a(s,l){return Yxe.coerce(t,r,Kxe,s,l)}function o(s){return Yxe.coerce2(t,r,Kxe,s)}Xxt(t,r,a,i),r.visible!==!1&&(Yxt(t,r,a,o),Kxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Jxt(a,i))}});var dH=_e((mur,ebe)=>{"use strict";var hH=Ka(),fH=Mr();ebe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=fH.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=fH.aggNums(Math.max,null,r));var o=Qxe(i,a,t.ncontours);n.size=o.dtick,n.start=hH.tickFirst(o),o.range.reverse(),n.end=hH.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),fH.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Qxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Qxe(e,t,r){var n={type:"linear",range:[e,t]};return hH.autoTicks(n,(t-e)/(r||15)),n}});var M4=_e((yur,tbe)=>{"use strict";tbe.exports=function(t){return t.end+t.size/1e6}});var vH=_e((_ur,ibe)=>{"use strict";var rbe=Su(),$xt=i8(),Qxt=dH(),ebt=M4();ibe.exports=function(t,r){var n=$xt(t,r),i=n[0].z;Qxt(r,i);var a=r.contours,o=rbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=ebt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return rbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var S4=_e((xur,nbe)=>{"use strict";nbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var pH=_e((bur,abe)=>{"use strict";var _8=S4();abe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var gH=_e((wur,lbe)=>{"use strict";var x8=Mr(),RT=S4();lbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=RT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RT.SADDLEREMAINDER[o]):delete e.crossings[a],s=RT.NEWDELTA[o],!s){x8.log("Found bad marching index:",o,t,e.level);break}l.push(sbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),E4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),x=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&v)break;o=e.crossings[a]}d===1e4&&x8.log("Infinite loop in contour?");var b=E4(l[0],l[l.length-1],n,i),p=0,E=.2*e.smoothing,k=[],A=0,L,_,C,S,g,P,T,F,q,V,H;for(d=1;d=A;d--)if(L=k[d],L=A&&L+k[_]F&&q--,e.edgepaths[q]=H.concat(l,V));break}Z||(e.edgepaths[F]=l.concat(V))}for(F=0;F20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RT.BOTTOMSTART.indexOf(e)!==-1?i=1:RT.LEFTSTART.indexOf(e)!==-1?n=1:RT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function sbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var hbe=_e((Tur,fbe)=>{"use strict";var mH=p8(),nbt=ao();fbe.exports={"[]":ube("[]"),"][":ube("]["),">":yH(">"),"<":yH("<"),"=":yH("=")};function cbe(e,t){var r=Array.isArray(t),n;function i(a){return nbt(a)?+a:null}return mH.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):mH.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:mH.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function ube(e){return function(t){t=cbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function yH(e){return function(t){return t=cbe(e,t),{start:t,end:1/0,size:1/0}}}});var _H=_e((Aur,vbe)=>{"use strict";var dbe=Mr(),abt=hbe(),obt=M4();vbe.exports=function(t,r,n){for(var i=t.type==="constraint"?abt[t._operation](t.value):t,a=i.size,o=[],s=obt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){dbe.warn("Too many contours, clipping at 1000",t);break}return o}});var xH=_e((Mur,gbe)=>{"use strict";var DT=Mr();gbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";mbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var b8=_e(Gv=>{"use strict";var C4=ya(),Id=Mr(),qy=ro(),sbt=Su(),xbe=Pl(),ybe=Ka(),_be=ym(),lbt=o8(),bbe=pH(),wbe=gH(),ubt=_H(),cbt=xH(),Tbe=bH(),k4=S4(),Rm=k4.LABELOPTIMIZER;Gv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Id.makeTraceGroups(i,n,"contour").each(function(s){var l=C4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=ubt(d,r,u),x=Id.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),lbt(t,r,b,x),bbe(v),wbe(v);var p=a.c2p(f[0],!0),E=a.c2p(f[f.length-1],!0),k=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[E,A],[E,k],[p,k]],_=v;d.type==="constraint"&&(_=cbt(v,d._operation)),fbt(l,L,d),hbt(l,_,L,d),dbt(l,v,t,u,d),pbt(l,r,t,u,L)})};function fbt(e,t,r){var n=Id.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function hbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Tbe(t,n);var o=Id.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+Abe(l,r);u?C4.select(this).attr("d",u).style("stroke","none"):C4.select(this).remove()})}function Abe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,E){return E}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function x(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){Id.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):Id.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){Id.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function vbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,x=s-c,b=o+u,p=s+c,E=0;E{"use strict";var mbt=ya(),wH=Su(),ybt=M4();Mbe.exports=function(t){var r=t.contours,n=r.start,i=ybt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=wH.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?wH.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,x=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vx&&(f.unshift(x),h.unshift(h[0])),f[f.length-1]{"use strict";var w8=ya(),Sbe=ro(),_bt=s8(),xbt=TH();Ebe.exports=function(t){var r=w8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=w8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?xbt(a):null;i.selectAll("g.contourlevel").each(function(b){w8.select(this).selectAll("path").call(Sbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Sbe.font(w8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*l)}),x===void 0&&(x=u),i.selectAll("g.contourbg path").style("fill",d(x-.5*l))}}),_bt(t)}});var A8=_e((Lur,Cbe)=>{"use strict";var kbe=Su(),bbt=TH(),wbt=M4();function Tbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=bbt(t,{isColorbar:!0});if(o==="heatmap"){var l=kbe.extractOpts(t);r._fillgradient=l.reversescale?kbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:wbt(n),size:a}}Cbe.exports={min:"zmin",max:"zmax",calc:Tbt}});var AH=_e((Pur,Lbe)=>{"use strict";var M8=ha(),Abt=u8();Lbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Abt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&M8.opacity(l.fillcolor)?s.color=M8.addOpacity(l.fillcolor,1):l.contours.showlines&&M8.opacity(l.line.color)&&(s.color=M8.addOpacity(l.line.color,1)))}),o}});var Ibe=_e((Iur,Pbe)=>{"use strict";Pbe.exports={attributes:uH(),supplyDefaults:$xe(),crossTraceDefaults:h8(),calc:vH(),plot:b8().plot,layerName:"contourlayer",style:T8(),colorbar:A8(),hoverPoints:AH(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Jf(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Dbe=_e((Rur,Rbe)=>{"use strict";Rbe.exports=Ibe()});var MH=_e((Dur,Nbe)=>{"use strict";var zbe=ao(),Mbt=cH(),Obe=ha(),Fbe=Obe.addOpacity,Sbt=Obe.opacity,Bbe=p8(),qbe=Mr().isArrayOrTypedArray,Ebt=Bbe.CONSTRAINT_REDUCTION,kbt=Bbe.COMPARISON_OPS2;Nbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=Ebt[f],Cbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Fbe((t.line||{}).color||a,.5))),l){var h=c&&Sbt(c)?Fbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),Mbt(n,i,u,o)};function Cbt(e,t){var r;kbt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),qbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:zbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),zbe(t.value)||(qbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Hbe=_e((zur,Vbe)=>{"use strict";var SH=Mr(),Lbt=ZI(),Pbt=Pg(),Ibt=MH(),Rbt=m8(),Dbt=y8(),zbt=_4(),Ube=A4();Vbe.exports=function(t,r,n,i){function a(u,c){return SH.coerce(t,r,Ube,u,c)}function o(u){return SH.coerce2(t,r,Ube,u)}var s=Lbt(t,r,a,i);if(!s){r.visible=!1;return}Pbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",SH.isArray1D(r.z)),l?Ibt(t,r,a,i,n):(Rbt(t,r,a,o),Dbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&zbt(a,i),a("zorder")}});var jbe=_e((Fur,Gbe)=>{"use strict";Gbe.exports={attributes:A4(),supplyDefaults:Hbe(),calc:vH(),plot:b8().plot,style:T8(),colorbar:A8(),hoverPoints:AH(),moduleType:"trace",name:"contour",basePlotModule:Jf(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Zbe=_e((qur,Wbe)=>{"use strict";Wbe.exports=jbe()});var EH=_e((Our,Ybe)=>{"use strict";var Fbt=Ho().hovertemplateAttrs,qbt=Ho().texttemplateAttrs,Obt=Eg(),a0=Uc(),Bbt=vl(),Xbe=Jl(),Nbt=Ed().dash,E_=to().extendFlat,j0=a0.marker,L4=a0.line,Ubt=j0.line;Ybe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:qbt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:L4.color,width:L4.width,dash:Nbt,backoff:L4.backoff,shape:E_({},L4.shape,{values:["linear","spline"]}),smoothing:L4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Obt(),marker:E_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:E_({width:Ubt.width,editType:"calc"},Xbe("marker.line")),gradient:j0.gradient,editType:"calc"},Xbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},Bbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:Fbt()}});var Qbe=_e((Bur,$be)=>{"use strict";var Kbe=Mr(),Vbt=Mm(),zT=lu(),Hbt=$p(),Gbt=R0(),Jbe=J3(),jbt=D0(),Wbt=Ig(),Zbt=EH();$be.exports=function(t,r,n,i){function a(h,d){return Kbe.coerce(t,r,Zbt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var c=u{"use strict";var kH=Ka();e2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=kH.tickText(a.aaxis,t.a,!0).text,i.bLabel=kH.tickText(a.baxis,t.b,!0).text,i.cLabel=kH.tickText(a.caxis,t.c,!0).text,i}});var a2e=_e((Uur,n2e)=>{"use strict";var CH=ao(),Xbt=z0(),Ybt=km(),Kbt=F0(),Jbt=q0().calcMarkerSize,r2e=["a","b","c"],i2e={a:["b","c"],b:["a","c"],c:["a","b"]};n2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var $bt=iT();o2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Qbt=sT();l2e.exports=function(t,r,n,i){var a=Qbt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var x=h._module.formatLabels(f,h,v);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=f.hi||h.hoverinfo,p=[];function E(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var k=b.split("+");k.indexOf("all")!==-1&&(k=["a","b","c"]),k.indexOf("a")!==-1&&E(d.aaxis,o.aLabel),k.indexOf("b")!==-1&&E(d.baxis,o.bLabel),k.indexOf("c")!==-1&&E(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var f2e=_e((Gur,c2e)=>{"use strict";c2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var w2e=_e((jur,b2e)=>{"use strict";var m2e=ya(),e2t=id(),LH=_a(),Oy=Mr(),Dm=Oy.strTranslate,S8=Oy._,qT=ha(),E8=ro(),P4=ym(),PH=to().extendFlat,t2t=Xu(),k_=Ka(),h2e=gv(),d2e=Nc(),y2e=Mg(),v2e=y2e.freeMode,r2t=y2e.rectMode,IH=Sb(),i2t=wf().prepSelect,n2t=wf().selectOnClick,a2t=wf().clearOutline,o2t=wf().clearSelectionsCache,_2e=ad();function x2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}b2e.exports=x2e;var zm=x2e.prototype;zm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};zm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aFT*u?(p=u,b=p*FT):(b=l,p=b/FT),E=o*b/l,k=s*p/u,v=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=x,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-E/2,i+E/2],_id:"x"},P4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-k/2,a+k/2],_id:"y"},P4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=PH({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+k*FT],anchor:"free",position:0,_id:"y",_length:b});P4(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=PH({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});P4(_,r.graphDiv._fullLayout),_.setScale();var C=r.caxis=PH({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+k*FT],anchor:"free",position:0,_id:"y",_length:b});P4(C,r.graphDiv._fullLayout),C.setScale();var S="M"+v+","+(x+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-_._offset,x+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var F=Dm(v+b/2,x)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",F),r.layers.agrid.attr("transform",F);var q=Dm(v+b/2,x)+"rotate(-30)"+Dm(0,-C._offset);r.layers.caxis.attr("transform",q),r.layers.cgrid.attr("transform",q),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(x+p)+"l"+b/2+",-"+p:"M0,0").call(qT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+v+","+(x+p)+"h"+b:"M0,0").call(qT.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+x+"l"+b/2+","+p:"M0,0").call(qT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),E8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};zm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=IH.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:S8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=IH.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:S8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=IH.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:S8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};zm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=s2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=k_.calcTicks(e),f=k_.clipEnds(e,c),h=k_.makeTransTickFn(e),d=k_.getTickSigns(e)[2],v=Oy.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,E=t.h,k=i==="b"?"M0,"+x+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+x+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+E+",-"+p/2,b:"M0,0l-"+p/2+",-"+E,c:"M0,0l-"+E+","+p/2}[i];k_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:k,transFn:h,crisp:!1}),k_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),k_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:k_.makeLabelFns(e,0,s)})};function s2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var fd=_2e.MINZOOM/2+.87,l2t="m-0.87,.5h"+fd+"v3h-"+(fd+5.2)+"l"+(fd/2+2.6)+",-"+(fd*.87+4.5)+"l2.6,1.5l-"+fd/2+","+fd*.87+"Z",u2t="m0.87,.5h-"+fd+"v3h"+(fd+5.2)+"l-"+(fd/2+2.6)+",-"+(fd*.87+4.5)+"l-2.6,1.5l"+fd/2+","+fd*.87+"Z",c2t="m0,1l"+fd/2+","+fd*.87+"l2.6,-1.5l-"+(fd/2+2.6)+",-"+(fd*.87+4.5)+"l-"+(fd/2+2.6)+","+(fd*.87+4.5)+"l2.6,1.5l"+fd/2+",-"+fd*.87+"Z",f2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",p2e=!0;zm.clearOutline=function(){o2t(this.dragOptions),a2t(this.dragOptions.gd)};zm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(T,F,q){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;v2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,E(T,F,q)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(r2t(V)||v2e(V))&&i2t(T,F,q,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,x;function b(T){var F={};return F[e.id+".aaxis.min"]=T.a,F[e.id+".baxis.min"]=T.b,F[e.id+".caxis.min"]=T.c,F}function p(T,F){var q=r._fullLayout.clickmode;g2e(r),T===2&&(r.emit("plotly_doubleclick",null),LH.call("_guiRelayout",r,b({a:0,b:0,c:0}))),q.indexOf("select")>-1&&T===1&&n2t(F,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),q.indexOf("event")>-1&&d2e.click(r,F,e.id)}function E(T,F,q){var V=t.getBoundingClientRect();o=F-V.left,s=q-V.top,r._fullLayout._calcInverseTransform(r);var H=r._fullLayout._invTransform,X=Oy.apply3DTransform(H)(o,s);o=X[0],s=X[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=e2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:qT.background,stroke:qT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function k(T,F){return 1-F/e.h}function A(T,F){return 1-(T+(e.h-F)/Math.sqrt(3))/e.w}function L(T,F){return(T-(e.h-F)/Math.sqrt(3))/e.w}function _(T,F){var q=o+T*i,V=s+F*a,H=Math.max(0,Math.min(1,k(o,s),k(q,V))),X=Math.max(0,Math.min(1,A(o,s),A(q,V))),G=Math.max(0,Math.min(1,L(o,s),L(q,V))),N=(H/2+G)*e.w,Z=(1-H/2-X)*e.w,ie=(N+Z)/2,ae=Z-N,we=(1-H)*e.h,Ee=we-ae/FT;ae<_2e.MINZOOM?(c=l,v.attr("d",h),x.attr("d","M0,0Z")):(c={a:l.a+H*u,b:l.b+X*u,c:l.c+G*u},v.attr("d",h+"M"+N+","+we+"H"+Z+"L"+ie+","+Ee+"L"+N+","+we+"Z"),x.attr("d","M"+o+","+s+f2t+"M"+N+","+we+l2t+"M"+Z+","+we+u2t+"M"+ie+","+Ee+c2t)),d||(v.transition().style("fill",f>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){g2e(r),c!==l&&(LH.call("_guiRelayout",r,b(c)),p2e&&r.data&&r._context.showTips&&(Oy.notifier(S8(r,"Double-click to zoom back out"),"long"),p2e=!1))}function S(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,F){var q=T/e.xaxis._m,V=F/e.yaxis._m;c={a:l.a-V,b:l.b+(q+V)/2,c:l.c-(q-V)/2};var H=[c.a,c.b,c.c].sort(Oy.sorterAsc),X={a:H.indexOf(c.a),b:H.indexOf(c.b),c:H.indexOf(c.c)};H[0]<0&&(H[1]+H[0]/2<0?(H[2]+=H[0]+H[1],H[0]=H[1]=0):(H[2]+=H[0]/2,H[1]+=H[0]/2,H[0]=0),c={a:H[X.a],b:H[X.b],c:H[X.c]},F=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var G=Dm(e.x0+T,e.y0+F);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var N=Dm(-T,-F);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(E8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){LH.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){d2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||h2e.unhover(r,T)},h2e.init(this.dragOptions)};function g2e(e){m2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var zH=_e((Wur,T2e)=>{"use strict";var h2t=dh(),d2t=Ju().attributes,Ol=Cd(),v2t=Bu().overrideAll,RH=to().extendFlat,DH={title:{text:Ol.title.text,font:Ol.title.font},color:Ol.color,tickmode:Ol.minor.tickmode,nticks:RH({},Ol.nticks,{dflt:6,min:1}),tick0:Ol.tick0,dtick:Ol.dtick,tickvals:Ol.tickvals,ticktext:Ol.ticktext,ticks:Ol.ticks,ticklen:Ol.ticklen,tickwidth:Ol.tickwidth,tickcolor:Ol.tickcolor,ticklabelstep:Ol.ticklabelstep,showticklabels:Ol.showticklabels,labelalias:Ol.labelalias,showtickprefix:Ol.showtickprefix,tickprefix:Ol.tickprefix,showticksuffix:Ol.showticksuffix,ticksuffix:Ol.ticksuffix,showexponent:Ol.showexponent,exponentformat:Ol.exponentformat,minexponent:Ol.minexponent,separatethousands:Ol.separatethousands,tickfont:Ol.tickfont,tickangle:Ol.tickangle,tickformat:Ol.tickformat,tickformatstops:Ol.tickformatstops,hoverformat:Ol.hoverformat,showline:RH({},Ol.showline,{dflt:!0}),linecolor:Ol.linecolor,linewidth:Ol.linewidth,showgrid:RH({},Ol.showgrid,{dflt:!0}),gridcolor:Ol.gridcolor,gridwidth:Ol.gridwidth,griddash:Ol.griddash,layer:Ol.layer,min:{valType:"number",dflt:0,min:0}},k8=T2e.exports=v2t({domain:d2t({name:"ternary"}),bgcolor:{valType:"color",dflt:h2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:DH,baxis:DH,caxis:DH},"plot","from-root");k8.uirevision={valType:"any",editType:"none"};k8.aaxis.uirevision=k8.baxis.uirevision=k8.caxis.uirevision={valType:"any",editType:"none"}});var C_=_e((Zur,A2e)=>{"use strict";var p2t=Mr(),g2t=Us(),m2t=Ju().defaults;A2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(E,k){return p2t.coerce(h,d,o,E,k)}for(var x=0;x{"use strict";var y2t=ha(),_2t=Us(),C8=Mr(),x2t=C_(),b2t=t_(),w2t=r_(),T2t=T3(),A2t=xb(),M2t=KS(),S2e=zH(),M2e=["aaxis","baxis","caxis"];E2e.exports=function(t,r,n){x2t(t,r,n,{type:"ternary",attributes:S2e,handleDefaults:S2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function S2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=y2t.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function E2t(e,t,r,n){var i=S2e[t._name];function a(d,v){return C8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,C8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:C8.bigFont(r.font.size),color:s}}),a("min"),A2t(e,t,a,"linear"),w2t(e,t,a,"linear"),b2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),T2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(C8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),M2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var C2e=_e(W0=>{"use strict";var k2t=w2e(),C2t=kd().getSubplotCalcData,L2t=Mr().counterRegex,OT="ternary";W0.name=OT;var P2t=W0.attr="subplot";W0.idRoot=OT;W0.idRegex=W0.attrRegex=L2t(OT);var I2t=W0.attributes={};I2t[P2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};W0.layoutAttributes=zH();W0.supplyLayoutDefaults=k2e();W0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[OT],a=0;a{"use strict";L2e.exports={attributes:EH(),supplyDefaults:Qbe(),colorbar:Kd(),formatLabels:t2e(),calc:a2e(),plot:s2e(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:u2e(),selectPoints:lT(),eventData:f2e(),moduleType:"trace",name:"scatterternary",basePlotModule:C2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var R2e=_e((Jur,I2e)=>{"use strict";I2e.exports=P2e()});var FH=_e(($ur,z2e)=>{"use strict";var jh=p4(),BT=to().extendFlat,D2e=Oc().axisHoverFormat;z2e.exports={y:jh.y,x:jh.x,x0:jh.x0,y0:jh.y0,xhoverformat:D2e("x"),yhoverformat:D2e("y"),name:BT({},jh.name,{}),orientation:BT({},jh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:jh.fillcolor,points:BT({},jh.boxpoints,{}),jitter:BT({},jh.jitter,{}),pointpos:BT({},jh.pointpos,{}),width:BT({},jh.width,{}),marker:jh.marker,text:jh.text,hovertext:jh.hovertext,hovertemplate:jh.hovertemplate,quartilemethod:jh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:jh.offsetgroup,alignmentgroup:jh.alignmentgroup,selected:jh.selected,unselected:jh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:jh.zorder}});var BH=_e((Qur,F2e)=>{"use strict";var qH=g4(),OH=Mr().extendFlat;F2e.exports={violinmode:OH({},qH.boxmode,{}),violingap:OH({},qH.boxgap,{}),violingroupgap:OH({},qH.boxgroupgap,{})}});var U2e=_e((ecr,N2e)=>{"use strict";var q2e=Mr(),R2t=ha(),O2e=y4(),B2e=FH();N2e.exports=function(t,r,n,i){function a(L,_){return q2e.coerce(t,r,B2e,L,_)}function o(L,_){return q2e.coerce2(t,r,B2e,L,_)}if(O2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",R2t.addOpacity(r.line.color,.5));O2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),x=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||x||b));p||(r.box={visible:!1});var E=o("meanline.color",c),k=o("meanline.width",f),A=a("meanline.visible",!!(E||k));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var H2e=_e((tcr,V2e)=>{"use strict";var D2t=Mr(),z2t=BH(),F2t=UI();V2e.exports=function(t,r,n){function i(a,o){return D2t.coerce(t,r,z2t,a,o)}F2t._supply(t,r,n,i,"violin")}});var L8=_e(o2=>{"use strict";var q2t=Mr(),O2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=O2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var NH=Mr(),UH=Ka(),B2t=RV(),G2e=L8(),N2t=Jo().BADNUM;j2e.exports=function(t,r){var n=B2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=UH.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var G2t=HI().setPositionOffset,Z2e=["v","h"];X2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var VH=ya(),HH=Mr(),j2t=ro(),GH=GI(),W2t=yU(),Z2t=L8();K2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=W2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return j2t.smoothopen(h[0],1)}HH.makeTraceGroups(i,n,"trace violins").each(function(c){var f=VH.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var x=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],E=r[d.posLetter+"axis"],k=v.side==="both",A=k||v.side==="positive",L=k||v.side==="negative",_=f.selectAll("path.violin").data(HH.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(V){var H=VH.select(this),X=V.density,G=X.length,N=E.c2l(V.pos+x,!0),Z=E.l2p(N),ie;if(v.width)ie=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[v.scalegroup];ie=v.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/V.pts.length):ae.maxKDE/b}var we,Ee,ke,ye,K,ce,pe;if(A){for(ce=new Array(G),ye=0;ye{"use strict";var $2e=ya(),NT=ha(),X2t=op().stylePoints;Q2e.exports=function(t){var r=$2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=$2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NT.stroke,i.line.color).call(NT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NT.stroke,s.color).call(NT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(NT.stroke,l.color),a.selectAll("path.meanline").style(c).call(NT.stroke,l.color),X2t(a,i,t)})}});var nwe=_e((scr,iwe)=>{"use strict";var Y2t=ha(),jH=Mr(),K2t=Ka(),twe=OV(),rwe=L8();iwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var x=twe.hoverOnBoxes(t,r,n,i);if(f&&x.length>0){var b=t.xa,p=t.ya,E,k,A,L,_;l.orientation==="h"?(_=r,E="y",A=p,k="x",L=b):(_=n,E="x",A=b,k="y",L=p);var C=s[t.index];if(_>=C.span[0]&&_<=C.span[1]){var S=jH.extendFlat({},t),g=L.c2p(_,!0),P=rwe.getKdeValue(C,l,_),T=rwe.getPositionOnKdePath(C,l,g),F=A._offset,q=A._length;S[E+"0"]=T[0],S[E+"1"]=T[1],S[k+"0"]=S[k+"1"]=g,S[k+"Label"]=k+": "+K2t.hoverLabelText(L,_,l[k+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,H=0;H{"use strict";awe.exports={attributes:FH(),layoutAttributes:BH(),supplyDefaults:U2e(),crossTraceDefaults:y4().crossTraceDefaults,supplyLayoutDefaults:H2e(),calc:W2e(),crossTraceCalc:Y2e(),plot:J2e(),style:ewe(),styleOnSelect:op().styleOnSelect,hoverPoints:nwe(),selectPoints:BV(),moduleType:"trace",name:"violin",basePlotModule:Jf(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var lwe=_e((ucr,swe)=>{"use strict";swe.exports=owe()});var cwe=_e((ccr,uwe)=>{"use strict";uwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var ZH=_e((fcr,dwe)=>{"use strict";var lc=Lm(),WH=Uc().line,J2t=vl(),fwe=Oc().axisHoverFormat,$2t=Ho().hovertemplateAttrs,Q2t=Ho().texttemplateAttrs,hwe=cwe(),By=to().extendFlat,ewt=ha();dwe.exports={x:lc.x,x0:lc.x0,dx:lc.dx,y:lc.y,y0:lc.y0,dy:lc.dy,xperiod:lc.xperiod,yperiod:lc.yperiod,xperiod0:lc.xperiod0,yperiod0:lc.yperiod0,xperiodalignment:lc.xperiodalignment,yperiodalignment:lc.yperiodalignment,xhoverformat:fwe("x"),yhoverformat:fwe("y"),hovertext:lc.hovertext,hovertemplate:$2t({},{keys:hwe.eventDataKeys}),hoverinfo:By({},J2t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Q2t({editType:"plot"},{keys:hwe.eventDataKeys.concat(["label","value"])}),text:lc.text,textposition:lc.textposition,insidetextanchor:By({},lc.insidetextanchor,{dflt:"middle"}),textangle:By({},lc.textangle,{dflt:0}),textfont:lc.textfont,insidetextfont:lc.insidetextfont,outsidetextfont:lc.outsidetextfont,constraintext:lc.constraintext,cliponaxis:lc.cliponaxis,orientation:By({},lc.orientation,{}),offset:By({},lc.offset,{arrayOk:!1}),width:By({},lc.width,{arrayOk:!1}),marker:twt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:By({},WH.color,{dflt:ewt.defaultLine}),width:By({},WH.width,{dflt:0,editType:"plot"}),dash:WH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:lc.offsetgroup,alignmentgroup:lc.alignmentgroup,zorder:lc.zorder};function twt(){var e=By({},lc.marker);return delete e.pattern,delete e.cornerradius,e}});var XH=_e((hcr,vwe)=>{"use strict";vwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var KH=_e((dcr,gwe)=>{"use strict";var P8=Mr(),rwt=Hb(),iwt=r0().handleText,nwt=K3(),awt=Pg(),pwe=ZH(),YH=ha();function owt(e,t,r,n){function i(f,h){return P8.coerce(e,t,pwe,f,h)}var a=nwt(e,t,n,i);if(!a){t.visible=!1;return}awt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");iwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",P8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",YH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",swt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function swt(e){var t=P8.isArrayOrTypedArray(e)?"#000":e;return YH.addOpacity(t,.5*YH.opacity(t))}function lwt(e,t){var r,n;function i(o){return P8.coerce(n._input,n,pwe,o)}for(var a=0;a{"use strict";var uwt=Mr(),cwt=XH();mwe.exports=function(e,t,r){var n=!1;function i(s,l){return uwt.coerce(e,t,cwt,s,l)}for(var a=0;a{"use strict";var UT=Mr();_we.exports=function(t,r){for(var n=0;n{"use strict";var bwe=Ka(),wwe=Rg(),fwt=xwe(),hwt=F0(),I4=Jo().BADNUM;Twe.exports=function(t,r){var n=bwe.getFromId(t,r.xaxis||"x"),i=bwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=wwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=wwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Mwe=Gb().setGroupPositions;Swe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var I8=ya(),P_=Mr(),kwe=ro(),L_=Jo().BADNUM,dwt=i2(),vwt=_v().clearMinTextSize;Lwe.exports=function(t,r,n,i){var a=t._fullLayout;vwt("funnel",a),pwt(t,r,n,i),gwt(t,r,n,i),dwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function pwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=I8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(P_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Cwe(d,i,a,c),b=x[0],p=x[1],E="";b[0]!==L_&&p[0]!==L_&&b[1]!==L_&&p[1]!==L_&&b[2]!==L_&&p[2]!==L_&&b[3]!==L_&&p[3]!==L_&&(c?E+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":E+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),E===""&&(E="M0,0Z"),P_.ensureSingle(I8.select(this),"path").attr("d",E).call(kwe.setClipUrl,t.layerClipId,e)}})})}function gwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=I8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(P_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Cwe(d,i,a,c),b=x[0],p=x[1],E="";b[3]!==void 0&&p[3]!==void 0&&(c?(E+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],E+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(E+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],E+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),E===""&&(E="M0,0Z"),P_.ensureSingle(I8.select(this),"path").attr("d",E).call(kwe.setClipUrl,t.layerClipId,e)}})})}function Cwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Dwe=_e((_cr,Rwe)=>{"use strict";var R4=ya(),Iwe=ro(),$H=ha(),mwt=U1().DESELECTDIM,ywt=N0(),_wt=_v().resizeText,xwt=ywt.styleTextPoints;function bwt(e,t,r){var n=r||R4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");_wt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=R4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;R4.select(this).call($H.fill,s.mc||l.color).call($H.stroke,s.mlc||l.line.color).call(Iwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?mwt:1)}}),xwt(a,o,e),a.selectAll(".regions").each(function(){R4.select(this).selectAll("path").style("stroke-width",0).call($H.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Iwe.lineGroupStyle(R4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Rwe.exports={style:bwt}});var qwe=_e((xcr,Fwe)=>{"use strict";var zwe=ha().opacity,wwt=TT().hoverOnBars,QH=Mr().formatPercent;Fwe.exports=function(t,r,n,i,a){var o=wwt(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=QH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=QH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=QH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),p=function(E){return x||b.indexOf(E)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=Twt(l,f),[o]}};function Twt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(zwe(n))return n;if(zwe(i)&&a)return i}});var Bwe=_e((bcr,Owe)=>{"use strict";Owe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Uwe=_e((wcr,Nwe)=>{"use strict";Nwe.exports={attributes:ZH(),layoutAttributes:XH(),supplyDefaults:KH().supplyDefaults,crossTraceDefaults:KH().crossTraceDefaults,supplyLayoutDefaults:ywe(),calc:Awe(),crossTraceCalc:Ewe(),plot:Pwe(),style:Dwe().style,hoverPoints:qwe(),eventData:Bwe(),selectPoints:AT(),moduleType:"trace",name:"funnel",basePlotModule:Jf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Hwe=_e((Tcr,Vwe)=>{"use strict";Vwe.exports=Uwe()});var jwe=_e((Acr,Gwe)=>{"use strict";Gwe.exports={eventDataKeys:["initial","delta","final"]}});var rG=_e((Mcr,Xwe)=>{"use strict";var Uu=Lm(),eG=Uc().line,Awt=vl(),Wwe=Oc().axisHoverFormat,Mwt=Ho().hovertemplateAttrs,Swt=Ho().texttemplateAttrs,Zwe=jwe(),VT=to().extendFlat,Ewt=ha();function tG(e){return{marker:{color:VT({},Uu.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VT({},Uu.marker.line.color,{arrayOk:!1,editType:"style"}),width:VT({},Uu.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}Xwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Uu.x,x0:Uu.x0,dx:Uu.dx,y:Uu.y,y0:Uu.y0,dy:Uu.dy,xperiod:Uu.xperiod,yperiod:Uu.yperiod,xperiod0:Uu.xperiod0,yperiod0:Uu.yperiod0,xperiodalignment:Uu.xperiodalignment,yperiodalignment:Uu.yperiodalignment,xhoverformat:Wwe("x"),yhoverformat:Wwe("y"),hovertext:Uu.hovertext,hovertemplate:Mwt({},{keys:Zwe.eventDataKeys}),hoverinfo:VT({},Awt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Swt({editType:"plot"},{keys:Zwe.eventDataKeys.concat(["label"])}),text:Uu.text,textposition:Uu.textposition,insidetextanchor:Uu.insidetextanchor,textangle:Uu.textangle,textfont:Uu.textfont,insidetextfont:Uu.insidetextfont,outsidetextfont:Uu.outsidetextfont,constraintext:Uu.constraintext,cliponaxis:Uu.cliponaxis,orientation:Uu.orientation,offset:Uu.offset,width:Uu.width,increasing:tG("increasing"),decreasing:tG("decreasing"),totals:tG("intermediate sums and total"),connector:{line:{color:VT({},eG.color,{dflt:Ewt.defaultLine}),width:VT({},eG.width,{editType:"plot"}),dash:eG.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Uu.offsetgroup,alignmentgroup:Uu.alignmentgroup,zorder:Uu.zorder}});var iG=_e((Scr,Ywe)=>{"use strict";Ywe.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var HT=_e((Ecr,Kwe)=>{"use strict";Kwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var aG=_e((kcr,e3e)=>{"use strict";var Jwe=Mr(),kwt=Hb(),Cwt=r0().handleText,Lwt=K3(),Pwt=Pg(),$we=rG(),Iwt=ha(),Qwe=HT(),Rwt=Qwe.INCREASING.COLOR,Dwt=Qwe.DECREASING.COLOR,zwt="#4499FF";function nG(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",Iwt.defaultLine),e(t+".marker.line.width")}function Fwt(e,t,r,n){function i(u,c){return Jwe.coerce(e,t,$we,u,c)}var a=Lwt(e,t,n,i);if(!a){t.visible=!1;return}Pwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Cwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),nG(i,"increasing",Rwt),nG(i,"decreasing",Dwt),nG(i,"totals",zwt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function qwt(e,t){var r,n;function i(o){return Jwe.coerce(n._input,n,$we,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var Owt=Mr(),Bwt=iG();t3e.exports=function(e,t,r){var n=!1;function i(s,l){return Owt.coerce(e,t,Bwt,s,l)}for(var a=0;a{"use strict";var i3e=Ka(),n3e=Rg(),a3e=Mr().mergeArray,Nwt=F0(),o3e=Jo().BADNUM;function oG(e){return e==="a"||e==="absolute"}function sG(e){return e==="t"||e==="total"}s3e.exports=function(t,r){var n=i3e.getFromId(t,r.xaxis||"x"),i=i3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=n3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=n3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,x=!1,b=0;b{"use strict";var u3e=Gb().setGroupPositions;c3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var h3e=ya(),R8=Mr(),Uwt=ro(),GT=Jo().BADNUM,Vwt=i2(),Hwt=_v().clearMinTextSize;d3e.exports=function(t,r,n,i){var a=t._fullLayout;Hwt("waterfall",a),Vwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),Gwt(t,r,n,i)};function Gwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;R8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=h3e.select(this),l=o[0].trace,u=R8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(R8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,x){if(!(x!==d-1&&!v.cNext)){var b=jwt(v,i,a,c),p=b[0],E=b[1],k="";p[0]!==GT&&E[0]!==GT&&p[1]!==GT&&E[1]!==GT&&(f==="spanning"&&!v.isSum&&x>0&&(c?k+="M"+p[0]+","+E[1]+"V"+E[0]:k+="M"+p[1]+","+E[0]+"H"+p[0]),f!=="between"&&(v.isSum||x{"use strict";var D8=ya(),p3e=ro(),g3e=ha(),Wwt=U1().DESELECTDIM,Zwt=N0(),Xwt=_v().resizeText,Ywt=Zwt.styleTextPoints;function Kwt(e,t,r){var n=r||D8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Xwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=D8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;D8.select(this).call(g3e.fill,l.color).call(g3e.stroke,l.line.color).call(p3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?Wwt:1)}}),Ywt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;p3e.lineGroupStyle(D8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}m3e.exports={style:Kwt}});var T3e=_e((Dcr,w3e)=>{"use strict";var Jwt=Ka().hoverLabelText,_3e=ha().opacity,$wt=TT().hoverOnBars,x3e=HT(),b3e={increasing:x3e.INCREASING.SYMBOL,decreasing:x3e.DECREASING.SYMBOL};w3e.exports=function(t,r,n,i,a){var o=$wt(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(_){return Jwt(f,_,l[c+"hoverformat"])}var d=o.index,v=s[d],x=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,E=[];if(p&&p!=="none"&&p!=="skip"){var k=p==="all",A=p.split("+"),L=function(_){return k||A.indexOf(_)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&E.push(o.finalLabel),L("delta")&&(x<0?E.push(o.deltaLabel+" "+b3e.decreasing):E.push(o.deltaLabel+" "+b3e.increasing)),L("initial")&&E.push("Initial: "+o.initialLabel))}return E.length&&(o.extraText=E.join("
")),o.color=Qwt(l,v),[o]};function Qwt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(_3e(n))return n;if(_3e(i)&&a)return i}});var M3e=_e((zcr,A3e)=>{"use strict";A3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var E3e=_e((Fcr,S3e)=>{"use strict";S3e.exports={attributes:rG(),layoutAttributes:iG(),supplyDefaults:aG().supplyDefaults,crossTraceDefaults:aG().crossTraceDefaults,supplyLayoutDefaults:r3e(),calc:l3e(),crossTraceCalc:f3e(),plot:v3e(),style:y3e().style,hoverPoints:T3e(),eventData:M3e(),selectPoints:AT(),moduleType:"trace",name:"waterfall",basePlotModule:Jf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var C3e=_e((qcr,k3e)=>{"use strict";k3e.exports=E3e()});var jT=_e((Ocr,L3e)=>{"use strict";L3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var lG=_e((Bcr,I3e)=>{"use strict";var e3t=vl(),t3t=Uc().zorder,r3t=Ho().hovertemplateAttrs,P3e=to().extendFlat,i3t=jT().colormodel,z4=["rgb","rgba","rgba256","hsl","hsla"],n3t=[],a3t=[];for(WT=0;WT{"use strict";var o3t=Mr(),s3t=lG(),R3e=jT(),l3t=Cy().IMAGE_URL_PREFIX;D3e.exports=function(t,r){function n(o,s){return o3t.coerce(t,r,s3t,o,s)}n("source"),r.source&&!r.source.match(l3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=R3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=R3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Ny=_e((Ucr,uG)=>{typeof Object.create=="function"?uG.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:uG.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var cG=_e((Vcr,F3e)=>{F3e.exports=vb().EventEmitter});var B3e=_e(z8=>{"use strict";z8.byteLength=c3t;z8.toByteArray=h3t;z8.fromByteArray=p3t;var Fm=[],Z0=[],u3t=typeof Uint8Array!="undefined"?Uint8Array:Array,fG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,q3e=fG.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c3t(e){var t=O3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function f3t(e,t,r){return(t+r)*3/4-r}function h3t(e){var t,r=O3e(e),n=r[0],i=r[1],a=new u3t(f3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Z0[e.charCodeAt(l)]<<2|Z0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Z0[e.charCodeAt(l)]<<10|Z0[e.charCodeAt(l+1)]<<4|Z0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function d3t(e){return Fm[e>>18&63]+Fm[e>>12&63]+Fm[e>>6&63]+Fm[e&63]}function v3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Fm[t>>2]+Fm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fm[t>>10]+Fm[t>>4&63]+Fm[t<<2&63]+"=")),i.join("")}});var N3e=_e(hG=>{hG.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};hG.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=x*128}});var u2=_e(KT=>{"use strict";var dG=B3e(),XT=N3e(),U3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KT.Buffer=Pn;KT.SlowBuffer=b3t;KT.INSPECT_MAX_BYTES=50;var F8=2147483647;KT.kMaxLength=F8;Pn.TYPED_ARRAY_SUPPORT=g3t();!Pn.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(Pn.prototype,"parent",{enumerable:!0,get:function(){if(Pn.isBuffer(this))return this.buffer}});Object.defineProperty(Pn.prototype,"offset",{enumerable:!0,get:function(){if(Pn.isBuffer(this))return this.byteOffset}});function Uy(e){if(e>F8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Pn.prototype),t}function Pn(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return mG(e)}return j3e(e,t,r)}Pn.poolSize=8192;function j3e(e,t,r){if(typeof e=="string")return y3t(e,t);if(ArrayBuffer.isView(e))return _3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(qm(e,ArrayBuffer)||e&&qm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(qm(e,SharedArrayBuffer)||e&&qm(e.buffer,SharedArrayBuffer)))return pG(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Pn.from(n,t,r);let i=x3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Pn.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Pn.from=function(e,t,r){return j3e(e,t,r)};Object.setPrototypeOf(Pn.prototype,Uint8Array.prototype);Object.setPrototypeOf(Pn,Uint8Array);function W3e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function m3t(e,t,r){return W3e(e),e<=0?Uy(e):t!==void 0?typeof r=="string"?Uy(e).fill(t,r):Uy(e).fill(t):Uy(e)}Pn.alloc=function(e,t,r){return m3t(e,t,r)};function mG(e){return W3e(e),Uy(e<0?0:yG(e)|0)}Pn.allocUnsafe=function(e){return mG(e)};Pn.allocUnsafeSlow=function(e){return mG(e)};function y3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Pn.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=Z3e(e,t)|0,n=Uy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function vG(e){let t=e.length<0?0:yG(e.length)|0,r=Uy(t);for(let n=0;n=F8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F8.toString(16)+" bytes");return e|0}function b3t(e){return+e!=e&&(e=0),Pn.alloc(+e)}Pn.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Pn.prototype};Pn.compare=function(t,r){if(qm(t,Uint8Array)&&(t=Pn.from(t,t.offset,t.byteLength)),qm(r,Uint8Array)&&(r=Pn.from(r,r.offset,r.byteLength)),!Pn.isBuffer(t)||!Pn.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(Pn.isBuffer(o)||(o=Pn.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(Pn.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Z3e(e,t){if(Pn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||qm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return gG(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return rTe(e).length;default:if(i)return n?-1:gG(e).length;t=(""+t).toLowerCase(),i=!0}}Pn.byteLength=Z3e;function w3t(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return I3t(this,t,r);case"utf8":case"utf-8":return Y3e(this,t,r);case"ascii":return L3t(this,t,r);case"latin1":case"binary":return P3t(this,t,r);case"base64":return k3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Pn.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Pn.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};U3e&&(Pn.prototype[U3e]=Pn.prototype.inspect);Pn.prototype.compare=function(t,r,n,i,a){if(qm(t,Uint8Array)&&(t=Pn.from(t,t.offset,t.byteLength)),!Pn.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xG(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=Pn.from(t,n)),Pn.isBuffer(t))return t.length===0?-1:V3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):V3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function V3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return T3t(this,t,r,n);case"utf8":case"utf-8":return A3t(this,t,r,n);case"ascii":case"latin1":case"binary":return M3t(this,t,r,n);case"base64":return S3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};Pn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k3t(e,t,r){return t===0&&r===e.length?dG.fromByteArray(e):dG.fromByteArray(e.slice(t,r))}function Y3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return C3t(n)}var H3e=4096;function C3t(e){let t=e.length;if(t<=H3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}Pn.prototype.readUintLE=Pn.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||$d(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||$d(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};Pn.prototype.readUint8=Pn.prototype.readUInt8=function(t,r){return t=t>>>0,r||$d(t,1,this.length),this[t]};Pn.prototype.readUint16LE=Pn.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||$d(t,2,this.length),this[t]|this[t+1]<<8};Pn.prototype.readUint16BE=Pn.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||$d(t,2,this.length),this[t]<<8|this[t+1]};Pn.prototype.readUint32LE=Pn.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||$d(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Pn.prototype.readUint32BE=Pn.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||$d(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Pn.prototype.readBigUInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&F4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&F4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||$d(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};Pn.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||$d(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Pn.prototype.readInt8=function(t,r){return t=t>>>0,r||$d(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Pn.prototype.readInt16LE=function(t,r){t=t>>>0,r||$d(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Pn.prototype.readInt16BE=function(t,r){t=t>>>0,r||$d(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Pn.prototype.readInt32LE=function(t,r){return t=t>>>0,r||$d(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Pn.prototype.readInt32BE=function(t,r){return t=t>>>0,r||$d(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Pn.prototype.readBigInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&F4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&F4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||$d(t,4,this.length),XT.read(this,t,!0,23,4)};Pn.prototype.readFloatBE=function(t,r){return t=t>>>0,r||$d(t,4,this.length),XT.read(this,t,!1,23,4)};Pn.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||$d(t,8,this.length),XT.read(this,t,!0,52,8)};Pn.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||$d(t,8,this.length),XT.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!Pn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}Pn.prototype.writeUintLE=Pn.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};Pn.prototype.writeUint8=Pn.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,255,0),this[r]=t&255,r+1};Pn.prototype.writeUint16LE=Pn.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Pn.prototype.writeUint16BE=Pn.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Pn.prototype.writeUint32LE=Pn.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Pn.prototype.writeUint32BE=Pn.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function K3e(e,t,r,n,i){tTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function J3e(e,t,r,n,i){tTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}Pn.prototype.writeBigUInt64LE=I_(function(t,r=0){return K3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Pn.prototype.writeBigUInt64BE=I_(function(t,r=0){return J3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Pn.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};Pn.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};Pn.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Pn.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Pn.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Pn.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Pn.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Pn.prototype.writeBigInt64LE=I_(function(t,r=0){return K3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Pn.prototype.writeBigInt64BE=I_(function(t,r=0){return J3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q3e(e,t,r,n,i){return t=+t,r=r>>>0,i||$3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),XT.write(e,t,r,n,23,4),r+4}Pn.prototype.writeFloatLE=function(t,r,n){return Q3e(this,t,r,!0,n)};Pn.prototype.writeFloatBE=function(t,r,n){return Q3e(this,t,r,!1,n)};function eTe(e,t,r,n,i){return t=+t,r=r>>>0,i||$3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),XT.write(e,t,r,n,52,8),r+8}Pn.prototype.writeDoubleLE=function(t,r,n){return eTe(this,t,r,!0,n)};Pn.prototype.writeDoubleBE=function(t,r,n){return eTe(this,t,r,!1,n)};Pn.prototype.copy=function(t,r,n,i){if(!Pn.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=G3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=G3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function G3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function D3t(e,t,r){YT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&F4(t,e.length-(r+1))}function tTe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new ZT.ERR_OUT_OF_RANGE("value",s,e)}D3t(n,i,a)}function YT(e,t){if(typeof e!="number")throw new ZT.ERR_INVALID_ARG_TYPE(t,"number",e)}function F4(e,t,r){throw Math.floor(e)!==e?(YT(e,r),new ZT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ZT.ERR_BUFFER_OUT_OF_BOUNDS:new ZT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var z3t=/[^+/0-9A-Za-z-_]/g;function F3t(e){if(e=e.split("=")[0],e=e.trim().replace(z3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function gG(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function q3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function rTe(e){return dG.toByteArray(F3t(e))}function q8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function qm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function xG(e){return e!==e}var B3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function I_(e){return typeof BigInt=="undefined"?N3t:e}function N3t(){throw new Error("BigInt not supported")}});var O8=_e((Zcr,iTe)=>{"use strict";iTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var q4=_e((Xcr,nTe)=>{"use strict";var U3t=O8();nTe.exports=function(){return U3t()&&!!Symbol.toStringTag}});var B8=_e((Ycr,aTe)=>{"use strict";aTe.exports=Object});var sTe=_e((Kcr,oTe)=>{"use strict";oTe.exports=Error});var uTe=_e((Jcr,lTe)=>{"use strict";lTe.exports=EvalError});var fTe=_e(($cr,cTe)=>{"use strict";cTe.exports=RangeError});var dTe=_e((Qcr,hTe)=>{"use strict";hTe.exports=ReferenceError});var bG=_e((efr,vTe)=>{"use strict";vTe.exports=SyntaxError});var JT=_e((tfr,pTe)=>{"use strict";pTe.exports=TypeError});var mTe=_e((rfr,gTe)=>{"use strict";gTe.exports=URIError});var _Te=_e((ifr,yTe)=>{"use strict";yTe.exports=Math.abs});var bTe=_e((nfr,xTe)=>{"use strict";xTe.exports=Math.floor});var TTe=_e((afr,wTe)=>{"use strict";wTe.exports=Math.max});var MTe=_e((ofr,ATe)=>{"use strict";ATe.exports=Math.min});var ETe=_e((sfr,STe)=>{"use strict";STe.exports=Math.pow});var CTe=_e((lfr,kTe)=>{"use strict";kTe.exports=Math.round});var PTe=_e((ufr,LTe)=>{"use strict";LTe.exports=Number.isNaN||function(t){return t!==t}});var RTe=_e((cfr,ITe)=>{"use strict";var V3t=PTe();ITe.exports=function(t){return V3t(t)||t===0?t:t<0?-1:1}});var zTe=_e((ffr,DTe)=>{"use strict";DTe.exports=Object.getOwnPropertyDescriptor});var c2=_e((hfr,FTe)=>{"use strict";var N8=zTe();if(N8)try{N8([],"length")}catch(e){N8=null}FTe.exports=N8});var O4=_e((dfr,qTe)=>{"use strict";var U8=Object.defineProperty||!1;if(U8)try{U8({},"a",{value:1})}catch(e){U8=!1}qTe.exports=U8});var NTe=_e((vfr,BTe)=>{"use strict";var OTe=typeof Symbol!="undefined"&&Symbol,H3t=O8();BTe.exports=function(){return typeof OTe!="function"||typeof Symbol!="function"||typeof OTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:H3t()}});var wG=_e((pfr,UTe)=>{"use strict";UTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var TG=_e((gfr,VTe)=>{"use strict";var G3t=B8();VTe.exports=G3t.getPrototypeOf||null});var jTe=_e((mfr,GTe)=>{"use strict";var j3t="Function.prototype.bind called on incompatible ",W3t=Object.prototype.toString,Z3t=Math.max,X3t="[object Function]",HTe=function(t,r){for(var n=[],i=0;i{"use strict";var J3t=jTe();WTe.exports=Function.prototype.bind||J3t});var V8=_e((_fr,ZTe)=>{"use strict";ZTe.exports=Function.prototype.call});var H8=_e((xfr,XTe)=>{"use strict";XTe.exports=Function.prototype.apply});var KTe=_e((bfr,YTe)=>{"use strict";YTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var AG=_e((wfr,JTe)=>{"use strict";var $3t=$T(),Q3t=H8(),eTt=V8(),tTt=KTe();JTe.exports=tTt||$3t.call(eTt,Q3t)});var G8=_e((Tfr,$Te)=>{"use strict";var rTt=$T(),iTt=JT(),nTt=V8(),aTt=AG();$Te.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new iTt("a function is required");return aTt(rTt,nTt,t)}});var n5e=_e((Afr,i5e)=>{"use strict";var oTt=G8(),QTe=c2(),t5e;try{t5e=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var MG=!!t5e&&QTe&&QTe(Object.prototype,"__proto__"),r5e=Object,e5e=r5e.getPrototypeOf;i5e.exports=MG&&typeof MG.get=="function"?oTt([MG.get]):typeof e5e=="function"?function(t){return e5e(t==null?t:r5e(t))}:!1});var j8=_e((Mfr,l5e)=>{"use strict";var a5e=wG(),o5e=TG(),s5e=n5e();l5e.exports=a5e?function(t){return a5e(t)}:o5e?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return o5e(t)}:s5e?function(t){return s5e(t)}:null});var SG=_e((Sfr,u5e)=>{"use strict";var sTt=Function.prototype.call,lTt=Object.prototype.hasOwnProperty,uTt=$T();u5e.exports=uTt.call(sTt,lTt)});var X8=_e((Efr,p5e)=>{"use strict";var Bl,cTt=B8(),fTt=sTe(),hTt=uTe(),dTt=fTe(),vTt=dTe(),r5=bG(),t5=JT(),pTt=mTe(),gTt=_Te(),mTt=bTe(),yTt=TTe(),_Tt=MTe(),xTt=ETe(),bTt=CTe(),wTt=RTe(),d5e=Function,EG=function(e){try{return d5e('"use strict"; return ('+e+").constructor;")()}catch(t){}},B4=c2(),TTt=O4(),kG=function(){throw new t5},ATt=B4?function(){try{return arguments.callee,kG}catch(e){try{return B4(arguments,"callee").get}catch(t){return kG}}}():kG,QT=NTe()(),Qd=j8(),MTt=TG(),STt=wG(),v5e=H8(),N4=V8(),e5={},ETt=typeof Uint8Array=="undefined"||!Qd?Bl:Qd(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Bl:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Bl:ArrayBuffer,"%ArrayIteratorPrototype%":QT&&Qd?Qd([][Symbol.iterator]()):Bl,"%AsyncFromSyncIteratorPrototype%":Bl,"%AsyncFunction%":e5,"%AsyncGenerator%":e5,"%AsyncGeneratorFunction%":e5,"%AsyncIteratorPrototype%":e5,"%Atomics%":typeof Atomics=="undefined"?Bl:Atomics,"%BigInt%":typeof BigInt=="undefined"?Bl:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Bl:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Bl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Bl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fTt,"%eval%":eval,"%EvalError%":hTt,"%Float16Array%":typeof Float16Array=="undefined"?Bl:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Bl:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Bl:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Bl:FinalizationRegistry,"%Function%":d5e,"%GeneratorFunction%":e5,"%Int8Array%":typeof Int8Array=="undefined"?Bl:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Bl:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Bl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QT&&Qd?Qd(Qd([][Symbol.iterator]())):Bl,"%JSON%":typeof JSON=="object"?JSON:Bl,"%Map%":typeof Map=="undefined"?Bl:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QT||!Qd?Bl:Qd(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cTt,"%Object.getOwnPropertyDescriptor%":B4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Bl:Promise,"%Proxy%":typeof Proxy=="undefined"?Bl:Proxy,"%RangeError%":dTt,"%ReferenceError%":vTt,"%Reflect%":typeof Reflect=="undefined"?Bl:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Bl:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QT||!Qd?Bl:Qd(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Bl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QT&&Qd?Qd(""[Symbol.iterator]()):Bl,"%Symbol%":QT?Symbol:Bl,"%SyntaxError%":r5,"%ThrowTypeError%":ATt,"%TypedArray%":ETt,"%TypeError%":t5,"%Uint8Array%":typeof Uint8Array=="undefined"?Bl:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Bl:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Bl:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Bl:Uint32Array,"%URIError%":pTt,"%WeakMap%":typeof WeakMap=="undefined"?Bl:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Bl:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Bl:WeakSet,"%Function.prototype.call%":N4,"%Function.prototype.apply%":v5e,"%Object.defineProperty%":TTt,"%Object.getPrototypeOf%":MTt,"%Math.abs%":gTt,"%Math.floor%":mTt,"%Math.max%":yTt,"%Math.min%":_Tt,"%Math.pow%":xTt,"%Math.round%":bTt,"%Math.sign%":wTt,"%Reflect.getPrototypeOf%":STt};if(Qd)try{null.error}catch(e){c5e=Qd(Qd(e)),f2["%Error.prototype%"]=c5e}var c5e,kTt=function e(t){var r;if(t==="%AsyncFunction%")r=EG("async function () {}");else if(t==="%GeneratorFunction%")r=EG("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=EG("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Qd&&(r=Qd(i.prototype))}return f2[t]=r,r},f5e={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U4=$T(),W8=SG(),CTt=U4.call(N4,Array.prototype.concat),LTt=U4.call(v5e,Array.prototype.splice),h5e=U4.call(N4,String.prototype.replace),Z8=U4.call(N4,String.prototype.slice),PTt=U4.call(N4,RegExp.prototype.exec),ITt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,RTt=/\\(\\)?/g,DTt=function(t){var r=Z8(t,0,1),n=Z8(t,-1);if(r==="%"&&n!=="%")throw new r5("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new r5("invalid intrinsic syntax, expected opening `%`");var i=[];return h5e(t,ITt,function(a,o,s,l){i[i.length]=s?h5e(l,RTt,"$1"):o||a}),i},zTt=function(t,r){var n=t,i;if(W8(f5e,n)&&(i=f5e[n],n="%"+i[0]+"%"),W8(f2,n)){var a=f2[n];if(a===e5&&(a=kTt(n)),typeof a=="undefined"&&!r)throw new t5("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new r5("intrinsic "+t+" does not exist!")};p5e.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new t5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new t5('"allowMissing" argument must be a boolean');if(PTt(/^%?[^%]*%?$/,t)===null)throw new r5("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DTt(t),i=n.length>0?n[0]:"",a=zTt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],LTt(n,CTt([0,1],u)));for(var c=1,f=!0;c=n.length){var x=B4(s,h);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else f=W8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var h2=_e((kfr,y5e)=>{"use strict";var g5e=X8(),m5e=G8(),FTt=m5e([g5e("%String.prototype.indexOf%")]);y5e.exports=function(t,r){var n=g5e(t,!!r);return typeof n=="function"&&FTt(t,".prototype.")>-1?m5e([n]):n}});var b5e=_e((Cfr,x5e)=>{"use strict";var qTt=q4()(),OTt=h2(),CG=OTt("Object.prototype.toString"),Y8=function(t){return qTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:CG(t)==="[object Arguments]"},_5e=function(t){return Y8(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&CG(t)!=="[object Array]"&&"callee"in t&&CG(t.callee)==="[object Function]"},BTt=function(){return Y8(arguments)}();Y8.isLegacyArguments=_5e;x5e.exports=BTt?Y8:_5e});var E5e=_e((Lfr,S5e)=>{"use strict";var w5e=h2(),NTt=q4()(),UTt=SG(),VTt=c2(),IG;NTt?(T5e=w5e("RegExp.prototype.exec"),LG={},K8=function(){throw LG},PG={toString:K8,valueOf:K8},typeof Symbol.toPrimitive=="symbol"&&(PG[Symbol.toPrimitive]=K8),IG=function(t){if(!t||typeof t!="object")return!1;var r=VTt(t,"lastIndex"),n=r&&UTt(r,"value");if(!n)return!1;try{T5e(t,PG)}catch(i){return i===LG}}):(A5e=w5e("Object.prototype.toString"),M5e="[object RegExp]",IG=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:A5e(t)===M5e});var T5e,LG,K8,PG,A5e,M5e;S5e.exports=IG});var C5e=_e((Pfr,k5e)=>{"use strict";var HTt=h2(),GTt=E5e(),jTt=HTt("RegExp.prototype.exec"),WTt=JT();k5e.exports=function(t){if(!GTt(t))throw new WTt("`regex` must be a RegExp");return function(n){return jTt(t,n)!==null}}});var R5e=_e((Ifr,I5e)=>{"use strict";var L5e=h2(),ZTt=C5e(),XTt=ZTt(/^\s*(?:function)?\*/),P5e=q4()(),RG=j8(),YTt=L5e("Object.prototype.toString"),KTt=L5e("Function.prototype.toString"),JTt=function(){if(!P5e)return!1;try{return Function("return function*() {}")()}catch(e){}},DG;I5e.exports=function(t){if(typeof t!="function")return!1;if(XTt(KTt(t)))return!0;if(!P5e){var r=YTt(t);return r==="[object GeneratorFunction]"}if(!RG)return!1;if(typeof DG=="undefined"){var n=JTt();DG=n?RG(n):!1}return RG(t)===DG}});var q5e=_e((Rfr,F5e)=>{"use strict";var z5e=Function.prototype.toString,i5=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,FG,J8;if(typeof i5=="function"&&typeof Object.defineProperty=="function")try{FG=Object.defineProperty({},"length",{get:function(){throw J8}}),J8={},i5(function(){throw 42},null,FG)}catch(e){e!==J8&&(i5=null)}else i5=null;var $Tt=/^\s*class\b/,qG=function(t){try{var r=z5e.call(t);return $Tt.test(r)}catch(n){return!1}},zG=function(t){try{return qG(t)?!1:(z5e.call(t),!0)}catch(r){return!1}},$8=Object.prototype.toString,QTt="[object Object]",e5t="[object Function]",t5t="[object GeneratorFunction]",r5t="[object HTMLAllCollection]",i5t="[object HTML document.all class]",n5t="[object HTMLCollection]",a5t=typeof Symbol=="function"&&!!Symbol.toStringTag,o5t=!(0 in[,]),OG=function(){return!1};typeof document=="object"&&(D5e=document.all,$8.call(D5e)===$8.call(document.all)&&(OG=function(t){if((o5t||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=$8.call(t);return(r===r5t||r===i5t||r===n5t||r===QTt)&&t("")==null}catch(n){}return!1}));var D5e;F5e.exports=i5?function(t){if(OG(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{i5(t,null,FG)}catch(r){if(r!==J8)return!1}return!qG(t)&&zG(t)}:function(t){if(OG(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(a5t)return zG(t);if(qG(t))return!1;var r=$8.call(t);return r!==e5t&&r!==t5t&&!/^\[object HTML/.test(r)?!1:zG(t)}});var N5e=_e((Dfr,B5e)=>{"use strict";var s5t=q5e(),l5t=Object.prototype.toString,O5e=Object.prototype.hasOwnProperty,u5t=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),h5t(t)?u5t(t,r,i):typeof t=="string"?c5t(t,r,i):f5t(t,r,i)}});var V5e=_e((zfr,U5e)=>{"use strict";U5e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var G5e=_e((Ffr,H5e)=>{"use strict";var BG=V5e(),d5t=typeof globalThis=="undefined"?window:globalThis;H5e.exports=function(){for(var t=[],r=0;r{"use strict";var j5e=O4(),v5t=bG(),n5=JT(),W5e=c2();Z5e.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new n5("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new n5("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n5("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n5("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n5("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n5("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!W5e&&W5e(t,r);if(j5e)j5e(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new v5t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var VG=_e((Ofr,Y5e)=>{"use strict";var UG=O4(),X5e=function(){return!!UG};X5e.hasArrayLengthDefineBug=function(){if(!UG)return null;try{return UG([],"length",{value:1}).length!==1}catch(t){return!0}};Y5e.exports=X5e});var eAe=_e((Bfr,Q5e)=>{"use strict";var p5t=X8(),K5e=NG(),g5t=VG()(),J5e=c2(),$5e=JT(),m5t=p5t("%Math.floor%");Q5e.exports=function(t,r){if(typeof t!="function")throw new $5e("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||m5t(r)!==r)throw new $5e("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&J5e){var o=J5e(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(g5t?K5e(t,"length",r,!0,!0):K5e(t,"length",r)),t}});var rAe=_e((Nfr,tAe)=>{"use strict";var y5t=$T(),_5t=H8(),x5t=AG();tAe.exports=function(){return x5t(y5t,_5t,arguments)}});var V4=_e((Ufr,Q8)=>{"use strict";var b5t=eAe(),iAe=O4(),w5t=G8(),nAe=rAe();Q8.exports=function(t){var r=w5t(arguments),n=t.length-(arguments.length-1);return b5t(r,1+(n>0?n:0),!0)};iAe?iAe(Q8.exports,"apply",{value:nAe}):Q8.exports.apply=nAe});var WG=_e((Vfr,lAe)=>{"use strict";var rR=N5e(),T5t=G5e(),aAe=V4(),GG=h2(),tR=c2(),eR=j8(),A5t=GG("Object.prototype.toString"),sAe=q4()(),oAe=typeof globalThis=="undefined"?window:globalThis,HG=T5t(),jG=GG("String.prototype.slice"),M5t=GG("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:E5t(t)}return tR?S5t(t):null}});var cAe=_e((Hfr,uAe)=>{"use strict";var k5t=WG();uAe.exports=function(t){return!!k5t(t)}});var YG=_e(Nl=>{"use strict";var C5t=b5e(),L5t=R5e(),Hg=WG(),fAe=cAe();function a5(e){return e.call.bind(e)}var hAe=typeof BigInt!="undefined",dAe=typeof Symbol!="undefined",X0=a5(Object.prototype.toString),P5t=a5(Number.prototype.valueOf),I5t=a5(String.prototype.valueOf),R5t=a5(Boolean.prototype.valueOf);hAe&&(vAe=a5(BigInt.prototype.valueOf));var vAe;dAe&&(pAe=a5(Symbol.prototype.valueOf));var pAe;function G4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Nl.isArgumentsObject=C5t;Nl.isGeneratorFunction=L5t;Nl.isTypedArray=fAe;function D5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Nl.isPromise=D5t;function z5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):fAe(e)||mAe(e)}Nl.isArrayBufferView=z5t;function F5t(e){return Hg(e)==="Uint8Array"}Nl.isUint8Array=F5t;function q5t(e){return Hg(e)==="Uint8ClampedArray"}Nl.isUint8ClampedArray=q5t;function O5t(e){return Hg(e)==="Uint16Array"}Nl.isUint16Array=O5t;function B5t(e){return Hg(e)==="Uint32Array"}Nl.isUint32Array=B5t;function N5t(e){return Hg(e)==="Int8Array"}Nl.isInt8Array=N5t;function U5t(e){return Hg(e)==="Int16Array"}Nl.isInt16Array=U5t;function V5t(e){return Hg(e)==="Int32Array"}Nl.isInt32Array=V5t;function H5t(e){return Hg(e)==="Float32Array"}Nl.isFloat32Array=H5t;function G5t(e){return Hg(e)==="Float64Array"}Nl.isFloat64Array=G5t;function j5t(e){return Hg(e)==="BigInt64Array"}Nl.isBigInt64Array=j5t;function W5t(e){return Hg(e)==="BigUint64Array"}Nl.isBigUint64Array=W5t;function nR(e){return X0(e)==="[object Map]"}nR.working=typeof Map!="undefined"&&nR(new Map);function Z5t(e){return typeof Map=="undefined"?!1:nR.working?nR(e):e instanceof Map}Nl.isMap=Z5t;function aR(e){return X0(e)==="[object Set]"}aR.working=typeof Set!="undefined"&&aR(new Set);function X5t(e){return typeof Set=="undefined"?!1:aR.working?aR(e):e instanceof Set}Nl.isSet=X5t;function oR(e){return X0(e)==="[object WeakMap]"}oR.working=typeof WeakMap!="undefined"&&oR(new WeakMap);function Y5t(e){return typeof WeakMap=="undefined"?!1:oR.working?oR(e):e instanceof WeakMap}Nl.isWeakMap=Y5t;function XG(e){return X0(e)==="[object WeakSet]"}XG.working=typeof WeakSet!="undefined"&&XG(new WeakSet);function K5t(e){return XG(e)}Nl.isWeakSet=K5t;function sR(e){return X0(e)==="[object ArrayBuffer]"}sR.working=typeof ArrayBuffer!="undefined"&&sR(new ArrayBuffer);function gAe(e){return typeof ArrayBuffer=="undefined"?!1:sR.working?sR(e):e instanceof ArrayBuffer}Nl.isArrayBuffer=gAe;function lR(e){return X0(e)==="[object DataView]"}lR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lR(new DataView(new ArrayBuffer(1),0,1));function mAe(e){return typeof DataView=="undefined"?!1:lR.working?lR(e):e instanceof DataView}Nl.isDataView=mAe;var ZG=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function H4(e){return X0(e)==="[object SharedArrayBuffer]"}function yAe(e){return typeof ZG=="undefined"?!1:(typeof H4.working=="undefined"&&(H4.working=H4(new ZG)),H4.working?H4(e):e instanceof ZG)}Nl.isSharedArrayBuffer=yAe;function J5t(e){return X0(e)==="[object AsyncFunction]"}Nl.isAsyncFunction=J5t;function $5t(e){return X0(e)==="[object Map Iterator]"}Nl.isMapIterator=$5t;function Q5t(e){return X0(e)==="[object Set Iterator]"}Nl.isSetIterator=Q5t;function eAt(e){return X0(e)==="[object Generator]"}Nl.isGeneratorObject=eAt;function tAt(e){return X0(e)==="[object WebAssembly.Module]"}Nl.isWebAssemblyCompiledModule=tAt;function _Ae(e){return G4(e,P5t)}Nl.isNumberObject=_Ae;function xAe(e){return G4(e,I5t)}Nl.isStringObject=xAe;function bAe(e){return G4(e,R5t)}Nl.isBooleanObject=bAe;function wAe(e){return hAe&&G4(e,vAe)}Nl.isBigIntObject=wAe;function TAe(e){return dAe&&G4(e,pAe)}Nl.isSymbolObject=TAe;function rAt(e){return _Ae(e)||xAe(e)||bAe(e)||wAe(e)||TAe(e)}Nl.isBoxedPrimitive=rAt;function iAt(e){return typeof Uint8Array!="undefined"&&(gAe(e)||yAe(e))}Nl.isAnyArrayBuffer=iAt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Nl,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var KG=_e((jfr,AAe)=>{AAe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var rj=_e(Ul=>{var MAe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ej(t)?r.showHidden=t:t&&Ul._extend(r,t),v2(r.showHidden)&&(r.showHidden=!1),v2(r.depth)&&(r.depth=2),v2(r.colors)&&(r.colors=!1),v2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=aAt),hR(r,e,r.depth)}Ul.inspect=R_;R_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};R_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function aAt(e,t){var r=R_.styles[t];return r?"\x1B["+R_.colors[r][0]+"m"+e+"\x1B["+R_.colors[r][1]+"m":e}function oAt(e,t){return e}function sAt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hR(e,t,r){if(e.customInspect&&t&&fR(t.inspect)&&t.inspect!==Ul.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pR(n)||(n=hR(e,n,r)),n}var i=lAt(e,t);if(i)return i;var a=Object.keys(t),o=sAt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),W4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return JG(t);if(a.length===0){if(fR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(j4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(W4(t))return JG(t)}var l="",u=!1,c=["{","}"];if(EAe(t)&&(u=!0,c=["[","]"]),fR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(j4(t)&&(l=" "+RegExp.prototype.toString.call(t)),dR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),W4(t)&&(l=" "+JG(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return j4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=uAt(e,t,r,o,a):h=a.map(function(d){return QG(e,t,r,o,d,u)}),e.seen.pop(),cAt(h,l,c)}function lAt(e,t){if(v2(t))return e.stylize("undefined","undefined");if(pR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(kAe(t))return e.stylize(""+t,"number");if(ej(t))return e.stylize(""+t,"boolean");if(vR(t))return e.stylize("null","null")}function JG(e){return"["+Error.prototype.toString.call(e)+"]"}function uAt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` +`).map(function(u){return" "+u}).join(` +`).slice(2):s=` +`+s.split(` +`).map(function(u){return" "+u}).join(` +`))):s=e.stylize("[Circular]","special")),v2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function cAt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` + `)+" "+e.join(`, + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Ul.types=YG();function EAe(e){return Array.isArray(e)}Ul.isArray=EAe;function ej(e){return typeof e=="boolean"}Ul.isBoolean=ej;function vR(e){return e===null}Ul.isNull=vR;function fAt(e){return e==null}Ul.isNullOrUndefined=fAt;function kAe(e){return typeof e=="number"}Ul.isNumber=kAe;function pR(e){return typeof e=="string"}Ul.isString=pR;function hAt(e){return typeof e=="symbol"}Ul.isSymbol=hAt;function v2(e){return e===void 0}Ul.isUndefined=v2;function j4(e){return o5(e)&&tj(e)==="[object RegExp]"}Ul.isRegExp=j4;Ul.types.isRegExp=j4;function o5(e){return typeof e=="object"&&e!==null}Ul.isObject=o5;function dR(e){return o5(e)&&tj(e)==="[object Date]"}Ul.isDate=dR;Ul.types.isDate=dR;function W4(e){return o5(e)&&(tj(e)==="[object Error]"||e instanceof Error)}Ul.isError=W4;Ul.types.isNativeError=W4;function fR(e){return typeof e=="function"}Ul.isFunction=fR;function dAt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Ul.isPrimitive=dAt;Ul.isBuffer=KG();function tj(e){return Object.prototype.toString.call(e)}function $G(e){return e<10?"0"+e.toString(10):e.toString(10)}var vAt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pAt(){var e=new Date,t=[$G(e.getHours()),$G(e.getMinutes()),$G(e.getSeconds())].join(":");return[e.getDate(),vAt[e.getMonth()],t].join(" ")}Ul.log=function(){console.log("%s - %s",pAt(),Ul.format.apply(Ul,arguments))};Ul.inherits=Ny();Ul._extend=function(e,t){if(!t||!o5(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function CAe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var d2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Ul.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(d2&&t[d2]){var r=t[d2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,d2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function LAe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PAe(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gR.alloc(0);for(var n=gR.allocUnsafe(r>>>0),i=this.head,a=0;i;)MAt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=gR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:AAt,value:function(r,n){return ij(this,PAe(PAe({},n),{},{depth:0,customInspect:!1}))}}]),e}()});var aj=_e((Xfr,qAe)=>{"use strict";function SAt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(nj,this,e)):process.nextTick(nj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(mR,r):(r._writableState.errorEmitted=!0,process.nextTick(FAe,r,a)):process.nextTick(FAe,r,a):t?(process.nextTick(mR,r),t(a)):process.nextTick(mR,r)}),this)}function FAe(e,t){nj(e,t),mR(e)}function mR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function EAt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function nj(e,t){e.emit("error",t)}function kAt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}qAe.exports={destroy:SAt,undestroy:EAt,errorOrDestroy:kAt}});var p2=_e((Yfr,NAe)=>{"use strict";function CAt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var BAe={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){CAt(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,BAe[e]=i}function OAe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function LAt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function PAt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function IAt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&LAt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(PAt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(OAe(t,"type"));else{var a=IAt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(OAe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");NAe.exports.codes=BAe});var oj=_e((Kfr,UAe)=>{"use strict";var RAt=p2().codes.ERR_INVALID_OPT_VALUE;function DAt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function zAt(e,t,r,n){var i=DAt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new RAt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}UAe.exports={getHighWaterMark:zAt}});var HAe=_e((Jfr,VAe)=>{VAe.exports=FAt;function FAt(e,t){if(sj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(sj("throwDeprecation"))throw new Error(t);sj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function sj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var cj=_e(($fr,YAe)=>{"use strict";YAe.exports=_h;function jAe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){uMt(t,e)}}var s5;_h.WritableState=X4;var qAt={deprecate:HAe()},WAe=cG(),_R=u2().Buffer,OAt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function BAt(e){return _R.from(e)}function NAt(e){return _R.isBuffer(e)||e instanceof OAt}var uj=aj(),UAt=oj(),VAt=UAt.getHighWaterMark,D_=p2().codes,HAt=D_.ERR_INVALID_ARG_TYPE,GAt=D_.ERR_METHOD_NOT_IMPLEMENTED,jAt=D_.ERR_MULTIPLE_CALLBACK,WAt=D_.ERR_STREAM_CANNOT_PIPE,ZAt=D_.ERR_STREAM_DESTROYED,XAt=D_.ERR_STREAM_NULL_VALUES,YAt=D_.ERR_STREAM_WRITE_AFTER_END,KAt=D_.ERR_UNKNOWN_ENCODING,l5=uj.errorOrDestroy;Ny()(_h,WAe);function JAt(){}function X4(e,t,r){s5=s5||g2(),e=e||{},typeof r!="boolean"&&(r=t instanceof s5),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=VAt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){nMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new jAe(this)}X4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(X4.prototype,"buffer",{get:qAt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yR=Function.prototype[Symbol.hasInstance],Object.defineProperty(_h,Symbol.hasInstance,{value:function(t){return yR.call(this,t)?!0:this!==_h?!1:t&&t._writableState instanceof X4}})):yR=function(t){return t instanceof this};function _h(e){s5=s5||g2();var t=this instanceof s5;if(!t&&!yR.call(_h,this))return new _h(e);this._writableState=new X4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),WAe.call(this)}_h.prototype.pipe=function(){l5(this,new WAt)};function $At(e,t){var r=new YAt;l5(e,r),process.nextTick(t,r)}function QAt(e,t,r,n){var i;return r===null?i=new XAt:typeof r!="string"&&!t.objectMode&&(i=new HAt("chunk",["string","Buffer"],r)),i?(l5(e,i),process.nextTick(n,i),!1):!0}_h.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&NAt(e);return a&&!_R.isBuffer(e)&&(e=BAt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=JAt),n.ending?$At(this,r):(a||QAt(this,n,e,r))&&(n.pendingcb++,i=tMt(this,n,a,e,t,r)),i};_h.prototype.cork=function(){this._writableState.corked++};_h.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ZAe(this,e))};_h.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new KAt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(_h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function eMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_R.from(t,r)),t}Object.defineProperty(_h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tMt(e,t,r,n,i,a){if(!r){var o=eMt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var cMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};JAe.exports=Om;var KAe=dj(),hj=cj();Ny()(Om,KAe);for(fj=cMt(hj.prototype),xR=0;xR{var wR=u2(),Vy=wR.Buffer;function $Ae(e,t){for(var r in e)t[r]=e[r]}Vy.from&&Vy.alloc&&Vy.allocUnsafe&&Vy.allocUnsafeSlow?QAe.exports=wR:($Ae(wR,vj),vj.Buffer=u5);function u5(e,t,r){return Vy(e,t,r)}$Ae(Vy,u5);u5.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Vy(e,t,r)};u5.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Vy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};u5.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Vy(e)};u5.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wR.SlowBuffer(e)}});var mj=_e(rMe=>{"use strict";var gj=eMe().Buffer,tMe=gj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function dMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function vMt(e){var t=dMt(e);if(typeof t!="string"&&(gj.isEncoding===tMe||!tMe(e)))throw new Error("Unknown encoding: "+e);return t||e}rMe.StringDecoder=Y4;function Y4(e){this.encoding=vMt(e);var t;switch(this.encoding){case"utf16le":this.text=xMt,this.end=bMt,t=4;break;case"utf8":this.fillLast=mMt,t=4;break;case"base64":this.text=wMt,this.end=TMt,t=3;break;default:this.write=AMt,this.end=MMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=gj.allocUnsafe(t)}Y4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function pMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function gMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function mMt(e){var t=this.lastTotal-this.lastNeed,r=gMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function yMt(e,t){var r=pMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function _Mt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function xMt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function bMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function wMt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function TMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function AMt(e){return e.toString(this.encoding)}function MMt(e){return e&&e.length?this.write(e):""}});var TR=_e((thr,aMe)=>{"use strict";var iMe=p2().codes.ERR_STREAM_PREMATURE_CLOSE;function SMt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AR;function z_(e,t,r){return t=CMt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CMt(e){var t=LMt(e,"string");return typeof t=="symbol"?t:String(t)}function LMt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PMt=TR(),F_=Symbol("lastResolve"),m2=Symbol("lastReject"),K4=Symbol("error"),MR=Symbol("ended"),y2=Symbol("lastPromise"),yj=Symbol("handlePromise"),_2=Symbol("stream");function q_(e,t){return{value:e,done:t}}function IMt(e){var t=e[F_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[F_]=null,e[m2]=null,t(q_(r,!1)))}}function RMt(e){process.nextTick(IMt,e)}function DMt(e,t){return function(r,n){e.then(function(){if(t[MR]){r(q_(void 0,!0));return}t[yj](r,n)},n)}}var zMt=Object.getPrototypeOf(function(){}),FMt=Object.setPrototypeOf((AR={get stream(){return this[_2]},next:function(){var t=this,r=this[K4];if(r!==null)return Promise.reject(r);if(this[MR])return Promise.resolve(q_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[K4]?s(t[K4]):o(q_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(DMt(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(q_(a,!1));i=new Promise(this[yj])}return this[y2]=i,i}},z_(AR,Symbol.asyncIterator,function(){return this}),z_(AR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(q_(void 0,!0))})})}),AR),zMt),qMt=function(t){var r,n=Object.create(FMt,(r={},z_(r,_2,{value:t,writable:!0}),z_(r,F_,{value:null,writable:!0}),z_(r,m2,{value:null,writable:!0}),z_(r,K4,{value:null,writable:!0}),z_(r,MR,{value:t._readableState.endEmitted,writable:!0}),z_(r,yj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[F_]=null,n[m2]=null,a(q_(s,!1))):(n[F_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,PMt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,a(i)),n[K4]=i;return}var o=n[F_];o!==null&&(n[y2]=null,n[F_]=null,n[m2]=null,o(q_(void 0,!0))),n[MR]=!0}),t.on("readable",RMt.bind(null,n)),n};oMe.exports=qMt});var uMe=_e((ihr,lMe)=>{lMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var dj=_e((ahr,_Me)=>{"use strict";_Me.exports=vu;var c5;vu.ReadableState=dMe;var nhr=vb().EventEmitter,hMe=function(t,r){return t.listeners(r).length},$4=cG(),SR=u2().Buffer,OMt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function BMt(e){return SR.from(e)}function NMt(e){return SR.isBuffer(e)||e instanceof OMt}var _j=rj(),Il;_j&&_j.debuglog?Il=_j.debuglog("stream"):Il=function(){};var UMt=zAe(),Sj=aj(),VMt=oj(),HMt=VMt.getHighWaterMark,ER=p2().codes,GMt=ER.ERR_INVALID_ARG_TYPE,jMt=ER.ERR_STREAM_PUSH_AFTER_EOF,WMt=ER.ERR_METHOD_NOT_IMPLEMENTED,ZMt=ER.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,f5,xj,bj;Ny()(vu,$4);var J4=Sj.errorOrDestroy,wj=["error","close","destroy","pause","resume"];function XMt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function dMe(e,t,r){c5=c5||g2(),e=e||{},typeof r!="boolean"&&(r=t instanceof c5),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=HMt(this,e,"readableHighWaterMark",r),this.buffer=new UMt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f5||(f5=mj().StringDecoder),this.decoder=new f5(e.encoding),this.encoding=e.encoding)}function vu(e){if(c5=c5||g2(),!(this instanceof vu))return new vu(e);var t=this instanceof c5;this._readableState=new dMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),$4.call(this)}Object.defineProperty(vu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});vu.prototype.destroy=Sj.destroy;vu.prototype._undestroy=Sj.undestroy;vu.prototype._destroy=function(e,t){t(e)};vu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=SR.from(e,t),t=""),n=!0),vMe(this,e,t,!1,n)};vu.prototype.unshift=function(e){return vMe(this,e,null,!0,!1)};function vMe(e,t,r,n,i){Il("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,JMt(e,a);else{var o;if(i||(o=YMt(a,t)),o)J4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==SR.prototype&&(t=BMt(t)),n)a.endEmitted?J4(e,new ZMt):Tj(e,a,t,!0);else if(a.ended)J4(e,new jMt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Tj(e,a,t,!1):Mj(e,a)):Tj(e,a,t,!1)}else n||(a.reading=!1,Mj(e,a))}return!a.ended&&(a.length=cMe?e=cMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function fMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=KMt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}vu.prototype.read=function(e){Il("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Il("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Aj(this):kR(this),null;if(e=fMe(e,t),e===0&&t.ended)return t.length===0&&Aj(this),null;var n=t.needReadable;Il("need readable",n),(t.length===0||t.length-e0?i=mMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Aj(this)),i!==null&&this.emit("data",i),i};function JMt(e,t){if(Il("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?kR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,pMe(e)))}}function kR(e){var t=e._readableState;Il("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Il("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(pMe,e))}function pMe(e){var t=e._readableState;Il("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Ej(e)}function Mj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick($Mt,e,t))}function $Mt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&yMe(n.pipes,e)!==-1)&&!u&&(Il("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Il("onerror",b),x(),e.removeListener("error",h),hMe(e,"error")===0&&J4(e,b)}XMt(e,"error",h);function d(){e.removeListener("finish",v),x()}e.once("close",d);function v(){Il("onfinish"),e.removeListener("close",d),x()}e.once("finish",v);function x(){Il("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Il("pipe resume"),r.resume()),e};function QMt(e){return function(){var r=e._readableState;Il("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&hMe(e,"data")&&(r.flowing=!0,Ej(e))}}vu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Il("on readable",n.length,n.reading),n.length?kR(this):n.reading||process.nextTick(eSt,this)),r};vu.prototype.addListener=vu.prototype.on;vu.prototype.removeListener=function(e,t){var r=$4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(gMe,this),r};vu.prototype.removeAllListeners=function(e){var t=$4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(gMe,this),t};function gMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function eSt(e){Il("readable nexttick read 0"),e.read(0)}vu.prototype.resume=function(){var e=this._readableState;return e.flowing||(Il("resume"),e.flowing=!e.readableListening,tSt(this,e)),e.paused=!1,this};function tSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(rSt,e,t))}function rSt(e,t){Il("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Ej(e),t.flowing&&!t.reading&&e.read(0)}vu.prototype.pause=function(){return Il("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Il("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ej(e){var t=e._readableState;for(Il("flow",t.flowing);t.flowing&&e.read()!==null;);}vu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Il("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Il("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Aj(e){var t=e._readableState;Il("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(iSt,t,e))}function iSt(e,t){if(Il("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(vu.from=function(e,t){return bj===void 0&&(bj=uMe()),bj(vu,e,t)});function yMe(e,t){for(var r=0,n=e.length;r{"use strict";bMe.exports=Hy;var CR=p2().codes,nSt=CR.ERR_METHOD_NOT_IMPLEMENTED,aSt=CR.ERR_MULTIPLE_CALLBACK,oSt=CR.ERR_TRANSFORM_ALREADY_TRANSFORMING,sSt=CR.ERR_TRANSFORM_WITH_LENGTH_0,LR=g2();Ny()(Hy,LR);function lSt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new aSt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";TMe.exports=Q4;var wMe=kj();Ny()(Q4,wMe);function Q4(e){if(!(this instanceof Q4))return new Q4(e);wMe.call(this,e)}Q4.prototype._transform=function(e,t,r){r(null,e)}});var CMe=_e((lhr,kMe)=>{"use strict";var Cj;function cSt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var EMe=p2().codes,fSt=EMe.ERR_MISSING_ARGS,hSt=EMe.ERR_STREAM_DESTROYED;function MMe(e){if(e)throw e}function dSt(e){return e.setHeader&&typeof e.abort=="function"}function vSt(e,t,r,n){n=cSt(n);var i=!1;e.on("close",function(){i=!0}),Cj===void 0&&(Cj=TR()),Cj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,dSt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new hSt("pipe"))}}}function SMe(e){e()}function pSt(e,t){return e.pipe(t)}function gSt(e){return!e.length||typeof e[e.length-1]!="function"?MMe:e.pop()}function mSt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return vSt(o,l,u,function(c){i||(i=c),c&&a.forEach(SMe),!l&&(a.forEach(SMe),n(i))})});return t.reduce(pSt)}kMe.exports=mSt});var PMe=_e((uhr,LMe)=>{LMe.exports=K0;var Lj=vb().EventEmitter,ySt=Ny();ySt(K0,Lj);K0.Readable=dj();K0.Writable=cj();K0.Duplex=g2();K0.Transform=kj();K0.PassThrough=AMe();K0.finished=TR();K0.pipeline=CMe();K0.Stream=K0;function K0(){Lj.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Lj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var d5=_e(Vl=>{var IMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Dj(t)?r.showHidden=t:t&&Vl._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=xSt),DR(r,e,r.depth)}Vl.inspect=O_;O_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};O_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xSt(e,t){var r=O_.styles[t];return r?"\x1B["+O_.colors[r][0]+"m"+e+"\x1B["+O_.colors[r][1]+"m":e}function bSt(e,t){return e}function wSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function DR(e,t,r){if(e.customInspect&&t&&RR(t.inspect)&&t.inspect!==Vl.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return qR(n)||(n=DR(e,n,r)),n}var i=TSt(e,t);if(i)return i;var a=Object.keys(t),o=wSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),tE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Pj(t);if(a.length===0){if(RR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(eE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(zR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(tE(t))return Pj(t)}var l="",u=!1,c=["{","}"];if(DMe(t)&&(u=!0,c=["[","]"]),RR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(eE(t)&&(l=" "+RegExp.prototype.toString.call(t)),zR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),tE(t)&&(l=" "+Pj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return eE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=ASt(e,t,r,o,a):h=a.map(function(d){return Rj(e,t,r,o,d,u)}),e.seen.pop(),MSt(h,l,c)}function TSt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(qR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(zMe(t))return e.stylize(""+t,"number");if(Dj(t))return e.stylize(""+t,"boolean");if(FR(t))return e.stylize("null","null")}function Pj(e){return"["+Error.prototype.toString.call(e)+"]"}function ASt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` +`).map(function(u){return" "+u}).join(` +`).slice(2):s=` +`+s.split(` +`).map(function(u){return" "+u}).join(` +`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function MSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` + `)+" "+e.join(`, + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Vl.types=YG();function DMe(e){return Array.isArray(e)}Vl.isArray=DMe;function Dj(e){return typeof e=="boolean"}Vl.isBoolean=Dj;function FR(e){return e===null}Vl.isNull=FR;function SSt(e){return e==null}Vl.isNullOrUndefined=SSt;function zMe(e){return typeof e=="number"}Vl.isNumber=zMe;function qR(e){return typeof e=="string"}Vl.isString=qR;function ESt(e){return typeof e=="symbol"}Vl.isSymbol=ESt;function b2(e){return e===void 0}Vl.isUndefined=b2;function eE(e){return h5(e)&&zj(e)==="[object RegExp]"}Vl.isRegExp=eE;Vl.types.isRegExp=eE;function h5(e){return typeof e=="object"&&e!==null}Vl.isObject=h5;function zR(e){return h5(e)&&zj(e)==="[object Date]"}Vl.isDate=zR;Vl.types.isDate=zR;function tE(e){return h5(e)&&(zj(e)==="[object Error]"||e instanceof Error)}Vl.isError=tE;Vl.types.isNativeError=tE;function RR(e){return typeof e=="function"}Vl.isFunction=RR;function kSt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Vl.isPrimitive=kSt;Vl.isBuffer=KG();function zj(e){return Object.prototype.toString.call(e)}function Ij(e){return e<10?"0"+e.toString(10):e.toString(10)}var CSt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function LSt(){var e=new Date,t=[Ij(e.getHours()),Ij(e.getMinutes()),Ij(e.getSeconds())].join(":");return[e.getDate(),CSt[e.getMonth()],t].join(" ")}Vl.log=function(){console.log("%s - %s",LSt(),Vl.format.apply(Vl,arguments))};Vl.inherits=Ny();Vl._extend=function(e,t){if(!t||!h5(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function FMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Vl.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function B_(e){"@babel/helpers - typeof";return B_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B_(e)}function qMe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function VSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function HSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function GSt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}rE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);rE("ERR_INVALID_ARG_TYPE",function(e,t,r){v5===void 0&&(v5=BR()),v5(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&VSt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(HSt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(OMe(t,"type"));else{var a=GSt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(OMe(t,"type"))}return i+=". Received type ".concat(B_(r)),i},TypeError);rE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Fj===void 0&&(Fj=d5());var n=Fj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);rE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(B_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);rE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);NMe.exports.codes=BMe});var KMe=_e((hhr,YMe)=>{"use strict";function UMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function t4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Gg="",iE="",nE="",xv="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},r4t=10;function jMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function aE(e){return Uj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function i4t(e,t,r){var n="",i="",a=0,o="",s=!1,l=aE(e),u=l.split(` +`),c=aE(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Dp(e)==="object"&&Dp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=r4t){if((Dp(e)!=="object"||e===null)&&(Dp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + +`)+"".concat(u[0]," !== ").concat(c[0],` +`)}else if(r!=="strictEqualObject"){var v=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` + `.concat(t4t(" ",f),"^"),f=0)}}}for(var x=u[u.length-1],b=c[c.length-1];x===b&&(f++<2?o=` + `.concat(x).concat(o):n=x,u.pop(),c.pop(),!(u.length===0||c.length===0));)x=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var E=l.split(` +`);if(E.length>30)for(E[26]="".concat(Gg,"...").concat(xv);E.length>27;)E.pop();return"".concat(w2.notIdentical,` + +`).concat(E.join(` +`),` +`)}f>3&&(o=` +`.concat(Gg,"...").concat(xv).concat(o),s=!0),n!==""&&(o=` + `.concat(n).concat(o),n="");var k=0,A=w2[r]+` +`.concat(iE,"+ actual").concat(xv," ").concat(nE,"- expected").concat(xv),L=" ".concat(Gg,"...").concat(xv," Lines skipped");for(f=0;f1&&f>2&&(_>4?(i+=` +`.concat(Gg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(c[f-2]),k++),i+=` + `.concat(c[f-1]),k++),a=f,n+=` +`.concat(nE,"-").concat(xv," ").concat(c[f]),k++;else if(c.length1&&f>2&&(_>4?(i+=` +`.concat(Gg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(u[f-2]),k++),i+=` + `.concat(u[f-1]),k++),a=f,i+=` +`.concat(iE,"+").concat(xv," ").concat(u[f]),k++;else{var C=c[f],S=u[f],g=S!==C&&(!GMe(S,",")||S.slice(0,-1)!==C);g&&GMe(C,",")&&C.slice(0,-1)===S&&(g=!1,S+=","),g?(_>1&&f>2&&(_>4?(i+=` +`.concat(Gg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(u[f-2]),k++),i+=` + `.concat(u[f-1]),k++),a=f,i+=` +`.concat(iE,"+").concat(xv," ").concat(S),n+=` +`.concat(nE,"-").concat(xv," ").concat(C),k+=2):(i+=n,n="",(_===1||f===0)&&(i+=` + `.concat(S),k++))}if(k>20&&f30)for(d[26]="".concat(Gg,"...").concat(xv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` + +`).concat(d.join(` +`),` +`))}else{var v=aE(u),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` + +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(x="".concat(aE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` + +`).concat(v,` + +should equal + +`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(v).concat(x))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(Bj(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=c,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Bj(a),l),a.stack,a.name="AssertionError",ZMe(a)}return ZSt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Uj(this,VMe(VMe({},o),{},{customInspect:!1,depth:0}))}}]),n}(Nj(Error),Uj.custom);YMe.exports=n4t});var Vj=_e((dhr,$Me)=>{"use strict";var JMe=Object.prototype.toString;$Me.exports=function(t){var r=JMe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&JMe.call(t.callee)==="[object Function]"),n}});var sSe=_e((vhr,oSe)=>{"use strict";var aSe;Object.keys||(lE=Object.prototype.hasOwnProperty,Hj=Object.prototype.toString,QMe=Vj(),Gj=Object.prototype.propertyIsEnumerable,eSe=!Gj.call({toString:null},"toString"),tSe=Gj.call(function(){},"prototype"),uE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],UR=function(e){var t=e.constructor;return t&&t.prototype===e},rSe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},iSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!rSe["$"+e]&&lE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{UR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),nSe=function(e){if(typeof window=="undefined"||!iSe)return UR(e);try{return UR(e)}catch(t){return!1}},aSe=function(t){var r=t!==null&&typeof t=="object",n=Hj.call(t)==="[object Function]",i=QMe(t),a=r&&Hj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=tSe&&n;if(a&&t.length>0&&!lE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var a4t=Array.prototype.slice,o4t=Vj(),lSe=Object.keys,VR=lSe?function(t){return lSe(t)}:sSe(),uSe=Object.keys;VR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return o4t(n)?uSe(a4t.call(n)):uSe(n)})}else Object.keys=VR;return Object.keys||VR};cSe.exports=VR});var pSe=_e((ghr,vSe)=>{"use strict";var s4t=jj(),hSe=O8()(),dSe=h2(),HR=B8(),l4t=dSe("Array.prototype.push"),fSe=dSe("Object.prototype.propertyIsEnumerable"),u4t=hSe?HR.getOwnPropertySymbols:null;vSe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=HR(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var Wj=pSe(),c4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var ySe=function(e){return e!==e};_Se.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||ySe(t)&&ySe(r))}});var GR=_e((_hr,xSe)=>{"use strict";var h4t=Zj();xSe.exports=function(){return typeof Object.is=="function"?Object.is:h4t}});var ASe=_e((xhr,TSe)=>{"use strict";var bSe=X8(),wSe=V4(),d4t=wSe(bSe("String.prototype.indexOf"));TSe.exports=function(t,r){var n=bSe(t,!!r);return typeof n=="function"&&d4t(t,".prototype.")>-1?wSe(n):n}});var cE=_e((bhr,kSe)=>{"use strict";var v4t=jj(),p4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",g4t=Object.prototype.toString,m4t=Array.prototype.concat,MSe=NG(),y4t=function(e){return typeof e=="function"&&g4t.call(e)==="[object Function]"},SSe=VG()(),_4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!y4t(n)||!n())return}SSe?MSe(e,t,r,!0):MSe(e,t,r)},ESe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=v4t(t);p4t&&(n=m4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var x4t=GR(),b4t=cE();CSe.exports=function(){var t=x4t();return b4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var DSe=_e((Thr,RSe)=>{"use strict";var w4t=cE(),T4t=V4(),A4t=Zj(),PSe=GR(),M4t=LSe(),ISe=T4t(PSe(),Object);w4t(ISe,{getPolyfill:PSe,implementation:A4t,shim:M4t});RSe.exports=ISe});var Xj=_e((Ahr,zSe)=>{"use strict";zSe.exports=function(t){return t!==t}});var Yj=_e((Mhr,FSe)=>{"use strict";var S4t=Xj();FSe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:S4t}});var OSe=_e((Shr,qSe)=>{"use strict";var E4t=cE(),k4t=Yj();qSe.exports=function(){var t=k4t();return E4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var VSe=_e((Ehr,USe)=>{"use strict";var C4t=V4(),L4t=cE(),P4t=Xj(),BSe=Yj(),I4t=OSe(),NSe=C4t(BSe(),Number);L4t(NSe,{getPolyfill:BSe,implementation:P4t,shim:I4t});USe.exports=NSe});var l4e=_e((khr,s4e)=>{"use strict";function HSe(e,t){return F4t(e)||z4t(e,t)||D4t(e,t)||R4t()}function R4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D4t(e,t){if(e){if(typeof e=="string")return GSe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GSe(e,t)}}function GSe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function ZR(e){return Object.keys(e).filter(j4t).concat(YR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function i4e(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function u4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var pE=1e3,gE=pE*60,mE=gE*60,yE=mE*24,mEt=yE*365.25;E4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return yEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?xEt(e):_Et(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function yEt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*mEt;case"days":case"day":case"d":return r*yE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mE;case"minutes":case"minute":case"mins":case"min":case"m":return r*gE;case"seconds":case"second":case"secs":case"sec":case"s":return r*pE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function _Et(e){return e>=yE?Math.round(e/yE)+"d":e>=mE?Math.round(e/mE)+"h":e>=gE?Math.round(e/gE)+"m":e>=pE?Math.round(e/pE)+"s":e+"ms"}function xEt(e){return iD(e,yE,"day")||iD(e,mE,"hour")||iD(e,gE,"minute")||iD(e,pE,"second")||e+" ms"}function iD(e,t,r){if(!(e{$u=C4e.exports=rW.debug=rW.default=rW;$u.coerce=MEt;$u.disable=TEt;$u.enable=wEt;$u.enabled=AEt;$u.humanize=k4e();$u.names=[];$u.skips=[];$u.formatters={};var tW;function bEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return $u.colors[Math.abs(t)%$u.colors.length]}function rW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(tW||n);r.diff=i,r.prev=tW,r.curr=n,tW=n;for(var a=new Array(arguments.length),o=0;o{lp=I4e.exports=L4e();lp.log=kEt;lp.formatArgs=EEt;lp.save=CEt;lp.load=P4e;lp.useColors=SEt;lp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:LEt();lp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function SEt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}lp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function EEt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+lp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function kEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function CEt(e){try{e==null?lp.storage.removeItem("debug"):lp.storage.debug=e}catch(t){}}function P4e(){var e;try{e=lp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}lp.enable(P4e());function LEt(){try{return window.localStorage}catch(e){}}});var U4e=_e((Phr,N4e)=>{var g5=BR(),H_=R4e()("stream-parser");N4e.exports=IEt;var z4e=-1,nD=0,PEt=1,F4e=2;function IEt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");H_("extending Parser into stream"),e._bytes=REt,e._skipBytes=DEt,t&&(e._passthrough=zEt),t?e._transform=qEt:e._write=FEt}function _E(e){H_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=z4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function REt(e,t){g5(!this._parserCallback,'there is already a "callback" set!'),g5(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||_E(this),H_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=nD}function DEt(e,t){g5(!this._parserCallback,'there is already a "callback" set!'),g5(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||_E(this),H_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=PEt}function zEt(e,t){g5(!this._parserCallback,'There is already a "callback" set!'),g5(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||_E(this),H_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=F4e}function FEt(e,t,r){this._parserInit||_E(this),H_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),O4e(this,e,null,r)}function qEt(e,t,r){this._parserInit||_E(this),H_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),O4e(this,e,t,r)}function q4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return D4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return D4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return q4e(e,t.slice(i.length),r,n)}})}}function D4e(e,t,r,n){if(e._parserBytesLeft-=t.length,H_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===nD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===F4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===nD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==nD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=z4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(B4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var O4e=B4e(q4e);function B4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var Eu=_e(Gy=>{"use strict";var V4e=PMe().Transform,OEt=U4e();function xE(){V4e.call(this,{readableObjectMode:!0})}xE.prototype=Object.create(V4e.prototype);xE.prototype.constructor=xE;OEt(xE.prototype);Gy.ParserStream=xE;Gy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var m5=Eu().readUInt16BE,nW=Eu().readUInt32BE;function bE(e,t){if(e.length<4+t)return null;var r=nW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=m5(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}oD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(HEt(e,t),!!t.sizes.length){var r=GEt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function sD(e,t){var r=new Error(e);return r.code=t,r}function jEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw sD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw sD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw sD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};jy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw sD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};aW.exports.ExifParser=jy;aW.exports.get_orientation=function(e){var t=0;try{return new jy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var j4e=_e((zhr,G4e)=>{"use strict";var WEt=Eu().str2arr,ZEt=Eu().sliceEq,XEt=Eu().readUInt32BE,uD=H4e(),YEt=lD(),KEt=WEt("ftyp");G4e.exports=function(e){if(ZEt(e,4,KEt)){var t=uD.unbox(e,0);if(t){var r=uD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=uD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=uD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=XEt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=YEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var X4e=_e((Fhr,Z4e)=>{"use strict";var JEt=Eu().str2arr,$Et=Eu().sliceEq,W4e=Eu().readUInt16LE,QEt=JEt("BM");Z4e.exports=function(e){if(!(e.length<26)&&$Et(e,0,QEt))return{width:W4e(e,18),height:W4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Q4e=_e((qhr,$4e)=>{"use strict";var J4e=Eu().str2arr,Y4e=Eu().sliceEq,K4e=Eu().readUInt16LE,ekt=J4e("GIF87a"),tkt=J4e("GIF89a");$4e.exports=function(e){if(!(e.length<10)&&!(!Y4e(e,0,ekt)&&!Y4e(e,0,tkt)))return{width:K4e(e,6),height:K4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var rEe=_e((Ohr,tEe)=>{"use strict";var oW=Eu().readUInt16LE,rkt=0,ikt=1,eEe=16;tEe.exports=function(e){var t=oW(e,0),r=oW(e,2),n=oW(e,4);if(!(t!==rkt||r!==ikt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var nEe=_e((Bhr,iEe)=>{"use strict";var sW=Eu().readUInt16BE,nkt=Eu().str2arr,akt=Eu().sliceEq,okt=lD(),skt=nkt("Exif\0\0");iEe.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=sW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&akt(e,t,skt)&&(i=okt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var uEe=_e((Nhr,lEe)=>{"use strict";var sEe=Eu().str2arr,aEe=Eu().sliceEq,oEe=Eu().readUInt32BE,lkt=sEe(`\x89PNG\r + +`),ukt=sEe("IHDR");lEe.exports=function(e){if(!(e.length<24)&&aEe(e,0,lkt)&&aEe(e,12,ukt))return{width:oEe(e,16),height:oEe(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var hEe=_e((Uhr,fEe)=>{"use strict";var ckt=Eu().str2arr,fkt=Eu().sliceEq,cEe=Eu().readUInt32BE,hkt=ckt("8BPS\0");fEe.exports=function(e){if(!(e.length<22)&&fkt(e,0,hkt))return{width:cEe(e,18),height:cEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var pEe=_e((Vhr,vEe)=>{"use strict";function dkt(e){return e===32||e===9||e===13||e===10}function y5(e){return typeof e=="number"&&isFinite(e)&&e>0}function vkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,gkt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,mkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,ykt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,_kt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,dEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function xkt(e){var t=e.match(mkt),r=e.match(ykt),n=e.match(_kt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Bm(e){return dEe.test(e)?e.match(dEe)[0]:"px"}vEe.exports=function(e){if(vkt(e)){for(var t="",r=0;r{"use strict";var yEe=Eu().str2arr,gEe=Eu().sliceEq,bkt=Eu().readUInt16LE,wkt=Eu().readUInt16BE,Tkt=Eu().readUInt32LE,Akt=Eu().readUInt32BE,Mkt=yEe("II*\0"),Skt=yEe("MM\0*");function cD(e,t,r){return r?wkt(e,t):bkt(e,t)}function lW(e,t,r){return r?Akt(e,t):Tkt(e,t)}function mEe(e,t,r){var n=cD(e,t+2,r),i=lW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?cD(e,t+8,r):lW(e,t+8,r)}_Ee.exports=function(e){if(!(e.length<8)&&!(!gEe(e,0,Mkt)&&!gEe(e,0,Skt))){var t=e[0]===77,r=lW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=cD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var TEe=Eu().str2arr,bEe=Eu().sliceEq,wEe=Eu().readUInt16LE,uW=Eu().readUInt32LE,Ekt=lD(),kkt=TEe("RIFF"),Ckt=TEe("WEBP");function Lkt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:wEe(e,t+6)&16383,height:wEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function Pkt(e,t){if(e[t]===47){var r=uW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function Ikt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||Lkt(e,t+8):a==="VP8L"&&o>=9?r=r||Pkt(e,t+8):a==="VP8X"&&o>=10?r=r||Ikt(e,t+8):a==="EXIF"&&(n=Ekt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var EEe=_e((jhr,SEe)=>{"use strict";SEe.exports={avif:j4e(),bmp:X4e(),gif:Q4e(),ico:rEe(),jpeg:nEe(),png:uEe(),psd:hEe(),svg:pEe(),tiff:xEe(),webp:MEe()}});var kEe=_e((Whr,fW)=>{"use strict";var cW=EEe();function Rkt(e){for(var t=Object.keys(cW),r=0;r{"use strict";var Dkt=kEe(),zkt=Cy().IMAGE_URL_PREFIX,Fkt=u2().Buffer;CEe.getImageSize=function(e){var t=e.replace(zkt,""),r=new Fkt(t,"base64");return Dkt(r)}});var REe=_e((Xhr,IEe)=>{"use strict";var PEe=Mr(),qkt=jT(),Okt=ao(),fD=Ka(),Bkt=Mr().maxRowLength,Nkt=LEe().getImageSize;IEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=Bkt(r.z);else if(r._hasSource){var a=Nkt(r.source);n=a.height,i=a.width}var o=fD.getFromId(t,r.xaxis||"x"),s=fD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var Gkt=ya(),T2=Mr(),DEe=T2.strTranslate,jkt=Zp(),Wkt=jT(),Zkt=$V(),Xkt=a8().STYLE;zEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&Zkt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=Gkt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,x=c.y0,b=c.w,p=c.h,E=f.dx,k=f.dy,A,L,_,C,S,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*E),g--;for(g=0;C===void 0&&g0;)S=o.c2p(x+g*k),g--;if(LZ[0];if(ie||ae){var we=A+T/2,Ee=C+F/2;G+="transform:"+DEe(we+"px",Ee+"px")+"scale("+(ie?-1:1)+","+(ae?-1:1)+")"+DEe(-we+"px",-Ee+"px")+";"}}X.attr("style",G);var ke=new Promise(function(ye){if(f._hasZ)ye();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)ye();else{var K=document.createElement("canvas");K.width=b,K.height=p;var ce=K.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var pe=f._image;pe.onload=function(){ce.drawImage(pe,0,0),f._canvas={el:K,source:f.source},ye()},pe.setAttribute("src",f.source)}}).then(function(){var ye,K;if(f._hasZ)K=H(function(xe,Ce){var Me=d[Ce][xe];return T2.isTypedArray(Me)&&(Me=Array.from(Me)),Me}),ye=K.toDataURL("image/png");else if(f._hasSource)if(h)ye=f.source;else{var ce=f._canvas.el.getContext("2d",{willReadFrequently:!0}),pe=ce.getImageData(0,0,b,p).data;K=H(function(xe,Ce){var Me=4*(Ce*b+xe);return[pe[Me],pe[Me+1],pe[Me+2],pe[Me+3]]}),ye=K.toDataURL("image/png")}X.attr({"xlink:href":ye,height:F,width:T,x:A,y:C})});t._promises.push(ke)})}});var OEe=_e((Khr,qEe)=>{"use strict";var Ykt=ya();qEe.exports=function(t){Ykt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var VEe=_e((Jhr,UEe)=>{"use strict";var BEe=Nc(),NEe=Mr(),hD=NEe.isArrayOrTypedArray,Kkt=jT();UEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(BEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||BEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=Kkt.colormodel[a.colormodel],x=v.colormodel||a.colormodel,b=x.length,p=a._scaler(c),E=v.suffix,k=[];(a.hovertemplate||h)&&(k.push("["+[p[0]+E[0],p[1]+E[1],p[2]+E[2]].join(", ")),b===4&&k.push(", "+p[3]+E[3]),k.push("]"),k=k.join(""),t.extraText=x.toUpperCase()+": "+k);var A;hD(a.hovertext)&&hD(a.hovertext[u])?A=a.hovertext[u][l]:hD(a.text)&&hD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),_=i.x0+(l+.5)*a.dx,C=i.y0+(u+.5)*a.dy,S="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[NEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:_,xLabelVal:_,yVal:C,yLabelVal:C,zLabelVal:S,text:A,hovertemplateLabels:{zLabel:S,colorLabel:k,"color[0]Label":p[0]+E[0],"color[1]Label":p[1]+E[1],"color[2]Label":p[2]+E[2],"color[3]Label":p[3]+E[3]}})]}}}});var GEe=_e(($hr,HEe)=>{"use strict";HEe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var WEe=_e((Qhr,jEe)=>{"use strict";jEe.exports={attributes:lG(),supplyDefaults:z3e(),calc:REe(),plot:FEe(),style:OEe(),hoverPoints:VEe(),eventData:GEe(),moduleType:"trace",name:"image",basePlotModule:Jf(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var XEe=_e((edr,ZEe)=>{"use strict";ZEe.exports=WEe()});var A2=_e((tdr,YEe)=>{"use strict";var Jkt=vl(),$kt=Ju().attributes,Qkt=Mu(),eCt=dh(),tCt=Ho().hovertemplateAttrs,rCt=Ho().texttemplateAttrs,wE=to().extendFlat,iCt=Ed().pattern,dD=Qkt({editType:"plot",arrayOk:!0,colorEditType:"plot"});YEe.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:eCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:iCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:wE({},Jkt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:tCt({},{keys:["label","color","value","percent","text"]}),texttemplate:rCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:wE({},dD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:wE({},dD,{}),outsidetextfont:wE({},dD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:wE({},dD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:$kt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var M2=_e((rdr,$Ee)=>{"use strict";var nCt=ao(),TE=Mr(),aCt=A2(),oCt=Ju().defaults,sCt=r0().handleText,lCt=Mr().coercePattern;function KEe(e,t){var r=TE.isArrayOrTypedArray(e),n=TE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function JEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");lCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function uCt(e,t,r,n){function i(E,k){return TE.coerce(e,t,aCt,E,k)}var a=i("labels"),o=i("values"),s=KEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,JEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",TE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");sCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");oCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var p=i("title.position",x?"middle center":"top center");!x&&p==="middle center"&&(t.title.position="top center"),TE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}$Ee.exports={handleLabelsAndValues:KEe,handleMarkerDefaults:JEe,supplyDefaults:uCt}});var vD=_e((idr,QEe)=>{"use strict";QEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var tke=_e((ndr,eke)=>{"use strict";var cCt=Mr(),fCt=vD();eke.exports=function(t,r){function n(i,a){return cCt.coerce(t,r,fCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _5=_e((adr,nke)=>{"use strict";var hCt=ao(),hW=id(),dCt=ha(),vCt={};function pCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var A=t.type==="funnelarea"?x:t.sort;return A&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=v),r}function rke(e){return function(r,n){return!r||(r=hW(r),!r.isValid())?!1:(r=dCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function gCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=ike(a,vCt));for(var s=0,l=0;l{"use strict";var mCt=rp().appendArrayMultiPointValues;ake.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),mCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var yD=_e((sdr,Eke)=>{"use strict";var zp=ya(),yCt=Xu(),pD=Nc(),hke=ha(),Wy=ro(),ev=Mr(),_Ct=ev.strScale,ske=ev.strTranslate,dW=Pl(),dke=_v(),xCt=dke.recordMinTextSize,bCt=dke.clearMinTextSize,vke=Qb().TEXTPAD,Go=u_(),gD=oke(),lke=Mr().isValidTextValue;function wCt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;bCt("pie",n),mke(t,e),Ake(t,i);var a=ev.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=zp.select(this),l=o[0],u=l.trace;PCt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=zp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){zp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var _=l.cx,C=l.cy,S=zp.select(this),g=S.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(pke,e,o),u.pull){var P=+Go.castOption(u.pull,A.pts)||0;P>0&&(_+=P*A.pxmid[0],C+=P*A.pxmid[1])}A.cxFinal=_,A.cyFinal=C;function T(N,Z,ie,ae){var we=ae*(Z[0]-N[0]),Ee=ae*(Z[1]-N[1]);return"a"+ae*l.r+","+ae*l.r+" 0 "+A.largeArc+(ie?" 1 ":" 0 ")+we+","+Ee}var F=u.hole;if(A.v===l.vTotal){var q="M"+(_+A.px0[0])+","+(C+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";F?g.attr("d","M"+(_+F*A.px0[0])+","+(C+F*A.px0[1])+T(A.px0,A.pxmid,!1,F)+T(A.pxmid,A.px0,!1,F)+"Z"+q):g.attr("d",q)}else{var V=T(A.px0,A.px1,!0,1);if(F){var H=1-F;g.attr("d","M"+(_+F*A.px1[0])+","+(C+F*A.px1[1])+T(A.px1,A.px0,!1,F)+"l"+H*A.px0[0]+","+H*A.px0[1]+V+"Z")}else g.attr("d","M"+_+","+C+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}Mke(e,A,l);var X=Go.castOption(u.textposition,A.pts),G=S.selectAll("g.slicetext").data(A.text&&X!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var N=ev.ensureSingle(zp.select(this),"text","",function(K){K.attr("data-notex",1)}),Z=ev.ensureUniformFontSize(e,X==="outside"?ACt(u,A,n.font):gke(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,Z).call(dW.convertToTspans,e);var ie=Wy.bBox(N.node()),ae;if(X==="outside")ae=fke(ie,A);else if(ae=yke(ie,A,l),X==="auto"&&ae.scale<1){var we=ev.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,we),ie=Wy.bBox(N.node()),ae=fke(ie,A)}var Ee=ae.textPosAngle,ke=Ee===void 0?A.pxmid:mD(l.r,Ee);if(ae.targetX=_+ke[0]*ae.rCenter+(ae.x||0),ae.targetY=C+ke[1]*ae.rCenter+(ae.y||0),Ske(ae,ie),ae.outside){var ye=ae.targetY;A.yLabelMin=ye-ie.height/2,A.yLabelMid=ye,A.yLabelMax=ye+ie.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}ae.fontSize=Z.size,xCt(u.type,ae,n),o[L].transform=ae,ev.setTransormAndDisplay(N,ae)})});var d=zp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=ev.ensureSingle(zp.select(this),"text","",function(C){C.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=ev.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(dW.convertToTspans,e);var _;u.title.position==="middle center"?_=ECt(l):_=wke(l,i),A.attr("transform",ske(_.x,_.y)+_Ct(Math.min(1,_.scale))+ske(_.tx,_.ty))}),h&&CCt(f,u),TCt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),x=u.domain,b=i.w*(x.x[1]-x.x[0]),p=i.h*(x.y[1]-x.y[0]),E=(.5*b-l.r)/i.w,k=(.5*p-l.r)/i.h;yCt.autoMargin(e,"pie."+u.uid+".automargin",{xl:x.x[0]-E,xr:x.x[1]+E,yb:x.y[0]-k,yt:x.y[1]+k,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=zp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function TCt(e,t){e.each(function(r){var n=zp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,ev.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;ev.ensureSingle(n,"path","textline").call(hke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function pke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=pD.castHoverinfo({hoverinfo:[Go.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),x=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=Go.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;ev.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=Go.formatPieValue(l.v,x),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=Go.formatPiePercent(l.percent,x),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var E=c.hoverlabel,k=E.font,A=[];pD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:Go.castOption(E.bgcolor,l.pts)||l.color,borderColor:Go.castOption(E.bordercolor,l.pts),fontFamily:Go.castOption(k.family,l.pts),fontSize:Go.castOption(k.size,l.pts),fontColor:Go.castOption(k.color,l.pts),nameLength:Go.castOption(E.namelength,l.pts),textAlign:Go.castOption(E.align,l.pts),hovertemplate:Go.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[gD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[gD(l,c)],event:zp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=zp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=zp.event,t.emit("plotly_unhover",{points:[gD(f,c)],event:zp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(pD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[gD(l,c)],pD.click(t,zp.event))})}function ACt(e,t,r){var n=Go.castOption(e.outsidetextfont.color,t.pts)||Go.castOption(e.textfont.color,t.pts)||r.color,i=Go.castOption(e.outsidetextfont.family,t.pts)||Go.castOption(e.textfont.family,t.pts)||r.family,a=Go.castOption(e.outsidetextfont.size,t.pts)||Go.castOption(e.textfont.size,t.pts)||r.size,o=Go.castOption(e.outsidetextfont.weight,t.pts)||Go.castOption(e.textfont.weight,t.pts)||r.weight,s=Go.castOption(e.outsidetextfont.style,t.pts)||Go.castOption(e.textfont.style,t.pts)||r.style,l=Go.castOption(e.outsidetextfont.variant,t.pts)||Go.castOption(e.textfont.variant,t.pts)||r.variant,u=Go.castOption(e.outsidetextfont.textcase,t.pts)||Go.castOption(e.textfont.textcase,t.pts)||r.textcase,c=Go.castOption(e.outsidetextfont.lineposition,t.pts)||Go.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=Go.castOption(e.outsidetextfont.shadow,t.pts)||Go.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function gke(e,t,r){var n=Go.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Go.castOption(e._input.textfont.color,t.pts));var i=Go.castOption(e.insidetextfont.family,t.pts)||Go.castOption(e.textfont.family,t.pts)||r.family,a=Go.castOption(e.insidetextfont.size,t.pts)||Go.castOption(e.textfont.size,t.pts)||r.size,o=Go.castOption(e.insidetextfont.weight,t.pts)||Go.castOption(e.textfont.weight,t.pts)||r.weight,s=Go.castOption(e.insidetextfont.style,t.pts)||Go.castOption(e.textfont.style,t.pts)||r.style,l=Go.castOption(e.insidetextfont.variant,t.pts)||Go.castOption(e.textfont.variant,t.pts)||r.variant,u=Go.castOption(e.insidetextfont.textcase,t.pts)||Go.castOption(e.textfont.textcase,t.pts)||r.textcase,c=Go.castOption(e.insidetextfont.lineposition,t.pts)||Go.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=Go.castOption(e.insidetextfont.shadow,t.pts)||Go.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||hke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function mke(e,t){for(var r,n,i=0;i=-4;E-=2)p(Math.PI*E,"tan");for(E=4;E>=-4;E-=2)p(Math.PI*(E+1),"tan")}if(f||d){for(E=4;E>=-4;E-=2)p(Math.PI*(E+1.5),"rad");for(E=4;E>=-4;E-=2)p(Math.PI*(E+.5),"rad")}}if(s||v||f){var k=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/k,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(v||d)&&(b=uke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(v||h)&&(b=cke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var A=0,L=0,_=0;_=1)break}return x[A]}function MCt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function ECt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function wke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Tke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=kCt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=vW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function kCt(e,t){return e/(t===void 0?1:t)}function vW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Tke(e){var t=e.pull;if(!t)return 0;var r;if(ev.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function CCt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function x(k,A){return k.pxmid[1]-A.pxmid[1]}function b(k,A){return A.pxmid[1]-k.pxmid[1]}function p(k,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),_=n?k.yLabelMin:k.yLabelMax,C=n?k.yLabelMax:k.yLabelMin,S=k.cyFinal+o(k.px0[1],k.px1[1]),g=L-_,P,T,F,q,V,H;if(g*l>0&&(k.labelExtraY=g),!!ev.isArrayOrTypedArray(t.pull))for(T=0;T=(Go.castOption(t.pull,F.pts)||0))&&((k.pxmid[1]-F.pxmid[1])*l>0?(q=F.cyFinal+o(F.px0[1],F.px1[1]),g=q-_-k.labelExtraY,g*l>0&&(k.labelExtraY+=g)):(C+k.labelExtraY-S)*l>0&&(P=3*s*Math.abs(T-f.indexOf(k)),V=F.cxFinal+a(F.px0[0],F.px1[0]),H=V+P-(k.cxFinal+k.pxmid[0])-k.labelExtraX,H*s>0&&(k.labelExtraX+=H)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=SCt(u,t))}function mD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Mke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var x=Go.getFirstFilled(i.text,t.pts);lke(x)&&v.push(x)}f&&v.push(Go.formatPieValue(t.v,d)),h&&v.push(Go.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:Go.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:Go.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:ev.castOption(i,A.i,"customdata")}}if(a){var p=ev.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var E=b(t),k=Go.getFirstFilled(i.text,t.pts);(lke(k)||k==="")&&(E.text=k),t.text=ev.texttemplateString(p,E,e._fullLayout._d3locale,E,i._meta||{})}}}function Ske(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}Eke.exports={plot:wCt,formatSliceLabel:Mke,transformInsideText:yke,determineInsideTextFont:gke,positionTitleOutside:wke,prerenderTitles:mke,layoutAreas:Ake,attachFxHandlers:pke,computeTransform:Ske}});var Lke=_e((ldr,Cke)=>{"use strict";var kke=ya(),ICt=z3(),RCt=_v().resizeText;Cke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");RCt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=kke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){kke.select(this).call(ICt,s,a,t)})})}});var Ike=_e(x5=>{"use strict";var Pke=Xu();x5.name="pie";x5.plot=function(e,t,r,n){Pke.plotBasePlot(x5.name,e,t,r,n)};x5.clean=function(e,t,r,n){Pke.cleanBasePlot(x5.name,e,t,r,n)}});var Dke=_e((cdr,Rke)=>{"use strict";Rke.exports={attributes:A2(),supplyDefaults:M2().supplyDefaults,supplyLayoutDefaults:tke(),layoutAttributes:vD(),calc:_5().calc,crossTraceCalc:_5().crossTraceCalc,plot:yD().plot,style:Lke(),styleOne:z3(),moduleType:"trace",name:"pie",basePlotModule:Ike(),categories:["pie-like","pie","showLegend"],meta:{}}});var Fke=_e((fdr,zke)=>{"use strict";zke.exports=Dke()});var Oke=_e(b5=>{"use strict";var qke=Xu();b5.name="sunburst";b5.plot=function(e,t,r,n){qke.plotBasePlot(b5.name,e,t,r,n)};b5.clean=function(e,t,r,n){qke.cleanBasePlot(b5.name,e,t,r,n)}});var pW=_e((ddr,Bke)=>{"use strict";Bke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var ME=_e((vdr,Uke)=>{"use strict";var DCt=vl(),zCt=Ho().hovertemplateAttrs,FCt=Ho().texttemplateAttrs,qCt=Jl(),OCt=Ju().attributes,Zy=A2(),Nke=pW(),AE=to().extendFlat,BCt=Ed().pattern;Uke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:AE({colors:{valType:"data_array",editType:"calc"},line:{color:AE({},Zy.marker.line.color,{dflt:null}),width:AE({},Zy.marker.line.width,{dflt:1}),editType:"calc"},pattern:BCt,editType:"calc"},qCt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Zy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:FCt({editType:"plot"},{keys:Nke.eventDataKeys.concat(["label","value"])}),hovertext:Zy.hovertext,hoverinfo:AE({},DCt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:zCt({},{keys:Nke.eventDataKeys}),textfont:Zy.textfont,insidetextorientation:Zy.insidetextorientation,insidetextfont:Zy.insidetextfont,outsidetextfont:AE({},Zy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Zy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:OCt({name:"sunburst",trace:!0,editType:"calc"})}});var gW=_e((pdr,Vke)=>{"use strict";Vke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Wke=_e((gdr,jke)=>{"use strict";var Hke=Mr(),NCt=ME(),UCt=Ju().defaults,VCt=r0().handleText,HCt=M2().handleMarkerDefaults,Gke=Su(),GCt=Gke.hasColorscale,jCt=Gke.handleDefaults;jke.exports=function(t,r,n,i){function a(h,d){return Hke.coerce(t,r,NCt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),HCt(t,r,i,a);var u=r._hasColorscale=GCt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&jCt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",Hke.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";VCt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),UCt(r,i,a),r._length=null}});var Xke=_e((mdr,Zke)=>{"use strict";var WCt=Mr(),ZCt=gW();Zke.exports=function(t,r){function n(i,a){return WCt.coerce(t,r,ZCt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var SE=_e((_D,Yke)=>{(function(e,t){typeof _D=="object"&&typeof Yke!="undefined"?t(_D):(e=e||self,t(e.d3=e.d3||{}))})(_D,function(e){"use strict";function t(Ze,Je){return Ze.parent===Je.parent?1:2}function r(Ze){return Ze.reduce(n,0)/Ze.length}function n(Ze,Je){return Ze+Je.x}function i(Ze){return 1+Ze.reduce(a,0)}function a(Ze,Je){return Math.max(Ze,Je.y)}function o(Ze){for(var Je;Je=Ze.children;)Ze=Je[0];return Ze}function s(Ze){for(var Je;Je=Ze.children;)Ze=Je[Je.length-1];return Ze}function l(){var Ze=t,Je=1,ht=1,Ie=!1;function le(be){var Qe,xt=0;be.eachAfter(function(Gr){var ri=Gr.children;ri?(Gr.x=r(ri),Gr.y=i(ri)):(Gr.x=Qe?xt+=Ze(Gr,Qe):0,Gr.y=0,Qe=Gr)});var Ot=o(be),rr=s(be),Jr=Ot.x-Ze(Ot,rr)/2,ni=rr.x+Ze(rr,Ot)/2;return be.eachAfter(Ie?function(Gr){Gr.x=(Gr.x-be.x)*Je,Gr.y=(be.y-Gr.y)*ht}:function(Gr){Gr.x=(Gr.x-Jr)/(ni-Jr)*Je,Gr.y=(1-(be.y?Gr.y/be.y:1))*ht})}return le.separation=function(be){return arguments.length?(Ze=be,le):Ze},le.size=function(be){return arguments.length?(Ie=!1,Je=+be[0],ht=+be[1],le):Ie?null:[Je,ht]},le.nodeSize=function(be){return arguments.length?(Ie=!0,Je=+be[0],ht=+be[1],le):Ie?[Je,ht]:null},le}function u(Ze){var Je=0,ht=Ze.children,Ie=ht&&ht.length;if(!Ie)Je=1;else for(;--Ie>=0;)Je+=ht[Ie].value;Ze.value=Je}function c(){return this.eachAfter(u)}function f(Ze){var Je=this,ht,Ie=[Je],le,be,Qe;do for(ht=Ie.reverse(),Ie=[];Je=ht.pop();)if(Ze(Je),le=Je.children,le)for(be=0,Qe=le.length;be=0;--le)ht.push(Ie[le]);return this}function d(Ze){for(var Je=this,ht=[Je],Ie=[],le,be,Qe;Je=ht.pop();)if(Ie.push(Je),le=Je.children,le)for(be=0,Qe=le.length;be=0;)ht+=Ie[le].value;Je.value=ht})}function x(Ze){return this.eachBefore(function(Je){Je.children&&Je.children.sort(Ze)})}function b(Ze){for(var Je=this,ht=p(Je,Ze),Ie=[Je];Je!==ht;)Je=Je.parent,Ie.push(Je);for(var le=Ie.length;Ze!==ht;)Ie.splice(le,0,Ze),Ze=Ze.parent;return Ie}function p(Ze,Je){if(Ze===Je)return Ze;var ht=Ze.ancestors(),Ie=Je.ancestors(),le=null;for(Ze=ht.pop(),Je=Ie.pop();Ze===Je;)le=Ze,Ze=ht.pop(),Je=Ie.pop();return le}function E(){for(var Ze=this,Je=[Ze];Ze=Ze.parent;)Je.push(Ze);return Je}function k(){var Ze=[];return this.each(function(Je){Ze.push(Je)}),Ze}function A(){var Ze=[];return this.eachBefore(function(Je){Je.children||Ze.push(Je)}),Ze}function L(){var Ze=this,Je=[];return Ze.each(function(ht){ht!==Ze&&Je.push({source:ht.parent,target:ht})}),Je}function _(Ze,Je){var ht=new T(Ze),Ie=+Ze.value&&(ht.value=Ze.value),le,be=[ht],Qe,xt,Ot,rr;for(Je==null&&(Je=S);le=be.pop();)if(Ie&&(le.value=+le.data.value),(xt=Je(le.data))&&(rr=xt.length))for(le.children=new Array(rr),Ot=rr-1;Ot>=0;--Ot)be.push(Qe=le.children[Ot]=new T(xt[Ot])),Qe.parent=le,Qe.depth=le.depth+1;return ht.eachBefore(P)}function C(){return _(this).eachBefore(g)}function S(Ze){return Ze.children}function g(Ze){Ze.data=Ze.data.data}function P(Ze){var Je=0;do Ze.height=Je;while((Ze=Ze.parent)&&Ze.height<++Je)}function T(Ze){this.data=Ze,this.depth=this.height=0,this.parent=null}T.prototype=_.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:x,path:b,ancestors:E,descendants:k,leaves:A,links:L,copy:C};var F=Array.prototype.slice;function q(Ze){for(var Je=Ze.length,ht,Ie;Je;)Ie=Math.random()*Je--|0,ht=Ze[Je],Ze[Je]=Ze[Ie],Ze[Ie]=ht;return Ze}function V(Ze){for(var Je=0,ht=(Ze=q(F.call(Ze))).length,Ie=[],le,be;Je0&&ht*ht>Ie*Ie+le*le}function N(Ze,Je){for(var ht=0;htOt?(le=(rr+Ot-be)/(2*rr),xt=Math.sqrt(Math.max(0,Ot/rr-le*le)),ht.x=Ze.x-le*Ie-xt*Qe,ht.y=Ze.y-le*Qe+xt*Ie):(le=(rr+be-Ot)/(2*rr),xt=Math.sqrt(Math.max(0,be/rr-le*le)),ht.x=Je.x+le*Ie-xt*Qe,ht.y=Je.y+le*Qe+xt*Ie)):(ht.x=Je.x+ht.r,ht.y=Je.y)}function ke(Ze,Je){var ht=Ze.r+Je.r-1e-6,Ie=Je.x-Ze.x,le=Je.y-Ze.y;return ht>0&&ht*ht>Ie*Ie+le*le}function ye(Ze){var Je=Ze._,ht=Ze.next._,Ie=Je.r+ht.r,le=(Je.x*ht.r+ht.x*Je.r)/Ie,be=(Je.y*ht.r+ht.y*Je.r)/Ie;return le*le+be*be}function K(Ze){this._=Ze,this.next=null,this.previous=null}function ce(Ze){if(!(le=Ze.length))return 0;var Je,ht,Ie,le,be,Qe,xt,Ot,rr,Jr,ni;if(Je=Ze[0],Je.x=0,Je.y=0,!(le>1))return Je.r;if(ht=Ze[1],Je.x=-ht.r,ht.x=Je.r,ht.y=0,!(le>2))return Je.r+ht.r;Ee(ht,Je,Ie=Ze[2]),Je=new K(Je),ht=new K(ht),Ie=new K(Ie),Je.next=Ie.previous=ht,ht.next=Je.previous=Ie,Ie.next=ht.previous=Je;e:for(xt=3;xt0)throw new Error("cycle");return xt}return ht.id=function(Ie){return arguments.length?(Ze=Ce(Ie),ht):Ze},ht.parentId=function(Ie){return arguments.length?(Je=Ce(Ie),ht):Je},ht}function Ge(Ze,Je){return Ze.parent===Je.parent?1:2}function yt(Ze){var Je=Ze.children;return Je?Je[0]:Ze.t}function _t(Ze){var Je=Ze.children;return Je?Je[Je.length-1]:Ze.t}function Ct(Ze,Je,ht){var Ie=ht/(Je.i-Ze.i);Je.c-=Ie,Je.s+=ht,Ze.c+=Ie,Je.z+=ht,Je.m+=ht}function St(Ze){for(var Je=0,ht=0,Ie=Ze.children,le=Ie.length,be;--le>=0;)be=Ie[le],be.z+=Je,be.m+=Je,Je+=be.s+(ht+=be.c)}function kt(Ze,Je,ht){return Ze.a.parent===Je.parent?Ze.a:ht}function ft(Ze,Je){this._=Ze,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Je}ft.prototype=Object.create(T.prototype);function Gt(Ze){for(var Je=new ft(Ze,0),ht,Ie=[Je],le,be,Qe,xt;ht=Ie.pop();)if(be=ht._.children)for(ht.children=new Array(xt=be.length),Qe=xt-1;Qe>=0;--Qe)Ie.push(le=ht.children[Qe]=new ft(be[Qe],Qe)),le.parent=ht;return(Je.parent=new ft(null,0)).children=[Je],Je}function $t(){var Ze=Ge,Je=1,ht=1,Ie=null;function le(rr){var Jr=Gt(rr);if(Jr.eachAfter(be),Jr.parent.m=-Jr.z,Jr.eachBefore(Qe),Ie)rr.eachBefore(Ot);else{var ni=rr,Gr=rr,ri=rr;rr.eachBefore(function(An){An.xGr.x&&(Gr=An),An.depth>ri.depth&&(ri=An)});var Ti=ni===Gr?1:Ze(ni,Gr)/2,an=Ti-ni.x,Yi=Je/(Gr.x+Ti+an),Xi=ht/(ri.depth||1);rr.eachBefore(function(An){An.x=(An.x+an)*Yi,An.y=An.depth*Xi})}return rr}function be(rr){var Jr=rr.children,ni=rr.parent.children,Gr=rr.i?ni[rr.i-1]:null;if(Jr){St(rr);var ri=(Jr[0].z+Jr[Jr.length-1].z)/2;Gr?(rr.z=Gr.z+Ze(rr._,Gr._),rr.m=rr.z-ri):rr.z=ri}else Gr&&(rr.z=Gr.z+Ze(rr._,Gr._));rr.parent.A=xt(rr,Gr,rr.parent.A||ni[0])}function Qe(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function xt(rr,Jr,ni){if(Jr){for(var Gr=rr,ri=rr,Ti=Jr,an=Gr.parent.children[0],Yi=Gr.m,Xi=ri.m,An=Ti.m,Qi=an.m,Un;Ti=_t(Ti),Gr=yt(Gr),Ti&&Gr;)an=yt(an),ri=_t(ri),ri.a=rr,Un=Ti.z+An-Gr.z-Yi+Ze(Ti._,Gr._),Un>0&&(Ct(kt(Ti,rr,ni),rr,Un),Yi+=Un,Xi+=Un),An+=Ti.m,Yi+=Gr.m,Qi+=an.m,Xi+=ri.m;Ti&&!_t(ri)&&(ri.t=Ti,ri.m+=An-Xi),Gr&&!yt(an)&&(an.t=Gr,an.m+=Yi-Qi,ni=rr)}return ni}function Ot(rr){rr.x*=Je,rr.y=rr.depth*ht}return le.separation=function(rr){return arguments.length?(Ze=rr,le):Ze},le.size=function(rr){return arguments.length?(Ie=!1,Je=+rr[0],ht=+rr[1],le):Ie?null:[Je,ht]},le.nodeSize=function(rr){return arguments.length?(Ie=!0,Je=+rr[0],ht=+rr[1],le):Ie?[Je,ht]:null},le}function hr(Ze,Je,ht,Ie,le){for(var be=Ze.children,Qe,xt=-1,Ot=be.length,rr=Ze.value&&(le-ht)/Ze.value;++xtAn&&(An=rr),It=Yi*Yi*Xn,Qi=Math.max(An/It,It/Xi),Qi>Un){Yi-=rr;break}Un=Qi}Qe.push(Ot={value:Yi,dice:ri1?Ie:1)},ht}(_r);function Ur(){var Ze=Br,Je=!1,ht=1,Ie=1,le=[0],be=Me,Qe=Me,xt=Me,Ot=Me,rr=Me;function Jr(Gr){return Gr.x0=Gr.y0=0,Gr.x1=ht,Gr.y1=Ie,Gr.eachBefore(ni),le=[0],Je&&Gr.eachBefore(Yt),Gr}function ni(Gr){var ri=le[Gr.depth],Ti=Gr.x0+ri,an=Gr.y0+ri,Yi=Gr.x1-ri,Xi=Gr.y1-ri;Yi=Gr-1){var An=be[ni];An.x0=Ti,An.y0=an,An.x1=Yi,An.y1=Xi;return}for(var Qi=rr[ni],Un=ri/2+Qi,Xn=ni+1,It=Gr-1;Xn>>1;rr[ct]Xi-an){var gr=(Ti*Wt+Yi*Vt)/ri;Jr(ni,Xn,Vt,Ti,an,gr,Xi),Jr(Xn,Gr,Wt,gr,an,Yi,Xi)}else{var qr=(an*Wt+Xi*Vt)/ri;Jr(ni,Xn,Vt,Ti,an,Yi,qr),Jr(Xn,Gr,Wt,Ti,qr,Yi,Xi)}}}function rt(Ze,Je,ht,Ie,le){(Ze.depth&1?hr:nt)(Ze,Je,ht,Ie,le)}var it=function Ze(Je){function ht(Ie,le,be,Qe,xt){if((Ot=Ie._squarify)&&Ot.ratio===Je)for(var Ot,rr,Jr,ni,Gr=-1,ri,Ti=Ot.length,an=Ie.value;++Gr1?Ie:1)},ht}(_r);e.cluster=l,e.hierarchy=_,e.pack=Se,e.packEnclose=V,e.packSiblings=pe,e.partition=ot,e.stratify=er,e.tree=$t,e.treemap=Ur,e.treemapBinary=ut,e.treemapDice=nt,e.treemapResquarify=it,e.treemapSlice=hr,e.treemapSliceDice=rt,e.treemapSquarify=Br,Object.defineProperty(e,"__esModule",{value:!0})})});var kE=_e(EE=>{"use strict";var Kke=SE(),XCt=ao(),w5=Mr(),YCt=Su().makeColorScaleFuncFromTrace,KCt=_5().makePullColorFn,JCt=_5().generateExtendedColors,$Ct=Su().calc,QCt=Jo().ALMOST_EQUAL,e6t={},t6t={},r6t={};EE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=w5.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=w5.isArrayOrTypedArray(s),u=[],c={},f={},h=function(G,N){c[G]?c[G].push(N):c[G]=[N],f[N]=1},d=function(G){return G||typeof G=="number"},v=function(G){return!l||XCt(s[G])&&s[G]>=0},x,b,p;i?(x=Math.min(n.length,o.length),b=function(G){return d(n[G])&&v(G)},p=function(G){return String(n[G])}):(x=Math.min(a.length,o.length),b=function(G){return d(a[G])&&v(G)},p=function(G){return String(a[G])}),l&&(x=Math.min(x,s.length));for(var E=0;E1){for(var S=w5.randstr(),g=0;g{});function Um(){}function Qke(){return this.rgb().formatHex()}function c6t(){return this.rgb().formatHex8()}function f6t(){return oCe(this).formatHsl()}function eCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=i6t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?tCe(t):r===3?new hd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?bD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?bD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=n6t.exec(e))?new hd(t[1],t[2],t[3],1):(t=a6t.exec(e))?new hd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=o6t.exec(e))?bD(t[1],t[2],t[3],t[4]):(t=s6t.exec(e))?bD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=l6t.exec(e))?nCe(t[1],t[2]/100,t[3]/100,1):(t=u6t.exec(e))?nCe(t[1],t[2]/100,t[3]/100,t[4]):$ke.hasOwnProperty(e)?tCe($ke[e]):e==="transparent"?new hd(NaN,NaN,NaN,0):null}function tCe(e){return new hd(e>>16&255,e>>8&255,e&255,1)}function bD(e,t,r,n){return n<=0&&(e=t=r=NaN),new hd(e,t,r,n)}function LE(e){return e instanceof Um||(e=W_(e)),e?(e=e.rgb(),new hd(e.r,e.g,e.b,e.opacity)):new hd}function A5(e,t,r,n){return arguments.length===1?LE(e):new hd(e,t,r,n==null?1:n)}function hd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rCe(){return`#${S2(this.r)}${S2(this.g)}${S2(this.b)}`}function h6t(){return`#${S2(this.r)}${S2(this.g)}${S2(this.b)}${S2((isNaN(this.opacity)?1:this.opacity)*255)}`}function iCe(){let e=TD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function TD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function S2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function nCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Zg(e,t,r,n)}function oCe(e){if(e instanceof Zg)return new Zg(e.h,e.s,e.l,e.opacity);if(e instanceof Um||(e=W_(e)),!e)return new Zg;if(e instanceof Zg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Zg(o,s,l,e.opacity)}function PE(e,t,r,n){return arguments.length===1?oCe(e):new Zg(e,t,r,n==null?1:n)}function Zg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function aCe(e){return e=(e||0)%360,e<0?e+360:e}function wD(e){return Math.max(0,Math.min(1,e||0))}function mW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var j_,k2,T5,CE,Nm,i6t,n6t,a6t,o6t,s6t,l6t,u6t,$ke,AD=Ll(()=>{xD();j_=.7,k2=1/j_,T5="\\s*([+-]?\\d+)\\s*",CE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",i6t=/^#([0-9a-f]{3,8})$/,n6t=new RegExp(`^rgb\\(${T5},${T5},${T5}\\)$`),a6t=new RegExp(`^rgb\\(${Nm},${Nm},${Nm}\\)$`),o6t=new RegExp(`^rgba\\(${T5},${T5},${T5},${CE}\\)$`),s6t=new RegExp(`^rgba\\(${Nm},${Nm},${Nm},${CE}\\)$`),l6t=new RegExp(`^hsl\\(${CE},${Nm},${Nm}\\)$`),u6t=new RegExp(`^hsla\\(${CE},${Nm},${Nm},${CE}\\)$`),$ke={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};Xy(Um,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qke,formatHex:Qke,formatHex8:c6t,formatHsl:f6t,formatRgb:eCe,toString:eCe});Xy(hd,A5,G_(Um,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new hd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new hd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hd(E2(this.r),E2(this.g),E2(this.b),TD(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:rCe,formatHex:rCe,formatHex8:h6t,formatRgb:iCe,toString:iCe}));Xy(Zg,PE,G_(Um,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new Zg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new Zg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new hd(mW(e>=240?e-240:e+120,i,n),mW(e,i,n),mW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Zg(aCe(this.h),wD(this.s),wD(this.l),TD(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(){let e=TD(this.opacity);return`${e===1?"hsl(":"hsla("}${aCe(this.h)}, ${wD(this.s)*100}%, ${wD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var MD,SD,yW=Ll(()=>{MD=Math.PI/180,SD=180/Math.PI});function hCe(e){if(e instanceof Vm)return new Vm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return dCe(e);e instanceof hd||(e=LE(e));var t=wW(e.r),r=wW(e.g),n=wW(e.b),i=_W((.2225045*t+.7168786*r+.0606169*n)/lCe),a,o;return t===r&&r===n?a=o=i:(a=_W((.4360747*t+.3850649*r+.1430804*n)/sCe),o=_W((.0139322*t+.0971045*r+.7141733*n)/uCe)),new Vm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function S5(e,t,r,n){return arguments.length===1?hCe(e):new Vm(e,t,r,n==null?1:n)}function Vm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _W(e){return e>d6t?Math.pow(e,1/3):e/fCe+cCe}function xW(e){return e>M5?e*e*e:fCe*(e-cCe)}function bW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function v6t(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Vm||(e=hCe(e)),e.a===0&&e.b===0)return new Yy(NaN,0{xD();AD();yW();ED=18,sCe=.96422,lCe=1,uCe=.82521,cCe=4/29,M5=6/29,fCe=3*M5*M5,d6t=M5*M5*M5;Xy(Vm,S5,G_(Um,{brighter(e){return new Vm(this.l+ED*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Vm(this.l-ED*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=sCe*xW(t),e=lCe*xW(e),r=uCe*xW(r),new hd(bW(3.1338561*t-1.6168667*e-.4906146*r),bW(-.9787684*t+1.9161415*e+.033454*r),bW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Xy(Yy,IE,G_(Um,{brighter(e){return new Yy(this.h,this.c,this.l+ED*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-ED*(e==null?1:e),this.opacity)},rgb(){return dCe(this).rgb()}}))});function p6t(e){if(e instanceof C2)return new C2(e.h,e.s,e.l,e.opacity);e instanceof hd||(e=LE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(mCe*n+pCe*t-gCe*r)/(mCe+pCe-gCe),a=n-i,o=(RE*(r-i)-AW*a)/kD,s=Math.sqrt(o*o+a*a)/(RE*i*(1-i)),l=s?Math.atan2(o,a)*SD-120:NaN;return new C2(l<0?l+360:l,s,i,e.opacity)}function E5(e,t,r,n){return arguments.length===1?p6t(e):new C2(e,t,r,n==null?1:n)}function C2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var yCe,TW,AW,kD,RE,pCe,gCe,mCe,_Ce=Ll(()=>{xD();AD();yW();yCe=-.14861,TW=1.78277,AW=-.29227,kD=-.90649,RE=1.97294,pCe=RE*kD,gCe=RE*TW,mCe=TW*AW-kD*yCe;Xy(C2,E5,G_(Um,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new C2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new C2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*MD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new hd(255*(t+r*(yCe*n+TW*i)),255*(t+r*(AW*n+kD*i)),255*(t+r*(RE*n)),this.opacity)}}))});var L2=Ll(()=>{AD();vCe();_Ce()});function MW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function CD(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function PD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return MW((r-n/t)*t,i,a,o,s)}}var SW=Ll(()=>{LD()});var k5,EW=Ll(()=>{k5=e=>()=>e});function xCe(e,t){return function(r){return e+r*t}}function g6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Z_(e,t){var r=t-e;return r?xCe(e,r>180||r<-180?r-360*Math.round(r/360):r):k5(isNaN(e)?t:e)}function bCe(e){return(e=+e)==1?qf:function(t,r){return r-t?g6t(t,r,e):k5(isNaN(t)?r:t)}}function qf(e,t){var r=t-e;return r?xCe(e,r):k5(isNaN(e)?t:e)}var P2=Ll(()=>{EW()});function wCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();LD();SW();P2();DE=function e(t){var r=bCe(t);function n(i,a){var o=r((i=A5(i)).r,(a=A5(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=qf(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);TCe=wCe(CD),ACe=wCe(PD)});function C5(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function MCe(e,t){return(ID(t)?C5:CW)(e,t)}function CW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{zE();RD()});function DD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var PW=Ll(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var FE=Ll(()=>{});function zD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var IW=Ll(()=>{zE()});function m6t(e){return function(){return e}}function y6t(e){return function(t){return e(t)+""}}function FD(e,t){var r=DW.lastIndex=RW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=DW.exec(e))&&(i=RW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=RW.lastIndex;return r{FE();DW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,RW=new RegExp(DW.source,"g")});function X_(e,t){var r=typeof t,n;return t==null||r==="boolean"?k5(t):(r==="number"?Fp:r==="string"?(n=W_(t))?(t=n,DE):FD:t instanceof W_?DE:t instanceof Date?DD:ID(t)?C5:Array.isArray(t)?CW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zD:Fp)(e,t)}var zE=Ll(()=>{L2();kW();LW();PW();FE();IW();zW();EW();RD()});function SCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var ECe=Ll(()=>{});function kCe(e,t){var r=Z_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var CCe=Ll(()=>{P2()});function LCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var PCe=Ll(()=>{});function FW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{ICe=180/Math.PI,qD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function DCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qD:FW(t.a,t.b,t.c,t.d,t.e,t.f)}function zCe(e){return e==null?qD:(OD||(OD=document.createElementNS("http://www.w3.org/2000/svg","g")),OD.setAttribute("transform",e),(e=OD.transform.baseVal.consolidate())?(e=e.matrix,FW(e.a,e.b,e.c,e.d,e.e,e.f)):qD)}var OD,FCe=Ll(()=>{RCe()});function qCe(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push("translate(",null,t,null,r);v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push(i(d)+"scale(",null,",",null,")");v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,x=h.length,b;++v{FE();FCe();OCe=qCe(DCe,"px, ","px)","deg)"),BCe=qCe(zCe,", ",")",")")});function UCe(e){return((e=Math.exp(e))+1/e)/2}function x6t(e){return((e=Math.exp(e))-1/e)/2}function b6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var _6t,VCe,HCe=Ll(()=>{_6t=1e-12;VCe=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,x=d*d+v*v,b,p;if(x<_6t)p=Math.log(h/u)/t,b=function(C){return[s+C*d,l+C*v,u*Math.exp(t*C*p)]};else{var E=Math.sqrt(x),k=(h*h-u*u+n*x)/(2*u*r*E),A=(h*h-u*u-n*x)/(2*h*r*E),L=Math.log(Math.sqrt(k*k+1)-k),_=Math.log(Math.sqrt(A*A+1)-A);p=(_-L)/t,b=function(C){var S=C*p,g=UCe(L),P=u/(r*E)*(g*b6t(t*S+L)-x6t(L));return[s+P*d,l+P*v,u*g/UCe(t*S+L)]}}return b.duration=p*1e3*t/Math.SQRT2,b}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,l=s*s;return e(o,s,l)},i}(Math.SQRT2,2,4)});function GCe(e){return function(t,r){var n=e((t=PE(t)).h,(r=PE(r)).h),i=qf(t.s,r.s),a=qf(t.l,r.l),o=qf(t.opacity,r.opacity);return function(s){return t.h=n(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var jCe,WCe,ZCe=Ll(()=>{L2();P2();jCe=GCe(Z_),WCe=GCe(qf)});function qW(e,t){var r=qf((e=S5(e)).l,(t=S5(t)).l),n=qf(e.a,t.a),i=qf(e.b,t.b),a=qf(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var XCe=Ll(()=>{L2();P2()});function YCe(e){return function(t,r){var n=e((t=IE(t)).h,(r=IE(r)).h),i=qf(t.c,r.c),a=qf(t.l,r.l),o=qf(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var KCe,JCe,$Ce=Ll(()=>{L2();P2();KCe=YCe(Z_),JCe=YCe(qf)});function QCe(e){return function t(r){r=+r;function n(i,a){var o=e((i=E5(i)).h,(a=E5(a)).h),s=qf(i.s,a.s),l=qf(i.l,a.l),u=qf(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var e6e,t6e,r6e=Ll(()=>{L2();P2();e6e=QCe(Z_),t6e=QCe(qf)});function OW(e,t){t===void 0&&(t=e,e=X_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{zE()});function n6e(e,t){for(var r=new Array(t),n=0;n{});var I2={};fee(I2,{interpolate:()=>X_,interpolateArray:()=>MCe,interpolateBasis:()=>CD,interpolateBasisClosed:()=>PD,interpolateCubehelix:()=>e6e,interpolateCubehelixLong:()=>t6e,interpolateDate:()=>DD,interpolateDiscrete:()=>SCe,interpolateHcl:()=>KCe,interpolateHclLong:()=>JCe,interpolateHsl:()=>jCe,interpolateHslLong:()=>WCe,interpolateHue:()=>kCe,interpolateLab:()=>qW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>C5,interpolateObject:()=>zD,interpolateRgb:()=>DE,interpolateRgbBasis:()=>TCe,interpolateRgbBasisClosed:()=>ACe,interpolateRound:()=>LCe,interpolateString:()=>FD,interpolateTransformCss:()=>OCe,interpolateTransformSvg:()=>BCe,interpolateZoom:()=>VCe,piecewise:()=>OW,quantize:()=>n6e});var R2=Ll(()=>{zE();LW();LD();SW();PW();ECe();CCe();FE();RD();IW();PCe();zW();NCe();HCe();kW();ZCe();XCe();$Ce();r6e();i6e();a6e()});var BD=_e((spr,o6e)=>{"use strict";var w6t=ro(),T6t=ha();o6e.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),w6t.pointStyle(t,n,i,r)}else T6t.fill(t,l)}});var BW=_e((lpr,f6e)=>{"use strict";var s6e=ya(),l6e=ha(),u6e=Mr(),A6t=_v().resizeText,M6t=BD();function S6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");A6t(e,t,"sunburst"),t.each(function(r){var n=s6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){s6e.select(this).call(c6e,o,a,e)})})}function c6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=u6e.castOption(r,o,"marker.line.color")||l6e.defaultLine,l=u6e.castOption(r,o,"marker.line.width")||0;e.call(M6t,t,r,n).style("stroke-width",l).call(l6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}f6e.exports={style:S6t,styleOne:c6e}});var Ky=_e(ys=>{"use strict";var D2=Mr(),E6t=ha(),k6t=Tg(),h6e=u_();ys.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(ys.getPtId(n)===t)return r=n.copy()}),r||e};ys.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};ys.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};ys.isHeader=function(e,t){return!(ys.isLeaf(e)||e.depth===t._maxDepth-1)};function d6e(e){return e.data.data.pid}ys.getParent=function(e,t){return ys.findEntryWithLevel(e,d6e(t))};ys.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return ys.listPath(r,t).concat(n)};ys.getPath=function(e){return ys.listPath(e,"label").join("/")+"/"};ys.formatValue=h6e.formatPieValue;ys.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=h6e.formatPiePercent(e,t)),r}});var BE=_e((cpr,g6e)=>{"use strict";var L5=ya(),v6e=_a(),P6t=rp().appendArrayPointValue,qE=Nc(),p6e=Mr(),I6t=g3(),Wh=Ky(),R6t=u_(),D6t=R6t.formatPieValue;g6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,E=p.i,k=Wh.isHierarchyRoot(v),A=Wh.getParent(l,v),L=Wh.getValue(v),_=function(Ee){return p6e.castOption(b,E,Ee)},C=_("hovertemplate"),S=qE.castHoverinfo(b,x,E),g=x.separators,P;if(C||S&&S!=="none"&&S!=="skip"){var T,F;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),F=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,F=v._hoverY);var q={},V=[],H=[],X=function(Ee){return V.indexOf(Ee)!==-1};S&&(V=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),q.label=p.label,X("label")&&q.label&&H.push(q.label),p.hasOwnProperty("v")&&(q.value=p.v,q.valueLabel=D6t(q.value,g),X("value")&&H.push(q.valueLabel)),q.currentPath=v.currentPath=Wh.getPath(v.data),X("current path")&&!k&&H.push(q.currentPath);var G,N=[],Z=function(){N.indexOf(G)===-1&&(H.push(G),N.push(G))};q.percentParent=v.percentParent=L/Wh.getValue(A),q.parent=v.parentString=Wh.getPtLabel(A),X("percent parent")&&(G=Wh.formatPercent(q.percentParent,g)+" of "+q.parent,Z()),q.percentEntry=v.percentEntry=L/Wh.getValue(r),q.entry=v.entry=Wh.getPtLabel(r),X("percent entry")&&!k&&!v.onPathbar&&(G=Wh.formatPercent(q.percentEntry,g)+" of "+q.entry,Z()),q.percentRoot=v.percentRoot=L/Wh.getValue(l),q.root=v.root=Wh.getPtLabel(l),X("percent root")&&!k&&(G=Wh.formatPercent(q.percentRoot,g)+" of "+q.root,Z()),q.text=_("hovertext")||_("text"),X("text")&&(G=q.text,p6e.isValidTextValue(G)&&H.push(G)),P=[OE(v,b,a.eventDataKeys)];var ie={trace:b,y:F,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:H.join("
"),name:C||X("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||p.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:q,eventData:P};u&&(ie.x0=T-v.rInscribed*v.rpx1,ie.x1=T+v.rInscribed*v.rpx1,ie.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(ie.x=T,ie.idealAlign=T<0?"left":"right");var ae=[];qE.loneHover(ie,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(c){var we=t.select("path.surface");a.styleOne(we,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[OE(v,b,a.eventDataKeys)],event:L5.event})}},h=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=L5.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=L5.event,n.emit("plotly_unhover",{points:[OE(p,b,a.eventDataKeys)],event:L5.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(qE.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),c){var E=t.select("path.surface");a.styleOne(E,p,b,n,{hovered:!1})}},d=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=u&&(Wh.isHierarchyRoot(v)||Wh.isLeaf(v)),E=Wh.getPtId(v),k=Wh.isEntry(v)?Wh.findEntryWithChild(l,E):Wh.findEntryWithLevel(l,E),A=Wh.getPtId(k),L={points:[OE(v,b,a.eventDataKeys)],event:L5.event};p||(L.nextLevel=A);var _=I6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[OE(v,b,a.eventDataKeys)],qE.click(n,L5.event)),!p&&_!==!1&&!n._dragging&&!n._transitioning){v6e.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:A}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};qE.loneUnhover(x._hoverlayer.node()),v6e.call("animate",n,C,S)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function OE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var NE=ya(),z6t=SE(),Xg=(R2(),B1(I2)).interpolate,m6e=ro(),bv=Mr(),F6t=Pl(),b6e=_v(),y6e=b6e.recordMinTextSize,q6t=b6e.clearMinTextSize,w6e=yD(),O6t=u_().getRotationAngle,B6t=w6e.computeTransform,N6t=w6e.transformInsideText,U6t=BW().styleOne,V6t=N0().resizeText,H6t=BE(),NW=pW(),sl=Ky();ND.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&sl.hasTransition(r);if(q6t("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=NE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){_6e(e,f,this,r)})})}else o.each(function(f){_6e(e,f,this,r)}),i.uniformtext.mode&&V6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function _6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&sl.hasTransition(n),s=NE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=sl.findEntryWithLevel(f,c.level),d=sl.getMaxDepth(c),v=a._size,x=c.domain,b=v.w*(x.x[1]-x.x[0]),p=v.h*(x.y[1]-x.y[0]),E=.5*Math.min(b,p),k=u.cx=v.l+v.w*(x.x[1]+x.x[0])/2,A=u.cy=v.t+v.h*(1-x.y[0])-p/2;if(!h)return l.remove();var L=null,_={};o&&l.each(function(ye){_[sl.getPtId(ye)]={rpx0:ye.rpx0,rpx1:ye.rpx1,x0:ye.x0,x1:ye.x1,transform:ye.transform},!L&&sl.isEntry(ye)&&(L=ye)});var C=G6t(h).descendants(),S=h.height+1,g=0,P=d;u.hasMultipleRoots&&sl.isHierarchyRoot(h)&&(C=C.slice(1),S-=1,g=1,P+=1),C=C.filter(function(ye){return ye.y1<=P});var T=O6t(c.rotation);T&&C.forEach(function(ye){ye.x0+=T,ye.x1+=T});var F=Math.min(S,d),q=function(ye){return(ye-g)/F*E},V=function(ye,K){return[ye*Math.cos(K),-ye*Math.sin(K)]},H=function(ye){return bv.pathAnnulus(ye.rpx0,ye.rpx1,ye.x0,ye.x1,k,A)},X=function(ye){return k+x6e(ye)[0]*(ye.transform.rCenter||0)+(ye.transform.x||0)},G=function(ye){return A+x6e(ye)[1]*(ye.transform.rCenter||0)+(ye.transform.y||0)};l=l.data(C,sl.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var ye=NE.select(this),K=ye.select("path.surface");K.transition().attrTween("d",function(pe){var xe=ae(pe);return function(Ce){return H(xe(Ce))}});var ce=ye.select("g.slicetext");ce.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var Z=sl.getPtId(L);l.each(function(ye){N===null&&sl.getPtId(ye)===Z&&(N=ye.x1)})}var ie=l;o&&(ie=ie.transition().each("end",function(){var ye=NE.select(this);sl.setSliceCursor(ye,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),ie.each(function(ye){var K=NE.select(this),ce=bv.ensureSingle(K,"path","surface",function(je){je.style("pointer-events",i?"none":"all")});ye.rpx0=q(ye.y0),ye.rpx1=q(ye.y1),ye.xmid=(ye.x0+ye.x1)/2,ye.pxmid=V(ye.rpx1,ye.xmid),ye.midangle=-(ye.xmid-Math.PI/2),ye.startangle=-(ye.x0-Math.PI/2),ye.stopangle=-(ye.x1-Math.PI/2),ye.halfangle=.5*Math.min(bv.angleDelta(ye.x0,ye.x1)||Math.PI,Math.PI),ye.ring=1-ye.rpx0/ye.rpx1,ye.rInscribed=j6t(ye,c),o?ce.transition().attrTween("d",function(je){var Se=we(je);return function(Xe){return H(Se(Xe))}}):ce.attr("d",H),K.call(H6t,h,e,t,{eventDataKeys:NW.eventDataKeys,transitionTime:NW.CLICK_TRANSITION_TIME,transitionEasing:NW.CLICK_TRANSITION_EASING}).call(sl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ce.call(U6t,ye,c,e);var pe=bv.ensureSingle(K,"g","slicetext"),xe=bv.ensureSingle(pe,"text","",function(je){je.attr("data-notex",1)}),Ce=bv.ensureUniformFontSize(e,sl.determineTextFont(c,ye,a.font));xe.text(ND.formatSliceLabel(ye,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(m6e.font,Ce).call(F6t.convertToTspans,e);var Me=m6e.bBox(xe.node());ye.transform=N6t(Me,ye,u),ye.transform.targetX=X(ye),ye.transform.targetY=G(ye);var Le=function(je,Se){var Xe=je.transform;return B6t(Xe,Se),Xe.fontSize=Ce.size,y6e(c.type,Xe,a),bv.getTextTransform(Xe)};o?xe.transition().attrTween("transform",function(je){var Se=Ee(je);return function(Xe){return Le(Se(Xe),Me)}}):xe.attr("transform",Le(ye,Me))});function ae(ye){var K=sl.getPtId(ye),ce=_[K],pe=_[sl.getPtId(h)],xe;if(pe){var Ce=(ye.x1>pe.x1?2*Math.PI:0)+T;xe=ye.rpx1N?2*Math.PI:0)+T;ce={x0:xe,x1:xe}}else ce={rpx0:E,rpx1:E},bv.extendFlat(ce,ke(ye));else ce={rpx0:0,rpx1:0};else ce={x0:T,x1:T};return Xg(ce,pe)}function Ee(ye){var K=_[sl.getPtId(ye)],ce,pe=ye.transform;if(K)ce=K;else if(ce={rpx1:ye.rpx1,transform:{textPosAngle:pe.textPosAngle,scale:0,rotate:pe.rotate,rCenter:pe.rCenter,x:pe.x,y:pe.y}},L)if(ye.parent)if(N){var xe=ye.x1>N?2*Math.PI:0;ce.x0=ce.x1=xe}else bv.extendFlat(ce,ke(ye));else ce.x0=ce.x1=T;else ce.x0=ce.x1=T;var Ce=Xg(ce.transform.textPosAngle,ye.transform.textPosAngle),Me=Xg(ce.rpx1,ye.rpx1),Le=Xg(ce.x0,ye.x0),je=Xg(ce.x1,ye.x1),Se=Xg(ce.transform.scale,pe.scale),Xe=Xg(ce.transform.rotate,pe.rotate),lt=pe.rCenter===0?3:ce.transform.rCenter===0?1/3:1,At=Xg(ce.transform.rCenter,pe.rCenter),Yt=function(nt){return At(Math.pow(nt,lt))};return function(nt){var ot=Me(nt),Ft=Le(nt),Lt=je(nt),Rt=Yt(nt),Xt=V(ot,(Ft+Lt)/2),xr=Ce(nt),er={pxmid:Xt,rpx1:ot,transform:{textPosAngle:xr,rCenter:Rt,x:pe.x,y:pe.y}};return y6e(c.type,pe,a),{transform:{targetX:X(er),targetY:G(er),scale:Se(nt),rotate:Xe(nt),rCenter:Rt}}}}function ke(ye){var K=ye.parent,ce=_[sl.getPtId(K)],pe={};if(ce){var xe=K.children,Ce=xe.indexOf(ye),Me=xe.length,Le=Xg(ce.x0,ce.x1);pe.x0=Le(Ce/Me),pe.x1=Le(Ce/Me)}else pe.x0=pe.x1=0;return pe}}function G6t(e){return z6t.partition().size([2*Math.PI,e.height+1])(e)}ND.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=sl.isHierarchyRoot(e),h=sl.getParent(c,e),d=sl.getValue(e);if(!a){var v=o.split("+"),x=function(g){return v.indexOf(g)!==-1},b=[],p;if(x("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&x("value")&&b.push(sl.formatValue(u.v,s)),!f){x("current path")&&b.push(sl.getPath(e.data));var E=0;x("percent parent")&&E++,x("percent entry")&&E++,x("percent root")&&E++;var k=E>1;if(E){var A,L=function(g){p=sl.formatPercent(A,s),k&&(p+=" of "+g),b.push(p)};x("percent parent")&&!f&&(A=d/sl.getValue(h),L("parent")),x("percent entry")&&(A=d/sl.getValue(t),L("entry")),x("percent root")&&(A=d/sl.getValue(c),L("root"))}}return x("text")&&(p=bv.castOption(r,u.i,"text"),bv.isValidTextValue(p)&&b.push(p)),b.join("
")}var _=bv.castOption(r,u.i,"texttemplate");if(!_)return"";var C={};u.label&&(C.label=u.label),u.hasOwnProperty("v")&&(C.value=u.v,C.valueLabel=sl.formatValue(u.v,s)),C.currentPath=sl.getPath(e.data),f||(C.percentParent=d/sl.getValue(h),C.percentParentLabel=sl.formatPercent(C.percentParent,s),C.parent=sl.getPtLabel(h)),C.percentEntry=d/sl.getValue(t),C.percentEntryLabel=sl.formatPercent(C.percentEntry,s),C.entry=sl.getPtLabel(t),C.percentRoot=d/sl.getValue(c),C.percentRootLabel=sl.formatPercent(C.percentRoot,s),C.root=sl.getPtLabel(c),u.hasOwnProperty("color")&&(C.color=u.color);var S=bv.castOption(r,u.i,"text");return(bv.isValidTextValue(S)||S==="")&&(C.text=S),C.customdata=bv.castOption(r,u.i,"customdata"),bv.texttemplateString(_,C,i._d3locale,C,r._meta||{})};function j6t(e){return e.rpx0===0&&bv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function x6e(e){return W6t(e.rpx1,e.transform.textPosAngle)}function W6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var A6e=_e((hpr,T6e)=>{"use strict";T6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:Oke(),categories:[],animatable:!0,attributes:ME(),layoutAttributes:gW(),supplyDefaults:Wke(),supplyLayoutDefaults:Xke(),calc:kE().calc,crossTraceCalc:kE().crossTraceCalc,plot:UD().plot,style:BW().style,colorbar:Kd(),meta:{}}});var S6e=_e((dpr,M6e)=>{"use strict";M6e.exports=A6e()});var k6e=_e(P5=>{"use strict";var E6e=Xu();P5.name="treemap";P5.plot=function(e,t,r,n){E6e.plotBasePlot(P5.name,e,t,r,n)};P5.clean=function(e,t,r,n){E6e.cleanBasePlot(P5.name,e,t,r,n)}});var z2=_e((ppr,C6e)=>{"use strict";C6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var VD=_e((gpr,P6e)=>{"use strict";var Z6t=Ho().hovertemplateAttrs,X6t=Ho().texttemplateAttrs,Y6t=Jl(),K6t=Ju().attributes,F2=A2(),Q0=ME(),L6e=z2(),UW=to().extendFlat,J6t=Ed().pattern;P6e.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:UW({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:J6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Y6t("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:UW({},F2.textfont,{}),editType:"calc"},text:F2.text,textinfo:Q0.textinfo,texttemplate:X6t({editType:"plot"},{keys:L6e.eventDataKeys.concat(["label","value"])}),hovertext:F2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:Z6t({},{keys:L6e.eventDataKeys}),textfont:F2.textfont,insidetextfont:F2.insidetextfont,outsidetextfont:UW({},F2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:F2.sort,root:Q0.root,domain:K6t({name:"treemap",trace:!0,editType:"calc"})}});var VW=_e((mpr,I6e)=>{"use strict";I6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var F6e=_e((ypr,z6e)=>{"use strict";var R6e=Mr(),$6t=VD(),Q6t=ha(),eLt=Ju().defaults,tLt=r0().handleText,rLt=Qb().TEXTPAD,iLt=M2().handleMarkerDefaults,D6e=Su(),nLt=D6e.hasColorscale,aLt=D6e.handleDefaults;z6e.exports=function(t,r,n,i){function a(b,p){return R6e.coerce(t,r,$6t,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",R6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";tLt(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;iLt(t,r,i,a);var v=r._hasColorscale=nLt(t,"marker","colors")||(t.marker||{}).coloraxis;v?aLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:Q6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*rLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),eLt(r,i,a),r._length=null}});var O6e=_e((_pr,q6e)=>{"use strict";var oLt=Mr(),sLt=VW();q6e.exports=function(t,r){function n(i,a){return oLt.coerce(t,r,sLt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var GW=_e(HW=>{"use strict";var B6e=kE();HW.calc=function(e,t){return B6e.calc(e,t)};HW.crossTraceCalc=function(e){return B6e._runCrossTraceCalc("treemap",e)}});var jW=_e((bpr,N6e)=>{"use strict";N6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var I5=SE(),lLt=jW();U6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=I5.treemap().tile(uLt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&lLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function uLt(e,t){switch(e){case"squarify":return I5.treemapSquarify.ratio(t);case"binary":return I5.treemapBinary;case"dice":return I5.treemapDice;case"slice":return I5.treemapSlice;default:return I5.treemapSliceDice}}});var HD=_e((Tpr,j6e)=>{"use strict";var V6e=ya(),R5=ha(),H6e=Mr(),ZW=Ky(),cLt=_v().resizeText,fLt=BD();function hLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");cLt(e,t,"treemap"),t.each(function(r){var n=V6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){V6e.select(this).call(G6e,o,a,e,{hovered:!1})})})}function G6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=ZW.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=H6e.castOption(r,s,"marker.line.color")||R5.defaultLine,u=H6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=R5.combine(R5.addOpacity(r._backgroundColor,.75),c),x;if(d===!0){var b=ZW.getMaxDepth(r);isFinite(b)?ZW.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var p=0;p{"use strict";var W6e=ya(),GD=Mr(),Z6e=ro(),dLt=Pl(),vLt=WW(),X6e=HD().styleOne,XW=z2(),D5=Ky(),pLt=BE(),YW=!0;Y6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,E={},k=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,C=L.hierarchy,S=s/_._entryDepth,g=D5.listPath(n.data,"id"),P=vLt(C.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(F){var q=g.indexOf(F.data.id);return q===-1?!1:(F.x0=S*q,F.x1=S*(q+1),F.y0=o,F.y1=o+l,F.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,D5.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,YW,E,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var F=W6e.select(this);D5.setSliceCursor(F,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(F){F._x0=u(F.x0),F._x1=u(F.x1),F._y0=c(F.y0),F._y1=c(F.y1),F._hoverX=u(F.x1-Math.min(s,l)/2),F._hoverY=c(F.y1-l/2);var q=W6e.select(this),V=GD.ensureSingle(q,"path","surface",function(N){N.style("pointer-events",k?"none":"all")});v?V.transition().attrTween("d",function(N){var Z=b(N,YW,E,[s,l]);return function(ie){return f(Z(ie))}}):V.attr("d",f),q.call(pLt,n,t,r,{styleOne:X6e,eventDataKeys:XW.eventDataKeys,transitionTime:XW.CLICK_TRANSITION_TIME,transitionEasing:XW.CLICK_TRANSITION_EASING}).call(D5.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(X6e,F,_,t,{hovered:!1}),F._text=(D5.getPtLabel(F)||"").split("
").join(" ")||"";var H=GD.ensureSingle(q,"g","slicetext"),X=GD.ensureSingle(H,"text","",function(N){N.attr("data-notex",1)}),G=GD.ensureUniformFontSize(t,D5.determineTextFont(_,F,A.font,{onPathbar:!0}));X.text(F._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(Z6e.font,G).call(dLt.convertToTspans,t),F.textBB=Z6e.bBox(X.node()),F.transform=h(F,{fontSize:G.size,onPathbar:!0}),F.transform.fontSize=G.size,v?X.transition().attrTween("transform",function(N){var Z=p(N,YW,E,[s,l]);return function(ie){return d(Z(ie))}}):X.attr("transform",d(F))})}});var eLe=_e((Mpr,Q6e)=>{"use strict";var J6e=ya(),KW=(R2(),B1(I2)).interpolate,Y_=Ky(),UE=Mr(),$6e=Qb().TEXTPAD,gLt=i2(),mLt=gLt.toMoveInsideBar,yLt=_v(),JW=yLt.recordMinTextSize,_Lt=z2(),xLt=K6e();function q2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}Q6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Y_.findEntryWithLevel(f,l.level),d=J6e.select(n),v=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){v.remove(),x.remove();return}var b=Y_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Y_.hasTransition(i),E=Y_.getMaxDepth(l),k=function(Ge){return Ge.data.depth-h.data.depth-1?C+P:-(g+P):0,F={x0:S,x1:S,y0:T,y1:T+g},q=function(Ge,yt,_t){var Ct=l.tiling.pad,St=function($t){return $t-Ct<=yt.x0},kt=function($t){return $t+Ct>=yt.x1},ft=function($t){return $t-Ct<=yt.y0},Gt=function($t){return $t+Ct>=yt.y1};return Ge.x0===yt.x0&&Ge.x1===yt.x1&&Ge.y0===yt.y0&&Ge.y1===yt.y1?{x0:Ge.x0,x1:Ge.x1,y0:Ge.y0,y1:Ge.y1}:{x0:St(Ge.x0-Ct)?0:kt(Ge.x0-Ct)?_t[0]:Ge.x0,x1:St(Ge.x1+Ct)?0:kt(Ge.x1+Ct)?_t[0]:Ge.x1,y0:ft(Ge.y0-Ct)?0:Gt(Ge.y0-Ct)?_t[1]:Ge.y0,y1:ft(Ge.y1+Ct)?0:Gt(Ge.y1+Ct)?_t[1]:Ge.y1}},V=null,H={},X={},G=null,N=function(Ge,yt){return yt?H[q2(Ge)]:X[q2(Ge)]},Z=function(Ge,yt,_t,Ct){if(yt)return H[q2(f)]||F;var St=X[l.level]||_t;return k(Ge)?q(Ge,St,Ct):{}};s.hasMultipleRoots&&b&&E++,l._maxDepth=E,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var ie=-_/2+A.l+A.w*(L.x[1]+L.x[0])/2,ae=-C/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),we=function(Ge){return ie+Ge},Ee=function(Ge){return ae+Ge},ke=Ee(0),ye=we(0),K=function(Ge){return ye+Ge},ce=function(Ge){return ke+Ge};function pe(Ge,yt){return Ge+","+yt}var xe=K(0),Ce=function(Ge){Ge.x=Math.max(xe,Ge.x)},Me=l.pathbar.edgeshape,Le=function(Ge){var yt=K(Math.max(Math.min(Ge.x0,Ge.x0),0)),_t=K(Math.min(Math.max(Ge.x1,Ge.x1),S)),Ct=ce(Ge.y0),St=ce(Ge.y1),kt=g/2,ft={},Gt={};ft.x=yt,Gt.x=_t,ft.y=Gt.y=(Ct+St)/2;var $t={x:yt,y:Ct},hr={x:_t,y:Ct},_r={x:_t,y:St},Nr={x:yt,y:St};return Me===">"?($t.x-=kt,hr.x-=kt,_r.x-=kt,Nr.x-=kt):Me==="/"?(_r.x-=kt,Nr.x-=kt,ft.x-=kt/2,Gt.x-=kt/2):Me==="\\"?($t.x-=kt,hr.x-=kt,ft.x-=kt/2,Gt.x-=kt/2):Me==="<"&&(ft.x-=kt,Gt.x-=kt),Ce($t),Ce(Nr),Ce(ft),Ce(hr),Ce(_r),Ce(Gt),"M"+pe($t.x,$t.y)+"L"+pe(hr.x,hr.y)+"L"+pe(Gt.x,Gt.y)+"L"+pe(_r.x,_r.y)+"L"+pe(Nr.x,Nr.y)+"L"+pe(ft.x,ft.y)+"Z"},je=l[c?"tiling":"marker"].pad,Se=function(Ge){return l.textposition.indexOf(Ge)!==-1},Xe=Se("top"),lt=Se("left"),At=Se("right"),Yt=Se("bottom"),nt=function(Ge){var yt=we(Ge.x0),_t=we(Ge.x1),Ct=Ee(Ge.y0),St=Ee(Ge.y1),kt=_t-yt,ft=St-Ct;if(!kt||!ft)return"";var Gt=l.marker.cornerradius||0,$t=Math.min(Gt,kt/2,ft/2);$t&&Ge.data&&Ge.data.data&&Ge.data.data.label&&(Xe&&($t=Math.min($t,je.t)),lt&&($t=Math.min($t,je.l)),At&&($t=Math.min($t,je.r)),Yt&&($t=Math.min($t,je.b)));var hr=function(_r,Nr){return $t?"a"+pe($t,$t)+" 0 0 1 "+pe(_r,Nr):""};return"M"+pe(yt,Ct+$t)+hr($t,-$t)+"L"+pe(_t-$t,Ct)+hr($t,$t)+"L"+pe(_t,St-$t)+hr(-$t,$t)+"L"+pe(yt+$t,St)+hr(-$t,-$t)+"Z"},ot=function(Ge,yt){var _t=Ge.x0,Ct=Ge.x1,St=Ge.y0,kt=Ge.y1,ft=Ge.textBB,Gt=Xe||yt.isHeader&&!Yt,$t=Gt?"start":Yt?"end":"middle",hr=Se("right"),_r=Se("left")||yt.onPathbar,Nr=_r?-1:hr?1:0;if(yt.isHeader){if(_t+=(c?je:je.l)-$6e,Ct-=(c?je:je.r)-$6e,_t>=Ct){var Br=(_t+Ct)/2;_t=Br,Ct=Br}var Ur;Yt?(Ur=kt-(c?je:je.b),St{"use strict";var bLt=ya(),wLt=Ky(),TLt=_v(),ALt=TLt.clearMinTextSize,MLt=N0().resizeText,tLe=eLe();rLe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(ALt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&wLt.hasTransition(n)){i&&(f=i());var d=bLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){tLe(t,v,this,n,s)})})}else c.each(function(v){tLe(t,v,this,n,s)}),l.uniformtext.mode&&MLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var sLe=_e((Epr,oLe)=>{"use strict";var iLe=ya(),jD=Mr(),nLe=ro(),SLt=Pl(),ELt=WW(),aLe=HD().styleOne,QW=z2(),K_=Ky(),kLt=BE(),CLt=UD().formatSliceLabel,eZ=!1;oLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,E={},k=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=!g&&!_.marker.pad.t||g&&!_.marker.pad.b,T=ELt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),F=T.descendants(),q=1/0,V=-1/0;F.forEach(function(Z){var ie=Z.depth;ie>=_._maxDepth?(Z.x0=Z.x1=(Z.x0+Z.x1)/2,Z.y0=Z.y1=(Z.y0+Z.y1)/2):(q=Math.min(q,ie),V=Math.max(V,ie))}),i=i.data(F,K_.getPtId),_._maxVisibleLayers=isFinite(V)?V-q+1:0,i.enter().append("g").classed("slice",!0),v(i,eZ,E,[o,s],c),i.order();var H=null;if(d&&p){var X=K_.getPtId(p);i.each(function(Z){H===null&&K_.getPtId(Z)===X&&(H={x0:Z.x0,x1:Z.x1,y0:Z.y0,y1:Z.y1})})}var G=function(){return H||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var Z=iLe.select(this);K_.setSliceCursor(Z,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(Z){var ie=K_.isHeader(Z,_);Z._x0=l(Z.x0),Z._x1=l(Z.x1),Z._y0=u(Z.y0),Z._y1=u(Z.y1),Z._hoverX=l(Z.x1-_.marker.pad.r),Z._hoverY=u(g?Z.y1-_.marker.pad.b/2:Z.y0+_.marker.pad.t/2);var ae=iLe.select(this),we=jD.ensureSingle(ae,"path","surface",function(pe){pe.style("pointer-events",k?"none":"all")});d?we.transition().attrTween("d",function(pe){var xe=x(pe,eZ,G(),[o,s]);return function(Ce){return c(xe(Ce))}}):we.attr("d",c),ae.call(kLt,n,t,r,{styleOne:aLe,eventDataKeys:QW.eventDataKeys,transitionTime:QW.CLICK_TRANSITION_TIME,transitionEasing:QW.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),we.call(aLe,Z,_,t,{hovered:!1}),Z.x0===Z.x1||Z.y0===Z.y1?Z._text="":ie?Z._text=P?"":K_.getPtLabel(Z)||"":Z._text=CLt(Z,n,_,r,A)||"";var Ee=jD.ensureSingle(ae,"g","slicetext"),ke=jD.ensureSingle(Ee,"text","",function(pe){pe.attr("data-notex",1)}),ye=jD.ensureUniformFontSize(t,K_.determineTextFont(_,Z,A.font)),K=Z._text||" ",ce=ie&&K.indexOf("
")===-1;ke.text(K).classed("slicetext",!0).attr("text-anchor",S?"end":C||ce?"start":"middle").call(nLe.font,ye).call(SLt.convertToTspans,t),Z.textBB=nLe.bBox(ke.node()),Z.transform=f(Z,{fontSize:ye.size,isHeader:ie}),Z.transform.fontSize=ye.size,d?ke.transition().attrTween("transform",function(pe){var xe=b(pe,eZ,G(),[o,s]);return function(Ce){return h(xe(Ce))}}):ke.attr("transform",h(Z))}),H}});var uLe=_e((kpr,lLe)=>{"use strict";var LLt=$W(),PLt=sLe();lLe.exports=function(t,r,n,i){return LLt(t,r,n,i,{type:"treemap",drawDescendants:PLt})}});var fLe=_e((Cpr,cLe)=>{"use strict";cLe.exports={moduleType:"trace",name:"treemap",basePlotModule:k6e(),categories:[],animatable:!0,attributes:VD(),layoutAttributes:VW(),supplyDefaults:F6e(),supplyLayoutDefaults:O6e(),calc:GW().calc,crossTraceCalc:GW().crossTraceCalc,plot:uLe(),style:HD().style,colorbar:Kd(),meta:{}}});var dLe=_e((Lpr,hLe)=>{"use strict";hLe.exports=fLe()});var pLe=_e(z5=>{"use strict";var vLe=Xu();z5.name="icicle";z5.plot=function(e,t,r,n){vLe.plotBasePlot(z5.name,e,t,r,n)};z5.clean=function(e,t,r,n){vLe.cleanBasePlot(z5.name,e,t,r,n)}});var tZ=_e((Ipr,mLe)=>{"use strict";var ILt=Ho().hovertemplateAttrs,RLt=Ho().texttemplateAttrs,DLt=Jl(),zLt=Ju().attributes,VE=A2(),o0=ME(),WD=VD(),gLe=z2(),FLt=to().extendFlat,qLt=Ed().pattern;mLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:WD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:FLt({colors:o0.marker.colors,line:o0.marker.line,pattern:qLt,editType:"calc"},DLt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:WD.pathbar,text:VE.text,textinfo:o0.textinfo,texttemplate:RLt({editType:"plot"},{keys:gLe.eventDataKeys.concat(["label","value"])}),hovertext:VE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:ILt({},{keys:gLe.eventDataKeys}),textfont:VE.textfont,insidetextfont:VE.insidetextfont,outsidetextfont:WD.outsidetextfont,textposition:WD.textposition,sort:VE.sort,root:o0.root,domain:zLt({name:"icicle",trace:!0,editType:"calc"})}});var rZ=_e((Rpr,yLe)=>{"use strict";yLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var wLe=_e((Dpr,bLe)=>{"use strict";var _Le=Mr(),OLt=tZ(),BLt=ha(),NLt=Ju().defaults,ULt=r0().handleText,VLt=Qb().TEXTPAD,HLt=M2().handleMarkerDefaults,xLe=Su(),GLt=xLe.hasColorscale,jLt=xLe.handleDefaults;bLe.exports=function(t,r,n,i){function a(d,v){return _Le.coerce(t,r,OLt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),r.texttemplate||a("textinfo",_Le.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";ULt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),HLt(t,r,i,a);var h=r._hasColorscale=GLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&jLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:BLt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*VLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),NLt(r,i,a),r._length=null}});var ALe=_e((zpr,TLe)=>{"use strict";var WLt=Mr(),ZLt=rZ();TLe.exports=function(t,r){function n(i,a){return WLt.coerce(t,r,ZLt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var nZ=_e(iZ=>{"use strict";var MLe=kE();iZ.calc=function(e,t){return MLe.calc(e,t)};iZ.crossTraceCalc=function(e){return MLe._runCrossTraceCalc("icicle",e)}});var ELe=_e((qpr,SLe)=>{"use strict";var XLt=SE(),YLt=jW();SLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=XLt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&YLt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var aZ=_e((Opr,ILe)=>{"use strict";var kLe=ya(),CLe=ha(),LLe=Mr(),KLt=_v().resizeText,JLt=BD();function $Lt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");KLt(e,t,"icicle"),t.each(function(r){var n=kLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){kLe.select(this).call(PLe,o,a,e)})})}function PLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=LLe.castOption(r,o,"marker.line.color")||CLe.defaultLine,l=LLe.castOption(r,o,"marker.line.width")||0;e.call(JLt,t,r,n).style("stroke-width",l).call(CLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}ILe.exports={style:$Lt,styleOne:PLe}});var qLe=_e((Bpr,FLe)=>{"use strict";var RLe=ya(),ZD=Mr(),DLe=ro(),QLt=Pl(),ePt=ELe(),zLe=aZ().styleOne,oZ=z2(),F5=Ky(),tPt=BE(),rPt=UD().formatSliceLabel,sZ=!1;FLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,E={},k=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=ePt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),T=P.descendants(),F=1/0,q=-1/0;T.forEach(function(N){var Z=N.depth;Z>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(F=Math.min(F,Z),q=Math.max(q,Z))}),i=i.data(T,F5.getPtId),_._maxVisibleLayers=isFinite(q)?q-F+1:0,i.enter().append("g").classed("slice",!0),v(i,sZ,E,[o,s],c),i.order();var V=null;if(d&&p){var H=F5.getPtId(p);i.each(function(N){V===null&&F5.getPtId(N)===H&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var X=function(){return V||{x0:0,x1:o,y0:0,y1:s}},G=i;return d&&(G=G.transition().each("end",function(){var N=RLe.select(this);F5.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),G.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-_.tiling.pad),N._hoverY=u(g?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var Z=RLe.select(this),ie=ZD.ensureSingle(Z,"path","surface",function(ke){ke.style("pointer-events",k?"none":"all")});d?ie.transition().attrTween("d",function(ke){var ye=x(ke,sZ,X(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(K){return c(ye(K))}}):ie.attr("d",c),Z.call(tPt,n,t,r,{styleOne:zLe,eventDataKeys:oZ.eventDataKeys,transitionTime:oZ.CLICK_TRANSITION_TIME,transitionEasing:oZ.CLICK_TRANSITION_EASING}).call(F5.setSliceCursor,t,{isTransitioning:t._transitioning}),ie.call(zLe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=rPt(N,n,_,r,A)||"";var ae=ZD.ensureSingle(Z,"g","slicetext"),we=ZD.ensureSingle(ae,"text","",function(ke){ke.attr("data-notex",1)}),Ee=ZD.ensureUniformFontSize(t,F5.determineTextFont(_,N,A.font));we.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":C?"start":"middle").call(DLe.font,Ee).call(QLt.convertToTspans,t),N.textBB=DLe.bBox(we.node()),N.transform=f(N,{fontSize:Ee.size}),N.transform.fontSize=Ee.size,d?we.transition().attrTween("transform",function(ke){var ye=b(ke,sZ,X(),[o,s]);return function(K){return h(ye(K))}}):we.attr("transform",h(N))}),V}});var BLe=_e((Npr,OLe)=>{"use strict";var iPt=$W(),nPt=qLe();OLe.exports=function(t,r,n,i){return iPt(t,r,n,i,{type:"icicle",drawDescendants:nPt})}});var ULe=_e((Upr,NLe)=>{"use strict";NLe.exports={moduleType:"trace",name:"icicle",basePlotModule:pLe(),categories:[],animatable:!0,attributes:tZ(),layoutAttributes:rZ(),supplyDefaults:wLe(),supplyLayoutDefaults:ALe(),calc:nZ().calc,crossTraceCalc:nZ().crossTraceCalc,plot:BLe(),style:aZ().style,colorbar:Kd(),meta:{}}});var HLe=_e((Vpr,VLe)=>{"use strict";VLe.exports=ULe()});var jLe=_e(q5=>{"use strict";var GLe=Xu();q5.name="funnelarea";q5.plot=function(e,t,r,n){GLe.plotBasePlot(q5.name,e,t,r,n)};q5.clean=function(e,t,r,n){GLe.cleanBasePlot(q5.name,e,t,r,n)}});var lZ=_e((Gpr,WLe)=>{"use strict";var tv=A2(),aPt=vl(),oPt=Ju().attributes,sPt=Ho().hovertemplateAttrs,lPt=Ho().texttemplateAttrs,O2=to().extendFlat;WLe.exports={labels:tv.labels,label0:tv.label0,dlabel:tv.dlabel,values:tv.values,marker:{colors:tv.marker.colors,line:{color:O2({},tv.marker.line.color,{dflt:null}),width:O2({},tv.marker.line.width,{dflt:1}),editType:"calc"},pattern:tv.marker.pattern,editType:"calc"},text:tv.text,hovertext:tv.hovertext,scalegroup:O2({},tv.scalegroup,{}),textinfo:O2({},tv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:lPt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:O2({},aPt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:sPt({},{keys:["label","color","value","text","percent"]}),textposition:O2({},tv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:tv.textfont,insidetextfont:tv.insidetextfont,title:{text:tv.title.text,font:tv.title.font,position:O2({},tv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:oPt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var uZ=_e((jpr,ZLe)=>{"use strict";var uPt=vD().hiddenlabels;ZLe.exports={hiddenlabels:uPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var KLe=_e((Wpr,YLe)=>{"use strict";var XLe=Mr(),cPt=lZ(),fPt=Ju().defaults,hPt=r0().handleText,dPt=M2().handleLabelsAndValues,vPt=M2().handleMarkerDefaults;YLe.exports=function(t,r,n,i){function a(x,b){return XLe.coerce(t,r,cPt,x,b)}var o=a("labels"),s=a("values"),l=dPt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,vPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");hPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");fPt(r,i,a);var v=a("title.text");v&&(a("title.position"),XLe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var $Le=_e((Zpr,JLe)=>{"use strict";var pPt=Mr(),gPt=uZ();JLe.exports=function(t,r){function n(i,a){return pPt.coerce(t,r,gPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var cZ=_e((Xpr,ePe)=>{"use strict";var QLe=_5();function mPt(e,t){return QLe.calc(e,t)}function yPt(e){QLe.crossTraceCalc(e,{type:"funnelarea"})}ePe.exports={calc:mPt,crossTraceCalc:yPt}});var aPe=_e((Ypr,nPe)=>{"use strict";var B2=ya(),fZ=ro(),J_=Mr(),_Pt=J_.strScale,tPe=J_.strTranslate,rPe=Pl(),xPt=i2(),bPt=xPt.toMoveInsideBar,iPe=_v(),wPt=iPe.recordMinTextSize,TPt=iPe.clearMinTextSize,APt=u_(),O5=yD(),MPt=O5.attachFxHandlers,SPt=O5.determineInsideTextFont,EPt=O5.layoutAreas,kPt=O5.prerenderTitles,CPt=O5.positionTitleOutside,LPt=O5.formatSliceLabel;nPe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;TPt("funnelarea",i),kPt(r,t),EPt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;IPt(a),o.each(function(){var u=B2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,x=B2.select(this),b=x.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(MPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+hZ(f.TR,f.BR)+hZ(f.BR,f.BL)+hZ(f.BL,f.TL)+"Z";b.attr("d",p),LPt(t,f,s);var E=APt.castOption(l.textposition,f.pts),k=x.selectAll("g.slicetext").data(f.text&&E!=="none"?[0]:[]);k.enter().append("g").classed("slicetext",!0),k.exit().remove(),k.each(function(){var A=J_.ensureSingle(B2.select(this),"text","",function(F){F.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,SPt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fZ.font,L).call(rPe.convertToTspans,t);var _=fZ.bBox(A.node()),C,S,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;S=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,C=bPt(S,g,P,T,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,wPt(l.type,C,i),a[h].transform=C,J_.setTransormAndDisplay(A,C)})});var c=B2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=J_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=J_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(fZ.font,l.title.font).call(rPe.convertToTspans,t);var d=CPt(s,i._size);f.attr("transform",tPe(d.x,d.y)+_Pt(Math.min(1,d.scale))+tPe(d.tx,d.ty))})})})};function hZ(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function PPt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function IPt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var q=Math.sqrt(u);return{x:q,y:-q}}function f(){var q=c();return[q.x,q.y]}var h,d=[];d.push(f());var v,x;for(v=e.length-1;v>-1;v--)if(x=e[v],!x.hidden){var b=x.v/l;u+=b,d.push(f())}var p=1/0,E=-1/0;for(v=0;v-1;v--)if(x=e[v],!x.hidden){P+=1;var T=d[P][0],F=d[P][1];x.TL=[-T,F],x.TR=[T,F],x.BL=S,x.BR=g,x.pxmid=PPt(x.TR,x.BR),S=x.TL,g=x.TR}}});var lPe=_e((Kpr,sPe)=>{"use strict";var oPe=ya(),RPt=z3(),DPt=_v().resizeText;sPe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");DPt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=oPe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){oPe.select(this).call(RPt,s,a,t)})})}});var cPe=_e((Jpr,uPe)=>{"use strict";uPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:jLe(),categories:["pie-like","funnelarea","showLegend"],attributes:lZ(),layoutAttributes:uZ(),supplyDefaults:KLe(),supplyLayoutDefaults:$Le(),calc:cZ().calc,crossTraceCalc:cZ().crossTraceCalc,plot:aPe(),style:lPe(),styleOne:z3(),meta:{}}});var hPe=_e(($pr,fPe)=>{"use strict";fPe.exports=cPe()});var Rd=_e((Qpr,dPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(Ie,le){if(!(Ie instanceof le))throw new TypeError("Cannot call a class as a function")}function u(Ie,le){for(var be=0;beS)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var le=new Uint8Array(Ie);return Object.setPrototypeOf(le,T.prototype),le}function T(Ie,le,be){if(typeof Ie=="number"){if(typeof le=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return H(Ie)}return F(Ie,le,be)}T.poolSize=8192;function F(Ie,le,be){if(typeof Ie=="string")return X(Ie,le);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(rt(Ie,ArrayBuffer)||Ie&&rt(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(rt(Ie,SharedArrayBuffer)||Ie&&rt(Ie.buffer,SharedArrayBuffer)))return Z(Ie,le,be);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Qe=Ie.valueOf&&Ie.valueOf();if(Qe!=null&&Qe!==Ie)return T.from(Qe,le,be);var xt=ie(Ie);if(xt)return xt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),le,be);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,le,be){return F(Ie,le,be)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function q(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,le,be){return q(Ie),Ie<=0?P(Ie):le!==void 0?typeof be=="string"?P(Ie).fill(le,be):P(Ie).fill(le):P(Ie)}T.alloc=function(Ie,le,be){return V(Ie,le,be)};function H(Ie){return q(Ie),P(Ie<0?0:ae(Ie)|0)}T.allocUnsafe=function(Ie){return H(Ie)},T.allocUnsafeSlow=function(Ie){return H(Ie)};function X(Ie,le){if((typeof le!="string"||le==="")&&(le="utf8"),!T.isEncoding(le))throw new TypeError("Unknown encoding: "+le);var be=Ee(Ie,le)|0,Qe=P(be),xt=Qe.write(Ie,le);return xt!==be&&(Qe=Qe.slice(0,xt)),Qe}function G(Ie){for(var le=Ie.length<0?0:ae(Ie.length)|0,be=P(le),Qe=0;Qe=S)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S.toString(16)+" bytes");return Ie|0}function we(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(le){return le!=null&&le._isBuffer===!0&&le!==T.prototype},T.compare=function(le,be){if(rt(le,Uint8Array)&&(le=T.from(le,le.offset,le.byteLength)),rt(be,Uint8Array)&&(be=T.from(be,be.offset,be.byteLength)),!T.isBuffer(le)||!T.isBuffer(be))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(le===be)return 0;for(var Qe=le.length,xt=be.length,Ot=0,rr=Math.min(Qe,xt);Otxt.length?(T.isBuffer(rr)||(rr=T.from(rr)),rr.copy(xt,Ot)):Uint8Array.prototype.set.call(xt,rr,Ot);else if(T.isBuffer(rr))rr.copy(xt,Ot);else throw new TypeError('"list" argument must be an Array of Buffers');Ot+=rr.length}return xt};function Ee(Ie,le){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||rt(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var be=Ie.length,Qe=arguments.length>2&&arguments[2]===!0;if(!Qe&&be===0)return 0;for(var xt=!1;;)switch(le){case"ascii":case"latin1":case"binary":return be;case"utf8":case"utf-8":return _r(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be*2;case"hex":return be>>>1;case"base64":return Ur(Ie).length;default:if(xt)return Qe?-1:_r(Ie).length;le=(""+le).toLowerCase(),xt=!0}}T.byteLength=Ee;function ke(Ie,le,be){var Qe=!1;if((le===void 0||le<0)&&(le=0),le>this.length||((be===void 0||be>this.length)&&(be=this.length),be<=0)||(be>>>=0,le>>>=0,be<=le))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return nt(this,le,be);case"utf8":case"utf-8":return Se(this,le,be);case"ascii":return At(this,le,be);case"latin1":case"binary":return Yt(this,le,be);case"base64":return je(this,le,be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,le,be);default:if(Qe)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Qe=!0}}T.prototype._isBuffer=!0;function ye(Ie,le,be){var Qe=Ie[le];Ie[le]=Ie[be],Ie[be]=Qe}T.prototype.swap16=function(){var le=this.length;if(le%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var be=0;bebe&&(le+=" ... "),""},C&&(T.prototype[C]=T.prototype.inspect),T.prototype.compare=function(le,be,Qe,xt,Ot){if(rt(le,Uint8Array)&&(le=T.from(le,le.offset,le.byteLength)),!T.isBuffer(le))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(le));if(be===void 0&&(be=0),Qe===void 0&&(Qe=le?le.length:0),xt===void 0&&(xt=0),Ot===void 0&&(Ot=this.length),be<0||Qe>le.length||xt<0||Ot>this.length)throw new RangeError("out of range index");if(xt>=Ot&&be>=Qe)return 0;if(xt>=Ot)return-1;if(be>=Qe)return 1;if(be>>>=0,Qe>>>=0,xt>>>=0,Ot>>>=0,this===le)return 0;for(var rr=Ot-xt,Jr=Qe-be,ni=Math.min(rr,Jr),Gr=this.slice(xt,Ot),ri=le.slice(be,Qe),Ti=0;Ti2147483647?be=2147483647:be<-2147483648&&(be=-2147483648),be=+be,it(be)&&(be=xt?0:Ie.length-1),be<0&&(be=Ie.length+be),be>=Ie.length){if(xt)return-1;be=Ie.length-1}else if(be<0)if(xt)be=0;else return-1;if(typeof le=="string"&&(le=T.from(le,Qe)),T.isBuffer(le))return le.length===0?-1:ce(Ie,le,be,Qe,xt);if(typeof le=="number")return le=le&255,typeof Uint8Array.prototype.indexOf=="function"?xt?Uint8Array.prototype.indexOf.call(Ie,le,be):Uint8Array.prototype.lastIndexOf.call(Ie,le,be):ce(Ie,[le],be,Qe,xt);throw new TypeError("val must be string, number or Buffer")}function ce(Ie,le,be,Qe,xt){var Ot=1,rr=Ie.length,Jr=le.length;if(Qe!==void 0&&(Qe=String(Qe).toLowerCase(),Qe==="ucs2"||Qe==="ucs-2"||Qe==="utf16le"||Qe==="utf-16le")){if(Ie.length<2||le.length<2)return-1;Ot=2,rr/=2,Jr/=2,be/=2}function ni(Yi,Xi){return Ot===1?Yi[Xi]:Yi.readUInt16BE(Xi*Ot)}var Gr;if(xt){var ri=-1;for(Gr=be;Grrr&&(be=rr-Jr),Gr=be;Gr>=0;Gr--){for(var Ti=!0,an=0;anxt&&(Qe=xt)):Qe=xt;var Ot=le.length;Qe>Ot/2&&(Qe=Ot/2);var rr;for(rr=0;rr>>0,isFinite(Qe)?(Qe=Qe>>>0,xt===void 0&&(xt="utf8")):(xt=Qe,Qe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ot=this.length-be;if((Qe===void 0||Qe>Ot)&&(Qe=Ot),le.length>0&&(Qe<0||be<0)||be>this.length)throw new RangeError("Attempt to write outside buffer bounds");xt||(xt="utf8");for(var rr=!1;;)switch(xt){case"hex":return pe(this,le,be,Qe);case"utf8":case"utf-8":return xe(this,le,be,Qe);case"ascii":case"latin1":case"binary":return Ce(this,le,be,Qe);case"base64":return Me(this,le,be,Qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le(this,le,be,Qe);default:if(rr)throw new TypeError("Unknown encoding: "+xt);xt=(""+xt).toLowerCase(),rr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function je(Ie,le,be){return le===0&&be===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(le,be))}function Se(Ie,le,be){be=Math.min(Ie.length,be);for(var Qe=[],xt=le;xt239?4:Ot>223?3:Ot>191?2:1;if(xt+Jr<=be){var ni=void 0,Gr=void 0,ri=void 0,Ti=void 0;switch(Jr){case 1:Ot<128&&(rr=Ot);break;case 2:ni=Ie[xt+1],(ni&192)===128&&(Ti=(Ot&31)<<6|ni&63,Ti>127&&(rr=Ti));break;case 3:ni=Ie[xt+1],Gr=Ie[xt+2],(ni&192)===128&&(Gr&192)===128&&(Ti=(Ot&15)<<12|(ni&63)<<6|Gr&63,Ti>2047&&(Ti<55296||Ti>57343)&&(rr=Ti));break;case 4:ni=Ie[xt+1],Gr=Ie[xt+2],ri=Ie[xt+3],(ni&192)===128&&(Gr&192)===128&&(ri&192)===128&&(Ti=(Ot&15)<<18|(ni&63)<<12|(Gr&63)<<6|ri&63,Ti>65535&&Ti<1114112&&(rr=Ti))}}rr===null?(rr=65533,Jr=1):rr>65535&&(rr-=65536,Qe.push(rr>>>10&1023|55296),rr=56320|rr&1023),Qe.push(rr),xt+=Jr}return lt(Qe)}var Xe=4096;function lt(Ie){var le=Ie.length;if(le<=Xe)return String.fromCharCode.apply(String,Ie);for(var be="",Qe=0;QeQe)&&(be=Qe);for(var xt="",Ot=le;OtQe&&(le=Qe),be<0?(be+=Qe,be<0&&(be=0)):be>Qe&&(be=Qe),bebe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(le,be,Qe){le=le>>>0,be=be>>>0,Qe||Ft(le,be,this.length);for(var xt=this[le],Ot=1,rr=0;++rr>>0,be=be>>>0,Qe||Ft(le,be,this.length);for(var xt=this[le+--be],Ot=1;be>0&&(Ot*=256);)xt+=this[le+--be]*Ot;return xt},T.prototype.readUint8=T.prototype.readUInt8=function(le,be){return le=le>>>0,be||Ft(le,1,this.length),this[le]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(le,be){return le=le>>>0,be||Ft(le,2,this.length),this[le]|this[le+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(le,be){return le=le>>>0,be||Ft(le,2,this.length),this[le]<<8|this[le+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(le,be){return le=le>>>0,be||Ft(le,4,this.length),(this[le]|this[le+1]<<8|this[le+2]<<16)+this[le+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(le,be){return le=le>>>0,be||Ft(le,4,this.length),this[le]*16777216+(this[le+1]<<16|this[le+2]<<8|this[le+3])},T.prototype.readBigUInt64LE=Je(function(le){le=le>>>0,ft(le,"offset");var be=this[le],Qe=this[le+7];(be===void 0||Qe===void 0)&&Gt(le,this.length-8);var xt=be+this[++le]*Math.pow(2,8)+this[++le]*Math.pow(2,16)+this[++le]*Math.pow(2,24),Ot=this[++le]+this[++le]*Math.pow(2,8)+this[++le]*Math.pow(2,16)+Qe*Math.pow(2,24);return BigInt(xt)+(BigInt(Ot)<>>0,ft(le,"offset");var be=this[le],Qe=this[le+7];(be===void 0||Qe===void 0)&&Gt(le,this.length-8);var xt=be*Math.pow(2,24)+this[++le]*Math.pow(2,16)+this[++le]*Math.pow(2,8)+this[++le],Ot=this[++le]*Math.pow(2,24)+this[++le]*Math.pow(2,16)+this[++le]*Math.pow(2,8)+Qe;return(BigInt(xt)<>>0,be=be>>>0,Qe||Ft(le,be,this.length);for(var xt=this[le],Ot=1,rr=0;++rr=Ot&&(xt-=Math.pow(2,8*be)),xt},T.prototype.readIntBE=function(le,be,Qe){le=le>>>0,be=be>>>0,Qe||Ft(le,be,this.length);for(var xt=be,Ot=1,rr=this[le+--xt];xt>0&&(Ot*=256);)rr+=this[le+--xt]*Ot;return Ot*=128,rr>=Ot&&(rr-=Math.pow(2,8*be)),rr},T.prototype.readInt8=function(le,be){return le=le>>>0,be||Ft(le,1,this.length),this[le]&128?(255-this[le]+1)*-1:this[le]},T.prototype.readInt16LE=function(le,be){le=le>>>0,be||Ft(le,2,this.length);var Qe=this[le]|this[le+1]<<8;return Qe&32768?Qe|4294901760:Qe},T.prototype.readInt16BE=function(le,be){le=le>>>0,be||Ft(le,2,this.length);var Qe=this[le+1]|this[le]<<8;return Qe&32768?Qe|4294901760:Qe},T.prototype.readInt32LE=function(le,be){return le=le>>>0,be||Ft(le,4,this.length),this[le]|this[le+1]<<8|this[le+2]<<16|this[le+3]<<24},T.prototype.readInt32BE=function(le,be){return le=le>>>0,be||Ft(le,4,this.length),this[le]<<24|this[le+1]<<16|this[le+2]<<8|this[le+3]},T.prototype.readBigInt64LE=Je(function(le){le=le>>>0,ft(le,"offset");var be=this[le],Qe=this[le+7];(be===void 0||Qe===void 0)&&Gt(le,this.length-8);var xt=this[le+4]+this[le+5]*Math.pow(2,8)+this[le+6]*Math.pow(2,16)+(Qe<<24);return(BigInt(xt)<>>0,ft(le,"offset");var be=this[le],Qe=this[le+7];(be===void 0||Qe===void 0)&&Gt(le,this.length-8);var xt=(be<<24)+this[++le]*Math.pow(2,16)+this[++le]*Math.pow(2,8)+this[++le];return(BigInt(xt)<>>0,be||Ft(le,4,this.length),_.read(this,le,!0,23,4)},T.prototype.readFloatBE=function(le,be){return le=le>>>0,be||Ft(le,4,this.length),_.read(this,le,!1,23,4)},T.prototype.readDoubleLE=function(le,be){return le=le>>>0,be||Ft(le,8,this.length),_.read(this,le,!0,52,8)},T.prototype.readDoubleBE=function(le,be){return le=le>>>0,be||Ft(le,8,this.length),_.read(this,le,!1,52,8)};function Lt(Ie,le,be,Qe,xt,Ot){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(le>xt||leIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(le,be,Qe,xt){if(le=+le,be=be>>>0,Qe=Qe>>>0,!xt){var Ot=Math.pow(2,8*Qe)-1;Lt(this,le,be,Qe,Ot,0)}var rr=1,Jr=0;for(this[be]=le&255;++Jr>>0,Qe=Qe>>>0,!xt){var Ot=Math.pow(2,8*Qe)-1;Lt(this,le,be,Qe,Ot,0)}var rr=Qe-1,Jr=1;for(this[be+rr]=le&255;--rr>=0&&(Jr*=256);)this[be+rr]=le/Jr&255;return be+Qe},T.prototype.writeUint8=T.prototype.writeUInt8=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,1,255,0),this[be]=le&255,be+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,2,65535,0),this[be]=le&255,this[be+1]=le>>>8,be+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,2,65535,0),this[be]=le>>>8,this[be+1]=le&255,be+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,4,4294967295,0),this[be+3]=le>>>24,this[be+2]=le>>>16,this[be+1]=le>>>8,this[be]=le&255,be+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,4,4294967295,0),this[be]=le>>>24,this[be+1]=le>>>16,this[be+2]=le>>>8,this[be+3]=le&255,be+4};function Rt(Ie,le,be,Qe,xt){kt(le,Qe,xt,Ie,be,7);var Ot=Number(le&BigInt(4294967295));Ie[be++]=Ot,Ot=Ot>>8,Ie[be++]=Ot,Ot=Ot>>8,Ie[be++]=Ot,Ot=Ot>>8,Ie[be++]=Ot;var rr=Number(le>>BigInt(32)&BigInt(4294967295));return Ie[be++]=rr,rr=rr>>8,Ie[be++]=rr,rr=rr>>8,Ie[be++]=rr,rr=rr>>8,Ie[be++]=rr,be}function Xt(Ie,le,be,Qe,xt){kt(le,Qe,xt,Ie,be,7);var Ot=Number(le&BigInt(4294967295));Ie[be+7]=Ot,Ot=Ot>>8,Ie[be+6]=Ot,Ot=Ot>>8,Ie[be+5]=Ot,Ot=Ot>>8,Ie[be+4]=Ot;var rr=Number(le>>BigInt(32)&BigInt(4294967295));return Ie[be+3]=rr,rr=rr>>8,Ie[be+2]=rr,rr=rr>>8,Ie[be+1]=rr,rr=rr>>8,Ie[be]=rr,be+8}T.prototype.writeBigUInt64LE=Je(function(le){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Rt(this,le,be,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Je(function(le){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Xt(this,le,be,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(le,be,Qe,xt){if(le=+le,be=be>>>0,!xt){var Ot=Math.pow(2,8*Qe-1);Lt(this,le,be,Qe,Ot-1,-Ot)}var rr=0,Jr=1,ni=0;for(this[be]=le&255;++rr>0)-ni&255;return be+Qe},T.prototype.writeIntBE=function(le,be,Qe,xt){if(le=+le,be=be>>>0,!xt){var Ot=Math.pow(2,8*Qe-1);Lt(this,le,be,Qe,Ot-1,-Ot)}var rr=Qe-1,Jr=1,ni=0;for(this[be+rr]=le&255;--rr>=0&&(Jr*=256);)le<0&&ni===0&&this[be+rr+1]!==0&&(ni=1),this[be+rr]=(le/Jr>>0)-ni&255;return be+Qe},T.prototype.writeInt8=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,1,127,-128),le<0&&(le=255+le+1),this[be]=le&255,be+1},T.prototype.writeInt16LE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,2,32767,-32768),this[be]=le&255,this[be+1]=le>>>8,be+2},T.prototype.writeInt16BE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,2,32767,-32768),this[be]=le>>>8,this[be+1]=le&255,be+2},T.prototype.writeInt32LE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,4,2147483647,-2147483648),this[be]=le&255,this[be+1]=le>>>8,this[be+2]=le>>>16,this[be+3]=le>>>24,be+4},T.prototype.writeInt32BE=function(le,be,Qe){return le=+le,be=be>>>0,Qe||Lt(this,le,be,4,2147483647,-2147483648),le<0&&(le=4294967295+le+1),this[be]=le>>>24,this[be+1]=le>>>16,this[be+2]=le>>>8,this[be+3]=le&255,be+4},T.prototype.writeBigInt64LE=Je(function(le){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Rt(this,le,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Je(function(le){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Xt(this,le,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xr(Ie,le,be,Qe,xt,Ot){if(be+Qe>Ie.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("Index out of range")}function er(Ie,le,be,Qe,xt){return le=+le,be=be>>>0,xt||xr(Ie,le,be,4,34028234663852886e22,-34028234663852886e22),_.write(Ie,le,be,Qe,23,4),be+4}T.prototype.writeFloatLE=function(le,be,Qe){return er(this,le,be,!0,Qe)},T.prototype.writeFloatBE=function(le,be,Qe){return er(this,le,be,!1,Qe)};function Ge(Ie,le,be,Qe,xt){return le=+le,be=be>>>0,xt||xr(Ie,le,be,8,17976931348623157e292,-17976931348623157e292),_.write(Ie,le,be,Qe,52,8),be+8}T.prototype.writeDoubleLE=function(le,be,Qe){return Ge(this,le,be,!0,Qe)},T.prototype.writeDoubleBE=function(le,be,Qe){return Ge(this,le,be,!1,Qe)},T.prototype.copy=function(le,be,Qe,xt){if(!T.isBuffer(le))throw new TypeError("argument should be a Buffer");if(Qe||(Qe=0),!xt&&xt!==0&&(xt=this.length),be>=le.length&&(be=le.length),be||(be=0),xt>0&&xt=this.length)throw new RangeError("Index out of range");if(xt<0)throw new RangeError("sourceEnd out of bounds");xt>this.length&&(xt=this.length),le.length-be>>0,Qe=Qe===void 0?this.length:Qe>>>0,le||(le=0);var rr;if(typeof le=="number")for(rr=be;rrMath.pow(2,32)?xt=Ct(String(be)):typeof be=="bigint"&&(xt=String(be),(be>Math.pow(BigInt(2),BigInt(32))||be<-Math.pow(BigInt(2),BigInt(32)))&&(xt=Ct(xt)),xt+="n"),Qe+=" It must be ".concat(le,". Received ").concat(xt),Qe},RangeError);function Ct(Ie){for(var le="",be=Ie.length,Qe=Ie[0]==="-"?1:0;be>=Qe+4;be-=3)le="_".concat(Ie.slice(be-3,be)).concat(le);return"".concat(Ie.slice(0,be)).concat(le)}function St(Ie,le,be){ft(le,"offset"),(Ie[le]===void 0||Ie[le+be]===void 0)&&Gt(le,Ie.length-(be+1))}function kt(Ie,le,be,Qe,xt,Ot){if(Ie>be||Ie3?le===0||le===BigInt(0)?Jr=">= 0".concat(rr," and < 2").concat(rr," ** ").concat((Ot+1)*8).concat(rr):Jr=">= -(2".concat(rr," ** ").concat((Ot+1)*8-1).concat(rr,") and < 2 ** ")+"".concat((Ot+1)*8-1).concat(rr):Jr=">= ".concat(le).concat(rr," and <= ").concat(be).concat(rr),new yt.ERR_OUT_OF_RANGE("value",Jr,Ie)}St(Qe,xt,Ot)}function ft(Ie,le){if(typeof Ie!="number")throw new yt.ERR_INVALID_ARG_TYPE(le,"number",Ie)}function Gt(Ie,le,be){throw Math.floor(Ie)!==Ie?(ft(Ie,be),new yt.ERR_OUT_OF_RANGE(be||"offset","an integer",Ie)):le<0?new yt.ERR_BUFFER_OUT_OF_BOUNDS:new yt.ERR_OUT_OF_RANGE(be||"offset",">= ".concat(be?1:0," and <= ").concat(le),Ie)}var $t=/[^+/0-9A-Za-z-_]/g;function hr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace($t,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function _r(Ie,le){le=le||1/0;for(var be,Qe=Ie.length,xt=null,Ot=[],rr=0;rr55295&&be<57344){if(!xt){if(be>56319){(le-=3)>-1&&Ot.push(239,191,189);continue}else if(rr+1===Qe){(le-=3)>-1&&Ot.push(239,191,189);continue}xt=be;continue}if(be<56320){(le-=3)>-1&&Ot.push(239,191,189),xt=be;continue}be=(xt-55296<<10|be-56320)+65536}else xt&&(le-=3)>-1&&Ot.push(239,191,189);if(xt=null,be<128){if((le-=1)<0)break;Ot.push(be)}else if(be<2048){if((le-=2)<0)break;Ot.push(be>>6|192,be&63|128)}else if(be<65536){if((le-=3)<0)break;Ot.push(be>>12|224,be>>6&63|128,be&63|128)}else if(be<1114112){if((le-=4)<0)break;Ot.push(be>>18|240,be>>12&63|128,be>>6&63|128,be&63|128)}else throw new Error("Invalid code point")}return Ot}function Nr(Ie){for(var le=[],be=0;be>8,xt=be%256,Ot.push(xt),Ot.push(Qe);return Ot}function Ur(Ie){return L.toByteArray(hr(Ie))}function ut(Ie,le,be,Qe){var xt;for(xt=0;xt=le.length||xt>=Ie.length);++xt)le[xt+be]=Ie[xt];return xt}function rt(Ie,le){return Ie instanceof le||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===le.name}function it(Ie){return Ie!==Ie}var Ze=function(){for(var Ie="0123456789abcdef",le=new Array(256),be=0;be<16;++be)for(var Qe=be*16,xt=0;xt<16;++xt)le[Qe+xt]=Ie[be]+Ie[xt];return le}();function Je(Ie){return typeof BigInt=="undefined"?ht:Ie}function ht(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=k.indexOf("=");L===-1&&(L=A);var _=L===A?0:4-L%4;return[L,_]}function d(k){var A=h(k),L=A[0],_=A[1];return(L+_)*3/4-_}function v(k,A,L){return(A+L)*3/4-L}function x(k){var A,L=h(k),_=L[0],C=L[1],S=new l(v(k,_,C)),g=0,P=C>0?_-4:_,T;for(T=0;T>16&255,S[g++]=A>>8&255,S[g++]=A&255;return C===2&&(A=s[k.charCodeAt(T)]<<2|s[k.charCodeAt(T+1)]>>4,S[g++]=A&255),C===1&&(A=s[k.charCodeAt(T)]<<10|s[k.charCodeAt(T+1)]<<4|s[k.charCodeAt(T+2)]>>2,S[g++]=A>>8&255,S[g++]=A&255),S}function b(k){return o[k>>18&63]+o[k>>12&63]+o[k>>6&63]+o[k&63]}function p(k,A,L){for(var _,C=[],S=A;SP?P:g+S));return _===1?(A=k[L-1],C.push(o[A>>2]+o[A<<4&63]+"==")):_===2&&(A=(k[L-2]<<8)+k[L-1],C.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,x){if(s(v))return x?h(v,d(x)):[v[0].clone(),v[1].clone()];var b=0,p,E;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(x))p.mul(x[1]),E=x[0].clone();else if(l(x))E=x.clone();else if(typeof x=="string")E=c(x);else if(!x)E=u(1);else if(x===Math.floor(x))E=u(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;E=u(x)}return b>0?p=p.ushln(b):b<0&&(E=E.ushln(-b)),f(p,E)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,x=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*x;if(x){var E=l(x)+4,k=s(b.ushln(E).divRound(h));return p*(x+k*Math.pow(2,-E))}else{var A=h.bitLength()-b.bitLength()+53,k=s(b.ushln(A).divRound(h));return A<1023?p*k*Math.pow(2,-A):(k*=Math.pow(2,-1023),p*k*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,E=f[p],k=d!==void 0?d(E,h):E-h;k>=0?(b=p,x=p-1):v=p+1}return b}function o(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,E=f[p],k=d!==void 0?d(E,h):E-h;k>0?(b=p,x=p-1):v=p+1}return b}function s(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,E=f[p],k=d!==void 0?d(E,h):E-h;k<0?(b=p,v=p+1):x=p-1}return b}function l(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,E=f[p],k=d!==void 0?d(E,h):E-h;k<=0?(b=p,v=p+1):x=p-1}return b}function u(f,h,d,v,x){for(;v<=x;){var b=v+x>>>1,p=f[b],E=d!==void 0?d(p,h):p-h;if(E===0)return b;E<=0?v=b+1:x=b-1}return-1}function c(f,h,d,v,x,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,x===void 0?f.length-1:x|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,x){return c(f,h,d,v,x,a)},gt:function(f,h,d,v,x){return c(f,h,d,v,x,o)},lt:function(f,h,d,v,x){return c(f,h,d,v,x,s)},le:function(f,h,d,v,x){return c(f,h,d,v,x,l)},eq:function(f,h,d,v,x){return c(f,h,d,v,x,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(G,N){if(!G)throw new Error(N||"Assertion failed")}function c(G,N){G.super_=N;var Z=function(){};Z.prototype=N.prototype,G.prototype=new Z,G.prototype.constructor=G}function f(G,N,Z){if(f.isBN(G))return G;this.negative=0,this.words=null,this.length=0,this.red=null,G!==null&&((N==="le"||N==="be")&&(Z=N,N=10),this._init(G||0,N||10,Z||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(G){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,Z){return N.cmp(Z)>0?N:Z},f.min=function(N,Z){return N.cmp(Z)<0?N:Z},f.prototype._init=function(N,Z,ie){if(typeof N=="number")return this._initNumber(N,Z,ie);if(typeof N=="object")return this._initArray(N,Z,ie);Z==="hex"&&(Z=16),u(Z===(Z|0)&&Z>=2&&Z<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Ee=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[we]|=Ee<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,we++);else if(ie==="le")for(ae=0,we=0;ae>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,we++);return this.strip()};function d(G,N){var Z=G.charCodeAt(N);return Z>=65&&Z<=70?Z-55:Z>=97&&Z<=102?Z-87:Z-48&15}function v(G,N,Z){var ie=d(G,Z);return Z-1>=N&&(ie|=d(G,Z-1)<<4),ie}f.prototype._parseHex=function(N,Z,ie){this.length=Math.ceil((N.length-Z)/6),this.words=new Array(this.length);for(var ae=0;ae=Z;ae-=2)ke=v(N,Z,ae)<=18?(we-=18,Ee+=1,this.words[Ee]|=ke>>>26):we+=8;else{var ye=N.length-Z;for(ae=ye%2===0?Z+1:Z;ae=18?(we-=18,Ee+=1,this.words[Ee]|=ke>>>26):we+=8}this.strip()};function x(G,N,Z,ie){for(var ae=0,we=Math.min(G.length,Z),Ee=N;Ee=49?ae+=ke-49+10:ke>=17?ae+=ke-17+10:ae+=ke}return ae}f.prototype._parseBase=function(N,Z,ie){this.words=[0],this.length=1;for(var ae=0,we=1;we<=67108863;we*=Z)ae++;ae--,we=we/Z|0;for(var Ee=N.length-ie,ke=Ee%ae,ye=Math.min(Ee,Ee-ke)+ie,K=0,ce=ie;ce1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,Z){N=N||10,Z=Z|0||1;var ie;if(N===16||N==="hex"){ie="";for(var ae=0,we=0,Ee=0;Ee>>24-ae&16777215,we!==0||Ee!==this.length-1?ie=b[6-ye.length]+ye+ie:ie=ye+ie,ae+=2,ae>=26&&(ae-=26,Ee--)}for(we!==0&&(ie=we.toString(16)+ie);ie.length%Z!==0;)ie="0"+ie;return this.negative!==0&&(ie="-"+ie),ie}if(N===(N|0)&&N>=2&&N<=36){var K=p[N],ce=E[N];ie="";var pe=this.clone();for(pe.negative=0;!pe.isZero();){var xe=pe.modn(ce).toString(N);pe=pe.idivn(ce),pe.isZero()?ie=xe+ie:ie=b[K-xe.length]+xe+ie}for(this.isZero()&&(ie="0"+ie);ie.length%Z!==0;)ie="0"+ie;return this.negative!==0&&(ie="-"+ie),ie}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,Z){return u(typeof h!="undefined"),this.toArrayLike(h,N,Z)},f.prototype.toArray=function(N,Z){return this.toArrayLike(Array,N,Z)},f.prototype.toArrayLike=function(N,Z,ie){var ae=this.byteLength(),we=ie||Math.max(1,ae);u(ae<=we,"byte array longer than desired length"),u(we>0,"Requested array length <= 0"),this.strip();var Ee=Z==="le",ke=new N(we),ye,K,ce=this.clone();if(Ee){for(K=0;!ce.isZero();K++)ye=ce.andln(255),ce.iushrn(8),ke[K]=ye;for(;K=4096&&(ie+=13,Z>>>=13),Z>=64&&(ie+=7,Z>>>=7),Z>=8&&(ie+=4,Z>>>=4),Z>=2&&(ie+=2,Z>>>=2),ie+Z},f.prototype._zeroBits=function(N){if(N===0)return 26;var Z=N,ie=0;return Z&8191||(ie+=13,Z>>>=13),Z&127||(ie+=7,Z>>>=7),Z&15||(ie+=4,Z>>>=4),Z&3||(ie+=2,Z>>>=2),Z&1||ie++,ie},f.prototype.bitLength=function(){var N=this.words[this.length-1],Z=this._countBits(N);return(this.length-1)*26+Z};function k(G){for(var N=new Array(G.bitLength()),Z=0;Z>>ae}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,Z=0;ZN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var Z;this.length>N.length?Z=N:Z=this;for(var ie=0;ieN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var Z,ie;this.length>N.length?(Z=this,ie=N):(Z=N,ie=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var Z=Math.ceil(N/26)|0,ie=N%26;this._expand(Z),ie>0&&Z--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-ie),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,Z){u(typeof N=="number"&&N>=0);var ie=N/26|0,ae=N%26;return this._expand(ie+1),Z?this.words[ie]=this.words[ie]|1<N.length?(ie=this,ae=N):(ie=N,ae=this);for(var we=0,Ee=0;Ee>>26;for(;we!==0&&Ee>>26;if(this.length=ie.length,we!==0)this.words[this.length]=we,this.length++;else if(ie!==this)for(;EeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var Z=this.iadd(N);return N.negative=1,Z._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var ie=this.cmp(N);if(ie===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,we;ie>0?(ae=this,we=N):(ae=N,we=this);for(var Ee=0,ke=0;ke>26,this.words[ke]=Z&67108863;for(;Ee!==0&&ke>26,this.words[ke]=Z&67108863;if(Ee===0&&ke>>26,pe=ye&67108863,xe=Math.min(K,N.length-1),Ce=Math.max(0,K-G.length+1);Ce<=xe;Ce++){var Me=K-Ce|0;ae=G.words[Me]|0,we=N.words[Ce]|0,Ee=ae*we+pe,ce+=Ee/67108864|0,pe=Ee&67108863}Z.words[K]=pe|0,ye=ce|0}return ye!==0?Z.words[K]=ye|0:Z.length--,Z.strip()}var L=function(N,Z,ie){var ae=N.words,we=Z.words,Ee=ie.words,ke=0,ye,K,ce,pe=ae[0]|0,xe=pe&8191,Ce=pe>>>13,Me=ae[1]|0,Le=Me&8191,je=Me>>>13,Se=ae[2]|0,Xe=Se&8191,lt=Se>>>13,At=ae[3]|0,Yt=At&8191,nt=At>>>13,ot=ae[4]|0,Ft=ot&8191,Lt=ot>>>13,Rt=ae[5]|0,Xt=Rt&8191,xr=Rt>>>13,er=ae[6]|0,Ge=er&8191,yt=er>>>13,_t=ae[7]|0,Ct=_t&8191,St=_t>>>13,kt=ae[8]|0,ft=kt&8191,Gt=kt>>>13,$t=ae[9]|0,hr=$t&8191,_r=$t>>>13,Nr=we[0]|0,Br=Nr&8191,Ur=Nr>>>13,ut=we[1]|0,rt=ut&8191,it=ut>>>13,Ze=we[2]|0,Je=Ze&8191,ht=Ze>>>13,Ie=we[3]|0,le=Ie&8191,be=Ie>>>13,Qe=we[4]|0,xt=Qe&8191,Ot=Qe>>>13,rr=we[5]|0,Jr=rr&8191,ni=rr>>>13,Gr=we[6]|0,ri=Gr&8191,Ti=Gr>>>13,an=we[7]|0,Yi=an&8191,Xi=an>>>13,An=we[8]|0,Qi=An&8191,Un=An>>>13,Xn=we[9]|0,It=Xn&8191,ct=Xn>>>13;ie.negative=N.negative^Z.negative,ie.length=19,ye=Math.imul(xe,Br),K=Math.imul(xe,Ur),K=K+Math.imul(Ce,Br)|0,ce=Math.imul(Ce,Ur);var Vt=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,ye=Math.imul(Le,Br),K=Math.imul(Le,Ur),K=K+Math.imul(je,Br)|0,ce=Math.imul(je,Ur),ye=ye+Math.imul(xe,rt)|0,K=K+Math.imul(xe,it)|0,K=K+Math.imul(Ce,rt)|0,ce=ce+Math.imul(Ce,it)|0;var Wt=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,ye=Math.imul(Xe,Br),K=Math.imul(Xe,Ur),K=K+Math.imul(lt,Br)|0,ce=Math.imul(lt,Ur),ye=ye+Math.imul(Le,rt)|0,K=K+Math.imul(Le,it)|0,K=K+Math.imul(je,rt)|0,ce=ce+Math.imul(je,it)|0,ye=ye+Math.imul(xe,Je)|0,K=K+Math.imul(xe,ht)|0,K=K+Math.imul(Ce,Je)|0,ce=ce+Math.imul(Ce,ht)|0;var gr=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(gr>>>26)|0,gr&=67108863,ye=Math.imul(Yt,Br),K=Math.imul(Yt,Ur),K=K+Math.imul(nt,Br)|0,ce=Math.imul(nt,Ur),ye=ye+Math.imul(Xe,rt)|0,K=K+Math.imul(Xe,it)|0,K=K+Math.imul(lt,rt)|0,ce=ce+Math.imul(lt,it)|0,ye=ye+Math.imul(Le,Je)|0,K=K+Math.imul(Le,ht)|0,K=K+Math.imul(je,Je)|0,ce=ce+Math.imul(je,ht)|0,ye=ye+Math.imul(xe,le)|0,K=K+Math.imul(xe,be)|0,K=K+Math.imul(Ce,le)|0,ce=ce+Math.imul(Ce,be)|0;var qr=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(qr>>>26)|0,qr&=67108863,ye=Math.imul(Ft,Br),K=Math.imul(Ft,Ur),K=K+Math.imul(Lt,Br)|0,ce=Math.imul(Lt,Ur),ye=ye+Math.imul(Yt,rt)|0,K=K+Math.imul(Yt,it)|0,K=K+Math.imul(nt,rt)|0,ce=ce+Math.imul(nt,it)|0,ye=ye+Math.imul(Xe,Je)|0,K=K+Math.imul(Xe,ht)|0,K=K+Math.imul(lt,Je)|0,ce=ce+Math.imul(lt,ht)|0,ye=ye+Math.imul(Le,le)|0,K=K+Math.imul(Le,be)|0,K=K+Math.imul(je,le)|0,ce=ce+Math.imul(je,be)|0,ye=ye+Math.imul(xe,xt)|0,K=K+Math.imul(xe,Ot)|0,K=K+Math.imul(Ce,xt)|0,ce=ce+Math.imul(Ce,Ot)|0;var Zr=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,ye=Math.imul(Xt,Br),K=Math.imul(Xt,Ur),K=K+Math.imul(xr,Br)|0,ce=Math.imul(xr,Ur),ye=ye+Math.imul(Ft,rt)|0,K=K+Math.imul(Ft,it)|0,K=K+Math.imul(Lt,rt)|0,ce=ce+Math.imul(Lt,it)|0,ye=ye+Math.imul(Yt,Je)|0,K=K+Math.imul(Yt,ht)|0,K=K+Math.imul(nt,Je)|0,ce=ce+Math.imul(nt,ht)|0,ye=ye+Math.imul(Xe,le)|0,K=K+Math.imul(Xe,be)|0,K=K+Math.imul(lt,le)|0,ce=ce+Math.imul(lt,be)|0,ye=ye+Math.imul(Le,xt)|0,K=K+Math.imul(Le,Ot)|0,K=K+Math.imul(je,xt)|0,ce=ce+Math.imul(je,Ot)|0,ye=ye+Math.imul(xe,Jr)|0,K=K+Math.imul(xe,ni)|0,K=K+Math.imul(Ce,Jr)|0,ce=ce+Math.imul(Ce,ni)|0;var Hr=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,ye=Math.imul(Ge,Br),K=Math.imul(Ge,Ur),K=K+Math.imul(yt,Br)|0,ce=Math.imul(yt,Ur),ye=ye+Math.imul(Xt,rt)|0,K=K+Math.imul(Xt,it)|0,K=K+Math.imul(xr,rt)|0,ce=ce+Math.imul(xr,it)|0,ye=ye+Math.imul(Ft,Je)|0,K=K+Math.imul(Ft,ht)|0,K=K+Math.imul(Lt,Je)|0,ce=ce+Math.imul(Lt,ht)|0,ye=ye+Math.imul(Yt,le)|0,K=K+Math.imul(Yt,be)|0,K=K+Math.imul(nt,le)|0,ce=ce+Math.imul(nt,be)|0,ye=ye+Math.imul(Xe,xt)|0,K=K+Math.imul(Xe,Ot)|0,K=K+Math.imul(lt,xt)|0,ce=ce+Math.imul(lt,Ot)|0,ye=ye+Math.imul(Le,Jr)|0,K=K+Math.imul(Le,ni)|0,K=K+Math.imul(je,Jr)|0,ce=ce+Math.imul(je,ni)|0,ye=ye+Math.imul(xe,ri)|0,K=K+Math.imul(xe,Ti)|0,K=K+Math.imul(Ce,ri)|0,ce=ce+Math.imul(Ce,Ti)|0;var mi=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(mi>>>26)|0,mi&=67108863,ye=Math.imul(Ct,Br),K=Math.imul(Ct,Ur),K=K+Math.imul(St,Br)|0,ce=Math.imul(St,Ur),ye=ye+Math.imul(Ge,rt)|0,K=K+Math.imul(Ge,it)|0,K=K+Math.imul(yt,rt)|0,ce=ce+Math.imul(yt,it)|0,ye=ye+Math.imul(Xt,Je)|0,K=K+Math.imul(Xt,ht)|0,K=K+Math.imul(xr,Je)|0,ce=ce+Math.imul(xr,ht)|0,ye=ye+Math.imul(Ft,le)|0,K=K+Math.imul(Ft,be)|0,K=K+Math.imul(Lt,le)|0,ce=ce+Math.imul(Lt,be)|0,ye=ye+Math.imul(Yt,xt)|0,K=K+Math.imul(Yt,Ot)|0,K=K+Math.imul(nt,xt)|0,ce=ce+Math.imul(nt,Ot)|0,ye=ye+Math.imul(Xe,Jr)|0,K=K+Math.imul(Xe,ni)|0,K=K+Math.imul(lt,Jr)|0,ce=ce+Math.imul(lt,ni)|0,ye=ye+Math.imul(Le,ri)|0,K=K+Math.imul(Le,Ti)|0,K=K+Math.imul(je,ri)|0,ce=ce+Math.imul(je,Ti)|0,ye=ye+Math.imul(xe,Yi)|0,K=K+Math.imul(xe,Xi)|0,K=K+Math.imul(Ce,Yi)|0,ce=ce+Math.imul(Ce,Xi)|0;var Ei=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,ye=Math.imul(ft,Br),K=Math.imul(ft,Ur),K=K+Math.imul(Gt,Br)|0,ce=Math.imul(Gt,Ur),ye=ye+Math.imul(Ct,rt)|0,K=K+Math.imul(Ct,it)|0,K=K+Math.imul(St,rt)|0,ce=ce+Math.imul(St,it)|0,ye=ye+Math.imul(Ge,Je)|0,K=K+Math.imul(Ge,ht)|0,K=K+Math.imul(yt,Je)|0,ce=ce+Math.imul(yt,ht)|0,ye=ye+Math.imul(Xt,le)|0,K=K+Math.imul(Xt,be)|0,K=K+Math.imul(xr,le)|0,ce=ce+Math.imul(xr,be)|0,ye=ye+Math.imul(Ft,xt)|0,K=K+Math.imul(Ft,Ot)|0,K=K+Math.imul(Lt,xt)|0,ce=ce+Math.imul(Lt,Ot)|0,ye=ye+Math.imul(Yt,Jr)|0,K=K+Math.imul(Yt,ni)|0,K=K+Math.imul(nt,Jr)|0,ce=ce+Math.imul(nt,ni)|0,ye=ye+Math.imul(Xe,ri)|0,K=K+Math.imul(Xe,Ti)|0,K=K+Math.imul(lt,ri)|0,ce=ce+Math.imul(lt,Ti)|0,ye=ye+Math.imul(Le,Yi)|0,K=K+Math.imul(Le,Xi)|0,K=K+Math.imul(je,Yi)|0,ce=ce+Math.imul(je,Xi)|0,ye=ye+Math.imul(xe,Qi)|0,K=K+Math.imul(xe,Un)|0,K=K+Math.imul(Ce,Qi)|0,ce=ce+Math.imul(Ce,Un)|0;var ki=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(ki>>>26)|0,ki&=67108863,ye=Math.imul(hr,Br),K=Math.imul(hr,Ur),K=K+Math.imul(_r,Br)|0,ce=Math.imul(_r,Ur),ye=ye+Math.imul(ft,rt)|0,K=K+Math.imul(ft,it)|0,K=K+Math.imul(Gt,rt)|0,ce=ce+Math.imul(Gt,it)|0,ye=ye+Math.imul(Ct,Je)|0,K=K+Math.imul(Ct,ht)|0,K=K+Math.imul(St,Je)|0,ce=ce+Math.imul(St,ht)|0,ye=ye+Math.imul(Ge,le)|0,K=K+Math.imul(Ge,be)|0,K=K+Math.imul(yt,le)|0,ce=ce+Math.imul(yt,be)|0,ye=ye+Math.imul(Xt,xt)|0,K=K+Math.imul(Xt,Ot)|0,K=K+Math.imul(xr,xt)|0,ce=ce+Math.imul(xr,Ot)|0,ye=ye+Math.imul(Ft,Jr)|0,K=K+Math.imul(Ft,ni)|0,K=K+Math.imul(Lt,Jr)|0,ce=ce+Math.imul(Lt,ni)|0,ye=ye+Math.imul(Yt,ri)|0,K=K+Math.imul(Yt,Ti)|0,K=K+Math.imul(nt,ri)|0,ce=ce+Math.imul(nt,Ti)|0,ye=ye+Math.imul(Xe,Yi)|0,K=K+Math.imul(Xe,Xi)|0,K=K+Math.imul(lt,Yi)|0,ce=ce+Math.imul(lt,Xi)|0,ye=ye+Math.imul(Le,Qi)|0,K=K+Math.imul(Le,Un)|0,K=K+Math.imul(je,Qi)|0,ce=ce+Math.imul(je,Un)|0,ye=ye+Math.imul(xe,It)|0,K=K+Math.imul(xe,ct)|0,K=K+Math.imul(Ce,It)|0,ce=ce+Math.imul(Ce,ct)|0;var Ri=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,ye=Math.imul(hr,rt),K=Math.imul(hr,it),K=K+Math.imul(_r,rt)|0,ce=Math.imul(_r,it),ye=ye+Math.imul(ft,Je)|0,K=K+Math.imul(ft,ht)|0,K=K+Math.imul(Gt,Je)|0,ce=ce+Math.imul(Gt,ht)|0,ye=ye+Math.imul(Ct,le)|0,K=K+Math.imul(Ct,be)|0,K=K+Math.imul(St,le)|0,ce=ce+Math.imul(St,be)|0,ye=ye+Math.imul(Ge,xt)|0,K=K+Math.imul(Ge,Ot)|0,K=K+Math.imul(yt,xt)|0,ce=ce+Math.imul(yt,Ot)|0,ye=ye+Math.imul(Xt,Jr)|0,K=K+Math.imul(Xt,ni)|0,K=K+Math.imul(xr,Jr)|0,ce=ce+Math.imul(xr,ni)|0,ye=ye+Math.imul(Ft,ri)|0,K=K+Math.imul(Ft,Ti)|0,K=K+Math.imul(Lt,ri)|0,ce=ce+Math.imul(Lt,Ti)|0,ye=ye+Math.imul(Yt,Yi)|0,K=K+Math.imul(Yt,Xi)|0,K=K+Math.imul(nt,Yi)|0,ce=ce+Math.imul(nt,Xi)|0,ye=ye+Math.imul(Xe,Qi)|0,K=K+Math.imul(Xe,Un)|0,K=K+Math.imul(lt,Qi)|0,ce=ce+Math.imul(lt,Un)|0,ye=ye+Math.imul(Le,It)|0,K=K+Math.imul(Le,ct)|0,K=K+Math.imul(je,It)|0,ce=ce+Math.imul(je,ct)|0;var ji=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(ji>>>26)|0,ji&=67108863,ye=Math.imul(hr,Je),K=Math.imul(hr,ht),K=K+Math.imul(_r,Je)|0,ce=Math.imul(_r,ht),ye=ye+Math.imul(ft,le)|0,K=K+Math.imul(ft,be)|0,K=K+Math.imul(Gt,le)|0,ce=ce+Math.imul(Gt,be)|0,ye=ye+Math.imul(Ct,xt)|0,K=K+Math.imul(Ct,Ot)|0,K=K+Math.imul(St,xt)|0,ce=ce+Math.imul(St,Ot)|0,ye=ye+Math.imul(Ge,Jr)|0,K=K+Math.imul(Ge,ni)|0,K=K+Math.imul(yt,Jr)|0,ce=ce+Math.imul(yt,ni)|0,ye=ye+Math.imul(Xt,ri)|0,K=K+Math.imul(Xt,Ti)|0,K=K+Math.imul(xr,ri)|0,ce=ce+Math.imul(xr,Ti)|0,ye=ye+Math.imul(Ft,Yi)|0,K=K+Math.imul(Ft,Xi)|0,K=K+Math.imul(Lt,Yi)|0,ce=ce+Math.imul(Lt,Xi)|0,ye=ye+Math.imul(Yt,Qi)|0,K=K+Math.imul(Yt,Un)|0,K=K+Math.imul(nt,Qi)|0,ce=ce+Math.imul(nt,Un)|0,ye=ye+Math.imul(Xe,It)|0,K=K+Math.imul(Xe,ct)|0,K=K+Math.imul(lt,It)|0,ce=ce+Math.imul(lt,ct)|0;var $i=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+($i>>>26)|0,$i&=67108863,ye=Math.imul(hr,le),K=Math.imul(hr,be),K=K+Math.imul(_r,le)|0,ce=Math.imul(_r,be),ye=ye+Math.imul(ft,xt)|0,K=K+Math.imul(ft,Ot)|0,K=K+Math.imul(Gt,xt)|0,ce=ce+Math.imul(Gt,Ot)|0,ye=ye+Math.imul(Ct,Jr)|0,K=K+Math.imul(Ct,ni)|0,K=K+Math.imul(St,Jr)|0,ce=ce+Math.imul(St,ni)|0,ye=ye+Math.imul(Ge,ri)|0,K=K+Math.imul(Ge,Ti)|0,K=K+Math.imul(yt,ri)|0,ce=ce+Math.imul(yt,Ti)|0,ye=ye+Math.imul(Xt,Yi)|0,K=K+Math.imul(Xt,Xi)|0,K=K+Math.imul(xr,Yi)|0,ce=ce+Math.imul(xr,Xi)|0,ye=ye+Math.imul(Ft,Qi)|0,K=K+Math.imul(Ft,Un)|0,K=K+Math.imul(Lt,Qi)|0,ce=ce+Math.imul(Lt,Un)|0,ye=ye+Math.imul(Yt,It)|0,K=K+Math.imul(Yt,ct)|0,K=K+Math.imul(nt,It)|0,ce=ce+Math.imul(nt,ct)|0;var Sa=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Sa>>>26)|0,Sa&=67108863,ye=Math.imul(hr,xt),K=Math.imul(hr,Ot),K=K+Math.imul(_r,xt)|0,ce=Math.imul(_r,Ot),ye=ye+Math.imul(ft,Jr)|0,K=K+Math.imul(ft,ni)|0,K=K+Math.imul(Gt,Jr)|0,ce=ce+Math.imul(Gt,ni)|0,ye=ye+Math.imul(Ct,ri)|0,K=K+Math.imul(Ct,Ti)|0,K=K+Math.imul(St,ri)|0,ce=ce+Math.imul(St,Ti)|0,ye=ye+Math.imul(Ge,Yi)|0,K=K+Math.imul(Ge,Xi)|0,K=K+Math.imul(yt,Yi)|0,ce=ce+Math.imul(yt,Xi)|0,ye=ye+Math.imul(Xt,Qi)|0,K=K+Math.imul(Xt,Un)|0,K=K+Math.imul(xr,Qi)|0,ce=ce+Math.imul(xr,Un)|0,ye=ye+Math.imul(Ft,It)|0,K=K+Math.imul(Ft,ct)|0,K=K+Math.imul(Lt,It)|0,ce=ce+Math.imul(Lt,ct)|0;var Gn=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,ye=Math.imul(hr,Jr),K=Math.imul(hr,ni),K=K+Math.imul(_r,Jr)|0,ce=Math.imul(_r,ni),ye=ye+Math.imul(ft,ri)|0,K=K+Math.imul(ft,Ti)|0,K=K+Math.imul(Gt,ri)|0,ce=ce+Math.imul(Gt,Ti)|0,ye=ye+Math.imul(Ct,Yi)|0,K=K+Math.imul(Ct,Xi)|0,K=K+Math.imul(St,Yi)|0,ce=ce+Math.imul(St,Xi)|0,ye=ye+Math.imul(Ge,Qi)|0,K=K+Math.imul(Ge,Un)|0,K=K+Math.imul(yt,Qi)|0,ce=ce+Math.imul(yt,Un)|0,ye=ye+Math.imul(Xt,It)|0,K=K+Math.imul(Xt,ct)|0,K=K+Math.imul(xr,It)|0,ce=ce+Math.imul(xr,ct)|0;var sa=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(sa>>>26)|0,sa&=67108863,ye=Math.imul(hr,ri),K=Math.imul(hr,Ti),K=K+Math.imul(_r,ri)|0,ce=Math.imul(_r,Ti),ye=ye+Math.imul(ft,Yi)|0,K=K+Math.imul(ft,Xi)|0,K=K+Math.imul(Gt,Yi)|0,ce=ce+Math.imul(Gt,Xi)|0,ye=ye+Math.imul(Ct,Qi)|0,K=K+Math.imul(Ct,Un)|0,K=K+Math.imul(St,Qi)|0,ce=ce+Math.imul(St,Un)|0,ye=ye+Math.imul(Ge,It)|0,K=K+Math.imul(Ge,ct)|0,K=K+Math.imul(yt,It)|0,ce=ce+Math.imul(yt,ct)|0;var Da=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Da>>>26)|0,Da&=67108863,ye=Math.imul(hr,Yi),K=Math.imul(hr,Xi),K=K+Math.imul(_r,Yi)|0,ce=Math.imul(_r,Xi),ye=ye+Math.imul(ft,Qi)|0,K=K+Math.imul(ft,Un)|0,K=K+Math.imul(Gt,Qi)|0,ce=ce+Math.imul(Gt,Un)|0,ye=ye+Math.imul(Ct,It)|0,K=K+Math.imul(Ct,ct)|0,K=K+Math.imul(St,It)|0,ce=ce+Math.imul(St,ct)|0;var Pa=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Pa>>>26)|0,Pa&=67108863,ye=Math.imul(hr,Qi),K=Math.imul(hr,Un),K=K+Math.imul(_r,Qi)|0,ce=Math.imul(_r,Un),ye=ye+Math.imul(ft,It)|0,K=K+Math.imul(ft,ct)|0,K=K+Math.imul(Gt,It)|0,ce=ce+Math.imul(Gt,ct)|0;var Vo=(ke+ye|0)+((K&8191)<<13)|0;ke=(ce+(K>>>13)|0)+(Vo>>>26)|0,Vo&=67108863,ye=Math.imul(hr,It),K=Math.imul(hr,ct),K=K+Math.imul(_r,It)|0,ce=Math.imul(_r,ct);var aa=(ke+ye|0)+((K&8191)<<13)|0;return ke=(ce+(K>>>13)|0)+(aa>>>26)|0,aa&=67108863,Ee[0]=Vt,Ee[1]=Wt,Ee[2]=gr,Ee[3]=qr,Ee[4]=Zr,Ee[5]=Hr,Ee[6]=mi,Ee[7]=Ei,Ee[8]=ki,Ee[9]=Ri,Ee[10]=ji,Ee[11]=$i,Ee[12]=Sa,Ee[13]=Gn,Ee[14]=sa,Ee[15]=Da,Ee[16]=Pa,Ee[17]=Vo,Ee[18]=aa,ke!==0&&(Ee[19]=ke,ie.length++),ie};Math.imul||(L=A);function _(G,N,Z){Z.negative=N.negative^G.negative,Z.length=G.length+N.length;for(var ie=0,ae=0,we=0;we>>26)|0,ae+=Ee>>>26,Ee&=67108863}Z.words[we]=ke,ie=Ee,Ee=ae}return ie!==0?Z.words[we]=ie:Z.length--,Z.strip()}function C(G,N,Z){var ie=new S;return ie.mulp(G,N,Z)}f.prototype.mulTo=function(N,Z){var ie,ae=this.length+N.length;return this.length===10&&N.length===10?ie=L(this,N,Z):ae<63?ie=A(this,N,Z):ae<1024?ie=_(this,N,Z):ie=C(this,N,Z),ie};function S(G,N){this.x=G,this.y=N}S.prototype.makeRBT=function(N){for(var Z=new Array(N),ie=f.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,Z,ie,ae,we,Ee){for(var ke=0;ke>>1)we++;return 1<>>13,ie[2*Ee+1]=we&8191,we=we>>>13;for(Ee=2*Z;Ee>=26,Z+=ae/67108864|0,Z+=we>>>26,this.words[ie]=we&67108863}return Z!==0&&(this.words[ie]=Z,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var Z=k(N);if(Z.length===0)return new f(1);for(var ie=this,ae=0;ae=0);var Z=N%26,ie=(N-Z)/26,ae=67108863>>>26-Z<<26-Z,we;if(Z!==0){var Ee=0;for(we=0;we>>26-Z}Ee&&(this.words[we]=Ee,this.length++)}if(ie!==0){for(we=this.length-1;we>=0;we--)this.words[we+ie]=this.words[we];for(we=0;we=0);var ae;Z?ae=(Z-Z%26)/26:ae=0;var we=N%26,Ee=Math.min((N-we)/26,this.length),ke=67108863^67108863>>>we<Ee)for(this.length-=Ee,K=0;K=0&&(ce!==0||K>=ae);K--){var pe=this.words[K]|0;this.words[K]=ce<<26-we|pe>>>we,ce=pe&ke}return ye&&ce!==0&&(ye.words[ye.length++]=ce),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,Z,ie){return u(this.negative===0),this.iushrn(N,Z,ie)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var Z=N%26,ie=(N-Z)/26,ae=1<=0);var Z=N%26,ie=(N-Z)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=ie)return this;if(Z!==0&&ie++,this.length=Math.min(ie,this.length),Z!==0){var ae=67108863^67108863>>>Z<=67108864;Z++)this.words[Z]-=67108864,Z===this.length-1?this.words[Z+1]=1:this.words[Z+1]++;return this.length=Math.max(this.length,Z+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Z=0;Z>26)-(ye/67108864|0),this.words[we+ie]=Ee&67108863}for(;we>26,this.words[we+ie]=Ee&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,we=0;we>26,this.words[we]=Ee&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,Z){var ie=this.length-N.length,ae=this.clone(),we=N,Ee=we.words[we.length-1]|0,ke=this._countBits(Ee);ie=26-ke,ie!==0&&(we=we.ushln(ie),ae.iushln(ie),Ee=we.words[we.length-1]|0);var ye=ae.length-we.length,K;if(Z!=="mod"){K=new f(null),K.length=ye+1,K.words=new Array(K.length);for(var ce=0;ce=0;xe--){var Ce=(ae.words[we.length+xe]|0)*67108864+(ae.words[we.length+xe-1]|0);for(Ce=Math.min(Ce/Ee|0,67108863),ae._ishlnsubmul(we,Ce,xe);ae.negative!==0;)Ce--,ae.negative=0,ae._ishlnsubmul(we,1,xe),ae.isZero()||(ae.negative^=1);K&&(K.words[xe]=Ce)}return K&&K.strip(),ae.strip(),Z!=="div"&&ie!==0&&ae.iushrn(ie),{div:K||null,mod:ae}},f.prototype.divmod=function(N,Z,ie){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var ae,we,Ee;return this.negative!==0&&N.negative===0?(Ee=this.neg().divmod(N,Z),Z!=="mod"&&(ae=Ee.div.neg()),Z!=="div"&&(we=Ee.mod.neg(),ie&&we.negative!==0&&we.iadd(N)),{div:ae,mod:we}):this.negative===0&&N.negative!==0?(Ee=this.divmod(N.neg(),Z),Z!=="mod"&&(ae=Ee.div.neg()),{div:ae,mod:Ee.mod}):this.negative&N.negative?(Ee=this.neg().divmod(N.neg(),Z),Z!=="div"&&(we=Ee.mod.neg(),ie&&we.negative!==0&&we.isub(N)),{div:Ee.div,mod:we}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?Z==="div"?{div:this.divn(N.words[0]),mod:null}:Z==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,Z)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var Z=this.divmod(N);if(Z.mod.isZero())return Z.div;var ie=Z.div.negative!==0?Z.mod.isub(N):Z.mod,ae=N.ushrn(1),we=N.andln(1),Ee=ie.cmp(ae);return Ee<0||we===1&&Ee===0?Z.div:Z.div.negative!==0?Z.div.isubn(1):Z.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var Z=(1<<26)%N,ie=0,ae=this.length-1;ae>=0;ae--)ie=(Z*ie+(this.words[ae]|0))%N;return ie},f.prototype.idivn=function(N){u(N<=67108863);for(var Z=0,ie=this.length-1;ie>=0;ie--){var ae=(this.words[ie]|0)+Z*67108864;this.words[ie]=ae/N|0,Z=ae%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var Z=this,ie=N.clone();Z.negative!==0?Z=Z.umod(N):Z=Z.clone();for(var ae=new f(1),we=new f(0),Ee=new f(0),ke=new f(1),ye=0;Z.isEven()&&ie.isEven();)Z.iushrn(1),ie.iushrn(1),++ye;for(var K=ie.clone(),ce=Z.clone();!Z.isZero();){for(var pe=0,xe=1;!(Z.words[0]&xe)&&pe<26;++pe,xe<<=1);if(pe>0)for(Z.iushrn(pe);pe-- >0;)(ae.isOdd()||we.isOdd())&&(ae.iadd(K),we.isub(ce)),ae.iushrn(1),we.iushrn(1);for(var Ce=0,Me=1;!(ie.words[0]&Me)&&Ce<26;++Ce,Me<<=1);if(Ce>0)for(ie.iushrn(Ce);Ce-- >0;)(Ee.isOdd()||ke.isOdd())&&(Ee.iadd(K),ke.isub(ce)),Ee.iushrn(1),ke.iushrn(1);Z.cmp(ie)>=0?(Z.isub(ie),ae.isub(Ee),we.isub(ke)):(ie.isub(Z),Ee.isub(ae),ke.isub(we))}return{a:Ee,b:ke,gcd:ie.iushln(ye)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var Z=this,ie=N.clone();Z.negative!==0?Z=Z.umod(N):Z=Z.clone();for(var ae=new f(1),we=new f(0),Ee=ie.clone();Z.cmpn(1)>0&&ie.cmpn(1)>0;){for(var ke=0,ye=1;!(Z.words[0]&ye)&&ke<26;++ke,ye<<=1);if(ke>0)for(Z.iushrn(ke);ke-- >0;)ae.isOdd()&&ae.iadd(Ee),ae.iushrn(1);for(var K=0,ce=1;!(ie.words[0]&ce)&&K<26;++K,ce<<=1);if(K>0)for(ie.iushrn(K);K-- >0;)we.isOdd()&&we.iadd(Ee),we.iushrn(1);Z.cmp(ie)>=0?(Z.isub(ie),ae.isub(we)):(ie.isub(Z),we.isub(ae))}var pe;return Z.cmpn(1)===0?pe=ae:pe=we,pe.cmpn(0)<0&&pe.iadd(N),pe},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var Z=this.clone(),ie=N.clone();Z.negative=0,ie.negative=0;for(var ae=0;Z.isEven()&&ie.isEven();ae++)Z.iushrn(1),ie.iushrn(1);do{for(;Z.isEven();)Z.iushrn(1);for(;ie.isEven();)ie.iushrn(1);var we=Z.cmp(ie);if(we<0){var Ee=Z;Z=ie,ie=Ee}else if(we===0||ie.cmpn(1)===0)break;Z.isub(ie)}while(!0);return ie.iushln(ae)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var Z=N%26,ie=(N-Z)/26,ae=1<>>26,ke&=67108863,this.words[Ee]=ke}return we!==0&&(this.words[Ee]=we,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var Z=N<0;if(this.negative!==0&&!Z)return-1;if(this.negative===0&&Z)return 1;this.strip();var ie;if(this.length>1)ie=1;else{Z&&(N=-N),u(N<=67108863,"Number is too big");var ae=this.words[0]|0;ie=ae===N?0:aeN.length)return 1;if(this.length=0;ie--){var ae=this.words[ie]|0,we=N.words[ie]|0;if(ae!==we){aewe&&(Z=1);break}}return Z},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new H(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(G,N){this.name=G,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var Z=N,ie;do this.split(Z,this.tmp),Z=this.imulK(Z),Z=Z.iadd(this.tmp),ie=Z.bitLength();while(ie>this.n);var ae=ie0?Z.isub(this.p):Z.strip!==void 0?Z.strip():Z._strip(),Z},P.prototype.split=function(N,Z){N.iushrn(this.n,0,Z)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,Z){for(var ie=4194303,ae=Math.min(N.length,9),we=0;we>>22,Ee=ke}Ee>>>=22,N.words[we-10]=Ee,Ee===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var Z=0,ie=0;ie>>=26,N.words[ie]=we,Z=ae}return Z!==0&&(N.words[N.length++]=Z),N},f._prime=function(N){if(g[N])return g[N];var Z;if(N==="k256")Z=new T;else if(N==="p224")Z=new F;else if(N==="p192")Z=new q;else if(N==="p25519")Z=new V;else throw new Error("Unknown prime "+N);return g[N]=Z,Z};function H(G){if(typeof G=="string"){var N=f._prime(G);this.m=N.p,this.prime=N}else u(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}H.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},H.prototype._verify2=function(N,Z){u((N.negative|Z.negative)===0,"red works only with positives"),u(N.red&&N.red===Z.red,"red works only with red numbers")},H.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},H.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},H.prototype.add=function(N,Z){this._verify2(N,Z);var ie=N.add(Z);return ie.cmp(this.m)>=0&&ie.isub(this.m),ie._forceRed(this)},H.prototype.iadd=function(N,Z){this._verify2(N,Z);var ie=N.iadd(Z);return ie.cmp(this.m)>=0&&ie.isub(this.m),ie},H.prototype.sub=function(N,Z){this._verify2(N,Z);var ie=N.sub(Z);return ie.cmpn(0)<0&&ie.iadd(this.m),ie._forceRed(this)},H.prototype.isub=function(N,Z){this._verify2(N,Z);var ie=N.isub(Z);return ie.cmpn(0)<0&&ie.iadd(this.m),ie},H.prototype.shl=function(N,Z){return this._verify1(N),this.imod(N.ushln(Z))},H.prototype.imul=function(N,Z){return this._verify2(N,Z),this.imod(N.imul(Z))},H.prototype.mul=function(N,Z){return this._verify2(N,Z),this.imod(N.mul(Z))},H.prototype.isqr=function(N){return this.imul(N,N.clone())},H.prototype.sqr=function(N){return this.mul(N,N)},H.prototype.sqrt=function(N){if(N.isZero())return N.clone();var Z=this.m.andln(3);if(u(Z%2===1),Z===3){var ie=this.m.add(new f(1)).iushrn(2);return this.pow(N,ie)}for(var ae=this.m.subn(1),we=0;!ae.isZero()&&ae.andln(1)===0;)we++,ae.iushrn(1);u(!ae.isZero());var Ee=new f(1).toRed(this),ke=Ee.redNeg(),ye=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new f(2*K*K).toRed(this);this.pow(K,ye).cmp(ke)!==0;)K.redIAdd(ke);for(var ce=this.pow(K,ae),pe=this.pow(N,ae.addn(1).iushrn(1)),xe=this.pow(N,ae),Ce=we;xe.cmp(Ee)!==0;){for(var Me=xe,Le=0;Me.cmp(Ee)!==0;Le++)Me=Me.redSqr();u(Le=0;we--){for(var ce=Z.words[we],pe=K-1;pe>=0;pe--){var xe=ce>>pe&1;if(Ee!==ae[0]&&(Ee=this.sqr(Ee)),xe===0&&ke===0){ye=0;continue}ke<<=1,ke|=xe,ye++,!(ye!==ie&&(we!==0||pe!==0))&&(Ee=this.mul(Ee,ae[ke]),ye=0,ke=0)}K=26}return Ee},H.prototype.convertTo=function(N){var Z=N.umod(this.m);return Z===N?Z.clone():Z},H.prototype.convertFrom=function(N){var Z=N.clone();return Z.red=null,Z},f.mont=function(N){return new X(N)};function X(G){H.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(X,H),X.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},X.prototype.convertFrom=function(N){var Z=this.imod(N.mul(this.rinv));return Z.red=null,Z},X.prototype.imul=function(N,Z){if(N.isZero()||Z.isZero())return N.words[0]=0,N.length=1,N;var ie=N.imul(Z),ae=ie.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),we=ie.isub(ae).iushrn(this.shift),Ee=we;return we.cmp(this.m)>=0?Ee=we.isub(this.m):we.cmpn(0)<0&&(Ee=we.iadd(this.m)),Ee._forceRed(this)},X.prototype.mul=function(N,Z){if(N.isZero()||Z.isZero())return new f(0)._forceRed(this);var ie=N.mul(Z),ae=ie.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),we=ie.isub(ae).iushrn(this.shift),Ee=we;return we.cmp(this.m)>=0?Ee=we.isub(this.m):we.cmpn(0)<0&&(Ee=we.iadd(this.m)),Ee._forceRed(this)},X.prototype.invm=function(N){var Z=this.imod(N._invmp(this.m).mul(this.r2));return Z._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(S<=0)){var g,P=s.mallocDouble(2*S*_),T=s.mallocInt32(_);if(_=f(E,S,P,T),_>0){if(S===1&&L)l.init(_),g=l.sweepComplete(S,A,0,_,P,T,0,_,P,T);else{var F=s.mallocDouble(2*S*C),q=s.mallocInt32(C);C=f(k,S,F,q),C>0&&(l.init(_+C),S===1?g=l.sweepBipartite(S,A,0,_,P,T,0,C,F,q):g=u(S,A,L,_,P,T,C,F,q),s.free(F),s.free(q))}s.free(P),s.free(T)}return g}}}var d;function v(E,k){d.push([E,k])}function x(E){return d=[],h(E,E,v,!0),d}function b(E,k){return d=[],h(E,k,v,!1),d}function p(E,k,A){switch(arguments.length){case 1:return x(E);case 2:return typeof k=="function"?h(E,E,k,!0):b(E,k);case 3:return h(E,k,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,x,b,p,E,k,A,L,_){for(var C=2*h,S=x,g=C*x;SA-k?u(h,d,v,x,b,p,E,k,A,L,_):c(h,d,v,x,b,p,E,k,A,L,_)}return f}function s(){function u(v,x,b,p,E,k,A,L,_,C,S){for(var g=2*v,P=p,T=g*p;PC-_?p?u(v,x,b,E,k,A,L,_,C,S,g):c(v,x,b,E,k,A,L,_,C,S,g):p?f(v,x,b,E,k,A,L,_,C,S,g):h(v,x,b,E,k,A,L,_,C,S,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=G;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),x=128,b=1<<22,p=1<<22,E=v("!(lo>=p0)&&!(p1>=hi)"),k=v("lo===p0"),A=v("lo0;){ce-=1;var Ce=ce*S,Me=T[Ce],Le=T[Ce+1],je=T[Ce+2],Se=T[Ce+3],Xe=T[Ce+4],lt=T[Ce+5],At=ce*g,Yt=F[At],nt=F[At+1],ot=lt&1,Ft=!!(lt&16),Lt=we,Rt=Ee,Xt=ye,xr=K;if(ot&&(Lt=ye,Rt=K,Xt=we,xr=Ee),!(lt&2&&(je=A(N,Me,Le,je,Lt,Rt,nt),Le>=je))&&!(lt&4&&(Le=L(N,Me,Le,je,Lt,Rt,Yt),Le>=je))){var er=je-Le,Ge=Xe-Se;if(Ft){if(N*er*(er+Ge)v&&b[C+d]>L;--_,C-=E){for(var S=C,g=C+E,P=0;P>>1,L=2*h,_=A,C=b[L*A+d];E=F?(_=T,C=F):P>=V?(_=g,C=P):(_=q,C=V):F>=V?(_=T,C=F):V>=P?(_=g,C=P):(_=q,C=V);for(var G=L*(k-1),N=L*_,H=0;H=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+g];if(F===A)if(S===T)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=E[_+q];E[_+q]=E[C],E[C++]=V}var H=k[T];k[T]=k[S],k[S++]=H}}return S}function l(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+g];if(Fq;++q){var V=E[_+q];E[_+q]=E[C],E[C++]=V}var H=k[T];k[T]=k[S],k[S++]=H}}return S}function u(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+P];if(F<=A)if(S===T)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=E[_+q];E[_+q]=E[C],E[C++]=V}var H=k[T];k[T]=k[S],k[S++]=H}}return S}function c(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+P];if(F<=A)if(S===T)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=E[_+q];E[_+q]=E[C],E[C++]=V}var H=k[T];k[T]=k[S],k[S++]=H}}return S}function f(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+g],q=E[_+P];if(F<=A&&A<=q)if(S===T)S+=1,C+=L;else{for(var V=0;L>V;++V){var H=E[_+V];E[_+V]=E[C],E[C++]=H}var X=k[T];k[T]=k[S],k[S++]=X}}return S}function h(v,x,b,p,E,k,A){for(var L=2*v,_=L*b,C=_,S=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var F=E[_+g],q=E[_+P];if(FV;++V){var H=E[_+V];E[_+V]=E[C],E[C++]=H}var X=k[T];k[T]=k[S],k[S++]=X}}return S}function d(v,x,b,p,E,k,A,L){for(var _=2*v,C=_*b,S=C,g=b,P=x,T=v+x,F=b;p>F;++F,C+=_){var q=E[C+P],V=E[C+T];if(!(q>=A)&&!(L>=V))if(g===F)g+=1,S+=_;else{for(var H=0;_>H;++H){var X=E[C+H];E[C+H]=E[S],E[S++]=X}var G=k[F];k[F]=k[g],k[g++]=G}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):v(0,b-1,x)}function s(x,b,p){for(var E=2*(x+1),k=x+1;k<=b;++k){for(var A=p[E++],L=p[E++],_=k,C=E-2;_-- >x;){var S=p[C-2],g=p[C-1];if(Sp[b+1]:!0}function d(x,b,p,E){x*=2;var k=E[x];return k>1,_=L-E,C=L+E,S=k,g=_,P=L,T=C,F=A,q=x+1,V=b-1,H=0;h(S,g,p)&&(H=S,S=g,g=H),h(T,F,p)&&(H=T,T=F,F=H),h(S,P,p)&&(H=S,S=P,P=H),h(g,P,p)&&(H=g,g=P,P=H),h(S,T,p)&&(H=S,S=T,T=H),h(P,T,p)&&(H=P,P=T,T=H),h(g,F,p)&&(H=g,g=F,F=H),h(g,P,p)&&(H=g,g=P,P=H),h(T,F,p)&&(H=T,T=F,F=H);for(var X=p[2*g],G=p[2*g+1],N=p[2*T],Z=p[2*T+1],ie=2*S,ae=2*P,we=2*F,Ee=2*k,ke=2*L,ye=2*A,K=0;K<2;++K){var ce=p[ie+K],pe=p[ae+K],xe=p[we+K];p[Ee+K]=ce,p[ke+K]=pe,p[ye+K]=xe}u(_,x,p),u(C,b,p);for(var Ce=q;Ce<=V;++Ce)if(d(Ce,X,G,p))Ce!==q&&l(Ce,q,p),++q;else if(!d(Ce,N,Z,p))for(;;)if(d(V,N,Z,p)){d(V,X,G,p)?(c(Ce,q,V,p),++q,--V):(l(Ce,V,p),--V);break}else{if(--V>>1;u(E,pe);for(var xe=0,Ce=0,ke=0;ke=c)Me=Me-c|0,A(v,x,Ce--,Me);else if(Me>=0)A(h,d,xe--,Me);else if(Me<=-c){Me=-Me-c|0;for(var Le=0;Le>>1;u(E,pe);for(var xe=0,Ce=0,Me=0,ke=0;ke>1===E[2*ke+3]>>1&&(je=2,ke+=1),Le<0){for(var Se=-(Le>>1)-1,Xe=0;Xe>1)-1;je===0?A(h,d,xe--,Se):je===1?A(v,x,Ce--,Se):je===2&&A(b,p,Me--,Se)}}}function S(P,T,F,q,V,H,X,G,N,Z,ie,ae){var we=0,Ee=2*P,ke=T,ye=T+P,K=1,ce=1;q?ce=c:K=c;for(var pe=V;pe>>1;u(E,Le);for(var je=0,pe=0;pe=c?(Xe=!q,xe-=c):(Xe=!!q,xe-=1),Xe)L(h,d,je++,xe);else{var lt=ae[xe],At=Ee*xe,Yt=ie[At+T+1],nt=ie[At+T+1+P];e:for(var ot=0;ot>>1;u(E,xe);for(var Ce=0,ye=0;ye=c)h[Ce++]=K-c;else{K-=1;var Le=ie[K],je=we*K,Se=Z[je+T+1],Xe=Z[je+T+1+P];e:for(var lt=0;lt=0;--lt)if(h[lt]===K){for(var ot=lt+1;ot0;){for(var k=d.pop(),b=d.pop(),A=-1,L=-1,p=x[b],C=1;C=0||(h.flip(b,k),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,k,A),u(f,h,d,k,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,x,b,p,E,k,A){this.cells=v,this.neighbor=x,this.flags=p,this.constraint=b,this.active=E,this.next=k,this.boundary=A}var u=l.prototype;function c(v,x){return v[0]-x[0]||v[1]-x[1]||v[2]-x[2]}u.locate=function(){var v=[0,0,0];return function(x,b,p){var E=x,k=b,A=p;return b0||A.length>0;){for(;k.length>0;){var g=k.pop();if(L[g]!==-E){L[g]=E;for(var P=_[g],T=0;T<3;++T){var F=S[3*g+T];F>=0&&L[F]===0&&(C[3*g+T]?A.push(F):(k.push(F),L[F]=E))}}}var q=A;A=k,k=q,A.length=0,E=-E}var V=h(_,L,x);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,_,C,S,g){this.a=L,this.b=_,this.idx=C,this.lowerIds=S,this.upperIds=g}function d(L,_,C,S){this.a=L,this.b=_,this.type=C,this.idx=S}function v(L,_){var C=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return C||L.type!==u&&(C=l(L.a,L.b,_.b),C)?C:L.idx-_.idx}function x(L,_){return l(L.a,L.b,_)}function b(L,_,C,S,g){for(var P=s.lt(_,S,x),T=s.gt(_,S,x),F=P;F1&&l(C[V[X-2]],C[V[X-1]],S)>0;)L.push([V[X-1],V[X-2],g]),X-=1;V.length=X,V.push(g);for(var H=q.upperIds,X=H.length;X>1&&l(C[H[X-2]],C[H[X-1]],S)<0;)L.push([H[X-2],H[X-1],g]),X-=1;H.length=X,H.push(g)}}function p(L,_){var C;return L.a[0]<_.a[0]?C=l(L.a,L.b,_.a):C=l(_.b,_.a,L.a),C||(_.b[0]q[0]&&g.push(new d(q,F,f,P),new d(F,q,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),H=[new h([V,1],[V,0],-1,[],[],[],[])],X=[],P=0,G=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var x=this.stars;c(x[h],d,v),c(x[d],v,h),c(x[v],h,d)},u.addTriangle=function(h,d,v){var x=this.stars;x[h].push(d,v),x[d].push(v,h),x[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],x=1,b=v.length;x=0;--N){var ce=X[N];Z=ce[0];var pe=V[Z],xe=pe[0],Ce=pe[1],Me=q[xe],Le=q[Ce];if((Me[0]-Le[0]||Me[1]-Le[1])<0){var je=xe;xe=Ce,Ce=je}pe[0]=xe;var Se=pe[1]=ce[1],Xe;for(G&&(Xe=pe[2]);N>0&&X[N-1][0]===Z;){var ce=X[--N],lt=ce[1];G?V.push([Se,lt,Xe]):V.push([Se,lt]),Se=lt}G?V.push([Se,Ce,Xe]):V.push([Se,Ce])}return ie}function _(q,V,H){for(var X=V.length,G=new s(X),N=[],Z=0;ZV[2]?1:0)}function g(q,V,H){if(q.length!==0){if(V)for(var X=0;X0||Z.length>0}function F(q,V,H){var X;if(H){X=V;for(var G=new Array(V.length),N=0;NL+1)throw new Error(k+" map requires nshades to be at least size "+E.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],v=E.map(function(F){return Math.round(F.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var S=E.map(function(F,q){var V=E[q].index,H=E[q].rgb.slice();return H.length===4&&H[3]>=0&&H[3]<=1||(H[3]=_[0]+(_[1]-_[0])*V),H}),g=[];for(C=0;C=0}function d(v,x,b,p){var E=s(x,b,p);if(E===0){var k=l(s(v,x,b)),A=l(s(v,x,p));if(k===A){if(k===0){var L=h(v,x,b),_=h(v,x,p);return L===_?0:L?1:-1}return 0}else{if(A===0)return k>0||h(v,x,p)?-1:1;if(k===0)return A>0||h(v,x,b)?1:-1}return l(A-k)}var C=s(v,x,b);if(C>0)return E>0&&s(v,x,p)>0?1:-1;if(C<0)return E>0||s(v,x,p)>0?1:-1;var S=s(v,x,p);return S>0||h(v,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),x=a(u[0],u[1]);return a(v,l[2])-a(x,u[2])||a(v+l[2],h)-a(x+u[2],d);case 4:var b=l[0],p=l[1],E=l[2],k=l[3],A=u[0],L=u[1],_=u[2],C=u[3];return b+p+E+k-(A+L+_+C)||a(b,p,E,k)-a(A,L,_,C,A)||a(b+p,b+E,b+k,p+E,p+k,E+k)-a(A+L,A+_,A+C,L+_,L+C,_+C)||a(b+p+E,b+p+k,b+E+k,p+E+k)-a(A+L+_,A+L+C,A+_+C,L+_+C);default:for(var S=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[A]&&(k+=1);p[E]=k}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var x=u(h,v),b=s(x,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,x=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+x*u[p]+b*c[p];return h}return d*s+v*l+x*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,x=d*d,b=(1+2*f)*x,p=f*x,E=v*(3-2*f),k=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+E*u[A]+k*c[A];return h}return b*s+p*l+E*u+k*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var x=d.point,b=v.point,p=x.length,E=0;E=2)return!1;H[G]=N}return!0}):V=V.filter(function(H){for(var X=0;X<=b;++X){var G=P[H[X]];if(G<0)return!1;H[X]=G}return!0}),b&1)for(var k=0;k>>31},i.exports.exponent=function(E){var k=i.exports.hi(E);return(k<<1>>>21)-1023},i.exports.fraction=function(E){var k=i.exports.lo(E),A=i.exports.hi(E),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[k,L]},i.exports.denormalized=function(E){var k=i.exports.hi(E);return!(k&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var C=k.length-1,g=v-x[b-1],S=0;S=b-1)for(var _=k.length-1,C=v-x[b-1],S=0;S=0;--b)if(v[--x])return!1;return!0},f.jump=function(v){var x=this.lastT(),b=this.dimension;if(!(v0;--S)p.push(u(L[S-1],_[S-1],arguments[S])),E.push(0)}},f.push=function(v){var x=this.lastT(),b=this.dimension;if(!(v1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(_[g-1],C[g-1],arguments[g]);p.push(P),E.push((P-p[k++])*S)}}},f.set=function(v){var x=this.dimension;if(!(v0;--L)b.push(u(k[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var x=this.lastT(),b=this.dimension;if(!(v<=x||arguments.length!==b+1)){var p=this._state,E=this._velocity,k=p.length-this.dimension,A=this.bounds,L=A[0],_=A[1],C=v-x,S=C>1e-6?1/C:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],_[g-1],p[k++]+P)),E.push(P*S)}}},f.idle=function(v){var x=this.lastT();if(!(v=0;--S)p.push(u(L[S],_[S],p[k]+C*E[k])),E.push(0),k+=1}};function h(v){for(var x=new Array(v),b=0;b=0;--q){var g=P[q];T[q]<=0?P[q]=new s(g._color,g.key,g.value,P[q+1],g.right,g._count+1):P[q]=new s(g._color,g.key,g.value,g.left,P[q+1],g._count+1)}for(var q=P.length-1;q>1;--q){var V=P[q-1],g=P[q];if(V._color===o||g._color===o)break;var H=P[q-2];if(H.left===V)if(V.left===g){var X=H.right;if(X&&X._color===a)V._color=o,H.right=u(o,X),H._color=a,q-=1;else{if(H._color=a,H.left=V.right,V._color=o,V.right=H,P[q-2]=V,P[q-1]=g,c(H),c(V),q>=3){var G=P[q-3];G.left===H?G.left=V:G.right=V}break}}else{var X=H.right;if(X&&X._color===a)V._color=o,H.right=u(o,X),H._color=a,q-=1;else{if(V.right=g.left,H._color=a,H.left=g.right,g._color=o,g.left=V,g.right=H,P[q-2]=g,P[q-1]=V,c(H),c(V),c(g),q>=3){var G=P[q-3];G.left===H?G.left=g:G.right=g}break}}else if(V.right===g){var X=H.left;if(X&&X._color===a)V._color=o,H.left=u(o,X),H._color=a,q-=1;else{if(H._color=a,H.right=V.left,V._color=o,V.left=H,P[q-2]=V,P[q-1]=g,c(H),c(V),q>=3){var G=P[q-3];G.right===H?G.right=V:G.left=V}break}}else{var X=H.left;if(X&&X._color===a)V._color=o,H.left=u(o,X),H._color=a,q-=1;else{if(V.left=g.right,H._color=a,H.right=g.left,g._color=o,g.right=V,g.left=H,P[q-2]=g,P[q-1]=V,c(H),c(V),c(g),q>=3){var G=P[q-3];G.right===H?G.right=g:G.left=g}break}}}return P[0]._color=o,new f(S,P[0])};function d(_,C){if(C.left){var S=d(_,C.left);if(S)return S}var S=_(C.key,C.value);if(S)return S;if(C.right)return d(_,C.right)}function v(_,C,S,g){var P=C(_,g.key);if(P<=0){if(g.left){var T=v(_,C,S,g.left);if(T)return T}var T=S(g.key,g.value);if(T)return T}if(g.right)return v(_,C,S,g.right)}function x(_,C,S,g,P){var T=S(_,P.key),F=S(C,P.key),q;if(T<=0&&(P.left&&(q=x(_,C,S,g,P.left),q)||F>0&&(q=g(P.key,P.value),q)))return q;if(F>0&&P.right)return x(_,C,S,g,P.right)}h.forEach=function(C,S,g){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return v(S,this._compare,C,this.root);case 3:return this._compare(S,g)>=0?void 0:x(S,g,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var C=this.root,S=[];;){if(S.push(C),C.left){if(_=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(_){for(var C=this._compare,S=this.root,g=[],P=0;S;){var T=C(_,S.key);g.push(S),T<=0&&(P=g.length),T<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.gt=function(_){for(var C=this._compare,S=this.root,g=[],P=0;S;){var T=C(_,S.key);g.push(S),T<0&&(P=g.length),T<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.lt=function(_){for(var C=this._compare,S=this.root,g=[],P=0;S;){var T=C(_,S.key);g.push(S),T>0&&(P=g.length),T<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.le=function(_){for(var C=this._compare,S=this.root,g=[],P=0;S;){var T=C(_,S.key);g.push(S),T>=0&&(P=g.length),T<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.find=function(_){for(var C=this._compare,S=this.root,g=[];S;){var P=C(_,S.key);if(g.push(S),P===0)return new b(this,g);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(_){var C=this.find(_);return C?C.remove():this},h.get=function(_){for(var C=this._compare,S=this.root;S;){var g=C(_,S.key);if(g===0)return S.value;g<=0?S=S.left:S=S.right}};function b(_,C){this.tree=_,this._stack=C}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function E(_,C){_.key=C.key,_.value=C.value,_.left=C.left,_.right=C.right,_._color=C._color,_._count=C._count}function k(_){for(var C,S,g,P,T=_.length-1;T>=0;--T){if(C=_[T],T===0){C._color=o;return}if(S=_[T-1],S.left===C){if(g=S.right,g.right&&g.right._color===a){if(g=S.right=l(g),P=g.right=l(g.right),S.right=g.left,g.left=S,g.right=P,g._color=S._color,C._color=o,S._color=o,P._color=o,c(S),c(g),T>1){var F=_[T-2];F.left===S?F.left=g:F.right=g}_[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=S.right=l(g),P=g.left=l(g.left),S.right=P.left,g.left=P.right,P.left=S,P.right=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),T>1){var F=_[T-2];F.left===S?F.left=P:F.right=P}_[T-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.right=u(a,g);return}else{S.right=u(a,g);continue}else{if(g=l(g),S.right=g.left,g.left=S,g._color=S._color,S._color=a,c(S),c(g),T>1){var F=_[T-2];F.left===S?F.left=g:F.right=g}_[T-1]=g,_[T]=S,T+1<_.length?_[T+1]=C:_.push(C),T=T+2}}else{if(g=S.left,g.left&&g.left._color===a){if(g=S.left=l(g),P=g.left=l(g.left),S.left=g.right,g.right=S,g.left=P,g._color=S._color,C._color=o,S._color=o,P._color=o,c(S),c(g),T>1){var F=_[T-2];F.right===S?F.right=g:F.left=g}_[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=S.left=l(g),P=g.right=l(g.right),S.left=P.right,g.right=P.left,P.right=S,P.left=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),T>1){var F=_[T-2];F.right===S?F.right=P:F.left=P}_[T-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.left=u(a,g);return}else{S.left=u(a,g);continue}else{if(g=l(g),S.left=g.right,g.right=S,g._color=S._color,S._color=a,c(S),c(g),T>1){var F=_[T-2];F.right===S?F.right=g:F.left=g}_[T-1]=g,_[T]=S,T+1<_.length?_[T+1]=C:_.push(C),T=T+2}}}}p.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var C=new Array(_.length),S=_[_.length-1];C[C.length-1]=new s(S._color,S.key,S.value,S.left,S.right,S._count);for(var g=_.length-2;g>=0;--g){var S=_[g];S.left===_[g+1]?C[g]=new s(S._color,S.key,S.value,C[g+1],S.right,S._count):C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count)}if(S=C[C.length-1],S.left&&S.right){var P=C.length;for(S=S.left;S.right;)C.push(S),S=S.right;var T=C[P-1];C.push(new s(S._color,T.key,T.value,S.left,S.right,S._count)),C[P-1].key=S.key,C[P-1].value=S.value;for(var g=C.length-2;g>=P;--g)S=C[g],C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count);C[P-1].left=C[P]}if(S=C[C.length-1],S._color===a){var F=C[C.length-2];F.left===S?F.left=null:F.right===S&&(F.right=null),C.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var _=0,C=this._stack;if(C.length===0){var S=this.tree.root;return S?S._count:0}else C[C.length-1].left&&(_=C[C.length-1].left._count);for(var g=C.length-2;g>=0;--g)C[g+1]===C[g].right&&(++_,C[g].left&&(_+=C[g].left._count));return _},enumerable:!0}),p.next=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.right)for(C=C.right;C;)_.push(C),C=C.left;else for(_.pop();_.length>0&&_[_.length-1].right===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].left===_[C])return!0;return!1}}),p.update=function(_){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var S=new Array(C.length),g=C[C.length-1];S[S.length-1]=new s(g._color,g.key,_,g.left,g.right,g._count);for(var P=C.length-2;P>=0;--P)g=C[P],g.left===C[P+1]?S[P]=new s(g._color,g.key,g.value,S[P+1],g.right,g._count):S[P]=new s(g._color,g.key,g.value,g.left,S[P+1],g._count);return new f(this.tree._compare,S[0])},p.prev=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.left)for(C=C.left;C;)_.push(C),C=C.right;else for(_.pop();_.length>0&&_[_.length-1].left===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].right===_[C])return!0;return!1}});function A(_,C){return _C?1:0}function L(_){return new f(_||A,null)}},3837:function(i,a,o){"use strict";i.exports=q;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function x(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||x(V)}function p(V,H){return V[0]=H[0],V[1]=H[1],V[2]=H[2],V}function E(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var k=E.prototype;k.update=function(V){V=V||{};function H(xe,Ce,Me){if(Me in V){var Le=V[Me],je=this[Me],Se;(xe?b(Le)&&b(Le[0]):b(Le))?this[Me]=Se=[Ce(Le[0]),Ce(Le[1]),Ce(Le[2])]:this[Me]=Se=[Ce(Le),Ce(Le),Ce(Le)];for(var Xe=0;Xe<3;++Xe)if(Se[Xe]!==je[Xe])return!0}return!1}var X=H.bind(this,!1,Number),G=H.bind(this,!1,Boolean),N=H.bind(this,!1,String),Z=H.bind(this,!0,function(xe){if(b(xe)){if(xe.length===3)return[+xe[0],+xe[1],+xe[2],1];if(xe.length===4)return[+xe[0],+xe[1],+xe[2],+xe[3]]}return[0,0,0,1]}),ie,ae=!1,we=!1;if("bounds"in V)for(var Ee=V.bounds,ke=0;ke<2;++ke)for(var ye=0;ye<3;++ye)Ee[ke][ye]!==this.bounds[ke][ye]&&(we=!0),this.bounds[ke][ye]=Ee[ke][ye];if("ticks"in V){ie=V.ticks,ae=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else X("tickSpacing")&&(this.autoTicks=!0,we=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),we=!0,ae=!0,this._firstInit=!1),we&&this.autoTicks&&(ie=f.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var ke=0;ke<3;++ke)ie[ke].sort(function(Ce,Me){return Ce.x-Me.x});f.equal(ie,this.ticks)?ae=!1:this.ticks=ie}G("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),X("tickSize"),X("tickAngle"),X("tickPad"),Z("tickColor");var K=N("labels");N("labelFont")&&(K=!0),N("labelFontStyle")&&(K=!0),N("labelFontWeight")&&(K=!0),N("labelFontVariant")&&(K=!0),G("labelEnable"),X("labelSize"),X("labelPad"),Z("labelColor"),G("lineEnable"),G("lineMirror"),X("lineWidth"),Z("lineColor"),G("lineTickEnable"),G("lineTickMirror"),X("lineTickLength"),X("lineTickWidth"),Z("lineTickColor"),G("gridEnable"),X("gridWidth"),Z("gridColor"),G("zeroEnable"),Z("zeroLineColor"),X("zeroLineWidth"),G("backgroundEnable"),Z("backgroundColor");var ce=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],pe=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(K||ae)&&this._text.update(this.bounds,this.labels,ce,this.ticks,pe):this._text=s(this.gl,this.bounds,this.labels,ce,this.ticks,pe),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function _(V,H,X,G,N){for(var Z=V.primalOffset,ie=V.primalMinor,ae=V.mirrorOffset,we=V.mirrorMinor,Ee=G[H],ke=0;ke<3;++ke)if(H!==ke){var ye=Z,K=ae,ce=ie,pe=we;Ee&1<0?(ce[ke]=-1,pe[ke]=0):(ce[ke]=0,pe[ke]=1)}}var C=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};k.isOpaque=function(){return!0},k.isTransparent=function(){return!1},k.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],F=[0,0,0];k.draw=function(V){V=V||S;for(var Me=this.gl,H=V.model||h,X=V.view||h,G=V.projection||h,N=this.bounds,Z=V._ortho||!1,ie=c(H,X,G,N,Z),ae=ie.cubeEdges,we=ie.axis,Ee=X[12],ke=X[13],ye=X[14],K=X[15],ce=Z?2:1,pe=ce*this.pixelRatio*(G[3]*Ee+G[7]*ke+G[11]*ye+G[15]*K)/Me.drawingBufferHeight,xe=0;xe<3;++xe)this.lastCubeProps.cubeEdges[xe]=ae[xe],this.lastCubeProps.axis[xe]=we[xe];for(var Ce=L,xe=0;xe<3;++xe)_(L[xe],xe,this.bounds,ae,we);for(var Me=this.gl,Le=C,xe=0;xe<3;++xe)this.backgroundEnable[xe]?Le[xe]=we[xe]:Le[xe]=0;this._background.draw(H,X,G,N,Le,this.backgroundColor),this._lines.bind(H,X,G,this);for(var xe=0;xe<3;++xe){var je=[0,0,0];we[xe]>0?je[xe]=N[1][xe]:je[xe]=N[0][xe];for(var Se=0;Se<2;++Se){var Xe=(xe+1+Se)%3,lt=(xe+1+(Se^1))%3;this.gridEnable[Xe]&&this._lines.drawGrid(Xe,lt,this.bounds,je,this.gridColor[Xe],this.gridWidth[Xe]*this.pixelRatio)}for(var Se=0;Se<2;++Se){var Xe=(xe+1+Se)%3,lt=(xe+1+(Se^1))%3;this.zeroEnable[lt]&&Math.min(N[0][lt],N[1][lt])<=0&&Math.max(N[0][lt],N[1][lt])>=0&&this._lines.drawZero(Xe,lt,this.bounds,je,this.zeroLineColor[lt],this.zeroLineWidth[lt]*this.pixelRatio)}}for(var xe=0;xe<3;++xe){this.lineEnable[xe]&&this._lines.drawAxisLine(xe,this.bounds,Ce[xe].primalOffset,this.lineColor[xe],this.lineWidth[xe]*this.pixelRatio),this.lineMirror[xe]&&this._lines.drawAxisLine(xe,this.bounds,Ce[xe].mirrorOffset,this.lineColor[xe],this.lineWidth[xe]*this.pixelRatio);for(var At=p(P,Ce[xe].primalMinor),Yt=p(T,Ce[xe].mirrorMinor),nt=this.lineTickLength,Se=0;Se<3;++Se){var ot=pe/H[5*Se];At[Se]*=nt[Se]*ot,Yt[Se]*=nt[Se]*ot}this.lineTickEnable[xe]&&this._lines.drawAxisTicks(xe,Ce[xe].primalOffset,At,this.lineTickColor[xe],this.lineTickWidth[xe]*this.pixelRatio),this.lineTickMirror[xe]&&this._lines.drawAxisTicks(xe,Ce[xe].mirrorOffset,Yt,this.lineTickColor[xe],this.lineTickWidth[xe]*this.pixelRatio)}this._lines.unbind(),this._text.bind(H,X,G,this.pixelRatio);var Ft,Lt=.5,Rt,Xt;function xr(St){Xt=[0,0,0],Xt[St]=1}function er(St,kt,ft){var Gt=(St+1)%3,$t=(St+2)%3,hr=kt[Gt],_r=kt[$t],Nr=ft[Gt],Br=ft[$t];if(hr>0&&Br>0){xr(Gt);return}else if(hr>0&&Br<0){xr(Gt);return}else if(hr<0&&Br>0){xr(Gt);return}else if(hr<0&&Br<0){xr(Gt);return}else if(_r>0&&Nr>0){xr($t);return}else if(_r>0&&Nr<0){xr($t);return}else if(_r<0&&Nr>0){xr($t);return}else if(_r<0&&Nr<0){xr($t);return}}for(var xe=0;xe<3;++xe){for(var Ge=Ce[xe].primalMinor,yt=Ce[xe].mirrorMinor,_t=p(F,Ce[xe].primalOffset),Se=0;Se<3;++Se)this.lineTickEnable[xe]&&(_t[Se]+=pe*Ge[Se]*Math.max(this.lineTickLength[Se],0)/H[5*Se]);var Ct=[0,0,0];if(Ct[xe]=1,this.tickEnable[xe]){this.tickAngle[xe]===-3600?(this.tickAngle[xe]=0,this.tickAlign[xe]="auto"):this.tickAlign[xe]=-1,Rt=1,Ft=[this.tickAlign[xe],Lt,Rt],Ft[0]==="auto"?Ft[0]=g:Ft[0]=parseInt(""+Ft[0]),Xt=[0,0,0],er(xe,Ge,yt);for(var Se=0;Se<3;++Se)_t[Se]+=pe*Ge[Se]*this.tickPad[Se]/H[5*Se];this._text.drawTicks(xe,this.tickSize[xe],this.tickAngle[xe],_t,this.tickColor[xe],Ct,Xt,Ft)}if(this.labelEnable[xe]){Rt=0,Xt=[0,0,0],this.labels[xe].length>4&&(xr(xe),Rt=1),Ft=[this.labelAlign[xe],Lt,Rt],Ft[0]==="auto"?Ft[0]=g:Ft[0]=parseInt(""+Ft[0]);for(var Se=0;Se<3;++Se)_t[Se]+=pe*Ge[Se]*this.labelPad[Se]/H[5*Se];_t[xe]+=.5*(N[0][xe]+N[1][xe]),this._text.drawLabel(xe,this.labelSize[xe],this.labelAngle[xe],_t,this.labelColor[xe],[0,0,0],Xt,Ft)}}this._text.unbind()},k.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function q(V,H){var X=new E(V);return X.update(H),X}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,x,b){this.gl=d,this.buffer=v,this.vao=x,this.shader=b}var f=c.prototype;f.draw=function(d,v,x,b,p,E){for(var k=!1,A=0;A<3;++A)k=k||p[A];if(k){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:x,bounds:b,enable:p,colors:E},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],x=[],b=0,p=0;p<3;++p)for(var E=(p+1)%3,k=(p+2)%3,A=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=_,L[p]=_;for(var C=-1;C<=1;C+=2){A[E]=C;for(var S=-1;S<=1;S+=2)A[k]=S,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=E;E=k,k=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),F=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),q=u(d);return q.attributes.position.location=0,q.attributes.normal.location=1,new c(d,P,F,q)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),x=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,S,g){for(var P=0;P<4;++P){C[P]=g[12+P];for(var T=0;T<3;++T)C[P]+=S[T]*g[4*T+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function E(C){for(var S=0;Swe&&(X|=1<we){X|=1<d[q][1])&&(Ce=q);for(var Me=-1,q=0;q<3;++q){var Le=Ce^1<d[je][0]&&(je=Le)}}var Se=k;Se[0]=Se[1]=Se[2]=0,Se[s.log2(Me^Ce)]=Ce&Me,Se[s.log2(Ce^je)]=Ce&je;var Xe=je^7;Xe===X||Xe===xe?(Xe=Me^7,Se[s.log2(je^Xe)]=Xe&je):Se[s.log2(Me^Xe)]=Xe&Me;for(var lt=A,At=X,Z=0;Z<3;++Z)At&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? + b - PI : + b; +} + +float look_horizontal_or_vertical(float a, float ratio) { + // ratio controls the ratio between being horizontal to (vertical + horizontal) + // if ratio is set to 0.5 then it is 50%, 50%. + // when using a higher ratio e.g. 0.75 the result would + // likely be more horizontal than vertical. + + float b = positive_angle(a); + + return + (b < ( ratio) * HALF_PI) ? 0.0 : + (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : + (b < (2.0 + ratio) * HALF_PI) ? 0.0 : + (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : + 0.0; +} + +float roundTo(float a, float b) { + return float(b * floor((a + 0.5 * b) / b)); +} + +float look_round_n_directions(float a, int n) { + float b = positive_angle(a); + float div = TWO_PI / float(n); + float c = roundTo(b, div); + return look_upwards(c); +} + +float applyAlignOption(float rawAngle, float delta) { + return + (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions + (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical + (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis + (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards + (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal + rawAngle; // otherwise return back raw input angle +} + +bool isAxisTitle = (axis.x == 0.0) && + (axis.y == 0.0) && + (axis.z == 0.0); + +void main() { + //Compute world offset + float axisDistance = position.z; + vec3 dataPosition = axisDistance * axis + offset; + + float beta = angle; // i.e. user defined attributes for each tick + + float axisAngle; + float clipAngle; + float flip; + + if (enableAlign) { + axisAngle = (isAxisTitle) ? HALF_PI : + computeViewAngle(dataPosition, dataPosition + axis); + clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); + + axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; + clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; + + flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), + vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; + + beta += applyAlignOption(clipAngle, flip * PI); + } + + //Compute plane offset + vec2 planeCoord = position.xy * pixelScale; + + mat2 planeXform = scale * mat2( + cos(beta), sin(beta), + -sin(beta), cos(beta) + ); + + vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; + + //Compute clip position + vec3 clipPosition = project(dataPosition); + + //Apply text offset in clip coordinates + clipPosition += vec3(viewOffset, 0.0); + + //Done + gl_Position = vec4(clipPosition, 1.0); +} +`]),h=s([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 color; +void main() { + gl_FragColor = color; +}`]);a.Q=function(x){return l(x,f,h,null,[{name:"position",type:"vec3"}])};var d=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec3 normal; + +uniform mat4 model, view, projection; +uniform vec3 enable; +uniform vec3 bounds[2]; + +varying vec3 colorChannel; + +void main() { + + vec3 signAxis = sign(bounds[1] - bounds[0]); + + vec3 realNormal = signAxis * normal; + + if(dot(realNormal, enable) > 0.0) { + vec3 minRange = min(bounds[0], bounds[1]); + vec3 maxRange = max(bounds[0], bounds[1]); + vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); + gl_Position = projection * (view * (model * vec4(nPosition, 1.0))); + } else { + gl_Position = vec4(0,0,0,0); + } + + colorChannel = abs(realNormal); +} +`]),v=s([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 colors[3]; + +varying vec3 colorChannel; + +void main() { + gl_FragColor = colorChannel.x * colors[0] + + colorChannel.y * colors[1] + + colorChannel.z * colors[2]; +}`]);a.bg=function(x){return l(x,d,v,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=E;var s=o(2762),l=o(8116),u=o(4359),c=o(1879).Q,f=window||process.global||{},h=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var d=3;function v(k,A,L,_){this.gl=k,this.shader=A,this.buffer=L,this.vao=_,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var x=v.prototype,b=[0,0];x.bind=function(k,A,L,_){this.vao.bind(),this.shader.bind();var C=this.shader.uniforms;C.model=k,C.view=A,C.projection=L,C.pixelScale=_,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},x.unbind=function(){this.vao.unbind()},x.update=function(k,A,L,_,C){var S=[];function g(Z,ie,ae,we,Ee,ke){var ye=[ae.style,ae.weight,ae.variant,ae.family].join("_"),K=h[ye];K||(K=h[ye]={});var ce=K[ie];ce||(ce=K[ie]=p(ie,{triangles:!0,font:ae.family,fontStyle:ae.style,fontWeight:ae.weight,fontVariant:ae.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Ee,styletags:ke}));for(var pe=(we||12)/12,xe=ce.positions,Ce=ce.cells,Me=0,Le=Ce.length;Me=0;--Se){var Xe=xe[je[Se]];S.push(pe*Xe[0],-pe*Xe[1],Z)}}for(var P=[0,0,0],T=[0,0,0],F=[0,0,0],q=[0,0,0],V=1.25,H={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},X=0;X<3;++X){F[X]=S.length/d|0,g(.5*(k[0][X]+k[1][X]),A[X],L[X],12,V,H),q[X]=(S.length/d|0)-F[X],P[X]=S.length/d|0;for(var G=0;G<_[X].length;++G)if(_[X][G].text){var N={family:_[X][G].font||C[X].family,style:C[X].fontStyle||C[X].style,weight:C[X].fontWeight||C[X].weight,variant:C[X].fontVariant||C[X].variant};g(_[X][G].x,_[X][G].text,N,_[X][G].fontSize||12,V,H)}T[X]=(S.length/d|0)-P[X]}this.buffer.update(S),this.tickOffset=P,this.tickCount=T,this.labelOffset=F,this.labelCount=q},x.drawTicks=function(k,A,L,_,C,S,g,P){this.tickCount[k]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[k],this.tickOffset[k]))},x.drawLabel=function(k,A,L,_,C,S,g,P){this.labelCount[k]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[k],this.labelOffset[k]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function p(k,A){try{return u(k,A)}catch(L){return console.warn('error vectorizing text:"'+k+'" error:',L),{cells:[],positions:[]}}}function E(k,A,L,_,C,S){var g=s(k),P=l(k,[{buffer:g,size:3}]),T=c(k);T.attributes.position.location=0;var F=new v(k,T,g,P);return F.update(A,L,_,C,S),F}},6444:function(i,a){"use strict";a.create=s,a.equal=l;function o(u,c){var f=u+"",h=f.indexOf("."),d=0;h>=0&&(d=f.length-h-1);var v=Math.pow(10,d),x=Math.round(u*c*v),b=x+"";if(b.indexOf("e")>=0)return b;var p=x/v,E=x%v;x<0?(p=-Math.ceil(p)|0,E=-E|0):(p=Math.floor(p)|0,E=E|0);var k=""+p;if(x<0&&(k="-"+k),d){for(var A=""+E;A.length=u[0][h];--x)d.push({x:x*c[h],text:o(c[h],x)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hk)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(E,_,L),k}function v(p,E){for(var k=s.malloc(p.length,E),A=p.length,L=0;L=0;--A){if(E[A]!==k)return!1;k*=p[A]}return!0}h.update=function(p,E){if(typeof E!="number"&&(E=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var k=p.dtype;if(c.indexOf(k)<0&&(k="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&k!=="uint16"?k="uint32":k="uint16"}if(k===p.dtype&&x(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,E):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),E);else{var L=s.malloc(p.size,k),_=u(L,p.shape);l.assign(_,p),E<0?this.length=d(this.gl,this.type,this.length,this.usage,L,E):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),E),s.free(L)}}else if(Array.isArray(p)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=v(p,"uint16"):C=v(p,"float32"),E<0?this.length=d(this.gl,this.type,this.length,this.usage,C,E):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,p.length),E),s.free(C)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,E);else if(typeof p=="number"||p===void 0){if(E>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,E,k,A){if(k=k||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,k!==p.ARRAY_BUFFER&&k!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),_=new f(p,k,L,0,A);return _.update(E),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,x=1/0,b=-1/0,p=1/0,E=-1/0,k=1/0,A=-1/0,L=null,_=null,C=[],S=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(q)),T&&!P){var V=2*s.distance(L,F)/(s.length(_)+s.length(q));V?(S=Math.min(S,V),g=!1):g=!0}g||(L=F,_=q),C.push(q)}var H=[x,p,k],X=[b,E,A];c&&(c[0]=H,c[1]=X),v===0&&(v=1);var G=1/v;isFinite(S)||(S=1),d.vectorScale=S;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*G),d.coneScale=N;for(var T=0,Z=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(C){this.pickId=C};function E(C){for(var S=v({colormap:C,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=S[P],F=0;F<3;++F)g[4*P+F]=T[F];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function k(C){for(var S=C.length,g=new Array(S),P=0;P0){var Z=this.triShader;Z.bind(),Z.uniforms=V,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(C){C=C||{};for(var S=this.gl,g=C.model||x,P=C.view||x,T=C.projection||x,F=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],q=0;q<3;++q)F[0][q]=Math.max(F[0][q],this.clipBounds[0][q]),F[1][q]=Math.min(F[1][q],this.clipBounds[1][q]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:F,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},H=this.pickShader;H.bind(),H.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(C){if(!C||C.id!==this.pickId)return null;var S=C.value[0]+256*C.value[1]+65536*C.value[2],g=this.cells[S],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=S),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(C,S){var g=s(C,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(C,S){var g=s(C,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function _(C,S,g){var P=g.shaders;arguments.length===1&&(S=C,C=S.gl);var T=A(C,P),F=L(C,P),q=c(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));q.generateMipmap(),q.minFilter=C.LINEAR_MIPMAP_LINEAR,q.magFilter=C.LINEAR;var V=l(C),H=l(C),X=l(C),G=l(C),N=l(C),Z=u(C,[{buffer:V,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:X,type:C.FLOAT,size:4},{buffer:G,type:C.FLOAT,size:2},{buffer:H,type:C.FLOAT,size:4}]),ie=new b(C,q,T,F,V,H,N,X,G,Z,g.traceType||"cone");return ie.update(S),ie}i.exports=_},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec3 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, coneScale, coneOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * conePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(conePosition, 1.0); + vec4 t_position = view * conePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = conePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),c=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float vectorScale, coneScale, coneOffset; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + gl_Position = projection * (view * conePosition); + f_id = id; + f_position = position.xyz; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,E,k,A){this.gl=p,this.shader=A,this.buffer=E,this.vao=k,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var E=this.gl,k=this.shader.uniforms;this.shader.bind();var A=k.view=p.view||c,L=k.projection=p.projection||c;k.model=p.model||c,k.clipBounds=this.clipBounds,k.opacity=this.opacity;var _=A[12],C=A[13],S=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,F=T*this.pixelRatio*(L[3]*_+L[7]*C+L[11]*S+L[15]*g)/E.drawingBufferHeight;this.vao.bind();for(var q=0;q<3;++q)E.lineWidth(this.lineWidth[q]*this.pixelRatio),k.capSize=this.capSize[q]*F,this.lineCount[q]&&E.drawArrays(E.LINES,this.lineOffset[q],this.lineCount[q]);this.vao.unbind()};function d(p,E){for(var k=0;k<3;++k)p[0][k]=Math.min(p[0][k],E[k]),p[1][k]=Math.max(p[1][k],E[k])}var v=function(){for(var p=new Array(3),E=0;E<3;++E){for(var k=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var _=(A+E)%3,C=[0,0,0];C[_]=L,k.push(C)}p[E]=k}return p}();function x(p,E,k,A){for(var L=v[A],_=0;_0){var V=P.slice();V[S]+=F[1][S],L.push(P[0],P[1],P[2],q[0],q[1],q[2],q[3],0,0,0,V[0],V[1],V[2],q[0],q[1],q[2],q[3],0,0,0),d(this.bounds,V),C+=2+x(L,V,q,S)}}}this.lineCount[S]=C-this.lineOffset[S]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var E=p.gl,k=s(E),A=l(E,[{buffer:k,type:E.FLOAT,size:3,offset:0,stride:40},{buffer:k,type:E.FLOAT,size:4,offset:12,stride:40},{buffer:k,type:E.FLOAT,size:3,offset:28,stride:40}]),L=u(E);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var _=new f(E,k,A,L);return _.update(p),_}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, offset; +attribute vec4 color; +uniform mat4 model, view, projection; +uniform float capSize; +varying vec4 fragColor; +varying vec3 fragPosition; + +void main() { + vec4 worldPosition = model * vec4(position, 1.0); + worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); + gl_Position = projection * (view * worldPosition); + fragColor = color; + fragPosition = position; +}`]),c=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float opacity; +varying vec3 fragPosition; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], fragPosition) || + fragColor.a * opacity == 0. + ) discard; + + gl_FragColor = opacity * fragColor; +}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=C;var l=null,u,c,f,h;function d(S){var g=S.getParameter(S.FRAMEBUFFER_BINDING),P=S.getParameter(S.RENDERBUFFER_BINDING),T=S.getParameter(S.TEXTURE_BINDING_2D);return[g,P,T]}function v(S,g){S.bindFramebuffer(S.FRAMEBUFFER,g[0]),S.bindRenderbuffer(S.RENDERBUFFER,g[1]),S.bindTexture(S.TEXTURE_2D,g[2])}function x(S,g){var P=S.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var T=0;T<=P;++T){for(var F=new Array(P),q=0;q1&&H.drawBuffersWEBGL(l[V]);var ie=P.getExtension("WEBGL_depth_texture");ie?X?S.depth=p(P,F,q,ie.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):G&&(S.depth=p(P,F,q,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):G&&X?S._depth_rb=E(P,F,q,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):G?S._depth_rb=E(P,F,q,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):X&&(S._depth_rb=E(P,F,q,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){S._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(S.handle),S.handle=null,S.depth&&(S.depth.dispose(),S.depth=null),S._depth_rb&&(P.deleteRenderbuffer(S._depth_rb),S._depth_rb=null);for(var Z=0;ZF||P<0||P>F)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");S._shape[0]=g,S._shape[1]=P;for(var q=d(T),V=0;Vq||P<0||P>q)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(F){if(V>S.getParameter(F.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var H=S.UNSIGNED_BYTE,X=S.getExtension("OES_texture_float");if(T.float&&V>0){if(!X)throw new Error("gl-fbo: Context does not support floating point textures");H=S.FLOAT}else T.preferFloat&&V>0&&X&&(H=S.FLOAT);var G=!0;"depth"in T&&(G=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(S,g,P,H,V,G,N,F)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var x=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: +`,b,x),E=s("%s%s",p,h),k=h.split(` +`),A={},L=0;L max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D dashTexture; +uniform float dashScale; +uniform float opacity; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], worldPosition) || + fragColor.a * opacity == 0. + ) discard; + + float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; + if(dashWeight < 0.5) { + discard; + } + gl_FragColor = fragColor * opacity; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +#define FLOAT_MAX 1.70141184e38 +#define FLOAT_MIN 1.17549435e-38 + +// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl +vec4 packFloat(float v) { + float av = abs(v); + + //Handle special cases + if(av < FLOAT_MIN) { + return vec4(0.0, 0.0, 0.0, 0.0); + } else if(v > FLOAT_MAX) { + return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; + } else if(v < -FLOAT_MAX) { + return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; + } + + vec4 c = vec4(0,0,0,0); + + //Compute exponent and mantissa + float e = floor(log2(av)); + float m = av * pow(2.0, -e) - 1.0; + + //Unpack mantissa + c[1] = floor(128.0 * m); + m -= c[1] / 128.0; + c[2] = floor(32768.0 * m); + m -= c[2] / 32768.0; + c[3] = floor(8388608.0 * m); + + //Unpack exponent + float ebias = e + 127.0; + c[0] = floor(ebias / 2.0); + ebias -= c[0] * 2.0; + c[1] += floor(ebias) * 128.0; + + //Unpack sign bit + c[0] += 128.0 * step(0.0, -v); + + //Scale back to range + return c / 255.0; +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform float pickId; +uniform vec3 clipBounds[2]; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; + + gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,c,null,h)},a.createPickShader=function(d){return l(d,u,f,null,h)}},5714:function(i,a,o){"use strict";i.exports=S;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(g,P,T,F){return c[0]=F,c[1]=T,c[2]=P,c[3]=g,f[0]}var d=o(2478),v=o(9618),x=o(7319),b=x.createShader,p=x.createPickShader,E=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(g,P){for(var T=0,F=0;F<3;++F){var q=g[F]-P[F];T+=q*q}return Math.sqrt(T)}function A(g){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],T=0;T<3;++T)P[0][T]=Math.max(g[0][T],P[0][T]),P[1][T]=Math.min(g[1][T],P[1][T]);return P}function L(g,P,T,F){this.arcLength=g,this.position=P,this.index=T,this.dataCoordinate=F}function _(g,P,T,F,q,V){this.gl=g,this.shader=P,this.pickShader=T,this.buffer=F,this.vao=q,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=V,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var C=_.prototype;C.isTransparent=function(){return this.hasAlpha},C.isOpaque=function(){return!this.hasAlpha},C.pickSlots=1,C.setPickBase=function(g){this.pickId=g},C.drawTransparent=C.draw=function(g){if(this.vertexCount){var P=this.gl,T=this.shader,F=this.vao;T.bind(),T.uniforms={model:g.model||E,view:g.view||E,projection:g.projection||E,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},F.bind(),F.draw(P.TRIANGLE_STRIP,this.vertexCount),F.unbind()}},C.drawPick=function(g){if(this.vertexCount){var P=this.gl,T=this.pickShader,F=this.vao;T.bind(),T.uniforms={model:g.model||E,view:g.view||E,projection:g.projection||E,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},F.bind(),F.draw(P.TRIANGLE_STRIP,this.vertexCount),F.unbind()}},C.update=function(g){var P,T;this.dirty=!0;var F=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var q=[],V=[],H=[],X=0,G=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],Z=g.position||g.positions;if(Z){var ie=g.color||g.colors||[0,0,0,1],ae=g.lineWidth||1,we=!1;e:for(P=1;P0){for(var ye=0;ye<24;++ye)q.push(q[q.length-12]);G+=2,we=!0}continue e}N[0][T]=Math.min(N[0][T],Ee[T],ke[T]),N[1][T]=Math.max(N[1][T],Ee[T],ke[T])}var K,ce;Array.isArray(ie[0])?(K=ie.length>P-1?ie[P-1]:ie.length>0?ie[ie.length-1]:[0,0,0,1],ce=ie.length>P?ie[P]:ie.length>0?ie[ie.length-1]:[0,0,0,1]):K=ce=ie,K.length===3&&(K=[K[0],K[1],K[2],1]),ce.length===3&&(ce=[ce[0],ce[1],ce[2],1]),!this.hasAlpha&&K[3]<1&&(this.hasAlpha=!0);var pe;Array.isArray(ae)?pe=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:pe=ae;var xe=X;if(X+=k(Ee,ke),we){for(T=0;T<2;++T)q.push(Ee[0],Ee[1],Ee[2],ke[0],ke[1],ke[2],xe,pe,K[0],K[1],K[2],K[3]);G+=2,we=!1}q.push(Ee[0],Ee[1],Ee[2],ke[0],ke[1],ke[2],xe,pe,K[0],K[1],K[2],K[3],Ee[0],Ee[1],Ee[2],ke[0],ke[1],ke[2],xe,-pe,K[0],K[1],K[2],K[3],ke[0],ke[1],ke[2],Ee[0],Ee[1],Ee[2],X,-pe,ce[0],ce[1],ce[2],ce[3],ke[0],ke[1],ke[2],Ee[0],Ee[1],Ee[2],X,pe,ce[0],ce[1],ce[2],ce[3]),G+=4}}if(this.buffer.update(q),V.push(X),H.push(Z[Z.length-1].slice()),this.bounds=N,this.vertexCount=G,this.points=H,this.arcLength=V,"dashes"in g){var Ce=g.dashes,Me=Ce.slice();for(Me.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[_,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, normal; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model + , view + , projection + , inverseModel; +uniform vec3 eyePosition + , lightPosition; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +vec4 project(vec3 p) { + return projection * (view * (model * vec4(p, 1.0))); +} + +void main() { + gl_Position = project(position); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * vec4(position , 1.0); + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + f_color = color; + f_data = position; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness + , fresnel + , kambient + , kdiffuse + , kspecular; +uniform sampler2D texture; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (f_color.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], f_data) + ) discard; + + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d + + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * f_color.a; +} +`]),c=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model, view, projection; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_color = color; + f_data = position; + f_uv = uv; +}`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; + + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),h=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; +attribute float pointSize; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + } + gl_PointSize = pointSize; + f_color = color; + f_uv = uv; +}`]),d=s([`precision highp float; +#define GLSLIFY 1 + +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); + if(dot(pointR, pointR) > 0.25) { + discard; + } + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),v=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 id; + +uniform mat4 model, view, projection; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_id = id; + f_position = position; +}`]),x=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]),b=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute float pointSize; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0, 0.0, 0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + gl_PointSize = pointSize; + } + f_id = id; + f_position = position; +}`]),p=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; + +uniform mat4 model, view, projection; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); +}`]),E=s([`precision highp float; +#define GLSLIFY 1 + +uniform vec3 contourColor; + +void main() { + gl_FragColor = vec4(contourColor, 1.0); +} +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:E,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),x=o(7608),b=o(9618),p=o(6729),E=o(7765),k=o(1888),A=o(840),L=o(7626),_=A.meshShader,C=A.wireShader,S=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,F=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function q(ye,K,ce,pe,xe,Ce,Me,Le,je,Se,Xe,lt,At,Yt,nt,ot,Ft,Lt,Rt,Xt,xr,er,Ge,yt,_t,Ct,St){this.gl=ye,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=K,this.dirty=!0,this.triShader=ce,this.lineShader=pe,this.pointShader=xe,this.pickShader=Ce,this.pointPickShader=Me,this.contourShader=Le,this.trianglePositions=je,this.triangleColors=Xe,this.triangleNormals=At,this.triangleUVs=lt,this.triangleIds=Se,this.triangleVAO=Yt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=nt,this.edgeColors=Ft,this.edgeUVs=Lt,this.edgeIds=ot,this.edgeVAO=Rt,this.edgeCount=0,this.pointPositions=Xt,this.pointColors=er,this.pointUVs=Ge,this.pointSizes=yt,this.pointIds=xr,this.pointVAO=_t,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ct,this.contourVAO=St,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=F,this._view=F,this._projection=F,this._resolution=[1,1]}var V=q.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(ye){this.pickId=ye};function H(ye,K){if(!K||!K.length)return 1;for(var ce=0;ceye&&ce>0){var pe=(K[ce][0]-ye)/(K[ce][0]-K[ce-1][0]);return K[ce][1]*(1-pe)+pe*K[ce-1][1]}}return 1}function X(ye,K){for(var ce=p({colormap:ye,nshades:256,format:"rgba"}),pe=new Uint8Array(256*4),xe=0;xe<256;++xe){for(var Ce=ce[xe],Me=0;Me<3;++Me)pe[4*xe+Me]=Ce[Me];K?pe[4*xe+3]=255*H(xe/255,K):pe[4*xe+3]=255*Ce[3]}return b(pe,[256,256,4],[4,0,1])}function G(ye){for(var K=ye.length,ce=new Array(K),pe=0;pe0){var At=this.triShader;At.bind(),At.uniforms=Le,this.triangleVAO.bind(),K.drawArrays(K.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var At=this.lineShader;At.bind(),At.uniforms=Le,this.edgeVAO.bind(),K.lineWidth(this.lineWidth*this.pixelRatio),K.drawArrays(K.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var At=this.pointShader;At.bind(),At.uniforms=Le,this.pointVAO.bind(),K.drawArrays(K.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var At=this.contourShader;At.bind(),At.uniforms=Le,this.contourVAO.bind(),K.drawArrays(K.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(ye){ye=ye||{};for(var K=this.gl,ce=ye.model||F,pe=ye.view||F,xe=ye.projection||F,Ce=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Me=0;Me<3;++Me)Ce[0][Me]=Math.max(Ce[0][Me],this.clipBounds[0][Me]),Ce[1][Me]=Math.min(Ce[1][Me],this.clipBounds[1][Me]);this._model=[].slice.call(ce),this._view=[].slice.call(pe),this._projection=[].slice.call(xe),this._resolution=[K.drawingBufferWidth,K.drawingBufferHeight];var Le={model:ce,view:pe,projection:xe,clipBounds:Ce,pickId:this.pickId/255},je=this.pickShader;if(je.bind(),je.uniforms=Le,this.triangleCount>0&&(this.triangleVAO.bind(),K.drawArrays(K.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),K.lineWidth(this.lineWidth*this.pixelRatio),K.drawArrays(K.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var je=this.pointPickShader;je.bind(),je.uniforms=Le,this.pointVAO.bind(),K.drawArrays(K.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(ye){if(!ye||ye.id!==this.pickId)return null;for(var K=ye.value[0]+256*ye.value[1]+65536*ye.value[2],ce=this.cells[K],pe=this.positions,xe=new Array(ce.length),Ce=0;CeMath.abs(g))p.rotate(F,0,0,-S*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var q=-_.zoomSpeed*T*g/window.innerHeight*(F-p.lastT())/20;p.pan(F,0,0,k*(Math.exp(q)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +#define GLSLIFY 1 +attribute vec2 position; +varying vec2 uv; +void main() { + uv = position; + gl_Position = vec4(position, 0, 1); +}`]),c=s([`precision mediump float; +#define GLSLIFY 1 + +uniform sampler2D accumBuffer; +varying vec2 uv; + +void main() { + vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); + gl_FragColor = min(vec4(1,1,1,1), accum); +}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),d=o(7169),v=o(351),x=o(4772),b=o(4040),p=o(799),E=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:C,createCamera:s};function k(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(g,P){var T=null;try{T=g.getContext("webgl",P),T||(T=g.getContext("experimental-webgl",P))}catch(F){return null}return T}function L(g){var P=Math.round(Math.log(Math.abs(g))/Math.log(10));if(P<0){var T=Math.round(Math.pow(10,-P));return Math.ceil(g*T)/T}else if(P>0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function _(g){return typeof g=="boolean"?g:!0}function C(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var F=g.gl;if(F||(g.glOptions&&(E=!!g.glOptions.preserveDrawingBuffer),F=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:E})),!F)throw new Error("webgl not supported");var q=g.bounds||[[-10,-10,-10],[10,10,10]],V=new k,H=h(F,F.drawingBufferWidth,F.drawingBufferHeight,{preferFloat:!E}),X=p(F),G=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:G},Z=g.axes||{},ie=l(F,Z);ie.enable=!Z.disable;var ae=g.spikes||{},we=c(F,ae),Ee=[],ke=[],ye=[],K=[],ce=!0,Me=!0,pe=new Array(16),xe=new Array(16),Ce={view:null,projection:pe,model:xe,_ortho:!1},Me=!0,Le=[F.drawingBufferWidth,F.drawingBufferHeight],je=g.cameraObject||s(P,N),Se={gl:F,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:je,axes:ie,axesPixels:null,spikes:we,bounds:q,objects:Ee,shape:Le,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:_(g.autoResize),autoBounds:_(g.autoBounds),autoScale:!!g.autoScale,autoCenter:_(g.autoCenter),clipToBounds:_(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:Ce,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Xt){this.aspect[0]=Xt.x,this.aspect[1]=Xt.y,this.aspect[2]=Xt.z,Me=!0},setBounds:function(Xt,xr){this.bounds[0][Xt]=xr.min,this.bounds[1][Xt]=xr.max},setClearColor:function(Xt){this.clearColor=Xt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Xe=[F.drawingBufferWidth/Se.pixelRatio|0,F.drawingBufferHeight/Se.pixelRatio|0];function lt(){if(!Se._stopped&&Se.autoResize){var Xt=P.parentNode,xr=1,er=1;Xt&&Xt!==document.body?(xr=Xt.clientWidth,er=Xt.clientHeight):(xr=window.innerWidth,er=window.innerHeight);var Ge=Math.ceil(xr*Se.pixelRatio)|0,yt=Math.ceil(er*Se.pixelRatio)|0;if(Ge!==P.width||yt!==P.height){P.width=Ge,P.height=yt;var _t=P.style;_t.position=_t.position||"absolute",_t.left="0px",_t.top="0px",_t.width=xr+"px",_t.height=er+"px",ce=!0}}}Se.autoResize&<(),window.addEventListener("resize",lt);function At(){for(var Xt=Ee.length,xr=K.length,er=0;er0&&ye[xr-1]===0;)ye.pop(),K.pop().dispose()}Se.update=function(Xt){Se._stopped||(Xt=Xt||{},ce=!0,Me=!0)},Se.add=function(Xt){Se._stopped||(Xt.axes=ie,Ee.push(Xt),ke.push(-1),ce=!0,Me=!0,At())},Se.remove=function(Xt){if(!Se._stopped){var xr=Ee.indexOf(Xt);xr<0||(Ee.splice(xr,1),ke.pop(),ce=!0,Me=!0,At())}},Se.dispose=function(){if(!Se._stopped&&(Se._stopped=!0,window.removeEventListener("resize",lt),P.removeEventListener("webglcontextlost",Yt),Se.mouseListener.enabled=!1,!Se.contextLost)){ie.dispose(),we.dispose();for(var Xt=0;XtV.distance)continue;for(var ft=0;ft1e-6?(E=Math.acos(k),A=Math.sin(E),L=Math.sin((1-u)*E)/A,_=Math.sin(u*E)/A):(L=1-u,_=u),o[0]=L*c+_*v,o[1]=L*f+_*x,o[2]=L*h+_*b,o[3]=L*d+_*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(c,x);x.triangles=!1;var p=s(c,x),E,k;if(h&&h!==1){for(E=0;E max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform vec4 highlightId; +uniform float highlightScale; +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = 1.0; + if(distance(highlightId, id) < 0.0001) { + scale = highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1); + vec4 viewPosition = view * worldPosition; + viewPosition = viewPosition / viewPosition.w; + vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),c=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float highlightScale, pixelRatio; +uniform vec4 highlightId; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = pixelRatio; + if(distance(highlightId.bgr, id.bgr) < 0.001) { + scale *= highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1.0); + vec4 viewPosition = view * worldPosition; + vec4 clipPosition = projection * viewPosition; + clipPosition /= clipPosition.w; + + gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),f=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform float highlightScale; +uniform vec4 highlightId; +uniform vec3 axes[2]; +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float scale, pixelRatio; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float lscale = pixelRatio * scale; + if(distance(highlightId, id) < 0.0001) { + lscale *= highlightScale; + } + + vec4 clipCenter = projection * (view * (model * vec4(position, 1))); + vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; + vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1))); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = dataPosition; + } +} +`]),h=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float opacity; + +varying vec4 interpColor; +varying vec3 dataCoordinate; + +void main() { + if ( + outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || + interpColor.a * opacity == 0. + ) discard; + gl_FragColor = interpColor * opacity; +} +`]),d=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float pickGroup; + +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; + + gl_FragColor = vec4(pickGroup, pickId.bgr); +}`]),v=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],x={vertex:u,fragment:h,attributes:v},b={vertex:c,fragment:h,attributes:v},p={vertex:f,fragment:h,attributes:v},E={vertex:u,fragment:d,attributes:v},k={vertex:c,fragment:d,attributes:v},A={vertex:f,fragment:d,attributes:v};function L(_,C){var S=s(_,C),g=S.attributes;return g.position.location=0,g.color.location=1,g.glyph.location=2,g.id.location=3,S}a.createPerspective=function(_){return L(_,x)},a.createOrtho=function(_){return L(_,b)},a.createProject=function(_){return L(_,p)},a.createPickPerspective=function(_){return L(_,E)},a.createPickOrtho=function(_){return L(_,k)},a.createPickProject=function(_){return L(_,A)}},8418:function(i,a,o){"use strict";var s=o(5219),l=o(2762),u=o(8116),c=o(1888),f=o(6760),h=o(1283),d=o(9366),v=o(5964),x=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],b=ArrayBuffer,p=DataView;function E(xe){return b.isView(xe)&&!(xe instanceof p)}function k(xe){return Array.isArray(xe)||E(xe)}i.exports=pe;function A(xe,Ce){var Me=xe[0],Le=xe[1],je=xe[2],Se=xe[3];return xe[0]=Ce[0]*Me+Ce[4]*Le+Ce[8]*je+Ce[12]*Se,xe[1]=Ce[1]*Me+Ce[5]*Le+Ce[9]*je+Ce[13]*Se,xe[2]=Ce[2]*Me+Ce[6]*Le+Ce[10]*je+Ce[14]*Se,xe[3]=Ce[3]*Me+Ce[7]*Le+Ce[11]*je+Ce[15]*Se,xe}function L(xe,Ce,Me,Le){return A(Le,Le,Me),A(Le,Le,Ce),A(Le,Le,xe)}function _(xe,Ce){this.index=xe,this.dataCoordinate=this.position=Ce}function C(xe){return xe===!0||xe>1?1:xe}function S(xe,Ce,Me,Le,je,Se,Xe,lt,At,Yt,nt,ot){this.gl=xe,this.pixelRatio=1,this.shader=Ce,this.orthoShader=Me,this.projectShader=Le,this.pointBuffer=je,this.colorBuffer=Se,this.glyphBuffer=Xe,this.idBuffer=lt,this.vao=At,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Yt,this.pickOrthoShader=nt,this.pickProjectShader=ot,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=S.prototype;g.pickSlots=1,g.setPickBase=function(xe){this.pickId=xe},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var xe=0;xe<3;++xe)if(this.axesProject[xe]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var xe=0;xe<3;++xe)if(this.axesProject[xe]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],F=[0,0,0],q=[0,0,0,1],V=[0,0,0,1],H=x.slice(),X=[0,0,0],G=[[0,0,0],[0,0,0]];function N(xe){return xe[0]=xe[1]=xe[2]=0,xe}function Z(xe,Ce){return xe[0]=Ce[0],xe[1]=Ce[1],xe[2]=Ce[2],xe[3]=1,xe}function ie(xe,Ce,Me,Le){return xe[0]=Ce[0],xe[1]=Ce[1],xe[2]=Ce[2],xe[Me]=Le,xe}function ae(xe){for(var Ce=G,Me=0;Me<2;++Me)for(var Le=0;Le<3;++Le)Ce[Me][Le]=Math.max(Math.min(xe[Me][Le],1e8),-1e8);return Ce}function we(xe,Ce,Me,Le){var je=Ce.axesProject,Se=Ce.gl,Xe=xe.uniforms,lt=Me.model||x,At=Me.view||x,Yt=Me.projection||x,nt=Ce.axesBounds,ot=ae(Ce.clipBounds),Ft;Ce.axes&&Ce.axes.lastCubeProps?Ft=Ce.axes.lastCubeProps.axis:Ft=[1,1,1],P[0]=2/Se.drawingBufferWidth,P[1]=2/Se.drawingBufferHeight,xe.bind(),Xe.view=At,Xe.projection=Yt,Xe.screenSize=P,Xe.highlightId=Ce.highlightId,Xe.highlightScale=Ce.highlightScale,Xe.clipBounds=ot,Xe.pickGroup=Ce.pickId/255,Xe.pixelRatio=Le;for(var Lt=0;Lt<3;++Lt)if(je[Lt]){Xe.scale=Ce.projectScale[Lt],Xe.opacity=Ce.projectOpacity[Lt];for(var Rt=H,Xt=0;Xt<16;++Xt)Rt[Xt]=0;for(var Xt=0;Xt<4;++Xt)Rt[5*Xt]=1;Rt[5*Lt]=0,Ft[Lt]<0?Rt[12+Lt]=nt[0][Lt]:Rt[12+Lt]=nt[1][Lt],f(Rt,lt,Rt),Xe.model=Rt;var xr=(Lt+1)%3,er=(Lt+2)%3,Ge=N(T),yt=N(F);Ge[xr]=1,yt[er]=1;var _t=L(Yt,At,lt,Z(q,Ge)),Ct=L(Yt,At,lt,Z(V,yt));if(Math.abs(_t[1])>Math.abs(Ct[1])){var St=_t;_t=Ct,Ct=St,St=Ge,Ge=yt,yt=St;var kt=xr;xr=er,er=kt}_t[0]<0&&(Ge[xr]=-1),Ct[1]>0&&(yt[er]=-1);for(var ft=0,Gt=0,Xt=0;Xt<4;++Xt)ft+=Math.pow(lt[4*xr+Xt],2),Gt+=Math.pow(lt[4*er+Xt],2);Ge[xr]/=Math.sqrt(ft),yt[er]/=Math.sqrt(Gt),Xe.axes[0]=Ge,Xe.axes[1]=yt,Xe.fragClipBounds[0]=ie(X,ot[0],Lt,-1e8),Xe.fragClipBounds[1]=ie(X,ot[1],Lt,1e8),Ce.vao.bind(),Ce.vao.draw(Se.TRIANGLES,Ce.vertexCount),Ce.lineWidth>0&&(Se.lineWidth(Ce.lineWidth*Le),Ce.vao.draw(Se.LINES,Ce.lineVertexCount,Ce.vertexCount)),Ce.vao.unbind()}}var Ee=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],ye=[Ee,ke];function K(xe,Ce,Me,Le,je,Se,Xe){var lt=Me.gl;if((Se===Me.projectHasAlpha||Xe)&&we(Ce,Me,Le,je),Se===Me.hasAlpha||Xe){xe.bind();var At=xe.uniforms;At.model=Le.model||x,At.view=Le.view||x,At.projection=Le.projection||x,P[0]=2/lt.drawingBufferWidth,P[1]=2/lt.drawingBufferHeight,At.screenSize=P,At.highlightId=Me.highlightId,At.highlightScale=Me.highlightScale,At.fragClipBounds=ye,At.clipBounds=Me.axes.bounds,At.opacity=Me.opacity,At.pickGroup=Me.pickId/255,At.pixelRatio=je,Me.vao.bind(),Me.vao.draw(lt.TRIANGLES,Me.vertexCount),Me.lineWidth>0&&(lt.lineWidth(Me.lineWidth*je),Me.vao.draw(lt.LINES,Me.lineVertexCount,Me.vertexCount)),Me.vao.unbind()}}g.draw=function(xe){var Ce=this.useOrtho?this.orthoShader:this.shader;K(Ce,this.projectShader,this,xe,this.pixelRatio,!1,!1)},g.drawTransparent=function(xe){var Ce=this.useOrtho?this.orthoShader:this.shader;K(Ce,this.projectShader,this,xe,this.pixelRatio,!0,!1)},g.drawPick=function(xe){var Ce=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;K(Ce,this.pickProjectShader,this,xe,1,!0,!0)},g.pick=function(xe){if(!xe||xe.id!==this.pickId)return null;var Ce=xe.value[2]+(xe.value[1]<<8)+(xe.value[0]<<16);if(Ce>=this.pointCount||Ce<0)return null;var Me=this.points[Ce],Le=this._selectResult;Le.index=Ce;for(var je=0;je<3;++je)Le.position[je]=Le.dataCoordinate[je]=Me[je];return Le},g.highlight=function(xe){if(!xe)this.highlightId=[1,1,1,1];else{var Ce=xe.index,Me=Ce&255,Le=Ce>>8&255,je=Ce>>16&255;this.highlightId=[Me/255,Le/255,je/255,0]}};function ce(xe,Ce,Me,Le){var je;k(xe)?Ce0){var Ur=0,ut=er,rt=[0,0,0,1],it=[0,0,0,1],Ze=k(Ft)&&k(Ft[0]),Je=k(Xt)&&k(Xt[0]);e:for(var Le=0;Le0?1-Gt[0][0]:Ot<0?1+Gt[1][0]:1,rr*=rr>0?1-Gt[0][1]:rr<0?1+Gt[1][1]:1;for(var Jr=[Ot,rr],an=kt.cells||[],Yi=kt.positions||[],Ct=0;Ctthis.buffer.length){l.free(this.buffer);for(var k=this.buffer=l.mallocUint8(c(E*p*4)),A=0;Ak)for(p=k;pE)for(p=E;p=0){for(var G=X.type.charAt(X.type.length-1)|0,N=new Array(G),Z=0;Z=0;)ie+=1;V[H]=ie}var ae=new Array(k.length);function we(){_.program=c.program(C,_._vref,_._fref,q,V);for(var Ee=0;Ee=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+C);f(v,x,S[0],p,g,E,_)}else if(C.indexOf("mat")>=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+C);h(v,x,S,p,g,E,_)}else throw new s("","Unknown data type for attribute "+_+": "+C);break}}return E}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),x=0;x4)throw new l("","Invalid data type");switch(ie.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](x[V],H);break;case"v":h["uniform"+ae+"fv"](x[V],H);break;default:throw new l("","Unrecognized data type for vector "+name+": "+ie)}}else if(ie.indexOf("mat")===0&&ie.length===4){if(ae=ie.charCodeAt(ie.length-1)-48,ae<2||ae>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+ie);h["uniformMatrix"+ae+"fv"](x[V],!1,H);break}else throw new l("","Unknown uniform data type for "+name+": "+ie)}}}}}function E(C,S){if(typeof S!="object")return[[C,S]];var g=[];for(var P in S){var T=S[P],F=C;parseInt(P)+""===P?F+="["+P+"]":F+="."+P,typeof T=="object"?g.push.apply(g,E(F,T)):g.push([F,T])}return g}function k(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=C.indexOf("vec");if(0<=S&&S<=1&&C.length===4+S){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return C.charAt(0)==="b"?c(g,!1):c(g,0)}else if(C.indexOf("mat")===0&&C.length===4){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+C);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+C)}}function A(C,S,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(C,S,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else x[g]?Object.defineProperty(C,S,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):C[S]=k(v[g].type)}function L(C){var S;if(Array.isArray(C)){S=new Array(C.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var x=1;x1)for(var E=0;E 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, tubeScale; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * tubePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(tubePosition, 1.0); + vec4 t_position = view * tubePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = tubePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),c=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float tubeScale; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + gl_Position = projection * (view * tubePosition); + f_id = id; + f_position = position.xyz; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(i,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(A,L,_,C){for(var S=A.points,g=A.velocities,P=A.divergences,T=[],F=[],q=[],V=[],H=[],X=[],G=0,N=0,Z=l.create(),ie=l.create(),ae=8,we=0;we0)for(var K=0;KL)return C-1}return C},d=function(A,L,_){return A_?_:A},v=function(A,L,_){var C=L.vectors,S=L.meshgrid,g=A[0],P=A[1],T=A[2],F=S[0].length,q=S[1].length,V=S[2].length,H=h(S[0],g),X=h(S[1],P),G=h(S[2],T),N=H+1,Z=X+1,ie=G+1;if(H=d(H,0,F-1),N=d(N,0,F-1),X=d(X,0,q-1),Z=d(Z,0,q-1),G=d(G,0,V-1),ie=d(ie,0,V-1),H<0||X<0||G<0||N>F-1||Z>q-1||ie>V-1)return s.create();var ae=S[0][H],we=S[0][N],Ee=S[1][X],ke=S[1][Z],ye=S[2][G],K=S[2][ie],ce=(g-ae)/(we-ae),pe=(P-Ee)/(ke-Ee),xe=(T-ye)/(K-ye);isFinite(ce)||(ce=.5),isFinite(pe)||(pe=.5),isFinite(xe)||(xe=.5);var Ce,Me,Le,je,Se,Xe;switch(_.reversedX&&(H=F-1-H,N=F-1-N),_.reversedY&&(X=q-1-X,Z=q-1-Z),_.reversedZ&&(G=V-1-G,ie=V-1-ie),_.filled){case 5:Se=G,Xe=ie,Le=X*V,je=Z*V,Ce=H*V*q,Me=N*V*q;break;case 4:Se=G,Xe=ie,Ce=H*V,Me=N*V,Le=X*V*F,je=Z*V*F;break;case 3:Le=X,je=Z,Se=G*q,Xe=ie*q,Ce=H*q*V,Me=N*q*V;break;case 2:Le=X,je=Z,Ce=H*q,Me=N*q,Se=G*q*F,Xe=ie*q*F;break;case 1:Ce=H,Me=N,Se=G*F,Xe=ie*F,Le=X*F*V,je=Z*F*V;break;default:Ce=H,Me=N,Le=X*F,je=Z*F,Se=G*F*q,Xe=ie*F*q;break}var lt=C[Ce+Le+Se],At=C[Ce+Le+Xe],Yt=C[Ce+je+Se],nt=C[Ce+je+Xe],ot=C[Me+Le+Se],Ft=C[Me+Le+Xe],Lt=C[Me+je+Se],Rt=C[Me+je+Xe],Xt=s.create(),xr=s.create(),er=s.create(),Ge=s.create();s.lerp(Xt,lt,ot,ce),s.lerp(xr,At,Ft,ce),s.lerp(er,Yt,Lt,ce),s.lerp(Ge,nt,Rt,ce);var yt=s.create(),_t=s.create();s.lerp(yt,Xt,er,pe),s.lerp(_t,xr,Ge,pe);var Ct=s.create();return s.lerp(Ct,yt,_t,xe),Ct},x=function(A,L){var _=L[0],C=L[1],S=L[2];return A[0]=_<0?-_:_,A[1]=C<0?-C:C,A[2]=S<0?-S:S,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var _=A.length,C=1;C<_;C++){var S=Math.abs(A[C]-A[C-1]);SN||RtZ||Xtie)},we=s.distance(L[0],L[1]),Ee=10*we/C,ke=Ee*Ee,ye=1,K=0,ce=_.length;ce>1&&(ye=p(_));for(var pe=0;peK&&(K=lt),Se.push(lt),V.push({points:Ce,velocities:Me,divergences:Se});for(var At=0;Atke&&s.scale(Yt,Yt,Ee/Math.sqrt(nt)),s.add(Yt,Yt,xe),Le=F(Yt),s.squaredDistance(je,Yt)-ke>-1e-4*ke){Ce.push(Yt),je=Yt,Me.push(Le);var Xe=q(Yt,Le),lt=s.length(Xe);isFinite(lt)&<>K&&(K=lt),Se.push(lt)}xe=Yt}}var ot=f(V,A.colormap,K,ye);return g?ot.tubeScale=g:(K===0&&(K=1),ot.tubeScale=S*.5*ye/K),ot};var E=o(6740),k=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return k(A,L,{shaders:E,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute vec3 f; +attribute vec3 normal; + +uniform vec3 objectOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 lightPosition, eyePosition; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 localCoordinate = vec3(uv.zw, f.x); + worldCoordinate = objectOffset + localCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0); + vec4 clipPosition = projection * (view * worldPosition); + gl_Position = clipPosition; + kill = f.y; + value = f.z; + planeCoordinate = uv.xy; + + vColor = texture2D(colormap, vec2(value, value)); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * worldPosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + lightDirection = lightPosition - cameraCoordinate.xyz; + eyeDirection = eyePosition - cameraCoordinate.xyz; + surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); +} +`]),c=l([`precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float beckmannSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness) { + return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 lowerBound, upperBound; +uniform float contourTint; +uniform vec4 contourColor; +uniform sampler2D colormap; +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform float vertexColor; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + if ( + kill > 0.0 || + vColor.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) + ) discard; + + vec3 N = normalize(surfaceNormal); + vec3 V = normalize(eyeDirection); + vec3 L = normalize(lightDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = max(beckmannSpecular(L, V, N, roughness), 0.); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + //decide how to interpolate color \u2014 in vertex or in fragment + vec4 surfaceColor = + step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + + step(.5, vertexColor) * vColor; + + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; +} +`]),f=l([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute float f; + +uniform vec3 objectOffset; +uniform mat3 permutation; +uniform mat4 model, view, projection; +uniform float height, zOffset; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 dataCoordinate = permutation * vec3(uv.xy, height); + worldCoordinate = objectOffset + dataCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0); + + vec4 clipPosition = projection * (view * worldPosition); + clipPosition.z += zOffset; + + gl_Position = clipPosition; + value = f + objectOffset.z; + kill = -1.0; + planeCoordinate = uv.zw; + + vColor = texture2D(colormap, vec2(value, value)); + + //Don't do lighting for contours + surfaceNormal = vec3(1,0,0); + eyeDirection = vec3(0,1,0); + lightDirection = vec3(0,0,1); +} +`]),h=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec2 shape; +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 surfaceNormal; + +vec2 splitFloat(float v) { + float vh = 255.0 * v; + float upper = floor(vh); + float lower = fract(vh); + return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); +} + +void main() { + if ((kill > 0.0) || + (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; + + vec2 ux = splitFloat(planeCoordinate.x / shape.x); + vec2 uy = splitFloat(planeCoordinate.y / shape.y); + gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); +} +`]);a.createShader=function(d){var v=s(d,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createPickShader=function(d){var v=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createContourShader=function(d){var v=s(d,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v},a.createPickContourShader=function(d){var v=s(d,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v}},9499:function(i,a,o){"use strict";i.exports=Ce;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),d=o(5298),v=o(9994),x=o(9618),b=o(3711),p=o(6760),E=o(7608),k=o(2478),A=o(6199),L=o(990),_=L.createShader,C=L.createContourShader,S=L.createPickShader,g=L.createPickContourShader,P=4*10,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],F=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],q=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Me=0;Me<3;++Me){var Le=q[Me],je=(Me+1)%3,Se=(Me+2)%3;Le[je+0]=1,Le[Se+3]=1,Le[Me+6]=1}})();function V(Me,Le,je,Se,Xe){this.position=Me,this.index=Le,this.uv=je,this.level=Se,this.dataCoordinate=Xe}var H=256;function X(Me,Le,je,Se,Xe,lt,At,Yt,nt,ot,Ft,Lt,Rt,Xt,xr){this.gl=Me,this.shape=Le,this.bounds=je,this.objectOffset=xr,this.intensityBounds=[],this._shader=Se,this._pickShader=Xe,this._coordinateBuffer=lt,this._vao=At,this._colorMap=Yt,this._contourShader=nt,this._contourPickShader=ot,this._contourBuffer=Ft,this._contourVAO=Lt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new V([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Rt,this._dynamicVAO=Xt,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var G=X.prototype;G.genColormap=function(Me,Le){var je=!1,Se=v([h({colormap:Me,nshades:H,format:"rgba"}).map(function(Xe,lt){var At=Le?N(lt/255,Le):Xe[3];return At<1&&(je=!0),[Xe[0],Xe[1],Xe[2],255*At]})]);return d.divseq(Se,255),this.hasAlphaScale=je,Se},G.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},G.isOpaque=function(){return!this.isTransparent()},G.pickSlots=1,G.setPickBase=function(Me){this.pickId=Me};function N(Me,Le){if(!Le||!Le.length)return 1;for(var je=0;jeMe&&je>0){var Se=(Le[je][0]-Me)/(Le[je][0]-Le[je-1][0]);return Le[je][1]*(1-Se)+Se*Le[je-1][1]}}return 1}var Z=[0,0,0],ie={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Me,Le){var je,Se,Xe,lt=Le.axes&&Le.axes.lastCubeProps.axis||Z,At=Le.showSurface,Yt=Le.showContour;for(je=0;je<3;++je)for(At=At||Le.surfaceProject[je],Se=0;Se<3;++Se)Yt=Yt||Le.contourProject[je][Se];for(je=0;je<3;++je){var nt=ie.projections[je];for(Se=0;Se<16;++Se)nt[Se]=0;for(Se=0;Se<4;++Se)nt[5*Se]=1;nt[5*je]=0,nt[12+je]=Le.axesBounds[+(lt[je]>0)][je],p(nt,Me.model,nt);var ot=ie.clipBounds[je];for(Xe=0;Xe<2;++Xe)for(Se=0;Se<3;++Se)ot[Xe][Se]=Me.clipBounds[Xe][Se];ot[0][je]=-1e8,ot[1][je]=1e8}return ie.showSurface=At,ie.showContour=Yt,ie}var we={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Ee=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function ye(Me,Le){Me=Me||{};var je=this.gl;je.disable(je.CULL_FACE),this._colorMap.bind(0);var Se=we;Se.model=Me.model||T,Se.view=Me.view||T,Se.projection=Me.projection||T,Se.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],Se.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],Se.objectOffset=this.objectOffset,Se.contourColor=this.contourColor[0],Se.inverseModel=E(Se.inverseModel,Se.model);for(var Xe=0;Xe<2;++Xe)for(var lt=Se.clipBounds[Xe],At=0;At<3;++At)lt[At]=Math.min(Math.max(this.clipBounds[Xe][At],-1e8),1e8);Se.kambient=this.ambientLight,Se.kdiffuse=this.diffuseLight,Se.kspecular=this.specularLight,Se.roughness=this.roughness,Se.fresnel=this.fresnel,Se.opacity=this.opacity,Se.height=0,Se.permutation=ke,Se.vertexColor=this.vertexColor;var Yt=Ee;for(p(Yt,Se.view,Se.model),p(Yt,Se.projection,Yt),E(Yt,Yt),Xe=0;Xe<3;++Xe)Se.eyePosition[Xe]=Yt[12+Xe]/Yt[15];var nt=Yt[15];for(Xe=0;Xe<3;++Xe)nt+=this.lightPosition[Xe]*Yt[4*Xe+3];for(Xe=0;Xe<3;++Xe){var ot=Yt[12+Xe];for(At=0;At<3;++At)ot+=Yt[4*At+Xe]*this.lightPosition[At];Se.lightPosition[Xe]=ot/nt}var Ft=ae(Se,this);if(Ft.showSurface){for(this._shader.bind(),this._shader.uniforms=Se,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(je.TRIANGLES,this._vertexCount),Xe=0;Xe<3;++Xe)!this.surfaceProject[Xe]||!this.vertexCount||(this._shader.uniforms.model=Ft.projections[Xe],this._shader.uniforms.clipBounds=Ft.clipBounds[Xe],this._vao.draw(je.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ft.showContour){var Lt=this._contourShader;Se.kambient=1,Se.kdiffuse=0,Se.kspecular=0,Se.opacity=1,Lt.bind(),Lt.uniforms=Se;var Rt=this._contourVAO;for(Rt.bind(),Xe=0;Xe<3;++Xe)for(Lt.uniforms.permutation=q[Xe],je.lineWidth(this.contourWidth[Xe]*this.pixelRatio),At=0;At>4)/16)/255,Xe=Math.floor(Se),lt=Se-Xe,At=Le[1]*(Me.value[1]+(Me.value[2]&15)/16)/255,Yt=Math.floor(At),nt=At-Yt;Xe+=1,Yt+=1;var ot=je.position;ot[0]=ot[1]=ot[2]=0;for(var Ft=0;Ft<2;++Ft)for(var Lt=Ft?lt:1-lt,Rt=0;Rt<2;++Rt)for(var Xt=Rt?nt:1-nt,xr=Xe+Ft,er=Yt+Rt,Ge=Lt*Xt,yt=0;yt<3;++yt)ot[yt]+=this._field[yt].get(xr,er)*Ge;for(var _t=this._pickResult.level,Ct=0;Ct<3;++Ct)if(_t[Ct]=k.le(this.contourLevels[Ct],ot[Ct]),_t[Ct]<0)this.contourLevels[Ct].length>0&&(_t[Ct]=0);else if(_t[Ct]Math.abs(kt-ot[Ct])&&(_t[Ct]+=1)}for(je.index[0]=lt<.5?Xe:Xe+1,je.index[1]=nt<.5?Yt:Yt+1,je.uv[0]=Se/Le[0],je.uv[1]=At/Le[1],yt=0;yt<3;++yt)je.dataCoordinate[yt]=this._field[yt].get(je.index[0],je.index[1]);return je},G.padField=function(Me,Le){var je=Le.shape.slice(),Se=Me.shape.slice();d.assign(Me.lo(1,1).hi(je[0],je[1]),Le),d.assign(Me.lo(1).hi(je[0],1),Le.hi(je[0],1)),d.assign(Me.lo(1,Se[1]-1).hi(je[0],1),Le.lo(0,je[1]-1).hi(je[0],1)),d.assign(Me.lo(0,1).hi(1,je[1]),Le.hi(1)),d.assign(Me.lo(Se[0]-1,1).hi(1,je[1]),Le.lo(je[0]-1)),Me.set(0,0,Le.get(0,0)),Me.set(0,Se[1]-1,Le.get(0,je[1]-1)),Me.set(Se[0]-1,0,Le.get(je[0]-1,0)),Me.set(Se[0]-1,Se[1]-1,Le.get(je[0]-1,je[1]-1))};function ce(Me,Le){return Array.isArray(Me)?[Le(Me[0]),Le(Me[1]),Le(Me[2])]:[Le(Me),Le(Me),Le(Me)]}function pe(Me){return Array.isArray(Me)?Me.length===3?[Me[0],Me[1],Me[2],1]:[Me[0],Me[1],Me[2],Me[3]]:[0,0,0,1]}function xe(Me){if(Array.isArray(Me)){if(Array.isArray(Me))return[pe(Me[0]),pe(Me[1]),pe(Me[2])];var Le=pe(Me);return[Le.slice(),Le.slice(),Le.slice()]}}G.update=function(Me){Me=Me||{},this.objectOffset=Me.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Me&&(this.contourWidth=ce(Me.contourWidth,Number)),"showContour"in Me&&(this.showContour=ce(Me.showContour,Boolean)),"showSurface"in Me&&(this.showSurface=!!Me.showSurface),"contourTint"in Me&&(this.contourTint=ce(Me.contourTint,Boolean)),"contourColor"in Me&&(this.contourColor=xe(Me.contourColor)),"contourProject"in Me&&(this.contourProject=ce(Me.contourProject,function(ji){return ce(ji,Boolean)})),"surfaceProject"in Me&&(this.surfaceProject=Me.surfaceProject),"dynamicColor"in Me&&(this.dynamicColor=xe(Me.dynamicColor)),"dynamicTint"in Me&&(this.dynamicTint=ce(Me.dynamicTint,Number)),"dynamicWidth"in Me&&(this.dynamicWidth=ce(Me.dynamicWidth,Number)),"opacity"in Me&&(this.opacity=Me.opacity),"opacityscale"in Me&&(this.opacityscale=Me.opacityscale),"colorBounds"in Me&&(this.colorBounds=Me.colorBounds),"vertexColor"in Me&&(this.vertexColor=Me.vertexColor?1:0),"colormap"in Me&&this._colorMap.setPixels(this.genColormap(Me.colormap,this.opacityscale));var Le=Me.field||Me.coords&&Me.coords[2]||null,je=!1;if(Le||(this._field[2].shape[0]||this._field[2].shape[2]?Le=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):Le=this._field[2].hi(0,0)),"field"in Me||"coords"in Me){var Se=(Le.shape[0]+2)*(Le.shape[1]+2);Se>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(Se))),this._field[2]=x(this._field[2].data,[Le.shape[0]+2,Le.shape[1]+2]),this.padField(this._field[2],Le),this.shape=Le.shape.slice();for(var Xe=this.shape,lt=0;lt<2;++lt)this._field[2].size>this._field[lt].data.length&&(f.freeFloat(this._field[lt].data),this._field[lt].data=f.mallocFloat(this._field[2].size)),this._field[lt]=x(this._field[lt].data,[Xe[0]+2,Xe[1]+2]);if(Me.coords){var At=Me.coords;if(!Array.isArray(At)||At.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(lt=0;lt<2;++lt){var Yt=At[lt];for(Rt=0;Rt<2;++Rt)if(Yt.shape[Rt]!==Xe[Rt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[lt],Yt)}}else if(Me.ticks){var nt=Me.ticks;if(!Array.isArray(nt)||nt.length!==2)throw new Error("gl-surface: invalid ticks");for(lt=0;lt<2;++lt){var ot=nt[lt];if((Array.isArray(ot)||ot.length)&&(ot=x(ot)),ot.shape[0]!==Xe[lt])throw new Error("gl-surface: invalid tick length");var Ft=x(ot.data,Xe);Ft.stride[lt]=ot.stride[0],Ft.stride[lt^1]=0,this.padField(this._field[lt],Ft)}}else{for(lt=0;lt<2;++lt){var Lt=[0,0];Lt[lt]=1,this._field[lt]=x(this._field[lt].data,[Xe[0]+2,Xe[1]+2],Lt,0)}this._field[0].set(0,0,0);for(var Rt=0;Rt0){for(var ki=0;ki<5;++ki)ni.pop();Ze-=1}continue e}}}an.push(Ze)}this._contourOffsets[Gr]=Ti,this._contourCounts[Gr]=an}var Ri=f.mallocFloat(ni.length);for(lt=0;ltV||F<0||F>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,F],P.bind(),q.texImage2D(q.TEXTURE_2D,0,P.format,T,F,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,F,q,V,H){this.gl=P,this.handle=T,this.format=V,this.type=H,this._shape=[F,q],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var X=this,G=[this._wrapS,this._wrapT];Object.defineProperties(G,[{get:function(){return X._wrapS},set:function(Z){return X.wrapS=Z}},{get:function(){return X._wrapT},set:function(Z){return X.wrapT=Z}}]),this._wrapVector=G;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return X._shape[0]},set:function(Z){return X.width=Z}},{get:function(){return X._shape[1]},set:function(Z){return X.height=Z}}]),this._shapeVector=N}var E=p.prototype;Object.defineProperties(E,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var F=this.gl.getExtension("EXT_texture_filter_anisotropic");F&&this.gl.texParameterf(this.gl.TEXTURE_2D,F.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var F=this.gl;return this.bind(),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,this._wrapS),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),E.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},E.dispose=function(){this.gl.deleteTexture(this.handle)},E.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},E.setPixels=function(P,T,F,q){var V=this.gl;this.bind(),Array.isArray(T)?(q=F,F=T[1]|0,T=T[0]|0):(T=T||0,F=F||0),q=q||0;var H=v(P)?P:P.raw;if(H){var X=this._mipLevels.indexOf(q)<0;X?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,H),this._mipLevels.push(q)):V.texSubImage2D(V.TEXTURE_2D,q,T,F,this.format,this.type,H)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>q||F+P.shape[0]>this._shape[0]>>>q||T<0||F<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,F,q,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function k(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,F,q,V,H,X,G){var N=G.dtype,Z=G.shape.slice();if(Z.length<2||Z.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var ie=0,ae=0,we=k(Z,G.stride.slice());N==="float32"?ie=P.FLOAT:N==="float64"?(ie=P.FLOAT,we=!1,N="float32"):N==="uint8"?ie=P.UNSIGNED_BYTE:(ie=P.UNSIGNED_BYTE,we=!1,N="uint8");var Ee=1;if(Z.length===2)ae=P.LUMINANCE,Z=[Z[0],Z[1],1],G=s(G.data,Z,[G.stride[0],G.stride[1],1],G.offset);else if(Z.length===3){if(Z[2]===1)ae=P.ALPHA;else if(Z[2]===2)ae=P.LUMINANCE_ALPHA;else if(Z[2]===3)ae=P.RGB;else if(Z[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ee=Z[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(ae=V),ae!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=G.size,ye=X.indexOf(q)<0;if(ye&&X.push(q),ie===H&&we)G.offset===0&&G.data.length===ke?ye?P.texImage2D(P.TEXTURE_2D,q,V,Z[0],Z[1],0,V,H,G.data):P.texSubImage2D(P.TEXTURE_2D,q,T,F,Z[0],Z[1],V,H,G.data):ye?P.texImage2D(P.TEXTURE_2D,q,V,Z[0],Z[1],0,V,H,G.data.subarray(G.offset,G.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,q,T,F,Z[0],Z[1],V,H,G.data.subarray(G.offset,G.offset+ke));else{var K;H===P.FLOAT?K=u.mallocFloat32(ke):K=u.mallocUint8(ke);var ce=s(K,Z,[Z[2],Z[2]*Z[0],1]);ie===P.FLOAT&&H===P.UNSIGNED_BYTE?x(ce,G):l.assign(ce,G),ye?P.texImage2D(P.TEXTURE_2D,q,V,Z[0],Z[1],0,V,H,K.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,q,T,F,Z[0],Z[1],V,H,K.subarray(0,ke)),H===P.FLOAT?u.freeFloat32(K):u.freeUint8(K)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function _(P,T,F,q,V){var H=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>H||F<0||F>H)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var X=L(P);return P.texImage2D(P.TEXTURE_2D,0,q,T,F,0,q,V,null),new p(P,X,T,F,q,V)}function C(P,T,F,q,V,H){var X=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,H,T),new p(P,X,F,q,V,H)}function S(P,T){var F=T.dtype,q=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(q[0]<0||q[0]>V||q[1]<0||q[1]>V)throw new Error("gl-texture2d: Invalid texture size");var H=k(q,T.stride.slice()),X=0;F==="float32"?X=P.FLOAT:F==="float64"?(X=P.FLOAT,H=!1,F="float32"):F==="uint8"?X=P.UNSIGNED_BYTE:(X=P.UNSIGNED_BYTE,H=!1,F="uint8");var G=0;if(q.length===2)G=P.LUMINANCE,q=[q[0],q[1],1],T=s(T.data,q,[T.stride[0],T.stride[1],1],T.offset);else if(q.length===3)if(q[2]===1)G=P.ALPHA;else if(q[2]===2)G=P.LUMINANCE_ALPHA;else if(q[2]===3)G=P.RGB;else if(q[2]===4)G=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");X===P.FLOAT&&!P.getExtension("OES_texture_float")&&(X=P.UNSIGNED_BYTE,H=!1);var N,Z,ie=T.size;if(H)T.offset===0&&T.data.length===ie?N=T.data:N=T.data.subarray(T.offset,T.offset+ie);else{var ae=[q[2],q[2]*q[0],1];Z=u.malloc(ie,F);var we=s(Z,q,ae,0);(F==="float32"||F==="float64")&&X===P.UNSIGNED_BYTE?x(we,T):l.assign(we,T),N=Z.subarray(0,ie)}var Ee=L(P);return P.texImage2D(P.TEXTURE_2D,0,G,q[0],q[1],0,G,X,N),H||u.free(Z),new p(P,Ee,q[0],q[1],G,X)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],F=v(T)?T:T.raw;if(F)return C(P,F,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return S(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],x=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var x,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,x=f;x0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=s[0],o[1]=c+h*x-d*v,o[2]=f+h*v+d*x,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+d*v+h*x,o[1]=s[1],o[2]=f+d*x-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+h*x-d*v,o[1]=f+h*v+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,E=x*f+h*c-d*u,k=-h*u-d*c-v*f;return o[0]=b*x+k*-h+p*-v-E*-d,o[1]=p*x+k*-d+E*-h-b*-v,o[2]=E*x+k*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,E=x*f+h*c-d*u,k=-h*u-d*c-v*f;return o[0]=b*x+k*-h+p*-v-E*-d,o[1]=p*x+k*-d+E*-h-b*-v,o[2]=E*x+k*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ct=Ge.slice(0,1).join("")}return je(Ct),ke+=Ct.length,N=N.slice(Ct.length),N.length}while(!0)}function Rt(){return/[^a-fA-F0-9]/.test(X)?(je(N.join("")),H=h,q):(N.push(X),G=X,q+1)}function Xt(){return X==="."||/[eE]/.test(X)?(N.push(X),H=k,G=X,q+1):X==="x"&&N.length===1&&N[0]==="0"?(H=g,N.push(X),G=X,q+1):/[^\d]/.test(X)?(je(N.join("")),H=h,q):(N.push(X),G=X,q+1)}function xr(){return X==="f"&&(N.push(X),G=X,q+=1),/[eE]/.test(X)||(X==="-"||X==="+")&&/[eE]/.test(G)?(N.push(X),G=X,q+1):/[^\d]/.test(X)?(je(N.join("")),H=h,q):(N.push(X),G=X,q+1)}function er(){if(/[^\d\w_]/.test(X)){var Ge=N.join("");return Le[Ge]?H=_:Me[Ge]?H=L:H=A,je(N.join("")),H=h,q}return N.push(X),G=X,q+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,E=l?-1:1,k=o[s+p];for(p+=E,f=k&(1<<-b)-1,k>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=E,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=E,b-=8);if(f===0)f=1-x;else{if(f===v)return h?NaN:(k?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-x}return(k?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,x=f*8-c-1,b=(1<>1,E=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=u?0:f-1,A=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=E/v:s+=E*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+k]=d&255,k+=A,d/=256,c-=8);for(h=h<0;o[l+k]=h&255,k+=A,h/=256,x-=8);o[l+k-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(E,k,A){this.vertices=E,this.adjacent=k,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var E=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=E;var k=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=k};function c(E,k,A){this.vertices=E,this.cell=k,this.index=A}function f(E,k){return l(E.vertices,k.vertices)}function h(E){return function(){var k=this.tuple;return E.apply(this,k)}}function d(E){var k=s[E+1];return k||(k=s),h(k)}var v=[];function x(E,k,A){this.dimension=E,this.vertices=k,this.simplices=A,this.interior=A.filter(function(C){return!C.boundary}),this.tuple=new Array(E+1);for(var L=0;L<=E;++L)this.tuple[L]=this.vertices[L];var _=v[E];_||(_=v[E]=d(E)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(E,k){var A=this.dimension,L=this.vertices.length-1,_=this.tuple,C=this.vertices,S=[E];for(E.lastVisited=-L;S.length>0;){E=S.pop();for(var g=E.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var F=T.vertices,q=0;q<=A;++q){var V=F[q];V<0?_[q]=k:_[q]=C[V]}var H=this.orient();if(H>0)return T;T.lastVisited=-L,H===0&&S.push(T)}}}return null},b.walk=function(E,k){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=k?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[S];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,F=0;F<=L;++F)C[F]=_[P[F]];g.lastVisited=A;for(var F=0;F<=L;++F){var q=T[F];if(!(q.lastVisited>=A)){var V=C[F];C[F]=E;var H=this.orient();if(C[F]=V,H<0){g=q;continue e}else q.boundary?q.lastVisited=-A:q.lastVisited=A}}return}return g},b.addPeaks=function(E,k){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=this.interior,g=this.simplices,P=[k];k.lastVisited=A,k.vertices[k.vertices.indexOf(-1)]=A,k.boundary=!1,S.push(k);for(var T=[];P.length>0;){var k=P.pop(),F=k.vertices,q=k.adjacent,V=F.indexOf(A);if(!(V<0)){for(var H=0;H<=L;++H)if(H!==V){var X=q[H];if(!(!X.boundary||X.lastVisited>=A)){var G=X.vertices;if(X.lastVisited!==-A){for(var N=0,Z=0;Z<=L;++Z)G[Z]<0?(N=Z,C[Z]=E):C[Z]=_[G[Z]];var ie=this.orient();if(ie>0){G[N]=A,X.boundary=!1,S.push(X),P.push(X),X.lastVisited=A;continue}else X.lastVisited=-A}var ae=X.adjacent,we=F.slice(),Ee=q.slice(),ke=new u(we,Ee,!0);g.push(ke);var ye=ae.indexOf(k);if(!(ye<0)){ae[ye]=ke,Ee[V]=X,we[H]=-1,Ee[H]=k,q[H]=ke,ke.flip();for(var Z=0;Z<=L;++Z){var K=we[Z];if(!(K<0||K===A)){for(var ce=new Array(L-1),pe=0,xe=0;xe<=L;++xe){var Ce=we[xe];Ce<0||xe===Z||(ce[pe++]=Ce)}T.push(new c(ce,ke,Z))}}}}}}}T.sort(f);for(var H=0;H+1=0?S[P++]=g[F]:T=F&1;if(T===(E&1)){var q=S[0];S[0]=S[1],S[1]=q}k.push(S)}}return k};function p(E,k){var A=E.length;if(A===0)throw new Error("Must have at least d+1 points");var L=E[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var _=E.slice(0,L+1),C=s.apply(void 0,_);if(C===0)throw new Error("Input not in general position");for(var S=new Array(L+1),g=0;g<=L;++g)S[g]=g;C<0&&(S[0]=1,S[1]=0);for(var P=new u(S,new Array(L+1),!1),T=P.adjacent,F=new Array(L+2),g=0;g<=L;++g){for(var q=S.slice(),V=0;V<=L;++V)V===g&&(q[V]=-1);var H=q[0];q[0]=q[1],q[1]=H;var X=new u(q,new Array(L+1),!0);T[g]=X,F[g]=X}F[L+1]=P;for(var g=0;g<=L;++g)for(var q=T[g].vertices,G=T[g].adjacent,V=0;V<=L;++V){var N=q[V];if(N<0){G[V]=P;continue}for(var Z=0;Z<=L;++Z)T[Z].vertices.indexOf(N)<0&&(G[V]=T[Z])}for(var ie=new x(L,_,F),ae=!!k,g=L+1;g3*(F+1)?x(this,T):this.left.insert(T):this.left=C([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(F+1)?x(this,T):this.right.insert(T):this.right=C([T]);else{var q=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,_);this.leftPoints.splice(q,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var F=this.count-this.leftPoints;if(T[1]3*(F-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var H=this.left?this.left.count:0;if(4*H>3*(F-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var X=this,G=this.left;G.right;)X=G,G=G.right;if(X===this)G.right=this.right;else{var N=this.left,V=this.right;X.count-=G.count,X.right=G.left,G.left=N,G.right=V}d(this,G),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=F;--V){var H=q(T[V]);if(H)return H}}function k(T,F){for(var q=0;qthis.mid){if(this.right){var q=this.right.queryPoint(T,F);if(q)return q}return E(this.rightPoints,T,F)}else return k(this.leftPoints,F)},h.queryInterval=function(T,F,q){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,F,q);if(V)return V}return Fthis.mid?E(this.rightPoints,T,q):k(this.leftPoints,q)};function A(T,F){return T-F}function L(T,F){var q=T[0]-F[0];return q||T[1]-F[1]}function _(T,F){var q=T[1]-F[1];return q||T[0]-F[0]}function C(T){if(T.length===0)return null;for(var F=[],q=0;q>1],H=[],X=[],G=[],q=0;q13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),x=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],E=[0,0,0];i.exports=function(C,S,g,P,T,F){if(S||(S=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),F||(F=[0,0,0,1]),!s(v,C)||(u(x,v),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(c(x)<1e-8)))return!1;var q=v[3],V=v[7],H=v[11],X=v[12],G=v[13],N=v[14],Z=v[15];if(q!==0||V!==0||H!==0){b[0]=q,b[1]=V,b[2]=H,b[3]=Z;var ie=f(x,x);if(!ie)return!1;h(x,x),k(T,b,x)}else T[0]=T[1]=T[2]=0,T[3]=1;if(S[0]=X,S[1]=G,S[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(E,p[1],p[2]),d.dot(p[0],E)<0)for(var ae=0;ae<3;ae++)g[ae]*=-1,p[ae][0]*=-1,p[ae][1]*=-1,p[ae][2]*=-1;return F[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),F[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),F[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),F[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(F[0]=-F[0]),p[0][2]>p[2][0]&&(F[1]=-F[1]),p[1][0]>p[0][1]&&(F[2]=-F[2]),!0};function k(_,C,S){var g=C[0],P=C[1],T=C[2],F=C[3];return _[0]=S[0]*g+S[4]*P+S[8]*T+S[12]*F,_[1]=S[1]*g+S[5]*P+S[9]*T+S[13]*F,_[2]=S[2]*g+S[6]*P+S[10]*T+S[14]*F,_[3]=S[3]*g+S[7]*P+S[11]*T+S[15]*F,_}function A(_,C){_[0][0]=C[0],_[0][1]=C[1],_[0][2]=C[2],_[1][0]=C[4],_[1][1]=C[5],_[1][2]=C[6],_[2][0]=C[8],_[2][1]=C[9],_[2][2]=C[10]}function L(_,C,S,g,P){_[0]=C[0]*g+S[0]*P,_[1]=C[1]*g+S[1]*P,_[2]=C[2]*g+S[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=x;function x(k,A,L,_){if(c(A)===0||c(L)===0)return!1;var C=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!S?!1:(s(v.translate,h.translate,d.translate,_),s(v.skew,h.skew,d.skew,_),s(v.scale,h.scale,d.scale,_),s(v.perspective,h.perspective,d.perspective,_),f(v.quaternion,h.quaternion,d.quaternion,_),l(k,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:E(),quaternion:E()}}function p(k){return[k||0,k||0,k||0]}function E(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,x,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=x[0],f[7]=x[1],f[11]=x[2],f[15]=x[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),x=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function E(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var k=E.prototype;k.recalcMatrix=function(_){var C=this._time,S=s.le(C,_),g=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===C.length-1)for(var T=16*S,F=0;F<16;++F)g[F]=P[T++];else{for(var q=C[S+1]-C[S],T=16*S,V=this.prevMatrix,H=!0,F=0;F<16;++F)V[F]=P[T++];for(var X=this.nextMatrix,F=0;F<16;++F)X[F]=P[T++],H=H&&V[F]===X[F];if(q<1e-6||H)for(var F=0;F<16;++F)g[F]=V[F];else l(g,V,X,(_-C[S])/q)}var G=this.computedUp;G[0]=g[1],G[1]=g[5],G[2]=g[9],b(G,G);var N=this.computedInverse;u(N,g);var Z=this.computedEye,ie=N[15];Z[0]=N[12]/ie,Z[1]=N[13]/ie,Z[2]=N[14]/ie;for(var ae=this.computedCenter,we=Math.exp(this.computedRadius[0]),F=0;F<3;++F)ae[F]=Z[F]-g[2+4*F]*we}},k.idle=function(_){if(!(_1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(x),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(x)}for(var E=new Array(v.length+d.length-2),k=0,f=0,A=d.length;f0;--L)E[k++]=v[L];return E}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(T){var F=!1;return"altKey"in T&&(F=F||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(F=F||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(F=F||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(F=F||T.metaKey!==v.meta,v.meta=!!T.metaKey),F}function p(T,F){var q=s.x(F),V=s.y(F);"buttons"in F&&(T=F.buttons|0),(T!==f||q!==h||V!==d||b(F))&&(f=T|0,h=q||0,d=V||0,c&&c(f,h,d,v))}function E(T){p(0,T)}function k(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function _(T){p(f|s.buttons(T),T)}function C(T){p(f&~s.buttons(T),T)}function S(){x||(x=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",_),u.addEventListener("mouseup",C),u.addEventListener("mouseleave",E),u.addEventListener("mouseenter",E),u.addEventListener("mouseout",E),u.addEventListener("mouseover",E),u.addEventListener("blur",k),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",k),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){x&&(x=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",_),u.removeEventListener("mouseup",C),u.removeEventListener("mouseleave",E),u.removeEventListener("mouseenter",E),u.removeEventListener("mouseout",E),u.removeEventListener("mouseover",E),u.removeEventListener("blur",k),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",k),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}S();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(T){T?S():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Ee=1,K[pe++]=v(S[F],k,A,L),F+=ie,_>0)for(we=1,q=S[F],xe=K[pe]=v(q,k,A,L),Le=K[pe+Ce],Xe=K[pe+je],Yt=K[pe+lt],(xe!==Le||xe!==Xe||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Le,Xe,Yt,k,A,L),nt=ce[pe]=ke++),pe+=1,F+=ie,we=2;we<_;++we)q=S[F],xe=K[pe]=v(q,k,A,L),Le=K[pe+Ce],Xe=K[pe+je],Yt=K[pe+lt],(xe!==Le||xe!==Xe||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Le,Xe,Yt,k,A,L),nt=ce[pe]=ke++,Yt!==Le&&d(ce[pe+Ce],nt,Z,H,Yt,Le,k,A,L)),pe+=1,F+=ie;for(F+=ae,pe=0,ot=Ce,Ce=Me,Me=ot,ot=je,je=Se,Se=ot,ot=lt,lt=At,At=ot,Ee=2;Ee0)for(we=1,q=S[F],xe=K[pe]=v(q,k,A,L),Le=K[pe+Ce],Xe=K[pe+je],Yt=K[pe+lt],(xe!==Le||xe!==Xe||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Le,Xe,Yt,k,A,L),nt=ce[pe]=ke++,Yt!==Xe&&d(ce[pe+je],nt,G,Z,Xe,Yt,k,A,L)),pe+=1,F+=ie,we=2;we<_;++we)q=S[F],xe=K[pe]=v(q,k,A,L),Le=K[pe+Ce],Xe=K[pe+je],Yt=K[pe+lt],(xe!==Le||xe!==Xe||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Le,Xe,Yt,k,A,L),nt=ce[pe]=ke++,Yt!==Xe&&d(ce[pe+je],nt,G,Z,Xe,Yt,k,A,L),Yt!==Le&&d(ce[pe+Ce],nt,Z,H,Yt,Le,k,A,L)),pe+=1,F+=ie;Ee&1&&(pe=0),ot=Ce,Ce=Me,Me=ot,ot=je,je=Se,Se=ot,ot=lt,lt=At,At=ot,F+=ae}}b(ce),b(K)}},"false,1,0":function(h,d,v,x,b){return function(E,k,A,L){var _=E.shape[0]|0,C=E.shape[1]|0,S=E.data,g=E.offset|0,P=E.stride[0]|0,T=E.stride[1]|0,F=g,q,V=-P|0,H=0,X=-T|0,G=0,N=-P-T|0,Z=0,ie=T|0,ae=P-T*C|0,we=0,Ee=0,ke=0,ye=2*C|0,K=x(ye),ce=x(ye),pe=0,xe=0,Ce=-1,Me=-1,Le=0,je=-C|0,Se=C|0,Xe=0,lt=-C-1|0,At=C-1|0,Yt=0,nt=0,ot=0;for(Ee=0;Ee0){if(we=1,K[pe++]=v(S[F],k,A,L),F+=ie,C>0)for(Ee=1,q=S[F],xe=K[pe]=v(q,k,A,L),Xe=K[pe+je],Le=K[pe+Ce],Yt=K[pe+lt],(xe!==Xe||xe!==Le||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Xe,Le,Yt,k,A,L),nt=ce[pe]=ke++),pe+=1,F+=ie,Ee=2;Ee0)for(Ee=1,q=S[F],xe=K[pe]=v(q,k,A,L),Xe=K[pe+je],Le=K[pe+Ce],Yt=K[pe+lt],(xe!==Xe||xe!==Le||xe!==Yt)&&(H=S[F+V],G=S[F+X],Z=S[F+N],h(we,Ee,q,H,G,Z,xe,Xe,Le,Yt,k,A,L),nt=ce[pe]=ke++,Yt!==Xe&&d(ce[pe+je],nt,Z,H,Yt,Xe,k,A,L)),pe+=1,F+=ie,Ee=2;Ee 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),E=0;E=0?p[E]=!0:p[E]=!1;return u(f.vertex,f.cell,f.phase,x,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,_,C,S){var g=L[0],P=C[0];S|=0;var T=0,F=P;for(T=0;T2&&T[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(C(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),_(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(C(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),_(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(C(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),_(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(C(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),_(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var _=L.join(),T=v[_];if(T)return T;for(var C=L.length,S=[b,p],g=1;g<=C;++g)S.push(E(g));var P=k,T=P.apply(void 0,S);return v[_]=T,T}i.exports=function(_,C,S){if(Array.isArray(S)||(typeof S=="string"?S=s(C.dimension,S):S=s(C.dimension,"clamp")),C.size===0)return _;if(C.dimension===0)return _.set(0),_;var g=A(S);return g(_,C)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){G<64?(_=G,G=0):(_=64,G-=64);for(var N=v[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),p=H+G*g+N*P,A=X+G*F+N*q;var Z=0,ie=0,ae=0,we=T,Ee=g-S*T,ke=P-_*g,ye=V,K=F-S*V,ce=q-_*F;for(ae=0;ae0;){q<64?(_=q,q=0):(_=64,q-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+q*S+V*C,A=F+q*P+V*g;var H=0,X=0,G=S,N=C-_*S,Z=P,ie=g-_*P;for(X=0;X0;){X<64?(C=X,X=0):(C=64,X-=64);for(var G=v[0]|0;G>0;){G<64?(L=G,G=0):(L=64,G-=64);for(var N=v[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),p=V+X*P+G*S+N*g,A=H+X*q+G*T+N*F;var Z=0,ie=0,ae=0,we=P,Ee=S-C*P,ke=g-L*S,ye=q,K=T-C*q,ce=F-L*T;for(ae=0;ae<_;++ae){for(ie=0;ieE;){Z=0,ie=H-_;t:for(G=0;Gwe)break t;ie+=T,Z+=F}for(Z=H,ie=H-_,G=0;G>1,N=G-V,Z=G+V,ie=H,ae=N,we=G,Ee=Z,ke=X,ye=k+1,K=A-1,ce=!0,pe,xe,Ce,Me,Le,je,Se,Xe,lt,At=0,Yt=0,nt=0,ot,Ft,Lt,Rt,Xt,xr,er,Ge,yt,_t,Ct,St,kt,ft,Gt,$t,hr=P,_r=b(hr),Nr=b(hr);Ft=C*ie,Lt=C*ae,$t=_;e:for(ot=0;ot0){xe=ie,ie=ae,ae=xe;break e}if(nt<0)break e;$t+=F}Ft=C*Ee,Lt=C*ke,$t=_;e:for(ot=0;ot0){xe=Ee,Ee=ke,ke=xe;break e}if(nt<0)break e;$t+=F}Ft=C*ie,Lt=C*we,$t=_;e:for(ot=0;ot0){xe=ie,ie=we,we=xe;break e}if(nt<0)break e;$t+=F}Ft=C*ae,Lt=C*we,$t=_;e:for(ot=0;ot0){xe=ae,ae=we,we=xe;break e}if(nt<0)break e;$t+=F}Ft=C*ie,Lt=C*Ee,$t=_;e:for(ot=0;ot0){xe=ie,ie=Ee,Ee=xe;break e}if(nt<0)break e;$t+=F}Ft=C*we,Lt=C*Ee,$t=_;e:for(ot=0;ot0){xe=we,we=Ee,Ee=xe;break e}if(nt<0)break e;$t+=F}Ft=C*ae,Lt=C*ke,$t=_;e:for(ot=0;ot0){xe=ae,ae=ke,ke=xe;break e}if(nt<0)break e;$t+=F}Ft=C*ae,Lt=C*we,$t=_;e:for(ot=0;ot0){xe=ae,ae=we,we=xe;break e}if(nt<0)break e;$t+=F}Ft=C*Ee,Lt=C*ke,$t=_;e:for(ot=0;ot0){xe=Ee,Ee=ke,ke=xe;break e}if(nt<0)break e;$t+=F}for(Ft=C*ie,Lt=C*ae,Rt=C*we,Xt=C*Ee,xr=C*ke,er=C*H,Ge=C*G,yt=C*X,Gt=0,$t=_,ot=0;ot0)K--;else if(nt<0){for(Ft=C*je,Lt=C*ye,Rt=C*K,$t=_,ot=0;ot0)for(;;){Se=_+K*C,Gt=0;e:for(ot=0;ot0){if(--KX){e:for(;;){for(Se=_+ye*C,Gt=0,$t=_,ot=0;ot1&&E?A(p,E[0],E[1]):A(p)}var d={"uint32,1,0":function(x,b){return function(p){var E=p.data,k=p.offset|0,A=p.shape,L=p.stride,_=L[0]|0,C=A[0]|0,S=L[1]|0,g=A[1]|0,P=S,T=S,F=1;C<=32?x(0,C-1,E,k,_,S,C,g,P,T,F):b(0,C-1,E,k,_,S,C,g,P,T,F)}}};function v(x,b){var p=[b,x].join(","),E=d[p],k=c(x,b),A=h(x,b,k);return E(k,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),x=l[v];return x||(l[v]=x=s(f,h)),x(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),E;for(E=0;E=0&&(S=_|0,C+=P*S,g-=S),new k(this.data,g,P,C)},A.step=function(_){var C=this.shape[0],S=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(g+=S*(C-1),C=T(-C/P)):C=T(C/P),S*=P),new k(this.data,C,S,g)},A.transpose=function(_){_=_===void 0?0:_|0;var C=this.shape,S=this.stride;return new k(this.data,C[_],S[_],this.offset)},A.pick=function(_){var C=[],S=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(C.push(this.shape[0]),S.push(this.stride[0]));var P=p[C.length+1];return P(this.data,C,S,g)},function(_,C,S,g){return new k(_,C[0],S[0],g)}},2:function(b,p,E){function k(L,_,C,S,g,P){this.data=L,this.shape=[_,C],this.stride=[S,g],this.offset=P|0}var A=k.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(_,C,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C,S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]=S},A.get=function(_,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]},A.index=function(_,C){return this.offset+this.stride[0]*_+this.stride[1]*C},A.hi=function(_,C){return new k(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(_,C){var S=this.offset,g=0,P=this.shape[0],T=this.shape[1],F=this.stride[0],q=this.stride[1];return typeof _=="number"&&_>=0&&(g=_|0,S+=F*g,P-=g),typeof C=="number"&&C>=0&&(g=C|0,S+=q*g,T-=g),new k(this.data,P,T,F,q,S)},A.step=function(_,C){var S=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],F=this.offset,q=0,V=Math.ceil;return typeof _=="number"&&(q=_|0,q<0?(F+=P*(S-1),S=V(-S/q)):S=V(S/q),P*=q),typeof C=="number"&&(q=C|0,q<0?(F+=T*(g-1),g=V(-g/q)):g=V(g/q),T*=q),new k(this.data,S,g,P,T,F)},A.transpose=function(_,C){_=_===void 0?0:_|0,C=C===void 0?1:C|0;var S=this.shape,g=this.stride;return new k(this.data,S[_],S[C],g[_],g[C],this.offset)},A.pick=function(_,C){var S=[],g=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(S.push(this.shape[0]),g.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(S.push(this.shape[1]),g.push(this.stride[1]));var T=p[S.length+1];return T(this.data,S,g,P)},function(_,C,S,g){return new k(_,C[0],C[1],S[0],S[1],g)}},3:function(b,p,E){function k(L,_,C,S,g,P,T,F){this.data=L,this.shape=[_,C,S],this.stride=[g,P,T],this.offset=F|0}var A=k.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var _=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return _>C?C>S?[2,1,0]:_>S?[1,2,0]:[1,0,2]:_>S?[2,0,1]:S>C?[0,1,2]:[0,2,1]}}),A.set=function(_,C,S,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]=g},A.get=function(_,C,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]},A.index=function(_,C,S){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S},A.hi=function(_,C,S){return new k(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(_,C,S){var g=this.offset,P=0,T=this.shape[0],F=this.shape[1],q=this.shape[2],V=this.stride[0],H=this.stride[1],X=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,g+=V*P,T-=P),typeof C=="number"&&C>=0&&(P=C|0,g+=H*P,F-=P),typeof S=="number"&&S>=0&&(P=S|0,g+=X*P,q-=P),new k(this.data,T,F,q,V,H,X,g)},A.step=function(_,C,S){var g=this.shape[0],P=this.shape[1],T=this.shape[2],F=this.stride[0],q=this.stride[1],V=this.stride[2],H=this.offset,X=0,G=Math.ceil;return typeof _=="number"&&(X=_|0,X<0?(H+=F*(g-1),g=G(-g/X)):g=G(g/X),F*=X),typeof C=="number"&&(X=C|0,X<0?(H+=q*(P-1),P=G(-P/X)):P=G(P/X),q*=X),typeof S=="number"&&(X=S|0,X<0?(H+=V*(T-1),T=G(-T/X)):T=G(T/X),V*=X),new k(this.data,g,P,T,F,q,V,H)},A.transpose=function(_,C,S){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0;var g=this.shape,P=this.stride;return new k(this.data,g[_],g[C],g[S],P[_],P[C],P[S],this.offset)},A.pick=function(_,C,S){var g=[],P=[],T=this.offset;typeof _=="number"&&_>=0?T=T+this.stride[0]*_|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?T=T+this.stride[1]*C|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?T=T+this.stride[2]*S|0:(g.push(this.shape[2]),P.push(this.stride[2]));var F=p[g.length+1];return F(this.data,g,P,T)},function(_,C,S,g){return new k(_,C[0],C[1],C[2],S[0],S[1],S[2],g)}},4:function(b,p,E){function k(L,_,C,S,g,P,T,F,q,V){this.data=L,this.shape=[_,C,S,g],this.stride=[P,T,F,q],this.offset=V|0}var A=k.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:E}),A.set=function(_,C,S,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]=P},A.get=function(_,C,S,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]},A.index=function(_,C,S,g){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g},A.hi=function(_,C,S,g){return new k(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(_,C,S,g){var P=this.offset,T=0,F=this.shape[0],q=this.shape[1],V=this.shape[2],H=this.shape[3],X=this.stride[0],G=this.stride[1],N=this.stride[2],Z=this.stride[3];return typeof _=="number"&&_>=0&&(T=_|0,P+=X*T,F-=T),typeof C=="number"&&C>=0&&(T=C|0,P+=G*T,q-=T),typeof S=="number"&&S>=0&&(T=S|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=Z*T,H-=T),new k(this.data,F,q,V,H,X,G,N,Z,P)},A.step=function(_,C,S,g){var P=this.shape[0],T=this.shape[1],F=this.shape[2],q=this.shape[3],V=this.stride[0],H=this.stride[1],X=this.stride[2],G=this.stride[3],N=this.offset,Z=0,ie=Math.ceil;return typeof _=="number"&&(Z=_|0,Z<0?(N+=V*(P-1),P=ie(-P/Z)):P=ie(P/Z),V*=Z),typeof C=="number"&&(Z=C|0,Z<0?(N+=H*(T-1),T=ie(-T/Z)):T=ie(T/Z),H*=Z),typeof S=="number"&&(Z=S|0,Z<0?(N+=X*(F-1),F=ie(-F/Z)):F=ie(F/Z),X*=Z),typeof g=="number"&&(Z=g|0,Z<0?(N+=G*(q-1),q=ie(-q/Z)):q=ie(q/Z),G*=Z),new k(this.data,P,T,F,q,V,H,X,G,N)},A.transpose=function(_,C,S,g){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new k(this.data,P[_],P[C],P[S],P[g],T[_],T[C],T[S],T[g],this.offset)},A.pick=function(_,C,S,g){var P=[],T=[],F=this.offset;typeof _=="number"&&_>=0?F=F+this.stride[0]*_|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof C=="number"&&C>=0?F=F+this.stride[1]*C|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof S=="number"&&S>=0?F=F+this.stride[2]*S|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?F=F+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var q=p[P.length+1];return q(this.data,P,T,F)},function(_,C,S,g){return new k(_,C[0],C[1],C[2],C[3],S[0],S[1],S[2],S[3],g)}},5:function(p,E,k){function A(_,C,S,g,P,T,F,q,V,H,X,G){this.data=_,this.shape=[C,S,g,P,T],this.stride=[F,q,V,H,X],this.offset=G|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:k}),L.set=function(C,S,g,P,T,F){return p==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,F):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=F},L.get=function(C,S,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(C,S,g,P,T){return this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(C,S,g,P,T){return new A(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,S,g,P,T){var F=this.offset,q=0,V=this.shape[0],H=this.shape[1],X=this.shape[2],G=this.shape[3],N=this.shape[4],Z=this.stride[0],ie=this.stride[1],ae=this.stride[2],we=this.stride[3],Ee=this.stride[4];return typeof C=="number"&&C>=0&&(q=C|0,F+=Z*q,V-=q),typeof S=="number"&&S>=0&&(q=S|0,F+=ie*q,H-=q),typeof g=="number"&&g>=0&&(q=g|0,F+=ae*q,X-=q),typeof P=="number"&&P>=0&&(q=P|0,F+=we*q,G-=q),typeof T=="number"&&T>=0&&(q=T|0,F+=Ee*q,N-=q),new A(this.data,V,H,X,G,N,Z,ie,ae,we,Ee,F)},L.step=function(C,S,g,P,T){var F=this.shape[0],q=this.shape[1],V=this.shape[2],H=this.shape[3],X=this.shape[4],G=this.stride[0],N=this.stride[1],Z=this.stride[2],ie=this.stride[3],ae=this.stride[4],we=this.offset,Ee=0,ke=Math.ceil;return typeof C=="number"&&(Ee=C|0,Ee<0?(we+=G*(F-1),F=ke(-F/Ee)):F=ke(F/Ee),G*=Ee),typeof S=="number"&&(Ee=S|0,Ee<0?(we+=N*(q-1),q=ke(-q/Ee)):q=ke(q/Ee),N*=Ee),typeof g=="number"&&(Ee=g|0,Ee<0?(we+=Z*(V-1),V=ke(-V/Ee)):V=ke(V/Ee),Z*=Ee),typeof P=="number"&&(Ee=P|0,Ee<0?(we+=ie*(H-1),H=ke(-H/Ee)):H=ke(H/Ee),ie*=Ee),typeof T=="number"&&(Ee=T|0,Ee<0?(we+=ae*(X-1),X=ke(-X/Ee)):X=ke(X/Ee),ae*=Ee),new A(this.data,F,q,V,H,X,G,N,Z,ie,ae,we)},L.transpose=function(C,S,g,P,T){C=C===void 0?0:C|0,S=S===void 0?1:S|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var F=this.shape,q=this.stride;return new A(this.data,F[C],F[S],F[g],F[P],F[T],q[C],q[S],q[g],q[P],q[T],this.offset)},L.pick=function(C,S,g,P,T){var F=[],q=[],V=this.offset;typeof C=="number"&&C>=0?V=V+this.stride[0]*C|0:(F.push(this.shape[0]),q.push(this.stride[0])),typeof S=="number"&&S>=0?V=V+this.stride[1]*S|0:(F.push(this.shape[1]),q.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(F.push(this.shape[2]),q.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(F.push(this.shape[3]),q.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(F.push(this.shape[4]),q.push(this.stride[4]));var H=E[F.length+1];return H(this.data,F,q,V)},function(C,S,g,P){return new A(C,S[0],S[1],S[2],S[3],S[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var E=p===-1?"T":String(p),k=f[E];return p===-1?k(b):p===0?k(b,v[b][0]):k(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,p,E,k){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(E===void 0){E=new Array(A);for(var L=A-1,_=1;L>=0;--L)E[L]=_,_*=p[L]}if(k===void 0){k=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var F=h[p],q=1/Math.sqrt(S*P),T=0;T<3;++T){var V=(T+1)%3,H=(T+2)%3;F[T]+=q*(g[V]*C[H]-g[H]*C[V])}}for(var v=0;vd)for(var q=1/Math.sqrt(X),T=0;T<3;++T)F[T]*=q;else for(var T=0;T<3;++T)F[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,x){var b=s+f+x;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var E=Math.max(s,f,x),p=Math.sqrt(2*E-b+1);s>=E?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=E?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(E,k,A){return Math.sqrt(Math.pow(E,2)+Math.pow(k,2)+Math.pow(A,2))}function d(E,k,A,L){return Math.sqrt(Math.pow(E,2)+Math.pow(k,2)+Math.pow(A,2)+Math.pow(L,2))}function v(E,k){var A=k[0],L=k[1],_=k[2],C=k[3],S=d(A,L,_,C);S>1e-6?(E[0]=A/S,E[1]=L/S,E[2]=_/S,E[3]=C/S):(E[0]=E[1]=E[2]=0,E[3]=1)}function x(E,k,A){this.radius=s([A]),this.center=s(k),this.rotation=s(E),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(E){this.radius.curve(E),this.center.curve(E),this.rotation.curve(E);var k=this.computedRotation;v(k,k);var A=this.computedMatrix;u(A,k);var L=this.computedCenter,_=this.computedEye,C=this.computedUp,S=Math.exp(this.computedRadius[0]);_[0]=L[0]+S*A[2],_[1]=L[1]+S*A[6],_[2]=L[2]+S*A[10],C[0]=A[1],C[1]=A[5],C[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*_[T];A[12+g]=-P}},b.getMatrix=function(E,k){this.recalcMatrix(E);var A=this.computedMatrix;if(k){for(var L=0;L<16;++L)k[L]=A[L];return k}return A},b.idle=function(E){this.center.idle(E),this.radius.idle(E),this.rotation.idle(E)},b.flush=function(E){this.center.flush(E),this.radius.flush(E),this.rotation.flush(E)},b.pan=function(E,k,A,L){k=k||0,A=A||0,L=L||0,this.recalcMatrix(E);var _=this.computedMatrix,C=_[1],S=_[5],g=_[9],P=h(C,S,g);C/=P,S/=P,g/=P;var T=_[0],F=_[4],q=_[8],V=T*C+F*S+q*g;T-=C*V,F-=S*V,q-=g*V;var H=h(T,F,q);T/=H,F/=H,q/=H;var X=_[2],G=_[6],N=_[10],Z=X*C+G*S+N*g,ie=X*T+G*F+N*q;X-=Z*C+ie*T,G-=Z*S+ie*F,N-=Z*g+ie*q;var ae=h(X,G,N);X/=ae,G/=ae,N/=ae;var we=T*k+C*A,Ee=F*k+S*A,ke=q*k+g*A;this.center.move(E,we,Ee,ke);var ye=Math.exp(this.computedRadius[0]);ye=Math.max(1e-4,ye+L),this.radius.set(E,Math.log(ye))},b.rotate=function(E,k,A,L){this.recalcMatrix(E),k=k||0,A=A||0;var _=this.computedMatrix,C=_[0],S=_[4],g=_[8],P=_[1],T=_[5],F=_[9],q=_[2],V=_[6],H=_[10],X=k*C+A*P,G=k*S+A*T,N=k*g+A*F,Z=-(V*N-H*G),ie=-(H*X-q*N),ae=-(q*G-V*X),we=Math.sqrt(Math.max(0,1-Math.pow(Z,2)-Math.pow(ie,2)-Math.pow(ae,2))),Ee=d(Z,ie,ae,we);Ee>1e-6?(Z/=Ee,ie/=Ee,ae/=Ee,we/=Ee):(Z=ie=ae=0,we=1);var ke=this.computedRotation,ye=ke[0],K=ke[1],ce=ke[2],pe=ke[3],xe=ye*we+pe*Z+K*ae-ce*ie,Ce=K*we+pe*ie+ce*Z-ye*ae,Me=ce*we+pe*ae+ye*ie-K*Z,Le=pe*we-ye*Z-K*ie-ce*ae;if(L){Z=q,ie=V,ae=H;var je=Math.sin(L)/h(Z,ie,ae);Z*=je,ie*=je,ae*=je,we=Math.cos(k),xe=xe*we+Le*Z+Ce*ae-Me*ie,Ce=Ce*we+Le*ie+Me*Z-xe*ae,Me=Me*we+Le*ae+xe*ie-Ce*Z,Le=Le*we-xe*Z-Ce*ie-Me*ae}var Se=d(xe,Ce,Me,Le);Se>1e-6?(xe/=Se,Ce/=Se,Me/=Se,Le/=Se):(xe=Ce=Me=0,Le=1),this.rotation.set(E,xe,Ce,Me,Le)},b.lookAt=function(E,k,A,L){this.recalcMatrix(E),A=A||this.computedCenter,k=k||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;l(_,k,A,L);var C=this.computedRotation;f(C,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),v(C,C),this.rotation.set(E,C[0],C[1],C[2],C[3]);for(var S=0,g=0;g<3;++g)S+=Math.pow(A[g]-k[g],2);this.radius.set(E,.5*Math.log(Math.max(S,1e-6))),this.center.set(E,A[0],A[1],A[2])},b.translate=function(E,k,A,L){this.center.move(E,k||0,A||0,L||0)},b.setMatrix=function(E,k){var A=this.computedRotation;f(A,k[0],k[1],k[2],k[4],k[5],k[6],k[8],k[9],k[10]),v(A,A),this.rotation.set(E,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,k);var _=L[15];if(Math.abs(_)>1e-6){var C=L[12]/_,S=L[13]/_,g=L[14]/_;this.recalcMatrix(E);var P=Math.exp(this.computedRadius[0]);this.center.set(E,C-L[2]*P,S-L[6]*P,g-L[10]*P),this.radius.idle(E)}else this.center.idle(E),this.radius.idle(E)},b.setDistance=function(E,k){k>0&&this.radius.set(E,Math.log(k))},b.setDistanceLimits=function(E,k){E>0?E=Math.log(E):E=-1/0,k>0?k=Math.log(k):k=1/0,k=Math.max(k,E),this.radius.bounds[0][0]=E,this.radius.bounds[1][0]=k},b.getDistanceLimits=function(E){var k=this.radius.bounds;return E?(E[0]=Math.exp(k[0][0]),E[1]=Math.exp(k[1][0]),E):[Math.exp(k[0][0]),Math.exp(k[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(E){var k=this.lastT(),A=E.center;A&&this.center.set(k,A[0],A[1],A[2]);var L=E.rotation;L&&this.rotation.set(k,L[0],L[1],L[2],L[3]);var _=E.distance;_&&_>0&&this.radius.set(k,Math.log(_)),this.setDistanceLimits(E.zoomMin,E.zoomMax)};function p(E){E=E||{};var k=E.center||[0,0,0],A=E.rotation||[0,0,0,1],L=E.radius||1;k=[].slice.call(k,0,3),A=[].slice.call(A,0,4),v(A,A);var _=new x(A,k,Math.log(L));return _.setDistanceLimits(E.zoomMin,E.zoomMax),("eye"in E||"up"in E)&&_.lookAt(0,E.eye,E.center,E.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){F=d[H][P][0],V=H;break}q=F[V^1];for(var X=0;X<2;++X)for(var G=d[X][P],N=0;N0&&(F=Z,q=ie,V=X)}return T||F&&p(F,V),q}function k(g,P){var T=d[P][g][0],F=[g];p(T,P);for(var q=T[P^1],V=P;;){for(;q!==g;)F.push(q),q=E(F[F.length-2],q,!1);if(d[0][g].length+d[1][g].length===0)break;var H=F[F.length-1],X=g,G=F[1],N=E(H,X,!0);if(s(c[H],c[X],c[G],c[N])<0)break;F.push(g),q=E(H,X)}return F}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var C=d[0][v].length,S=k(v,L);A(_,S)?_.push.apply(_,S):(_.length>0&&b.push(_),_=S)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],x=0;x0;){var p=v.pop();h[p]=!1;for(var E=f[p],x=0;x0}C=C.filter(S);for(var g=C.length,P=new Array(g),T=new Array(g),_=0;_0;){var Se=Me.pop(),Xe=Ee[Se];h(Xe,function(ot,Ft){return ot-Ft});var lt=Xe.length,At=Le[Se],Yt;if(At===0){var G=C[Se];Yt=[G]}for(var _=0;_=0)&&(Le[nt]=At^1,Me.push(nt),At===0)){var G=C[nt];Ce(G)||(G.reverse(),Yt.push(G))}}At===0&&je.push(Yt)}return je}},5085:function(i,a,o){i.exports=E;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(k){return function(A,L){var _=k[A];return _?!!_.queryPoint(L,f):!1}}function d(k){for(var A={},L=0;L0&&A[_]===L[0])C=k[_-1];else return 1;for(var S=1;C;){var g=C.key,P=s(L,g[0],g[1]);if(g[0][0]0)S=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)S=1,C=C.right;else return 0}return S}}function x(k){return 1}function b(k){return function(L){return k(L[0],L[1])?0:1}}function p(k,A){return function(_){return k(_[0],_[1])?0:A(_)}}function E(k){for(var A=k.length,L=[],_=[],C=0,S=0;S=x?(g=1,T=x+2*E+A):(g=-E/x,T=E*g+A)):(g=0,k>=0?(P=0,T=A):-k>=p?(P=1,T=p+2*k+A):(P=-k/p,T=k*P+A));else if(P<0)P=0,E>=0?(g=0,T=A):-E>=x?(g=1,T=x+2*E+A):(g=-E/x,T=E*g+A);else{var F=1/S;g*=F,P*=F,T=g*(x*g+b*P+2*E)+P*(b*g+p*P+2*k)+A}else{var q,V,H,X;g<0?(q=b+E,V=p+k,V>q?(H=V-q,X=x-2*b+p,H>=X?(g=1,P=0,T=x+2*E+A):(g=H/X,P=1-g,T=g*(x*g+b*P+2*E)+P*(b*g+p*P+2*k)+A)):(g=0,V<=0?(P=1,T=p+2*k+A):k>=0?(P=0,T=A):(P=-k/p,T=k*P+A))):P<0?(q=b+k,V=x+E,V>q?(H=V-q,X=x-2*b+p,H>=X?(P=1,g=0,T=p+2*k+A):(P=H/X,g=1-P,T=g*(x*g+b*P+2*E)+P*(b*g+p*P+2*k)+A)):(P=0,V<=0?(g=1,T=x+2*E+A):E>=0?(g=0,T=A):(g=-E/x,T=E*g+A))):(H=p+k-b-E,H<=0?(g=0,P=1,T=p+2*k+A):(X=x-2*b+p,H>=X?(g=1,P=0,T=x+2*E+A):(g=H/X,P=1-g,T=g*(x*g+b*P+2*E)+P*(b*g+p*P+2*k)+A)))}for(var G=1-g-P,v=0;v0){var p=f[d-1];if(s(x,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=x}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var x=0,c=u;c0){if(V<=0)return H;X=q+V}else if(q<0){if(V>=0)return H;X=-(q+V)}else return H;var G=d*X;return H>=G||H<=-G?H:k(P,T,F)},function(P,T,F,q){var V=P[0]-q[0],H=T[0]-q[0],X=F[0]-q[0],G=P[1]-q[1],N=T[1]-q[1],Z=F[1]-q[1],ie=P[2]-q[2],ae=T[2]-q[2],we=F[2]-q[2],Ee=H*Z,ke=X*N,ye=X*G,K=V*Z,ce=V*N,pe=H*G,xe=ie*(Ee-ke)+ae*(ye-K)+we*(ce-pe),Ce=(Math.abs(Ee)+Math.abs(ke))*Math.abs(ie)+(Math.abs(ye)+Math.abs(K))*Math.abs(ae)+(Math.abs(ce)+Math.abs(pe))*Math.abs(we),Me=v*Ce;return xe>Me||-xe>Me?xe:A(P,T,F,q)}];function _(g){var P=L[g.length];return P||(P=L[g.length]=E(g.length)),P.apply(void 0,g)}function C(g,P,T,F,q,V,H){return function(G,N,Z,ie,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return F(G,N);case 3:return q(G,N,Z);case 4:return V(G,N,Z,ie);case 5:return H(G,N,Z,ie,ae)}for(var we=new Array(arguments.length),Ee=0;Ee0&&x>0||v<0&&x<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&x===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,x=0,b=Math.abs,p=s[v],E=b(p),k=-l[x],A=b(k),L,_;E=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,k=f[2*E+1];if(k===x)return E;x>1,k=f[2*E+1];if(k===x)return E;x>1,k=f[2*E+1];if(k===x)return E;x>1,k=f[2*E+1];if(k===x)return E;x>1,X=d(P[H],T);X<=0?(X===0&&(V=H),F=H+1):X>0&&(q=H-1)}return V}s=p;function E(P,T){for(var F=new Array(P.length),q=0,V=F.length;q=P.length||d(P[Ee],H)!==0););}return F}s=E;function k(P,T){if(!T)return E(b(L(P,0)),P,0);for(var F=new Array(T),q=0;q>>Z&1&&N.push(V[Z]);T.push(N)}return x(T)}s=A;function L(P,T){if(T<0)return[];for(var F=[],q=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,F=0,q=g.length;F>1,H=h(g[V],P);H<=0?(H===0&&(q=V),T=V+1):H>0&&(F=V-1)}return q}a.findCell=b;function p(g,P){for(var T=new Array(g.length),F=0,q=T.length;F=g.length||h(g[we],V)!==0););}return T}a.incidence=p;function E(g,P){if(!P)return p(x(A(g,0)),g,0);for(var T=new Array(P),F=0;F>>N&1&&G.push(q[N]);P.push(G)}return v(P)}a.explode=k;function A(g,P){if(P<0)return[];for(var T=[],F=(1<>1:(K>>1)-1}function F(K){for(var ce=P(K);;){var pe=ce,xe=2*K+1,Ce=2*(K+1),Me=K;if(xe0;){var pe=T(K);if(pe>=0){var xe=P(pe);if(ce0){var K=G[0];return g(0,ie-1),ie-=1,F(0),K}return-1}function H(K,ce){var pe=G[K];return E[pe]===ce?K:(E[pe]=-1/0,q(K),V(),E[pe]=ce,ie+=1,q(ie-1))}function X(K){if(!k[K]){k[K]=!0;var ce=b[K],pe=p[K];b[pe]>=0&&(b[pe]=ce),p[ce]>=0&&(p[ce]=pe),N[ce]>=0&&H(N[ce],S(ce)),N[pe]>=0&&H(N[pe],S(pe))}}for(var G=[],N=new Array(v),A=0;A>1;A>=0;--A)F(A);for(;;){var ae=V();if(ae<0||E[ae]>d)break;X(ae)}for(var we=[],A=0;A=0&&pe>=0&&ce!==pe){var xe=N[ce],Ce=N[pe];xe!==Ce&&ye.push([xe,Ce])}}),l.unique(l.normalize(ye)),{positions:we,edges:ye}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),x=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return xp?v-p:x-p}var E,k;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,x;if(c[0][0]c[1][0])v=c[1],x=c[0];else return-l(c,f);var b=s(h,d,x),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(x,v,d),p=s(x,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(E,k,A){this.slabs=E,this.coordinates=k,this.horizontal=A}var h=f.prototype;function d(E,k){return E.y-k}function v(E,k){for(var A=null;E;){var L=E.key,_,C;L[0][0]0)if(k[0]!==L[1][0])A=E,E=E.right;else{var g=v(E.right,k);if(g)return g;E=E.left}else{if(k[0]!==L[1][0])return E;var g=v(E.right,k);if(g)return g;E=E.left}}return A}h.castUp=function(E){var k=s.le(this.coordinates,E[0]);if(k<0)return-1;var A=this.slabs[k],L=v(this.slabs[k],E),_=-1;if(L&&(_=L.value),this.coordinates[k]===E[0]){var C=null;if(L&&(C=L.key),k>0){var S=v(this.slabs[k-1],E);S&&(C?c(S.key,C)>0&&(C=S.key,_=S.value):(_=S.value,C=S.key))}var g=this.horizontal[k];if(g.length>0){var P=s.ge(g,E[1],d);if(P=g.length)return _;T=g[P]}}if(T.start)if(C){var F=u(C[0],C[1],[E[0],T.y]);C[0][0]>C[1][0]&&(F=-F),F>0&&(_=T.index)}else _=T.index;else T.y!==E[1]&&(_=T.index)}}}return _};function x(E,k,A,L){this.y=E,this.index=k,this.start=A,this.closed=L}function b(E,k,A,L){this.x=E,this.segment=k,this.create=A,this.index=L}function p(E){for(var k=E.length,A=2*k,L=new Array(A),_=0;_1&&(k=1);for(var A=1-k,L=v.length,_=new Array(L),C=0;C0||E>0&&_<0){var C=c(k,_,A,E);b.push(C),p.push(C.slice())}_<0?p.push(A.slice()):_>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),E=_}return{positive:b,negative:p}}function h(v,x){for(var b=[],p=u(v[v.length-1],x),E=v[v.length-1],k=v[0],A=0;A0||p>0&&L<0)&&b.push(c(E,L,k,p)),L>=0&&b.push(k.slice()),p=L}return b}function d(v,x){for(var b=[],p=u(v[v.length-1],x),E=v[v.length-1],k=v[0],A=0;A0||p>0&&L<0)&&b.push(c(E,L,k,p)),L<=0&&b.push(k.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,x){return u.apply(null,[v].concat(x||[]))}function f(v,x){var b=1,p=v.length,E,k="",A,L,_,C,S,g,P,T;for(A=0;A=0),_.type){case"b":E=parseInt(E,10).toString(2);break;case"c":E=String.fromCharCode(parseInt(E,10));break;case"d":case"i":E=parseInt(E,10);break;case"j":E=JSON.stringify(E,null,_.width?parseInt(_.width):0);break;case"e":E=_.precision?parseFloat(E).toExponential(_.precision):parseFloat(E).toExponential();break;case"f":E=_.precision?parseFloat(E).toFixed(_.precision):parseFloat(E);break;case"g":E=_.precision?String(Number(E.toPrecision(_.precision))):parseFloat(E);break;case"o":E=(parseInt(E,10)>>>0).toString(8);break;case"s":E=String(E),E=_.precision?E.substring(0,_.precision):E;break;case"t":E=String(!!E),E=_.precision?E.substring(0,_.precision):E;break;case"T":E=Object.prototype.toString.call(E).slice(8,-1).toLowerCase(),E=_.precision?E.substring(0,_.precision):E;break;case"u":E=parseInt(E,10)>>>0;break;case"v":E=E.valueOf(),E=_.precision?E.substring(0,_.precision):E;break;case"x":E=(parseInt(E,10)>>>0).toString(16);break;case"X":E=(parseInt(E,10)>>>0).toString(16).toUpperCase();break}l.json.test(_.type)?k+=E:(l.number.test(_.type)&&(!P||_.sign)?(T=P?"+":"-",E=E.toString().replace(l.sign,"")):T="",S=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",g=_.width-(T+E).length,C=_.width&&g>0?S.repeat(g):"",k+=_.align?T+E+C:S==="0"?T+C+E:C+T+E)}return k}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var x=v,b,p=[],E=0;x;){if((b=l.text.exec(x))!==null)p.push(b[0]);else if((b=l.modulo.exec(x))!==null)p.push("%");else if((b=l.placeholder.exec(x))!==null){if(b[2]){E|=1;var k=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(k.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)k.push(L[1]);else if((L=l.index_access.exec(A))!==null)k.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=k}else E|=2;if(E===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,x,b){var p=v({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(k,A,L,_){return k>_|0},vertex:function(k,A,L,_,C,S,g,P,T,F,q,V,H){var X=(g<<0)+(P<<1)+(T<<2)+(F<<3)|0;if(!(X===0||X===15))switch(X){case 0:q.push([k-.5,A-.5]);break;case 1:q.push([k-.25-.25*(_+L-2*H)/(L-_),A-.25-.25*(C+L-2*H)/(L-C)]);break;case 2:q.push([k-.75-.25*(-_-L+2*H)/(_-L),A-.25-.25*(S+_-2*H)/(_-S)]);break;case 3:q.push([k-.5,A-.5-.5*(C+L+S+_-4*H)/(L-C+_-S)]);break;case 4:q.push([k-.25-.25*(S+C-2*H)/(C-S),A-.75-.25*(-C-L+2*H)/(C-L)]);break;case 5:q.push([k-.5-.5*(_+L+S+C-4*H)/(L-_+C-S),A-.5]);break;case 6:q.push([k-.5-.25*(-_-L+S+C)/(_-L+C-S),A-.5-.25*(-C-L+S+_)/(C-L+_-S)]);break;case 7:q.push([k-.75-.25*(S+C-2*H)/(C-S),A-.75-.25*(S+_-2*H)/(_-S)]);break;case 8:q.push([k-.75-.25*(-S-C+2*H)/(S-C),A-.75-.25*(-S-_+2*H)/(S-_)]);break;case 9:q.push([k-.5-.25*(_+L+-S-C)/(L-_+S-C),A-.5-.25*(C+L+-S-_)/(L-C+S-_)]);break;case 10:q.push([k-.5-.5*(-_-L+-S-C+4*H)/(_-L+S-C),A-.5]);break;case 11:q.push([k-.25-.25*(-S-C+2*H)/(S-C),A-.75-.25*(C+L-2*H)/(L-C)]);break;case 12:q.push([k-.5,A-.5-.5*(-C-L+-S-_+4*H)/(C-L+S-_)]);break;case 13:q.push([k-.75-.25*(_+L-2*H)/(L-_),A-.25-.25*(-S-_+2*H)/(S-_)]);break;case 14:q.push([k-.25-.25*(-_-L+2*H)/(_-L),A-.25-.25*(-C-L+2*H)/(C-L)]);break;case 15:q.push([k-.5,A-.5]);break}},cell:function(k,A,L,_,C,S,g,P,T){C?P.push([k,A]):P.push([A,k])}});return function(E,k){var A=[],L=[];return p(E,A,L,k),{positions:A,cells:L}}}};function c(v,x){var b=v.length+"d",p=u[b];if(p)return p(s,v,x)}function f(v,x){for(var b=l(v,x),p=b.length,E=new Array(p),k=new Array(p),A=0;AMath.max(_,C)?S[2]=1:_>Math.max(L,C)?S[0]=1:S[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=S[T]*A[T];for(var T=0;T<3;++T)S[T]-=P/g*A[T];return f(S,S),S}function b(A,L,_,C,S,g,P,T){this.center=s(_),this.up=s(C),this.right=s(S),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var F=0;F<16;++F)this.computedMatrix[F]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,_=this.computedRight,C=0,S=0,g=0;g<3;++g)S+=L[g]*_[g],C+=L[g]*L[g];for(var P=Math.sqrt(C),T=0,g=0;g<3;++g)_[g]-=L[g]*S/C,T+=_[g]*_[g],L[g]/=P;for(var F=Math.sqrt(T),g=0;g<3;++g)_[g]/=F;var q=this.computedToward;c(q,L,_),f(q,q);for(var V=Math.exp(this.computedRadius[0]),H=this.computedAngle[0],X=this.computedAngle[1],G=Math.cos(H),N=Math.sin(H),Z=Math.cos(X),ie=Math.sin(X),ae=this.computedCenter,we=G*Z,Ee=N*Z,ke=ie,ye=-G*ie,K=-N*ie,ce=Z,pe=this.computedEye,xe=this.computedMatrix,g=0;g<3;++g){var Ce=we*_[g]+Ee*q[g]+ke*L[g];xe[4*g+1]=ye*_[g]+K*q[g]+ce*L[g],xe[4*g+2]=Ce,xe[4*g+3]=0}var Me=xe[1],Le=xe[5],je=xe[9],Se=xe[2],Xe=xe[6],lt=xe[10],At=Le*lt-je*Xe,Yt=je*Se-Me*lt,nt=Me*Xe-Le*Se,ot=d(At,Yt,nt);At/=ot,Yt/=ot,nt/=ot,xe[0]=At,xe[4]=Yt,xe[8]=nt;for(var g=0;g<3;++g)pe[g]=ae[g]+xe[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Ft=0;Ft<3;++Ft)T+=xe[g+4*Ft]*pe[Ft];xe[12+g]=-T}xe[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var _=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=_[C];return L}return _};var E=[0,0,0];p.rotate=function(A,L,_,C){if(this.angle.move(A,L,_),C){this.recalcMatrix(A);var S=this.computedMatrix;E[0]=S[2],E[1]=S[6],E[2]=S[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,F=0;F<3;++F)S[4*F]=g[F],S[4*F+1]=P[F],S[4*F+2]=T[F];u(S,S,C,E);for(var F=0;F<3;++F)g[F]=S[4*F],P[F]=S[4*F+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,_,C){L=L||0,_=_||0,C=C||0,this.recalcMatrix(A);var S=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=S[1],T=S[5],F=S[9],q=d(P,T,F);P/=q,T/=q,F/=q;var V=S[0],H=S[4],X=S[8],G=V*P+H*T+X*F;V-=P*G,H-=T*G,X-=F*G;var N=d(V,H,X);V/=N,H/=N,X/=N;var Z=V*L+P*_,ie=H*L+T*_,ae=X*L+F*_;this.center.move(A,Z,ie,ae);var we=Math.exp(this.computedRadius[0]);we=Math.max(1e-4,we+C),this.radius.set(A,Math.log(we))},p.translate=function(A,L,_,C){this.center.move(A,L||0,_||0,C||0)},p.setMatrix=function(A,L,_,C){var S=1;typeof _=="number"&&(S=_|0),(S<0||S>3)&&(S=1);var g=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[S],F=L[S+4],q=L[S+8];if(C){var H=Math.abs(T),X=Math.abs(F),G=Math.abs(q),N=Math.max(H,X,G);H===N?(T=T<0?-1:1,F=q=0):G===N?(q=q<0?-1:1,T=F=0):(F=F<0?-1:1,T=q=0)}else{var V=d(T,F,q);T/=V,F/=V,q/=V}var Z=L[g],ie=L[g+4],ae=L[g+8],we=Z*T+ie*F+ae*q;Z-=T*we,ie-=F*we,ae-=q*we;var Ee=d(Z,ie,ae);Z/=Ee,ie/=Ee,ae/=Ee;var ke=F*ae-q*ie,ye=q*Z-T*ae,K=T*ie-F*Z,ce=d(ke,ye,K);ke/=ce,ye/=ce,K/=ce,this.center.jump(A,er,Ge,yt),this.radius.idle(A),this.up.jump(A,T,F,q),this.right.jump(A,Z,ie,ae);var pe,xe;if(S===2){var Ce=L[1],Me=L[5],Le=L[9],je=Ce*Z+Me*ie+Le*ae,Se=Ce*ke+Me*ye+Le*K;Yt<0?pe=-Math.PI/2:pe=Math.PI/2,xe=Math.atan2(Se,je)}else{var Xe=L[2],lt=L[6],At=L[10],Yt=Xe*T+lt*F+At*q,nt=Xe*Z+lt*ie+At*ae,ot=Xe*ke+lt*ye+At*K;pe=Math.asin(v(Yt)),xe=Math.atan2(ot,nt)}this.angle.jump(A,xe,pe),this.recalcMatrix(A);var Ft=L[2],Lt=L[6],Rt=L[10],Xt=this.computedMatrix;l(Xt,L);var xr=Xt[15],er=Xt[12]/xr,Ge=Xt[13]/xr,yt=Xt[14]/xr,_t=Math.exp(this.computedRadius[0]);this.center.jump(A,er-Ft*_t,Ge-Lt*_t,yt-Rt*_t)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,_,C){this.recalcMatrix(A),L=L||this.computedEye,_=_||this.computedCenter,C=C||this.computedUp;var S=C[0],g=C[1],P=C[2],T=d(S,g,P);if(!(T<1e-6)){S/=T,g/=T,P/=T;var F=L[0]-_[0],q=L[1]-_[1],V=L[2]-_[2],H=d(F,q,V);if(!(H<1e-6)){F/=H,q/=H,V/=H;var X=this.computedRight,G=X[0],N=X[1],Z=X[2],ie=S*G+g*N+P*Z;G-=ie*S,N-=ie*g,Z-=ie*P;var ae=d(G,N,Z);if(!(ae<.01&&(G=g*V-P*q,N=P*F-S*V,Z=S*q-g*F,ae=d(G,N,Z),ae<1e-6))){G/=ae,N/=ae,Z/=ae,this.up.set(A,S,g,P),this.right.set(A,G,N,Z),this.center.set(A,_[0],_[1],_[2]),this.radius.set(A,Math.log(H));var we=g*Z-P*N,Ee=P*G-S*Z,ke=S*N-g*G,ye=d(we,Ee,ke);we/=ye,Ee/=ye,ke/=ye;var K=S*F+g*q+P*V,ce=G*F+N*q+Z*V,pe=we*F+Ee*q+ke*V,xe=Math.asin(v(K)),Ce=Math.atan2(pe,ce),Me=this.angle._state,Le=Me[Me.length-1],je=Me[Me.length-2];Le=Le%(2*Math.PI);var Se=Math.abs(Le+2*Math.PI-Ce),Xe=Math.abs(Le-Ce),lt=Math.abs(Le-2*Math.PI-Ce);Se0?Z.pop():new ArrayBuffer(G)}a.mallocArrayBuffer=E;function k(X){return new Uint8Array(E(X),0,X)}a.mallocUint8=k;function A(X){return new Uint16Array(E(2*X),0,X)}a.mallocUint16=A;function L(X){return new Uint32Array(E(4*X),0,X)}a.mallocUint32=L;function _(X){return new Int8Array(E(X),0,X)}a.mallocInt8=_;function C(X){return new Int16Array(E(2*X),0,X)}a.mallocInt16=C;function S(X){return new Int32Array(E(4*X),0,X)}a.mallocInt32=S;function g(X){return new Float32Array(E(4*X),0,X)}a.mallocFloat32=a.mallocFloat=g;function P(X){return new Float64Array(E(8*X),0,X)}a.mallocFloat64=a.mallocDouble=P;function T(X){return c?new Uint8ClampedArray(E(X),0,X):k(X)}a.mallocUint8Clamped=T;function F(X){return f?new BigUint64Array(E(8*X),0,X):null}a.mallocBigUint64=F;function q(X){return h?new BigInt64Array(E(8*X),0,X):null}a.mallocBigInt64=q;function V(X){return new DataView(E(X),0,X)}a.mallocDataView=V;function H(X){X=s.nextPow2(X);var G=s.log2(X),N=x[G];return N.length>0?N.pop():new u(X)}a.mallocBuffer=H,a.clearCache=function(){for(var G=0;G<32;++G)d.UINT8[G].length=0,d.UINT16[G].length=0,d.UINT32[G].length=0,d.INT8[G].length=0,d.INT16[G].length=0,d.INT32[G].length=0,d.FLOAT[G].length=0,d.DOUBLE[G].length=0,d.BIGUINT64[G].length=0,d.BIGINT64[G].length=0,d.UINT8C[G].length=0,v[G].length=0,x[G].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",Z="",ie=N.length,ae=Z.length,we=H[0]===E||H[0]===L,Ee=0,ke=-ae;Ee>-1&&(Ee=X.indexOf(N,Ee),!(Ee===-1||(ke=X.indexOf(Z,Ee+ie),ke===-1)||ke<=Ee));){for(var ye=Ee;ye=ke)G[ye]=null,X=X.substr(0,ye)+" "+X.substr(ye+1);else if(G[ye]!==null){var K=G[ye].indexOf(H[0]);K===-1?G[ye]+=H:we&&(G[ye]=G[ye].substr(0,K+1)+(1+parseInt(G[ye][K+1]))+G[ye].substr(K+2))}var ce=Ee+ie,pe=X.substr(ce,ke-ce),xe=pe.indexOf(N);xe!==-1?Ee=xe:Ee=ke+ae}return G}function S(V,H,X){for(var G=H.textAlign||"start",N=H.textBaseline||"alphabetic",Z=[1<<30,1<<30],ie=[0,0],ae=V.length,we=0;we/g,` +`):X=X.replace(/\/g," ");var ie="",ae=[];for(Le=0;Le-1?parseInt(Ge[1+Ct]):0,ft=St>-1?parseInt(yt[1+St]):0;kt!==ft&&(_t=_t.replace(nt(),"?px "),Xe*=Math.pow(.75,ft-kt),_t=_t.replace("?px ",nt())),Se+=.25*K*(ft-kt)}if(Z.superscripts===!0){var Gt=Ge.indexOf(E),$t=yt.indexOf(E),hr=Gt>-1?parseInt(Ge[1+Gt]):0,_r=$t>-1?parseInt(yt[1+$t]):0;hr!==_r&&(_t=_t.replace(nt(),"?px "),Xe*=Math.pow(.75,_r-hr),_t=_t.replace("?px ",nt())),Se-=.25*K*(_r-hr)}if(Z.bolds===!0){var Nr=Ge.indexOf(v)>-1,Br=yt.indexOf(v)>-1;!Nr&&Br&&(Ur?_t=_t.replace("italic ","italic bold "):_t="bold "+_t),Nr&&!Br&&(_t=_t.replace("bold ",""))}if(Z.italics===!0){var Ur=Ge.indexOf(b)>-1,ut=yt.indexOf(b)>-1;!Ur&&ut&&(_t="italic "+_t),Ur&&!ut&&(_t=_t.replace("italic ",""))}H.font=_t}for(Me=0;Me0&&(N=G.size),G.lineSpacing&&G.lineSpacing>0&&(Z=G.lineSpacing),G.styletags&&G.styletags.breaklines&&(ie.breaklines=!!G.styletags.breaklines),G.styletags&&G.styletags.bolds&&(ie.bolds=!!G.styletags.bolds),G.styletags&&G.styletags.italics&&(ie.italics=!!G.styletags.italics),G.styletags&&G.styletags.subscripts&&(ie.subscripts=!!G.styletags.subscripts),G.styletags&&G.styletags.superscripts&&(ie.superscripts=!!G.styletags.superscripts)),X.font=[G.fontStyle,G.fontVariant,G.fontWeight,N+"px",G.font].filter(function(we){return we}).join(" "),X.textAlign="start",X.textBaseline="alphabetic",X.direction="ltr";var ae=g(H,X,V,N,Z,ie);return F(ae,G,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),E=new Uint8Array(p);crypto.getRandomValues(E),b=x+"rand:"+Array.prototype.map.call(E,function(T){return(T%36).toString(36)}).join("")+"___"}function k(T){return!(T.substr(0,x.length)==x&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(F){return h(F).filter(k)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(F){return A(F).filter(k)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var F=T[b];if(F&&F.key===T)return F;if(v(T)){F={key:T};try{return d(T,b,{value:F,writable:!1,enumerable:!1,configurable:!1}),F}catch(q){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(H){return L(H),T(H)}});var F=Object.seal;d(Object,"seal",{value:function(H){return L(H),F(H)}});var q=Object.preventExtensions;d(Object,"preventExtensions",{value:function(H){return L(H),q(H)}})})();function _(T){return T.prototype=null,Object.freeze(T)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||S();var T=[],F=[],q=g++;function V(N,Z){var ie,ae=L(N);return ae?q in ae?ae[q]:Z:(ie=T.indexOf(N),ie>=0?F[ie]:Z)}function H(N){var Z=L(N);return Z?q in Z:T.indexOf(N)>=0}function X(N,Z){var ie,ae=L(N);return ae?ae[q]=Z:(ie=T.indexOf(N),ie>=0?F[ie]=Z:(ie=T.length,F[ie]=Z,T[ie]=N)),this}function G(N){var Z=L(N),ie,ae;return Z?q in Z&&delete Z[q]:(ie=T.indexOf(N),ie<0?!1:(ae=T.length-1,T[ie]=void 0,F[ie]=F[ae],T[ie]=T[ae],T.length=ae,F.length=ae,!0))}return Object.create(P.prototype,{get___:{value:_(V)},has___:{value:_(H)},set___:{value:_(X)},delete___:{value:_(G)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(F,q){return this.get___(F,q)},writable:!0,configurable:!0},has:{value:function(F){return this.has___(F)},writable:!0,configurable:!0},set:{value:function(F,q){return this.set___(F,q)},writable:!0,configurable:!0},delete:{value:function(F){return this.delete___(F)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||S();var F=new l,q=void 0,V=!1;function H(Z,ie){return q?F.has(Z)?F.get(Z):q.get___(Z,ie):F.get(Z,ie)}function X(Z){return F.has(Z)||(q?q.has___(Z):!1)}var G;s?G=function(Z,ie){return F.set(Z,ie),F.has(Z)||(q||(q=new P),q.set(Z,ie)),this}:G=function(Z,ie){if(V)try{F.set(Z,ie)}catch(ae){q||(q=new P),q.set___(Z,ie)}else F.set(Z,ie);return this};function N(Z){var ie=!!F.delete(Z);return q&&q.delete___(Z)||ie}return Object.create(P.prototype,{get___:{value:_(H)},has___:{value:_(X)},set___:{value:_(G)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(Z){if(Z===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,x,b){var p=f[0],E=d[0],k=[0],A=E;v|=0;var L=0,_=E;for(L=0;L=0!=S>=0&&x.push(k[0]+.5+.5*(C+S)/(C-S))}v+=_,++k[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,x,b){var p=v.dtype,E=v.order,k=[p,E.join()].join(),A=h[k];return A||(h[k]=A=f([p,E])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,x,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);dPe.exports=n})()});var dZ=_e((e0r,vPe)=>{"use strict";vPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var yPe=_e((t0r,mPe)=>{"use strict";var pPe=dZ();mPe.exports=zPt;var gPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function zPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),pPe[e])r=pPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(gPe[h]!==void 0)return gPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var xPe=_e((r0r,_Pe)=>{"use strict";var FPt=yPe();_Pe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=FPt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=qPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function qPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var XD=_e((i0r,bPe)=>{bPe.exports=OPt;function OPt(e,t,r){return tr?r:e:et?t:e}});var YD=_e((n0r,wPe)=>{wPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var $_=_e((a0r,TPe)=>{"use strict";var BPt=xPe(),KD=XD(),NPt=YD();TPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=NPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=BPt(t),t[0]/=255,t[1]/=255,t[2]/=255),UPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=KD(Math.floor(t[0]*255),0,255),i[1]=KD(Math.floor(t[1]*255),0,255),i[2]=KD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:KD(Math.floor(t[3]*255),0,255)),i)};function UPt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jy=_e((o0r,APe)=>{"use strict";var VPt=$_();function HPt(e){return e?VPt(e):[0,0,0,1]}APe.exports=HPt});var $y=_e((s0r,PPe)=>{"use strict";var CPe=ao(),GPt=id(),JD=$_(),$D=Su(),jPt=dh().defaultLine,MPe=vv().isArrayOrTypedArray,vZ=JD(jPt),LPe=1;function SPe(e,t){var r=e;return r[3]*=t,r}function EPe(e){if(CPe(e))return vZ;var t=JD(e);return t.length?t:vZ}function kPe(e){return CPe(e)?e:LPe}function WPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=MPe(n),a=MPe(t),o=$D.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=$D.makeColorScaleFuncFromTrace(e):l=EPe,i?u=function(v,x){return v[x]===void 0?vZ:JD(l(v[x]))}:u=EPe,a?c=function(v,x){return v[x]===void 0?LPe:kPe(v[x])}:c=kPe,i||a)for(var d=0;d{"use strict";IPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var QD=_e((u0r,RPe)=>{"use strict";RPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var zPe=_e((c0r,DPe)=>{"use strict";var XPt=_a();function gZ(e,t,r,n){if(!t||!t.visible)return null;for(var i=XPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function YPt(e){for(var t=0;t{"use strict";var JPt=Rd().gl_line3d,FPe=Rd().gl_scatter3d,$Pt=Rd().gl_error3d,QPt=Rd().gl_mesh3d,eIt=Rd().delaunay_triangulate,Qy=Mr(),UPe=Jy(),ez=$y().formatColor,tIt=M3(),mZ=pZ(),rIt=QD(),iIt=Ka(),nIt=rp().appendArrayPointValue,aIt=zPe();function VPe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var _Z=VPe.prototype;_Z.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function oIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function OPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function lIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=oIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=QPt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};_Z.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function hIt(e,t){var r=new VPe(e,t.uid);return r.update(t),r}HPe.exports=hIt});var AZ=_e((h0r,ZPe)=>{"use strict";var e1=Uc(),dIt=Mu(),TZ=Jl(),xZ=Oc().axisHoverFormat,vIt=Ho().hovertemplateAttrs,pIt=Ho().texttemplateAttrs,jPe=vl(),gIt=pZ(),mIt=QD(),Yg=to().extendFlat,yIt=Bu().overrideAll,WPe=Y1(),_It=e1.line,N2=e1.marker,xIt=N2.line,bIt=Yg({width:_It.width,dash:{valType:"enumerated",values:WPe(gIt),dflt:"solid"}},TZ("line"));function bZ(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var wZ=ZPe.exports=yIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:pIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:vIt(),xhoverformat:xZ("x"),yhoverformat:xZ("y"),zhoverformat:xZ("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:bZ("x"),y:bZ("y"),z:bZ("z")},connectgaps:e1.connectgaps,line:bIt,marker:Yg({symbol:{valType:"enumerated",values:WPe(mIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},xIt.width,{arrayOk:!1})},TZ("marker.line"))},TZ("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:dIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:jPe.opacity,hoverinfo:Yg({},jPe.hoverinfo)},"calc","nested");wZ.x.editType=wZ.y.editType=wZ.z.editType="calc+clearAxisTypes"});var KPe=_e((d0r,YPe)=>{"use strict";var XPe=_a(),wIt=Mr(),MZ=lu(),TIt=$p(),AIt=R0(),MIt=D0(),SIt=AZ();YPe.exports=function(t,r,n,i){function a(d,v){return wIt.coerce(t,r,SIt,d,v)}var o=EIt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),MZ.hasMarkers(r)&&TIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),MZ.hasLines(r)&&(a("connectgaps"),AIt(t,r,n,i,a)),MZ.hasText(r)&&(a("texttemplate"),MIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=XPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function EIt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=XPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var $Pe=_e((v0r,JPe)=>{"use strict";var kIt=km(),CIt=z0();JPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return kIt(n,r),CIt(t,r),n}});var eIe=_e((p0r,QPe)=>{QPe.exports=LIt;function LIt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var PIt=eIe();tIe.exports=function(t){return PIt("webgl",t)}});var SZ=_e((m0r,nIe)=>{"use strict";var iIe=ha(),IIt=function(){};nIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=IIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=iIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=iIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var sIe=_e((y0r,oIe)=>{"use strict";var U2=Jy(),RIt=Mr(),DIt=["xaxis","yaxis","zaxis"];function aIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var zIt=aIe.prototype;zIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[DIt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?RIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function FIt(e,t){var r=new aIe;return r.merge(e,t),r}oIe.exports=FIt});var cIe=_e((_0r,uIe)=>{"use strict";var qIt=Jy(),OIt=["xaxis","yaxis","zaxis"];function lIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var BIt=lIe.prototype;BIt.merge=function(e){for(var t=0;t<3;++t){var r=e[OIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=qIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function NIt(e){var t=new lIe;return t.merge(e),t}uIe.exports=NIt});var dIe=_e((x0r,hIe)=>{"use strict";hIe.exports=jIt;var fIe=Ka(),UIt=Mr(),VIt=["xaxis","yaxis","zaxis"],HIt=[0,0,0];function GIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){HIt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=GIt(i)}});var xIe=_e((b0r,_Ie)=>{"use strict";var gIe=Rd().gl_plot3d,WIt=gIe.createCamera,vIe=gIe.createScene,ZIt=rIe(),XIt=EL(),iz=_a(),up=Mr(),rz=up.preserveDrawingBuffer(),nz=Ka(),Kg=Nc(),YIt=Jy(),KIt=SZ(),JIt=UU(),$It=sIe(),QIt=cIe(),e8t=dIe(),t8t=wg().applyAutorangeOptions,HE,tz,mIe=!1;function yIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=$It(t,t[this.id]),this.spikeOptions=QIt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=iz.getComponentMethod("annotations3d","convert"),this.drawAnnotations=iz.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var wv=yIe.prototype;wv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:rz,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!tz&&(HE=document.createElement("canvas"),tz=ZIt({canvas:HE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!tz))throw new Error("error creating static canvas/context for image server");t.gl=tz,t.canvas=HE}return t};var pIe=!0;wv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=vIe(t)}catch(n){if(e.staticMode||!pIe||rz)r=!1;else{up.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{rz=t.glOptions.preserveDrawingBuffer=!0,e.glplot=vIe(t)}catch(i){rz=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return pIe=!1,r};wv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=WIt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};wv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return KIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){mIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},XIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};wv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),e8t(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=nz.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+p.valueLabel),f.textLabel&&_.push(f.textLabel),L=_.join("
")):L=f.textLabel;var C={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Kg.appendArrayPointValue(C,x,b),r._module.eventData&&(C=x._module.eventData(C,f,x,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:x,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(x,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(x,b,"bordercolor"),fontFamily:Kg.castHoverOption(x,b,"font.family"),fontSize:Kg.castHoverOption(x,b,"font.size"),fontColor:Kg.castHoverOption(x,b,"font.color"),nameLength:Kg.castHoverOption(x,b,"namelength"),textAlign:Kg.castHoverOption(x,b,"align"),hovertemplate:up.castOption(x,b,"hovertemplate"),hovertemplateLabels:up.extendFlat({},C,p),eventData:[C]},{container:n,gd:t,inOut_bbox:g}),C.bbox=g[0]}f.distance<5&&(f.buttons||mIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};wv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){up.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var GE=["xaxis","yaxis","zaxis"];function r8t(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=GE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!up.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(up.isArrayOrTypedArray(l[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var T=x[1][o]-x[0][o];x[0][o]-=T/32,x[1][o]+=T/32}if(E=[x[0][o],x[1][o]],E=t8t(E,l),x[0][o]=E[0],x[1][o]=E[1],l.isReversed()){var F=x[0][o];x[0][o]=x[1][o],x[1][o]=F}}else E=l.range,x[0][o]=l.r2l(E[0]),x[1][o]=l.r2l(E[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],l.range=[x[0][o],x[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var q,V=c.aspectmode;if(V==="cube")q=[1,1,1];else if(V==="manual"){var H=c.aspectratio;q=[H.x,H.y,H.z]}else if(V==="auto"||V==="data"){var X=[1,1,1];for(o=0;o<3;++o){l=c[GE[o]],u=l.type;var G=p[u];X[o]=Math.pow(G.acc,1/G.count)/d[o]}V==="data"||Math.max.apply(null,X)/Math.min.apply(null,X)<=4?q=X:q=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=q[0],c.aspectratio.y=f.aspectratio.y=q[1],c.aspectratio.z=f.aspectratio.z=q[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,Z=t._size||null;if(N&&Z){var ie=n.container.style;ie.position="absolute",ie.left=Z.l+N.x[0]*Z.w+"px",ie.top=Z.t+(1-N.y[1])*Z.h+"px",ie.width=Z.w*(N.x[1]-N.x[0])+"px",ie.height=Z.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};wv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function n8t(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function a8t(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}wv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),a8t(e.camera)};wv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,n8t(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};wv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=up.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};wv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=up.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};wv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=up.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=up.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),iz.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=up.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=up.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};wv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;iz.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,up.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function o8t(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}wv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(HE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),o8t(a,n,i),s8t(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(HE),u};wv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[GE[t]];nz.setConvert(r,e.fullLayout),r.setScale=up.noop}};wv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},nz.setConvert(e._mockAxis,r)};_Ie.exports=yIe});var wIe=_e((w0r,bIe)=>{"use strict";bIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var kZ=_e((T0r,TIe)=>{"use strict";var l8t=ha(),ss=Cd(),EZ=to().extendFlat,u8t=Bu().overrideAll;TIe.exports=u8t({visible:ss.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:l8t.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:ss.color,categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,title:{text:ss.title.text,font:ss.title.font},type:EZ({},ss.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ss.autotypenumbers,autorange:ss.autorange,autorangeoptions:{minallowed:ss.autorangeoptions.minallowed,maxallowed:ss.autorangeoptions.maxallowed,clipmin:ss.autorangeoptions.clipmin,clipmax:ss.autorangeoptions.clipmax,include:ss.autorangeoptions.include,editType:"plot"},rangemode:ss.rangemode,minallowed:ss.minallowed,maxallowed:ss.maxallowed,range:EZ({},ss.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:ss.minor.tickmode,nticks:ss.nticks,tick0:ss.tick0,dtick:ss.dtick,tickvals:ss.tickvals,ticktext:ss.ticktext,ticks:ss.ticks,mirror:ss.mirror,ticklen:ss.ticklen,tickwidth:ss.tickwidth,tickcolor:ss.tickcolor,showticklabels:ss.showticklabels,labelalias:ss.labelalias,tickfont:ss.tickfont,tickangle:ss.tickangle,tickprefix:ss.tickprefix,showtickprefix:ss.showtickprefix,ticksuffix:ss.ticksuffix,showticksuffix:ss.showticksuffix,showexponent:ss.showexponent,exponentformat:ss.exponentformat,minexponent:ss.minexponent,separatethousands:ss.separatethousands,tickformat:ss.tickformat,tickformatstops:ss.tickformatstops,hoverformat:ss.hoverformat,showline:ss.showline,linecolor:ss.linecolor,linewidth:ss.linewidth,showgrid:ss.showgrid,gridcolor:EZ({},ss.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:ss.gridwidth,zeroline:ss.zeroline,zerolinecolor:ss.zerolinecolor,zerolinewidth:ss.zerolinewidth},"plot","from-root")});var IZ=_e((A0r,AIe)=>{"use strict";var CZ=kZ(),c8t=Ju().attributes,LZ=to().extendFlat,f8t=Mr().counterRegex;function PZ(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}AIe.exports={_arrayAttrRegexps:[f8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:LZ(PZ(0,0,1),{}),center:LZ(PZ(0,0,0),{}),eye:LZ(PZ(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:c8t({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:CZ,yaxis:CZ,zaxis:CZ,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var kIe=_e((M0r,EIe)=>{"use strict";var h8t=id().mix,MIe=Mr(),d8t=Us(),v8t=kZ(),p8t=MU(),g8t=$S(),SIe=["xaxis","yaxis","zaxis"],m8t=100*136/187;EIe.exports=function(t,r,n){var i,a;function o(u,c){return MIe.coerce(i,a,v8t,u,c)}for(var s=0;s{"use strict";var y8t=Mr(),_8t=ha(),x8t=_a(),b8t=C_(),w8t=kIe(),CIe=IZ(),T8t=kd().getSubplotData,LIe="gl3d";PIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=y8t.validate(t[o],CIe[o]);if(s)return t[o]}}b8t(t,r,n,{type:LIe,attributes:CIe,handleDefaults:A8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function A8t(e,t,r,n){for(var i=r("bgcolor"),a=_8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=_e(cp=>{"use strict";var M8t=Bu().overrideAll,S8t=N1(),E8t=xIe(),k8t=kd().getSubplotData,C8t=Mr(),L8t=Zp(),B5="gl3d",RZ="scene";cp.name=B5;cp.attr=RZ;cp.idRoot=RZ;cp.idRegex=cp.attrRegex=C8t.counterRegex("scene");cp.attributes=wIe();cp.layoutAttributes=IZ();cp.baseLayoutAttrOverrides=M8t({hoverlabel:S8t.hoverlabel},"plot","nested");cp.supplyLayoutDefaults=IIe();cp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[B5],a=0;a{"use strict";RIe.exports={plot:GPe(),attributes:AZ(),markerSymbols:QD(),supplyDefaults:KPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:$Pe(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var FIe=_e((C0r,zIe)=>{"use strict";zIe.exports=DIe()});var jE=_e((L0r,BIe)=>{"use strict";var qIe=ha(),P8t=Jl(),DZ=Oc().axisHoverFormat,I8t=Ho().hovertemplateAttrs,OIe=vl(),zZ=to().extendFlat,R8t=Bu().overrideAll;function FZ(e){return{valType:"boolean",dflt:!1}}function qZ(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:FZ("x"),y:FZ("y"),z:FZ("z")},color:{valType:"color",dflt:qIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:qIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var OZ=BIe.exports=R8t(zZ({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:I8t(),xhoverformat:DZ("x"),yhoverformat:DZ("y"),zhoverformat:DZ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},P8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:qZ("x"),y:qZ("y"),z:qZ("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:zZ({},OIe.hoverinfo),showlegend:zZ({},OIe.showlegend,{dflt:!1})}),"calc","nested");OZ.x.editType=OZ.y.editType=OZ.z.editType="calc+clearAxisTypes"});var NZ=_e((P0r,VIe)=>{"use strict";var D8t=_a(),NIe=Mr(),z8t=Uh(),F8t=jE(),BZ=.1;function q8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var HIe=zv();GIe.exports=function(t,r){r.surfacecolor?HIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):HIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var JIe=_e((R0r,KIe)=>{"use strict";var N8t=Rd().gl_surface3d,N5=Rd().ndarray,U8t=Rd().ndarray_linear_interpolate.d2,V8t=QI(),H8t=e8(),WE=Mr().isArrayOrTypedArray,G8t=$y().parseColorScale,WIe=Jy(),j8t=Su().extractOpts;function XIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jg=XIe.prototype;Jg.getXat=function(e,t,r,n){var i=WE(this.data.x)?WE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=WE(this.data.y)?WE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return WE(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function W8t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var U5=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function Z8t(e,t){if(e0){r=U5[n];break}return r}function Y8t(e,t){if(!(e<1||t<1)){for(var r=UZ(e),n=UZ(t),i=1,a=0;aaz;)n--,n/=X8t(n),n++,n1?i:1};function J8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function $8t(e,t,r){return Q8t(e,t,J8t,r),e}function Q8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";$Ie.exports={attributes:jE(),supplyDefaults:NZ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:jIe(),plot:JIe(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var t8e=_e((z0r,e8e)=>{"use strict";e8e.exports=QIe()});var V5=_e((F0r,i8e)=>{"use strict";var rRt=Jl(),VZ=Oc().axisHoverFormat,iRt=Ho().hovertemplateAttrs,ex=jE(),r8e=vl(),tx=to().extendFlat;i8e.exports=tx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:iRt({editType:"calc"}),xhoverformat:VZ("x"),yhoverformat:VZ("y"),zhoverformat:VZ("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},rRt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},r8e.hoverinfo,{editType:"calc"}),showlegend:tx({},r8e.showlegend,{dflt:!1})})});var sz=_e((q0r,a8e)=>{"use strict";var nRt=Jl(),oz=Oc().axisHoverFormat,aRt=Ho().hovertemplateAttrs,ZE=V5(),n8e=vl(),HZ=to().extendFlat,oRt=Bu().overrideAll;function GZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function jZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var H5=a8e.exports=oRt(HZ({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:GZ("x"),y:GZ("y"),z:GZ("z")},caps:{x:jZ("x"),y:jZ("y"),z:jZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:aRt(),xhoverformat:oz("x"),yhoverformat:oz("y"),zhoverformat:oz("z"),valuehoverformat:oz("value",1),showlegend:HZ({},n8e.showlegend,{dflt:!1})},nRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ZE.opacity,lightposition:ZE.lightposition,lighting:ZE.lighting,flatshading:ZE.flatshading,contour:ZE.contour,hoverinfo:HZ({},n8e.hoverinfo)}),"calc","nested");H5.flatshading.dflt=!0;H5.lighting.facenormalsepsilon.dflt=0;H5.x.editType=H5.y.editType=H5.z.editType=H5.value.editType="calc+clearAxisTypes"});var WZ=_e((O0r,s8e)=>{"use strict";var sRt=Mr(),lRt=_a(),uRt=sz(),cRt=Uh();function fRt(e,t,r,n){function i(a,o){return sRt.coerce(e,t,uRt,a,o)}o8e(e,t,r,n,i)}function o8e(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=lRt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,p=i(b+".show");p&&i(b+".fill");var E="slices."+x,k=i(E+".show");k&&(i(E+".fill"),i(E+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),cRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}s8e.exports={supplyDefaults:fRt,supplyIsoDefaults:o8e}});var lz=_e((B0r,u8e)=>{"use strict";var XZ=Mr(),hRt=zv();function dRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=l8e(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(k=t[i-1],L=r[i-1],C=n[i-1]),a=0;ak?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(_>C?"-":"+")+"z");var T=function(){i=0,S=[],g=[],P=[]};(!i||i{"use strict";var vRt=zv(),pRt=lz().processGrid,uz=lz().filter;c8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=uz(r.x,r._len),r._y=uz(r.y,r._len),r._z=uz(r.z,r._len),r._value=uz(r.value,r._len);var n=pRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";f8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var gRt=Rd().gl_mesh3d,mRt=$y().parseColorScale,yRt=Mr().isArrayOrTypedArray,_Rt=Jy(),xRt=Su().extractOpts,h8e=G5(),XE=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(_t,Ct){return _t===null?Ct:_t}function we(_t,Ct,St){T();var kt=[Ct],ft=[St];if(G>=1)kt=[Ct],ft=[St];else if(G>0){var Gt=Z(Ct,St);kt=Gt.xyzv,ft=Gt.abc}for(var $t=0;$t-1?St[_r]:P(Nr,Br,Ur);rt>-1?hr[_r]=rt:hr[_r]=q(Nr,Br,Ur,ae(_t,ut))}V(hr[0],hr[1],hr[2])}}function Ee(_t,Ct,St){var kt=function(ft,Gt,$t){we(_t,[Ct[ft],Ct[Gt],Ct[$t]],[St[ft],St[Gt],St[$t]])};kt(0,1,2),kt(2,3,0)}function ke(_t,Ct,St){var kt=function(ft,Gt,$t){we(_t,[Ct[ft],Ct[Gt],Ct[$t]],[St[ft],St[Gt],St[$t]])};kt(0,1,2),kt(3,0,1),kt(2,3,0),kt(1,2,3)}function ye(_t,Ct,St,kt){var ft=_t[3];ftkt&&(ft=kt);for(var Gt=(_t[3]-ft)/(_t[3]-Ct[3]+1e-9),$t=[],hr=0;hr<4;hr++)$t[hr]=(1-Gt)*_t[hr]+Gt*Ct[hr];return $t}function K(_t,Ct,St){return _t>=Ct&&_t<=St}function ce(_t){var Ct=.001*(L-A);return _t>=A-Ct&&_t<=L+Ct}function pe(_t){for(var Ct=[],St=0;St<4;St++){var kt=_t[St];Ct.push([e._x[kt],e._y[kt],e._z[kt],e._value[kt]])}return Ct}var xe=3;function Ce(_t,Ct,St,kt,ft,Gt){Gt||(Gt=1),St=[-1,-1,-1];var $t=!1,hr=[K(Ct[0][3],kt,ft),K(Ct[1][3],kt,ft),K(Ct[2][3],kt,ft)];if(!hr[0]&&!hr[1]&&!hr[2])return!1;var _r=function(Br,Ur,ut){return ce(Ur[0][3])&&ce(Ur[1][3])&&ce(Ur[2][3])?(we(Br,Ur,ut),!0):Gthr?[E,Gt]:[Gt,k];Lt(Ct,_r[0],_r[1])}}var Nr=[[Math.min(A,k),Math.max(A,k)],[Math.min(E,L),Math.max(E,L)]];["x","y","z"].forEach(function(Br){for(var Ur=[],ut=0;ut0&&(Ie.push(Qe.id),Br==="x"?le.push([Qe.distRatio,0,0]):Br==="y"?le.push([0,Qe.distRatio,0]):le.push([0,0,Qe.distRatio]))}else Br==="x"?ht=er(1,d-1):Br==="y"?ht=er(1,v-1):ht=er(1,x-1);Ie.length>0&&(Br==="x"?Ur[rt]=Rt(_t,Ie,it,Ze,le,Ur[rt]):Br==="y"?Ur[rt]=Xt(_t,Ie,it,Ze,le,Ur[rt]):Ur[rt]=xr(_t,Ie,it,Ze,le,Ur[rt]),rt++),ht.length>0&&(Br==="x"?Ur[rt]=At(_t,ht,it,Ze,Ur[rt]):Br==="y"?Ur[rt]=Yt(_t,ht,it,Ze,Ur[rt]):Ur[rt]=nt(_t,ht,it,Ze,Ur[rt]),rt++)}var xt=e.caps[Br];xt.show&&xt.fill&&(N(xt.fill),Br==="x"?Ur[rt]=At(_t,[0,d-1],it,Ze,Ur[rt]):Br==="y"?Ur[rt]=Yt(_t,[0,v-1],it,Ze,Ur[rt]):Ur[rt]=nt(_t,[0,x-1],it,Ze,Ur[rt]),rt++)}}),s===0&&F(),e._meshX=_,e._meshY=C,e._meshZ=S,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return yt(),e}function wRt(e,t){var r=e.glplot.gl,n=gRt({gl:r}),i=new d8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}p8e.exports={findNearestOnAxis:XE,generateIsoMeshes:v8e,createIsosurfaceTrace:wRt}});var m8e=_e((H0r,g8e)=>{"use strict";g8e.exports={attributes:sz(),supplyDefaults:WZ().supplyDefaults,calc:YZ(),colorbar:{min:"cmin",max:"cmax"},plot:cz().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var _8e=_e((G0r,y8e)=>{"use strict";y8e.exports=m8e()});var $Z=_e((j0r,b8e)=>{"use strict";var TRt=Jl(),xh=sz(),ARt=jE(),x8e=vl(),JZ=to().extendFlat,MRt=Bu().overrideAll,fz=b8e.exports=MRt(JZ({x:xh.x,y:xh.y,z:xh.z,value:xh.value,isomin:xh.isomin,isomax:xh.isomax,surface:xh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:xh.slices,caps:xh.caps,text:xh.text,hovertext:xh.hovertext,xhoverformat:xh.xhoverformat,yhoverformat:xh.yhoverformat,zhoverformat:xh.zhoverformat,valuehoverformat:xh.valuehoverformat,hovertemplate:xh.hovertemplate},TRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:ARt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:JZ({},x8e.hoverinfo),showlegend:JZ({},x8e.showlegend,{dflt:!1})}),"calc","nested");fz.x.editType=fz.y.editType=fz.z.editType=fz.value.editType="calc+clearAxisTypes"});var T8e=_e((W0r,w8e)=>{"use strict";var SRt=Mr(),ERt=$Z(),kRt=WZ().supplyIsoDefaults,CRt=NZ().opacityscaleDefaults;w8e.exports=function(t,r,n,i){function a(o,s){return SRt.coerce(t,r,ERt,o,s)}kRt(t,r,n,i,a),CRt(t,r,i,a)}});var E8e=_e((Z0r,S8e)=>{"use strict";var LRt=Rd().gl_mesh3d,PRt=$y().parseColorScale,IRt=Mr().isArrayOrTypedArray,RRt=Jy(),DRt=Su().extractOpts,A8e=G5(),QZ=cz().findNearestOnAxis,zRt=cz().generateIsoMeshes;function M8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var eX=M8e.prototype;eX.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=QZ(r,this.data._Xs).id,l=QZ(n,this.data._Ys).id,u=QZ(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return IRt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};eX.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=zRt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=A8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=A8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:RRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=DRt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=PRt(e),this.mesh.update(o)};eX.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function FRt(e,t){var r=e.glplot.gl,n=LRt({gl:r}),i=new M8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}S8e.exports=FRt});var C8e=_e((X0r,k8e)=>{"use strict";k8e.exports={attributes:$Z(),supplyDefaults:T8e(),calc:YZ(),colorbar:{min:"cmin",max:"cmax"},plot:E8e(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var P8e=_e((Y0r,L8e)=>{"use strict";L8e.exports=C8e()});var D8e=_e((K0r,R8e)=>{"use strict";var qRt=_a(),I8e=Mr(),ORt=Uh(),BRt=V5();R8e.exports=function(t,r,n,i){function a(c,f){return I8e.coerce(t,r,BRt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&I8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=qRt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),ORt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var F8e=_e((J0r,z8e)=>{"use strict";var NRt=zv();z8e.exports=function(t,r){r.intensity&&NRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var U8e=_e(($0r,N8e)=>{"use strict";var URt=Rd().gl_mesh3d,VRt=Rd().delaunay_triangulate,HRt=Rd().alpha_shape,GRt=Rd().convex_hull,jRt=$y().parseColorScale,WRt=Mr().isArrayOrTypedArray,nX=Jy(),ZRt=Su().extractOpts,q8e=G5();function B8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var aX=B8e.prototype;aX.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return WRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function O8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}aX.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=q8e(tX(r.xaxis,e.x,t.dataScale[0],e.xcalendar),tX(r.yaxis,e.y,t.dataScale[1],e.ycalendar),tX(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!iX(e.i,n)||!iX(e.j,n)||!iX(e.k,n))return;a=q8e(rX(e.i),rX(e.j),rX(e.k))}else e.alphahull===0?a=GRt(i):e.alphahull>0?a=HRt(e.alphahull,i):a=XRt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:nX(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=ZRt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=jRt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=O8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=O8e(e.facecolor)):(this.color=e.color,o.meshColor=nX(e.color));this.mesh.update(o)};aX.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function YRt(e,t){var r=e.glplot.gl,n=URt({gl:r}),i=new B8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}N8e.exports=YRt});var H8e=_e((Q0r,V8e)=>{"use strict";V8e.exports={attributes:V5(),supplyDefaults:D8e(),calc:F8e(),colorbar:{min:"cmin",max:"cmax"},plot:U8e(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var j8e=_e((egr,G8e)=>{"use strict";G8e.exports=H8e()});var sX=_e((tgr,Z8e)=>{"use strict";var KRt=Jl(),j5=Oc().axisHoverFormat,JRt=Ho().hovertemplateAttrs,$Rt=V5(),W8e=vl(),oX=to().extendFlat,hz={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:JRt({editType:"calc"},{keys:["norm"]}),uhoverformat:j5("u",1),vhoverformat:j5("v",1),whoverformat:j5("w",1),xhoverformat:j5("x"),yhoverformat:j5("y"),zhoverformat:j5("z"),showlegend:oX({},W8e.showlegend,{dflt:!1})};oX(hz,KRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var QRt=["opacity","lightposition","lighting"];QRt.forEach(function(e){hz[e]=$Rt[e]});hz.hoverinfo=oX({},W8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});Z8e.exports=hz});var Y8e=_e((rgr,X8e)=>{"use strict";var eDt=Mr(),tDt=Uh(),rDt=sX();X8e.exports=function(t,r,n,i){function a(d,v){return eDt.coerce(t,r,rDt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),tDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var J8e=_e((igr,K8e)=>{"use strict";var iDt=zv();K8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var nDt=Rd().gl_cone3d,aDt=Rd().gl_cone3d.createConeMesh,oDt=Mr().simpleMap,sDt=$y().parseColorScale,lDt=Su().extractOpts,uDt=Mr().isArrayOrTypedArray,$8e=G5();function Q8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var lX=Q8e.prototype;lX.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return uDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var cDt={xaxis:0,yaxis:1,zaxis:2},fDt={tip:1,tail:0,cm:.25,center:.5},hDt={tip:1,tail:1,cm:.75,center:.5};function eRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[cDt[f]];return oDt(c,function(v){return h.d2l(v)*d})}i.vectors=$8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=$8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=lDt(t);i.colormap=sDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=fDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=nDt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=hDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}lX.update=function(e){this.data=e;var t=eRe(this.scene,e);this.mesh.update(t)};lX.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function dDt(e,t){var r=e.glplot.gl,n=eRe(e,t),i=aDt(r,n),a=new Q8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}tRe.exports=dDt});var nRe=_e((agr,iRe)=>{"use strict";iRe.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:sX(),supplyDefaults:Y8e(),colorbar:{min:"cmin",max:"cmax"},calc:J8e(),plot:rRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var oRe=_e((ogr,aRe)=>{"use strict";aRe.exports=nRe()});var cX=_e((sgr,lRe)=>{"use strict";var vDt=Jl(),W5=Oc().axisHoverFormat,pDt=Ho().hovertemplateAttrs,gDt=V5(),sRe=vl(),uX=to().extendFlat,dz={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:pDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:W5("u",1),vhoverformat:W5("v",1),whoverformat:W5("w",1),xhoverformat:W5("x"),yhoverformat:W5("y"),zhoverformat:W5("z"),showlegend:uX({},sRe.showlegend,{dflt:!1})};uX(dz,vDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var mDt=["opacity","lightposition","lighting"];mDt.forEach(function(e){dz[e]=gDt[e]});dz.hoverinfo=uX({},sRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});lRe.exports=dz});var cRe=_e((lgr,uRe)=>{"use strict";var yDt=Mr(),_Dt=Uh(),xDt=cX();uRe.exports=function(t,r,n,i){function a(h,d){return yDt.coerce(t,r,xDt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),_Dt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var yRe=_e((ugr,mRe)=>{"use strict";var dRe=Rd().gl_streamtube3d,bDt=dRe.createTubeMesh,wDt=Mr(),TDt=$y().parseColorScale,ADt=Su().extractOpts,fRe=G5(),vRe={xaxis:0,yaxis:1,zaxis:2};function pRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var hX=pRe.prototype;hX.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[vRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function hRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function fX(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function gRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(F,q){var V=r[q],H=n[vRe[q]];return wDt.simpleMap(F,function(X){return V.d2l(X)*H})}if(a.vectors=fRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=fRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=hRe(s),d=hRe(u),v=new Array(h.length*d.length),x=0,b=0;b{"use strict";_Re.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:cX(),supplyDefaults:cRe(),colorbar:{min:"cmin",max:"cmax"},calc:lz().calc,plot:yRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var wRe=_e((fgr,bRe)=>{"use strict";bRe.exports=xRe()});var H2=_e((hgr,MRe)=>{"use strict";var SDt=Ho().hovertemplateAttrs,EDt=Ho().texttemplateAttrs,kDt=Eg(),Gm=Uc(),CDt=vl(),TRe=Jl(),LDt=Ed().dash,V2=to().extendFlat,PDt=Bu().overrideAll,eg=Gm.marker,ARe=Gm.line,IDt=eg.line;MRe.exports=PDt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},Gm.mode,{dflt:"markers"}),text:V2({},Gm.text,{}),texttemplate:EDt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},Gm.hovertext,{}),textfont:Gm.textfont,textposition:Gm.textposition,line:{color:ARe.color,width:ARe.width,dash:LDt},connectgaps:Gm.connectgaps,marker:V2({symbol:eg.symbol,opacity:eg.opacity,angle:eg.angle,angleref:V2({},eg.angleref,{values:["previous","up","north"]}),standoff:eg.standoff,size:eg.size,sizeref:eg.sizeref,sizemin:eg.sizemin,sizemode:eg.sizemode,colorbar:eg.colorbar,line:V2({width:IDt.width},TRe("marker.line")),gradient:eg.gradient},TRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:kDt(),selected:Gm.selected,unselected:Gm.unselected,hoverinfo:V2({},CDt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:SDt()},"calc","nested")});var ERe=_e((dgr,SRe)=>{"use strict";var dX=Mr(),vX=lu(),RDt=$p(),DDt=R0(),zDt=D0(),FDt=Ig(),qDt=H2();SRe.exports=function(t,r,n,i){function a(d,v){return dX.coerce(t,r,qDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||dX.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),vX.hasMarkers(r)&&RDt(t,r,n,i,a,{gradient:!0}),vX.hasLines(r)&&(DDt(t,r,n,i,a),a("connectgaps")),vX.hasText(r)&&(a("texttemplate"),zDt(t,r,i,a)),a("fill"),r.fill!=="none"&&FDt(t,r,n,a),dX.coerceSelectionMarkerOpacity(r,a)}});var LRe=_e((vgr,CRe)=>{"use strict";var kRe=Ka();CRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=kRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=kRe.tickText(o,o.c2l(s[1]),!0).text,i}});var vz=_e((pgr,DRe)=>{"use strict";var pX=ao(),PRe=Jo().BADNUM,ODt=z0(),BDt=km(),NDt=F0(),UDt=Mr().isArrayOrTypedArray,IRe=Mr()._;function RRe(e){return e&&typeof e=="string"}DRe.exports=function(t,r){var n=UDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return RRe(h)||pX(h)}:o=RRe;for(var s=0;s{"use strict";Tv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Tv.axesNames=["lonaxis","lataxis"];Tv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Tv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Tv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}};Tv.clipPad=.001;Tv.precision=.1;Tv.landColor="#F0DC82";Tv.waterColor="#3399FF";Tv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Tv.sphereSVG={type:"Sphere"};Tv.fillLayers={ocean:1,land:1,lakes:1};Tv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Tv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Tv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Tv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var gX=_e((pz,zRe)=>{(function(e,t){typeof pz=="object"&&typeof zRe!="undefined"?t(pz):(e=e||self,t(e.topojson=e.topojson||{}))})(pz,function(e){"use strict";function t(k){return k}function r(k){if(k==null)return t;var A,L,_=k.scale[0],C=k.scale[1],S=k.translate[0],g=k.translate[1];return function(P,T){T||(A=L=0);var F=2,q=P.length,V=new Array(q);for(V[0]=(A+=P[0])*_+S,V[1]=(L+=P[1])*C+g;FS&&(S=F[0]),F[1]g&&(g=F[1])}function T(F){switch(F.type){case"GeometryCollection":F.geometries.forEach(T);break;case"Point":P(F.coordinates);break;case"MultiPoint":F.coordinates.forEach(P);break}}k.arcs.forEach(function(F){for(var q=-1,V=F.length,H;++qS&&(S=H[0]),H[1]g&&(g=H[1])});for(L in k.objects)T(k.objects[L]);return[_,C,S,g]}function i(k,A){for(var L,_=k.length,C=_-A;C<--_;)L=k[C],k[C++]=k[_],k[_]=L}function a(k,A){return typeof A=="string"&&(A=k.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(k,L)})}:o(k,A)}function o(k,A){var L=A.id,_=A.bbox,C=A.properties==null?{}:A.properties,S=s(k,A);return L==null&&_==null?{type:"Feature",properties:C,geometry:S}:_==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:_,properties:C,geometry:S}}function s(k,A){var L=r(k.transform),_=k.arcs;function C(q,V){V.length&&V.pop();for(var H=_[q<0?~q:q],X=0,G=H.length;X1)_=f(k,A,L);else for(C=0,_=new Array(S=k.arcs.length);C1)for(var V=1,H=P(F[0]),X,G;VH&&(G=F[0],F[0]=F[V],F[V]=G,H=X);return F}).filter(function(T){return T.length>0})}}function x(k,A){for(var L=0,_=k.length;L<_;){var C=L+_>>>1;k[C]=2))throw new Error("n must be \u22652");T=k.bbox||n(k);var L=T[0],_=T[1],C=T[2],S=T[3],g;A={scale:[C-L?(C-L)/(g-1):1,S-_?(S-_)/(g-1):1],translate:[L,_]}}else T=k.bbox;var P=p(A),T,F,q=k.objects,V={};function H(N){return P(N)}function X(N){var Z;switch(N.type){case"GeometryCollection":Z={type:"GeometryCollection",geometries:N.geometries.map(X)};break;case"Point":Z={type:"Point",coordinates:H(N.coordinates)};break;case"MultiPoint":Z={type:"MultiPoint",coordinates:N.coordinates.map(H)};break;default:return N}return N.id!=null&&(Z.id=N.id),N.bbox!=null&&(Z.bbox=N.bbox),N.properties!=null&&(Z.properties=N.properties),Z}function G(N){var Z=0,ie=1,ae=N.length,we,Ee=new Array(ae);for(Ee[0]=P(N[0],0);++Z{"use strict";var mX=FRe.exports={},VDt=YE().locationmodeToLayer,HDt=gX().feature;mX.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};mX.getTopojsonPath=function(e,t){return e+t+".json"};mX.getTopojsonFeatures=function(e,t){var r=VDt[e.locationmode],n=t.objects[r];return HDt(t,n).features}});var rx=_e(KE=>{"use strict";var GDt=Jo().BADNUM;KE.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};KE.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};KE.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{qRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var _z=_e(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var qp=63710088e-1,_X={centimeters:qp*100,centimetres:qp*100,degrees:360/(2*Math.PI),feet:qp*3.28084,inches:qp*39.37,kilometers:qp/1e3,kilometres:qp/1e3,meters:qp,metres:qp,miles:qp/1609.344,millimeters:qp*1e3,millimetres:qp*1e3,nauticalmiles:qp/1852,radians:1,yards:qp*1.0936},yX={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function jDt(e,t,r={}){switch(e){case"Point":return xX(t).geometry;case"LineString":return wX(t).geometry;case"Polygon":return bX(t).geometry;case"MultiPoint":return NRe(t).geometry;case"MultiLineString":return BRe(t).geometry;case"MultiPolygon":return URe(t).geometry;default:throw new Error(e+" is invalid")}}function xX(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!mz(e[0])||!mz(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function WDt(e,t,r={}){return yz(e.map(n=>xX(n,t)),r)}function bX(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;abX(n,t)),r)}function wX(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function XDt(e,t,r={}){return yz(e.map(n=>wX(n,t)),r)}function yz(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function BRe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function NRe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function URe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function YDt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function KDt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function VRe(e,t="kilometers"){let r=_X[t];if(!r)throw new Error(t+" units is invalid");return e*r}function TX(e,t="kilometers"){let r=_X[t];if(!r)throw new Error(t+" units is invalid");return e/r}function JDt(e,t){return HRe(TX(e,t))}function $Dt(e){let t=e%360;return t<0&&(t+=360),t}function QDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function HRe(e){return e%(2*Math.PI)*180/Math.PI}function ezt(e){return e%360*Math.PI/180}function tzt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return VRe(TX(e,t),r)}function rzt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=yX[t];if(!n)throw new Error("invalid original units");let i=yX[r];if(!i)throw new Error("invalid final units");return e/n*i}function mz(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function izt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function nzt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!mz(t))throw new Error("bbox must only contain numbers")})}function azt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ku.areaFactors=yX;ku.azimuthToBearing=QDt;ku.bearingToAzimuth=$Dt;ku.convertArea=rzt;ku.convertLength=tzt;ku.degreesToRadians=ezt;ku.earthRadius=qp;ku.factors=_X;ku.feature=ix;ku.featureCollection=yz;ku.geometry=jDt;ku.geometryCollection=YDt;ku.isNumber=mz;ku.isObject=izt;ku.lengthToDegrees=JDt;ku.lengthToRadians=TX;ku.lineString=wX;ku.lineStrings=XDt;ku.multiLineString=BRe;ku.multiPoint=NRe;ku.multiPolygon=URe;ku.point=xX;ku.points=WDt;ku.polygon=bX;ku.polygons=ZDt;ku.radiansToDegrees=HRe;ku.radiansToLength=VRe;ku.round=KDt;ku.validateBBox=nzt;ku.validateId=azt});var bz=_e(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var jv=_z();function JE(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",x=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||x>c){s=f,l=n,u=v,c=x,a=0;return}var b=jv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function hzt(e,t,r){var n=r,i=!1;return WRe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function ZRe(e,t){if(!e)throw new Error("geojson is required");xz(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(wz,"__esModule",{value:!0});var XRe=_z(),gzt=bz();function JRe(e){return gzt.geomReduce.call(void 0,e,(t,r)=>t+mzt(r),0)}function mzt(e){let t=0,r;switch(e.type){case"Polygon":return YRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(KRe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*MX,l=a[1]*MX,u=o[0]*MX;r+=(u-s)*Math.sin(l),n++}return r*yzt}var _zt=JRe;wz.area=JRe;wz.default=_zt});var eDe=_e(Tz=>{"use strict";Object.defineProperty(Tz,"__esModule",{value:!0});var xzt=_z(),bzt=bz();function QRe(e,t={}){let r=0,n=0,i=0;return bzt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),xzt.point.call(void 0,[r/i,n/i],t.properties)}var wzt=QRe;Tz.centroid=QRe;Tz.default=wzt});var rDe=_e(Az=>{"use strict";Object.defineProperty(Az,"__esModule",{value:!0});var Tzt=bz();function tDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Tzt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var Mzt=ya(),aDe=ORe(),{area:Szt}=$Re(),{centroid:Ezt}=eDe(),{bbox:kzt}=rDe(),iDe=BM(),Z5=G1(),Czt=py(),Lzt=kM(),Mz=TS(),nDe=Object.keys(aDe),Pzt={"ISO-3":iDe,"USA-states":iDe,"country names":Izt};function Izt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=Mz.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(Mz.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=Fzt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else Z5.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return Ezt(r).geometry.coordinates}function qzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){Mzt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var Bzt=ya(),Nzt=ro(),lDe=ha(),uDe=op(),Uzt=uDe.stylePoints,Vzt=uDe.styleText;cDe.exports=function(t,r){r&&Hzt(t,r)};function Hzt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),Uzt(n,r,e),Vzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=Bzt.select(this),o=i.trace,s=o.line||{};a.call(lDe.stroke,s.color).call(Nzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(lDe.fill,o.fillcolor)})}});var LX=_e((Egr,dDe)=>{"use strict";var fDe=ya(),Ez=Mr(),Gzt=gz().getTopojsonFeatures,EX=rx(),Sz=nx(),hDe=wg().findExtremes,CX=Jo().BADNUM,jzt=q0().calcMarkerSize,kX=lu(),Wzt=SX();function Zzt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=Ez.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===CX&&fDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=fDe.select(this),l=o[0].trace;if(kX.hasLines(l)||l.fill!=="none"){var u=EX.calcTraceToLineCoords(o),c=l.fill!=="none"?EX.makePolygon(u):EX.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}kX.hasMarkers(l)&&s.selectAll("path.point").data(Ez.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),kX.hasText(l)&&s.selectAll("g").data(Ez.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Wzt(e,o)})}function Xzt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(Ez.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?Sz.extractTraceFeature(e):Gzt(r,i.topojson);for(o=0;o{"use strict";var Yzt=Nc(),Kzt=Jo().BADNUM,Jzt=oT(),$zt=Mr().fillText,Qzt=H2();vDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(E){var k=E.lonlat;if(k[0]===Kzt||u(k))return 1/0;var A=c(k),L=c([r,n]),_=Math.abs(A[0]-L[0]),C=Math.abs(A[1]-L[1]),S=Math.max(3,E.mrc||0);return Math.max(Math.sqrt(_*_+C*C)-S,1-3/S)}if(Yzt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=v[0]-x,t.x1=v[0]+x,t.y0=v[1]-x,t.y1=v[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=Jzt(a,h),t.extraText=eFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function eFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?Qzt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&$zt(t,e,c),c.join("
")}});var mDe=_e((Cgr,gDe)=>{"use strict";gDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var xDe=_e((Lgr,_De)=>{"use strict";var yDe=lu(),tFt=Jo().BADNUM;_De.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!yDe.hasMarkers(s)&&!yDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof kz=="object"&&typeof bDe!="undefined"?kz:e.d3=e.d3||{})})(kz,function(e){"use strict";function t(pe,xe){return pexe?1:pe>=xe?0:NaN}function r(pe){return pe.length===1&&(pe=n(pe)),{left:function(xe,Ce,Me,Le){for(Me==null&&(Me=0),Le==null&&(Le=xe.length);Me>>1;pe(xe[je],Ce)<0?Me=je+1:Le=je}return Me},right:function(xe,Ce,Me,Le){for(Me==null&&(Me=0),Le==null&&(Le=xe.length);Me>>1;pe(xe[je],Ce)>0?Le=je:Me=je+1}return Me}}}function n(pe){return function(xe,Ce){return t(pe(xe),Ce)}}var i=r(t),a=i.right,o=i.left;function s(pe,xe){xe==null&&(xe=l);for(var Ce=0,Me=pe.length-1,Le=pe[0],je=new Array(Me<0?0:Me);Cepe?1:xe>=pe?0:NaN}function f(pe){return pe===null?NaN:+pe}function h(pe,xe){var Ce=pe.length,Me=0,Le=-1,je=0,Se,Xe,lt=0;if(xe==null)for(;++Le1)return lt/(Me-1)}function d(pe,xe){var Ce=h(pe,xe);return Ce&&Math.sqrt(Ce)}function v(pe,xe){var Ce=pe.length,Me=-1,Le,je,Se;if(xe==null){for(;++Me=Le)for(je=Se=Le;++MeLe&&(je=Le),Se=Le)for(je=Se=Le;++MeLe&&(je=Le),Se0)return[pe];if((Me=xe0)for(pe=Math.ceil(pe/Xe),xe=Math.floor(xe/Xe),Se=new Array(je=Math.ceil(xe-pe+1));++Le=0?(je>=L?10:je>=_?5:je>=C?2:1)*Math.pow(10,Le):-Math.pow(10,-Le)/(je>=L?10:je>=_?5:je>=C?2:1)}function P(pe,xe,Ce){var Me=Math.abs(xe-pe)/Math.max(0,Ce),Le=Math.pow(10,Math.floor(Math.log(Me)/Math.LN10)),je=Me/Le;return je>=L?Le*=10:je>=_?Le*=5:je>=C&&(Le*=2),xent;)ot.pop(),--Ft;var Lt=new Array(Ft+1),Rt;for(je=0;je<=Ft;++je)Rt=Lt[je]=[],Rt.x0=je>0?ot[je-1]:Yt,Rt.x1=je=1)return+Ce(pe[Me-1],Me-1,pe);var Me,Le=(Me-1)*xe,je=Math.floor(Le),Se=+Ce(pe[je],je,pe),Xe=+Ce(pe[je+1],je+1,pe);return Se+(Xe-Se)*(Le-je)}}function V(pe,xe,Ce){return pe=p.call(pe,f).sort(t),Math.ceil((Ce-xe)/(2*(q(pe,.75)-q(pe,.25))*Math.pow(pe.length,-1/3)))}function H(pe,xe,Ce){return Math.ceil((Ce-xe)/(3.5*d(pe)*Math.pow(pe.length,-1/3)))}function X(pe,xe){var Ce=pe.length,Me=-1,Le,je;if(xe==null){for(;++Me=Le)for(je=Le;++Meje&&(je=Le)}else for(;++Me=Le)for(je=Le;++Meje&&(je=Le);return je}function G(pe,xe){var Ce=pe.length,Me=Ce,Le=-1,je,Se=0;if(xe==null)for(;++Le=0;)for(Se=pe[xe],Ce=Se.length;--Ce>=0;)je[--Le]=Se[Ce];return je}function ie(pe,xe){var Ce=pe.length,Me=-1,Le,je;if(xe==null){for(;++Me=Le)for(je=Le;++MeLe&&(je=Le)}else for(;++Me=Le)for(je=Le;++MeLe&&(je=Le);return je}function ae(pe,xe){for(var Ce=xe.length,Me=new Array(Ce);Ce--;)Me[Ce]=pe[xe[Ce]];return Me}function we(pe,xe){if(Ce=pe.length){var Ce,Me=0,Le=0,je,Se=pe[Le];for(xe==null&&(xe=t);++Me{(function(e,t){typeof Cz=="object"&&typeof wDe!="undefined"?t(Cz,$E()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(Cz,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(pt){a(i,pt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(pt,Nt,br){var vr=pt.s=Nt+br,Vr=vr-Nt,di=vr-Vr;pt.t=Nt-di+(br-Vr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,x=Math.atan,b=Math.atan2,p=Math.cos,E=Math.ceil,k=Math.exp,A=Math.log,L=Math.pow,_=Math.sin,C=Math.sign||function(pt){return pt>0?1:pt<0?-1:0},S=Math.sqrt,g=Math.tan;function P(pt){return pt>1?0:pt<-1?l:Math.acos(pt)}function T(pt){return pt>1?u:pt<-1?-u:Math.asin(pt)}function F(pt){return(pt=_(pt/2))*pt}function q(){}function V(pt,Nt){pt&&X.hasOwnProperty(pt.type)&&X[pt.type](pt,Nt)}var H={Feature:function(pt,Nt){V(pt.geometry,Nt)},FeatureCollection:function(pt,Nt){for(var br=pt.features,vr=-1,Vr=br.length;++vr=0?1:-1,Vr=vr*br,di=p(Nt),wi=_(Nt),qi=K*wi,Ji=ye*di+qi*p(Vr),hn=qi*vr*_(Vr);ie.add(b(hn,Ji)),ke=pt,ye=di,K=wi}function Le(pt){return ae.reset(),Z(pt,ce),ae*2}function je(pt){return[b(pt[1],pt[0]),T(pt[2])]}function Se(pt){var Nt=pt[0],br=pt[1],vr=p(br);return[vr*p(Nt),vr*_(Nt),_(br)]}function Xe(pt,Nt){return pt[0]*Nt[0]+pt[1]*Nt[1]+pt[2]*Nt[2]}function lt(pt,Nt){return[pt[1]*Nt[2]-pt[2]*Nt[1],pt[2]*Nt[0]-pt[0]*Nt[2],pt[0]*Nt[1]-pt[1]*Nt[0]]}function At(pt,Nt){pt[0]+=Nt[0],pt[1]+=Nt[1],pt[2]+=Nt[2]}function Yt(pt,Nt){return[pt[0]*Nt,pt[1]*Nt,pt[2]*Nt]}function nt(pt){var Nt=S(pt[0]*pt[0]+pt[1]*pt[1]+pt[2]*pt[2]);pt[0]/=Nt,pt[1]/=Nt,pt[2]/=Nt}var ot,Ft,Lt,Rt,Xt,xr,er,Ge,yt=r(),_t,Ct,St={point:kt,lineStart:Gt,lineEnd:$t,polygonStart:function(){St.point=hr,St.lineStart=_r,St.lineEnd=Nr,yt.reset(),ce.polygonStart()},polygonEnd:function(){ce.polygonEnd(),St.point=kt,St.lineStart=Gt,St.lineEnd=$t,ie<0?(ot=-(Lt=180),Ft=-(Rt=90)):yt>o?Rt=90:yt<-o&&(Ft=-90),Ct[0]=ot,Ct[1]=Lt},sphere:function(){ot=-(Lt=180),Ft=-(Rt=90)}};function kt(pt,Nt){_t.push(Ct=[ot=pt,Lt=pt]),NtRt&&(Rt=Nt)}function ft(pt,Nt){var br=Se([pt*d,Nt*d]);if(Ge){var vr=lt(Ge,br),Vr=[vr[1],-vr[0],0],di=lt(Vr,vr);nt(di),di=je(di);var wi=pt-Xt,qi=wi>0?1:-1,Ji=di[0]*h*qi,hn,Mi=v(wi)>180;Mi^(qi*XtRt&&(Rt=hn)):(Ji=(Ji+360)%360-180,Mi^(qi*XtRt&&(Rt=Nt))),Mi?ptBr(ot,Lt)&&(Lt=pt):Br(pt,Lt)>Br(ot,Lt)&&(ot=pt):Lt>=ot?(ptLt&&(Lt=pt)):pt>Xt?Br(ot,pt)>Br(ot,Lt)&&(Lt=pt):Br(pt,Lt)>Br(ot,Lt)&&(ot=pt)}else _t.push(Ct=[ot=pt,Lt=pt]);NtRt&&(Rt=Nt),Ge=br,Xt=pt}function Gt(){St.point=ft}function $t(){Ct[0]=ot,Ct[1]=Lt,St.point=kt,Ge=null}function hr(pt,Nt){if(Ge){var br=pt-Xt;yt.add(v(br)>180?br+(br>0?360:-360):br)}else xr=pt,er=Nt;ce.point(pt,Nt),ft(pt,Nt)}function _r(){ce.lineStart()}function Nr(){hr(xr,er),ce.lineEnd(),v(yt)>o&&(ot=-(Lt=180)),Ct[0]=ot,Ct[1]=Lt,Ge=null}function Br(pt,Nt){return(Nt-=pt)<0?Nt+360:Nt}function Ur(pt,Nt){return pt[0]-Nt[0]}function ut(pt,Nt){return pt[0]<=pt[1]?pt[0]<=Nt&&Nt<=pt[1]:NtBr(vr[0],vr[1])&&(vr[1]=Vr[1]),Br(Vr[0],vr[1])>Br(vr[0],vr[1])&&(vr[0]=Vr[0])):di.push(vr=Vr);for(wi=-1/0,br=di.length-1,Nt=0,vr=di[br];Nt<=br;vr=Vr,++Nt)Vr=di[Nt],(qi=Br(vr[1],Vr[0]))>wi&&(wi=qi,ot=Vr[0],Lt=vr[1])}return _t=Ct=null,ot===1/0||Ft===1/0?[[NaN,NaN],[NaN,NaN]]:[[ot,Ft],[Lt,Rt]]}var it,Ze,Je,ht,Ie,le,be,Qe,xt,Ot,rr,Jr,ni,Gr,ri,Ti,an={sphere:q,point:Yi,lineStart:An,lineEnd:Xn,polygonStart:function(){an.lineStart=It,an.lineEnd=ct},polygonEnd:function(){an.lineStart=An,an.lineEnd=Xn}};function Yi(pt,Nt){pt*=d,Nt*=d;var br=p(Nt);Xi(br*p(pt),br*_(pt),_(Nt))}function Xi(pt,Nt,br){++it,Je+=(pt-Je)/it,ht+=(Nt-ht)/it,Ie+=(br-Ie)/it}function An(){an.point=Qi}function Qi(pt,Nt){pt*=d,Nt*=d;var br=p(Nt);Gr=br*p(pt),ri=br*_(pt),Ti=_(Nt),an.point=Un,Xi(Gr,ri,Ti)}function Un(pt,Nt){pt*=d,Nt*=d;var br=p(Nt),vr=br*p(pt),Vr=br*_(pt),di=_(Nt),wi=b(S((wi=ri*di-Ti*Vr)*wi+(wi=Ti*vr-Gr*di)*wi+(wi=Gr*Vr-ri*vr)*wi),Gr*vr+ri*Vr+Ti*di);Ze+=wi,le+=wi*(Gr+(Gr=vr)),be+=wi*(ri+(ri=Vr)),Qe+=wi*(Ti+(Ti=di)),Xi(Gr,ri,Ti)}function Xn(){an.point=Yi}function It(){an.point=Vt}function ct(){Wt(Jr,ni),an.point=Yi}function Vt(pt,Nt){Jr=pt,ni=Nt,pt*=d,Nt*=d,an.point=Wt;var br=p(Nt);Gr=br*p(pt),ri=br*_(pt),Ti=_(Nt),Xi(Gr,ri,Ti)}function Wt(pt,Nt){pt*=d,Nt*=d;var br=p(Nt),vr=br*p(pt),Vr=br*_(pt),di=_(Nt),wi=ri*di-Ti*Vr,qi=Ti*vr-Gr*di,Ji=Gr*Vr-ri*vr,hn=S(wi*wi+qi*qi+Ji*Ji),Mi=T(hn),Oi=hn&&-Mi/hn;xt+=Oi*wi,Ot+=Oi*qi,rr+=Oi*Ji,Ze+=Mi,le+=Mi*(Gr+(Gr=vr)),be+=Mi*(ri+(ri=Vr)),Qe+=Mi*(Ti+(Ti=di)),Xi(Gr,ri,Ti)}function gr(pt){it=Ze=Je=ht=Ie=le=be=Qe=xt=Ot=rr=0,Z(pt,an);var Nt=xt,br=Ot,vr=rr,Vr=Nt*Nt+br*br+vr*vr;return Vrl?pt+Math.round(-pt/f)*f:pt,Nt]}Hr.invert=Hr;function mi(pt,Nt,br){return(pt%=f)?Nt||br?Zr(ki(pt),Ri(Nt,br)):ki(pt):Nt||br?Ri(Nt,br):Hr}function Ei(pt){return function(Nt,br){return Nt+=pt,[Nt>l?Nt-f:Nt<-l?Nt+f:Nt,br]}}function ki(pt){var Nt=Ei(pt);return Nt.invert=Ei(-pt),Nt}function Ri(pt,Nt){var br=p(pt),vr=_(pt),Vr=p(Nt),di=_(Nt);function wi(qi,Ji){var hn=p(Ji),Mi=p(qi)*hn,Oi=_(qi)*hn,Di=_(Ji),yi=Di*br+Mi*vr;return[b(Oi*Vr-yi*di,Mi*br-Di*vr),T(yi*Vr+Oi*di)]}return wi.invert=function(qi,Ji){var hn=p(Ji),Mi=p(qi)*hn,Oi=_(qi)*hn,Di=_(Ji),yi=Di*Vr-Oi*di;return[b(Oi*Vr+Di*di,Mi*br+yi*vr),T(yi*br-Mi*vr)]},wi}function ji(pt){pt=mi(pt[0]*d,pt[1]*d,pt.length>2?pt[2]*d:0);function Nt(br){return br=pt(br[0]*d,br[1]*d),br[0]*=h,br[1]*=h,br}return Nt.invert=function(br){return br=pt.invert(br[0]*d,br[1]*d),br[0]*=h,br[1]*=h,br},Nt}function $i(pt,Nt,br,vr,Vr,di){if(br){var wi=p(Nt),qi=_(Nt),Ji=vr*br;Vr==null?(Vr=Nt+vr*f,di=Nt-Ji/2):(Vr=Sa(wi,Vr),di=Sa(wi,di),(vr>0?Vrdi)&&(Vr+=vr*f));for(var hn,Mi=Vr;vr>0?Mi>di:Mi1&&pt.push(pt.pop().concat(pt.shift()))},result:function(){var br=pt;return pt=[],Nt=null,br}}}function Da(pt,Nt){return v(pt[0]-Nt[0])=0;--qi)Vr.point((Oi=Mi[qi])[0],Oi[1]);else vr(Di.x,Di.p.x,-1,Vr);Di=Di.p}Di=Di.o,Mi=Di.z,yi=!yi}while(!Di.v);Vr.lineEnd()}}}function aa(pt){if(Nt=pt.length){for(var Nt,br=0,vr=pt[0],Vr;++br=0?1:-1,Ko=bs*jo,ps=Ko>l,Fo=Aa*Ba;if(go.add(b(Fo*bs*_(Ko),wa*ho+Fo*p(Ko))),wi+=ps?jo+bs*f:jo,ps^yi>=br^kn>=br){var yl=lt(Se(Di),Se(za));nt(yl);var Gs=lt(di,yl);nt(Gs);var Is=(ps^jo>=0?-1:1)*T(Gs[2]);(vr>Is||vr===Is&&(yl[0]||yl[1]))&&(qi+=ps^jo>=0?1:-1)}}return(wi<-o||wi0){for(Ji||(Vr.polygonStart(),Ji=!0),Vr.lineStart(),ho=0;ho1&&sn&2&&Ba.push(Ba.pop().concat(Ba.shift())),Mi.push(Ba.filter(wt))}}return Di}}function wt(pt){return pt.length>1}function Lr(pt,Nt){return((pt=pt.x)[0]<0?pt[1]-u-o:u-pt[1])-((Nt=Nt.x)[0]<0?Nt[1]-u-o:u-Nt[1])}var Pr=As(function(){return!0},Xr,ai,[-l,-u]);function Xr(pt){var Nt=NaN,br=NaN,vr=NaN,Vr;return{lineStart:function(){pt.lineStart(),Vr=1},point:function(di,wi){var qi=di>0?l:-l,Ji=v(di-Nt);v(Ji-l)0?u:-u),pt.point(vr,br),pt.lineEnd(),pt.lineStart(),pt.point(qi,br),pt.point(di,br),Vr=0):vr!==qi&&Ji>=l&&(v(Nt-vr)o?x((_(Nt)*(di=p(vr))*_(br)-_(vr)*(Vr=p(Nt))*_(pt))/(Vr*di*wi)):(Nt+vr)/2}function ai(pt,Nt,br,vr){var Vr;if(pt==null)Vr=br*u,vr.point(-l,Vr),vr.point(0,Vr),vr.point(l,Vr),vr.point(l,0),vr.point(l,-Vr),vr.point(0,-Vr),vr.point(-l,-Vr),vr.point(-l,0),vr.point(-l,Vr);else if(v(pt[0]-Nt[0])>o){var di=pt[0]0,Vr=v(Nt)>o;function di(Mi,Oi,Di,yi){$i(yi,pt,br,Di,Mi,Oi)}function wi(Mi,Oi){return p(Mi)*p(Oi)>Nt}function qi(Mi){var Oi,Di,yi,Ln,Aa;return{lineStart:function(){Ln=yi=!1,Aa=1},point:function(wa,Ma){var za=[wa,Ma],kn,sn=wi(wa,Ma),Ba=vr?sn?0:hn(wa,Ma):sn?hn(wa+(wa<0?l:-l),Ma):0;if(!Oi&&(Ln=yi=sn)&&Mi.lineStart(),sn!==yi&&(kn=Ji(Oi,za),(!kn||Da(Oi,kn)||Da(za,kn))&&(za[2]=1)),sn!==yi)Aa=0,sn?(Mi.lineStart(),kn=Ji(za,Oi),Mi.point(kn[0],kn[1])):(kn=Ji(Oi,za),Mi.point(kn[0],kn[1],2),Mi.lineEnd()),Oi=kn;else if(Vr&&Oi&&vr^sn){var ho;!(Ba&Di)&&(ho=Ji(za,Oi,!0))&&(Aa=0,vr?(Mi.lineStart(),Mi.point(ho[0][0],ho[0][1]),Mi.point(ho[1][0],ho[1][1]),Mi.lineEnd()):(Mi.point(ho[1][0],ho[1][1]),Mi.lineEnd(),Mi.lineStart(),Mi.point(ho[0][0],ho[0][1],3)))}sn&&(!Oi||!Da(Oi,za))&&Mi.point(za[0],za[1]),Oi=za,yi=sn,Di=Ba},lineEnd:function(){yi&&Mi.lineEnd(),Oi=null},clean:function(){return Aa|(Ln&&yi)<<1}}}function Ji(Mi,Oi,Di){var yi=Se(Mi),Ln=Se(Oi),Aa=[1,0,0],wa=lt(yi,Ln),Ma=Xe(wa,wa),za=wa[0],kn=Ma-za*za;if(!kn)return!Di&&Mi;var sn=Nt*Ma/kn,Ba=-Nt*za/kn,ho=lt(Aa,wa),jo=Yt(Aa,sn),bs=Yt(wa,Ba);At(jo,bs);var Ko=ho,ps=Xe(jo,Ko),Fo=Xe(Ko,Ko),yl=ps*ps-Fo*(Xe(jo,jo)-1);if(!(yl<0)){var Gs=S(yl),Is=Yt(Ko,(-ps-Gs)/Fo);if(At(Is,jo),Is=je(Is),!Di)return Is;var ra=Mi[0],Za=Oi[0],fs=Mi[1],Zo=Oi[1],nu;Za0^Is[1]<(v(Is[0]-ra)l^(ra<=Is[0]&&Is[0]<=Za)){var bu=Yt(Ko,(-ps+Gs)/Fo);return At(bu,jo),[Is,je(bu)]}}}function hn(Mi,Oi){var Di=vr?pt:l-pt,yi=0;return Mi<-Di?yi|=1:Mi>Di&&(yi|=2),Oi<-Di?yi|=4:Oi>Di&&(yi|=8),yi}return As(wi,qi,di,vr?[0,-pt]:[-l,pt-l])}function ii(pt,Nt,br,vr,Vr,di){var wi=pt[0],qi=pt[1],Ji=Nt[0],hn=Nt[1],Mi=0,Oi=1,Di=Ji-wi,yi=hn-qi,Ln;if(Ln=br-wi,!(!Di&&Ln>0)){if(Ln/=Di,Di<0){if(Ln0){if(Ln>Oi)return;Ln>Mi&&(Mi=Ln)}if(Ln=Vr-wi,!(!Di&&Ln<0)){if(Ln/=Di,Di<0){if(Ln>Oi)return;Ln>Mi&&(Mi=Ln)}else if(Di>0){if(Ln0)){if(Ln/=yi,yi<0){if(Ln0){if(Ln>Oi)return;Ln>Mi&&(Mi=Ln)}if(Ln=di-qi,!(!yi&&Ln<0)){if(Ln/=yi,yi<0){if(Ln>Oi)return;Ln>Mi&&(Mi=Ln)}else if(yi>0){if(Ln0&&(pt[0]=wi+Mi*Di,pt[1]=qi+Mi*yi),Oi<1&&(Nt[0]=wi+Oi*Di,Nt[1]=qi+Oi*yi),!0}}}}}var Ui=1e9,Vn=-Ui;function Tn(pt,Nt,br,vr){function Vr(hn,Mi){return pt<=hn&&hn<=br&&Nt<=Mi&&Mi<=vr}function di(hn,Mi,Oi,Di){var yi=0,Ln=0;if(hn==null||(yi=wi(hn,Oi))!==(Ln=wi(Mi,Oi))||Ji(hn,Mi)<0^Oi>0)do Di.point(yi===0||yi===3?pt:br,yi>1?vr:Nt);while((yi=(yi+Oi+4)%4)!==Ln);else Di.point(Mi[0],Mi[1])}function wi(hn,Mi){return v(hn[0]-pt)0?0:3:v(hn[0]-br)0?2:1:v(hn[1]-Nt)0?1:0:Mi>0?3:2}function qi(hn,Mi){return Ji(hn.x,Mi.x)}function Ji(hn,Mi){var Oi=wi(hn,1),Di=wi(Mi,1);return Oi!==Di?Oi-Di:Oi===0?Mi[1]-hn[1]:Oi===1?hn[0]-Mi[0]:Oi===2?hn[1]-Mi[1]:Mi[0]-hn[0]}return function(hn){var Mi=hn,Oi=sa(),Di,yi,Ln,Aa,wa,Ma,za,kn,sn,Ba,ho,jo={point:bs,lineStart:yl,lineEnd:Gs,polygonStart:ps,polygonEnd:Fo};function bs(ra,Za){Vr(ra,Za)&&Mi.point(ra,Za)}function Ko(){for(var ra=0,Za=0,fs=yi.length;Zavr&&(Kc-mf)*(vr-bu)>(Du-bu)*(pt-mf)&&++ra:Du<=vr&&(Kc-mf)*(vr-bu)<(Du-bu)*(pt-mf)&&--ra;return ra}function ps(){Mi=Oi,Di=[],yi=[],ho=!0}function Fo(){var ra=Ko(),Za=ho&&ra,fs=(Di=t.merge(Di)).length;(Za||fs)&&(hn.polygonStart(),Za&&(hn.lineStart(),di(null,null,1,hn),hn.lineEnd()),fs&&Vo(Di,qi,ra,di,hn),hn.polygonEnd()),Mi=hn,Di=yi=Ln=null}function yl(){jo.point=Is,yi&&yi.push(Ln=[]),Ba=!0,sn=!1,za=kn=NaN}function Gs(){Di&&(Is(Aa,wa),Ma&&sn&&Oi.rejoin(),Di.push(Oi.result())),jo.point=bs,sn&&Mi.lineEnd()}function Is(ra,Za){var fs=Vr(ra,Za);if(yi&&Ln.push([ra,Za]),Ba)Aa=ra,wa=Za,Ma=fs,Ba=!1,fs&&(Mi.lineStart(),Mi.point(ra,Za));else if(fs&&sn)Mi.point(ra,Za);else{var Zo=[za=Math.max(Vn,Math.min(Ui,za)),kn=Math.max(Vn,Math.min(Ui,kn))],nu=[ra=Math.max(Vn,Math.min(Ui,ra)),Za=Math.max(Vn,Math.min(Ui,Za))];ii(Zo,nu,pt,Nt,br,vr)?(sn||(Mi.lineStart(),Mi.point(Zo[0],Zo[1])),Mi.point(nu[0],nu[1]),fs||Mi.lineEnd(),ho=!1):fs&&(Mi.lineStart(),Mi.point(ra,Za),ho=!1)}za=ra,kn=Za,sn=fs}return jo}}function xa(){var pt=0,Nt=0,br=960,vr=500,Vr,di,wi;return wi={stream:function(qi){return Vr&&di===qi?Vr:Vr=Tn(pt,Nt,br,vr)(di=qi)},extent:function(qi){return arguments.length?(pt=+qi[0][0],Nt=+qi[0][1],br=+qi[1][0],vr=+qi[1][1],Vr=di=null,wi):[[pt,Nt],[br,vr]]}}}var fo=r(),zo,lo,To,mo={sphere:q,point:q,lineStart:Ds,lineEnd:q,polygonStart:q,polygonEnd:q};function Ds(){mo.point=Zs,mo.lineEnd=Es}function Es(){mo.point=mo.lineEnd=q}function Zs(pt,Nt){pt*=d,Nt*=d,zo=pt,lo=_(Nt),To=p(Nt),mo.point=Xs}function Xs(pt,Nt){pt*=d,Nt*=d;var br=_(Nt),vr=p(Nt),Vr=v(pt-zo),di=p(Vr),wi=_(Vr),qi=vr*wi,Ji=To*br-lo*vr*di,hn=lo*br+To*vr*di;fo.add(b(S(qi*qi+Ji*Ji),hn)),zo=pt,lo=br,To=vr}function wl(pt){return fo.reset(),Z(pt,mo),+fo}var is=[null,null],cl={type:"LineString",coordinates:is};function ks(pt,Nt){return is[0]=pt,is[1]=Nt,wl(cl)}var ml={Feature:function(pt,Nt){return Hs(pt.geometry,Nt)},FeatureCollection:function(pt,Nt){for(var br=pt.features,vr=-1,Vr=br.length;++vr0&&(Vr=ks(pt[di],pt[di-1]),Vr>0&&br<=Vr&&vr<=Vr&&(br+vr-Vr)*(1-Math.pow((br-vr)/Vr,2))o}).map(Di)).concat(t.range(E(di/hn)*hn,Vr,hn).filter(function(kn){return v(kn%Oi)>o}).map(yi))}return Ma.lines=function(){return za().map(function(kn){return{type:"LineString",coordinates:kn}})},Ma.outline=function(){return{type:"Polygon",coordinates:[Ln(vr).concat(Aa(wi).slice(1),Ln(br).reverse().slice(1),Aa(qi).reverse().slice(1))]}},Ma.extent=function(kn){return arguments.length?Ma.extentMajor(kn).extentMinor(kn):Ma.extentMinor()},Ma.extentMajor=function(kn){return arguments.length?(vr=+kn[0][0],br=+kn[1][0],qi=+kn[0][1],wi=+kn[1][1],vr>br&&(kn=vr,vr=br,br=kn),qi>wi&&(kn=qi,qi=wi,wi=kn),Ma.precision(wa)):[[vr,qi],[br,wi]]},Ma.extentMinor=function(kn){return arguments.length?(Nt=+kn[0][0],pt=+kn[1][0],di=+kn[0][1],Vr=+kn[1][1],Nt>pt&&(kn=Nt,Nt=pt,pt=kn),di>Vr&&(kn=di,di=Vr,Vr=kn),Ma.precision(wa)):[[Nt,di],[pt,Vr]]},Ma.step=function(kn){return arguments.length?Ma.stepMajor(kn).stepMinor(kn):Ma.stepMinor()},Ma.stepMajor=function(kn){return arguments.length?(Mi=+kn[0],Oi=+kn[1],Ma):[Mi,Oi]},Ma.stepMinor=function(kn){return arguments.length?(Ji=+kn[0],hn=+kn[1],Ma):[Ji,hn]},Ma.precision=function(kn){return arguments.length?(wa=+kn,Di=on(di,Vr,90),yi=ua(Nt,pt,wa),Ln=on(qi,wi,90),Aa=ua(vr,br,wa),Ma):wa},Ma.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Rl(){return Qu()()}function uo(pt,Nt){var br=pt[0]*d,vr=pt[1]*d,Vr=Nt[0]*d,di=Nt[1]*d,wi=p(vr),qi=_(vr),Ji=p(di),hn=_(di),Mi=wi*p(br),Oi=wi*_(br),Di=Ji*p(Vr),yi=Ji*_(Vr),Ln=2*T(S(F(di-vr)+wi*Ji*F(Vr-br))),Aa=_(Ln),wa=Ln?function(Ma){var za=_(Ma*=Ln)/Aa,kn=_(Ln-Ma)/Aa,sn=kn*Mi+za*Di,Ba=kn*Oi+za*yi,ho=kn*qi+za*hn;return[b(Ba,sn)*h,b(ho,S(sn*sn+Ba*Ba))*h]}:function(){return[br*h,vr*h]};return wa.distance=Ln,wa}function Zl(pt){return pt}var Ks=r(),Xl=r(),Ec,jn,Mo,So,Tl={point:q,lineStart:q,lineEnd:q,polygonStart:function(){Tl.lineStart=uf,Tl.lineEnd=rh},polygonEnd:function(){Tl.lineStart=Tl.lineEnd=Tl.point=q,Ks.add(v(Xl)),Xl.reset()},result:function(){var pt=Ks/2;return Ks.reset(),pt}};function uf(){Tl.point=wo}function wo(pt,Nt){Tl.point=cf,Ec=Mo=pt,jn=So=Nt}function cf(pt,Nt){Xl.add(So*pt-Mo*Nt),Mo=pt,So=Nt}function rh(){cf(Ec,jn)}var Al=1/0,Hc=Al,eu=-Al,Cs=eu,mu={point:kc,lineStart:q,lineEnd:q,polygonStart:q,polygonEnd:q,result:function(){var pt=[[Al,Hc],[eu,Cs]];return eu=Cs=-(Hc=Al=1/0),pt}};function kc(pt,Nt){pteu&&(eu=pt),NtCs&&(Cs=Nt)}var Of=0,Gc=0,vd=0,Bf=0,ns=0,ff=0,ih=0,Hl=0,Js=0,hc,Cc,xs,$s,us={point:Ms,lineStart:dc,lineEnd:Ls,polygonStart:function(){us.lineStart=ov,us.lineEnd=_o},polygonEnd:function(){us.point=Ms,us.lineStart=dc,us.lineEnd=Ls},result:function(){var pt=Js?[ih/Js,Hl/Js]:ff?[Bf/ff,ns/ff]:vd?[Of/vd,Gc/vd]:[NaN,NaN];return Of=Gc=vd=Bf=ns=ff=ih=Hl=Js=0,pt}};function Ms(pt,Nt){Of+=pt,Gc+=Nt,++vd}function dc(){us.point=Ml}function Ml(pt,Nt){us.point=ec,Ms(xs=pt,$s=Nt)}function ec(pt,Nt){var br=pt-xs,vr=Nt-$s,Vr=S(br*br+vr*vr);Bf+=Vr*(xs+pt)/2,ns+=Vr*($s+Nt)/2,ff+=Vr,Ms(xs=pt,$s=Nt)}function Ls(){us.point=Ms}function ov(){us.point=Od}function _o(){Yo(hc,Cc)}function Od(pt,Nt){us.point=Yo,Ms(hc=xs=pt,Cc=$s=Nt)}function Yo(pt,Nt){var br=pt-xs,vr=Nt-$s,Vr=S(br*br+vr*vr);Bf+=Vr*(xs+pt)/2,ns+=Vr*($s+Nt)/2,ff+=Vr,Vr=$s*pt-xs*Nt,ih+=Vr*(xs+pt),Hl+=Vr*($s+Nt),Js+=Vr*3,Ms(xs=pt,$s=Nt)}function Xa(pt){this._context=pt}Xa.prototype={_radius:4.5,pointRadius:function(pt){return this._radius=pt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(pt,Nt){switch(this._point){case 0:{this._context.moveTo(pt,Nt),this._point=1;break}case 1:{this._context.lineTo(pt,Nt);break}default:{this._context.moveTo(pt+this._radius,Nt),this._context.arc(pt,Nt,this._radius,0,f);break}}},result:q};var Ef=r(),tc,uu,Sh,jc,kf,Sl={point:q,lineStart:function(){Sl.point=Yh},lineEnd:function(){tc&&Eh(uu,Sh),Sl.point=q},polygonStart:function(){tc=!0},polygonEnd:function(){tc=null},result:function(){var pt=+Ef;return Ef.reset(),pt}};function Yh(pt,Nt){Sl.point=Eh,uu=jc=pt,Sh=kf=Nt}function Eh(pt,Nt){jc-=pt,kf-=Nt,Ef.add(S(jc*jc+kf*kf)),jc=pt,kf=Nt}function nh(){this._string=[]}nh.prototype={_radius:4.5,_circle:hf(4.5),pointRadius:function(pt){return(pt=+pt)!==this._radius&&(this._radius=pt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(pt,Nt){switch(this._point){case 0:{this._string.push("M",pt,",",Nt),this._point=1;break}case 1:{this._string.push("L",pt,",",Nt);break}default:{this._circle==null&&(this._circle=hf(this._radius)),this._string.push("M",pt,",",Nt,this._circle);break}}},result:function(){if(this._string.length){var pt=this._string.join("");return this._string=[],pt}else return null}};function hf(pt){return"m0,"+pt+"a"+pt+","+pt+" 0 1,1 0,"+-2*pt+"a"+pt+","+pt+" 0 1,1 0,"+2*pt+"z"}function kh(pt,Nt){var br=4.5,vr,Vr;function di(wi){return wi&&(typeof br=="function"&&Vr.pointRadius(+br.apply(this,arguments)),Z(wi,vr(Vr))),Vr.result()}return di.area=function(wi){return Z(wi,vr(Tl)),Tl.result()},di.measure=function(wi){return Z(wi,vr(Sl)),Sl.result()},di.bounds=function(wi){return Z(wi,vr(mu)),mu.result()},di.centroid=function(wi){return Z(wi,vr(us)),us.result()},di.projection=function(wi){return arguments.length?(vr=wi==null?(pt=null,Zl):(pt=wi).stream,di):pt},di.context=function(wi){return arguments.length?(Vr=wi==null?(Nt=null,new nh):new Xa(Nt=wi),typeof br!="function"&&Vr.pointRadius(br),di):Nt},di.pointRadius=function(wi){return arguments.length?(br=typeof wi=="function"?wi:(Vr.pointRadius(+wi),+wi),di):br},di.projection(pt).context(Nt)}function Kh(pt){return{stream:rc(pt)}}function rc(pt){return function(Nt){var br=new ah;for(var vr in pt)br[vr]=pt[vr];return br.stream=Nt,br}}function ah(){}ah.prototype={constructor:ah,point:function(pt,Nt){this.stream.point(pt,Nt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wc(pt,Nt,br){var vr=pt.clipExtent&&pt.clipExtent();return pt.scale(150).translate([0,0]),vr!=null&&pt.clipExtent(null),Z(br,pt.stream(mu)),Nt(mu.result()),vr!=null&&pt.clipExtent(vr),pt}function df(pt,Nt,br){return Wc(pt,function(vr){var Vr=Nt[1][0]-Nt[0][0],di=Nt[1][1]-Nt[0][1],wi=Math.min(Vr/(vr[1][0]-vr[0][0]),di/(vr[1][1]-vr[0][1])),qi=+Nt[0][0]+(Vr-wi*(vr[1][0]+vr[0][0]))/2,Ji=+Nt[0][1]+(di-wi*(vr[1][1]+vr[0][1]))/2;pt.scale(150*wi).translate([qi,Ji])},br)}function Cu(pt,Nt,br){return df(pt,[[0,0],Nt],br)}function Nf(pt,Nt,br){return Wc(pt,function(vr){var Vr=+Nt,di=Vr/(vr[1][0]-vr[0][0]),wi=(Vr-di*(vr[1][0]+vr[0][0]))/2,qi=-di*vr[0][1];pt.scale(150*di).translate([wi,qi])},br)}function Zc(pt,Nt,br){return Wc(pt,function(vr){var Vr=+Nt,di=Vr/(vr[1][1]-vr[0][1]),wi=-di*vr[0][0],qi=(Vr-di*(vr[1][1]+vr[0][1]))/2;pt.scale(150*di).translate([wi,qi])},br)}var cs=16,Ch=p(30*d);function Bd(pt,Nt){return+Nt?Cf(pt,Nt):Jh(pt)}function Jh(pt){return rc({point:function(Nt,br){Nt=pt(Nt,br),this.stream.point(Nt[0],Nt[1])}})}function Cf(pt,Nt){function br(vr,Vr,di,wi,qi,Ji,hn,Mi,Oi,Di,yi,Ln,Aa,wa){var Ma=hn-vr,za=Mi-Vr,kn=Ma*Ma+za*za;if(kn>4*Nt&&Aa--){var sn=wi+Di,Ba=qi+yi,ho=Ji+Ln,jo=S(sn*sn+Ba*Ba+ho*ho),bs=T(ho/=jo),Ko=v(v(ho)-1)Nt||v((Ma*Gs+za*Is)/kn-.5)>.3||wi*Di+qi*yi+Ji*Ln2?ra[2]%360*d:0,Gs()):[qi*h,Ji*h,hn*h]},Fo.angle=function(ra){return arguments.length?(Oi=ra%360*d,Gs()):Oi*h},Fo.reflectX=function(ra){return arguments.length?(Di=ra?-1:1,Gs()):Di<0},Fo.reflectY=function(ra){return arguments.length?(yi=ra?-1:1,Gs()):yi<0},Fo.precision=function(ra){return arguments.length?(ho=Bd(jo,Ba=ra*ra),Is()):S(Ba)},Fo.fitExtent=function(ra,Za){return df(Fo,ra,Za)},Fo.fitSize=function(ra,Za){return Cu(Fo,ra,Za)},Fo.fitWidth=function(ra,Za){return Nf(Fo,ra,Za)},Fo.fitHeight=function(ra,Za){return Zc(Fo,ra,Za)};function Gs(){var ra=tu(br,0,0,Di,yi,Oi).apply(null,Nt(di,wi)),Za=(Oi?tu:$h)(br,vr-ra[0],Vr-ra[1],Di,yi,Oi);return Mi=mi(qi,Ji,hn),jo=Zr(Nt,Za),bs=Zr(Mi,jo),ho=Bd(jo,Ba),Is()}function Is(){return Ko=ps=null,Fo}return function(){return Nt=pt.apply(this,arguments),Fo.invert=Nt.invert&&yl,Gs()}}function fl(pt){var Nt=0,br=l/3,vr=Lc(pt),Vr=vr(Nt,br);return Vr.parallels=function(di){return arguments.length?vr(Nt=di[0]*d,br=di[1]*d):[Nt*h,br*h]},Vr}function Xc(pt){var Nt=p(pt);function br(vr,Vr){return[vr*Nt,_(Vr)/Nt]}return br.invert=function(vr,Vr){return[vr/Nt,T(Vr*Nt)]},br}function ic(pt,Nt){var br=_(pt),vr=(br+_(Nt))/2;if(v(vr)=.12&&wa<.234&&Aa>=-.425&&Aa<-.214?Vr:wa>=.166&&wa<.234&&Aa>=-.214&&Aa<-.115?wi:br).invert(Di)},Mi.stream=function(Di){return pt&&Nt===Di?pt:pt=Qh([br.stream(Nt=Di),Vr.stream(Di),wi.stream(Di)])},Mi.precision=function(Di){return arguments.length?(br.precision(Di),Vr.precision(Di),wi.precision(Di),Oi()):br.precision()},Mi.scale=function(Di){return arguments.length?(br.scale(Di),Vr.scale(Di*.35),wi.scale(Di),Mi.translate(br.translate())):br.scale()},Mi.translate=function(Di){if(!arguments.length)return br.translate();var yi=br.scale(),Ln=+Di[0],Aa=+Di[1];return vr=br.translate(Di).clipExtent([[Ln-.455*yi,Aa-.238*yi],[Ln+.455*yi,Aa+.238*yi]]).stream(hn),di=Vr.translate([Ln-.307*yi,Aa+.201*yi]).clipExtent([[Ln-.425*yi+o,Aa+.12*yi+o],[Ln-.214*yi-o,Aa+.234*yi-o]]).stream(hn),qi=wi.translate([Ln-.205*yi,Aa+.212*yi]).clipExtent([[Ln-.214*yi+o,Aa+.166*yi+o],[Ln-.115*yi-o,Aa+.234*yi-o]]).stream(hn),Oi()},Mi.fitExtent=function(Di,yi){return df(Mi,Di,yi)},Mi.fitSize=function(Di,yi){return Cu(Mi,Di,yi)},Mi.fitWidth=function(Di,yi){return Nf(Mi,Di,yi)},Mi.fitHeight=function(Di,yi){return Zc(Mi,Di,yi)};function Oi(){return pt=Nt=null,Mi}return Mi.scale(1070)}function Gu(pt){return function(Nt,br){var vr=p(Nt),Vr=p(br),di=pt(vr*Vr);return[di*Vr*_(Nt),di*_(br)]}}function Pc(pt){return function(Nt,br){var vr=S(Nt*Nt+br*br),Vr=pt(vr),di=_(Vr),wi=p(Vr);return[b(Nt*di,vr*wi),T(vr&&br*di/vr)]}}var vc=Gu(function(pt){return S(2/(1+pt))});vc.invert=Pc(function(pt){return 2*T(pt/2)});function sv(){return Pu(vc).scale(124.75).clipAngle(180-.001)}var Lf=Gu(function(pt){return(pt=P(pt))&&pt/_(pt)});Lf.invert=Pc(function(pt){return pt});function Uf(){return Pu(Lf).scale(79.4188).clipAngle(180-.001)}function Iu(pt,Nt){return[pt,A(g((u+Nt)/2))]}Iu.invert=function(pt,Nt){return[pt,2*x(k(Nt))-u]};function oh(){return ru(Iu).scale(961/f)}function ru(pt){var Nt=Pu(pt),br=Nt.center,vr=Nt.scale,Vr=Nt.translate,di=Nt.clipExtent,wi=null,qi,Ji,hn;Nt.scale=function(Oi){return arguments.length?(vr(Oi),Mi()):vr()},Nt.translate=function(Oi){return arguments.length?(Vr(Oi),Mi()):Vr()},Nt.center=function(Oi){return arguments.length?(br(Oi),Mi()):br()},Nt.clipExtent=function(Oi){return arguments.length?(Oi==null?wi=qi=Ji=hn=null:(wi=+Oi[0][0],qi=+Oi[0][1],Ji=+Oi[1][0],hn=+Oi[1][1]),Mi()):wi==null?null:[[wi,qi],[Ji,hn]]};function Mi(){var Oi=l*vr(),Di=Nt(ji(Nt.rotate()).invert([0,0]));return di(wi==null?[[Di[0]-Oi,Di[1]-Oi],[Di[0]+Oi,Di[1]+Oi]]:pt===Iu?[[Math.max(Di[0]-Oi,wi),qi],[Math.min(Di[0]+Oi,Ji),hn]]:[[wi,Math.max(Di[1]-Oi,qi)],[Ji,Math.min(Di[1]+Oi,hn)]])}return Mi()}function vf(pt){return g((u+pt)/2)}function md(pt,Nt){var br=p(pt),vr=pt===Nt?_(pt):A(br/p(Nt))/A(vf(Nt)/vf(pt)),Vr=br*L(vf(pt),vr)/vr;if(!vr)return Iu;function di(wi,qi){Vr>0?qi<-u+o&&(qi=-u+o):qi>u-o&&(qi=u-o);var Ji=Vr/L(vf(qi),vr);return[Ji*_(vr*wi),Vr-Ji*p(vr*wi)]}return di.invert=function(wi,qi){var Ji=Vr-qi,hn=C(vr)*S(wi*wi+Ji*Ji),Mi=b(wi,v(Ji))*C(Ji);return Ji*vr<0&&(Mi-=l*C(wi)*C(Ji)),[Mi/vr,2*x(L(Vr/hn,1/vr))-u]},di}function sh(){return fl(md).scale(109.5).parallels([30,30])}function zs(pt,Nt){return[pt,Nt]}zs.invert=zs;function _u(){return Pu(zs).scale(152.63)}function xu(pt,Nt){var br=p(pt),vr=pt===Nt?_(pt):(br-p(Nt))/(Nt-pt),Vr=br/vr+pt;if(v(vr)o&&--vr>0);return[pt/(.8707+(di=br*br)*(-.131979+di*(-.013791+di*di*di*(.003971-.001529*di)))),br]};function gc(){return Pu(Rc).scale(175.295)}function hl(pt,Nt){return[p(Nt)*_(pt),_(Nt)]}hl.invert=Pc(T);function iu(){return Pu(hl).scale(249.5).clipAngle(90+o)}function mc(pt,Nt){var br=p(Nt),vr=1+p(pt)*br;return[br*_(pt)/vr,_(Nt)/vr]}mc.invert=Pc(function(pt){return 2*x(pt)});function Yc(){return Pu(mc).scale(250).clipAngle(142)}function nc(pt,Nt){return[A(g((u+Nt)/2)),-pt]}nc.invert=function(pt,Nt){return[-Nt,2*x(k(pt))-u]};function gf(){var pt=ru(nc),Nt=pt.center,br=pt.rotate;return pt.center=function(vr){return arguments.length?Nt([-vr[1],vr[0]]):(vr=Nt(),[vr[1],-vr[0]])},pt.rotate=function(vr){return arguments.length?br([vr[0],vr[1],vr.length>2?vr[2]+90:90]):(vr=br(),[vr[0],vr[1],vr[2]-90])},br([0,0,90]).scale(159.155)}e.geoAlbers=Qs,e.geoAlbersUsa=gd,e.geoArea=Le,e.geoAzimuthalEqualArea=sv,e.geoAzimuthalEqualAreaRaw=vc,e.geoAzimuthalEquidistant=Uf,e.geoAzimuthalEquidistantRaw=Lf,e.geoBounds=rt,e.geoCentroid=gr,e.geoCircle=Gn,e.geoClipAntimeridian=Pr,e.geoClipCircle=Wi,e.geoClipExtent=xa,e.geoClipRectangle=Tn,e.geoConicConformal=sh,e.geoConicConformalRaw=md,e.geoConicEqualArea=yu,e.geoConicEqualAreaRaw=ic,e.geoConicEquidistant=Lh,e.geoConicEquidistantRaw=xu,e.geoContains=vs,e.geoDistance=ks,e.geoEqualEarth=Ph,e.geoEqualEarthRaw=pf,e.geoEquirectangular=_u,e.geoEquirectangularRaw=zs,e.geoGnomonic=Ih,e.geoGnomonicRaw=Dl,e.geoGraticule=Qu,e.geoGraticule10=Rl,e.geoIdentity=Wu,e.geoInterpolate=uo,e.geoLength=wl,e.geoMercator=oh,e.geoMercatorRaw=Iu,e.geoNaturalEarth1=gc,e.geoNaturalEarth1Raw=Rc,e.geoOrthographic=iu,e.geoOrthographicRaw=hl,e.geoPath=kh,e.geoProjection=Pu,e.geoProjectionMutator=Lc,e.geoRotation=ji,e.geoStereographic=Yc,e.geoStereographicRaw=mc,e.geoStream=Z,e.geoTransform=Kh,e.geoTransverseMercator=gf,e.geoTransverseMercatorRaw=nc,Object.defineProperty(e,"__esModule",{value:!0})})});var ADe=_e((Lz,TDe)=>{(function(e,t){typeof Lz=="object"&&typeof TDe!="undefined"?t(Lz,PX(),$E()):t(e.d3=e.d3||{},e.d3,e.d3)})(Lz,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(de){return de>0?1:de<0?-1:0},x=Math.sin,b=Math.tan,p=1e-6,E=1e-12,k=Math.PI,A=k/2,L=k/4,_=Math.SQRT1_2,C=H(2),S=H(k),g=k*2,P=180/k,T=k/180;function F(de){return de?de/Math.sin(de):1}function q(de){return de>1?A:de<-1?-A:Math.asin(de)}function V(de){return de>1?0:de<-1?k:Math.acos(de)}function H(de){return de>0?Math.sqrt(de):0}function X(de){return de=s(2*de),(de-1)/(de+1)}function G(de){return(s(de)-s(-de))/2}function N(de){return(s(de)+s(-de))/2}function Z(de){return u(de+H(de*de+1))}function ie(de){return u(de+H(de*de-1))}function ae(de){var Te=b(de/2),Pe=2*u(o(de/2))/(Te*Te);function qe(We,Ne){var $e=o(We),Et=o(Ne),Dt=x(Ne),Ht=Et*$e,tr=-((1-Ht?u((1+Ht)/2)/(1-Ht):-.5)+Pe/(1+Ht));return[tr*Et*x(We),tr*Dt]}return qe.invert=function(We,Ne){var $e=H(We*We+Ne*Ne),Et=-de/2,Dt=50,Ht;if(!$e)return[0,0];do{var tr=Et/2,yr=o(tr),Dr=x(tr),Fr=Dr/yr,Yr=-u(n(yr));Et-=Ht=(2/Fr*Yr-Pe*Fr-$e)/(-Yr/(Dr*Dr)+1-Pe/(2*yr*yr))*(yr<0?.7:1)}while(n(Ht)>p&&--Dt>0);var vi=x(Et);return[a(We*vi,$e*o(Et)),q(Ne*vi/$e)]},qe}function we(){var de=A,Te=t.geoProjectionMutator(ae),Pe=Te(de);return Pe.radius=function(qe){return arguments.length?Te(de=qe*T):de*P},Pe.scale(179.976).clipAngle(147)}function Ee(de,Te){var Pe=o(Te),qe=F(V(Pe*o(de/=2)));return[2*Pe*x(de)*qe,x(Te)*qe]}Ee.invert=function(de,Te){if(!(de*de+4*Te*Te>k*k+p)){var Pe=de,qe=Te,We=25;do{var Ne=x(Pe),$e=x(Pe/2),Et=o(Pe/2),Dt=x(qe),Ht=o(qe),tr=x(2*qe),yr=Dt*Dt,Dr=Ht*Ht,Fr=$e*$e,Yr=1-Dr*Et*Et,vi=Yr?V(Ht*Et)*H(Ii=1/Yr):Ii=0,Ii,Pi=2*vi*Ht*$e-de,en=vi*Dt-Te,Mn=Ii*(Dr*Fr+vi*Ht*Et*yr),da=Ii*(.5*Ne*tr-vi*2*Dt*$e),Qn=Ii*.25*(tr*$e-vi*Dt*Dr*Ne),Ua=Ii*(yr*Et+vi*Fr*Ht),xo=da*Qn-Ua*Mn;if(!xo)break;var Ha=(en*da-Pi*Ua)/xo,oo=(Pi*Qn-en*Mn)/xo;Pe-=Ha,qe-=oo}while((n(Ha)>p||n(oo)>p)&&--We>0);return[Pe,qe]}};function ke(){return t.geoProjection(Ee).scale(152.63)}function ye(de){var Te=x(de),Pe=o(de),qe=de>=0?1:-1,We=b(qe*de),Ne=(1+Te-Pe)/2;function $e(Et,Dt){var Ht=o(Dt),tr=o(Et/=2);return[(1+Ht)*x(Et),(qe*Dt>-a(tr,We)-.001?0:-qe*10)+Ne+x(Dt)*Pe-(1+Ht)*Te*tr]}return $e.invert=function(Et,Dt){var Ht=0,tr=0,yr=50;do{var Dr=o(Ht),Fr=x(Ht),Yr=o(tr),vi=x(tr),Ii=1+Yr,Pi=Ii*Fr-Et,en=Ne+vi*Pe-Ii*Te*Dr-Dt,Mn=Ii*Dr/2,da=-Fr*vi,Qn=Te*Ii*Fr/2,Ua=Pe*Yr+Te*Dr*vi,xo=da*Qn-Ua*Mn,Ha=(en*da-Pi*Ua)/xo/2,oo=(Pi*Qn-en*Mn)/xo;n(oo)>2&&(oo/=2),Ht-=Ha,tr-=oo}while((n(Ha)>p||n(oo)>p)&&--yr>0);return qe*tr>-a(o(Ht),We)-.001?[Ht*2,tr]:null},$e}function K(){var de=20*T,Te=de>=0?1:-1,Pe=b(Te*de),qe=t.geoProjectionMutator(ye),We=qe(de),Ne=We.stream;return We.parallel=function($e){return arguments.length?(Pe=b((Te=(de=$e*T)>=0?1:-1)*de),qe(de)):de*P},We.stream=function($e){var Et=We.rotate(),Dt=Ne($e),Ht=(We.rotate([0,0]),Ne($e)),tr=We.precision();return We.rotate(Et),Dt.sphere=function(){Ht.polygonStart(),Ht.lineStart();for(var yr=Te*-180;Te*yr<180;yr+=Te*90)Ht.point(yr,Te*90);if(de)for(;Te*(yr-=3*Te*tr)>=-180;)Ht.point(yr,Te*-a(o(yr*T/2),Pe)*P);Ht.lineEnd(),Ht.polygonEnd()},Dt},We.scale(218.695).center([0,28.0974])}function ce(de,Te){var Pe=b(Te/2),qe=H(1-Pe*Pe),We=1+qe*o(de/=2),Ne=x(de)*qe/We,$e=Pe/We,Et=Ne*Ne,Dt=$e*$e;return[4/3*Ne*(3+Et-3*Dt),4/3*$e*(3+3*Et-Dt)]}ce.invert=function(de,Te){if(de*=3/8,Te*=3/8,!de&&n(Te)>1)return null;var Pe=de*de,qe=Te*Te,We=1+Pe+qe,Ne=H((We-H(We*We-4*Te*Te))/2),$e=q(Ne)/3,Et=Ne?ie(n(Te/Ne))/3:Z(n(de))/3,Dt=o($e),Ht=N(Et),tr=Ht*Ht-Dt*Dt;return[v(de)*2*a(G(Et)*Dt,.25-tr),v(Te)*2*a(Ht*x($e),.25+tr)]};function pe(){return t.geoProjection(ce).scale(66.1603)}var xe=H(8),Ce=u(1+C);function Me(de,Te){var Pe=n(Te);return PeE&&--qe>0);return[de/(o(Pe)*(xe-1/x(Pe))),v(Te)*Pe]};function Le(){return t.geoProjection(Me).scale(112.314)}function je(de){var Te=2*k/de;function Pe(qe,We){var Ne=t.geoAzimuthalEquidistantRaw(qe,We);if(n(qe)>A){var $e=a(Ne[1],Ne[0]),Et=H(Ne[0]*Ne[0]+Ne[1]*Ne[1]),Dt=Te*d(($e-A)/Te)+A,Ht=a(x($e-=Dt),2-o($e));$e=Dt+q(k/Et*x(Ht))-Ht,Ne[0]=Et*o($e),Ne[1]=Et*x($e)}return Ne}return Pe.invert=function(qe,We){var Ne=H(qe*qe+We*We);if(Ne>A){var $e=a(We,qe),Et=Te*d(($e-A)/Te)+A,Dt=$e>Et?-1:1,Ht=Ne*o(Et-$e),tr=1/b(Dt*V((Ht-k)/H(k*(k-2*Ht)+Ne*Ne)));$e=Et+2*i((tr+Dt*H(tr*tr-3))/3),qe=Ne*o($e),We=Ne*x($e)}return t.geoAzimuthalEquidistantRaw.invert(qe,We)},Pe}function Se(){var de=5,Te=t.geoProjectionMutator(je),Pe=Te(de),qe=Pe.stream,We=.01,Ne=-o(We*T),$e=x(We*T);return Pe.lobes=function(Et){return arguments.length?Te(de=+Et):de},Pe.stream=function(Et){var Dt=Pe.rotate(),Ht=qe(Et),tr=(Pe.rotate([0,0]),qe(Et));return Pe.rotate(Dt),Ht.sphere=function(){tr.polygonStart(),tr.lineStart();for(var yr=0,Dr=360/de,Fr=2*k/de,Yr=90-180/de,vi=A;yr0&&n(We)>p);return qe<0?NaN:Pe}function nt(de,Te,Pe){return Te===void 0&&(Te=40),Pe===void 0&&(Pe=E),function(qe,We,Ne,$e){var Et,Dt,Ht;Ne=Ne===void 0?0:+Ne,$e=$e===void 0?0:+$e;for(var tr=0;trEt){Ne-=Dt/=2,$e-=Ht/=2;continue}Et=Yr;var vi=(Ne>0?-1:1)*Pe,Ii=($e>0?-1:1)*Pe,Pi=de(Ne+vi,$e),en=de(Ne,$e+Ii),Mn=(Pi[0]-yr[0])/vi,da=(Pi[1]-yr[1])/vi,Qn=(en[0]-yr[0])/Ii,Ua=(en[1]-yr[1])/Ii,xo=Ua*Mn-da*Qn,Ha=(n(xo)<.5?.5:1)/xo;if(Dt=(Fr*Qn-Dr*Ua)*Ha,Ht=(Dr*da-Fr*Mn)*Ha,Ne+=Dt,$e+=Ht,n(Dt)0&&(Et[1]*=1+Dt/1.5*Et[0]*Et[0]),Et}return qe.invert=nt(qe),qe}function Ft(){return t.geoProjection(ot()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Lt(de,Te){var Pe=de*x(Te),qe=30,We;do Te-=We=(Te+x(Te)-Pe)/(1+o(Te));while(n(We)>p&&--qe>0);return Te/2}function Rt(de,Te,Pe){function qe(We,Ne){return[de*We*o(Ne=Lt(Pe,Ne)),Te*x(Ne)]}return qe.invert=function(We,Ne){return Ne=q(Ne/Te),[We/(de*o(Ne)),q((2*Ne+x(2*Ne))/Pe)]},qe}var Xt=Rt(C/A,C,k);function xr(){return t.geoProjection(Xt).scale(169.529)}var er=2.00276,Ge=1.11072;function yt(de,Te){var Pe=Lt(k,Te);return[er*de/(1/o(Te)+Ge/o(Pe)),(Te+C*x(Pe))/er]}yt.invert=function(de,Te){var Pe=er*Te,qe=Te<0?-L:L,We=25,Ne,$e;do $e=Pe-C*x(qe),qe-=Ne=(x(2*qe)+2*qe-k*x($e))/(2*o(2*qe)+2+k*o($e)*C*o(qe));while(n(Ne)>p&&--We>0);return $e=Pe-C*x(qe),[de*(1/o($e)+Ge/o(qe))/er,$e]};function _t(){return t.geoProjection(yt).scale(160.857)}function Ct(de){var Te=0,Pe=t.geoProjectionMutator(de),qe=Pe(Te);return qe.parallel=function(We){return arguments.length?Pe(Te=We*T):Te*P},qe}function St(de,Te){return[de*o(Te),Te]}St.invert=function(de,Te){return[de/o(Te),Te]};function kt(){return t.geoProjection(St).scale(152.63)}function ft(de){if(!de)return St;var Te=1/b(de);function Pe(qe,We){var Ne=Te+de-We,$e=Ne&&qe*o(We)/Ne;return[Ne*x($e),Te-Ne*o($e)]}return Pe.invert=function(qe,We){var Ne=H(qe*qe+(We=Te-We)*We),$e=Te+de-Ne;return[Ne/o($e)*a(qe,We),$e]},Pe}function Gt(){return Ct(ft).scale(123.082).center([0,26.1441]).parallel(45)}function $t(de){function Te(Pe,qe){var We=A-qe,Ne=We&&Pe*de*x(We)/We;return[We*x(Ne)/de,A-We*o(Ne)]}return Te.invert=function(Pe,qe){var We=Pe*de,Ne=A-qe,$e=H(We*We+Ne*Ne),Et=a(We,Ne);return[($e?$e/x($e):1)*Et/de,A-$e]},Te}function hr(){var de=.5,Te=t.geoProjectionMutator($t),Pe=Te(de);return Pe.fraction=function(qe){return arguments.length?Te(de=+qe):de},Pe.scale(158.837)}var _r=Rt(1,4/k,k);function Nr(){return t.geoProjection(_r).scale(152.63)}function Br(de,Te,Pe,qe,We,Ne){var $e=o(Ne),Et;if(n(de)>1||n(Ne)>1)Et=V(Pe*We+Te*qe*$e);else{var Dt=x(de/2),Ht=x(Ne/2);Et=2*q(H(Dt*Dt+Te*qe*Ht*Ht))}return n(Et)>p?[Et,a(qe*x(Ne),Te*We-Pe*qe*$e)]:[0,0]}function Ur(de,Te,Pe){return V((de*de+Te*Te-Pe*Pe)/(2*de*Te))}function ut(de){return de-2*k*l((de+k)/(2*k))}function rt(de,Te,Pe){for(var qe=[[de[0],de[1],x(de[1]),o(de[1])],[Te[0],Te[1],x(Te[1]),o(Te[1])],[Pe[0],Pe[1],x(Pe[1]),o(Pe[1])]],We=qe[2],Ne,$e=0;$e<3;++$e,We=Ne)Ne=qe[$e],We.v=Br(Ne[1]-We[1],We[3],We[2],Ne[3],Ne[2],Ne[0]-We[0]),We.point=[0,0];var Et=Ur(qe[0].v[0],qe[2].v[0],qe[1].v[0]),Dt=Ur(qe[0].v[0],qe[1].v[0],qe[2].v[0]),Ht=k-Et;qe[2].point[1]=0,qe[0].point[0]=-(qe[1].point[0]=qe[0].v[0]/2);var tr=[qe[2].point[0]=qe[0].point[0]+qe[2].v[0]*o(Et),2*(qe[0].point[1]=qe[1].point[1]=qe[2].v[0]*x(Et))];function yr(Dr,Fr){var Yr=x(Fr),vi=o(Fr),Ii=new Array(3),Pi;for(Pi=0;Pi<3;++Pi){var en=qe[Pi];if(Ii[Pi]=Br(Fr-en[1],en[3],en[2],vi,Yr,Dr-en[0]),!Ii[Pi][0])return en.point;Ii[Pi][1]=ut(Ii[Pi][1]-en.v[1])}var Mn=tr.slice();for(Pi=0;Pi<3;++Pi){var da=Pi==2?0:Pi+1,Qn=Ur(qe[Pi].v[0],Ii[Pi][0],Ii[da][0]);Ii[Pi][1]<0&&(Qn=-Qn),Pi?Pi==1?(Qn=Dt-Qn,Mn[0]-=Ii[Pi][0]*o(Qn),Mn[1]-=Ii[Pi][0]*x(Qn)):(Qn=Ht-Qn,Mn[0]+=Ii[Pi][0]*o(Qn),Mn[1]+=Ii[Pi][0]*x(Qn)):(Mn[0]+=Ii[Pi][0]*o(Qn),Mn[1]-=Ii[Pi][0]*x(Qn))}return Mn[0]/=3,Mn[1]/=3,Mn}return yr}function it(de){return de[0]*=T,de[1]*=T,de}function Ze(){return Je([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Je(de,Te,Pe){var qe=t.geoCentroid({type:"MultiPoint",coordinates:[de,Te,Pe]}),We=[-qe[0],-qe[1]],Ne=t.geoRotation(We),$e=rt(it(Ne(de)),it(Ne(Te)),it(Ne(Pe)));$e.invert=nt($e);var Et=t.geoProjection($e).rotate(We),Dt=Et.center;return delete Et.rotate,Et.center=function(Ht){return arguments.length?Dt(Ne(Ht)):Ne.invert(Dt())},Et.clipAngle(90)}function ht(de,Te){var Pe=H(1-x(Te));return[2/S*de*Pe,S*(1-Pe)]}ht.invert=function(de,Te){var Pe=(Pe=Te/S-1)*Pe;return[Pe>0?de*H(k/Pe)/2:0,q(1-Pe)]};function Ie(){return t.geoProjection(ht).scale(95.6464).center([0,30])}function le(de){var Te=b(de);function Pe(qe,We){return[qe,(qe?qe/x(qe):1)*(x(We)*o(qe)-Te*o(We))]}return Pe.invert=Te?function(qe,We){qe&&(We*=x(qe)/qe);var Ne=o(qe);return[qe,2*a(H(Ne*Ne+Te*Te-We*We)-Ne,Te-We)]}:function(qe,We){return[qe,q(qe?We*b(qe)/qe:We)]},Pe}function be(){return Ct(le).scale(249.828).clipAngle(90)}var Qe=H(3);function xt(de,Te){return[Qe*de*(2*o(2*Te/3)-1)/S,Qe*S*x(Te/3)]}xt.invert=function(de,Te){var Pe=3*q(Te/(Qe*S));return[S*de/(Qe*(2*o(2*Pe/3)-1)),Pe]};function Ot(){return t.geoProjection(xt).scale(156.19)}function rr(de){var Te=o(de);function Pe(qe,We){return[qe*Te,x(We)/Te]}return Pe.invert=function(qe,We){return[qe/Te,q(We*Te)]},Pe}function Jr(){return Ct(rr).parallel(38.58).scale(195.044)}function ni(de){var Te=o(de);function Pe(qe,We){return[qe*Te,(1+Te)*b(We/2)]}return Pe.invert=function(qe,We){return[qe/Te,i(We/(1+Te))*2]},Pe}function Gr(){return Ct(ni).scale(124.75)}function ri(de,Te){var Pe=H(8/(3*k));return[Pe*de*(1-n(Te)/k),Pe*Te]}ri.invert=function(de,Te){var Pe=H(8/(3*k)),qe=Te/Pe;return[de/(Pe*(1-n(qe)/k)),qe]};function Ti(){return t.geoProjection(ri).scale(165.664)}function an(de,Te){var Pe=H(4-3*x(n(Te)));return[2/H(6*k)*de*Pe,v(Te)*H(2*k/3)*(2-Pe)]}an.invert=function(de,Te){var Pe=2-n(Te)/H(2*k/3);return[de*H(6*k)/(2*Pe),v(Te)*q((4-Pe*Pe)/3)]};function Yi(){return t.geoProjection(an).scale(165.664)}function Xi(de,Te){var Pe=H(k*(4+k));return[2/Pe*de*(1+H(1-4*Te*Te/(k*k))),4/Pe*Te]}Xi.invert=function(de,Te){var Pe=H(k*(4+k))/2;return[de*Pe/(1+H(1-Te*Te*(4+k)/(4*k))),Te*Pe/2]};function An(){return t.geoProjection(Xi).scale(180.739)}function Qi(de,Te){var Pe=(2+A)*x(Te);Te/=2;for(var qe=0,We=1/0;qe<10&&n(We)>p;qe++){var Ne=o(Te);Te-=We=(Te+x(Te)*(Ne+2)-Pe)/(2*Ne*(1+Ne))}return[2/H(k*(4+k))*de*(1+o(Te)),2*H(k/(4+k))*x(Te)]}Qi.invert=function(de,Te){var Pe=Te*H((4+k)/k)/2,qe=q(Pe),We=o(qe);return[de/(2/H(k*(4+k))*(1+We)),q((qe+Pe*(We+2))/(2+A))]};function Un(){return t.geoProjection(Qi).scale(180.739)}function Xn(de,Te){return[de*(1+o(Te))/H(2+k),2*Te/H(2+k)]}Xn.invert=function(de,Te){var Pe=H(2+k),qe=Te*Pe/2;return[Pe*de/(1+o(qe)),qe]};function It(){return t.geoProjection(Xn).scale(173.044)}function ct(de,Te){for(var Pe=(1+A)*x(Te),qe=0,We=1/0;qe<10&&n(We)>p;qe++)Te-=We=(Te+x(Te)-Pe)/(1+o(Te));return Pe=H(2+k),[de*(1+o(Te))/Pe,2*Te/Pe]}ct.invert=function(de,Te){var Pe=1+A,qe=H(Pe/2);return[de*2*qe/(1+o(Te*=qe)),q((Te+x(Te))/Pe)]};function Vt(){return t.geoProjection(ct).scale(173.044)}var Wt=3+2*C;function gr(de,Te){var Pe=x(de/=2),qe=o(de),We=H(o(Te)),Ne=o(Te/=2),$e=x(Te)/(Ne+C*qe*We),Et=H(2/(1+$e*$e)),Dt=H((C*Ne+(qe+Pe)*We)/(C*Ne+(qe-Pe)*We));return[Wt*(Et*(Dt-1/Dt)-2*u(Dt)),Wt*(Et*$e*(Dt+1/Dt)-2*i($e))]}gr.invert=function(de,Te){if(!(Ne=ce.invert(de/1.2,Te*1.065)))return null;var Pe=Ne[0],qe=Ne[1],We=20,Ne;de/=Wt,Te/=Wt;do{var $e=Pe/2,Et=qe/2,Dt=x($e),Ht=o($e),tr=x(Et),yr=o(Et),Dr=o(qe),Fr=H(Dr),Yr=tr/(yr+C*Ht*Fr),vi=Yr*Yr,Ii=H(2/(1+vi)),Pi=C*yr+(Ht+Dt)*Fr,en=C*yr+(Ht-Dt)*Fr,Mn=Pi/en,da=H(Mn),Qn=da-1/da,Ua=da+1/da,xo=Ii*Qn-2*u(da)-de,Ha=Ii*Yr*Ua-2*i(Yr)-Te,oo=tr&&_*Fr*Dt*vi/tr,Lo=(C*Ht*yr+Fr)/(2*(yr+C*Ht*Fr)*(yr+C*Ht*Fr)*Fr),Rs=-.5*Yr*Ii*Ii*Ii,ws=Rs*oo,vo=Rs*Lo,co=(co=2*yr+C*Fr*(Ht-Dt))*co*da,_l=(C*Ht*yr*Fr+Dr)/co,Gl=-(C*Dt*tr)/(Fr*co),Zu=Qn*ws-2*_l/da+Ii*(_l+_l/Mn),cu=Qn*vo-2*Gl/da+Ii*(Gl+Gl/Mn),el=Yr*Ua*ws-2*oo/(1+vi)+Ii*Ua*oo+Ii*Yr*(_l-_l/Mn),au=Yr*Ua*vo-2*Lo/(1+vi)+Ii*Ua*Lo+Ii*Yr*(Gl-Gl/Mn),zc=cu*el-au*Zu;if(!zc)break;var zl=(Ha*cu-xo*au)/zc,Fl=(xo*el-Ha*Zu)/zc;Pe-=zl,qe=c(-A,f(A,qe-Fl))}while((n(zl)>p||n(Fl)>p)&&--We>0);return n(n(qe)-A)qe){var yr=H(tr),Dr=a(Ht,Dt),Fr=Pe*d(Dr/Pe),Yr=Dr-Fr,vi=de*o(Yr),Ii=(de*x(Yr)-Yr*x(vi))/(A-vi),Pi=Da(Yr,Ii),en=(k-de)/Pa(Pi,vi,k);Dt=yr;var Mn=50,da;do Dt-=da=(de+Pa(Pi,vi,Dt)*en-yr)/(Pi(Dt)*en);while(n(da)>p&&--Mn>0);Ht=Yr*x(Dt),Dtqe){var Dt=H(Et),Ht=a($e,Ne),tr=Pe*d(Ht/Pe),yr=Ht-tr;Ne=Dt*o(yr),$e=Dt*x(yr);for(var Dr=Ne-A,Fr=x(Ne),Yr=$e/Fr,vi=Nep||n(Yr)>p)&&--vi>0);return[yr,Dr]},Dt}var go=aa(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function _s(){return t.geoProjection(go).scale(149.995)}var Vs=aa(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function As(){return t.geoProjection(Vs).scale(153.93)}var wt=aa(5/6*k,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Lr(){return t.geoProjection(wt).scale(130.945)}function Pr(de,Te){var Pe=de*de,qe=Te*Te;return[de*(1-.162388*qe)*(.87-952426e-9*Pe*Pe),Te*(1+qe/12)]}Pr.invert=function(de,Te){var Pe=de,qe=Te,We=50,Ne;do{var $e=qe*qe;qe-=Ne=(qe*(1+$e/12)-Te)/(1+$e/4)}while(n(Ne)>p&&--We>0);We=50,de/=1-.162388*$e;do{var Et=(Et=Pe*Pe)*Et;Pe-=Ne=(Pe*(.87-952426e-9*Et)-de)/(.87-.00476213*Et)}while(n(Ne)>p&&--We>0);return[Pe,qe]};function Xr(){return t.geoProjection(Pr).scale(131.747)}var bi=aa(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function ai(){return t.geoProjection(bi).scale(131.087)}function Wi(de){var Te=de(A,0)[0]-de(-A,0)[0];function Pe(qe,We){var Ne=qe>0?-.5:.5,$e=de(qe+Ne*k,We);return $e[0]-=Ne*Te,$e}return de.invert&&(Pe.invert=function(qe,We){var Ne=qe>0?-.5:.5,$e=de.invert(qe+Ne*Te,We),Et=$e[0]-Ne*k;return Et<-k?Et+=2*k:Et>k&&(Et-=2*k),$e[0]=Et,$e}),Pe}function ii(de,Te){var Pe=v(de),qe=v(Te),We=o(Te),Ne=o(de)*We,$e=x(de)*We,Et=x(qe*Te);de=n(a($e,Et)),Te=q(Ne),n(de-A)>p&&(de%=A);var Dt=Ui(de>k/4?A-de:de,Te);return de>k/4&&(Et=Dt[0],Dt[0]=-Dt[1],Dt[1]=-Et),Dt[0]*=Pe,Dt[1]*=-qe,Dt}ii.invert=function(de,Te){n(de)>1&&(de=v(de)*2-de),n(Te)>1&&(Te=v(Te)*2-Te);var Pe=v(de),qe=v(Te),We=-Pe*de,Ne=-qe*Te,$e=Ne/We<1,Et=Vn($e?Ne:We,$e?We:Ne),Dt=Et[0],Ht=Et[1],tr=o(Ht);return $e&&(Dt=-A-Dt),[Pe*(a(x(Dt)*tr,-x(Ht))+k),qe*q(o(Dt)*tr)]};function Ui(de,Te){if(Te===A)return[0,0];var Pe=x(Te),qe=Pe*Pe,We=qe*qe,Ne=1+We,$e=1+3*We,Et=1-We,Dt=q(1/H(Ne)),Ht=Et+qe*Ne*Dt,tr=(1-Pe)/Ht,yr=H(tr),Dr=tr*Ne,Fr=H(Dr),Yr=yr*Et,vi,Ii;if(de===0)return[0,-(Yr+qe*Fr)];var Pi=o(Te),en=1/Pi,Mn=2*Pe*Pi,da=(-3*qe+Dt*$e)*Mn,Qn=(-Ht*Pi-(1-Pe)*da)/(Ht*Ht),Ua=.5*Qn/yr,xo=Et*Ua-2*qe*yr*Mn,Ha=qe*Ne*Qn+tr*$e*Mn,oo=-en*Mn,Lo=-en*Ha,Rs=-2*en*xo,ws=4*de/k,vo;if(de>.222*k||Te.175*k){if(vi=(Yr+qe*H(Dr*(1+We)-Yr*Yr))/(1+We),de>k/4)return[vi,vi];var co=vi,_l=.5*vi;vi=.5*(_l+co),Ii=50;do{var Gl=H(Dr-vi*vi),Zu=vi*(Rs+oo*Gl)+Lo*q(vi/Fr)-ws;if(!Zu)break;Zu<0?_l=vi:co=vi,vi=.5*(_l+co)}while(n(co-_l)>p&&--Ii>0)}else{vi=p,Ii=25;do{var cu=vi*vi,el=H(Dr-cu),au=Rs+oo*el,zc=vi*au+Lo*q(vi/Fr)-ws,zl=au+(Lo-oo*cu)/el;vi-=vo=el?zc/zl:0}while(n(vo)>p&&--Ii>0)}return[vi,-Yr-qe*H(Dr-vi*vi)]}function Vn(de,Te){for(var Pe=0,qe=1,We=.5,Ne=50;;){var $e=We*We,Et=H(We),Dt=q(1/H(1+$e)),Ht=1-$e+We*(1+$e)*Dt,tr=(1-Et)/Ht,yr=H(tr),Dr=tr*(1+$e),Fr=yr*(1-$e),Yr=Dr-de*de,vi=H(Yr),Ii=Te+Fr+We*vi;if(n(qe-Pe)0?Pe=We:qe=We,We=.5*(Pe+qe)}if(!Ne)return null;var Pi=q(Et),en=o(Pi),Mn=1/en,da=2*Et*en,Qn=(-3*We+Dt*(1+3*$e))*da,Ua=(-Ht*en-(1-Et)*Qn)/(Ht*Ht),xo=.5*Ua/yr,Ha=(1-$e)*xo-2*We*yr*da,oo=-2*Mn*Ha,Lo=-Mn*da,Rs=-Mn*(We*(1+$e)*Ua+tr*(1+3*$e)*da);return[k/4*(de*(oo+Lo*vi)+Rs*q(de/H(Dr))),Pi]}function Tn(){return t.geoProjection(Wi(ii)).scale(239.75)}function xa(de,Te,Pe){var qe,We,Ne;return de?(qe=fo(de,Pe),Te?(We=fo(Te,1-Pe),Ne=We[1]*We[1]+Pe*qe[0]*qe[0]*We[0]*We[0],[[qe[0]*We[2]/Ne,qe[1]*qe[2]*We[0]*We[1]/Ne],[qe[1]*We[1]/Ne,-qe[0]*qe[2]*We[0]*We[2]/Ne],[qe[2]*We[1]*We[2]/Ne,-Pe*qe[0]*qe[1]*We[0]/Ne]]):[[qe[0],0],[qe[1],0],[qe[2],0]]):(We=fo(Te,1-Pe),[[0,We[0]/We[1]],[1/We[1],0],[We[2]/We[1],0]])}function fo(de,Te){var Pe,qe,We,Ne,$e;if(Te=1-p)return Pe=(1-Te)/4,qe=N(de),Ne=X(de),We=1/qe,$e=qe*G(de),[Ne+Pe*($e-de)/(qe*qe),We-Pe*Ne*We*($e-de),We+Pe*Ne*We*($e+de),2*i(s(de))-A+Pe*($e-de)/qe];var Et=[1,0,0,0,0,0,0,0,0],Dt=[H(Te),0,0,0,0,0,0,0,0],Ht=0;for(qe=H(1-Te),$e=1;n(Dt[Ht]/Et[Ht])>p&&Ht<8;)Pe=Et[Ht++],Dt[Ht]=(Pe-qe)/2,Et[Ht]=(Pe+qe)/2,qe=H(Pe*qe),$e*=2;We=$e*Et[Ht]*de;do Ne=Dt[Ht]*x(qe=We)/Et[Ht],We=(q(Ne)+We)/2;while(--Ht);return[x(We),Ne=o(We),Ne/o(We-qe),We]}function zo(de,Te,Pe){var qe=n(de),We=n(Te),Ne=G(We);if(qe){var $e=1/x(qe),Et=1/(b(qe)*b(qe)),Dt=-(Et+Pe*(Ne*Ne*$e*$e)-1+Pe),Ht=(Pe-1)*Et,tr=(-Dt+H(Dt*Dt-4*Ht))/2;return[lo(i(1/H(tr)),Pe)*v(de),lo(i(H((tr/Et-1)/Pe)),1-Pe)*v(Te)]}return[0,lo(i(Ne),1-Pe)*v(Te)]}function lo(de,Te){if(!Te)return de;if(Te===1)return u(b(de/2+L));for(var Pe=1,qe=H(1-Te),We=H(Te),Ne=0;n(We)>p;Ne++){if(de%k){var $e=i(qe*b(de)/Pe);$e<0&&($e+=k),de+=$e+~~(de/k)*k}else de+=de;We=(Pe+qe)/2,qe=H(Pe*qe),We=((Pe=We)-qe)/2}return de/(h(2,Ne)*Pe)}function To(de,Te){var Pe=(C-1)/(C+1),qe=H(1-Pe*Pe),We=lo(A,qe*qe),Ne=-1,$e=u(b(k/4+n(Te)/2)),Et=s(Ne*$e)/H(Pe),Dt=mo(Et*o(Ne*de),Et*x(Ne*de)),Ht=zo(Dt[0],Dt[1],qe*qe);return[-Ht[1],(Te>=0?1:-1)*(.5*We-Ht[0])]}function mo(de,Te){var Pe=de*de,qe=Te+1,We=1-Pe-Te*Te;return[.5*((de>=0?A:-A)-a(We,2*de)),-.25*u(We*We+4*Pe)+.5*u(qe*qe+Pe)]}function Ds(de,Te){var Pe=Te[0]*Te[0]+Te[1]*Te[1];return[(de[0]*Te[0]+de[1]*Te[1])/Pe,(de[1]*Te[0]-de[0]*Te[1])/Pe]}To.invert=function(de,Te){var Pe=(C-1)/(C+1),qe=H(1-Pe*Pe),We=lo(A,qe*qe),Ne=-1,$e=xa(.5*We-Te,-de,qe*qe),Et=Ds($e[0],$e[1]),Dt=a(Et[1],Et[0])/Ne;return[Dt,2*i(s(.5/Ne*u(Pe*Et[0]*Et[0]+Pe*Et[1]*Et[1])))-A]};function Es(){return t.geoProjection(Wi(To)).scale(151.496)}function Zs(de){var Te=x(de),Pe=o(de),qe=Xs(de);qe.invert=Xs(-de);function We(Ne,$e){var Et=qe(Ne,$e);Ne=Et[0],$e=Et[1];var Dt=x($e),Ht=o($e),tr=o(Ne),yr=V(Te*Dt+Pe*Ht*tr),Dr=x(yr),Fr=n(Dr)>p?yr/Dr:1;return[Fr*Pe*x(Ne),(n(Ne)>A?Fr:-Fr)*(Te*Ht-Pe*Dt*tr)]}return We.invert=function(Ne,$e){var Et=H(Ne*Ne+$e*$e),Dt=-x(Et),Ht=o(Et),tr=Et*Ht,yr=-$e*Dt,Dr=Et*Te,Fr=H(tr*tr+yr*yr-Dr*Dr),Yr=a(tr*Dr+yr*Fr,yr*Dr-tr*Fr),vi=(Et>A?-1:1)*a(Ne*Dt,Et*o(Yr)*Ht+$e*x(Yr)*Dt);return qe.invert(vi,Yr)},We}function Xs(de){var Te=x(de),Pe=o(de);return function(qe,We){var Ne=o(We),$e=o(qe)*Ne,Et=x(qe)*Ne,Dt=x(We);return[a(Et,$e*Pe-Dt*Te),q(Dt*Pe+$e*Te)]}}function wl(){var de=0,Te=t.geoProjectionMutator(Zs),Pe=Te(de),qe=Pe.rotate,We=Pe.stream,Ne=t.geoCircle();return Pe.parallel=function($e){if(!arguments.length)return de*P;var Et=Pe.rotate();return Te(de=$e*T).rotate(Et)},Pe.rotate=function($e){return arguments.length?(qe.call(Pe,[$e[0],$e[1]-de*P]),Ne.center([-$e[0],-$e[1]]),Pe):($e=qe.call(Pe),$e[1]+=de*P,$e)},Pe.stream=function($e){return $e=We($e),$e.sphere=function(){$e.polygonStart();var Et=.01,Dt=Ne.radius(90-Et)().coordinates[0],Ht=Dt.length-1,tr=-1,yr;for($e.lineStart();++tr=0;)$e.point((yr=Dt[tr])[0],yr[1]);$e.lineEnd(),$e.polygonEnd()},$e},Pe.scale(79.4187).parallel(45).clipAngle(180-.001)}var is=3,cl=q(1-1/is)*P,ks=rr(0);function ml(de){var Te=cl*T,Pe=ht(k,Te)[0]-ht(-k,Te)[0],qe=ks(0,Te)[1],We=ht(0,Te)[1],Ne=S-We,$e=g/de,Et=4/g,Dt=qe+Ne*Ne*4/g;function Ht(tr,yr){var Dr,Fr=n(yr);if(Fr>Te){var Yr=f(de-1,c(0,l((tr+k)/$e)));tr+=k*(de-1)/de-Yr*$e,Dr=ht(tr,Fr),Dr[0]=Dr[0]*g/Pe-g*(de-1)/(2*de)+Yr*g/de,Dr[1]=qe+(Dr[1]-We)*4*Ne/g,yr<0&&(Dr[1]=-Dr[1])}else Dr=ks(tr,yr);return Dr[0]*=Et,Dr[1]/=Dt,Dr}return Ht.invert=function(tr,yr){tr/=Et,yr*=Dt;var Dr=n(yr);if(Dr>qe){var Fr=f(de-1,c(0,l((tr+k)/$e)));tr=(tr+k*(de-1)/de-Fr*$e)*Pe/g;var Yr=ht.invert(tr,.25*(Dr-qe)*g/Ne+We);return Yr[0]-=k*(de-1)/de-Fr*$e,yr<0&&(Yr[1]=-Yr[1]),Yr}return ks.invert(tr,yr)},Ht}function Ys(de,Te){return[de,Te&1?90-p:cl]}function Hs(de,Te){return[de,Te&1?-90+p:-cl]}function Ao(de){return[de[0]*(1-p),de[1]]}function ls(de){var Te=[].concat(r.range(-180,180+de/2,de).map(Ys),r.range(180,-180-de/2,-de).map(Hs));return{type:"Polygon",coordinates:[de===180?Te.map(Ao):Te]}}function Ql(){var de=4,Te=t.geoProjectionMutator(ml),Pe=Te(de),qe=Pe.stream;return Pe.lobes=function(We){return arguments.length?Te(de=+We):de},Pe.stream=function(We){var Ne=Pe.rotate(),$e=qe(We),Et=(Pe.rotate([0,0]),qe(We));return Pe.rotate(Ne),$e.sphere=function(){t.geoStream(ls(180/de),Et)},$e},Pe.scale(239.75)}function Hu(de){var Te=1+de,Pe=x(1/Te),qe=q(Pe),We=2*H(k/(Ne=k+4*qe*Te)),Ne,$e=.5*We*(Te+H(de*(2+de))),Et=de*de,Dt=Te*Te;function Ht(tr,yr){var Dr=1-x(yr),Fr,Yr;if(Dr&&Dr<2){var vi=A-yr,Ii=25,Pi;do{var en=x(vi),Mn=o(vi),da=qe+a(en,Te-Mn),Qn=1+Dt-2*Te*Mn;vi-=Pi=(vi-Et*qe-Te*en+Qn*da-.5*Dr*Ne)/(2*Te*en*da)}while(n(Pi)>E&&--Ii>0);Fr=We*H(Qn),Yr=tr*da/k}else Fr=We*(de+Dr),Yr=tr*qe/k;return[Fr*x(Yr),$e-Fr*o(Yr)]}return Ht.invert=function(tr,yr){var Dr=tr*tr+(yr-=$e)*yr,Fr=(1+Dt-Dr/(We*We))/(2*Te),Yr=V(Fr),vi=x(Yr),Ii=qe+a(vi,Te-Fr);return[q(tr/H(Dr))*k/Ii,q(1-2*(Yr-Et*qe-Te*vi+(1+Dt-2*Te*Fr)*Ii)/Ne)]},Ht}function fc(){var de=1,Te=t.geoProjectionMutator(Hu),Pe=Te(de);return Pe.ratio=function(qe){return arguments.length?Te(de=+qe):de},Pe.scale(167.774).center([0,18.67])}var vs=.7109889596207567,on=.0528035274542;function ua(de,Te){return Te>-vs?(de=Xt(de,Te),de[1]+=on,de):St(de,Te)}ua.invert=function(de,Te){return Te>-vs?Xt.invert(de,Te-on):St.invert(de,Te)};function Qu(){return t.geoProjection(ua).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Rl(de,Te){return n(Te)>vs?(de=Xt(de,Te),de[1]-=Te>0?on:-on,de):St(de,Te)}Rl.invert=function(de,Te){return n(Te)>vs?Xt.invert(de,Te+(Te>0?on:-on)):St.invert(de,Te)};function uo(){return t.geoProjection(Rl).scale(152.63)}function Zl(de,Te,Pe,qe){var We=H(4*k/(2*Pe+(1+de-Te/2)*x(2*Pe)+(de+Te)/2*x(4*Pe)+Te/2*x(6*Pe))),Ne=H(qe*x(Pe)*H((1+de*o(2*Pe)+Te*o(4*Pe))/(1+de+Te))),$e=Pe*Dt(1);function Et(yr){return H(1+de*o(2*yr)+Te*o(4*yr))}function Dt(yr){var Dr=yr*Pe;return(2*Dr+(1+de-Te/2)*x(2*Dr)+(de+Te)/2*x(4*Dr)+Te/2*x(6*Dr))/Pe}function Ht(yr){return Et(yr)*x(yr)}var tr=function(yr,Dr){var Fr=Pe*Yt(Dt,$e*x(Dr)/Pe,Dr/k);isNaN(Fr)&&(Fr=Pe*v(Dr));var Yr=We*Et(Fr);return[Yr*Ne*yr/k*o(Fr),Yr/Ne*x(Fr)]};return tr.invert=function(yr,Dr){var Fr=Yt(Ht,Dr*Ne/We);return[yr*k/(o(Fr)*We*Ne*Et(Fr)),q(Pe*Dt(Fr/Pe)/$e)]},Pe===0&&(We=H(qe/k),tr=function(yr,Dr){return[yr*We,x(Dr)/We]},tr.invert=function(yr,Dr){return[yr/We,q(Dr*We)]}),tr}function Ks(){var de=1,Te=0,Pe=45*T,qe=2,We=t.geoProjectionMutator(Zl),Ne=We(de,Te,Pe,qe);return Ne.a=function($e){return arguments.length?We(de=+$e,Te,Pe,qe):de},Ne.b=function($e){return arguments.length?We(de,Te=+$e,Pe,qe):Te},Ne.psiMax=function($e){return arguments.length?We(de,Te,Pe=+$e*T,qe):Pe*P},Ne.ratio=function($e){return arguments.length?We(de,Te,Pe,qe=+$e):qe},Ne.scale(180.739)}function Xl(de,Te,Pe,qe,We,Ne,$e,Et,Dt,Ht,tr){if(tr.nanEncountered)return NaN;var yr,Dr,Fr,Yr,vi,Ii,Pi,en,Mn,da;if(yr=Pe-Te,Dr=de(Te+yr*.25),Fr=de(Pe-yr*.25),isNaN(Dr)){tr.nanEncountered=!0;return}if(isNaN(Fr)){tr.nanEncountered=!0;return}return Yr=yr*(qe+4*Dr+We)/12,vi=yr*(We+4*Fr+Ne)/12,Ii=Yr+vi,da=(Ii-$e)/15,Ht>Dt?(tr.maxDepthCount++,Ii+da):Math.abs(da)>1;do Dt[Ii]>Fr?vi=Ii:Yr=Ii,Ii=Yr+vi>>1;while(Ii>Yr);var Pi=Dt[Ii+1]-Dt[Ii];return Pi&&(Pi=(Fr-Dt[Ii+1])/Pi),(Ii+1+Pi)/$e}var yr=2*tr(1)/k*Ne/Pe,Dr=function(Fr,Yr){var vi=tr(n(x(Yr))),Ii=qe(vi)*Fr;return vi/=yr,[Ii,Yr>=0?vi:-vi]};return Dr.invert=function(Fr,Yr){var vi;return Yr*=yr,n(Yr)<1&&(vi=v(Yr)*q(We(n(Yr))*Ne)),[Fr/qe(n(Yr)),vi]},Dr}function Mo(){var de=0,Te=2.5,Pe=1.183136,qe=t.geoProjectionMutator(jn),We=qe(de,Te,Pe);return We.alpha=function(Ne){return arguments.length?qe(de=+Ne,Te,Pe):de},We.k=function(Ne){return arguments.length?qe(de,Te=+Ne,Pe):Te},We.gamma=function(Ne){return arguments.length?qe(de,Te,Pe=+Ne):Pe},We.scale(152.63)}function So(de,Te){return n(de[0]-Te[0])=0;--Dt)Pe=de[1][Dt],qe=Pe[0][0],We=Pe[0][1],Ne=Pe[1][1],$e=Pe[2][0],Et=Pe[2][1],Te.push(Tl([[$e-p,Et-p],[$e-p,Ne+p],[qe+p,Ne+p],[qe+p,We-p]],30));return{type:"Polygon",coordinates:[r.merge(Te)]}}function wo(de,Te,Pe){var qe,We;function Ne(Dt,Ht){for(var tr=Ht<0?-1:1,yr=Te[+(Ht<0)],Dr=0,Fr=yr.length-1;Dryr[Dr][2][0];++Dr);var Yr=de(Dt-yr[Dr][1][0],Ht);return Yr[0]+=de(yr[Dr][1][0],tr*Ht>tr*yr[Dr][0][1]?yr[Dr][0][1]:Ht)[0],Yr}Pe?Ne.invert=Pe(Ne):de.invert&&(Ne.invert=function(Dt,Ht){for(var tr=We[+(Ht<0)],yr=Te[+(Ht<0)],Dr=0,Fr=tr.length;DrYr&&(vi=Fr,Fr=Yr,Yr=vi),[[yr,Fr],[Dr,Yr]]})}),$e):Te.map(function(Ht){return Ht.map(function(tr){return[[tr[0][0]*P,tr[0][1]*P],[tr[1][0]*P,tr[1][1]*P],[tr[2][0]*P,tr[2][1]*P]]})})},Te!=null&&$e.lobes(Te),$e}var cf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function rh(){return wo(yt,cf).scale(160.857)}var Al=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Hc(){return wo(Rl,Al).scale(152.63)}var eu=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Cs(){return wo(Xt,eu).scale(169.529)}var mu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function kc(){return wo(Xt,mu).scale(169.529).rotate([20,0])}var Of=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Gc(){return wo(ua,Of,nt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var vd=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Bf(){return wo(St,vd).scale(152.63).rotate([-20,0])}function ns(de,Te){return[3/g*de*H(k*k/3-Te*Te),Te]}ns.invert=function(de,Te){return[g/3*de/H(k*k/3-Te*Te),Te]};function ff(){return t.geoProjection(ns).scale(158.837)}function ih(de){function Te(Pe,qe){if(n(n(qe)-A)2)return null;Pe/=2,qe/=2;var Ne=Pe*Pe,$e=qe*qe,Et=2*qe/(1+Ne+$e);return Et=h((1+Et)/(1-Et),1/de),[a(2*Pe,1-Ne-$e)/de,q((Et-1)/(Et+1))]},Te}function Hl(){var de=.5,Te=t.geoProjectionMutator(ih),Pe=Te(de);return Pe.spacing=function(qe){return arguments.length?Te(de=+qe):de},Pe.scale(124.75)}var Js=k/C;function hc(de,Te){return[de*(1+H(o(Te)))/2,Te/(o(Te/2)*o(de/6))]}hc.invert=function(de,Te){var Pe=n(de),qe=n(Te),We=p,Ne=A;qep||n(Ii)>p)&&--We>0);return We&&[Pe,qe]};function $s(){return t.geoProjection(xs).scale(139.98)}function us(de,Te){return[x(de)/o(Te),b(Te)*o(de)]}us.invert=function(de,Te){var Pe=de*de,qe=Te*Te,We=qe+1,Ne=Pe+We,$e=de?_*H((Ne-H(Ne*Ne-4*Pe))/Pe):1/H(We);return[q(de*$e),v(Te)*V($e)]};function Ms(){return t.geoProjection(us).scale(144.049).clipAngle(90-.001)}function dc(de){var Te=o(de),Pe=b(L+de/2);function qe(We,Ne){var $e=Ne-de,Et=n($e)=0;)tr=de[Ht],yr=tr[0]+Et*(Fr=yr)-Dt*Dr,Dr=tr[1]+Et*Dr+Dt*Fr;return yr=Et*(Fr=yr)-Dt*Dr,Dr=Et*Dr+Dt*Fr,[yr,Dr]}return Pe.invert=function(qe,We){var Ne=20,$e=qe,Et=We;do{for(var Dt=Te,Ht=de[Dt],tr=Ht[0],yr=Ht[1],Dr=0,Fr=0,Yr;--Dt>=0;)Ht=de[Dt],Dr=tr+$e*(Yr=Dr)-Et*Fr,Fr=yr+$e*Fr+Et*Yr,tr=Ht[0]+$e*(Yr=tr)-Et*yr,yr=Ht[1]+$e*yr+Et*Yr;Dr=tr+$e*(Yr=Dr)-Et*Fr,Fr=yr+$e*Fr+Et*Yr,tr=$e*(Yr=tr)-Et*yr-qe,yr=$e*yr+Et*Yr-We;var vi=Dr*Dr+Fr*Fr,Ii,Pi;$e-=Ii=(tr*Dr+yr*Fr)/vi,Et-=Pi=(yr*Dr-tr*Fr)/vi}while(n(Ii)+n(Pi)>p*p&&--Ne>0);if(Ne){var en=H($e*$e+Et*Et),Mn=2*i(en*.5),da=x(Mn);return[a($e*da,en*o(Mn)),en?q(Et*da/en):0]}},Pe}var _o=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Xa=[[.9245,0],[0,0],[.01943,0]],Ef=[[.721316,0],[0,0],[-.00881625,-.00617325]];function tc(){return Sl(_o,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function uu(){return Sl(Od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Sh(){return Sl(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function jc(){return Sl(Xa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function kf(){return Sl(Ef,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Sl(de,Te){var Pe=t.geoProjection(ov(de)).rotate(Te).clipAngle(90),qe=t.geoRotation(Te),We=Pe.center;return delete Pe.rotate,Pe.center=function(Ne){return arguments.length?We(qe(Ne)):qe.invert(We())},Pe}var Yh=H(6),Eh=H(7);function nh(de,Te){var Pe=q(7*x(Te)/(3*Yh));return[Yh*de*(2*o(2*Pe/3)-1)/Eh,9*x(Pe/3)/Eh]}nh.invert=function(de,Te){var Pe=3*q(Te*Eh/9);return[de*Eh/(Yh*(2*o(2*Pe/3)-1)),q(x(Pe)*3*Yh/7)]};function hf(){return t.geoProjection(nh).scale(164.859)}function kh(de,Te){for(var Pe=(1+_)*x(Te),qe=Te,We=0,Ne;We<25&&(qe-=Ne=(x(qe/2)+x(qe)-Pe)/(.5*o(qe/2)+o(qe)),!(n(Ne)E&&--qe>0);return Ne=Pe*Pe,$e=Ne*Ne,Et=Ne*$e,[de/(.84719-.13063*Ne+Et*Et*(-.04515+.05494*Ne-.02326*$e+.00331*Et)),Pe]};function df(){return t.geoProjection(Wc).scale(175.295)}function Cu(de,Te){return[de*(1+o(Te))/2,2*(Te-b(Te/2))]}Cu.invert=function(de,Te){for(var Pe=Te/2,qe=0,We=1/0;qe<10&&n(We)>p;++qe){var Ne=o(Te/2);Te-=We=(Te-b(Te/2)-Pe)/(1-.5/(Ne*Ne))}return[2*de/(1+o(Te)),Te]};function Nf(){return t.geoProjection(Cu).scale(152.63)}var Zc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function cs(){return wo(Xe(1/0),Zc).rotate([20,0]).scale(152.63)}function Ch(de,Te){var Pe=x(Te),qe=o(Te),We=v(de);if(de===0||n(Te)===A)return[0,Te];if(Te===0)return[de,0];if(n(de)===A)return[de*qe,A*Pe];var Ne=k/(2*de)-2*de/k,$e=2*Te/k,Et=(1-$e*$e)/(Pe-$e),Dt=Ne*Ne,Ht=Et*Et,tr=1+Dt/Ht,yr=1+Ht/Dt,Dr=(Ne*Pe/Et-Ne/2)/tr,Fr=(Ht*Pe/Dt+Et/2)/yr,Yr=Dr*Dr+qe*qe/tr,vi=Fr*Fr-(Ht*Pe*Pe/Dt+Et*Pe-1)/yr;return[A*(Dr+H(Yr)*We),A*(Fr+H(vi<0?0:vi)*v(-Te*Ne)*We)]}Ch.invert=function(de,Te){de/=A,Te/=A;var Pe=de*de,qe=Te*Te,We=Pe+qe,Ne=k*k;return[de?(We-1+H((1-We)*(1-We)+4*Pe))/(2*de)*A:0,Yt(function($e){return We*(k*x($e)-2*$e)*k+4*$e*$e*(Te-x($e))+2*k*$e-Ne*Te},0)]};function Bd(){return t.geoProjection(Ch).scale(127.267)}var Jh=1.0148,Cf=.23185,pd=-.14499,Lu=.02406,$h=Jh,tu=5*Cf,Pu=7*pd,Lc=9*Lu,fl=1.790857183;function Xc(de,Te){var Pe=Te*Te;return[de,Te*(Jh+Pe*Pe*(Cf+Pe*(pd+Lu*Pe)))]}Xc.invert=function(de,Te){Te>fl?Te=fl:Te<-fl&&(Te=-fl);var Pe=Te,qe;do{var We=Pe*Pe;Pe-=qe=(Pe*(Jh+We*We*(Cf+We*(pd+Lu*We)))-Te)/($h+We*We*(tu+We*(Pu+Lc*We)))}while(n(qe)>p);return[de,Pe]};function ic(){return t.geoProjection(Xc).scale(139.319)}function yu(de,Te){if(n(Te)p&&--We>0);return $e=b(qe),[(n(Te)=0;)if(qe=Te[Et],Pe[0]===qe[0]&&Pe[1]===qe[1]){if(Ne)return[Ne,Pe];Ne=Pe}}}function ru(de){for(var Te=de.length,Pe=[],qe=de[Te-1],We=0;We0?[-qe[0],0]:[180-qe[0],180])};var Te=sh.map(function(Pe){return{face:Pe,project:de(Pe)}});return[-1,0,0,1,0,1,4,5].forEach(function(Pe,qe){var We=Te[Pe];We&&(We.children||(We.children=[])).push(Te[qe])}),Lf(Te[0],function(Pe,qe){return Te[Pe<-k/2?qe<0?6:4:Pe<0?qe<0?2:0:Peqe^Fr>qe&&Pe<(Dr-Ht)*(qe-tr)/(Fr-tr)+Ht&&(We=!We)}return We}function Dl(de,Te){var Pe=Te.stream,qe;if(!Pe)throw new Error("invalid projection");switch(de&&de.type){case"Feature":qe=Wu;break;case"FeatureCollection":qe=Ih;break;default:qe=gc;break}return qe(de,Pe)}function Ih(de,Te){return{type:"FeatureCollection",features:de.features.map(function(Pe){return Wu(Pe,Te)})}}function Wu(de,Te){return{type:"Feature",id:de.id,properties:de.properties,geometry:gc(de.geometry,Te)}}function Rc(de,Te){return{type:"GeometryCollection",geometries:de.geometries.map(function(Pe){return gc(Pe,Te)})}}function gc(de,Te){if(!de)return null;if(de.type==="GeometryCollection")return Rc(de,Te);var Pe;switch(de.type){case"Point":Pe=mc;break;case"MultiPoint":Pe=mc;break;case"LineString":Pe=Yc;break;case"MultiLineString":Pe=Yc;break;case"Polygon":Pe=nc;break;case"MultiPolygon":Pe=nc;break;case"Sphere":Pe=nc;break;default:return null}return t.geoStream(de,Te(Pe)),Pe.result()}var hl=[],iu=[],mc={point:function(de,Te){hl.push([de,Te])},result:function(){var de=hl.length?hl.length<2?{type:"Point",coordinates:hl[0]}:{type:"MultiPoint",coordinates:hl}:null;return hl=[],de}},Yc={lineStart:pc,point:function(de,Te){hl.push([de,Te])},lineEnd:function(){hl.length&&(iu.push(hl),hl=[])},result:function(){var de=iu.length?iu.length<2?{type:"LineString",coordinates:iu[0]}:{type:"MultiLineString",coordinates:iu}:null;return iu=[],de}},nc={polygonStart:pc,lineStart:pc,point:function(de,Te){hl.push([de,Te])},lineEnd:function(){var de=hl.length;if(de){do hl.push(hl[0].slice());while(++de<4);iu.push(hl),hl=[]}},polygonEnd:pc,result:function(){if(!iu.length)return null;var de=[],Te=[];return iu.forEach(function(Pe){pf(Pe)?de.push([Pe]):Te.push(Pe)}),Te.forEach(function(Pe){var qe=Pe[0];de.some(function(We){if(Ph(We[0],qe))return We.push(Pe),!0})||de.push([Pe])}),iu=[],de.length?de.length>1?{type:"MultiPolygon",coordinates:de}:{type:"Polygon",coordinates:de[0]}:null}};function gf(de){var Te=de(A,0)[0]-de(-A,0)[0];function Pe(qe,We){var Ne=n(qe)0?qe-k:qe+k,We),Et=($e[0]-$e[1])*_,Dt=($e[0]+$e[1])*_;if(Ne)return[Et,Dt];var Ht=Te*_,tr=Et>0^Dt>0?-1:1;return[tr*Et-v(Dt)*Ht,tr*Dt-v(Et)*Ht]}return de.invert&&(Pe.invert=function(qe,We){var Ne=(qe+We)*_,$e=(We-qe)*_,Et=n(Ne)<.5*Te&&n($e)<.5*Te;if(!Et){var Dt=Te*_,Ht=Ne>0^$e>0?-1:1,tr=-Ht*qe+($e>0?1:-1)*Dt,yr=-Ht*We+(Ne>0?1:-1)*Dt;Ne=(-tr-yr)*_,$e=(tr-yr)*_}var Dr=de.invert(Ne,$e);return Et||(Dr[0]+=Ne>0?k:-k),Dr}),t.geoProjection(Pe).rotate([-90,-90,45]).clipAngle(180-.001)}function pt(){return gf(ii).scale(176.423)}function Nt(){return gf(To).scale(111.48)}function br(de,Te){if(!(0<=(Te=+Te)&&Te<=20))throw new Error("invalid digits");function Pe(Ht){var tr=Ht.length,yr=2,Dr=new Array(tr);for(Dr[0]=+Ht[0].toFixed(Te),Dr[1]=+Ht[1].toFixed(Te);yr2||Fr[0]!=tr[0]||Fr[1]!=tr[1])&&(yr.push(Fr),tr=Fr)}return yr.length===1&&Ht.length>1&&yr.push(Pe(Ht[Ht.length-1])),yr}function Ne(Ht){return Ht.map(We)}function $e(Ht){if(Ht==null)return Ht;var tr;switch(Ht.type){case"GeometryCollection":tr={type:"GeometryCollection",geometries:Ht.geometries.map($e)};break;case"Point":tr={type:"Point",coordinates:Pe(Ht.coordinates)};break;case"MultiPoint":tr={type:Ht.type,coordinates:qe(Ht.coordinates)};break;case"LineString":tr={type:Ht.type,coordinates:We(Ht.coordinates)};break;case"MultiLineString":case"Polygon":tr={type:Ht.type,coordinates:Ne(Ht.coordinates)};break;case"MultiPolygon":tr={type:"MultiPolygon",coordinates:Ht.coordinates.map(Ne)};break;default:return Ht}return Ht.bbox!=null&&(tr.bbox=Ht.bbox),tr}function Et(Ht){var tr={type:"Feature",properties:Ht.properties,geometry:$e(Ht.geometry)};return Ht.id!=null&&(tr.id=Ht.id),Ht.bbox!=null&&(tr.bbox=Ht.bbox),tr}if(de!=null)switch(de.type){case"Feature":return Et(de);case"FeatureCollection":{var Dt={type:"FeatureCollection",features:de.features.map(Et)};return de.bbox!=null&&(Dt.bbox=de.bbox),Dt}default:return $e(de)}return de}function vr(de){var Te=x(de);function Pe(qe,We){var Ne=Te?b(qe*Te/2)/Te:qe/2;if(!We)return[2*Ne,-de];var $e=2*i(Ne*x(We)),Et=1/b(We);return[x($e)*Et,We+(1-o($e))*Et-de]}return Pe.invert=function(qe,We){if(n(We+=de)p&&--Et>0);var Dr=qe*(Ht=b($e)),Fr=b(n(We)0?A:-A)*(Dt+We*(tr-$e)/2+We*We*(tr-2*Dt+$e)/2)]}wi.invert=function(de,Te){var Pe=Te/A,qe=Pe*90,We=f(18,n(qe/5)),Ne=c(0,l(We));do{var $e=di[Ne][1],Et=di[Ne+1][1],Dt=di[f(19,Ne+2)][1],Ht=Dt-$e,tr=Dt-2*Et+$e,yr=2*(n(Pe)-Et)/Ht,Dr=tr/Ht,Fr=yr*(1-Dr*yr*(1-2*Dr*yr));if(Fr>=0||Ne===1){qe=(Te>=0?5:-5)*(Fr+We);var Yr=50,vi;do We=f(18,n(qe)/5),Ne=l(We),Fr=We-Ne,$e=di[Ne][1],Et=di[Ne+1][1],Dt=di[f(19,Ne+2)][1],qe-=(vi=(Te>=0?A:-A)*(Et+Fr*(Dt-$e)/2+Fr*Fr*(Dt-2*Et+$e)/2)-Te)*P;while(n(vi)>E&&--Yr>0);break}}while(--Ne>=0);var Ii=di[Ne][0],Pi=di[Ne+1][0],en=di[f(19,Ne+2)][0];return[de/(Pi+Fr*(en-Ii)/2+Fr*Fr*(en-2*Pi+Ii)/2),qe*T]};function qi(){return t.geoProjection(wi).scale(152.63)}function Ji(de){function Te(Pe,qe){var We=o(qe),Ne=(de-1)/(de-We*o(Pe));return[Ne*We*x(Pe),Ne*x(qe)]}return Te.invert=function(Pe,qe){var We=Pe*Pe+qe*qe,Ne=H(We),$e=(de-H(1-We*(de+1)/(de-1)))/((de-1)/Ne+Ne/(de-1));return[a(Pe*$e,Ne*H(1-$e*$e)),Ne?q(qe*$e/Ne):0]},Te}function hn(de,Te){var Pe=Ji(de);if(!Te)return Pe;var qe=o(Te),We=x(Te);function Ne($e,Et){var Dt=Pe($e,Et),Ht=Dt[1],tr=Ht*We/(de-1)+qe;return[Dt[0]*qe/tr,Ht/tr]}return Ne.invert=function($e,Et){var Dt=(de-1)/(de-1-Et*We);return Pe.invert(Dt*$e,Dt*Et*qe)},Ne}function Mi(){var de=2,Te=0,Pe=t.geoProjectionMutator(hn),qe=Pe(de,Te);return qe.distance=function(We){return arguments.length?Pe(de=+We,Te):de},qe.tilt=function(We){return arguments.length?Pe(de,Te=We*T):Te*P},qe.scale(432.147).clipAngle(V(1/de)*P-1e-6)}var Oi=1e-4,Di=1e4,yi=-180,Ln=yi+Oi,Aa=180,wa=Aa-Oi,Ma=-90,za=Ma+Oi,kn=90,sn=kn-Oi;function Ba(de){return de.length>0}function ho(de){return Math.floor(de*Di)/Di}function jo(de){return de===Ma||de===kn?[0,de]:[yi,ho(de)]}function bs(de){var Te=de[0],Pe=de[1],qe=!1;return Te<=Ln?(Te=yi,qe=!0):Te>=wa&&(Te=Aa,qe=!0),Pe<=za?(Pe=Ma,qe=!0):Pe>=sn&&(Pe=kn,qe=!0),qe?[Te,Pe]:de}function Ko(de){return de.map(bs)}function ps(de,Te,Pe){for(var qe=0,We=de.length;qe=wa||tr<=za||tr>=sn){Ne[$e]=bs(Dt);for(var yr=$e+1;yrLn&&Frza&&Yr=Et)break;Pe.push({index:-1,polygon:Te,ring:Ne=Ne.slice(yr-1)}),Ne[0]=jo(Ne[0][1]),$e=-1,Et=Ne.length}}}}function Fo(de){var Te,Pe=de.length,qe={},We={},Ne,$e,Et,Dt,Ht;for(Te=0;Te0?k-Et:Et)*P],Ht=t.geoProjection(de($e)).rotate(Dt),tr=t.geoRotation(Dt),yr=Ht.center;return delete Ht.rotate,Ht.center=function(Dr){return arguments.length?yr(tr(Dr)):tr.invert(yr())},Ht.clipAngle(90)}function Zo(de){var Te=o(de);function Pe(qe,We){var Ne=t.geoGnomonicRaw(qe,We);return Ne[0]*=Te,Ne}return Pe.invert=function(qe,We){return t.geoGnomonicRaw.invert(qe/Te,We)},Pe}function nu(){return Ru([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Ru(de,Te){return fs(Zo,de,Te)}function ac(de){if(!(de*=2))return t.geoAzimuthalEquidistantRaw;var Te=-de/2,Pe=-Te,qe=de*de,We=b(Pe),Ne=.5/x(Pe);function $e(Et,Dt){var Ht=V(o(Dt)*o(Et-Te)),tr=V(o(Dt)*o(Et-Pe)),yr=Dt<0?-1:1;return Ht*=Ht,tr*=tr,[(Ht-tr)/(2*de),yr*H(4*qe*tr-(qe-Ht+tr)*(qe-Ht+tr))/(2*de)]}return $e.invert=function(Et,Dt){var Ht=Dt*Dt,tr=o(H(Ht+(Dr=Et+Te)*Dr)),yr=o(H(Ht+(Dr=Et+Pe)*Dr)),Dr,Fr;return[a(Fr=tr-yr,Dr=(tr+yr)*We),(Dt<0?-1:1)*V(H(Dr*Dr+Fr*Fr)*Ne)]},$e}function mf(){return bu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function bu(de,Te){return fs(ac,de,Te)}function Kc(de,Te){if(n(Te)p&&--Et>0);return[v(de)*(H(We*We+4)+We)*k/4,A*$e]};function _c(){return t.geoProjection(yc).scale(127.16)}function ue(de,Te,Pe,qe,We){function Ne($e,Et){var Dt=Pe*x(qe*Et),Ht=H(1-Dt*Dt),tr=H(2/(1+Ht*o($e*=We)));return[de*Ht*tr*x($e),Te*Dt*tr]}return Ne.invert=function($e,Et){var Dt=$e/de,Ht=Et/Te,tr=H(Dt*Dt+Ht*Ht),yr=2*q(tr/2);return[a($e*b(yr),de*tr)/We,tr&&q(Et*x(yr)/(Te*Pe*tr))/qe]},Ne}function w(de,Te,Pe,qe){var We=k/3;de=c(de,p),Te=c(Te,p),de=f(de,A),Te=f(Te,k-p),Pe=c(Pe,0),Pe=f(Pe,100-p),qe=c(qe,p);var Ne=Pe/100+1,$e=qe/100,Et=V(Ne*o(We))/We,Dt=x(de)/x(Et*A),Ht=Te/k,tr=H($e*x(de/2)/x(Te/2)),yr=tr/H(Ht*Dt*Et),Dr=1/(tr*H(Ht*Dt*Et));return ue(yr,Dr,Dt,Et,Ht)}function B(){var de=65*T,Te=60*T,Pe=20,qe=200,We=t.geoProjectionMutator(w),Ne=We(de,Te,Pe,qe);return Ne.poleline=function($e){return arguments.length?We(de=+$e*T,Te,Pe,qe):de*P},Ne.parallels=function($e){return arguments.length?We(de,Te=+$e*T,Pe,qe):Te*P},Ne.inflation=function($e){return arguments.length?We(de,Te,Pe=+$e,qe):Pe},Ne.ratio=function($e){return arguments.length?We(de,Te,Pe,qe=+$e):qe},Ne.scale(163.775)}function ee(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var te=4*k+3*H(3),se=2*H(2*k*H(3)/te),Fe=Rt(se*H(3)/k,se,te/6);function Ue(){return t.geoProjection(Fe).scale(176.84)}function tt(de,Te){return[de*H(1-3*Te*Te/(k*k)),Te]}tt.invert=function(de,Te){return[de/H(1-3*Te*Te/(k*k)),Te]};function mt(){return t.geoProjection(tt).scale(152.63)}function Bt(de,Te){var Pe=o(Te),qe=o(de)*Pe,We=1-qe,Ne=o(de=a(x(de)*Pe,-x(Te))),$e=x(de);return Pe=H(1-qe*qe),[$e*Pe-Ne*We,-Ne*Pe-$e*We]}Bt.invert=function(de,Te){var Pe=(de*de+Te*Te)/-2,qe=H(-Pe*(2+Pe)),We=Te*Pe+de*qe,Ne=de*Pe-Te*qe,$e=H(Ne*Ne+We*We);return[a(qe*We,$e*(1+Pe)),$e?-q(qe*Ne/$e):0]};function Ut(){return t.geoProjection(Bt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function fr(de,Te){var Pe=Ee(de,Te);return[(Pe[0]+de/A)/2,(Pe[1]+Te)/2]}fr.invert=function(de,Te){var Pe=de,qe=Te,We=25;do{var Ne=o(qe),$e=x(qe),Et=x(2*qe),Dt=$e*$e,Ht=Ne*Ne,tr=x(Pe),yr=o(Pe/2),Dr=x(Pe/2),Fr=Dr*Dr,Yr=1-Ht*yr*yr,vi=Yr?V(Ne*yr)*H(Ii=1/Yr):Ii=0,Ii,Pi=.5*(2*vi*Ne*Dr+Pe/A)-de,en=.5*(vi*$e+qe)-Te,Mn=.5*Ii*(Ht*Fr+vi*Ne*yr*Dt)+.5/A,da=Ii*(tr*Et/4-vi*$e*Dr),Qn=.125*Ii*(Et*Dr-vi*$e*Ht*tr),Ua=.5*Ii*(Dt*yr+vi*Fr*Ne)+.5,xo=da*Qn-Ua*Mn,Ha=(en*da-Pi*Ua)/xo,oo=(Pi*Qn-en*Mn)/xo;Pe-=Ha,qe-=oo}while((n(Ha)>p||n(oo)>p)&&--We>0);return[Pe,qe]};function Ar(){return t.geoProjection(fr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=we,e.geoAiryRaw=ae,e.geoAitoff=ke,e.geoAitoffRaw=Ee,e.geoArmadillo=K,e.geoArmadilloRaw=ye,e.geoAugust=pe,e.geoAugustRaw=ce,e.geoBaker=Le,e.geoBakerRaw=Me,e.geoBerghaus=Se,e.geoBerghausRaw=je,e.geoBertin1953=Ft,e.geoBertin1953Raw=ot,e.geoBoggs=_t,e.geoBoggsRaw=yt,e.geoBonne=Gt,e.geoBonneRaw=ft,e.geoBottomley=hr,e.geoBottomleyRaw=$t,e.geoBromley=Nr,e.geoBromleyRaw=_r,e.geoChamberlin=Je,e.geoChamberlinRaw=rt,e.geoChamberlinAfrica=Ze,e.geoCollignon=Ie,e.geoCollignonRaw=ht,e.geoCraig=be,e.geoCraigRaw=le,e.geoCraster=Ot,e.geoCrasterRaw=xt,e.geoCylindricalEqualArea=Jr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Gr,e.geoCylindricalStereographicRaw=ni,e.geoEckert1=Ti,e.geoEckert1Raw=ri,e.geoEckert2=Yi,e.geoEckert2Raw=an,e.geoEckert3=An,e.geoEckert3Raw=Xi,e.geoEckert4=Un,e.geoEckert4Raw=Qi,e.geoEckert5=It,e.geoEckert5Raw=Xn,e.geoEckert6=Vt,e.geoEckert6Raw=ct,e.geoEisenlohr=qr,e.geoEisenlohrRaw=gr,e.geoFahey=mi,e.geoFaheyRaw=Hr,e.geoFoucaut=ki,e.geoFoucautRaw=Ei,e.geoFoucautSinusoidal=ji,e.geoFoucautSinusoidalRaw=Ri,e.geoGilbert=Gn,e.geoGingery=Vo,e.geoGingeryRaw=sa,e.geoGinzburg4=_s,e.geoGinzburg4Raw=go,e.geoGinzburg5=As,e.geoGinzburg5Raw=Vs,e.geoGinzburg6=Lr,e.geoGinzburg6Raw=wt,e.geoGinzburg8=Xr,e.geoGinzburg8Raw=Pr,e.geoGinzburg9=ai,e.geoGinzburg9Raw=bi,e.geoGringorten=Tn,e.geoGringortenRaw=ii,e.geoGuyou=Es,e.geoGuyouRaw=To,e.geoHammer=At,e.geoHammerRaw=Xe,e.geoHammerRetroazimuthal=wl,e.geoHammerRetroazimuthalRaw=Zs,e.geoHealpix=Ql,e.geoHealpixRaw=ml,e.geoHill=fc,e.geoHillRaw=Hu,e.geoHomolosine=uo,e.geoHomolosineRaw=Rl,e.geoHufnagel=Ks,e.geoHufnagelRaw=Zl,e.geoHyperelliptical=Mo,e.geoHyperellipticalRaw=jn,e.geoInterrupt=wo,e.geoInterruptedBoggs=rh,e.geoInterruptedHomolosine=Hc,e.geoInterruptedMollweide=Cs,e.geoInterruptedMollweideHemispheres=kc,e.geoInterruptedSinuMollweide=Gc,e.geoInterruptedSinusoidal=Bf,e.geoKavrayskiy7=ff,e.geoKavrayskiy7Raw=ns,e.geoLagrange=Hl,e.geoLagrangeRaw=ih,e.geoLarrivee=Cc,e.geoLarriveeRaw=hc,e.geoLaskowski=$s,e.geoLaskowskiRaw=xs,e.geoLittrow=Ms,e.geoLittrowRaw=us,e.geoLoximuthal=Ml,e.geoLoximuthalRaw=dc,e.geoMiller=Ls,e.geoMillerRaw=ec,e.geoModifiedStereographic=Sl,e.geoModifiedStereographicRaw=ov,e.geoModifiedStereographicAlaska=tc,e.geoModifiedStereographicGs48=uu,e.geoModifiedStereographicGs50=Sh,e.geoModifiedStereographicMiller=jc,e.geoModifiedStereographicLee=kf,e.geoMollweide=xr,e.geoMollweideRaw=Xt,e.geoMtFlatPolarParabolic=hf,e.geoMtFlatPolarParabolicRaw=nh,e.geoMtFlatPolarQuartic=Kh,e.geoMtFlatPolarQuarticRaw=kh,e.geoMtFlatPolarSinusoidal=ah,e.geoMtFlatPolarSinusoidalRaw=rc,e.geoNaturalEarth2=df,e.geoNaturalEarth2Raw=Wc,e.geoNellHammer=Nf,e.geoNellHammerRaw=Cu,e.geoInterruptedQuarticAuthalic=cs,e.geoNicolosi=Bd,e.geoNicolosiRaw=Ch,e.geoPatterson=ic,e.geoPattersonRaw=Xc,e.geoPolyconic=Qs,e.geoPolyconicRaw=yu,e.geoPolyhedral=Lf,e.geoPolyhedralButterfly=zs,e.geoPolyhedralCollignon=Lh,e.geoPolyhedralWaterman=Ps,e.geoProject=Dl,e.geoGringortenQuincuncial=pt,e.geoPeirceQuincuncial=Nt,e.geoPierceQuincuncial=Nt,e.geoQuantize=br,e.geoQuincuncial=gf,e.geoRectangularPolyconic=Vr,e.geoRectangularPolyconicRaw=vr,e.geoRobinson=qi,e.geoRobinsonRaw=wi,e.geoSatellite=Mi,e.geoSatelliteRaw=hn,e.geoSinuMollweide=Qu,e.geoSinuMollweideRaw=ua,e.geoSinusoidal=kt,e.geoSinusoidalRaw=St,e.geoStitch=Is,e.geoTimes=Za,e.geoTimesRaw=ra,e.geoTwoPointAzimuthal=Ru,e.geoTwoPointAzimuthalRaw=Zo,e.geoTwoPointAzimuthalUsa=nu,e.geoTwoPointEquidistant=bu,e.geoTwoPointEquidistantRaw=ac,e.geoTwoPointEquidistantUsa=mf,e.geoVanDerGrinten=Du,e.geoVanDerGrintenRaw=Kc,e.geoVanDerGrinten2=Ia,e.geoVanDerGrinten2Raw=Dc,e.geoVanDerGrinten3=Jc,e.geoVanDerGrinten3Raw=Ja,e.geoVanDerGrinten4=_c,e.geoVanDerGrinten4Raw=yc,e.geoWagner=B,e.geoWagner7=ee,e.geoWagnerRaw=w,e.geoWagner4=Ue,e.geoWagner4Raw=Fe,e.geoWagner6=mt,e.geoWagner6Raw=tt,e.geoWiechel=Ut,e.geoWiechelRaw=Bt,e.geoWinkel3=Ar,e.geoWinkel3Raw=fr,Object.defineProperty(e,"__esModule",{value:!0})})});var CDe=_e((Pgr,kDe)=>{"use strict";var Zh=ya(),IX=Mr(),rFt=_a(),X5=Math.PI/180,G2=180/Math.PI,DX={cursor:"pointer"},zX={cursor:"auto"};function iFt(e,t){var r=e.projection,n;return t._isScoped?n=nFt:t._isClipped?n=oFt:n=aFt,n(e,r)}kDe.exports=iFt;function FX(e,t){return Zh.behavior.zoom().translate(t.translate()).scale(t.scale())}function qX(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=IX.nestedProperty(o,h).get(),rFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=IX.nestedProperty(l,h);v.get()!==d&&(v.set(d),IX.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function nFt(e,t){var r=FX(e,t);function n(){Zh.select(this).style(DX)}function i(){t.scale(Zh.event.scale).translate(Zh.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){Zh.select(this).style(zX),qX(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function aFt(e,t){var r=FX(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(k){return t.invert(k)}function v(k){var A=d(k);if(!A)return!0;var L=t(A);return Math.abs(L[0]-k[0])>n||Math.abs(L[1]-k[1])>n}function x(){Zh.select(this).style(DX),i=Zh.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=Zh.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(Zh.event.scale),t.translate([o[0],Zh.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var k=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-k[0]})}function p(){Zh.select(this).style(zX),h&&qX(e,t,E)}function E(k){var A=t.rotate(),L=t.invert(e.midPt);k("projection.rotation.lon",-A[0]),k("center.lon",L[0]),k("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",p),r}function oFt(e,t){var r={r:t.rotate(),k:t.scale()},n=FX(e,t),i=vFt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){Zh.select(this).style(DX);var h=Zh.mouse(this),d=t.rotate(),v=d,x=t.translate(),b=sFt(d);s=Pz(t,h),o.call(n,"zoom",function(){var p=Zh.mouse(this);if(t.scale(r.k=Zh.event.scale),!s)h=p,s=Pz(t,h);else if(Pz(t,p)){t.rotate(d).translate(x);var E=Pz(t,p),k=uFt(s,E),A=fFt(lFt(b,k)),L=r.r=cFt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){Zh.select(this).style(zX),o.call(n,"zoom",null),c(i.of(this,arguments)),qX(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return Zh.rebind(n,i,"on")}function Pz(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&hFt(r)}function sFt(e){var t=.5*e[0]*X5,r=.5*e[1]*X5,n=.5*e[2]*X5,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function lFt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function uFt(e,t){if(!(!e||!t)){var r=dFt(e,t),n=Math.sqrt(EDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,EDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function cFt(e,t,r){var n=RX(t,2,e[0]);n=RX(n,1,e[1]),n=RX(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*G2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*G2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,x=(Math.atan2(u,s)-Math.atan2(o,h))*G2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*G2,p=MDe(r[0],r[1],d,x),E=MDe(r[0],r[1],v,b);return p<=E?[d,x,r[2]]:[v,b,r[2]]}function MDe(e,t,r,n){var i=SDe(r-e),a=SDe(n-t);return Math.sqrt(i*i+a*a)}function SDe(e){return(e%360+540)%360-180}function RX(e,t,r){var n=r*X5,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function fFt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*G2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*G2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*G2]}function hFt(e){var t=e[0]*X5,r=e[1]*X5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function EDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=ya(),NX=PX(),pFt=NX.geoPath,gFt=NX.geoDistance,mFt=ADe(),yFt=_a(),ek=Mr(),_Ft=ek.strTranslate,Iz=ha(),QE=ro(),LDe=Nc(),xFt=Xu(),BX=Ka(),PDe=wg().getAutoRange,OX=gv(),bFt=wf().prepSelect,wFt=wf().clearOutline,TFt=wf().selectOnClick,AFt=CDe(),fp=YE(),MFt=nx(),RDe=gz(),SFt=gX().feature;function DDe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $g=DDe.prototype;zDe.exports=function(t){return new DDe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in fp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),xFt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=EFt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},x=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=PDe(r,u),c.range=PDe(r,c);var p=(u.range[0]+u.range[1])/2,E=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:E};else if(n._isClipped){d={lon:p,lat:E},v={lon:p,lat:E,roll:v.roll};var k=o.type,A=fp.lonaxisSpan[k]/2||180,L=fp.lataxisSpan[k]/2||90;x=[p-A,p+A],b=[E-L,E+L]}else d={lon:p,lat:E},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var _=IDe(x,b);f.fitExtent(h,_);var C=this.bounds=f.getBounds(_),S=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(IDe(u.range,c.range)),T=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*S):ek.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*S);var F=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(f.translate([g[0]+(F[0]-g[0]),g[1]+(F[1]-g[1])]).clipExtent(C),n._isAlbersUsa){var q=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(q[0]-V[0]),V[1]-(q[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fp.lineLayers[h]}function l(h){return!!fp.fillLayers[h]}var u=this.hasChoropleth?fp.layersForChoropleth:fp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=fp.layerNameToAdjective[h];h==="frame"?d.datum(fp.sphereSVG):s(h)||l(h)?d.datum(SFt(n,n.objects[h])):o(h)&&d.datum(kFt(h,t,e)).call(Iz.stroke,t[h].gridcolor).call(QE.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(Iz.stroke,t[v+"color"]).call(QE.dashLine,"",t[v+"width"]):l(h)&&d.call(Iz.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;QE.setRect(this.clipRect,i,a,o,s),this.bgRect.call(QE.setRect,i,a,o,s).call(Iz.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];yFt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&wFt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(AFt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){bFt(f,h,d,c,a)},OX.init(c)),i.on("mousemove",function(){var f=r.projection.invert(ek.getPositionFromD3Event());if(!f)return OX.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},LDe.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||OX.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&TFt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&LDe.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(QE.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},BX.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},ek.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?_Ft(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function EFt(e){var t=e.projection,r=t.type,n=fp.projNames[r];n="geo"+ek.titleCase(n);for(var i=NX[n]||mFt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return pFt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(fp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fp.clipPad),a}function kFt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=fp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(E,k){return[E,k]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(E,k){return[k,E]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};BX.setConvert(c,r);var f=BX.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var UX=_e((Rgr,BDe)=>{"use strict";var K5=dh(),CFt=Ju().attributes,LFt=Ed().dash,Y5=YE(),PFt=Bu().overrideAll,qDe=Y1(),ODe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:K5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:LFt},IFt=BDe.exports=PFt({domain:CFt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:qDe(Y5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:qDe(Y5.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:K5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Y5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Y5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Y5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Y5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:K5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:K5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:K5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:K5.background},lonaxis:ODe,lataxis:ODe},"plot","from-root");IFt.uirevision={valType:"any",editType:"none"}});var VDe=_e((Dgr,UDe)=>{"use strict";var Rz=Mr(),RFt=C_(),DFt=kd().getSubplotData,Dz=YE(),zFt=UX(),NDe=Dz.axesNames;UDe.exports=function(t,r,n){RFt(t,r,n,{type:"geo",attributes:zFt,handleDefaults:FFt,fullData:n,partition:"y"})};function FFt(e,t,r,n){var i=DFt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),l=Dz.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!Dz.lonaxisSpan[u];if(e.visible===!1){var x=Rz.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),p,E=0;E0&&q<0&&(q+=360);var V=(F+q)/2,H;if(!c){var X=f?l.projRotate:[V,0,0];H=r("projection.rotation.lon",X[0]),r("projection.rotation.lat",X[1]),r("projection.rotation.roll",X[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var G,N;if(c?(G=-96.6,N=38.7):(G=f?V:H,N=(T[0]+T[1])/2),r("center.lon",G),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var Z=l.projParallels||[0,60];r("projection.parallels",Z)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var ie=r("fitbounds");ie&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var VX=_e((zgr,jDe)=>{"use strict";var qFt=kd().getSubplotCalcData,OFt=Mr().counterRegex,BFt=FDe(),jm="geo",HDe=OFt(jm),GDe={};GDe[jm]={valType:"subplotid",dflt:jm,editType:"calc"};function NFt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[jm],i=0;i{"use strict";WDe.exports={attributes:H2(),supplyDefaults:ERe(),colorbar:Kd(),formatLabels:LRe(),calc:vz(),calcGeoJSON:LX().calcGeoJSON,plot:LX().plot,style:SX(),styleOnSelect:op().styleOnSelect,hoverPoints:pDe(),eventData:mDe(),selectPoints:xDe(),moduleType:"trace",name:"scattergeo",basePlotModule:VX(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var YDe=_e((qgr,XDe)=>{"use strict";XDe.exports=ZDe()});var J5=_e((Ogr,$De)=>{"use strict";var HFt=Ho().hovertemplateAttrs,ox=H2(),GFt=Jl(),KDe=vl(),jFt=dh().defaultLine,ax=to().extendFlat,JDe=ox.marker.line;$De.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},JDe.color,{dflt:jFt}),width:ax({},JDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},KDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:HFt(),showlegend:ax({},KDe.showlegend,{dflt:!1})},GFt("",{cLetter:"z",editTypeOverride:"calc"}))});var eze=_e((Bgr,QDe)=>{"use strict";var zz=Mr(),WFt=Uh(),ZFt=J5();QDe.exports=function(t,r,n,i){function a(h,d){return zz.coerce(t,r,ZFt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&zz.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||zz.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),WFt(t,r,i,a,{prefix:"",cLetter:"z"}),zz.coerceSelectionMarkerOpacity(r,a)}});var Fz=_e((Ngr,ize)=>{"use strict";var tze=ao(),XFt=Jo().BADNUM,YFt=zv(),KFt=km(),JFt=F0();function rze(e){return e&&typeof e=="string"}ize.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return rze(c)||tze(c)}:a=rze;for(var o=0;o{"use strict";var $Ft=ya(),QFt=ha(),HX=ro(),e7t=Su();function t7t(e,t){t&&nze(e,t)}function nze(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=e7t.makeColorScaleFuncFromTrace(r);i.each(function(l){$Ft.select(this).attr("fill",s(l.z)).call(QFt.stroke,l.mlc||o.color).call(HX.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),HX.selectedPointStyle(i,r)}function r7t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?HX.selectedPointStyle(r.selectAll(".choroplethlocation"),n):nze(e,t)}aze.exports={style:t7t,styleOnSelect:r7t}});var GX=_e((Vgr,lze)=>{"use strict";var i7t=ya(),oze=Mr(),$5=nx(),n7t=gz().getTopojsonFeatures,sze=wg().findExtremes,a7t=qz().style;function o7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");oze.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=i7t.select(this),o=a.selectAll("path.choroplethlocation").data(oze.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),a7t(e,i)})}function s7t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$5.extractTraceFeature(e):n7t(r,i.topojson),l=[],u=[],c=0;c{"use strict";var l7t=Ka(),u7t=J5(),c7t=Mr().fillText;uze.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var Bz=_e((Ggr,cze)=>{"use strict";cze.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var Nz=_e((jgr,fze)=>{"use strict";fze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";hze.exports={attributes:J5(),supplyDefaults:eze(),colorbar:S_(),calc:Fz(),calcGeoJSON:GX().calcGeoJSON,plot:GX().plot,style:qz().style,styleOnSelect:qz().styleOnSelect,hoverPoints:Oz(),eventData:Bz(),selectPoints:Nz(),moduleType:"trace",name:"choropleth",basePlotModule:VX(),categories:["geo","noOpacity","showLegend"],meta:{}}});var pze=_e((Zgr,vze)=>{"use strict";vze.exports=dze()});var Uz=_e((Xgr,mze)=>{"use strict";var h7t=_a(),s0=Mr(),d7t=oT();function v7t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var x=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),E=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(x,b),Math.min(l._rl[0],l._rl[1]),Math.max(x,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(x,b),Math.min(p,E),Math.max(x,b),Math.max(p,E))}else v=a.ids;var k,A,L,_,C,S,g,P,T,F=d;if(n==="x"){var q=!!o.xperiodalignment,V=!!o.yperiodalignment;for(C=0;C=Math.min(H,X)&&f<=Math.max(H,X)?0:1/0}if(S=Math.min(G,N)&&h<=Math.max(G,N)?0:1/0}T=Math.sqrt(S*S+g*g),A=v[C]}}}else for(C=v.length-1;C>-1;C--)k=v[C],L=u[k],_=c[k],S=s.c2p(L)-f,g=l.c2p(_)-h,P=Math.sqrt(S*S+g*g),P{"use strict";var yze=20;_ze.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:yze,SYMBOL_STROKE:yze/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var tk=_e((Kgr,Tze)=>{"use strict";var p7t=vl(),g7t=Mu(),m7t=Eg(),Af=Uc(),xze=Oc().axisHoverFormat,bze=Jl(),y7t=Y1(),jX=to().extendFlat,_7t=Bu().overrideAll,x7t=sx().DASHES,wze=Af.line,r1=Af.marker,b7t=r1.line,Q5=Tze.exports=_7t({x:Af.x,x0:Af.x0,dx:Af.dx,y:Af.y,y0:Af.y0,dy:Af.dy,xperiod:Af.xperiod,yperiod:Af.yperiod,xperiod0:Af.xperiod0,yperiod0:Af.yperiod0,xperiodalignment:Af.xperiodalignment,yperiodalignment:Af.yperiodalignment,xhoverformat:xze("x"),yhoverformat:xze("y"),text:Af.text,hovertext:Af.hovertext,textposition:Af.textposition,textfont:g7t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:wze.color,width:wze.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:y7t(x7t),dflt:"solid"}},marker:jX({},bze("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:jX({},bze("marker.line"),{width:b7t.width})}),connectgaps:Af.connectgaps,fill:jX({},Af.fill,{dflt:"none"}),fillcolor:m7t(),selected:{marker:Af.selected.marker,textfont:Af.selected.textfont},unselected:{marker:Af.unselected.marker,textfont:Af.unselected.textfont},opacity:p7t.opacity},"calc","nested");Q5.x.editType=Q5.y.editType=Q5.x0.editType=Q5.y0.editType="calc+clearAxisTypes";Q5.hovertemplate=Af.hovertemplate;Q5.texttemplate=Af.texttemplate});var Vz=_e(WX=>{"use strict";var Aze=sx();WX.isOpenSymbol=function(e){return typeof e=="string"?Aze.OPEN_RE.test(e):e%200>100};WX.isDotSymbol=function(e){return typeof e=="string"?Aze.DOT_RE.test(e):e>200}});var Eze=_e(($gr,Sze)=>{"use strict";var Mze=Mr(),w7t=_a(),T7t=Vz(),A7t=tk(),M7t=Mm(),Hz=lu(),S7t=K3(),E7t=Pg(),k7t=$p(),C7t=R0(),L7t=Ig(),P7t=D0();Sze.exports=function(t,r,n,i){function a(d,v){return Mze.coerce(t,r,A7t,d,v)}var o=t.marker?T7t.isOpenSymbol(t.marker.symbol):!1,s=Hz.isBubble(t),l=S7t(t,r,i,a);if(!l){r.visible=!1;return}E7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var I7t=JP();kze.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),I7t(t,r,n)}});var Pze=_e((emr,Lze)=>{"use strict";function R7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function D7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function z7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function F7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function q7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function rk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}Lze.exports={ge:function(e,t,r,n,i){return rk(e,t,r,n,i,R7t)},gt:function(e,t,r,n,i){return rk(e,t,r,n,i,D7t)},lt:function(e,t,r,n,i){return rk(e,t,r,n,i,z7t)},le:function(e,t,r,n,i){return rk(e,t,r,n,i,F7t)},eq:function(e,t,r,n,i){return rk(e,t,r,n,i,q7t)}}});var Wm=_e((tmr,Rze)=>{"use strict";Rze.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=Ize(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var O7t=Wm();Dze.exports=B7t;function B7t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=O7t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var j2=_e((imr,zze)=>{"use strict";zze.exports=N7t;function N7t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{"use strict";Fze.exports=function(){for(var t=0;t{var Oze=YD();Bze.exports=U7t;function U7t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(Oze(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";Nze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var Hze=_e((smr,Vze)=>{"use strict";Vze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var Kze=_e((lmr,Yze)=>{"use strict";var Gze=Pze(),jze=XD(),V7t=eA(),H7t=j2(),Wze=Wm(),XX=qze(),G7t=W2(),j7t=Uze(),W7t=YD(),Zze=Hze(),Z7t=1073741824;Yze.exports=function(t,r){r||(r={}),t=G7t(t,"float64"),r=Wze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=XX(r.maxDepth,255),i=XX(r.bounds,H7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=Xze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(W7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||_>Z7t){for(let N=0;Nwe||g>Ee||P=F||ie===ae)return;let ke=l[Z];ae===void 0&&(ae=ke.length);for(let je=ie;je=A&&Xe<=_&<>=L&<<=C&&q.push(Se)}let ye=u[Z],K=ye[ie*4+0],ce=ye[ie*4+1],pe=ye[ie*4+2],xe=ye[ie*4+3],Ce=H(ye,ie+1),Me=N*.5,Le=Z+1;V(X,G,Me,Le,K,ce||pe||xe||Ce),V(X,G+Me,Me,Le,ce,pe||xe||Ce),V(X+Me,G,Me,Le,pe,xe||Ce),V(X+Me,G+Me,Me,Le,xe,Ce)}function H(X,G){let N=null,Z=0;for(;N===null;)if(N=X[G*4+Z],Z++,Z>X.length)return null;return N}return q}function x(p,E,k,A,L){let _=[];for(let C=0;C{"use strict";Jze.exports=Kze()});var YX=_e((cmr,$ze)=>{$ze.exports=X7t;function X7t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(jz,"__esModule",{value:!0});var Y7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ik=Math.PI*2,KX=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},K7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},Qze=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},J7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),x=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*x;p<0&&(p=0),p/=d*b+v*x,p=Math.sqrt(p)*(s===l?-1:1);var E=p*a/o*h,k=p*-o/a*f,A=c*E-u*k+(t+n)/2,L=u*E+c*k+(r+i)/2,_=(f-E)/a,C=(h-k)/o,S=(-f-E)/a,g=(-h-k)/o,P=Qze(1,0,_,C),T=Qze(_,C,S,g);return l===0&&T>0&&(T-=ik),l===1&&T<0&&(T+=ik),[A,L,P,T]},$7t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var x=Math.sin(u*ik/360),b=Math.cos(u*ik/360),p=b*(r-i)/2+x*(n-a)/2,E=-x*(r-i)/2+b*(n-a)/2;if(p===0&&E===0)return[];o=Math.abs(o),s=Math.abs(s);var k=Math.pow(p,2)/Math.pow(o,2)+Math.pow(E,2)/Math.pow(s,2);k>1&&(o*=Math.sqrt(k),s*=Math.sqrt(k));var A=J7t(r,n,i,a,o,s,f,d,x,b,p,E),L=Y7t(A,4),_=L[0],C=L[1],S=L[2],g=L[3],P=Math.abs(g)/(ik/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var F=0;F{"use strict";iFe.exports=e9t;var Q7t=tFe();function e9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function Wz(e,t,r,n){return["C",e,t,r,n,r,n]}function rFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var JX=_e((hmr,aFe)=>{"use strict";aFe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var sFe=_e((dmr,oFe)=>{"use strict";var t9t=YM(),r9t=YX(),i9t=nFe(),n9t=JX();oFe.exports=a9t;function a9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!n9t(e))throw Error("String is not an SVG path.");e=t9t(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=r9t(e),e=i9t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var dFe=_e((vmr,hFe)=>{var Z2=Math.PI,lFe=fFe(120);hFe.exports=o9t;function o9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=u,b=c;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=uFe(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=uFe(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=Zz(u,c,d[1],d[2]);break;case"H":d=Zz(u,c,d[1],c);break;case"V":d=Zz(u,c,u,d[1]);break;case"Z":d=Zz(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function Zz(e,t,r,n){return["C",e,t,r,n,r,n]}function uFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function cFe(e,t,r,n,i,a,o,s,l,u){if(u)k=u[0],A=u[1],p=u[2],E=u[3];else{var c=$X(e,t,-i);e=c.x,t=c.y,c=$X(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*x-v*h*h-x*f*f)/(v*h*h+x*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,E=b*-n*f/r+(t+l)/2,k=Math.asin(((t-E)/n).toFixed(9)),A=Math.asin(((l-E)/n).toFixed(9));k=eA&&(k=k-Z2*2),!o&&A>k&&(A=A-Z2*2)}if(Math.abs(A-k)>lFe){var L=A,_=s,C=l;A=k+lFe*(o&&A>k?1:-1),s=p+r*Math.cos(A),l=E+n*Math.sin(A);var S=cFe(s,l,r,n,i,0,o,_,C,[A,L,p,E])}var g=Math.tan((A-k)/4),P=4/3*r*g,T=4/3*n*g,F=[2*e-(e+P*Math.sin(k)),2*t-(t-T*Math.cos(k)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return F;S&&(F=F.concat(S));for(var q=0;q{var s9t=YX(),l9t=dFe(),u9t={M:"moveTo",C:"bezierCurveTo"};vFe.exports=function(e,t){e.beginPath(),l9t(s9t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[u9t[n]].apply(e,i)}),e.closePath()}});var _Fe=_e((gmr,yFe)=>{"use strict";yFe.exports=c9t;var nk=1e20;function c9t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,x=Math.floor(u.length/c);v{"use strict";var f9t=sFe(),h9t=YM(),d9t=pFe(),v9t=JX(),p9t=_Fe(),QX=document.createElement("canvas"),hp=QX.getContext("2d");xFe.exports=g9t;function g9t(e,t){if(!v9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=QX.width=t.w||t.width||200,n=QX.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||f9t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(hp.fillStyle="black",hp.fillRect(0,0,r,n),hp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?hp.strokeStyle="white":hp.strokeStyle="black",hp.lineWidth=Math.abs(a)),hp.translate(r*.5,n*.5),hp.scale(l,l),m9t()){var u=new Path2D(e);hp.fill(u),a&&hp.stroke(u)}else{var c=h9t(e);d9t(hp,c),hp.fill(),a&&hp.stroke()}hp.setTransform(1,0,0,1,0,0);var f=p9t(hp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var Xz;function m9t(){if(Xz!=null)return Xz;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return Xz=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return Xz=r&&r.data&&r.data[3]===255}});var Y2=_e((ymr,IFe)=>{"use strict";var Kz=ao(),y9t=bFe(),Yz=$_(),_9t=_a(),iA=Mr(),Qf=iA.isArrayOrTypedArray,tA=ro(),wFe=af(),TFe=$y().formatColor,rA=lu(),x9t=M3(),tY=Vz(),ak=sx(),b9t=U1().DESELECTDIM,AFe={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},w9t=rp().appendArrayPointValue;function T9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(rA.hasText(t)&&(n.text=PFe(e,t),n.textSel=SFe(e,t,t.selected),n.textUnsel=SFe(e,t,t.unselected)),rA.hasMarkers(t)&&(n.marker=iY(e,t),n.markerSel=rY(e,t,t.selected),n.markerUnsel=rY(e,t,t.unselected),!t.unselected&&Qf(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function iY(e,t){var r=t._length,n=t.marker,i={},a,o=Qf(n.symbol),s=Qf(n.angle),l=Qf(n.color),u=Qf(n.line.color),c=Qf(n.opacity),f=Qf(n.size),h=Qf(n.line.width),d;if(o||(d=tY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,x=n.angle,b=TFe(n,n.opacity,r),p=TFe(n.line,n.opacity,r);if(!Qf(p[0])){var E=p;for(p=Array(r),a=0;aak.TOO_MANY_POINTS||rA.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=Qf(u)?u.length>1?u[o]:u[0]:u,v=AFe[h],x=AFe[d],b=c?c/.8+1:0,p=-x*b-x*.5;a.offset[o]=[v*b/f,p/f]}}return a}IFe.exports={style:T9t,markerStyle:iY,markerSelection:rY,linePositions:M9t,errorBarPositions:S9t,textPosition:E9t}});var nY=_e((_mr,RFe)=>{"use strict";var Jz=Mr();RFe.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){Jz.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=Jz.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var k9t=Gz(),nA=Mr(),DFe=af(),C9t=wg().findExtremes,zFe=Rg(),aY=q0(),L9t=aY.calcMarkerSize,P9t=aY.calcAxisExpansion,I9t=aY.setFirstScatter,R9t=z0(),aA=Y2(),D9t=nY(),FFe=Jo().BADNUM,z9t=sx().TOO_MANY_POINTS;OFe.exports=function(t,r){var n=t._fullLayout,i=r._xA=DFe.getFromId(t,r.xaxis,"x"),a=r._yA=DFe.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=z9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=zFe(r,i,"x",h),x=zFe(r,a,"y",d),b=v.vals,p=x.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var E=new Array(u),k=new Array(s);for(f=0;f1&&nA.extendFlat(o.line,aA.linePositions(e,r,n)),o.errorX||o.errorY){var s=aA.errorBarPositions(e,r,n,i,a);o.errorX&&nA.extendFlat(o.errorX,s.x),o.errorY&&nA.extendFlat(o.errorY,s.y)}return o.text&&(nA.extendFlat(o.text,{positions:n},aA.textPosition(e,r,o.text,o.marker)),nA.extendFlat(o.textSel,{positions:n},aA.textPosition(e,r,o.text,o.markerSel)),nA.extendFlat(o.textUnsel,{positions:n},aA.textPosition(e,r,o.text,o.markerUnsel))),o}});var oY=_e((bmr,UFe)=>{"use strict";var NFe=Mr(),q9t=ha(),O9t=U1().DESELECTDIM;function B9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=NFe.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,x=c.color,b=l.color,p=NFe.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var VFe=lu(),N9t=oY().styleTextSelection;HFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=VFe.hasText(s),x=VFe.hasMarkers(s),b=!x&&!v;if(s.visible!==!0||b)return o;var p=[],E=[];if(r!==!1&&!r.degenerate)for(var k=0;k{"use strict";var U9t=Uz();GFe.exports={moduleType:"trace",name:"scattergl",basePlotModule:Jf(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:tk(),supplyDefaults:Eze(),crossTraceDefaults:aU(),colorbar:Kd(),formatLabels:Cze(),calc:BFe(),hoverPoints:U9t.hoverPoints,selectPoints:sY(),meta:{}}});var ZFe=_e((Amr,Qz)=>{"use strict";var $z=XD();Qz.exports=WFe;Qz.exports.to=WFe;Qz.exports.from=V9t;function WFe(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=$z(r,0,255)&255,n=$z(n,0,255)&255,i=$z(i,0,255)&255,a=$z(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function V9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var bh=_e((Mmr,YFe)=>{"use strict";var XFe=Object.getOwnPropertySymbols,H9t=Object.prototype.hasOwnProperty,G9t=Object.prototype.propertyIsEnumerable;function j9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function W9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}YFe.exports=W9t()?Object.assign:function(e,t){for(var r,n=j9t(e),i,a=1;a{KFe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";$Fe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";QFe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var eF=_e((Cmr,oA)=>{"use strict";oA.exports=ok;oA.exports.float32=oA.exports.float=ok;oA.exports.fract32=oA.exports.fract=Z9t;var t7e=new Float32Array(1);function Z9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=ok(e));for(var r=0,n=t.length;r{"use strict";function X9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Y9t(e,t){return $9t(e)||X9t(e,t)||i7e(e,t)||tqt()}function K9t(e){return J9t(e)||Q9t(e)||i7e(e)||eqt()}function J9t(e){if(Array.isArray(e))return uY(e)}function $9t(e){if(Array.isArray(e))return e}function Q9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i7e(e,t){if(e){if(typeof e=="string")return uY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r 1.0 + delta) { + discard; + } + + alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); + + float borderRadius = fragBorderRadius; + float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); + vec4 color = mix(fragColor, fragBorderColor, ratio); + color.a *= alpha * opacity; + gl_FragColor = color; +} +`]),v.vert=tF([`precision highp float; +#define GLSLIFY 1 + +attribute float x, y, xFract, yFract; +attribute float size, borderSize; +attribute vec4 colorId, borderColorId; +attribute float isActive; + +// \`invariant\` effectively turns off optimizations for the position. +// We need this because -fast-math on M1 Macs is re-ordering +// floating point operations in a way that causes floating point +// precision limits to put points in the wrong locations. +invariant gl_Position; + +uniform bool constPointSize; +uniform float pixelRatio; +uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; +uniform sampler2D paletteTexture; + +const float maxSize = 100.; + +varying vec4 fragColor, fragBorderColor; +varying float fragBorderRadius, fragWidth; + +float pointSizeScale = (constPointSize) ? 2. : pixelRatio; + +bool isDirect = (paletteSize.x < 1.); + +vec4 getColor(vec4 id) { + return isDirect ? id / 255. : texture2D(paletteTexture, + vec2( + (id.x + .5) / paletteSize.x, + (id.y + .5) / paletteSize.y + ) + ); +} + +void main() { + // ignore inactive points + if (isActive == 0.) return; + + vec2 position = vec2(x, y); + vec2 positionFract = vec2(xFract, yFract); + + vec4 color = getColor(colorId); + vec4 borderColor = getColor(borderColorId); + + float size = size * maxSize / 255.; + float borderSize = borderSize * maxSize / 255.; + + gl_PointSize = (size + borderSize) * pointSizeScale; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + gl_Position = vec4(pos * 2. - 1., 0., 1.); + + fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); + fragColor = color; + fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; + fragWidth = 1. / gl_PointSize; +} +`]),r7e&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}rv.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};rv.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};rv.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nie)?N.tree=aqt(G,{bounds:ye}):ie&&ie.length&&(N.tree=ie),N.tree){var K={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(K):N.elements=o.elements(K)}var ce=rF.float32(G);ae({data:ce,usage:"dynamic"});var pe=rF.fract32(G,ce);return we({data:pe,usage:"dynamic"}),Ee({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),G}},{marker:function(G,N,Z){var ie=N.activation;if(ie.forEach(function(pe){return pe&&pe.destroy&&pe.destroy()}),ie.length=0,!G||typeof G[0]=="number"){var ae=e.addMarker(G);ie[ae]=!0}else{for(var we=[],Ee=0,ke=Math.min(G.length,N.count);Ee=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};rv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";vY.exports=aF;vY.exports.default=aF;function aF(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=o7e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=mqt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return sk(a,o,r,s,l,d,0),o}function o7e(e,t,r,n,i){var a,o;if(i===dY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=a7e(a,e[a],e[a+1],o);return o&&oF(o,o.next)&&(uk(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(oF(r,r.next)||eh(r.prev,r,r.next)===0)){if(uk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function sk(e,t,r,n,i,a,o){if(e){!o&&a&&wqt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?vqt(e,n,i,a):dqt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),uk(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=pqt(J2(e),t,r),sk(e,t,r,n,i,a,2)):o===2&&gqt(e,t,r,n,i,a):sk(J2(e),t,r,n,i,a,1);break}}}}function dqt(e){var t=e.prev,r=e,n=e.next;if(eh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&sA(i,s,a,l,o,u,v.x,v.y)&&eh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function vqt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(eh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=fY(d,v,t,r,n),E=fY(x,b,t,r,n),k=e.prevZ,A=e.nextZ;k&&k.z>=p&&A&&A.z<=E;){if(k.x>=d&&k.x<=x&&k.y>=v&&k.y<=b&&k!==i&&k!==o&&sA(s,c,l,f,u,h,k.x,k.y)&&eh(k.prev,k,k.next)>=0||(k=k.prevZ,A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&sA(s,c,l,f,u,h,A.x,A.y)&&eh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;k&&k.z>=p;){if(k.x>=d&&k.x<=x&&k.y>=v&&k.y<=b&&k!==i&&k!==o&&sA(s,c,l,f,u,h,k.x,k.y)&&eh(k.prev,k,k.next)>=0)return!1;k=k.prevZ}for(;A&&A.z<=E;){if(A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&sA(s,c,l,f,u,h,A.x,A.y)&&eh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function pqt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!oF(i,a)&&s7e(i,n,n.next,a)&&lk(i,a)&&lk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),uk(n),uk(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function gqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Mqt(o,s)){var l=l7e(o,s);o=J2(o,o.next),l=J2(l,l.next),sk(o,t,r,n,i,a,0),sk(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function mqt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&sA(io.x||r.x===o.x&&bqt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function bqt(e,t){return eh(e.prev,e,t.prev)<0&&eh(t.next,e,e.next)<0}function wqt(e,t,r,n){var i=e;do i.z===0&&(i.z=fY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Tqt(i)}function Tqt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function fY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Aqt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function Mqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Sqt(e,t)&&(lk(e,t)&&lk(t,e)&&Eqt(e,t)&&(eh(e.prev,e,t.prev)||eh(e,t.prev,t))||oF(e,t)&&eh(e.prev,e,e.next)>0&&eh(t.prev,t,t.next)>0)}function eh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function oF(e,t){return e.x===t.x&&e.y===t.y}function s7e(e,t,r,n){var i=nF(eh(e,t,r)),a=nF(eh(e,t,n)),o=nF(eh(r,n,e)),s=nF(eh(r,n,t));return!!(i!==a&&o!==s||i===0&&iF(e,r,t)||a===0&&iF(e,n,t)||o===0&&iF(r,e,n)||s===0&&iF(r,t,n))}function iF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function nF(e){return e>0?1:e<0?-1:0}function Sqt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&s7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function lk(e,t){return eh(e.prev,e,e.next)<0?eh(e,t,e.next)>=0&&eh(e,e.prev,t)>=0:eh(e,t,e.prev)<0||eh(e,e.next,t)<0}function Eqt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function l7e(e,t){var r=new hY(e.i,e.x,e.y),n=new hY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function a7e(e,t,r,n){var i=new hY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function uk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function hY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}aF.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(dY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var f7e=_e((Imr,c7e)=>{"use strict";var kqt=j2();c7e.exports=Cqt;function Cqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=kqt(e,t));for(var n=0;n{"use strict";h7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var p7e=_e((Dmr,v7e)=>{"use strict";v7e.exports=function(){}});var lx=_e((zmr,g7e)=>{"use strict";var Lqt=p7e()();g7e.exports=function(e){return e!==Lqt&&e!==null}});var pY=_e((Fmr,y7e)=>{"use strict";var Pqt=Object.create,Iqt=Object.getPrototypeOf,m7e={};y7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||Pqt;return typeof e!="function"?!1:Iqt(e(t(null),m7e))===m7e}});var gY=_e((qmr,_7e)=>{"use strict";var Rqt=lx(),Dqt={function:!0,object:!0};_7e.exports=function(e){return Rqt(e)&&Dqt[typeof e]||!1}});var i1=_e((Omr,x7e)=>{"use strict";var zqt=lx();x7e.exports=function(e){if(!zqt(e))throw new TypeError("Cannot use null or undefined");return e}});var w7e=_e((Bmr,b7e)=>{"use strict";var mY=Object.create,sF;pY()()||(sF=yY());b7e.exports=function(){var e,t,r;return!sF||sF.level!==1?mY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(sF,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return mY(n===null?e:n,i)})}()});var yY=_e((Nmr,T7e)=>{"use strict";var Fqt=gY(),qqt=i1(),Oqt=Object.prototype.isPrototypeOf,Bqt=Object.defineProperty,Nqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},lF;lF=function(e,t){if(qqt(e),t===null||Fqt(t))return e;throw new TypeError("Prototype must be null or an object")};T7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(lF(n,i),i),n}):t=function(n,i){return lF(n,i).__proto__=i,n}:t=function n(i,a){var o;return lF(i,a),o=Oqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&Bqt(n.nullPolyfill,"__proto__",Nqt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());w7e()});var uF=_e((Umr,A7e)=>{"use strict";A7e.exports=pY()()?Object.setPrototypeOf:yY()});var S7e=_e((Vmr,M7e)=>{"use strict";var Uqt=gY();M7e.exports=function(e){if(!Uqt(e))throw new TypeError(e+" is not an Object");return e}});var k7e=_e((Hmr,E7e)=>{"use strict";var Vqt=Object.create(null),Hqt=Math.random;E7e.exports=function(){var e;do e=Hqt().toString(36).slice(2);while(Vqt[e]);return e}});var $2=_e((Gmr,C7e)=>{"use strict";var Gqt=void 0;C7e.exports=function(e){return e!==Gqt&&e!==null}});var _Y=_e((jmr,L7e)=>{"use strict";var jqt=$2(),Wqt={object:!0,function:!0,undefined:!0};L7e.exports=function(e){return jqt(e)?hasOwnProperty.call(Wqt,typeof e):!1}});var I7e=_e((Wmr,P7e)=>{"use strict";var Zqt=_Y();P7e.exports=function(e){if(!Zqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var D7e=_e((Zmr,R7e)=>{"use strict";var Xqt=I7e();R7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Xqt(e)}});var xY=_e((Xmr,z7e)=>{"use strict";var Yqt=D7e(),Kqt=/^\s*class[\s{/}]/,Jqt=Function.prototype.toString;z7e.exports=function(e){return!(!Yqt(e)||Kqt.test(Jqt.call(e)))}});var q7e=_e((Ymr,F7e)=>{"use strict";F7e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var B7e=_e((Kmr,O7e)=>{"use strict";O7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var U7e=_e((Jmr,N7e)=>{"use strict";var $qt=lx(),Qqt=Object.keys;N7e.exports=function(e){return Qqt($qt(e)?Object(e):e)}});var H7e=_e(($mr,V7e)=>{"use strict";V7e.exports=B7e()()?Object.keys:U7e()});var j7e=_e((Qmr,G7e)=>{"use strict";var eOt=H7e(),tOt=i1(),rOt=Math.max;G7e.exports=function(e,t){var r,n,i=rOt(arguments.length,2),a;for(e=Object(tOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";W7e.exports=q7e()()?Object.assign:j7e()});var bY=_e((tyr,Z7e)=>{"use strict";var iOt=lx(),nOt=Array.prototype.forEach,aOt=Object.create,oOt=function(e,t){var r;for(r in e)t[r]=e[r]};Z7e.exports=function(e){var t=aOt(null);return nOt.call(arguments,function(r){iOt(r)&&oOt(Object(r),t)}),t}});var Y7e=_e((ryr,X7e)=>{"use strict";var wY="razdwatrzy";X7e.exports=function(){return typeof wY.contains!="function"?!1:wY.contains("dwa")===!0&&wY.contains("foo")===!1}});var J7e=_e((iyr,K7e)=>{"use strict";var sOt=String.prototype.indexOf;K7e.exports=function(e){return sOt.call(this,e,arguments[1])>-1}});var TY=_e((nyr,$7e)=>{"use strict";$7e.exports=Y7e()()?String.prototype.contains:J7e()});var n1=_e((ayr,r9e)=>{"use strict";var fF=$2(),Q7e=xY(),e9e=cF(),t9e=bY(),ck=TY(),lOt=r9e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],fF(e)?(r=ck.call(e,"c"),n=ck.call(e,"e"),i=ck.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?e9e(t9e(a),o):o};lOt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],fF(t)?Q7e(t)?fF(r)?Q7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,fF(e)?(n=ck.call(e,"c"),i=ck.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?e9e(t9e(a),o):o}});var fk=_e((oyr,n9e)=>{"use strict";var i9e=Object.prototype.toString,uOt=i9e.call(function(){return arguments}());n9e.exports=function(e){return i9e.call(e)===uOt}});var hk=_e((syr,o9e)=>{"use strict";var a9e=Object.prototype.toString,cOt=a9e.call("");o9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||a9e.call(e)===cOt)||!1}});var l9e=_e((lyr,s9e)=>{"use strict";s9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var f9e=_e((uyr,c9e)=>{var u9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};c9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return u9e()}try{return __global__||u9e()}finally{delete Object.prototype.__global__}}()});var dk=_e((cyr,h9e)=>{"use strict";h9e.exports=l9e()()?globalThis:f9e()});var v9e=_e((fyr,d9e)=>{"use strict";var fOt=dk(),AY={object:!0,symbol:!0};d9e.exports=function(){var e=fOt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!AY[typeof e.iterator]||!AY[typeof e.toPrimitive]||!AY[typeof e.toStringTag])}});var g9e=_e((hyr,p9e)=>{"use strict";p9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var MY=_e((dyr,m9e)=>{"use strict";var hOt=g9e();m9e.exports=function(e){if(!hOt(e))throw new TypeError(e+" is not a symbol");return e}});var w9e=_e((vyr,b9e)=>{"use strict";var y9e=n1(),dOt=Object.create,_9e=Object.defineProperty,vOt=Object.prototype,x9e=dOt(null);b9e.exports=function(e){for(var t=0,r,n;x9e[e+(t||"")];)++t;return e+=t||"",x9e[e]=!0,r="@@"+e,_9e(vOt,r,y9e.gs(null,function(i){n||(n=!0,_9e(this,r,y9e(i)),n=!1)})),r}});var A9e=_e((pyr,T9e)=>{"use strict";var Qg=n1(),wh=dk().Symbol;T9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",wh&&wh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",wh&&wh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",wh&&wh.iterator||e("iterator")),match:Qg("",wh&&wh.match||e("match")),replace:Qg("",wh&&wh.replace||e("replace")),search:Qg("",wh&&wh.search||e("search")),species:Qg("",wh&&wh.species||e("species")),split:Qg("",wh&&wh.split||e("split")),toPrimitive:Qg("",wh&&wh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",wh&&wh.toStringTag||e("toStringTag")),unscopables:Qg("",wh&&wh.unscopables||e("unscopables"))})}});var E9e=_e((gyr,S9e)=>{"use strict";var M9e=n1(),pOt=MY(),vk=Object.create(null);S9e.exports=function(e){return Object.defineProperties(e,{for:M9e(function(t){return vk[t]?vk[t]:vk[t]=e(String(t))}),keyFor:M9e(function(t){var r;pOt(t);for(r in vk)if(vk[r]===t)return r})})}});var L9e=_e((myr,C9e)=>{"use strict";var Zm=n1(),SY=MY(),hF=dk().Symbol,gOt=w9e(),mOt=A9e(),yOt=E9e(),_Ot=Object.create,EY=Object.defineProperties,dF=Object.defineProperty,Wv,lA,k9e;if(typeof hF=="function")try{String(hF()),k9e=!0}catch(e){}else hF=null;lA=function(t){if(this instanceof lA)throw new TypeError("Symbol is not a constructor");return Wv(t)};C9e.exports=Wv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return k9e?hF(t):(r=_Ot(lA.prototype),t=t===void 0?"":String(t),EY(r,{__description__:Zm("",t),__name__:Zm("",gOt(t))}))};mOt(Wv);yOt(Wv);EY(lA.prototype,{constructor:Zm(Wv),toString:Zm("",function(){return this.__name__})});EY(Wv.prototype,{toString:Zm(function(){return"Symbol ("+SY(this).__description__+")"}),valueOf:Zm(function(){return SY(this)})});dF(Wv.prototype,Wv.toPrimitive,Zm("",function(){var e=SY(this);return typeof e=="symbol"?e:e.toString()}));dF(Wv.prototype,Wv.toStringTag,Zm("c","Symbol"));dF(lA.prototype,Wv.toStringTag,Zm("c",Wv.prototype[Wv.toStringTag]));dF(lA.prototype,Wv.toPrimitive,Zm("c",Wv.prototype[Wv.toPrimitive]))});var ux=_e((yyr,P9e)=>{"use strict";P9e.exports=v9e()()?dk().Symbol:L9e()});var R9e=_e((_yr,I9e)=>{"use strict";var xOt=i1();I9e.exports=function(){return xOt(this).length=0,this}});var uA=_e((xyr,D9e)=>{"use strict";D9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var F9e=_e((byr,z9e)=>{"use strict";var bOt=$2(),wOt=_Y(),TOt=Object.prototype.toString;z9e.exports=function(e){if(!bOt(e))return null;if(wOt(e)){var t=e.toString;if(typeof t!="function"||t===TOt)return null}try{return""+e}catch(r){return null}}});var O9e=_e((wyr,q9e)=>{"use strict";q9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var N9e=_e((Tyr,B9e)=>{"use strict";var AOt=O9e(),MOt=/[\n\r\u2028\u2029]/g;B9e.exports=function(e){var t=AOt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(MOt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var V9e=_e((Ayr,U9e)=>{"use strict";var SOt=F9e(),EOt=N9e();U9e.exports=function(e,t,r){r&&r.errorMessage&&(e=SOt(r.errorMessage));var n=e.indexOf("%v"),i=n>-1?EOt(t):null;if(r&&r.name){var a=e.indexOf("%n");if(a>-1){if(n>-1){var o,s,l,u;return a>n?(o=i,l=n,s=r.name,u=a):(o=r.name,l=a,s=i,u=n),e.slice(0,l)+o+e.slice(l+2,u)+s+e.slice(u+2)}return e.slice(0,a)+r.name+e.slice(a+2)}}return n>-1?e.slice(0,n)+i+e.slice(n+2):e}});var kY=_e((Myr,H9e)=>{"use strict";var kOt=$2(),COt=V9e();H9e.exports=function(e,t,r){if(r&&!kOt(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=r&&r.Error||TypeError,i=new n(COt(t,e,r));throw r&&r.errorCode&&(i.code=r.errorCode),i}});var j9e=_e((Syr,G9e)=>{"use strict";var LOt=kY(),POt=$2();G9e.exports=function(e){if(POt(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return LOt(e,r,t)}});var Z9e=_e((Eyr,W9e)=>{"use strict";var IOt=kY(),ROt=xY();W9e.exports=function(e){if(ROt(e))return e;var t=arguments[1],r=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return IOt(e,r,t)}});var Y9e=_e((kyr,X9e)=>{"use strict";X9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var J9e=_e((Cyr,K9e)=>{"use strict";var DOt=Object.prototype.toString,zOt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);K9e.exports=function(e){return typeof e=="function"&&zOt(DOt.call(e))}});var Q9e=_e((Lyr,$9e)=>{"use strict";$9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var tqe=_e((Pyr,eqe)=>{"use strict";eqe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var iqe=_e((Iyr,rqe)=>{"use strict";rqe.exports=Q9e()()?Math.sign:tqe()});var aqe=_e((Ryr,nqe)=>{"use strict";var FOt=iqe(),qOt=Math.abs,OOt=Math.floor;nqe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:FOt(e)*OOt(qOt(e)))}});var sqe=_e((Dyr,oqe)=>{"use strict";var BOt=aqe(),NOt=Math.max;oqe.exports=function(e){return NOt(0,BOt(e))}});var fqe=_e((zyr,cqe)=>{"use strict";var UOt=ux().iterator,VOt=fk(),HOt=J9e(),GOt=sqe(),lqe=uA(),jOt=i1(),WOt=lx(),ZOt=hk(),uqe=Array.isArray,CY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},LY=Object.defineProperty;cqe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(jOt(e)),WOt(t)&&lqe(t),!this||this===Array||!HOt(this)){if(!t){if(VOt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(uqe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?CY.call(t,r,h,a):h,n?(Q2.value=h,LY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=GOt(e.length),n&&(o=new n(s)),i=0;i{"use strict";hqe.exports=Y9e()()?Array.from:fqe()});var pqe=_e((qyr,vqe)=>{"use strict";var XOt=dqe(),YOt=cF(),KOt=i1();vqe.exports=function(e){var t=Object(KOt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?XOt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):YOt(i,e),i}});var yqe=_e((Oyr,mqe)=>{"use strict";var JOt=uA(),$Ot=i1(),QOt=Function.prototype.bind,gqe=Function.prototype.call,eBt=Object.keys,tBt=Object.prototype.propertyIsEnumerable;mqe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object($Ot(r)),JOt(n),i=eBt(r),o&&i.sort(typeof o=="function"?QOt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),gqe.call(e,i,function(s,l){return tBt.call(r,s)?gqe.call(n,a,r[s],s,r,l):t})}}});var xqe=_e((Byr,_qe)=>{"use strict";_qe.exports=yqe()("forEach")});var wqe=_e((Nyr,bqe)=>{"use strict";var rBt=uA(),iBt=xqe(),nBt=Function.prototype.call;bqe.exports=function(e,t){var r={},n=arguments[2];return rBt(t),iBt(e,function(i,a,o,s){r[a]=nBt.call(t,n,i,a,o,s)}),r}});var Sqe=_e((Uyr,Mqe)=>{"use strict";var aBt=$2(),oBt=j9e(),Tqe=Z9e(),sBt=pqe(),lBt=bY(),uBt=wqe(),cBt=Function.prototype.bind,fBt=Object.defineProperty,hBt=Object.prototype.hasOwnProperty,Aqe;Aqe=function(e,t,r){var n=oBt(t)&&Tqe(t.value),i;return i=sBt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&hBt.call(this,e)?n:(t.value=cBt.call(n,r.resolveContext?r.resolveContext(this):this),fBt(this,e,t),this[e])},i};Mqe.exports=function(e){var t=lBt(arguments[1]);return aBt(t.resolveContext)&&Tqe(t.resolveContext),uBt(e,function(r,n){return Aqe(n,r,t)})}});var PY=_e((Vyr,Lqe)=>{"use strict";var dBt=R9e(),vBt=cF(),pBt=uA(),gBt=i1(),Op=n1(),mBt=Sqe(),Eqe=ux(),kqe=Object.defineProperty,Cqe=Object.defineProperties,pk;Lqe.exports=pk=function(e,t){if(!(this instanceof pk))throw new TypeError("Constructor requires 'new'");Cqe(this,{__list__:Op("w",gBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(pBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete pk.prototype.constructor;Cqe(pk.prototype,vBt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){kqe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&dBt.call(this.__redo__),this.__nextIndex__=0})})));kqe(pk.prototype,Eqe.iterator,Op(function(){return this}))});var zqe=_e((Hyr,Dqe)=>{"use strict";var Pqe=uF(),Iqe=TY(),IY=n1(),yBt=ux(),RY=PY(),Rqe=Object.defineProperty,cA;cA=Dqe.exports=function(e,t){if(!(this instanceof cA))throw new TypeError("Constructor requires 'new'");RY.call(this,e),t?Iqe.call(t,"key+value")?t="key+value":Iqe.call(t,"key")?t="key":t="value":t="value",Rqe(this,"__kind__",IY("",t))};Pqe&&Pqe(cA,RY);delete cA.prototype.constructor;cA.prototype=Object.create(RY.prototype,{_resolve:IY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});Rqe(cA.prototype,yBt.toStringTag,IY("c","Array Iterator"))});var Bqe=_e((Gyr,Oqe)=>{"use strict";var Fqe=uF(),vF=n1(),_Bt=ux(),DY=PY(),qqe=Object.defineProperty,fA;fA=Oqe.exports=function(e){if(!(this instanceof fA))throw new TypeError("Constructor requires 'new'");e=String(e),DY.call(this,e),qqe(this,"__length__",vF("",e.length))};Fqe&&Fqe(fA,DY);delete fA.prototype.constructor;fA.prototype=Object.create(DY.prototype,{_next:vF(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});qqe(fA.prototype,_Bt.toStringTag,vF("c","String Iterator"))});var Uqe=_e((jyr,Nqe)=>{"use strict";var xBt=fk(),bBt=lx(),wBt=hk(),TBt=ux().iterator,ABt=Array.isArray;Nqe.exports=function(e){return bBt(e)?ABt(e)||wBt(e)||xBt(e)?!0:typeof e[TBt]=="function":!1}});var Hqe=_e((Wyr,Vqe)=>{"use strict";var MBt=Uqe();Vqe.exports=function(e){if(!MBt(e))throw new TypeError(e+" is not iterable");return e}});var zY=_e((Zyr,Wqe)=>{"use strict";var SBt=fk(),EBt=hk(),Gqe=zqe(),kBt=Bqe(),CBt=Hqe(),jqe=ux().iterator;Wqe.exports=function(e){return typeof CBt(e)[jqe]=="function"?e[jqe]():SBt(e)?new Gqe(e):EBt(e)?new kBt(e):new Gqe(e)}});var Xqe=_e((Xyr,Zqe)=>{"use strict";var LBt=fk(),PBt=uA(),IBt=hk(),RBt=zY(),DBt=Array.isArray,FY=Function.prototype.call,zBt=Array.prototype.some;Zqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(DBt(e)||LBt(e)?r="array":IBt(e)?r="string":e=RBt(e),PBt(t),a=function(){o=!0},r==="array"){zBt.call(e,function(f){return FY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),FY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(FY.call(t,n,i.value,a),o)return;i=e.next()}}});var Kqe=_e((Yyr,Yqe)=>{"use strict";Yqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var Qqe=_e((Kyr,$qe)=>{"use strict";var FBt=lx(),gF=uF(),pF=S7e(),qBt=i1(),OBt=k7e(),a1=n1(),BBt=zY(),NBt=Xqe(),UBt=ux().toStringTag,Jqe=Kqe(),VBt=Array.isArray,OY=Object.defineProperty,qY=Object.prototype.hasOwnProperty,HBt=Object.getPrototypeOf,cx;$qe.exports=cx=function(){var e=arguments[0],t;if(!(this instanceof cx))throw new TypeError("Constructor requires 'new'");return t=Jqe&&gF&&WeakMap!==cx?gF(new WeakMap,HBt(this)):this,FBt(e)&&(VBt(e)||(e=BBt(e))),OY(t,"__weakMapData__",a1("c","$weakMap$"+OBt())),e&&NBt(e,function(r){qBt(r),t.set(r[0],r[1])}),t};Jqe&&(gF&&gF(cx,WeakMap),cx.prototype=Object.create(WeakMap.prototype,{constructor:a1(cx)}));Object.defineProperties(cx.prototype,{delete:a1(function(e){return qY.call(pF(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(qY.call(pF(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return qY.call(pF(e),this.__weakMapData__)}),set:a1(function(e,t){return OY(pF(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});OY(cx.prototype,UBt,a1("c","WeakMap"))});var BY=_e((Jyr,eOe)=>{"use strict";eOe.exports=d7e()()?WeakMap:Qqe()});var rOe=_e(($yr,tOe)=>{"use strict";tOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var mF=$_(),GBt=j2(),UY=bh(),jBt=Wm(),WBt=W2(),iOe=u7e(),ZBt=f7e(),{float32:XBt,fract32:NY}=eF(),YBt=BY(),nOe=eA(),KBt=rOe(),JBt=` +precision highp float; + +attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; +attribute vec4 color; +attribute float lineEnd, lineTop; + +uniform vec2 scale, scaleFract, translate, translateFract; +uniform float thickness, pixelRatio, id, depth; +uniform vec4 viewport; + +varying vec4 fragColor; +varying vec2 tangent; + +vec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) { + // the order is important + return position * scale + translate + + positionFract * scale + translateFract + + position * scaleFract + + positionFract * scaleFract; +} + +void main() { + float lineStart = 1. - lineEnd; + float lineOffset = lineTop * 2. - 1.; + + vec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract); + tangent = normalize(diff * scale * viewport.zw); + vec2 normal = vec2(-tangent.y, tangent.x); + + vec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart + + project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd + + + thickness * normal * .5 * lineOffset / viewport.zw; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + fragColor = color / 255.; +} +`,$Bt=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; + +void main() { + float alpha = 1.; + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`,QBt=` +precision highp float; + +attribute vec2 position, positionFract; + +uniform vec4 color; +uniform vec2 scale, scaleFract, translate, translateFract; +uniform float pixelRatio, id; +uniform vec4 viewport; +uniform float opacity; + +varying vec4 fragColor; + +const float MAX_LINES = 256.; + +void main() { + float depth = (MAX_LINES - 4. - id) / (MAX_LINES); + + vec2 position = position * scale + translate + + positionFract * scale + translateFract + + position * scaleFract + + positionFract * scaleFract; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + fragColor = color / 255.; + fragColor.a *= opacity; +} +`,eNt=` +precision highp float; +varying vec4 fragColor; + +void main() { + gl_FragColor = fragColor; +} +`,tNt=` +precision highp float; + +attribute vec2 aCoord, bCoord, nextCoord, prevCoord; +attribute vec4 aColor, bColor; +attribute float lineEnd, lineTop; + +uniform vec2 scale, translate; +uniform float thickness, pixelRatio, id, depth; +uniform vec4 viewport; +uniform float miterLimit, miterMode; + +varying vec4 fragColor; +varying vec4 startCutoff, endCutoff; +varying vec2 tangent; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +const float REVERSE_THRESHOLD = -.875; +const float MIN_DIFF = 1e-6; + +// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead +// TODO: precalculate dot products, normalize things beforehead etc. +// TODO: refactor to rectangular algorithm + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +bool isNaN( float val ){ + return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true; +} + +void main() { + vec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord; + + vec2 adjustedScale; + adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x; + adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y; + + vec2 scaleRatio = adjustedScale * viewport.zw; + vec2 normalWidth = thickness / scaleRatio; + + float lineStart = 1. - lineEnd; + float lineBot = 1. - lineTop; + + fragColor = (lineStart * aColor + lineEnd * bColor) / 255.; + + if (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return; + + if (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord); + if (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord); + + + vec2 prevDiff = aCoord - prevCoord; + vec2 currDiff = bCoord - aCoord; + vec2 nextDiff = nextCoord - bCoord; + + vec2 prevTangent = normalize(prevDiff * scaleRatio); + vec2 currTangent = normalize(currDiff * scaleRatio); + vec2 nextTangent = normalize(nextDiff * scaleRatio); + + vec2 prevNormal = vec2(-prevTangent.y, prevTangent.x); + vec2 currNormal = vec2(-currTangent.y, currTangent.x); + vec2 nextNormal = vec2(-nextTangent.y, nextTangent.x); + + vec2 startJoinDirection = normalize(prevTangent - currTangent); + vec2 endJoinDirection = normalize(currTangent - nextTangent); + + // collapsed/unidirectional segment cases + // FIXME: there should be more elegant solution + vec2 prevTanDiff = abs(prevTangent - currTangent); + vec2 nextTanDiff = abs(nextTangent - currTangent); + if (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) { + startJoinDirection = currNormal; + } + if (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) { + endJoinDirection = currNormal; + } + if (aCoord == bCoord) { + endJoinDirection = startJoinDirection; + currNormal = prevNormal; + currTangent = prevTangent; + } + + tangent = currTangent; + + //calculate join shifts relative to normals + float startJoinShift = dot(currNormal, startJoinDirection); + float endJoinShift = dot(currNormal, endJoinDirection); + + float startMiterRatio = abs(1. / startJoinShift); + float endMiterRatio = abs(1. / endJoinShift); + + vec2 startJoin = startJoinDirection * startMiterRatio; + vec2 endJoin = endJoinDirection * endMiterRatio; + + vec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin; + startTopJoin = sign(startJoinShift) * startJoin * .5; + startBotJoin = -startTopJoin; + + endTopJoin = sign(endJoinShift) * endJoin * .5; + endBotJoin = -endTopJoin; + + vec2 aTopCoord = aCoord + normalWidth * startTopJoin; + vec2 bTopCoord = bCoord + normalWidth * endTopJoin; + vec2 aBotCoord = aCoord + normalWidth * startBotJoin; + vec2 bBotCoord = bCoord + normalWidth * endBotJoin; + + //miter anti-clipping + float baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x))); + float abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x))); + + //prevent close to reverse direction switch + bool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal); + bool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal); + + if (prevReverse) { + //make join rectangular + vec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.); + aBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + aTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) { + //handle miter clipping + bTopCoord -= normalWidth * endTopJoin; + bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; + } + + if (nextReverse) { + //make join rectangular + vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); + bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { + //handle miter clipping + aBotCoord -= normalWidth * startBotJoin; + aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; + } + + vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; + vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; + + vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; + vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; + + //position is normalized 0..1 coord on the screen + vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; + + startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; + endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + enableStartMiter = step(dot(currTangent, prevTangent), .5); + enableEndMiter = step(dot(currTangent, nextTangent), .5); + + //bevel miter cutoffs + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } + + //round miter cutoffs + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } +} +`,rNt=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; +varying vec4 startCutoff, endCutoff; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +void main() { + float alpha = 1., distToStart, distToEnd; + float cutoff = thickness * .5; + + //bevel miter + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < -1.) { + discard; + return; + } + alpha *= min(max(distToStart + 1., 0.), 1.); + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < -1.) { + discard; + return; + } + alpha *= min(max(distToEnd + 1., 0.), 1.); + } + } + + // round miter + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < 0.) { + float radius = length(gl_FragCoord.xy - startCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < 0.) { + float radius = length(gl_FragCoord.xy - endCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + } + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`;aOe.exports=uc;function uc(e,t){if(!(this instanceof uc))return new uc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=uc.shaders.has(e)?uc.shaders.get(e):uc.shaders.set(e,uc.createShaders(e)).get(e),this.update(t)}uc.dashMult=2;uc.maxPatternLength=256;uc.precisionThreshold=3e6;uc.maxPoints=1e4;uc.maxLines=2048;uc.shaders=new YBt;uc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(UY({vert:JBt,frag:$Bt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(UY({cull:{enable:!0,face:"back"},vert:tNt,frag:rNt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:QBt,frag:eNt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};uc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};uc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};uc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>uc.precisionThreshold||t.scale[1]*t.viewport.height>uc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=uc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};uc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=jBt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=UY({},uc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),E=[],k=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=KBt(p,_=>_>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-k)),S=iOe(_,C);S=S.map(g=>g+k+(g+k{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var cOe=_e((e1r,uOe)=>{"use strict";var iNt=j2(),nNt=$_(),aNt=lY(),oNt=Wm(),oOe=bh(),sOe=W2(),{float32:sNt,fract32:HY}=eF();uOe.exports=lNt;var lOe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function lNt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:lOe}),v(t),n=e({vert:` + precision highp float; + + attribute vec2 position, positionFract; + attribute vec4 error; + attribute vec4 color; + + attribute vec2 direction, lineOffset, capOffset; + + uniform vec4 viewport; + uniform float lineWidth, capSize; + uniform vec2 scale, scaleFract, translate, translateFract; + + varying vec4 fragColor; + + void main() { + fragColor = color / 255.; + + vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset; + + vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw; + + vec2 position = position + dxy; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + pos += pixelOffset / viewport.zw; + + gl_Position = vec4(pos * 2. - 1., 0, 1); + } + `,frag:` + precision highp float; + + varying vec4 fragColor; + + uniform float opacity; + + void main() { + gl_FragColor = fragColor; + gl_FragColor.a *= opacity; + } + `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,p)=>[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:lOe.length}),oOe(f,{update:v,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,E)=>{if(p){if(b&&(b[E]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(E)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,E=0;if(f.groups=c=b.map((L,_)=>{let C=c[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=oNt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(c[_]=C={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=oOe({},u,L)),aNt(C,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=sOe(S),E+=S.length,S),positions:(S,g)=>(S=sOe(S,"float64"),g.count=Math.floor(S.length/2),g.bounds=iNt(S,2),g.offset=p,p+=g.count,S)},{color:(S,g)=>{let P=g.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let F=S;S=Array(P);for(let q=0;q{let T=g.bounds;return S||(S=T),g.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],g.translate=[-S[0],-S[1]],g.scaleFract=HY(g.scale),g.translateFract=HY(g.translate),S},viewport:S=>{let g;return Array.isArray(S)?g={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(g={x:S.x||S.left||0,y:S.y||S.top||0},S.right?g.width=S.right-g.x:g.width=S.w||S.width||0,S.bottom?g.height=S.bottom-g.y:g.height=S.h||S.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),C}),p||E){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),_=new Float64Array(L*2),C=new Uint8Array(L*4),S=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:F,offset:q,color:V,errors:H}=g;F&&(C.set(V,q*4),S.set(H,q*4),_.set(T,q*2))});var k=sNt(_);i(k);var A=HY(_,k);a(A),o(C),s(S)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var dOe=_e((t1r,hOe)=>{var fOe=/[\'\"]/;hOe.exports=function(t){return t?(fOe.test(t.charAt(0))&&(t=t.substr(1)),fOe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var GY=_e(()=>{});var jY=_e(()=>{});var WY=_e(()=>{});var ZY=_e(()=>{});var XY=_e(()=>{});var mOe=_e((h1r,gOe)=>{"use strict";function vOe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var x=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(x),i+x+i}r.forEach(function(h,d){for(var v,x=0;h!=v;)if(v=h,h=h.replace(u,f),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function pOe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function YY(e,t){return Array.isArray(e)?pOe(e,t):vOe(e,t)}YY.parse=vOe;YY.stringify=pOe;gOe.exports=YY});var xOe=_e((d1r,_Oe)=>{"use strict";var yOe=mOe();_Oe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=yOe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{});var KY=_e((g1r,wOe)=>{"use strict";var uNt=bOe();wOe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||uNt.indexOf(t)!==-1}}});var SOe=_e((m1r,MOe)=>{"use strict";var cNt=dOe(),fNt=GY(),hNt=jY(),dNt=WY(),vNt=ZY(),pNt=XY(),JY=xOe(),gNt=KY().isSize;MOe.exports=AOe;var gk=AOe.cache={};function AOe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(gk[e])return gk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(hNt.indexOf(e)!==-1)return gk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=JY(e,/\s+/),n;n=r.shift();){if(fNt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),gk[e]=t;if(vNt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(pNt.indexOf(n)!==-1){t.stretch=n;continue}if(dNt.indexOf(n)!==-1){t.weight=n;continue}if(gNt(n)){var i=JY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=TOe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=TOe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=JY(r.join(" "),/\s*,\s*/).map(cNt),gk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function TOe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var QY=_e((y1r,EOe)=>{"use strict";var mNt=Wm(),yNt=KY().isSize,_Nt=yk(GY()),xNt=yk(jY()),bNt=yk(WY()),wNt=yk(ZY()),TNt=yk(XY()),ANt={normal:1,"small-caps":1},MNt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},$Y={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};EOe.exports=function(t){if(t=mNt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&mk(t.system,xNt),t.system;if(mk(t.style,wNt),mk(t.variant,ANt),mk(t.weight,bNt),mk(t.stretch,TNt),t.size==null&&(t.size=$Y.size),typeof t.size=="number"&&(t.size+="px"),!yNt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=$Y.family),Array.isArray(t.family)&&(t.family.length||(t.family=[$Y.family]),t.family=t.family.map(function(n){return MNt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function mk(e,t){if(e&&!t[e]&&!_Nt[e])throw Error("Unknown keyword `"+e+"`");return e}function yk(e){for(var t={},r=0;r{"use strict";kOe.exports={parse:SOe(),stringify:QY()}});var rK=_e((eK,tK)=>{(function(e,t){typeof eK=="object"&&typeof tK!="undefined"?tK.exports=t():e.createREGL=t()})(eK,function(){"use strict";var e=function(Mt,Sr){for(var Wr=Object.keys(Sr),Ai=0;Ai1&&Sr===Wr&&(Sr==='"'||Sr==="'"))return['"'+o(Mt.substr(1,Mt.length-2))+'"'];var Ai=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Mt);if(Ai)return s(Mt.substr(0,Ai.index)).concat(s(Ai[1])).concat(s(Mt.substr(Ai.index+Ai[0].length)));var Vi=Mt.split(".");if(Vi.length===1)return['"'+o(Mt)+'"'];for(var Bi=[],Ni=0;Ni65535)<<4,Mt>>>=Sr,Wr=(Mt>255)<<3,Mt>>>=Wr,Sr|=Wr,Wr=(Mt>15)<<2,Mt>>>=Wr,Sr|=Wr,Wr=(Mt>3)<<1,Mt>>>=Wr,Sr|=Wr,Sr|Mt>>1}function N(){var Mt=S(8,function(){return[]});function Sr(Bi){var Ni=X(Bi),cn=Mt[G(Ni)>>2];return cn.length>0?cn.pop():new ArrayBuffer(Ni)}function Wr(Bi){Mt[G(Bi.byteLength)>>2].push(Bi)}function Ai(Bi,Ni){var cn=null;switch(Bi){case g:cn=new Int8Array(Sr(Ni),0,Ni);break;case P:cn=new Uint8Array(Sr(Ni),0,Ni);break;case T:cn=new Int16Array(Sr(2*Ni),0,Ni);break;case F:cn=new Uint16Array(Sr(2*Ni),0,Ni);break;case q:cn=new Int32Array(Sr(4*Ni),0,Ni);break;case V:cn=new Uint32Array(Sr(4*Ni),0,Ni);break;case H:cn=new Float32Array(Sr(4*Ni),0,Ni);break;default:return null}return cn.length!==Ni?cn.subarray(0,Ni):cn}function Vi(Bi){Wr(Bi.buffer)}return{alloc:Sr,free:Wr,allocType:Ai,freeType:Vi}}var Z=N();Z.zero=N();var ie=3408,ae=3410,we=3411,Ee=3412,ke=3413,ye=3414,K=3415,ce=33901,pe=33902,xe=3379,Ce=3386,Me=34921,Le=36347,je=36348,Se=35661,Xe=35660,lt=34930,At=36349,Yt=34076,nt=34024,ot=7936,Ft=7937,Lt=7938,Rt=35724,Xt=34047,xr=36063,er=34852,Ge=3553,yt=34067,_t=34069,Ct=33984,St=6408,kt=5126,ft=5121,Gt=36160,$t=36053,hr=36064,_r=16384,Nr=function(Mt,Sr){var Wr=1;Sr.ext_texture_filter_anisotropic&&(Wr=Mt.getParameter(Xt));var Ai=1,Vi=1;Sr.webgl_draw_buffers&&(Ai=Mt.getParameter(er),Vi=Mt.getParameter(xr));var Bi=!!Sr.oes_texture_float;if(Bi){var Ni=Mt.createTexture();Mt.bindTexture(Ge,Ni),Mt.texImage2D(Ge,0,St,1,1,0,St,kt,null);var cn=Mt.createFramebuffer();if(Mt.bindFramebuffer(Gt,cn),Mt.framebufferTexture2D(Gt,hr,Ge,Ni,0),Mt.bindTexture(Ge,null),Mt.checkFramebufferStatus(Gt)!==$t)Bi=!1;else{Mt.viewport(0,0,1,1),Mt.clearColor(1,0,0,1),Mt.clear(_r);var zn=Z.allocType(kt,4);Mt.readPixels(0,0,1,1,St,kt,zn),Mt.getError()?Bi=!1:(Mt.deleteFramebuffer(cn),Mt.deleteTexture(Ni),Bi=zn[0]===1),Z.freeType(zn)}}var Fn=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),yn=!0;if(!Fn){var $a=Mt.createTexture(),In=Z.allocType(ft,36);Mt.activeTexture(Ct),Mt.bindTexture(yt,$a),Mt.texImage2D(_t,0,St,3,3,0,St,ft,In),Z.freeType(In),Mt.bindTexture(yt,null),Mt.deleteTexture($a),yn=!Mt.getError()}return{colorBits:[Mt.getParameter(ae),Mt.getParameter(we),Mt.getParameter(Ee),Mt.getParameter(ke)],depthBits:Mt.getParameter(ye),stencilBits:Mt.getParameter(K),subpixelBits:Mt.getParameter(ie),extensions:Object.keys(Sr).filter(function(Rn){return!!Sr[Rn]}),maxAnisotropic:Wr,maxDrawbuffers:Ai,maxColorAttachments:Vi,pointSizeDims:Mt.getParameter(ce),lineWidthDims:Mt.getParameter(pe),maxViewportDims:Mt.getParameter(Ce),maxCombinedTextureUnits:Mt.getParameter(Se),maxCubeMapSize:Mt.getParameter(Yt),maxRenderbufferSize:Mt.getParameter(nt),maxTextureUnits:Mt.getParameter(lt),maxTextureSize:Mt.getParameter(xe),maxAttributes:Mt.getParameter(Me),maxVertexUniforms:Mt.getParameter(Le),maxVertexTextureUnits:Mt.getParameter(Xe),maxVaryingVectors:Mt.getParameter(je),maxFragmentUniforms:Mt.getParameter(At),glsl:Mt.getParameter(Rt),renderer:Mt.getParameter(Ft),vendor:Mt.getParameter(ot),version:Mt.getParameter(Lt),readFloat:Bi,npotTextureCube:yn}},Br=function(Mt){return Mt instanceof Uint8Array||Mt instanceof Uint16Array||Mt instanceof Uint32Array||Mt instanceof Int8Array||Mt instanceof Int16Array||Mt instanceof Int32Array||Mt instanceof Float32Array||Mt instanceof Float64Array||Mt instanceof Uint8ClampedArray};function Ur(Mt){return!!Mt&&typeof Mt=="object"&&Array.isArray(Mt.shape)&&Array.isArray(Mt.stride)&&typeof Mt.offset=="number"&&Mt.shape.length===Mt.stride.length&&(Array.isArray(Mt.data)||Br(Mt.data))}var ut=function(Mt){return Object.keys(Mt).map(function(Sr){return Mt[Sr]})},rt={shape:le,flatten:Ie};function it(Mt,Sr,Wr){for(var Ai=0;Ai0){var Ga;if(Array.isArray(Zi[0])){Yn=Qi(Zi);for(var xn=1,vn=1;vn0){if(typeof xn[0]=="number"){var Wn=Z.allocType(gn.dtype,xn.length);gr(Wn,xn),Yn(Wn,Ta),Z.freeType(Wn)}else if(Array.isArray(xn[0])||Br(xn[0])){na=Qi(xn);var Bn=An(xn,na,gn.dtype);Yn(Bn,Ta),Z.freeType(Bn)}}}else if(Ur(xn)){na=xn.shape;var pa=xn.stride,Qa=0,bo=0,Kn=0,Fa=0;na.length===1?(Qa=na[0],bo=1,Kn=pa[0],Fa=0):na.length===2&&(Qa=na[0],bo=na[1],Kn=pa[0],Fa=pa[1]);var po=Array.isArray(xn.data)?gn.dtype:Wt(xn.data),ko=Z.allocType(po,Qa*bo);qr(ko,xn.data,Qa,bo,Kn,Fa,xn.offset),Yn(ko,Ta),Z.freeType(ko)}return la}return Cn||la(Si),la._reglType="buffer",la._buffer=gn,la.subdata=Ga,Wr.profile&&(la.stats=gn.stats),la.destroy=function(){In(gn)},la}function fn(){ut(Bi).forEach(function(Si){Si.buffer=Mt.createBuffer(),Mt.bindBuffer(Si.type,Si.buffer),Mt.bufferData(Si.type,Si.persistentData||Si.byteLength,Si.usage)})}return Wr.profile&&(Sr.getTotalBufferSize=function(){var Si=0;return Object.keys(Bi).forEach(function(Zi){Si+=Bi[Zi].stats.size}),Si}),{create:Rn,createStream:zn,destroyStream:Fn,clear:function(){ut(Bi).forEach(In),cn.forEach(In)},getBuffer:function(Si){return Si&&Si._buffer instanceof Ni?Si._buffer:null},restore:fn,_initBuffer:$a}}var Hr=0,mi=0,Ei=1,ki=1,Ri=4,ji=4,$i={points:Hr,point:mi,lines:Ei,line:ki,triangles:Ri,triangle:ji,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Sa=0,Gn=1,sa=4,Da=5120,Pa=5121,Vo=5122,aa=5123,go=5124,_s=5125,Vs=34963,As=35040,wt=35044;function Lr(Mt,Sr,Wr,Ai){var Vi={},Bi=0,Ni={uint8:Pa,uint16:aa};Sr.oes_element_index_uint&&(Ni.uint32=_s);function cn(fn){this.id=Bi++,Vi[this.id]=this,this.buffer=fn,this.primType=sa,this.vertCount=0,this.type=0}cn.prototype.bind=function(){this.buffer.bind()};var zn=[];function Fn(fn){var Si=zn.pop();return Si||(Si=new cn(Wr.create(null,Vs,!0,!1)._buffer)),$a(Si,fn,As,-1,-1,0,0),Si}function yn(fn){zn.push(fn)}function $a(fn,Si,Zi,Cn,On,gn,la){fn.buffer.bind();var Yn;if(Si){var Ga=la;!la&&(!Br(Si)||Ur(Si)&&!Br(Si.data))&&(Ga=Sr.oes_element_index_uint?_s:aa),Wr._initBuffer(fn.buffer,Si,Zi,Ga,3)}else Mt.bufferData(Vs,gn,Zi),fn.buffer.dtype=Yn||Pa,fn.buffer.usage=Zi,fn.buffer.dimension=3,fn.buffer.byteLength=gn;if(Yn=la,!la){switch(fn.buffer.dtype){case Pa:case Da:Yn=Pa;break;case aa:case Vo:Yn=aa;break;case _s:case go:Yn=_s;break;default:}fn.buffer.dtype=Yn}fn.type=Yn;var xn=On;xn<0&&(xn=fn.buffer.byteLength,Yn===aa?xn>>=1:Yn===_s&&(xn>>=2)),fn.vertCount=xn;var vn=Cn;if(Cn<0){vn=sa;var Ta=fn.buffer.dimension;Ta===1&&(vn=Sa),Ta===2&&(vn=Gn),Ta===3&&(vn=sa)}fn.primType=vn}function In(fn){Ai.elementsCount--,delete Vi[fn.id],fn.buffer.destroy(),fn.buffer=null}function Rn(fn,Si){var Zi=Wr.create(null,Vs,!0),Cn=new cn(Zi._buffer);Ai.elementsCount++;function On(gn){if(!gn)Zi(),Cn.primType=sa,Cn.vertCount=0,Cn.type=Pa;else if(typeof gn=="number")Zi(gn),Cn.primType=sa,Cn.vertCount=gn|0,Cn.type=Pa;else{var la=null,Yn=wt,Ga=-1,xn=-1,vn=0,Ta=0;Array.isArray(gn)||Br(gn)||Ur(gn)?la=gn:("data"in gn&&(la=gn.data),"usage"in gn&&(Yn=Xi[gn.usage]),"primitive"in gn&&(Ga=$i[gn.primitive]),"count"in gn&&(xn=gn.count|0),"type"in gn&&(Ta=Ni[gn.type]),"length"in gn?vn=gn.length|0:(vn=xn,Ta===aa||Ta===Vo?vn*=2:(Ta===_s||Ta===go)&&(vn*=4))),$a(Cn,la,Yn,Ga,xn,vn,Ta)}return On}return On(fn),On._reglType="elements",On._elements=Cn,On.subdata=function(gn,la){return Zi.subdata(gn,la),On},On.destroy=function(){In(Cn)},On}return{create:Rn,createStream:Fn,destroyStream:yn,getElements:function(fn){return typeof fn=="function"&&fn._elements instanceof cn?fn._elements:null},clear:function(){ut(Vi).forEach(In)}}}var Pr=new Float32Array(1),Xr=new Uint32Array(Pr.buffer),bi=5123;function ai(Mt){for(var Sr=Z.allocType(bi,Mt.length),Wr=0;Wr>>31<<15,Bi=(Ai<<1>>>24)-127,Ni=Ai>>13&1023;if(Bi<-24)Sr[Wr]=Vi;else if(Bi<-14){var cn=-14-Bi;Sr[Wr]=Vi+(Ni+1024>>cn)}else Bi>15?Sr[Wr]=Vi+31744:Sr[Wr]=Vi+(Bi+15<<10)+Ni}return Sr}function Wi(Mt){return Array.isArray(Mt)||Br(Mt)}var ii=34467,Ui=3553,Vn=34067,Tn=34069,xa=6408,fo=6406,zo=6407,lo=6409,To=6410,mo=32854,Ds=32855,Es=36194,Zs=32819,Xs=32820,wl=33635,is=34042,cl=6402,ks=34041,ml=35904,Ys=35906,Hs=36193,Ao=33776,ls=33777,Ql=33778,Hu=33779,fc=35986,vs=35987,on=34798,ua=35840,Qu=35841,Rl=35842,uo=35843,Zl=36196,Ks=5121,Xl=5123,Ec=5125,jn=5126,Mo=10242,So=10243,Tl=10497,uf=33071,wo=33648,cf=10240,rh=10241,Al=9728,Hc=9729,eu=9984,Cs=9985,mu=9986,kc=9987,Of=33170,Gc=4352,vd=4353,Bf=4354,ns=34046,ff=3317,ih=37440,Hl=37441,Js=37443,hc=37444,Cc=33984,xs=[eu,mu,Cs,kc],$s=[0,lo,To,zo,xa],us={};us[lo]=us[fo]=us[cl]=1,us[ks]=us[To]=2,us[zo]=us[ml]=3,us[xa]=us[Ys]=4;function Ms(Mt){return"[object "+Mt+"]"}var dc=Ms("HTMLCanvasElement"),Ml=Ms("OffscreenCanvas"),ec=Ms("CanvasRenderingContext2D"),Ls=Ms("ImageBitmap"),ov=Ms("HTMLImageElement"),_o=Ms("HTMLVideoElement"),Od=Object.keys(be).concat([dc,Ml,ec,Ls,ov,_o]),Yo=[];Yo[Ks]=1,Yo[jn]=4,Yo[Hs]=2,Yo[Xl]=2,Yo[Ec]=4;var Xa=[];Xa[mo]=2,Xa[Ds]=2,Xa[Es]=2,Xa[ks]=4,Xa[Ao]=.5,Xa[ls]=.5,Xa[Ql]=1,Xa[Hu]=1,Xa[fc]=.5,Xa[vs]=1,Xa[on]=1,Xa[ua]=.5,Xa[Qu]=.25,Xa[Rl]=.5,Xa[uo]=.25,Xa[Zl]=.5;function Ef(Mt){return Array.isArray(Mt)&&(Mt.length===0||typeof Mt[0]=="number")}function tc(Mt){if(!Array.isArray(Mt))return!1;var Sr=Mt.length;return!(Sr===0||!Wi(Mt[0]))}function uu(Mt){return Object.prototype.toString.call(Mt)}function Sh(Mt){return uu(Mt)===dc}function jc(Mt){return uu(Mt)===Ml}function kf(Mt){return uu(Mt)===ec}function Sl(Mt){return uu(Mt)===Ls}function Yh(Mt){return uu(Mt)===ov}function Eh(Mt){return uu(Mt)===_o}function nh(Mt){if(!Mt)return!1;var Sr=uu(Mt);return Od.indexOf(Sr)>=0?!0:Ef(Mt)||tc(Mt)||Ur(Mt)}function hf(Mt){return be[Object.prototype.toString.call(Mt)]|0}function kh(Mt,Sr){var Wr=Sr.length;switch(Mt.type){case Ks:case Xl:case Ec:case jn:var Ai=Z.allocType(Mt.type,Wr);Ai.set(Sr),Mt.data=Ai;break;case Hs:Mt.data=ai(Sr);break;default:}}function Kh(Mt,Sr){return Z.allocType(Mt.type===Hs?jn:Mt.type,Sr)}function rc(Mt,Sr){Mt.type===Hs?(Mt.data=ai(Sr),Z.freeType(Sr)):Mt.data=Sr}function ah(Mt,Sr,Wr,Ai,Vi,Bi){for(var Ni=Mt.width,cn=Mt.height,zn=Mt.channels,Fn=Ni*cn*zn,yn=Kh(Mt,Fn),$a=0,In=0;In=1;)cn+=Ni*zn*zn,zn/=2;return cn}else return Ni*Wr*Ai}function df(Mt,Sr,Wr,Ai,Vi,Bi,Ni){var cn={"don't care":Gc,"dont care":Gc,nice:Bf,fast:vd},zn={repeat:Tl,clamp:uf,mirror:wo},Fn={nearest:Al,linear:Hc},yn=e({mipmap:kc,"nearest mipmap nearest":eu,"linear mipmap nearest":Cs,"nearest mipmap linear":mu,"linear mipmap linear":kc},Fn),$a={none:0,browser:hc},In={uint8:Ks,rgba4:Zs,rgb565:wl,"rgb5 a1":Xs},Rn={alpha:fo,luminance:lo,"luminance alpha":To,rgb:zo,rgba:xa,rgba4:mo,"rgb5 a1":Ds,rgb565:Es},fn={};Sr.ext_srgb&&(Rn.srgb=ml,Rn.srgba=Ys),Sr.oes_texture_float&&(In.float32=In.float=jn),Sr.oes_texture_half_float&&(In.float16=In["half float"]=Hs),Sr.webgl_depth_texture&&(e(Rn,{depth:cl,"depth stencil":ks}),e(In,{uint16:Xl,uint32:Ec,"depth stencil":is})),Sr.webgl_compressed_texture_s3tc&&e(fn,{"rgb s3tc dxt1":Ao,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Ql,"rgba s3tc dxt5":Hu}),Sr.webgl_compressed_texture_atc&&e(fn,{"rgb atc":fc,"rgba atc explicit alpha":vs,"rgba atc interpolated alpha":on}),Sr.webgl_compressed_texture_pvrtc&&e(fn,{"rgb pvrtc 4bppv1":ua,"rgb pvrtc 2bppv1":Qu,"rgba pvrtc 4bppv1":Rl,"rgba pvrtc 2bppv1":uo}),Sr.webgl_compressed_texture_etc1&&(fn["rgb etc1"]=Zl);var Si=Array.prototype.slice.call(Mt.getParameter(ii));Object.keys(fn).forEach(function(ve){var Re=fn[ve];Si.indexOf(Re)>=0&&(Rn[ve]=Re)});var Zi=Object.keys(Rn);Wr.textureFormats=Zi;var Cn=[];Object.keys(Rn).forEach(function(ve){var Re=Rn[ve];Cn[Re]=ve});var On=[];Object.keys(In).forEach(function(ve){var Re=In[ve];On[Re]=ve});var gn=[];Object.keys(Fn).forEach(function(ve){var Re=Fn[ve];gn[Re]=ve});var la=[];Object.keys(yn).forEach(function(ve){var Re=yn[ve];la[Re]=ve});var Yn=[];Object.keys(zn).forEach(function(ve){var Re=zn[ve];Yn[Re]=ve});var Ga=Zi.reduce(function(ve,Re){var Ye=Rn[Re];return Ye===lo||Ye===fo||Ye===lo||Ye===To||Ye===cl||Ye===ks||Sr.ext_srgb&&(Ye===ml||Ye===Ys)?ve[Ye]=Ye:Ye===Ds||Re.indexOf("rgba")>=0?ve[Ye]=xa:ve[Ye]=zo,ve},{});function xn(){this.internalformat=xa,this.format=xa,this.type=Ks,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=hc,this.width=0,this.height=0,this.channels=0}function vn(ve,Re){ve.internalformat=Re.internalformat,ve.format=Re.format,ve.type=Re.type,ve.compressed=Re.compressed,ve.premultiplyAlpha=Re.premultiplyAlpha,ve.flipY=Re.flipY,ve.unpackAlignment=Re.unpackAlignment,ve.colorSpace=Re.colorSpace,ve.width=Re.width,ve.height=Re.height,ve.channels=Re.channels}function Ta(ve,Re){if(!(typeof Re!="object"||!Re)){if("premultiplyAlpha"in Re&&(ve.premultiplyAlpha=Re.premultiplyAlpha),"flipY"in Re&&(ve.flipY=Re.flipY),"alignment"in Re&&(ve.unpackAlignment=Re.alignment),"colorSpace"in Re&&(ve.colorSpace=$a[Re.colorSpace]),"type"in Re){var Ye=Re.type;ve.type=In[Ye]}var vt=ve.width,Kt=ve.height,nr=ve.channels,Jt=!1;"shape"in Re?(vt=Re.shape[0],Kt=Re.shape[1],Re.shape.length===3&&(nr=Re.shape[2],Jt=!0)):("radius"in Re&&(vt=Kt=Re.radius),"width"in Re&&(vt=Re.width),"height"in Re&&(Kt=Re.height),"channels"in Re&&(nr=Re.channels,Jt=!0)),ve.width=vt|0,ve.height=Kt|0,ve.channels=nr|0;var dt=!1;if("format"in Re){var Pt=Re.format,jt=ve.internalformat=Rn[Pt];ve.format=Ga[jt],Pt in In&&("type"in Re||(ve.type=In[Pt])),Pt in fn&&(ve.compressed=!0),dt=!0}!Jt&&dt?ve.channels=us[ve.format]:Jt&&!dt&&ve.channels!==$s[ve.format]&&(ve.format=ve.internalformat=$s[ve.channels])}}function na(ve){Mt.pixelStorei(ih,ve.flipY),Mt.pixelStorei(Hl,ve.premultiplyAlpha),Mt.pixelStorei(Js,ve.colorSpace),Mt.pixelStorei(ff,ve.unpackAlignment)}function Wn(){xn.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bn(ve,Re){var Ye=null;if(nh(Re)?Ye=Re:Re&&(Ta(ve,Re),"x"in Re&&(ve.xOffset=Re.x|0),"y"in Re&&(ve.yOffset=Re.y|0),nh(Re.data)&&(Ye=Re.data)),Re.copy){var vt=Vi.viewportWidth,Kt=Vi.viewportHeight;ve.width=ve.width||vt-ve.xOffset,ve.height=ve.height||Kt-ve.yOffset,ve.needsCopy=!0}else if(!Ye)ve.width=ve.width||1,ve.height=ve.height||1,ve.channels=ve.channels||4;else if(Br(Ye))ve.channels=ve.channels||4,ve.data=Ye,!("type"in Re)&&ve.type===Ks&&(ve.type=hf(Ye));else if(Ef(Ye))ve.channels=ve.channels||4,kh(ve,Ye),ve.alignment=1,ve.needsFree=!0;else if(Ur(Ye)){var nr=Ye.data;!Array.isArray(nr)&&ve.type===Ks&&(ve.type=hf(nr));var Jt=Ye.shape,dt=Ye.stride,Pt,jt,ir,dr,pr,Er;Jt.length===3?(ir=Jt[2],Er=dt[2]):(ir=1,Er=1),Pt=Jt[0],jt=Jt[1],dr=dt[0],pr=dt[1],ve.alignment=1,ve.width=Pt,ve.height=jt,ve.channels=ir,ve.format=ve.internalformat=$s[ir],ve.needsFree=!0,ah(ve,nr,dr,pr,Er,Ye.offset)}else if(Sh(Ye)||jc(Ye)||kf(Ye))Sh(Ye)||jc(Ye)?ve.element=Ye:ve.element=Ye.canvas,ve.width=ve.element.width,ve.height=ve.element.height,ve.channels=4;else if(Sl(Ye))ve.element=Ye,ve.width=Ye.width,ve.height=Ye.height,ve.channels=4;else if(Yh(Ye))ve.element=Ye,ve.width=Ye.naturalWidth,ve.height=Ye.naturalHeight,ve.channels=4;else if(Eh(Ye))ve.element=Ye,ve.width=Ye.videoWidth,ve.height=Ye.videoHeight,ve.channels=4;else if(tc(Ye)){var Tr=ve.width||Ye[0].length,mr=ve.height||Ye.length,kr=ve.channels;Wi(Ye[0][0])?kr=kr||Ye[0][0].length:kr=kr||1;for(var cr=rt.shape(Ye),jr=1,ti=0;ti>=Kt,Ye.height>>=Kt,Bn(Ye,vt[Kt]),ve.mipmask|=1<=0&&!("faces"in Re)&&(ve.genMipmaps=!0)}if("mag"in Re){var vt=Re.mag;ve.magFilter=Fn[vt]}var Kt=ve.wrapS,nr=ve.wrapT;if("wrap"in Re){var Jt=Re.wrap;typeof Jt=="string"?Kt=nr=zn[Jt]:Array.isArray(Jt)&&(Kt=zn[Jt[0]],nr=zn[Jt[1]])}else{if("wrapS"in Re){var dt=Re.wrapS;Kt=zn[dt]}if("wrapT"in Re){var Pt=Re.wrapT;nr=zn[Pt]}}if(ve.wrapS=Kt,ve.wrapT=nr,"anisotropic"in Re){var jt=Re.anisotropic;ve.anisotropic=Re.anisotropic}if("mipmap"in Re){var ir=!1;switch(typeof Re.mipmap){case"string":ve.mipmapHint=cn[Re.mipmap],ve.genMipmaps=!0,ir=!0;break;case"boolean":ir=ve.genMipmaps=Re.mipmap;break;case"object":ve.genMipmaps=!1,ir=!0;break;default:}ir&&!("min"in Re)&&(ve.minFilter=eu)}}function wc(ve,Re){Mt.texParameteri(Re,rh,ve.minFilter),Mt.texParameteri(Re,cf,ve.magFilter),Mt.texParameteri(Re,Mo,ve.wrapS),Mt.texParameteri(Re,So,ve.wrapT),Sr.ext_texture_filter_anisotropic&&Mt.texParameteri(Re,ns,ve.anisotropic),ve.genMipmaps&&(Mt.hint(Of,ve.mipmapHint),Mt.generateMipmap(Re))}var yf=0,jl={},Fc=Wr.maxTextureUnits,ef=Array(Fc).map(function(){return null});function as(ve){xn.call(this),this.mipmask=0,this.internalformat=xa,this.id=yf++,this.refCount=1,this.target=ve,this.texture=Mt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new El,Ni.profile&&(this.stats={size:0})}function _f(ve){Mt.activeTexture(Cc),Mt.bindTexture(ve.target,ve.texture)}function ts(){var ve=ef[0];ve?Mt.bindTexture(ve.target,ve.texture):Mt.bindTexture(Ui,null)}function Y(ve){var Re=ve.texture,Ye=ve.unit,vt=ve.target;Ye>=0&&(Mt.activeTexture(Cc+Ye),Mt.bindTexture(vt,null),ef[Ye]=null),Mt.deleteTexture(Re),ve.texture=null,ve.params=null,ve.pixels=null,ve.refCount=0,delete jl[ve.id],Bi.textureCount--}e(as.prototype,{bind:function(){var ve=this;ve.bindCount+=1;var Re=ve.unit;if(Re<0){for(var Ye=0;Ye0)continue;vt.unit=-1}ef[Ye]=ve,Re=Ye;break}Re>=Fc,Ni.profile&&Bi.maxTextureUnits>pr)-ir,Er.height=Er.height||(Ye.height>>pr)-dr,_f(Ye),Qa(Er,Ui,ir,dr,pr),ts(),Fa(Er),vt}function nr(Jt,dt){var Pt=Jt|0,jt=dt|0||Pt;if(Pt===Ye.width&&jt===Ye.height)return vt;vt.width=Ye.width=Pt,vt.height=Ye.height=jt,_f(Ye);for(var ir=0;Ye.mipmask>>ir;++ir){var dr=Pt>>ir,pr=jt>>ir;if(!dr||!pr)break;Mt.texImage2D(Ui,ir,Ye.format,dr,pr,0,Ye.format,Ye.type,null)}return ts(),Ni.profile&&(Ye.stats.size=Wc(Ye.internalformat,Ye.type,Pt,jt,!1,!1)),vt}return vt(ve,Re),vt.subimage=Kt,vt.resize=nr,vt._reglType="texture2d",vt._texture=Ye,Ni.profile&&(vt.stats=Ye.stats),vt.destroy=function(){Ye.decRef()},vt}function J(ve,Re,Ye,vt,Kt,nr){var Jt=new as(Vn);jl[Jt.id]=Jt,Bi.cubeCount++;var dt=new Array(6);function Pt(dr,pr,Er,Tr,mr,kr){var cr,jr=Jt.texInfo;for(El.call(jr),cr=0;cr<6;++cr)dt[cr]=ms();if(typeof dr=="number"||!dr){var ti=dr|0||1;for(cr=0;cr<6;++cr)ko(dt[cr],ti,ti)}else if(typeof dr=="object")if(pr)Xo(dt[0],dr),Xo(dt[1],pr),Xo(dt[2],Er),Xo(dt[3],Tr),Xo(dt[4],mr),Xo(dt[5],kr);else if(bc(jr,dr),Ta(Jt,dr),"faces"in dr){var _i=dr.faces;for(cr=0;cr<6;++cr)vn(dt[cr],Jt),Xo(dt[cr],_i[cr])}else for(cr=0;cr<6;++cr)Xo(dt[cr],dr);for(vn(Jt,dt[0]),jr.genMipmaps?Jt.mipmask=(dt[0].width<<1)-1:Jt.mipmask=dt[0].mipmask,Jt.internalformat=dt[0].internalformat,Pt.width=dt[0].width,Pt.height=dt[0].height,_f(Jt),cr=0;cr<6;++cr)Yl(dt[cr],Tn+cr);for(wc(jr,Vn),ts(),Ni.profile&&(Jt.stats.size=Wc(Jt.internalformat,Jt.type,Pt.width,Pt.height,jr.genMipmaps,!0)),Pt.format=Cn[Jt.internalformat],Pt.type=On[Jt.type],Pt.mag=gn[jr.magFilter],Pt.min=la[jr.minFilter],Pt.wrapS=Yn[jr.wrapS],Pt.wrapT=Yn[jr.wrapT],cr=0;cr<6;++cr)Qc(dt[cr]);return Pt}function jt(dr,pr,Er,Tr,mr){var kr=Er|0,cr=Tr|0,jr=mr|0,ti=Kn();return vn(ti,Jt),ti.width=0,ti.height=0,Bn(ti,pr),ti.width=ti.width||(Jt.width>>jr)-kr,ti.height=ti.height||(Jt.height>>jr)-cr,_f(Jt),Qa(ti,Tn+dr,kr,cr,jr),ts(),Fa(ti),Pt}function ir(dr){var pr=dr|0;if(pr!==Jt.width){Pt.width=Jt.width=pr,Pt.height=Jt.height=pr,_f(Jt);for(var Er=0;Er<6;++Er)for(var Tr=0;Jt.mipmask>>Tr;++Tr)Mt.texImage2D(Tn+Er,Tr,Jt.format,pr>>Tr,pr>>Tr,0,Jt.format,Jt.type,null);return ts(),Ni.profile&&(Jt.stats.size=Wc(Jt.internalformat,Jt.type,Pt.width,Pt.height,!1,!0)),Pt}}return Pt(ve,Re,Ye,vt,Kt,nr),Pt.subimage=jt,Pt.resize=ir,Pt._reglType="textureCube",Pt._texture=Jt,Ni.profile&&(Pt.stats=Jt.stats),Pt.destroy=function(){Jt.decRef()},Pt}function O(){for(var ve=0;ve>vt,Ye.height>>vt,0,Ye.internalformat,Ye.type,null);else for(var Kt=0;Kt<6;++Kt)Mt.texImage2D(Tn+Kt,vt,Ye.internalformat,Ye.width>>vt,Ye.height>>vt,0,Ye.internalformat,Ye.type,null);wc(Ye.texInfo,Ye.target)})}function me(){for(var ve=0;ve=0?Qc=!0:zn.indexOf(El)>=0&&(Qc=!1))),("depthTexture"in as||"depthStencilTexture"in as)&&(ef=!!(as.depthTexture||as.depthStencilTexture)),"depth"in as&&(typeof as.depth=="boolean"?Yl=as.depth:(yf=as.depth,$c=!1)),"stencil"in as&&(typeof as.stencil=="boolean"?$c=as.stencil:(jl=as.stencil,Yl=!1)),"depthStencil"in as&&(typeof as.depthStencil=="boolean"?Yl=$c=as.depthStencil:(Fc=as.depthStencil,Yl=!1,$c=!1))}var ts=null,Y=null,z=null,J=null;if(Array.isArray(ms))ts=ms.map(fn);else if(ms)ts=[fn(ms)];else for(ts=new Array(wc),po=0;po0&&(Fa.depth=Bn[0].depth,Fa.stencil=Bn[0].stencil,Fa.depthStencil=Bn[0].depthStencil),Bn[Kn]?Bn[Kn](Fa):Bn[Kn]=vn(Fa)}return e(pa,{width:po,height:po,color:El})}function Qa(bo){var Kn,Fa=bo|0;if(Fa===pa.width)return pa;var po=pa.color;for(Kn=0;Kn=po.byteLength?ko.subdata(po):(ko.destroy(),vn.buffers[bo]=null)),vn.buffers[bo]||(ko=vn.buffers[bo]=Vi.create(Kn,sh,!1,!0)),Fa.buffer=Vi.getBuffer(ko),Fa.size=Fa.buffer.dimension|0,Fa.normalized=!1,Fa.type=Fa.buffer.dtype,Fa.offset=0,Fa.stride=0,Fa.divisor=0,Fa.state=1,pa[bo]=1}else Vi.getBuffer(Kn)?(Fa.buffer=Vi.getBuffer(Kn),Fa.size=Fa.buffer.dimension|0,Fa.normalized=!1,Fa.type=Fa.buffer.dtype,Fa.offset=0,Fa.stride=0,Fa.divisor=0,Fa.state=1):Vi.getBuffer(Kn.buffer)?(Fa.buffer=Vi.getBuffer(Kn.buffer),Fa.size=(+Kn.size||Fa.buffer.dimension)|0,Fa.normalized=!!Kn.normalized||!1,"type"in Kn?Fa.type=Ti[Kn.type]:Fa.type=Fa.buffer.dtype,Fa.offset=(Kn.offset||0)|0,Fa.stride=(Kn.stride||0)|0,Fa.divisor=(Kn.divisor||0)|0,Fa.state=1):"x"in Kn&&(Fa.x=+Kn.x||0,Fa.y=+Kn.y||0,Fa.z=+Kn.z||0,Fa.w=+Kn.w||0,Fa.state=2)}for(var Xo=0;Xo1)for(var na=0;naSi&&(Si=Zi.stats.uniformsCount)}),Si},Wr.getMaxAttributesCount=function(){var Si=0;return yn.forEach(function(Zi){Zi.stats.attributesCount>Si&&(Si=Zi.stats.attributesCount)}),Si});function fn(){Vi={},Bi={};for(var Si=0;Si16&&(Wr=Mi(Wr,Mt.length*8));for(var Ai=Array(16),Vi=Array(16),Bi=0;Bi<16;Bi++)Ai[Bi]=Wr[Bi]^909522486,Vi[Bi]=Wr[Bi]^1549556828;var Ni=Mi(Ai.concat(gf(Sr)),512+Sr.length*8);return pt(Mi(Vi.concat(Ni),768))}function iu(Mt){for(var Sr=Ih?"0123456789ABCDEF":"0123456789abcdef",Wr="",Ai,Vi=0;Vi>>4&15)+Sr.charAt(Ai&15);return Wr}function mc(Mt){for(var Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wr="",Ai=Mt.length,Vi=0;ViMt.length*8?Wr+=Wu:Wr+=Sr.charAt(Bi>>>6*(3-Ni)&63);return Wr}function Yc(Mt,Sr){var Wr=Sr.length,Ai=Array(),Vi,Bi,Ni,cn,zn=Array(Math.ceil(Mt.length/2));for(Vi=0;Vi0;){for(cn=Array(),Ni=0,Vi=0;Vi0||Bi>0)&&(cn[cn.length]=Bi);Ai[Ai.length]=Ni,zn=cn}var Fn="";for(Vi=Ai.length-1;Vi>=0;Vi--)Fn+=Sr.charAt(Ai[Vi]);var yn=Math.ceil(Mt.length*8/(Math.log(Sr.length)/Math.log(2)));for(Vi=Fn.length;Vi>>6&31,128|Ai&63):Ai<=65535?Sr+=String.fromCharCode(224|Ai>>>12&15,128|Ai>>>6&63,128|Ai&63):Ai<=2097151&&(Sr+=String.fromCharCode(240|Ai>>>18&7,128|Ai>>>12&63,128|Ai>>>6&63,128|Ai&63));return Sr}function gf(Mt){for(var Sr=Array(Mt.length>>2),Wr=0;Wr>5]|=(Mt.charCodeAt(Wr/8)&255)<<24-Wr%32;return Sr}function pt(Mt){for(var Sr="",Wr=0;Wr>5]>>>24-Wr%32&255);return Sr}function Nt(Mt,Sr){return Mt>>>Sr|Mt<<32-Sr}function br(Mt,Sr){return Mt>>>Sr}function vr(Mt,Sr,Wr){return Mt&Sr^~Mt&Wr}function Vr(Mt,Sr,Wr){return Mt&Sr^Mt&Wr^Sr&Wr}function di(Mt){return Nt(Mt,2)^Nt(Mt,13)^Nt(Mt,22)}function wi(Mt){return Nt(Mt,6)^Nt(Mt,11)^Nt(Mt,25)}function qi(Mt){return Nt(Mt,7)^Nt(Mt,18)^br(Mt,3)}function Ji(Mt){return Nt(Mt,17)^Nt(Mt,19)^br(Mt,10)}var hn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Mi(Mt,Sr){var Wr=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ai=new Array(64),Vi,Bi,Ni,cn,zn,Fn,yn,$a,In,Rn,fn,Si;for(Mt[Sr>>5]|=128<<24-Sr%32,Mt[(Sr+64>>9<<4)+15]=Sr,In=0;In>16)+(Sr>>16)+(Wr>>16);return Ai<<16|Wr&65535}function Di(Mt){return Array.prototype.slice.call(Mt)}function yi(Mt){return Di(Mt).join("")}function Ln(Mt){var Sr=Mt&&Mt.cache,Wr=0,Ai=[],Vi=[],Bi=[];function Ni(fn,Si){var Zi=Si&&Si.stable;if(!Zi){for(var Cn=0;Cn0&&(fn.push(On,"="),fn.push.apply(fn,Di(arguments)),fn.push(";")),On}return e(Si,{def:Cn,toString:function(){return yi([Zi.length>0?"var "+Zi.join(",")+";":"",yi(fn)])}})}function zn(){var fn=cn(),Si=cn(),Zi=fn.toString,Cn=Si.toString;function On(gn,la){Si(gn,la,"=",fn.def(gn,la),";")}return e(function(){fn.apply(fn,Di(arguments))},{def:fn.def,entry:fn,exit:Si,save:On,set:function(gn,la,Yn){On(gn,la),fn(gn,la,"=",Yn,";")},toString:function(){return Zi()+Cn()}})}function Fn(){var fn=yi(arguments),Si=zn(),Zi=zn(),Cn=Si.toString,On=Zi.toString;return e(Si,{then:function(){return Si.apply(Si,Di(arguments)),this},else:function(){return Zi.apply(Zi,Di(arguments)),this},toString:function(){var gn=On();return gn&&(gn="else{"+gn+"}"),yi(["if(",fn,"){",Cn(),"}",gn])}})}var yn=cn(),$a={};function In(fn,Si){var Zi=[];function Cn(){var Ga="a"+Zi.length;return Zi.push(Ga),Ga}Si=Si||0;for(var On=0;On":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},$r={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},oi={cw:Ae,ccw:Oe};function pi(Mt){return Array.isArray(Mt)||Br(Mt)||Ur(Mt)}function hi(Mt){return Mt.sort(function(Sr,Wr){return Sr===te?-1:Wr===te?1:Sr=1,Ai>=2,Sr)}else if(Wr===jo){var Vi=Mt.data;return new Qr(Vi.thisDep,Vi.contextDep,Vi.propDep,Sr)}else{if(Wr===bs)return new Qr(!1,!1,!1,Sr);if(Wr===Ko){for(var Bi=!1,Ni=!1,cn=!1,zn=0;zn=1&&(Ni=!0),yn>=2&&(cn=!0)}else Fn.type===jo&&(Bi=Bi||Fn.data.thisDep,Ni=Ni||Fn.data.contextDep,cn=cn||Fn.data.propDep)}return new Qr(Bi,Ni,cn,Sr)}else return new Qr(Wr===ho,Wr===Ba,Wr===sn,Sr)}}var qn=new Qr(!1,!1,!1,function(){});function va(Mt,Sr,Wr,Ai,Vi,Bi,Ni,cn,zn,Fn,yn,$a,In,Rn,fn,Si){var Zi=Fn.Record,Cn={add:32774,subtract:32778,"reverse subtract":32779};Wr.ext_blend_minmax&&(Cn.min=Be,Cn.max=Ve);var On=Wr.angle_instanced_arrays,gn=Wr.webgl_draw_buffers,la=Wr.oes_vertex_array_object,Yn={dirty:!0,profile:Si.profile},Ga={},xn=[],vn={},Ta={};function na(dt){return dt.replace(".","_")}function Wn(dt,Pt,jt){var ir=na(dt);xn.push(dt),Ga[ir]=Yn[ir]=!!jt,vn[ir]=Pt}function Bn(dt,Pt,jt){var ir=na(dt);xn.push(dt),Array.isArray(jt)?(Yn[ir]=jt.slice(),Ga[ir]=jt.slice()):Yn[ir]=Ga[ir]=jt,Ta[ir]=Pt}function pa(dt){return!!isNaN(dt)}Wn(ps,vi),Wn(Fo,Yr),Bn(yl,"blendColor",[0,0,0,0]),Bn(Gs,"blendEquationSeparate",[lr,lr]),Bn(Is,"blendFuncSeparate",[or,zt,or,zt]),Wn(ra,Pi,!0),Bn(Za,"depthFunc",zr),Bn(fs,"depthRange",[0,1]),Bn(Zo,"depthMask",!0),Bn(nu,nu,[!0,!0,!0,!0]),Wn(Ru,Fr),Bn(ac,"cullFace",oe),Bn(mf,mf,Oe),Bn(bu,bu,1),Wn(Kc,Mn),Bn(Du,"polygonOffset",[0,0]),Wn(Dc,da),Wn(Ia,Qn),Bn(Ja,"sampleCoverage",[1,!1]),Wn(Jc,Ii),Bn(yc,"stencilMask",-1),Bn(_c,"stencilFunc",[bt,0,-1]),Bn(ue,"stencilOpSeparate",[W,et,et,et]),Bn(w,"stencilOpSeparate",[oe,et,et,et]),Wn(B,en),Bn(ee,"scissor",[0,0,Mt.drawingBufferWidth,Mt.drawingBufferHeight]),Bn(te,te,[0,0,Mt.drawingBufferWidth,Mt.drawingBufferHeight]);var Qa={gl:Mt,context:In,strings:Sr,next:Ga,current:Yn,draw:$a,elements:Bi,buffer:Vi,shader:yn,attributes:Fn.state,vao:Fn,uniforms:zn,framebuffer:cn,extensions:Wr,timer:Rn,isBufferArgs:pi},bo={primTypes:$i,compareFuncs:Or,blendFuncs:fi,blendEquations:Cn,stencilOps:$r,glTypes:Ti,orientationType:oi};gn&&(bo.backBuffer=[oe],bo.drawBuffer=S(Ai.maxDrawbuffers,function(dt){return dt===0?[0]:S(dt,function(Pt){return li+Pt})}));var Kn=0;function Fa(){var dt=Ln({cache:fn}),Pt=dt.link,jt=dt.global;dt.id=Kn++,dt.batchId="0";var ir=Pt(Qa),dr=dt.shared={props:"a0"};Object.keys(Qa).forEach(function(kr){dr[kr]=jt.def(ir,".",kr)});var pr=dt.next={},Er=dt.current={};Object.keys(Ta).forEach(function(kr){Array.isArray(Yn[kr])&&(pr[kr]=jt.def(dr.next,".",kr),Er[kr]=jt.def(dr.current,".",kr))});var Tr=dt.constants={};Object.keys(bo).forEach(function(kr){Tr[kr]=jt.def(JSON.stringify(bo[kr]))}),dt.invoke=function(kr,cr){switch(cr.type){case kn:var jr=["this",dr.context,dr.props,dt.batchId];return kr.def(Pt(cr.data),".call(",jr.slice(0,Math.max(cr.data.length+1,4)),")");case sn:return kr.def(dr.props,cr.data);case Ba:return kr.def(dr.context,cr.data);case ho:return kr.def("this",cr.data);case jo:return cr.data.append(dt,kr),cr.data.ref;case bs:return cr.data.toString();case Ko:return cr.data.map(function(ti){return dt.invoke(kr,ti)})}},dt.attribCache={};var mr={};return dt.scopeAttrib=function(kr){var cr=Sr.id(kr);if(cr in mr)return mr[cr];var jr=Fn.scope[cr];jr||(jr=Fn.scope[cr]=new Zi);var ti=mr[cr]=Pt(jr);return ti},dt}function po(dt){var Pt=dt.static,jt=dt.dynamic,ir;if(se in Pt){var dr=!!Pt[se];ir=dn(function(Er,Tr){return dr}),ir.enable=dr}else if(se in jt){var pr=jt[se];ir=Sn(pr,function(Er,Tr){return Er.invoke(Tr,pr)})}return ir}function ko(dt,Pt){var jt=dt.static,ir=dt.dynamic;if(Fe in jt){var dr=jt[Fe];return dr?(dr=cn.getFramebuffer(dr),dn(function(Er,Tr){var mr=Er.link(dr),kr=Er.shared;Tr.set(kr.framebuffer,".next",mr);var cr=kr.context;return Tr.set(cr,"."+qe,mr+".width"),Tr.set(cr,"."+We,mr+".height"),mr})):dn(function(Er,Tr){var mr=Er.shared;Tr.set(mr.framebuffer,".next","null");var kr=mr.context;return Tr.set(kr,"."+qe,kr+"."+Dt),Tr.set(kr,"."+We,kr+"."+Ht),"null"})}else if(Fe in ir){var pr=ir[Fe];return Sn(pr,function(Er,Tr){var mr=Er.invoke(Tr,pr),kr=Er.shared,cr=kr.framebuffer,jr=Tr.def(cr,".getFramebuffer(",mr,")");Tr.set(cr,".next",jr);var ti=kr.context;return Tr.set(ti,"."+qe,jr+"?"+jr+".width:"+ti+"."+Dt),Tr.set(ti,"."+We,jr+"?"+jr+".height:"+ti+"."+Ht),jr})}else return null}function Xo(dt,Pt,jt){var ir=dt.static,dr=dt.dynamic;function pr(mr){if(mr in ir){var kr=ir[mr],cr=!0,jr=kr.x|0,ti=kr.y|0,_i,rn;return"width"in kr?_i=kr.width|0:cr=!1,"height"in kr?rn=kr.height|0:cr=!1,new Qr(!cr&&Pt&&Pt.thisDep,!cr&&Pt&&Pt.contextDep,!cr&&Pt&&Pt.propDep,function($n,Dn){var nn=$n.shared.context,_n=_i;"width"in kr||(_n=Dn.def(nn,".",qe,"-",jr));var mn=rn;return"height"in kr||(mn=Dn.def(nn,".",We,"-",ti)),[jr,ti,_n,mn]})}else if(mr in dr){var zi=dr[mr],ln=Sn(zi,function($n,Dn){var nn=$n.invoke(Dn,zi),_n=$n.shared.context,mn=Dn.def(nn,".x|0"),Hn=Dn.def(nn,".y|0"),fa=Dn.def('"width" in ',nn,"?",nn,".width|0:","(",_n,".",qe,"-",mn,")"),qo=Dn.def('"height" in ',nn,"?",nn,".height|0:","(",_n,".",We,"-",Hn,")");return[mn,Hn,fa,qo]});return Pt&&(ln.thisDep=ln.thisDep||Pt.thisDep,ln.contextDep=ln.contextDep||Pt.contextDep,ln.propDep=ln.propDep||Pt.propDep),ln}else return Pt?new Qr(Pt.thisDep,Pt.contextDep,Pt.propDep,function($n,Dn){var nn=$n.shared.context;return[0,0,Dn.def(nn,".",qe),Dn.def(nn,".",We)]}):null}var Er=pr(te);if(Er){var Tr=Er;Er=new Qr(Er.thisDep,Er.contextDep,Er.propDep,function(mr,kr){var cr=Tr.append(mr,kr),jr=mr.shared.context;return kr.set(jr,"."+Ne,cr[2]),kr.set(jr,"."+$e,cr[3]),cr})}return{viewport:Er,scissor_box:pr(ee)}}function Yl(dt,Pt){var jt=dt.static,ir=typeof jt[tt]=="string"&&typeof jt[Ue]=="string";if(ir){if(Object.keys(Pt.dynamic).length>0)return null;var dr=Pt.static,pr=Object.keys(dr);if(pr.length>0&&typeof dr[pr[0]]=="number"){for(var Er=[],Tr=0;Tr"+mn+"?"+cr+".constant["+mn+"]:0;"}).join(""),"}}else{","if(",_i,"(",cr,".buffer)){",$n,"=",rn,".createStream(",yr,",",cr,".buffer);","}else{",$n,"=",rn,".getBuffer(",cr,".buffer);","}",Dn,'="type" in ',cr,"?",ti.glTypes,"[",cr,".type]:",$n,".dtype;",zi.normalized,"=!!",cr,".normalized;");function nn(_n){kr(zi[_n],"=",cr,".",_n,"|0;")}return nn("size"),nn("offset"),nn("stride"),nn("divisor"),kr("}}"),kr.exit("if(",zi.isStream,"){",rn,".destroyStream(",$n,");","}"),zi}dr[pr]=Sn(Er,Tr)}),dr}function wc(dt){var Pt=dt.static,jt=dt.dynamic,ir={};return Object.keys(Pt).forEach(function(dr){var pr=Pt[dr];ir[dr]=dn(function(Er,Tr){return typeof pr=="number"||typeof pr=="boolean"?""+pr:Er.link(pr)})}),Object.keys(jt).forEach(function(dr){var pr=jt[dr];ir[dr]=Sn(pr,function(Er,Tr){return Er.invoke(Tr,pr)})}),ir}function yf(dt,Pt,jt,ir,dr){var pr=dt.static,Er=dt.dynamic,Tr=Yl(dt,Pt),mr=ko(dt,dr),kr=Xo(dt,mr,dr),cr=ms(dt,dr),jr=Qc(dt,dr),ti=$c(dt,dr,Tr);function _i(nn){var _n=kr[nn];_n&&(jr[nn]=_n)}_i(te),_i(na(ee));var rn=Object.keys(jr).length>0,zi={framebuffer:mr,draw:cr,shader:ti,state:jr,dirty:rn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(zi.profile=po(dt,dr),zi.uniforms=El(jt,dr),zi.drawVAO=zi.scopeVAO=cr.vao,!zi.drawVAO&&ti.program&&!Tr&&Wr.angle_instanced_arrays&&cr.static.elements){var ln=!0,$n=ti.program.attributes.map(function(nn){var _n=Pt.static[nn];return ln=ln&&!!_n,_n});if(ln&&$n.length>0){var Dn=Fn.getVAO(Fn.createVAO({attributes:$n,elements:cr.static.elements}));zi.drawVAO=new Qr(null,null,null,function(nn,_n){return nn.link(Dn)}),zi.useVAO=!0}}return Tr?zi.useVAO=!0:zi.attributes=bc(Pt,dr),zi.context=wc(ir,dr),zi}function jl(dt,Pt,jt){var ir=dt.shared,dr=ir.context,pr=dt.scope();Object.keys(jt).forEach(function(Er){Pt.save(dr,"."+Er);var Tr=jt[Er],mr=Tr.append(dt,Pt);Array.isArray(mr)?pr(dr,".",Er,"=[",mr.join(),"];"):pr(dr,".",Er,"=",mr,";")}),Pt(pr)}function Fc(dt,Pt,jt,ir){var dr=dt.shared,pr=dr.gl,Er=dr.framebuffer,Tr;gn&&(Tr=Pt.def(dr.extensions,".webgl_draw_buffers"));var mr=dt.constants,kr=mr.drawBuffer,cr=mr.backBuffer,jr;jt?jr=jt.append(dt,Pt):jr=Pt.def(Er,".next"),ir||Pt("if(",jr,"!==",Er,".cur){"),Pt("if(",jr,"){",pr,".bindFramebuffer(",Rr,",",jr,".framebuffer);"),gn&&Pt(Tr,".drawBuffersWEBGL(",kr,"[",jr,".colorAttachments.length]);"),Pt("}else{",pr,".bindFramebuffer(",Rr,",null);"),gn&&Pt(Tr,".drawBuffersWEBGL(",cr,");"),Pt("}",Er,".cur=",jr,";"),ir||Pt("}")}function ef(dt,Pt,jt){var ir=dt.shared,dr=ir.gl,pr=dt.current,Er=dt.next,Tr=ir.current,mr=ir.next,kr=dt.cond(Tr,".dirty");xn.forEach(function(cr){var jr=na(cr);if(!(jr in jt.state)){var ti,_i;if(jr in Er){ti=Er[jr],_i=pr[jr];var rn=S(Yn[jr].length,function(ln){return kr.def(ti,"[",ln,"]")});kr(dt.cond(rn.map(function(ln,$n){return ln+"!=="+_i+"["+$n+"]"}).join("||")).then(dr,".",Ta[jr],"(",rn,");",rn.map(function(ln,$n){return _i+"["+$n+"]="+ln}).join(";"),";"))}else{ti=kr.def(mr,".",jr);var zi=dt.cond(ti,"!==",Tr,".",jr);kr(zi),jr in vn?zi(dt.cond(ti).then(dr,".enable(",vn[jr],");").else(dr,".disable(",vn[jr],");"),Tr,".",jr,"=",ti,";"):zi(dr,".",Ta[jr],"(",ti,");",Tr,".",jr,"=",ti,";")}}}),Object.keys(jt.state).length===0&&kr(Tr,".dirty=false;"),Pt(kr)}function as(dt,Pt,jt,ir){var dr=dt.shared,pr=dt.current,Er=dr.current,Tr=dr.gl,mr;hi(Object.keys(jt)).forEach(function(kr){var cr=jt[kr];if(!(ir&&!ir(cr))){var jr=cr.append(dt,Pt);if(vn[kr]){var ti=vn[kr];un(cr)?(mr=dt.link(jr,{stable:!0}),Pt(dt.cond(mr).then(Tr,".enable(",ti,");").else(Tr,".disable(",ti,");")),Pt(Er,".",kr,"=",mr,";")):(Pt(dt.cond(jr).then(Tr,".enable(",ti,");").else(Tr,".disable(",ti,");")),Pt(Er,".",kr,"=",jr,";"))}else if(Wi(jr)){var _i=pr[kr];Pt(Tr,".",Ta[kr],"(",jr,");",jr.map(function(rn,zi){return _i+"["+zi+"]="+rn}).join(";"),";")}else un(cr)?(mr=dt.link(jr,{stable:!0}),Pt(Tr,".",Ta[kr],"(",mr,");",Er,".",kr,"=",mr,";")):Pt(Tr,".",Ta[kr],"(",jr,");",Er,".",kr,"=",jr,";")}})}function _f(dt,Pt){On&&(dt.instancing=Pt.def(dt.shared.extensions,".angle_instanced_arrays"))}function ts(dt,Pt,jt,ir,dr){var pr=dt.shared,Er=dt.stats,Tr=pr.current,mr=pr.timer,kr=jt.profile;function cr(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var jr,ti;function _i(nn){jr=Pt.def(),nn(jr,"=",cr(),";"),typeof dr=="string"?nn(Er,".count+=",dr,";"):nn(Er,".count++;"),Rn&&(ir?(ti=Pt.def(),nn(ti,"=",mr,".getNumPendingQueries();")):nn(mr,".beginQuery(",Er,");"))}function rn(nn){nn(Er,".cpuTime+=",cr(),"-",jr,";"),Rn&&(ir?nn(mr,".pushScopeStats(",ti,",",mr,".getNumPendingQueries(),",Er,");"):nn(mr,".endQuery();"))}function zi(nn){var _n=Pt.def(Tr,".profile");Pt(Tr,".profile=",nn,";"),Pt.exit(Tr,".profile=",_n,";")}var ln;if(kr){if(un(kr)){kr.enable?(_i(Pt),rn(Pt.exit),zi("true")):zi("false");return}ln=kr.append(dt,Pt),zi(ln)}else ln=Pt.def(Tr,".profile");var $n=dt.block();_i($n),Pt("if(",ln,"){",$n,"}");var Dn=dt.block();rn(Dn),Pt.exit("if(",ln,"){",Dn,"}")}function Y(dt,Pt,jt,ir,dr){var pr=dt.shared;function Er(mr){switch(mr){case xo:case Rs:case _l:return 2;case Ha:case ws:case Gl:return 3;case oo:case vo:case Zu:return 4;default:return 1}}function Tr(mr,kr,cr){var jr=pr.gl,ti=Pt.def(mr,".location"),_i=Pt.def(pr.attributes,"[",ti,"]"),rn=cr.state,zi=cr.buffer,ln=[cr.x,cr.y,cr.z,cr.w],$n=["buffer","normalized","offset","stride"];function Dn(){Pt("if(!",_i,".buffer){",jr,".enableVertexAttribArray(",ti,");}");var _n=cr.type,mn;if(cr.size?mn=Pt.def(cr.size,"||",kr):mn=kr,Pt("if(",_i,".type!==",_n,"||",_i,".size!==",mn,"||",$n.map(function(fa){return _i+"."+fa+"!=="+cr[fa]}).join("||"),"){",jr,".bindBuffer(",yr,",",zi,".buffer);",jr,".vertexAttribPointer(",[ti,mn,_n,cr.normalized,cr.stride,cr.offset],");",_i,".type=",_n,";",_i,".size=",mn,";",$n.map(function(fa){return _i+"."+fa+"="+cr[fa]+";"}).join(""),"}"),On){var Hn=cr.divisor;Pt("if(",_i,".divisor!==",Hn,"){",dt.instancing,".vertexAttribDivisorANGLE(",[ti,Hn],");",_i,".divisor=",Hn,";}")}}function nn(){Pt("if(",_i,".buffer){",jr,".disableVertexAttribArray(",ti,");",_i,".buffer=null;","}if(",Aa.map(function(_n,mn){return _i+"."+_n+"!=="+ln[mn]}).join("||"),"){",jr,".vertexAttrib4f(",ti,",",ln,");",Aa.map(function(_n,mn){return _i+"."+_n+"="+ln[mn]+";"}).join(""),"}")}rn===Ma?Dn():rn===za?nn():(Pt("if(",rn,"===",Ma,"){"),Dn(),Pt("}else{"),nn(),Pt("}"))}ir.forEach(function(mr){var kr=mr.name,cr=jt.attributes[kr],jr;if(cr){if(!dr(cr))return;jr=cr.append(dt,Pt)}else{if(!dr(qn))return;var ti=dt.scopeAttrib(kr);jr={},Object.keys(new Zi).forEach(function(_i){jr[_i]=Pt.def(ti,".",_i)})}Tr(dt.link(mr),Er(mr.info.type),jr)})}function z(dt,Pt,jt,ir,dr,pr){for(var Er=dt.shared,Tr=Er.gl,mr,kr=0;kr1){for(var Po=[],hs=[],so=0;so>1)",zi],");")}function Hn(){jt(ln,".drawArraysInstancedANGLE(",[ti,_i,rn,zi],");")}cr&&cr!=="null"?Dn?mn():(jt("if(",cr,"){"),mn(),jt("}else{"),Hn(),jt("}")):Hn()}function _n(){function mn(){jt(pr+".drawElements("+[ti,rn,$n,_i+"<<(("+$n+"-"+wa+")>>1)"]+");")}function Hn(){jt(pr+".drawArrays("+[ti,_i,rn]+");")}cr&&cr!=="null"?Dn?mn():(jt("if(",cr,"){"),mn(),jt("}else{"),Hn(),jt("}")):Hn()}On&&(typeof zi!="number"||zi>=0)?typeof zi=="string"?(jt("if(",zi,">0){"),nn(),jt("}else if(",zi,"<0){"),_n(),jt("}")):nn():_n()}function O(dt,Pt,jt,ir,dr){var pr=Fa(),Er=pr.proc("body",dr);return On&&(pr.instancing=Er.def(pr.shared.extensions,".angle_instanced_arrays")),dt(pr,Er,jt,ir),pr.compile().body}function Q(dt,Pt,jt,ir){_f(dt,Pt),jt.useVAO?jt.drawVAO?Pt(dt.shared.vao,".setVAO(",jt.drawVAO.append(dt,Pt),");"):Pt(dt.shared.vao,".setVAO(",dt.shared.vao,".targetVAO);"):(Pt(dt.shared.vao,".setVAO(null);"),Y(dt,Pt,jt,ir.attributes,function(){return!0})),z(dt,Pt,jt,ir.uniforms,function(){return!0},!1),J(dt,Pt,Pt,jt)}function me(dt,Pt){var jt=dt.proc("draw",1);_f(dt,jt),jl(dt,jt,Pt.context),Fc(dt,jt,Pt.framebuffer),ef(dt,jt,Pt),as(dt,jt,Pt.state),ts(dt,jt,Pt,!1,!0);var ir=Pt.shader.progVar.append(dt,jt);if(jt(dt.shared.gl,".useProgram(",ir,".program);"),Pt.shader.program)Q(dt,jt,Pt,Pt.shader.program);else{jt(dt.shared.vao,".setVAO(null);");var dr=dt.global.def("{}"),pr=jt.def(ir,".id"),Er=jt.def(dr,"[",pr,"]");jt(dt.cond(Er).then(Er,".call(this,a0);").else(Er,"=",dr,"[",pr,"]=",dt.link(function(Tr){return O(Q,dt,Pt,Tr,1)}),"(",ir,");",Er,".call(this,a0);"))}Object.keys(Pt.state).length>0&&jt(dt.shared.current,".dirty=true;"),dt.shared.vao&&jt(dt.shared.vao,".setVAO(null);")}function ve(dt,Pt,jt,ir){dt.batchId="a1",_f(dt,Pt);function dr(){return!0}Y(dt,Pt,jt,ir.attributes,dr),z(dt,Pt,jt,ir.uniforms,dr,!1),J(dt,Pt,Pt,jt)}function Re(dt,Pt,jt,ir){_f(dt,Pt);var dr=jt.contextDep,pr=Pt.def(),Er="a0",Tr="a1",mr=Pt.def();dt.shared.props=mr,dt.batchId=pr;var kr=dt.scope(),cr=dt.scope();Pt(kr.entry,"for(",pr,"=0;",pr,"<",Tr,";++",pr,"){",mr,"=",Er,"[",pr,"];",cr,"}",kr.exit);function jr($n){return $n.contextDep&&dr||$n.propDep}function ti($n){return!jr($n)}if(jt.needsContext&&jl(dt,cr,jt.context),jt.needsFramebuffer&&Fc(dt,cr,jt.framebuffer),as(dt,cr,jt.state,jr),jt.profile&&jr(jt.profile)&&ts(dt,cr,jt,!1,!0),ir)jt.useVAO?jt.drawVAO?jr(jt.drawVAO)?cr(dt.shared.vao,".setVAO(",jt.drawVAO.append(dt,cr),");"):kr(dt.shared.vao,".setVAO(",jt.drawVAO.append(dt,kr),");"):kr(dt.shared.vao,".setVAO(",dt.shared.vao,".targetVAO);"):(kr(dt.shared.vao,".setVAO(null);"),Y(dt,kr,jt,ir.attributes,ti),Y(dt,cr,jt,ir.attributes,jr)),z(dt,kr,jt,ir.uniforms,ti,!1),z(dt,cr,jt,ir.uniforms,jr,!0),J(dt,kr,cr,jt);else{var _i=dt.global.def("{}"),rn=jt.shader.progVar.append(dt,cr),zi=cr.def(rn,".id"),ln=cr.def(_i,"[",zi,"]");cr(dt.shared.gl,".useProgram(",rn,".program);","if(!",ln,"){",ln,"=",_i,"[",zi,"]=",dt.link(function($n){return O(ve,dt,jt,$n,2)}),"(",rn,");}",ln,".call(this,a0[",pr,"],",pr,");")}}function Ye(dt,Pt){var jt=dt.proc("batch",2);dt.batchId="0",_f(dt,jt);var ir=!1,dr=!0;Object.keys(Pt.context).forEach(function(_i){ir=ir||Pt.context[_i].propDep}),ir||(jl(dt,jt,Pt.context),dr=!1);var pr=Pt.framebuffer,Er=!1;pr?(pr.propDep?ir=Er=!0:pr.contextDep&&ir&&(Er=!0),Er||Fc(dt,jt,pr)):Fc(dt,jt,null),Pt.state.viewport&&Pt.state.viewport.propDep&&(ir=!0);function Tr(_i){return _i.contextDep&&ir||_i.propDep}ef(dt,jt,Pt),as(dt,jt,Pt.state,function(_i){return!Tr(_i)}),(!Pt.profile||!Tr(Pt.profile))&&ts(dt,jt,Pt,!1,"a1"),Pt.contextDep=ir,Pt.needsContext=dr,Pt.needsFramebuffer=Er;var mr=Pt.shader.progVar;if(mr.contextDep&&ir||mr.propDep)Re(dt,jt,Pt,null);else{var kr=mr.append(dt,jt);if(jt(dt.shared.gl,".useProgram(",kr,".program);"),Pt.shader.program)Re(dt,jt,Pt,Pt.shader.program);else{jt(dt.shared.vao,".setVAO(null);");var cr=dt.global.def("{}"),jr=jt.def(kr,".id"),ti=jt.def(cr,"[",jr,"]");jt(dt.cond(ti).then(ti,".call(this,a0,a1);").else(ti,"=",cr,"[",jr,"]=",dt.link(function(_i){return O(Re,dt,Pt,_i,2)}),"(",kr,");",ti,".call(this,a0,a1);"))}}Object.keys(Pt.state).length>0&&jt(dt.shared.current,".dirty=true;"),dt.shared.vao&&jt(dt.shared.vao,".setVAO(null);")}function vt(dt,Pt){var jt=dt.proc("scope",3);dt.batchId="a2";var ir=dt.shared,dr=ir.current;if(jl(dt,jt,Pt.context),Pt.framebuffer&&Pt.framebuffer.append(dt,jt),hi(Object.keys(Pt.state)).forEach(function(Tr){var mr=Pt.state[Tr],kr=mr.append(dt,jt);Wi(kr)?kr.forEach(function(cr,jr){pa(cr)?jt.set(dt.next[Tr],"["+jr+"]",cr):jt.set(dt.next[Tr],"["+jr+"]",dt.link(cr,{stable:!0}))}):un(mr)?jt.set(ir.next,"."+Tr,dt.link(kr,{stable:!0})):jt.set(ir.next,"."+Tr,kr)}),ts(dt,jt,Pt,!0,!0),[mt,fr,Ut,Ar,Bt].forEach(function(Tr){var mr=Pt.draw[Tr];if(mr){var kr=mr.append(dt,jt);pa(kr)?jt.set(ir.draw,"."+Tr,kr):jt.set(ir.draw,"."+Tr,dt.link(kr),{stable:!0})}}),Object.keys(Pt.uniforms).forEach(function(Tr){var mr=Pt.uniforms[Tr].append(dt,jt);Array.isArray(mr)&&(mr="["+mr.map(function(kr){return pa(kr)?kr:dt.link(kr,{stable:!0})})+"]"),jt.set(ir.uniforms,"["+dt.link(Sr.id(Tr),{stable:!0})+"]",mr)}),Object.keys(Pt.attributes).forEach(function(Tr){var mr=Pt.attributes[Tr].append(dt,jt),kr=dt.scopeAttrib(Tr);Object.keys(new Zi).forEach(function(cr){jt.set(kr,"."+cr,mr[cr])})}),Pt.scopeVAO){var pr=Pt.scopeVAO.append(dt,jt);pa(pr)?jt.set(ir.vao,".targetVAO",pr):jt.set(ir.vao,".targetVAO",dt.link(pr,{stable:!0}))}function Er(Tr){var mr=Pt.shader[Tr];if(mr){var kr=mr.append(dt,jt);pa(kr)?jt.set(ir.shader,"."+Tr,kr):jt.set(ir.shader,"."+Tr,dt.link(kr,{stable:!0}))}}Er(Ue),Er(tt),Object.keys(Pt.state).length>0&&(jt(dr,".dirty=true;"),jt.exit(dr,".dirty=true;")),jt("a1(",dt.shared.context,",a0,",dt.batchId,");")}function Kt(dt){if(!(typeof dt!="object"||Wi(dt))){for(var Pt=Object.keys(dt),jt=0;jt=0;--O){var Q=Qa[O];Q&&Q(fn,null,0)}Wr.flush(),yn&&yn.update()}function Xo(){!po&&Qa.length>0&&(po=d.next(ko))}function Yl(){po&&(d.cancel(ko),po=null)}function $c(O){O.preventDefault(),Vi=!0,Yl(),bo.forEach(function(Q){Q()})}function ms(O){Wr.getError(),Vi=!1,Bi.restore(),Ga.restore(),On.restore(),xn.restore(),vn.restore(),Ta.restore(),la.restore(),yn&&yn.restore(),na.procs.refresh(),Xo(),Kn.forEach(function(Q){Q()})}pa&&(pa.addEventListener(Eo,$c,!1),pa.addEventListener(Ro,ms,!1));function Qc(){Qa.length=0,Yl(),pa&&(pa.removeEventListener(Eo,$c),pa.removeEventListener(Ro,ms)),Ga.clear(),Ta.clear(),vn.clear(),la.clear(),xn.clear(),gn.clear(),On.clear(),yn&&yn.clear(),Fa.forEach(function(O){O()})}function El(O){function Q(pr){var Er=e({},pr);delete Er.uniforms,delete Er.attributes,delete Er.context,delete Er.vao,"stencil"in Er&&Er.stencil.op&&(Er.stencil.opBack=Er.stencil.opFront=Er.stencil.op,delete Er.stencil.op);function Tr(mr){if(mr in Er){var kr=Er[mr];delete Er[mr],Object.keys(kr).forEach(function(cr){Er[mr+"."+cr]=kr[cr]})}}return Tr("blend"),Tr("depth"),Tr("cull"),Tr("stencil"),Tr("polygonOffset"),Tr("scissor"),Tr("sample"),"vao"in pr&&(Er.vao=pr.vao),Er}function me(pr,Er){var Tr={},mr={};return Object.keys(pr).forEach(function(kr){var cr=pr[kr];if(h.isDynamic(cr)){mr[kr]=h.unbox(cr,kr);return}else if(Er&&Array.isArray(cr)){for(var jr=0;jr0)return dt.call(this,ir(pr|0),pr|0)}else if(Array.isArray(pr)){if(pr.length)return dt.call(this,pr,pr.length)}else return Jt.call(this,pr)}return e(dr,{stats:Kt,destroy:function(){nr.destroy()}})}var bc=Ta.setFBO=El({framebuffer:h.define.call(null,js,"framebuffer")});function wc(O,Q){var me=0;na.procs.poll();var ve=Q.color;ve&&(Wr.clearColor(+ve[0]||0,+ve[1]||0,+ve[2]||0,+ve[3]||0),me|=gs),"depth"in Q&&(Wr.clearDepth(+Q.depth),me|=Bs),"stencil"in Q&&(Wr.clearStencil(Q.stencil|0),me|=pn),Wr.clear(me)}function yf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var Q=0;Q<6;++Q)bc(e({framebuffer:O.framebuffer.faces[Q]},O),wc);else bc(O,wc);else wc(null,O)}function jl(O){Qa.push(O);function Q(){var me=dl(Qa,O);function ve(){var Re=dl(Qa,ve);Qa[Re]=Qa[Qa.length-1],Qa.length-=1,Qa.length<=0&&Yl()}Qa[me]=ve}return Xo(),{cancel:Q}}function Fc(){var O=Bn.viewport,Q=Bn.scissor_box;O[0]=O[1]=Q[0]=Q[1]=0,fn.viewportWidth=fn.framebufferWidth=fn.drawingBufferWidth=O[2]=Q[2]=Wr.drawingBufferWidth,fn.viewportHeight=fn.framebufferHeight=fn.drawingBufferHeight=O[3]=Q[3]=Wr.drawingBufferHeight}function ef(){fn.tick+=1,fn.time=_f(),Fc(),na.procs.poll()}function as(){xn.refresh(),Fc(),na.procs.refresh(),yn&&yn.update()}function _f(){return(v()-$a)/1e3}as();function ts(O,Q){var me;switch(O){case"frame":return jl(Q);case"lost":me=bo;break;case"restore":me=Kn;break;case"destroy":me=Fa;break;default:}return me.push(Q),{cancel:function(){for(var ve=0;ve=0},read:Wn,destroy:Qc,_gl:Wr,_refresh:as,poll:function(){ef(),yn&&yn.update()},now:_f,stats:cn,getCachedCode:Y,preloadCachedCode:z});return Sr.onDone(null,J),J}return xc})});var DOe=_e((x1r,ROe)=>{"use strict";var SNt=Wm();ROe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},POe(t)?t={container:t}:ENt(t)?t={container:t}:kNt(t)?t={gl:t}:t=SNt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}POe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=IOe(),t.container.appendChild(t.canvas),LOe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=IOe(),t.container.appendChild(t.canvas),LOe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function LOe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function POe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function ENt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function kNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function IOe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var FOe=_e((b1r,zOe)=>{"use strict";var CNt=QY(),LNt=[32,126];zOe.exports=PNt;function PNt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||LNt;if(n&&typeof n!="string"&&(n=CNt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var nK=_e(Th=>{"use strict";"use restrict";var iK=32;Th.INT_BITS=iK;Th.INT_MAX=2147483647;Th.INT_MIN=-1<0)-(e<0)};Th.abs=function(e){var t=e>>iK-1;return(e^t)-t};Th.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Th.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Th.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function qOe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Th.countTrailingZeros=qOe;Th.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Th.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Th.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var _k=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|_k[e>>>16&255]<<8|_k[e>>>24&255]};Th.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Th.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Th.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Th.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Th.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>qOe(e)+1}});var NOe=_e((T1r,BOe)=>{"use strict";function OOe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return INt(e|0,t);break;case"object":if(typeof e.length=="number")return OOe(e,t,0);break}return[]}BOe.exports=RNt});var tBe=_e(Wl=>{"use strict";var fx=nK(),Av=NOe(),UOe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Av([32,0]),UINT16:Av([32,0]),UINT32:Av([32,0]),BIGUINT64:Av([32,0]),INT8:Av([32,0]),INT16:Av([32,0]),INT32:Av([32,0]),BIGINT64:Av([32,0]),FLOAT:Av([32,0]),DOUBLE:Av([32,0]),DATA:Av([32,0]),UINT8C:Av([32,0]),BUFFER:Av([32,0])});var DNt=typeof Uint8ClampedArray!="undefined",zNt=typeof BigUint64Array!="undefined",FNt=typeof BigInt64Array!="undefined",Xh=window.__TYPEDARRAY_POOL;Xh.UINT8C||(Xh.UINT8C=Av([32,0]));Xh.BIGUINT64||(Xh.BIGUINT64=Av([32,0]));Xh.BIGINT64||(Xh.BIGINT64=Av([32,0]));Xh.BUFFER||(Xh.BUFFER=Av([32,0]));var yF=Xh.DATA,_F=Xh.BUFFER;Wl.free=function(t){if(UOe.isBuffer(t))_F[fx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=fx.log2(r)|0;yF[n].push(t)}};function VOe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);yF[r].push(e)}}function qNt(e){VOe(e.buffer)}Wl.freeUint8=Wl.freeUint16=Wl.freeUint32=Wl.freeBigUint64=Wl.freeInt8=Wl.freeInt16=Wl.freeInt32=Wl.freeBigInt64=Wl.freeFloat32=Wl.freeFloat=Wl.freeFloat64=Wl.freeDouble=Wl.freeUint8Clamped=Wl.freeDataView=qNt;Wl.freeArrayBuffer=VOe;Wl.freeBuffer=function(t){_F[fx.log2(t.length)].push(t)};Wl.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Bp(t);switch(r){case"uint8":return aK(t);case"uint16":return HOe(t);case"uint32":return GOe(t);case"int8":return jOe(t);case"int16":return WOe(t);case"int32":return ZOe(t);case"float":case"float32":return XOe(t);case"double":case"float64":return YOe(t);case"uint8_clamped":return KOe(t);case"bigint64":return $Oe(t);case"biguint64":return JOe(t);case"buffer":return eBe(t);case"data":case"dataview":return QOe(t);default:return null}return null};function Bp(t){var t=fx.nextPow2(t),r=fx.log2(t),n=yF[r];return n.length>0?n.pop():new ArrayBuffer(t)}Wl.mallocArrayBuffer=Bp;function aK(e){return new Uint8Array(Bp(e),0,e)}Wl.mallocUint8=aK;function HOe(e){return new Uint16Array(Bp(2*e),0,e)}Wl.mallocUint16=HOe;function GOe(e){return new Uint32Array(Bp(4*e),0,e)}Wl.mallocUint32=GOe;function jOe(e){return new Int8Array(Bp(e),0,e)}Wl.mallocInt8=jOe;function WOe(e){return new Int16Array(Bp(2*e),0,e)}Wl.mallocInt16=WOe;function ZOe(e){return new Int32Array(Bp(4*e),0,e)}Wl.mallocInt32=ZOe;function XOe(e){return new Float32Array(Bp(4*e),0,e)}Wl.mallocFloat32=Wl.mallocFloat=XOe;function YOe(e){return new Float64Array(Bp(8*e),0,e)}Wl.mallocFloat64=Wl.mallocDouble=YOe;function KOe(e){return DNt?new Uint8ClampedArray(Bp(e),0,e):aK(e)}Wl.mallocUint8Clamped=KOe;function JOe(e){return zNt?new BigUint64Array(Bp(8*e),0,e):null}Wl.mallocBigUint64=JOe;function $Oe(e){return FNt?new BigInt64Array(Bp(8*e),0,e):null}Wl.mallocBigInt64=$Oe;function QOe(e){return new DataView(Bp(e),0,e)}Wl.mallocDataView=QOe;function eBe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=_F[t];return r.length>0?r.pop():new UOe(e)}Wl.mallocBuffer=eBe;Wl.clearCache=function(){for(var t=0;t<32;++t)Xh.UINT8[t].length=0,Xh.UINT16[t].length=0,Xh.UINT32[t].length=0,Xh.INT8[t].length=0,Xh.INT16[t].length=0,Xh.INT32[t].length=0,Xh.FLOAT[t].length=0,Xh.DOUBLE[t].length=0,Xh.BIGUINT64[t].length=0,Xh.BIGINT64[t].length=0,Xh.UINT8C[t].length=0,yF[t].length=0,_F[t].length=0}});var iBe=_e((M1r,rBe)=>{"use strict";var ONt=Object.prototype.toString;rBe.exports=function(e){var t;return ONt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var oK=_e((S1r,nBe)=>{nBe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var sBe=_e((E1r,oBe)=>{"use strict";var BNt=oK();oBe.exports=aBe;var xk=96;function sK(e,t){var r=BNt(getComputedStyle(e).getPropertyValue(t));return r[0]*aBe(r[1],e)}function NNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=sK(r,"font-size")/128;return t.removeChild(r),n}function aBe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return NNt(e,t);case"em":return sK(t,"font-size");case"rem":return sK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return xk;case"cm":return xk/2.54;case"mm":return xk/25.4;case"pt":return xk/72;case"pc":return xk/6}return 1}});var cBe=_e((k1r,uBe)=>{"use strict";uBe.exports=wF;var UNt=wF.canvas=document.createElement("canvas"),xF=UNt.getContext("2d"),lBe=bF([32,126]);wF.createPairs=bF;wF.ascii=lBe;function wF(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=bF(t):Array.isArray(t)?n=t:(t.o?n=bF(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=lBe),xF.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function bF(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";dBe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return fBe(hx.cache[r],s);var l=t.canvas||hx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Xm(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var x=Xm(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-x+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Xm(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var E=Xm(u.getImageData(0,0,f,f));d.median=d.middle=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var k=Xm(u.getImageData(0,0,f,f));d.hanging=f-k-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Xm(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Xm(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Xm(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Xm(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Xm(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=hBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=hBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var _ in d)d[_]/=n;return d.em=n,hx.cache[r]=d,fBe(d,s)}function fBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Xm(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var yBe=_e((L1r,mBe)=>{"use strict";var hA=COe(),VNt=Wm(),HNt=rK(),GNt=DOe(),jNt=BY(),lK=$_(),WNt=FOe(),dx=tBe(),ZNt=eA(),XNt=iBe(),YNt=oK(),KNt=sBe(),JNt=cBe(),$Nt=bh(),QNt=vBe(),eUt=W2(),tUt=nK(),pBe=tUt.nextPow2,gBe=new jNt,AF=!1;document.body&&(TF=document.body.appendChild(document.createElement("div")),TF.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(TF).fontStretch&&(AF=!0),document.body.removeChild(TF));var TF,Vu=function(t){rUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=GNt(t),this.shader=gBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||HNt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),gBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(XNt(t)?t:{})};Vu.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` + precision highp float; + attribute float width, charOffset, char; + attribute vec2 position; + uniform float fontSize, charStep, em, align, baseline; + uniform vec4 viewport; + uniform vec4 color; + uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; + varying vec2 charCoord, charId; + varying float charWidth; + varying vec4 fontColor; + void main () { + vec2 offset = floor(em * (vec2(align + charOffset, baseline) + + vec2(positionOffset.x, -positionOffset.y))) + / (viewport.zw * scale.xy); + + vec2 position = (position + translate) * scale; + position += offset * scale; + + charCoord = position * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2. - 1., 0, 1); + + gl_PointSize = charStep; + + charId.x = mod(char, atlasDim.x); + charId.y = floor(char / atlasDim.x); + + charWidth = width * em; + + fontColor = color / 255.; + }`,frag:` + precision highp float; + uniform float fontSize, charStep, opacity; + uniform vec2 atlasSize; + uniform vec4 viewport; + uniform sampler2D atlas; + varying vec4 fontColor; + varying vec2 charCoord, charId; + varying float charWidth; + + float lightness(vec4 color) { + return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; + } + + void main () { + vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; + float halfCharStep = floor(charStep * .5 + .5); + + // invert y and shift by 1px (FF expecially needs that) + uv.y = charStep - uv.y; + + // ignore points outside of character bounding box + float halfCharWidth = ceil(charWidth * .5); + if (floor(uv.x) > halfCharStep + halfCharWidth || + floor(uv.x) < halfCharStep - halfCharWidth) return; + + uv += charId * charStep; + uv = uv / atlasSize; + + vec4 color = fontColor; + vec4 mask = texture2D(atlas, uv); + + float maskY = lightness(mask); + // float colorY = lightness(color); + color.a *= maskY; + color.a *= opacity; + + // color.a += .1; + + // antialiasing, see yiq color space y-channel formula + // color.rgb += (1. - color.rgb) * (1. - mask.rgb); + + gl_FragColor = color; + }`}),n={};return{regl:t,draw:r,atlas:n}};Vu.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=VNt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(ke){return parseFloat(ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=ZNt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=eUt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=Vu.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(ke,ye){if(typeof ke=="string")try{ke=hA.parse(ke)}catch(Xe){ke=hA.parse(Vu.baseFontSize+"px "+ke)}else{var K=ke.style,ce=ke.weight,pe=ke.stretch,xe=ke.variant;ke=hA.parse(hA.stringify(ke)),K&&(ke.style=K),ce&&(ke.weight=ce),pe&&(ke.stretch=pe),xe&&(ke.variant=xe)}var Ce=hA.stringify({size:Vu.baseFontSize,family:ke.family,stretch:AF?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style}),Me=YNt(ke.size),Le=Math.round(Me[0]*KNt(Me[1]));if(Le!==r.fontSize[ye]&&(i=!0,r.fontSize[ye]=Le),(!r.font[ye]||Ce!=r.font[ye].baseString)&&(n=!0,r.font[ye]=Vu.fonts[Ce],!r.font[ye])){var je=ke.family.join(", "),Se=[ke.style];ke.style!=ke.variant&&Se.push(ke.variant),ke.variant!=ke.weight&&Se.push(ke.weight),AF&&ke.weight!=ke.stretch&&Se.push(ke.stretch),r.font[ye]={baseString:Ce,family:je,weight:ke.weight,stretch:ke.stretch,style:ke.style,variant:ke.variant,width:{},kerning:{},metrics:QNt(je,{origin:"top",fontSize:Vu.baseFontSize,fontStyle:Se.join(" ")})},Vu.fonts[Ce]=r.font[ye]}}),(n||i)&&this.font.forEach(function(ke,ye){var K=hA.stringify({size:r.fontSize[ye],family:ke.family,stretch:AF?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style});if(r.fontAtlas[ye]=r.shader.atlas[K],!r.fontAtlas[ye]){var ce=ke.metrics;r.shader.atlas[K]=r.fontAtlas[ye]={fontString:K,step:Math.ceil(r.fontSize[ye]*ce.bottom*.5)*2,em:r.fontSize[ye],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=dx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[ye]:r.align[0]:r.align;if(typeof K=="number")return K;switch(K){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,ye){var K=(r.font[ye]||r.font[0]).metrics,ce=0;return ce+=K.bottom*.5,typeof ke=="number"?ce+=ke-K.baseline:ce+=-K[ke],ce*=-1,ce})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=lK(t.color,"uint8");else{var H;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var X=t.color.length;H=dx.mallocUint8(X);for(var G=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var we=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(we);for(var Ee=0;Ee1?this.counts[Ee]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ee]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ee*4,Ee*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ee]:this.opacity,baseline:this.baselineOffset[Ee]!=null?this.baselineOffset[Ee]:this.baselineOffset[0],align:this.align?this.alignOffset[Ee]!=null?this.alignOffset[Ee]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ee]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ee*2,Ee*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Vu.prototype.destroy=function(){};Vu.prototype.kerning=!0;Vu.prototype.position={constant:new Float32Array(2)};Vu.prototype.translate=null;Vu.prototype.scale=null;Vu.prototype.font=null;Vu.prototype.text="";Vu.prototype.positionOffset=[0,0];Vu.prototype.opacity=1;Vu.prototype.color=new Uint8Array([0,0,0,255]);Vu.prototype.alignOffset=[0,0];Vu.maxAtlasSize=1024;Vu.atlasCanvas=document.createElement("canvas");Vu.atlasContext=Vu.atlasCanvas.getContext("2d",{alpha:!1});Vu.baseFontSize=64;Vu.fonts={};function rUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}mBe.exports=Vu});var MF=_e((P1r,_Be)=>{"use strict";var iUt=SZ(),nUt=rK();_Be.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=nUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||iUt({container:i._glcontainer.node()}),a}});var fK=_e((cK,ABe)=>{"use strict";var xBe=cY(),bBe=VY(),aUt=cOe(),wBe=yBe(),uK=Mr(),oUt=Mg().selectMode,sUt=MF(),lUt=lu(),uUt=_U(),cUt=oY().styleTextSelection,TBe={};function fUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var cK=ABe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=sUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],TBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(uUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({}),a.error2d===!0&&(a.error2d=aUt(h)),a.line2d===!0&&(a.line2d=bBe(h)),a.scatter2d===!0&&(a.scatter2d=xBe(h)),a.fill2d===!0&&(a.fill2d=bBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;lae&&(isNaN(ie[we])||isNaN(ie[we+1]));)we-=2;Z.positions=ie.slice(ae,we+2)}return Z}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=uK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(Z,ie){var ae=n[ie];if(!(!Z||!ae||!ae[0]||!ae[0].trace)){var we=ae[0],Ee=we.trace,ke=we.t,ye=a.lineOptions[ie],K,ce,pe=[];Ee._ownfill&&pe.push(ie),Ee._nexttrace&&pe.push(ie+1),pe.length&&(a.fillOrder[ie]=pe);var xe=[],Ce=ye&&ye.positions||ke.positions,Me,Le;if(Ee.fill==="tozeroy"){for(Me=0;MeMe&&isNaN(Ce[Le+1]);)Le-=2;Ce[Me+1]!==0&&(xe=[Ce[Me],0]),xe=xe.concat(Ce.slice(Me,Le+2)),Ce[Le+1]!==0&&(xe=xe.concat([Ce[Le],0]))}else if(Ee.fill==="tozerox"){for(Me=0;MeMe&&isNaN(Ce[Le]);)Le-=2;Ce[Me]!==0&&(xe=[0,Ce[Me+1]]),xe=xe.concat(Ce.slice(Me,Le+2)),Ce[Le]!==0&&(xe=xe.concat([0,Ce[Le+1]]))}else if(Ee.fill==="toself"||Ee.fill==="tonext"){for(xe=[],K=0,Z.splitNull=!0,ce=0;ce-1;for(l=0;l{"use strict";var MBe=jFe();MBe.plot=fK();SBe.exports=MBe});var CBe=_e((R1r,kBe)=>{"use strict";kBe.exports=EBe()});var hK=_e((D1r,RBe)=>{"use strict";var hUt=Uc(),IBe=Jl(),LBe=Oc().axisHoverFormat,dUt=Ho().hovertemplateAttrs,bk=tk(),vUt=ad().idRegex,pUt=Us().templatedArray,dA=to().extendFlat,o1=hUt.marker,gUt=o1.line,mUt=dA(IBe("marker.line",{editTypeOverride:"calc"}),{width:dA({},gUt.width,{editType:"calc"}),editType:"calc"}),SF=dA(IBe("marker"),{symbol:o1.symbol,angle:o1.angle,size:dA({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:mUt,editType:"calc"});SF.color.editType=SF.cmin.editType=SF.cmax.editType="style";function PBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:vUt[e],editType:"plot"}}}RBe.exports={dimensions:pUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:dA({},bk.text,{}),hovertext:dA({},bk.hovertext,{}),hovertemplate:dUt(),xhoverformat:LBe("x"),yhoverformat:LBe("y"),marker:SF,xaxes:PBe("x"),yaxes:PBe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:bk.selected.marker,editType:"calc"},unselected:{marker:bk.unselected.marker,editType:"calc"},opacity:bk.opacity}});var EF=_e((z1r,DBe)=>{"use strict";DBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var dK=Mr(),yUt=Zd(),zBe=hK(),_Ut=lu(),xUt=$p(),bUt=EF(),wUt=Vz().isOpenSymbol;FBe.exports=function(t,r,n,i){function a(d,v){return dK.coerce(t,r,zBe,d,v)}var o=yUt(t,r,{name:"dimensions",handleItemDefaults:TUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=bUt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),xUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=wUt(r.marker.symbol),h=_Ut.isBubble(r);a("marker.line.width",f||h?1:0),AUt(t,r,i,a),dK.coerceSelectionMarkerOpacity(r,a)};function TUt(e,t){function r(i,a){return dK.coerce(e,t,zBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function AUt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var OBe=Mr();BBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=OBe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||OBe.extendFlat(l,o),l}});var HBe=_e((O1r,VBe)=>{"use strict";var vK=Mr(),kF=af(),MUt=q0().calcMarkerSize,SUt=q0().calcAxisExpansion,EUt=z0(),UBe=Y2().markerSelection,kUt=Y2().markerStyle,CUt=NBe(),LUt=Jo().BADNUM,PUt=sx().TOO_MANY_POINTS;VBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(k,A){for(var L=k.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),_=0;_PUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=MUt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?wk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(wk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(wk.exports=function(){return Date.now()-r},r=Date.now()):(wk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(GBe)});var ZBe=_e((B1r,PF)=>{var IUt=jBe(),s1=window,CF=["moz","webkit"],pA="AnimationFrame",gA=s1["request"+pA],Tk=s1["cancel"+pA]||s1["cancelRequest"+pA];for(vA=0;!gA&&vA{XBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var RUt=cY(),DUt=Wm(),zUt=j2(),KBe=ZBe(),FUt=YBe(),gK=eA(),qUt=W2();$Be.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=RUt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=KBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,KBe(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};px.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function OUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function IF(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function JBe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=gK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var tNe=_e((V1r,eNe)=>{"use strict";var BUt=QBe(),mK=Mr(),RF=af(),NUt=Mg().selectMode;eNe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=NUt(c)||!!i.selectedpoints||P,F=!0;if(T){var q=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,H={};for(d=0;d{"use strict";rNe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var iNe=yK(),VUt=Uz().calcHover,nNe=Ka().getFromId,HUt=to().extendFlat;function GUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=aNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=HUt({},e),f=0;f{"use strict";var fNe=Mr(),lNe=fNe.pushUnique,uNe=lu(),cNe=yK();hNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!uNe.hasMarkers(i)&&!uNe.hasText(i);if(i.visible!==!0||f)return c;var h=cNe.getDimIndex(i,l),d=cNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],x=a.ypx[d],b=s[h],p=s[d],E=(t.scene.selectBatch||[]).slice(),k=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var vNe=Mr(),jUt=z0(),WUt=Y2().markerStyle;pNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){jUt(t,n),vNe.extendFlat(i.matrixOptions,WUt(t,n));var a=vNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var yNe=_e((Z1r,mNe)=>{"use strict";var ZUt=_a(),XUt=fV();mNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:hK(),supplyDefaults:qBe(),colorbar:Kd(),calc:HBe(),plot:tNe(),hoverPoints:sNe().hoverPoints,selectPoints:dNe(),editStyle:gNe(),meta:{}};ZUt.register(XUt)});var ANe=_e((X1r,TNe)=>{"use strict";var YUt=VY(),KUt=_a(),JUt=MF(),$Ut=kd().getModuleCalcData,gx=Jf(),_Ne=af().getFromId,xNe=Ka().shouldShowZeroLine,bNe="splom",wNe={};function QUt(e){var t=e._fullLayout,r=KUt.getModule(bNe),n=$Ut(e.calcdata,r)[0],i=JUt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],wNe);i&&(t._hasOnlyLargeSploms&&_K(e),r.plot(e,{},n))}function eVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&_K(e);for(var n=0;n{"use strict";var MNe=yNe();MNe.basePlotModule=ANe(),SNe.exports=MNe});var CNe=_e((K1r,kNe)=>{"use strict";kNe.exports=ENe()});var wK=_e((J1r,LNe)=>{"use strict";var nVt=Jl(),xK=Cd(),bK=Mu(),aVt=Ju().attributes,DF=to().extendFlat,oVt=Us().templatedArray;LNe.exports={domain:aVt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:bK({editType:"plot"}),tickfont:bK({autoShadowDflt:!0,editType:"plot"}),rangefont:bK({editType:"plot"}),dimensions:oVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:DF({},xK.tickvals,{editType:"plot"}),ticktext:DF({},xK.ticktext,{editType:"plot"}),tickformat:DF({},xK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:DF({editType:"calc"},nVt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Ak=_e(($1r,PNe)=>{"use strict";PNe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Ym=_e((Q1r,RNe)=>{"use strict";var sVt=BM();function INe(e){return[e]}RNe.exports={keyFun:function(e){return e.key},repeat:INe,descend:sVt,wrap:INe,unwrap:function(e){return e[0]}}});var MK=_e((e_r,GNe)=>{"use strict";var th=Ak(),em=ya(),lVt=Ym().keyFun,zF=Ym().repeat,mA=Mr().sorterAsc,uVt=Mr().strTranslate,DNe=th.bar.snapRatio;function zNe(e,t){return e*(1-DNe)+t*DNe}var FNe=th.bar.snapClose;function cVt(e,t){return e*(1-FNe)+t*FNe}function qF(e,t,r,n){if(fVt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function hVt(e){e.attr("x",-th.bar.captureWidth/2).attr("width",th.bar.captureWidth)}function dVt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function vVt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=qNe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function ONe(){em.select(document.body).style("cursor",null)}function AK(e){e.attr("stroke-dasharray",vVt)}function FF(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(th.bar.snapDuration).each("end",t):r;AK(n)}function BNe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=qNe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=E[0]&&p<=E[1]){a.clickableOrdinalRange=E;break}}}return a}function gVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*th.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=BNe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-th.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function NNe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*th.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(mA),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),FF(e.parentNode)}function mVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(UNe(e,t),NNe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,ONe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&TK(r)):TK(r),i.brushCallback(t),FF(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||TK(r),i.brushCallback(t),u?FF(e.parentNode,s):(s(),FF(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function UNe(e,t){var r=t.height-em.mouse(e)[1]-2*th.verticalPadding,n=BNe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function yVt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||UNe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||ONe()}).call(em.behavior.drag().on("dragstart",function(t){gVt(this,t)}).on("drag",function(t){NNe(this,t)}).on("dragend",function(t){mVt(this,t)}))}function VNe(e,t){return e[0]-t[0]}function _Vt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(zF);i.enter().append("rect").classed("background",!0).call(hVt).call(dVt).style("pointer-events",n?"none":"auto").attr("transform",uVt(0,th.verticalPadding)),i.call(yVt).attr("height",function(s){return s.height-th.verticalPadding});var a=e.selectAll(".highlight-shadow").data(zF);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-th.bar.width/2).attr("stroke-width",th.bar.width+th.bar.strokeWidth).attr("stroke",t).attr("opacity",th.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(AK);var o=e.selectAll(".highlight").data(zF);o.enter().append("line").classed("highlight",!0).attr("x",-th.bar.width/2).attr("stroke-width",th.bar.width-th.bar.strokeWidth).attr("stroke",th.bar.fillColor).attr("opacity",th.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(AK)}function xVt(e,t,r){var n=e.selectAll("."+th.cn.axisBrush).data(zF,lVt);n.enter().append("g").classed(th.cn.axisBrush,!0),_Vt(n,t,r)}function bVt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function TK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function wVt(e){return function(r){var n=r.brush,i=bVt(n),a=i.slice();n.filter.set(a),e()}}function HNe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function TVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(mA)}).sort(VNe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=HNe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function AVt(e,t,r,n,i,a){var o=TVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:wVt(i),brushEndCallback:a}}}function MVt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(mA)}),t.multiselect?e=HNe(e.sort(VNe)):e=[e[0]]):e=[e.sort(mA)],t.tickvals){var r=t.tickvals.slice().sort(mA);if(e=e.map(function(n){var i=[qF(0,r,n[0],[]),qF(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}GNe.exports={makeBrush:AVt,ensureAxisBrush:xVt,cleanRanges:MVt}});var ZNe=_e((t_r,WNe)=>{"use strict";var mx=Mr(),SVt=Dv().hasColorscale,EVt=Uh(),kVt=Ju().defaults,CVt=Zd(),LVt=Ka(),jNe=wK(),PVt=MK(),SK=Ak().maxDimensionCount,IVt=EF();function RVt(e,t,r,n,i){var a=i("line.color",r);if(SVt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),EVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function DVt(e,t,r,n){function i(u,c){return mx.coerce(e,t,jNe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},LVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=PVt.cleanRanges(l,t))}}WNe.exports=function(t,r,n,i){function a(c,f){return mx.coerce(t,r,jNe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>SK&&(mx.log("parcoords traces support up to "+SK+" dimensions at the moment"),o.splice(SK));var s=CVt(t,r,{name:"dimensions",layout:i,handleItemDefaults:DVt}),l=RVt(t,r,n,i,a);kVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),IVt(r,s,"values",l);var u=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",u),mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var YNe=_e((r_r,XNe)=>{"use strict";var zVt=Mr().isArrayOrTypedArray,EK=Su(),FVt=Ym().wrap;XNe.exports=function(t,r){var n,i;return EK.hasColorscale(r,"line")&&zVt(r.line.color)?(n=r.line.color,i=EK.extractOpts(r.line).colorscale,EK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=qVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),FVt({lineColor:n,cscale:i})};function qVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),kK.default[e])r=kK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(KNe[h]!==void 0)return KNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var kK,JNe,KNe,$Ne=Ll(()=>{kK=Qet(dZ(),1),JNe=OVt,KNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var BVt,Mk,CK=Ll(()=>{BVt={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},Mk=BVt});var NVt,OF,QNe=Ll(()=>{CK();NVt={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}},OF=NVt;Mk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var tUe={};fee(tUe,{default:()=>eUe});function eUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=JNe(e);if(!i.space)return[];let a=i.space[0]==="h"?OF.min:Mk.min,o=i.space[0]==="h"?OF.max:Mk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=OF.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var rUe=Ll(()=>{$Ne();CK();QNe()});var LK=_e(BF=>{"use strict";var UVt=Mr().isTypedArray;BF.convertTypedArray=function(e){return UVt(e)?Array.prototype.slice.call(e):e};BF.isOrdinal=function(e){return!!e.tickvals};BF.isVisible=function(e){return e.visible||!("visible"in e)}});var hUe=_e((f_r,fUe)=>{"use strict";var VVt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),HVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Sk=Ak().maxDimensionCount,lUe=Mr(),iUe=1e-6,NF=2048,GVt=new Uint8Array(4),nUe=new Uint8Array(4),aUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function jVt(e){e.read({x:0,y:0,width:1,height:1,data:GVt})}function uUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function WVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],uUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function YVt(e,t,r){for(var n=new Array(e*(Sk+4)),i=0,a=0;aX&&(X=S[F].dim1.canvasX,V=F);T===0&&uUe(i,0,0,u.canvasWidth,u.canvasHeight);var G=k(r);for(F=0;F{"use strict";var zd=ya(),l1=Mr(),IK=l1.isArrayOrTypedArray,yUe=l1.numberFormat,_Ue=(rUe(),B1(tUe)).default,xUe=Ka(),eHt=l1.strRotate,Km=l1.strTranslate,tHt=Pl(),UF=ro(),dUe=Su(),zK=Ym(),tg=zK.keyFun,Jm=zK.repeat,bUe=zK.unwrap,yA=LK(),ll=Ak(),wUe=MK(),rHt=hUe();function vUe(e,t,r){return l1.aggNums(e,null,t,r)}function TUe(e,t){return FK(vUe(Math.min,e,t),vUe(Math.max,e,t))}function VF(e){var t=e.range;return t?FK(t[0],t[1]):TUe(e.values,e._length)}function FK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function iHt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function nHt(e,t,r,n,i){var a=VF(r);return n?zd.scale.ordinal().domain(n.map(iHt(yUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):zd.scale.linear().domain(a).range([e-t,t])}function aHt(e,t){return zd.scale.linear().range([t,e-t])}function oHt(e,t){return zd.scale.linear().domain(VF(e)).range([t,1-t])}function sHt(e){if(e.tickvals){var t=VF(e);return zd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function lHt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=_Ue(a[1]);return zd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return zd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function DK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function uHt(e,t,r){var n=bUe(t),i=n.trace,a=yA.convertTypedArray(n.lineColor),o=i.line,s={color:_Ue(i.unselected.line.color),opacity:i.unselected.line.opacity},l=dUe.extractOpts(o),u=l.reversescale?dUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,x=i.labelfont,b=i.tickfont,p=i.rangefont,E=l1.extendDeepNoArrays({},o,{color:a.map(zd.scale.linear().domain(VF({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:ll.blockLineCount,canvasOverdrag:ll.overdrag*ll.canvasPixelRatio}),k=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=k,C=A;return{key:r,colCount:f.filter(yA.isVisible).length,dimensions:f,tickDistance:ll.tickDistance,unitToColor:lHt(u),lines:E,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:x,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:_*ll.canvasPixelRatio+2*E.canvasOverdrag,canvasHeight:C*ll.canvasPixelRatio,width:_,height:C,canvasPixelRatio:ll.canvasPixelRatio}}function cHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=ll.verticalPadding/i,u=aHt(i,ll.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(yA.isVisible).map(function(h,d){var v=oHt(h,l),x=f[h.label];f[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),p=h.constraintrange,E=p&&p.length;E&&!IK(p[0])&&(p=[p]);var k=E?p.map(function(q){return q.map(v)}):[[-1/0,1/0]],A=function(){var q=c;q.focusLayer&&q.focusLayer.render(q.panels,!0);var V=DK(q);!e.contextShown()&&V?(q.contextLayer&&q.contextLayer.render(q.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(q.contextLayer&&q.contextLayer.render(q.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,C;function S(q,V){return{val:q,text:C[V]}}function g(q,V){return q.val-V.val}if(IK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),C=h.ticktext,!IK(C)||!C.length?C=_.map(yUe(h.tickformat)):C.length>_.length?C=C.slice(0,_.length):_.length>C.length&&(_=_.slice(0,C.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var T=_.map(S).sort(g),F=0;F<_.length;F++)_[F]=T[F].val,C[F]=T[F].text;break}}else _=void 0;return L=yA.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:C,ordinal:yA.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(v),unitTickvals:_&&_.map(v),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:u,domainScale:nHt(i,ll.verticalPadding,h,_,C),ordinalScale:sHt(h),parent:c,model:r,brush:wUe.makeBrush(e,E,k,function(){e.linePickActive(!1)},A,function(q){if(c.focusLayer.render(c.panels,!0),c.pickLayer&&c.pickLayer.render(c.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var V=v.invert,H=q.map(function(X){return X.map(V).sort(l1.sorterAsc)}).sort(function(X,G){return X[0]-G[0]});t.filterChanged(c.key,h._index,H)}})}}),c}function pUe(e){e.classed(ll.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function fHt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function gUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function RK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=V||N>=H)return;var Z=F.lineLayer.readPixel(G,H-1-N),ie=Z[3]!==0,ae=ie?Z[2]+256*(Z[1]+256*Z[0]):null,we={x:G,y:N,clientX:q.clientX,clientY:q.clientY,dataIndex:F.model.key,curveNumber:ae};ae!==v&&(ie?i.hover(we):i.unhover&&i.unhover(we),v=ae)}}),d.style("opacity",function(F){return F.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+ll.cn.parcoords).data(h,tg);b.exit().remove(),b.enter().append("g").classed(ll.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(F){return Km(F.model.translateX,F.model.translateY)});var p=b.selectAll("."+ll.cn.parcoordsControlView).data(Jm,tg);p.enter().append("g").classed(ll.cn.parcoordsControlView,!0),p.attr("transform",function(F){return Km(F.model.pad.l,F.model.pad.t)});var E=p.selectAll("."+ll.cn.yAxis).data(function(F){return F.dimensions},tg);E.enter().append("g").classed(ll.cn.yAxis,!0),p.each(function(F){RK(E,F,u)}),d.each(function(F){if(F.viewModel){!F.lineLayer||i?F.lineLayer=rHt(this,F):F.lineLayer.update(F),(F.key||F.key===0)&&(F.viewModel[F.key]=F.lineLayer);var q=!F.context||i;F.lineLayer.render(F.viewModel.panels,q)}}),E.attr("transform",function(F){return Km(F.xScale(F.xIndex),0)}),E.call(zd.behavior.drag().origin(function(F){return F}).on("drag",function(F){var q=F.parent;f.linePickActive(!1),F.x=Math.max(-ll.overdrag,Math.min(F.model.width+ll.overdrag,zd.event.x)),F.canvasX=F.x*F.model.canvasPixelRatio,E.sort(function(V,H){return V.x-H.x}).each(function(V,H){V.xIndex=H,V.x=F===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),RK(E,q,u),E.filter(function(V){return Math.abs(F.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Km(V.xScale(V.xIndex),0)}),zd.select(this).attr("transform",Km(F.x,0)),E.each(function(V,H,X){X===F.parent.key&&(q.dimensions[H]=V)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!DK(q)),q.focusLayer.render&&q.focusLayer.render(q.panels)}).on("dragend",function(F){var q=F.parent;F.x=F.xScale(F.xIndex),F.canvasX=F.x*F.model.canvasPixelRatio,RK(E,q,u),zd.select(this).attr("transform",function(V){return Km(V.x,0)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!DK(q)),q.focusLayer&&q.focusLayer.render(q.panels),q.pickLayer&&q.pickLayer.render(q.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(q.key,q.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),E.exit().remove();var k=E.selectAll("."+ll.cn.axisOverlays).data(Jm,tg);k.enter().append("g").classed(ll.cn.axisOverlays,!0),k.selectAll("."+ll.cn.axis).remove();var A=k.selectAll("."+ll.cn.axis).data(Jm,tg);A.enter().append("g").classed(ll.cn.axis,!0),A.each(function(F){var q=F.model.height/F.model.tickDistance,V=F.domainScale,H=V.domain();zd.select(this).call(zd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(q,F.tickFormat).tickValues(F.ordinal?H:null).tickFormat(function(X){return yA.isOrdinal(F)?X:AUe(F.model.dimensions[F.visibleIndex],X)}).scale(V)),UF.font(A.selectAll("text"),F.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=k.selectAll("."+ll.cn.axisHeading).data(Jm,tg);L.enter().append("g").classed(ll.cn.axisHeading,!0);var _=L.selectAll("."+ll.cn.axisTitle).data(Jm,tg);_.enter().append("text").classed(ll.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(F){return F.label}).each(function(F){var q=zd.select(this);UF.font(q,F.model.labelFont),tHt.convertToTspans(q,t)}).attr("transform",function(F){var q=gUe(F.model.labelAngle,F.model.labelSide),V=ll.axisTitleOffset;return(q.dir>0?"":Km(0,2*V+F.model.height))+eHt(q.degrees)+Km(-V*q.dx,-V*q.dy)}).attr("text-anchor",function(F){var q=gUe(F.model.labelAngle,F.model.labelSide),V=Math.abs(q.dx),H=Math.abs(q.dy);return 2*V>H?q.dir*q.dx<0?"start":"end":"middle"});var C=k.selectAll("."+ll.cn.axisExtent).data(Jm,tg);C.enter().append("g").classed(ll.cn.axisExtent,!0);var S=C.selectAll("."+ll.cn.axisExtentTop).data(Jm,tg);S.enter().append("g").classed(ll.cn.axisExtentTop,!0),S.attr("transform",Km(0,-ll.axisExtentOffset));var g=S.selectAll("."+ll.cn.axisExtentTopText).data(Jm,tg);g.enter().append("text").classed(ll.cn.axisExtentTopText,!0).call(pUe),g.text(function(F){return mUe(F,!0)}).each(function(F){UF.font(zd.select(this),F.model.rangeFont)});var P=C.selectAll("."+ll.cn.axisExtentBottom).data(Jm,tg);P.enter().append("g").classed(ll.cn.axisExtentBottom,!0),P.attr("transform",function(F){return Km(0,F.model.height+ll.axisExtentOffset)});var T=P.selectAll("."+ll.cn.axisExtentBottomText).data(Jm,tg);T.enter().append("text").classed(ll.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(pUe),T.text(function(F){return mUe(F,!1)}).each(function(F){UF.font(zd.select(this),F.model.rangeFont)}),wUe.ensureAxisBrush(k,c,t)}});var OK=_e((qK,LUe)=>{"use strict";var dHt=SUe(),vHt=MF(),EUe=LK().isVisible,CUe={};function kUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function pHt(e,t){return function(n,i){return kUe(e,t,n)-kUe(e,t,i)}}var qK=LUe.exports=function(t,r){var n=t._fullLayout,i=vHt(t,[],CUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,x){var b=v[0].trace;s[x]=b.index;var p=l[x]=b.index;a[x]=t.data[p].dimensions,o[x]=t.data[p].dimensions.slice()});var c=function(v,x,b){var p=o[v][x],E=b.map(function(S){return S.slice()}),k="dimensions["+x+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[k]===void 0){var L=p.constraintrange;A[k]=L||null}var _=t._fullData[s[v]].dimensions[x];E.length?(E.length===1&&(E=E[0]),p.constraintrange=E,_.constraintrange=E.slice(),E=[E]):(delete p.constraintrange,delete _.constraintrange,E=null);var C={};C[k]=E,t.emit("plotly_restyle",[C,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,x){var b=pHt(x,o[v].filter(EUe));a[v].sort(b),o[v].filter(function(p){return!EUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};dHt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};qK.reglPrecompiled=CUe});var IUe=_e(Ek=>{"use strict";var PUe=ya(),gHt=kd().getModuleCalcData,mHt=OK(),yHt=Zp();Ek.name="parcoords";Ek.plot=function(e){var t=gHt(e.calcdata,"parcoords")[0];t.length&&mHt(e,t)};Ek.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Ek.toSVG=function(e){var t=e._fullLayout._glimages,r=PUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:yHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){PUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var DUe=_e((v_r,RUe)=>{"use strict";RUe.exports={attributes:wK(),supplyDefaults:ZNe(),calc:YNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:IUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var qUe=_e((p_r,FUe)=>{"use strict";var zUe=DUe();zUe.plot=OK();FUe.exports=zUe});var BUe=_e((g_r,OUe)=>{"use strict";OUe.exports=qUe()});var BK=_e((m_r,HUe)=>{"use strict";var UUe=to().extendFlat,_Ht=vl(),NUe=Mu(),xHt=Jl(),VUe=Ho().hovertemplateAttrs,bHt=Ju().attributes,wHt=UUe({editType:"calc"},xHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:VUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});HUe.exports={domain:bHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:UUe({},_Ht.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:VUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:NUe({editType:"calc"}),tickfont:NUe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:wHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var WUe=_e((y_r,jUe)=>{"use strict";var _A=Mr(),THt=Dv().hasColorscale,AHt=Uh(),MHt=Ju().defaults,SHt=Zd(),GUe=BK(),EHt=EF(),kHt=vv().isTypedArraySpec;function CHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(THt(e,"line")&&_A.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),AHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function LHt(e,t){function r(u,c){return _A.coerce(e,t,GUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_A.isArrayOrTypedArray(a)&&a.length>0||kHt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}jUe.exports=function(t,r,n,i){function a(u,c){return _A.coerce(t,r,GUe,u,c)}var o=SHt(t,r,{name:"dimensions",handleItemDefaults:LHt}),s=CHt(t,r,n,i,a);MHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),EHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;_A.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),_A.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var XUe=_e((__r,ZUe)=>{"use strict";var PHt=Ym().wrap,IHt=Dv().hasColorscale,RHt=zv(),DHt=$q(),zHt=ro(),kk=Mr(),FHt=ao();ZUe.exports=function(t,r){var n=kk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=DHt(g.values);for(var T=!0,F=0;F=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var iVe=_e((x_r,rVe)=>{"use strict";var ul=ya(),ZHt=(R2(),B1(I2)).interpolateNumber,XHt=qP(),Pk=Nc(),yx=Mr(),Ck=yx.strTranslate,YUe=ro(),NK=id(),YHt=Pl();function KHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(fGt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(E){return Ck(E.x,E.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(E){return E.paths},u1);c.attr("fill",function(E){return E.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(E){return E.model.color}).attr("fill-opacity",0);HK(f),c.attr("d",function(E){return E.svgD}),f.empty()||c.sort(UK),c.exit().remove(),c.on("mouseover",JHt).on("mouseout",$Ht).on("click",QHt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(E){return E.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(E){return Ck(E.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(E){return E.categories},u1),x=v.enter().append("g").attr("class","category");v.attr("transform",function(E){return Ck(0,E.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(E){return E.width}).attr("height",function(E){return E.height}),JUe(x);var b=v.selectAll("rect.bandrect").data(function(E){return E.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(E){return E.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(E){return E.color}).attr("fill-opacity",0);b.attr("fill",function(E){return E.color}).attr("width",function(E){return E.width}).attr("height",function(E){return E.height}).attr("y",function(E){return E.y}).attr("cursor",function(E){return E.parcatsViewModel.arrangement==="fixed"?"default":E.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),jK(p),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(E){return Lk(E)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(E){return Lk(E)?E.width+5:-5}).attr("y",function(E){return E.height/2}).text(function(E){return E.model.categoryLabel}).each(function(E){YUe.font(ul.select(this),E.parcatsViewModel.categorylabelfont),YHt.convertToTspans(ul.select(this),t)}),x.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(E){return E.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(E){return E.width/2}).attr("y",-5).text(function(E,k){return k===0?E.parcatsViewModel.model.dimensions[E.model.dimensionInd].dimensionLabel:null}).each(function(E){YUe.font(ul.select(this),E.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",oGt).on("mouseout",sGt),v.exit().remove(),d.call(ul.behavior.drag().origin(function(E){return{x:E.x,y:0}}).on("dragstart",lGt).on("drag",uGt).on("dragend",cGt)),s.each(function(E){E.traceSelection=ul.select(this),E.pathSelection=ul.select(this).selectAll("g.paths").selectAll("path.path"),E.dimensionSelection=ul.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}rVe.exports=function(e,t,r,n){KHt(r,e,n,t)};function u1(e){return e.key}function Lk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function UK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=ul.mouse(i)[0];Pk.loneHover({trace:a,x:v-s.left+l.left,y:x-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,x=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:x,probabilityLabel:b.toFixed(3)},E=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&E.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&E.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var k=E.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:k,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:x,probability:b}]}}function nGt(e,t,r){var n=[];return ul.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push($Ue(e,t,i))}),n}function aGt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=ul.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,E=0;l.pathSelection.each(function(P){P.model.color===o.color&&(E+=P.model.count)});var k=b/x,A=b/E,L=b/p,_={countLabel:b,categoryLabel:v,probabilityLabel:k.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+v+"): "+_.probabilityLabel),C.push("P("+v+" | color): "+A.toFixed(3)),C.push("P(color | "+v+"): "+L.toFixed(3)));var S=C.join("
"),g=NK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:_,eventData:[{data:c._input,fullData:c,category:v,count:x,probability:k,categorycount:p,colorcount:E,bandcolorcount:b}]}}function oGt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=ul.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(iGt(o),ZK(o,"plotly_hover",ul.event)):(rGt(o),WK(o,"plotly_hover",ul.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=$Ue(r,i,o):a==="color"?s=aGt(r,i,o):a==="dimension"&&(s=nGt(r,i,o)),s&&Pk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function sGt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(HK(t.pathSelection),JUe(t.dimensionSelection.selectAll("g.category")),jK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Pk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(UK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?ZK(n,"plotly_unhover",ul.event):WK(n,"plotly_unhover",ul.event)}}function lGt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,ul.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=ul.mouse(this)[0],n=ul.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),ul.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=ul.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}YK(e.parcatsViewModel),XK(e.parcatsViewModel),tVe(e.parcatsViewModel),eVe(e.parcatsViewModel)}}function cGt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){ul.select(this).selectAll("text").attr("font-weight","normal");var t={},r=QUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?ZK(e.potentialClickBand,"plotly_click",ul.event.sourceEvent):WK(e.potentialClickBand,"plotly_click",ul.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,YK(e.parcatsViewModel),XK(e.parcatsViewModel);var f=ul.transition().duration(300).ease("cubic-in-out");f.each(function(){tVe(e.parcatsViewModel,!0),eVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&XHt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function QUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function XK(e){var t=e.dimensions,r=e.model,n=t.map(function(q){return q.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(q){return q.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(q){return q.displayInd}),o=e.dimensions.map(function(q){return q.model.dimensionInd}),s=t.map(function(q){return q.x}),l=t.map(function(q){return q.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(q){var V=q.categoryInds.map(function(X,G){return i[G][X]}),H=o.map(function(X){return V[X]});return H}u.sort(function(q,V){var H=f(q),X=f(V);return e.sortpaths==="backward"&&(H.reverse(),X.reverse()),H.push(q.valueInds[0]),X.push(V.valueInds[0]),e.bundlecolors&&(H.unshift(q.rawColor),X.unshift(V.rawColor)),HX?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(q){return q.height}).reduce(function(q,V){return q+V}),x=0;x0?p=v*(b.count/d):p=0;for(var E=new Array(n.length),k=0;k1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),x,b,p,E,k,A=(c-f)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,C){return _.displayInd-C.displayInd}),k=0;k0?x=b.count/d*v:x=0,p={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+x+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var KK=_e((b_r,nVe)=>{"use strict";var dGt=iVe();nVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;dGt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var oVe=_e(GF=>{"use strict";var vGt=kd().getModuleCalcData,pGt=KK(),aVe="parcats";GF.name=aVe;GF.plot=function(e,t,r,n){var i=vGt(e.calcdata,aVe);if(i.length){var a=i[0];pGt(e,a,r,n)}};GF.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var lVe=_e((T_r,sVe)=>{"use strict";sVe.exports={attributes:BK(),supplyDefaults:WUe(),calc:XUe(),plot:KK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:oVe(),categories:["noOpacity"],meta:{}}});var cVe=_e((A_r,uVe)=>{"use strict";uVe.exports=lVe()});var c1=_e((M_r,mVe)=>{"use strict";var gGt=Y1(),fVe="1.13.4",pVe='\xA9
OpenStreetMap contributors',hVe=['\xA9 Carto',pVe].join(" "),dVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),mGt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),gVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:pVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:hVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:hVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:dVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:dVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:mGt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},vVe=gGt(gVe);mVe.exports={requiredVersion:fVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:gVe,styleValuesNonMapbox:vVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+fVe+"."].join(` +`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",vVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Rk=_e((S_r,bVe)=>{"use strict";var yVe=Mr(),_Ve=ha().defaultLine,yGt=Ju().attributes,_Gt=Mu(),xGt=Uc().textposition,bGt=Bu().overrideAll,wGt=Us().templatedArray,JK=c1(),xVe=_Gt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});xVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var TGt=bVe.exports=bGt({_arrayAttrRegexps:[yVe.counterRegex("mapbox",".layers",!0)],domain:yGt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:JK.styleValuesMapbox.concat(JK.styleValuesNonMapbox),dflt:JK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:wGt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:_Ve},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:_Ve}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:xVe,textposition:yVe.extendFlat({},xGt,{arrayOk:!1})}})},"plot","from-root");TGt.uirevision={valType:"any",editType:"none"}});var jF=_e((E_r,AVe)=>{"use strict";var AGt=Ho().hovertemplateAttrs,MGt=Ho().texttemplateAttrs,SGt=Eg(),Dk=H2(),xA=Uc(),wVe=Rk(),EGt=vl(),kGt=Jl(),ew=to().extendFlat,CGt=Bu().overrideAll,LGt=Rk(),TVe=Dk.line,bA=Dk.marker;AVe.exports=CGt({lon:Dk.lon,lat:Dk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},LGt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},bA.opacity,{dflt:1})},mode:ew({},xA.mode,{dflt:"markers"}),text:ew({},xA.text,{}),texttemplate:MGt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},xA.hovertext,{}),line:{color:TVe.color,width:TVe.width},connectgaps:xA.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:bA.opacity,size:bA.size,sizeref:bA.sizeref,sizemin:bA.sizemin,sizemode:bA.sizemode},kGt("marker")),fill:Dk.fill,fillcolor:SGt(),textfont:wVe.layers.symbol.textfont,textposition:wVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:xA.selected.marker},unselected:{marker:xA.unselected.marker},hoverinfo:ew({},EGt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:AGt()},"calc","nested")});var $K=_e((k_r,MVe)=>{"use strict";var PGt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];MVe.exports={isSupportedFont:function(e){return PGt.indexOf(e)!==-1}}});var kVe=_e((C_r,EVe)=>{"use strict";var zk=Mr(),QK=lu(),IGt=$p(),RGt=R0(),DGt=D0(),zGt=Ig(),SVe=jF(),FGt=$K().isSupportedFont;EVe.exports=function(t,r,n,i){function a(p,E){return zk.coerce(t,r,SVe,p,E)}function o(p,E){return zk.coerce2(t,r,SVe,p,E)}var s=qGt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),QK.hasMarkers(r)){IGt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(zk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),zk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}QK.hasLines(r)&&(RGt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||QK.hasText(r)){var b=i.font.family;DGt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:FGt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&zGt(t,r,n,a),zk.coerceSelectionMarkerOpacity(r,a)};function qGt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var eJ=_e((L_r,LVe)=>{"use strict";var CVe=Ka();LVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=CVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=CVe.tickText(o,o.c2l(s[1]),!0).text,i}});var tJ=_e((P_r,IVe)=>{"use strict";var PVe=Mr();IVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=PVe.isArrayOrTypedArray(r)?PVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var OVe=_e((I_r,qVe)=>{"use strict";var zVe=ao(),iv=Mr(),OGt=Jo().BADNUM,ZF=rx(),RVe=Su(),BGt=ro(),NGt=M3(),XF=lu(),UGt=$K().isSupportedFont,VGt=tJ(),HGt=rp().appendArrayPointValue,GGt=Pl().NEWLINES,jGt=Pl().BR_TAG_ALL;qVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=XF.hasLines(n),s=XF.hasMarkers(n),l=XF.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=WF("fill"),d=WF("line"),v=WF("circle"),x=WF("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=ZF.calcTraceToLineCoords(r)),a&&(h.geojson=ZF.makePolygon(p),h.layout.visibility="visible",iv.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=ZF.makeLine(p),d.layout.visibility="visible",iv.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var E=WGt(r);v.geojson=E.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":iJ(n.cluster.color,n.cluster.step),"circle-radius":iJ(n.cluster.size,n.cluster.step),"circle-opacity":iJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":DVe(n),"text-size":12}}),iv.extendFlat(v.paint,{"circle-color":E.mcc,"circle-radius":E.mrc,"circle-opacity":E.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=ZGt(r,t),iv.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(iv.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&iv.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,iv.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var k=(n.marker||{}).size,A=VGt(n.textposition,k);iv.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":DVe(n)}),iv.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function WF(e){return{type:e,geojson:ZF.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function WGt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=iv.isArrayOrTypedArray(r.color),a=iv.isArrayOrTypedArray(r.size),o=iv.isArrayOrTypedArray(r.opacity),s;function l(k){return t.opacity*k}function u(k){return k/2}var c;i&&(RVe.hasColorscale(t,"marker")?c=RVe.makeColorScaleFuncFromTrace(r):c=iv.identity);var f;a&&(f=NGt(t));var h;o&&(h=function(k){var A=zVe(k)?+iv.constrain(k,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),UGt(s)||(s=r);var l=s.split(", ");return l}});var VVe=_e((R_r,UVe)=>{"use strict";var XGt=Mr(),BVe=OVe(),wA=c1().traceLayerPrefix,rg={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function NVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:wA+t+"-fill",line:wA+t+"-line",circle:wA+t+"-circle",symbol:wA+t+"-symbol",cluster:wA+t+"-cluster",clusterCount:wA+t+"-cluster-count"},this.below=null}var Fk=NVe.prototype;Fk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&XGt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Fk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Fk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}k||i.removeSource(u.sourceIds.circle)}function h(k){for(var A=rg.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),k||i.removeSource(u.sourceIds[_])}}function v(k){l?f(k):d(k)}function x(k){s?c(k):h(k)}function b(){for(var k=s?rg.cluster:rg.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};UVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new NVe(t,n.uid,i,a),s=BVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var YGt=Nc(),nJ=Mr(),KGt=oT(),JGt=nJ.fillText,$Gt=Jo().BADNUM,QGt=c1().traceLayerPrefix;function ejt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=QGt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(S){var g=S.lonlat;if(g[0]===$Gt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=nJ.modHalf(g[0],360),T=g[1],F=s.project([P,T]),q=F.x-a.c2p([v,T]),V=F.y-o.c2p([P,r]),H=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-H,1-3/H)}if(YGt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,E=[nJ.modHalf(p[0],360)+d,p[1]],k=a.c2p(E),A=o.c2p(E),L=b.mrc||1;e.x0=k-L,e.x1=k+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=KGt(i,b),e.extraText=HVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function HVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&JGt(t,e,u),u.join("
")}GVe.exports={hoverPoints:ejt,getExtraText:HVe}});var WVe=_e((z_r,jVe)=>{"use strict";jVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var XVe=_e((F_r,ZVe)=>{"use strict";var tjt=Mr(),rjt=lu(),ijt=Jo().BADNUM;ZVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!rjt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof aJ=="object"&&typeof oJ!="undefined"?oJ.exports=t():(e=e||self,e.mapboxgl=t())})(aJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ne,he;for($=m,he=0;he<8;he++){if(ne=this.sampleCurveX($)-m,Math.abs(ne)U)return U;for(;Ine?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ne=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ne,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function x(m,y,I,U){var $=new s(m,y,I,U);return function(ne){return $.solve(ne)}}var b=x(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function E(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function k(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ne=null;m.forEach(function(he,ze){y(he,function(Ke,st){Ke&&(ne=Ke),$[ze]=st,--U===0&&I(ne,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function _(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ne=$[U];for(var he in ne)m[he]=ne[he]}return m}function C(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function F(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function q(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function H(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function X(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function G(m){return Array.isArray(m)?m.map(G):typeof m=="object"&&m?H(m,G):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var Z={};function ie(m){Z[m]||(typeof console!="undefined"&&console.warn(m),Z[m]=!0)}function ae(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function we(m){for(var y=0,I=0,U=m.length,$=U-1,ne=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ne,he,ze){var Ke=he||ze;return I[ne]=Ke?Ke.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var K=null;function ce(m){if(K==null){var y=m.navigator?m.navigator.userAgent:null;K=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return K}function pe(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function xe(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function Ce(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Me=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),Le=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,je=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,Se,Xe,lt={now:Me,frame:function(y){var I=Le(y);return{cancel:function(){return je(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return Se||(Se=f.document.createElement("a")),Se.href=y,Se.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Xe==null&&(Xe=f.matchMedia("(prefers-reduced-motion: reduce)")),Xe.matches):!1}},At={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Yt={supported:!1,testSupport:Rt},nt,ot=!1,Ft,Lt=!1;f.document&&(Ft=f.document.createElement("img"),Ft.onload=function(){nt&&Xt(nt),nt=null,Lt=!0},Ft.onerror=function(){ot=!0,nt=null},Ft.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Rt(m){ot||!Ft||(Lt?Xt(m):nt=m)}function Xt(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Ft),m.isContextLost())return;Yt.supported=!0}catch(I){}m.deleteTexture(y),ot=!0}var xr="01";function er(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ne=[m,xr,I].join(""),he=Date.now()+$;return{token:ne,tokenExpiresAt:he}}var Ge=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};Ge.prototype._createSkuToken=function(){var y=er();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},Ge.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ge.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},Ge.prototype.normalizeStyleURL=function(y,I){if(!yt(y))return y;var U=Gt(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ge.prototype.normalizeGlyphsURL=function(y,I){if(!yt(y))return y;var U=Gt(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ge.prototype.normalizeSourceURL=function(y,I){if(!yt(y))return y;var U=Gt(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Ge.prototype.normalizeSpriteURL=function(y,I,U,$){var ne=Gt(y);return yt(y)?(ne.path="/styles/v1"+ne.path+"/sprite"+I+U,this._makeAPIURL(ne,this._customAccessToken||$)):(ne.path+=""+I+U,$t(ne))},Ge.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!yt(y))return y;var U=Gt(y),$=/(\.(png|jpg)\d*)(?=$)/,ne=/^.+\/v4\//,he=lt.devicePixelRatio>=2||I===512?"@2x":"",ze=Yt.supported?".webp":"$1";U.path=U.path.replace($,""+he+ze),U.path=U.path.replace(ne,"/"),U.path="/v4"+U.path;var Ke=this._customAccessToken||kt(U.params)||At.ACCESS_TOKEN;return At.REQUIRE_ACCESS_TOKEN&&Ke&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,Ke)},Ge.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ne=Gt(y);if(!ne.path.match(/(^\/v4\/)/)||!ne.path.match($))return y;var he="mapbox://tiles/";he+=ne.path.replace(U,"");var ze=ne.params;return I&&(ze=ze.filter(function(Ke){return!Ke.match(/^access_token=/)})),ze.length&&(he+="?"+ze.join("&")),he},Ge.prototype.canonicalizeTileset=function(y,I){for(var U=I?yt(I):!1,$=[],ne=0,he=y.tiles||[];ne=0&&y.params.splice(ne,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!At.REQUIRE_ACCESS_TOKEN)return $t(y);if(I=I||At.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),$t(y)};function yt(m){return m.indexOf("mapbox:")===0}var _t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ct(m){return _t.test(m)}function St(m){return m.indexOf("sku=")>0&&Ct(m)}function kt(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){ie("Unable to write to LocalStorage")}},Nr.prototype.processRequests=function(y){},Nr.prototype.postEvent=function(y,I,U,$){var ne=this;if(At.EVENTS_URL){var he=Gt(At.EVENTS_URL);he.params.push("access_token="+($||At.ACCESS_TOKEN||""));var ze={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:xr,userId:this.anonId},Ke=I?_(ze,I):ze,st={url:$t(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Ke])};this.pendingRequest=Hr(st,function(gt){ne.pendingRequest=null,U(gt),ne.saveEventData(),ne.processRequests($)})}},Nr.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Br=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ne,he){this.skuToken=ne,(At.EVENTS_URL&&he||At.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ze){return yt(ze)||Ct(ze)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ne=this.queue.shift(),he=ne.id,ze=ne.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),F(this.anonId)||(this.anonId=P()),this.postEvent(ze,{skuToken:this.skuToken},function(Ke){Ke||he&&($.success[he]=!0)},U))}},y}(Nr),Ur=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){At.EVENTS_URL&&At.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ne){return yt(ne)||Ct(ne)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ne=_r(At.ACCESS_TOKEN),he=ne?ne.u:At.ACCESS_TOKEN,ze=he!==this.eventData.tokenU;F(this.anonId)||(this.anonId=P(),ze=!0);var Ke=this.queue.shift();if(this.eventData.lastSuccess){var st=new Date(this.eventData.lastSuccess),gt=new Date(Ke),Zt=(Ke-this.eventData.lastSuccess)/(24*60*60*1e3);ze=ze||Zt>=1||Zt<-1||st.getDate()!==gt.getDate()}else ze=!0;if(!ze)return this.processRequests();this.postEvent(Ke,{"enabled.telemetry":!1},function(ur){ur||($.eventData.lastSuccess=Ke,$.eventData.tokenU=he)},U)}},y}(Nr),ut=new Ur,rt=ut.postTurnstileEvent.bind(ut),it=new Br,Ze=it.postMapLoadEvent.bind(it),Je="mapbox-tiles",ht=500,Ie=50,le=1e3*60*7,be;function Qe(){f.caches&&!be&&(be=f.caches.open(Je))}var xt;function Ot(m,y){if(xt===void 0)try{new Response(new ReadableStream),xt=!0}catch(I){xt=!1}xt?y(m.body):m.blob().then(y)}function rr(m,y,I){if(Qe(),!!be){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,ze){return U.headers.set(ze,he)});var $=ye(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ne=new Date(U.headers.get("Expires")).getTime()-I;neDate.now()&&!I["no-cache"]}var ri=1/0;function Ti(m){ri++,ri>Ie&&(m.getActor().send("enforceCacheSizeLimit",ht),ri=0)}function an(m){Qe(),be&&be.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ne){return y(ne)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new Xn(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var gr=function(m,y){if(!ct(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return Vt(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return Wt(m,y)},qr=function(m,y){return gr(_(m,{type:"json"}),y)},Zr=function(m,y){return gr(_(m,{type:"arrayBuffer"}),y)},Hr=function(m,y){return gr(_(m,{method:"POST"}),y)};function mi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function ki(m,y,I,U){var $=new f.Image,ne=f.URL;$.onload=function(){y(null,$),ne.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ei})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ne.createObjectURL(he):Ei}function Ri(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var ji,$i,Sa=function(){ji=[],$i=0};Sa();var Gn=function(m,y){if(Yt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),$i>=At.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return ji.push(I),I}$i++;var U=!1,$=function(){if(!U)for(U=!0,$i--;ji.length&&$i0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},go.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var _s=8,Vs={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},As={"*":{type:"source"}},wt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Lr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Pr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Xr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},bi={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},ai={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Wi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ii={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Ui=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Vn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Tn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},xa={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},fo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},zo={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},lo={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},To={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},mo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ds={type:"array",value:"*"},Es={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Zs={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Xs={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},wl={type:"array",value:"*",minimum:1},is={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},cl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],ks={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ml={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Ys={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Hs={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ao={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ls={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ql={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Hu={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},fc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},vs={"*":{type:"string"}},on={$version:_s,$root:Vs,sources:As,source:wt,source_vector:Lr,source_raster:Pr,source_raster_dem:Xr,source_geojson:bi,source_video:ai,source_image:Wi,layer:ii,layout:Ui,layout_background:Vn,layout_fill:Tn,layout_circle:xa,layout_heatmap:fo,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:zo,layout_symbol:lo,layout_raster:To,layout_hillshade:mo,filter:Ds,filter_operator:Es,geometry_type:Zs,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Xs,expression:wl,light:is,paint:cl,paint_fill:ks,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ml,paint_circle:Ys,paint_heatmap:Hs,paint_symbol:Ao,paint_raster:ls,paint_hillshade:Ql,paint_background:Hu,transition:fc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:vs},ua=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Qu(m){var y=m.key,I=m.value;return I?[new ua(y,I,"constants have been deprecated as of v8")]:[]}function Rl(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ne=$[U];for(var he in ne)m[he]=ne[he]}return m}function uo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Zl(m){if(Array.isArray(m))return m.map(Zl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Zl(m[I]);return y}return uo(m)}var Ks=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Xl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ne=$[U],he=ne[0],ze=ne[1];this.bindings[he]=ze}};Xl.prototype.concat=function(y){return new Xl(this,y)},Xl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Xl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var Ec={kind:"null"},jn={kind:"number"},Mo={kind:"string"},So={kind:"boolean"},Tl={kind:"color"},uf={kind:"object"},wo={kind:"value"},cf={kind:"error"},rh={kind:"collator"},Al={kind:"formatted"},Hc={kind:"resolvedImage"};function eu(m,y){return{kind:"array",itemType:m,N:y}}function Cs(m){if(m.kind==="array"){var y=Cs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var mu=[Ec,jn,Mo,So,Tl,Al,uf,eu(wo),Hc];function kc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!kc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=mu;I255?255:st}function $(st){return st<0?0:st>1?1:st}function ne(st){return st[st.length-1]==="%"?U(parseFloat(st)/100*255):U(parseInt(st))}function he(st){return st[st.length-1]==="%"?$(parseFloat(st)/100):$(parseFloat(st))}function ze(st,gt,Zt){return Zt<0?Zt+=1:Zt>1&&(Zt-=1),Zt*6<1?st+(gt-st)*Zt*6:Zt*2<1?gt:Zt*3<2?st+(gt-st)*(2/3-Zt)*6:st}function Ke(st){var gt=st.replace(/ /g,"").toLowerCase();if(gt in I)return I[gt].slice();if(gt[0]==="#"){if(gt.length===4){var Zt=parseInt(gt.substr(1),16);return Zt>=0&&Zt<=4095?[(Zt&3840)>>4|(Zt&3840)>>8,Zt&240|(Zt&240)>>4,Zt&15|(Zt&15)<<4,1]:null}else if(gt.length===7){var Zt=parseInt(gt.substr(1),16);return Zt>=0&&Zt<=16777215?[(Zt&16711680)>>16,(Zt&65280)>>8,Zt&255,1]:null}return null}var ur=gt.indexOf("("),ar=gt.indexOf(")");if(ur!==-1&&ar+1===gt.length){var Cr=gt.substr(0,ur),Kr=gt.substr(ur+1,ar-(ur+1)).split(","),xi=1;switch(Cr){case"rgba":if(Kr.length!==4)return null;xi=he(Kr.pop());case"rgb":return Kr.length!==3?null:[ne(Kr[0]),ne(Kr[1]),ne(Kr[2]),xi];case"hsla":if(Kr.length!==4)return null;xi=he(Kr.pop());case"hsl":if(Kr.length!==3)return null;var ui=(parseFloat(Kr[0])%360+360)%360/360,Gi=he(Kr[1]),Ci=he(Kr[2]),Hi=Ci<=.5?Ci*(Gi+1):Ci+Gi-Ci*Gi,tn=Ci*2-Hi;return[U(ze(tn,Hi,ui+1/3)*255),U(ze(tn,Hi,ui)*255),U(ze(tn,Hi,ui-1/3)*255),xi];default:return null}}return null}try{y.parseCSSColor=Ke}catch(st){}}),Bf=vd.parseCSSColor,ns=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};ns.parse=function(y){if(y){if(y instanceof ns)return y;if(typeof y=="string"){var I=Bf(y);if(I)return new ns(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},ns.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ne=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ne+")"},ns.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ne=y.a;return ne===0?[0,0,0,0]:[I*255/ne,U*255/ne,$*255/ne,ne]},ns.black=new ns(0,0,0,1),ns.white=new ns(1,1,1,1),ns.transparent=new ns(0,0,0,0),ns.red=new ns(1,0,0,1);var ff=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ff.prototype.compare=function(y,I){return this.collator.compare(y,I)},ff.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ih=function(y,I,U,$,ne){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ne},Hl=function(y){this.sections=y};Hl.fromString=function(y){return new Hl([new ih(y,null,null,null,null)])},Hl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Hl.factory=function(y){return y instanceof Hl?y:Hl.fromString(y)},Hl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Hl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Cc(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof ns)return!0;if(m instanceof ff)return!0;if(m instanceof Hl)return!0;if(m instanceof Js)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var ze=y[1];if(typeof ze!="string"||!(ze in dc)||ze==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=dc[ze],U++}else he=wo;var Ke;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);Ke=y[2],U++}$=eu(he,Ke)}else $=dc[ne];for(var st=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ne){return ne.serialize()}))};var ec=function(y){this.type=Al,this.sections=y};ec.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ne=!1,he=1;he<=y.length-1;++he){var ze=y[he];if(ne&&typeof ze=="object"&&!Array.isArray(ze)){ne=!1;var Ke=null;if(ze["font-scale"]&&(Ke=I.parse(ze["font-scale"],1,jn),!Ke))return null;var st=null;if(ze["text-font"]&&(st=I.parse(ze["text-font"],1,eu(Mo)),!st))return null;var gt=null;if(ze["text-color"]&&(gt=I.parse(ze["text-color"],1,Tl),!gt))return null;var Zt=$[$.length-1];Zt.scale=Ke,Zt.font=st,Zt.textColor=gt}else{var ur=I.parse(y[he],1,wo);if(!ur)return null;var ar=ur.type.kind;if(ar!=="string"&&ar!=="value"&&ar!=="null"&&ar!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ne=!0,$.push({content:ur,scale:null,font:null,textColor:null})}}return new ec($)},ec.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return xs($)===Hc?new ih("",$,null,null,null):new ih($s($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Hl(this.sections.map(I))},ec.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Ls.prototype.eachChild=function(y){y(this.input)},Ls.prototype.outputDefined=function(){return!1},Ls.prototype.serialize=function(){return["image",this.input.serialize()]};var ov={"to-boolean":So,"to-color":Tl,"to-number":jn,"to-string":Mo},_o=function(y,I){this.type=y,this.args=I};_o.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ov[U],ne=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=hc(I[0],I[1],I[2],I[3]),!U))return new ns(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new Ms(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var Ke=null,st=0,gt=this.args;st=y[2]||m[1]<=y[1]||m[3]>=y[3])}function Yh(m,y){var I=jc(m[0]),U=kf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*uu),Math.round(U*$*uu)]}function Eh(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ne=m[0]-I[0],he=m[1]-I[1];return U*he-ne*$===0&&U*ne<=0&&$*he<=0}function nh(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function hf(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ne=y[U],he=0,ze=ne.length;he0&&Zt<0||gt<0&&Zt>0}function ah(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ne=[U[0]-I[0],U[1]-I[1]];return Kh(ne,$)===0?!1:!!(rc(m,y,I,U)&&rc(I,U,m,y))}function Wc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ne=$[U],he=0;heI[2]){var $=U*.5,ne=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ne===0&&(ne=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ne}Sh(y,m)}function Ch(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Bd(m,y,I,U){for(var $=Math.pow(2,U.z)*uu,ne=[U.x*uu,U.y*uu],he=[],ze=0,Ke=m;ze=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Pu(U,y)&&(I=!1)}),I}var Lc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Lc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Lc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Lc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Lc.prototype.eachChild=function(){},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return["var",this.name]};var fl=function(y,I,U,$,ne){I===void 0&&(I=[]),$===void 0&&($=new Xl),ne===void 0&&(ne=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ne,this.expectedType=U};fl.prototype.parse=function(y,I,U,$,ne){return ne===void 0&&(ne={}),I?this.concat(I,U,$)._parse(y,ne):this._parse(y,ne)},fl.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(gt,Zt,ur){return ur==="assert"?new Ml(Zt,[gt]):ur==="coerce"?new _o(Zt,[gt]):gt}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ne=this.registry[$];if(ne){var he=ne.parse(y,this);if(!he)return null;if(this.expectedType){var ze=this.expectedType,Ke=he.type;if((ze.kind==="string"||ze.kind==="number"||ze.kind==="boolean"||ze.kind==="object"||ze.kind==="array")&&Ke.kind==="value")he=U(he,ze,I.typeAnnotation||"assert");else if((ze.kind==="color"||ze.kind==="formatted"||ze.kind==="resolvedImage")&&(Ke.kind==="value"||Ke.kind==="string"))he=U(he,ze,I.typeAnnotation||"coerce");else if(this.checkSubtype(ze,Ke))return null}if(!(he instanceof us)&&he.type.kind!=="resolvedImage"&&Xc(he)){var st=new Yo;try{he=new us(he.type,he.evaluate(st))}catch(gt){return this.error(gt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},fl.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ne=U?this.scope.concat(U):this.scope;return new fl(this.registry,$,I||null,ne,this.errors)},fl.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ne){return"["+ne+"]"}).join("");this.errors.push(new Ks($,y))},fl.prototype.checkSubtype=function(y,I){var U=kc(y,I);return U&&this.error(U),U};function Xc(m){if(m instanceof Lc)return Xc(m.boundExpression);if(m instanceof Xa&&m.name==="error")return!1;if(m instanceof tc)return!1;if(m instanceof Lu)return!1;var y=m instanceof _o||m instanceof Ml,I=!0;return m.eachChild(function(U){y?I=I&&Xc(U):I=I&&U instanceof us}),I?$h(m)&&Pu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function ic(m,y){for(var I=m.length-1,U=0,$=I,ne=0,he,ze;U<=$;)if(ne=Math.floor((U+$)/2),he=m[ne],ze=m[ne+1],he<=y){if(ne===I||yy)$=ne-1;else throw new Ms("Input is not a number.");return 0}var yu=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ne=U;$=ze)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',st);var Zt=I.parse(Ke,gt,ne);if(!Zt)return null;ne=ne||Zt.type,$.push([ze,Zt])}return new yu(ne,U,$)},yu.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ne=I.length;if($>=I[ne-1])return U[ne-1].evaluate(y);var he=ic(I,$);return U[he].evaluate(y)},yu.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function Qs(m,y,I){return m*(1-I)+y*I}function Qh(m,y,I){return new ns(Qs(m.r,y.r,I),Qs(m.g,y.g,I),Qs(m.b,y.b,I),Qs(m.a,y.a,I))}function gd(m,y,I){return m.map(function(U,$){return Qs(U,y[$],I)})}var Gu=Object.freeze({__proto__:null,number:Qs,color:Qh,array:gd}),Pc=.95047,vc=1,sv=1.08883,Lf=4/29,Uf=6/29,Iu=3*Uf*Uf,oh=Uf*Uf*Uf,ru=Math.PI/180,vf=180/Math.PI;function md(m){return m>oh?Math.pow(m,1/3):m/Iu+Lf}function sh(m){return m>Uf?m*m*m:Iu*(m-Lf)}function zs(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function _u(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function xu(m){var y=_u(m.r),I=_u(m.g),U=_u(m.b),$=md((.4124564*y+.3575761*I+.1804375*U)/Pc),ne=md((.2126729*y+.7151522*I+.072175*U)/vc),he=md((.0193339*y+.119192*I+.9503041*U)/sv);return{l:116*ne-16,a:500*($-ne),b:200*(ne-he),alpha:m.a}}function Lh(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=vc*sh(y),I=Pc*sh(I),U=sv*sh(U),new ns(zs(3.2404542*I-1.5371385*y-.4985314*U),zs(-.969266*I+1.8760108*y+.041556*U),zs(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Ps(m,y,I){return{l:Qs(m.l,y.l,I),a:Qs(m.a,y.a,I),b:Qs(m.b,y.b,I),alpha:Qs(m.alpha,y.alpha,I)}}function Pf(m){var y=xu(m),I=y.l,U=y.a,$=y.b,ne=Math.atan2($,U)*vf;return{h:ne<0?ne+360:ne,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function Ic(m){var y=m.h*ru,I=m.c,U=m.l;return Lh({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function ju(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function Vf(m,y,I){return{h:ju(m.h,y.h,I),c:Qs(m.c,y.c,I),l:Qs(m.l,y.l,I),alpha:Qs(m.alpha,y.alpha,I)}}var pc={forward:xu,reverse:Lh,interpolate:Ps},pf={forward:Pf,reverse:Ic,interpolate:Vf},Ph=Object.freeze({__proto__:null,lab:pc,hcl:pf}),Dl=function(y,I,U,$,ne){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,ze=ne;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:Ke}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ne=I.parse(ne,2,jn),!ne)return null;var st=[],gt=null;U==="interpolate-hcl"||U==="interpolate-lab"?gt=Tl:I.expectedType&&I.expectedType.kind!=="value"&&(gt=I.expectedType);for(var Zt=0;Zt=ur)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Cr);var xi=I.parse(ar,Kr,gt);if(!xi)return null;gt=gt||xi.type,st.push([ur,xi])}return gt.kind!=="number"&>.kind!=="color"&&!(gt.kind==="array"&>.itemType.kind==="number"&&typeof gt.N=="number")?I.error("Type "+Cs(gt)+" is not interpolatable."):new Dl(gt,U,$,ne,st)},Dl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ne=I.length;if($>=I[ne-1])return U[ne-1].evaluate(y);var he=ic(I,$),ze=I[he],Ke=I[he+1],st=Dl.interpolationFactor(this.interpolation,$,ze,Ke),gt=U[he].evaluate(y),Zt=U[he+1].evaluate(y);return this.operator==="interpolate"?Gu[this.type.kind.toLowerCase()](gt,Zt,st):this.operator==="interpolate-hcl"?pf.reverse(pf.interpolate(pf.forward(gt),pf.forward(Zt),st)):pc.reverse(pc.interpolate(pc.forward(gt),pc.forward(Zt),st))},Dl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new Ms("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new Ms("Array index must be an integer, but found "+I+" instead.");return U[I]},gc.prototype.eachChild=function(y){y(this.index),y(this.input)},gc.prototype.outputDefined=function(){return!1},gc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var hl=function(y,I){this.type=So,this.needle=y,this.haystack=I};hl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,wo),$=I.parse(y[2],2,wo);return!U||!$?null:Of(U.type,[So,Mo,jn,Ec,wo])?new hl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(U.type)+" instead")},hl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!Gc(I,["boolean","string","number","null"]))throw new Ms("Expected first argument to be of type boolean, string, number or null, but found "+Cs(xs(I))+" instead.");if(!Gc(U,["string","array"]))throw new Ms("Expected second argument to be of type array or string, but found "+Cs(xs(U))+" instead.");return U.indexOf(I)>=0},hl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},hl.prototype.outputDefined=function(){return!0},hl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var iu=function(y,I,U){this.type=jn,this.needle=y,this.haystack=I,this.fromIndex=U};iu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,wo),$=I.parse(y[2],2,wo);if(!U||!$)return null;if(!Of(U.type,[So,Mo,jn,Ec,wo]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(U.type)+" instead");if(y.length===4){var ne=I.parse(y[3],3,jn);return ne?new iu(U,$,ne):null}else return new iu(U,$)},iu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!Gc(I,["boolean","string","number","null"]))throw new Ms("Expected first argument to be of type boolean, string, number or null, but found "+Cs(xs(I))+" instead.");if(!Gc(U,["string","array"]))throw new Ms("Expected second argument to be of type array or string, but found "+Cs(xs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},iu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},iu.prototype.outputDefined=function(){return!1},iu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var mc=function(y,I,U,$,ne,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ne,this.otherwise=he};mc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ne={},he=[],ze=2;zeNumber.MAX_SAFE_INTEGER)return gt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ar=="number"&&Math.floor(ar)!==ar)return gt.error("Numeric branch labels must be integer values.");if(!U)U=xs(ar);else if(gt.checkSubtype(U,xs(ar)))return null;if(typeof ne[String(ar)]!="undefined")return gt.error("Branch labels must be unique.");ne[String(ar)]=he.length}var Cr=I.parse(st,ze,$);if(!Cr)return null;$=$||Cr.type,he.push(Cr)}var Kr=I.parse(y[1],1,wo);if(!Kr)return null;var xi=I.parse(y[y.length-1],y.length-1,$);return!xi||Kr.type.kind!=="value"&&I.concat(1).checkSubtype(U,Kr.type)?null:new mc(U,$,Kr,ne,he,xi)},mc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=xs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},mc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},mc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},mc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ne={},he=0,ze=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,wo),$=I.parse(y[2],2,jn);if(!U||!$)return null;if(!Of(U.type,[eu(wo),Mo,wo]))return I.error("Expected first argument to be of type array or string, but found "+Cs(U.type)+" instead");if(y.length===4){var ne=I.parse(y[3],3,jn);return ne?new nc(U.type,U,$,ne):null}else return new nc(U.type,U,$)},nc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!Gc(I,["string","array"]))throw new Ms("Expected first argument to be of type array or string, but found "+Cs(xs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},nc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},nc.prototype.outputDefined=function(){return!1},nc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function gf(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function pt(m,y,I){return y===I}function Nt(m,y,I){return y!==I}function br(m,y,I){return yI}function Vr(m,y,I){return y<=I}function di(m,y,I){return y>=I}function wi(m,y,I,U){return U.compare(y,I)===0}function qi(m,y,I,U){return!wi(m,y,I,U)}function Ji(m,y,I,U){return U.compare(y,I)<0}function hn(m,y,I,U){return U.compare(y,I)>0}function Mi(m,y,I,U){return U.compare(y,I)<=0}function Oi(m,y,I,U){return U.compare(y,I)>=0}function Di(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ne,he,ze){this.type=So,this.lhs=ne,this.rhs=he,this.collator=ze,this.hasUntypedArgument=ne.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,ze){if(he.length!==3&&he.length!==4)return ze.error("Expected two or three arguments.");var Ke=he[0],st=ze.parse(he[1],1,wo);if(!st)return null;if(!gf(Ke,st.type))return ze.concat(1).error('"'+Ke+`" comparisons are not supported for type '`+Cs(st.type)+"'.");var gt=ze.parse(he[2],2,wo);if(!gt)return null;if(!gf(Ke,gt.type))return ze.concat(2).error('"'+Ke+`" comparisons are not supported for type '`+Cs(gt.type)+"'.");if(st.type.kind!==gt.type.kind&&st.type.kind!=="value"&>.type.kind!=="value")return ze.error("Cannot compare types '"+Cs(st.type)+"' and '"+Cs(gt.type)+"'.");U&&(st.type.kind==="value"&>.type.kind!=="value"?st=new Ml(gt.type,[st]):st.type.kind!=="value"&>.type.kind==="value"&&(gt=new Ml(st.type,[gt])));var Zt=null;if(he.length===4){if(st.type.kind!=="string"&>.type.kind!=="string"&&st.type.kind!=="value"&>.type.kind!=="value")return ze.error("Cannot use collator to compare non-string types.");if(Zt=ze.parse(he[3],3,rh),!Zt)return null}return new $(st,gt,Zt)},$.prototype.evaluate=function(he){var ze=this.lhs.evaluate(he),Ke=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var st=xs(ze),gt=xs(Ke);if(st.kind!==gt.kind||!(st.kind==="string"||st.kind==="number"))throw new Ms('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+st.kind+", "+gt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var Zt=xs(ze),ur=xs(Ke);if(Zt.kind!=="string"||ur.kind!=="string")return y(he,ze,Ke)}return this.collator?I(he,ze,Ke,this.collator.evaluate(he)):y(he,ze,Ke)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(ze){he.push(ze.serialize())}),he},$}()}var yi=Di("==",pt,wi),Ln=Di("!=",Nt,qi),Aa=Di("<",br,Ji),wa=Di(">",vr,hn),Ma=Di("<=",Vr,Mi),za=Di(">=",di,Oi),kn=function(y,I,U,$,ne){this.type=Mo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ne};kn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,jn);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ne=null;if($.locale&&(ne=I.parse($.locale,1,Mo),!ne))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Mo),!he))return null;var ze=null;if($["min-fraction-digits"]&&(ze=I.parse($["min-fraction-digits"],1,jn),!ze))return null;var Ke=null;return $["max-fraction-digits"]&&(Ke=I.parse($["max-fraction-digits"],1,jn),!Ke)?null:new kn(U,ne,he,ze,Ke)},kn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},kn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},kn.prototype.outputDefined=function(){return!1},kn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var sn=function(y){this.type=jn,this.input=y};sn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+Cs(U.type)+" instead."):new sn(U):null},sn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new Ms("Expected value to be of type string or array, but found "+Cs(xs(I))+" instead.")},sn.prototype.eachChild=function(y){y(this.input)},sn.prototype.outputDefined=function(){return!1},sn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ba={"==":yi,"!=":Ln,">":wa,"<":Aa,">=":za,"<=":Ma,array:Ml,at:gc,boolean:Ml,case:Yc,coalesce:Wu,collator:tc,format:ec,image:Ls,in:hl,"index-of":iu,interpolate:Dl,"interpolate-hcl":Dl,"interpolate-lab":Dl,length:sn,let:Rc,literal:us,match:mc,number:Ml,"number-format":kn,object:Ml,slice:nc,step:yu,string:Ml,"to-boolean":_o,"to-color":_o,"to-number":_o,"to-string":_o,var:Lc,within:Lu};function ho(m,y){var I=y[0],U=y[1],$=y[2],ne=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ne?ne.evaluate(m):1,ze=hc(I,U,$,he);if(ze)throw new Ms(ze);return new ns(I/255*he,U/255*he,$/255*he,he)}function jo(m,y){return m in y}function bs(m,y){var I=y[m];return typeof I=="undefined"?null:I}function Ko(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function ps(m){return{type:m}}Xa.register(Ba,{error:[cf,[Mo],function(m,y){var I=y[0];throw new Ms(I.evaluate(m))}],typeof:[Mo,[wo],function(m,y){var I=y[0];return Cs(xs(I.evaluate(m)))}],"to-rgba":[eu(jn,4),[Tl],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[Tl,[jn,jn,jn],ho],rgba:[Tl,[jn,jn,jn,jn],ho],has:{type:So,overloads:[[[Mo],function(m,y){var I=y[0];return jo(I.evaluate(m),m.properties())}],[[Mo,uf],function(m,y){var I=y[0],U=y[1];return jo(I.evaluate(m),U.evaluate(m))}]]},get:{type:wo,overloads:[[[Mo],function(m,y){var I=y[0];return bs(I.evaluate(m),m.properties())}],[[Mo,uf],function(m,y){var I=y[0],U=y[1];return bs(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[wo,[Mo],function(m,y){var I=y[0];return bs(I.evaluate(m),m.featureState||{})}],properties:[uf,[],function(m){return m.properties()}],"geometry-type":[Mo,[],function(m){return m.geometryType()}],id:[wo,[],function(m){return m.id()}],zoom:[jn,[],function(m){return m.globals.zoom}],"heatmap-density":[jn,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[jn,[],function(m){return m.globals.lineProgress||0}],accumulated:[wo,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[jn,ps(jn),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ne=$[U];I+=ne.evaluate(m)}return I}],"*":[jn,ps(jn),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ne=$[U];I*=ne.evaluate(m)}return I}],"-":{type:jn,overloads:[[[jn,jn],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[jn],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[jn,[jn,jn],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[jn,[jn,jn],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[jn,[],function(){return Math.LN2}],pi:[jn,[],function(){return Math.PI}],e:[jn,[],function(){return Math.E}],"^":[jn,[jn,jn],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[jn,[jn],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[jn,[jn],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[jn,[jn],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[jn,[jn],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[jn,[jn],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[jn,[jn],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[jn,[jn],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[jn,[jn],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[jn,[jn],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[jn,[jn],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[jn,ps(jn),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[jn,ps(jn),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[jn,[jn],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[jn,[jn],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[jn,[jn],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[jn,[jn],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[So,[Mo,wo],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[So,[wo],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[So,[Mo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[So,[Mo,wo],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ne=U.value;return typeof $==typeof ne&&$":[So,[Mo,wo],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ne=U.value;return typeof $==typeof ne&&$>ne}],"filter-id->":[So,[wo],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[So,[Mo,wo],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ne=U.value;return typeof $==typeof ne&&$<=ne}],"filter-id-<=":[So,[wo],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[So,[Mo,wo],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ne=U.value;return typeof $==typeof ne&&$>=ne}],"filter-id->=":[So,[wo],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[So,[wo],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[So,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[So,[eu(Mo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[So,[eu(wo)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[So,[Mo,eu(wo)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[So,[Mo,eu(wo)],function(m,y){var I=y[0],U=y[1];return Ko(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:So,overloads:[[[So,So],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[ps(So),function(m,y){for(var I=0,U=y;I-1}function ra(m){return!!m.expression&&m.expression.interpolated}function Za(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function fs(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function Zo(m){return m}function nu(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ne=U||!$,he=m.type||(ra(y)?"exponential":"interval");if(I&&(m=Rl({},m),m.stops&&(m.stops=m.stops.map(function(Jn){return[Jn[0],ns.parse(Jn[1])]})),m.default?m.default=ns.parse(m.default):m.default=ns.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Ph[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var ze,Ke,st;if(he==="exponential")ze=bu;else if(he==="interval")ze=mf;else if(he==="categorical"){ze=ac,Ke=Object.create(null);for(var gt=0,Zt=m.stops;gt=m.stops[U-1][0])return m.stops[U-1][1];var $=ic(m.stops.map(function(ne){return ne[0]}),I);return m.stops[$][1]}function bu(m,y,I){var U=m.base!==void 0?m.base:1;if(Za(I)!=="number")return Ru(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ne=ic(m.stops.map(function(Zt){return Zt[0]}),I),he=Du(I,U,m.stops[ne][0],m.stops[ne+1][0]),ze=m.stops[ne][1],Ke=m.stops[ne+1][1],st=Gu[y.type]||Zo;if(m.colorSpace&&m.colorSpace!=="rgb"){var gt=Ph[m.colorSpace];st=function(Zt,ur){return gt.reverse(gt.interpolate(gt.forward(Zt),gt.forward(ur),he))}}return typeof ze.evaluate=="function"?{evaluate:function(){for(var ur=[],ar=arguments.length;ar--;)ur[ar]=arguments[ar];var Cr=ze.evaluate.apply(void 0,ur),Kr=Ke.evaluate.apply(void 0,ur);if(!(Cr===void 0||Kr===void 0))return st(Cr,Kr,he)}}:st(ze,Ke,he)}function Kc(m,y,I){return y.type==="color"?I=ns.parse(I):y.type==="formatted"?I=Hl.fromString(I.toString()):y.type==="resolvedImage"?I=Js.fromString(I.toString()):Za(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),Ru(I,m.default,y.default)}function Du(m,y,I,U){var $=U-I,ne=m-I;return $===0?0:y===1?ne/$:(Math.pow(y,ne)-1)/(Math.pow(y,$)-1)}var Dc=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?te(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Dc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ne,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ne||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Dc.prototype.evaluate=function(y,I,U,$,ne,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ne||null,this._evaluator.formattedSection=he||null;try{var ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!==ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new Ms("Expected value to be one of "+Object.keys(this._enumValues).map(function(Ke){return JSON.stringify(Ke)}).join(", ")+", but found "+JSON.stringify(ze)+" instead.");return ze}catch(Ke){return this._warningHistory[Ke.message]||(this._warningHistory[Ke.message]=!0,typeof console!="undefined"&&console.warn(Ke.message)),this._defaultValue}};function Ia(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ba}function Ja(m,y){var I=new fl(Ba,[],y?ee(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Fo(new Dc(U,y)):yl(I.errors)}var Jc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!tu(I.expression)};Jc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ne,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ne,he)},Jc.prototype.evaluate=function(y,I,U,$,ne,he){return this._styleExpression.evaluate(y,I,U,$,ne,he)};var yc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!tu(I.expression),this.interpolationType=$};yc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ne,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ne,he)},yc.prototype.evaluate=function(y,I,U,$,ne,he){return this._styleExpression.evaluate(y,I,U,$,ne,he)},yc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Dl.interpolationFactor(this.interpolationType,y,I,U):0};function _c(m,y){if(m=Ja(m,y),m.result==="error")return m;var I=m.value.expression,U=$h(I);if(!U&&!Gs(y))return yl([new Ks("","data expressions not supported")]);var $=Pu(I,["zoom"]);if(!$&&!Is(y))return yl([new Ks("","zoom expressions not supported")]);var ne=B(I);if(!ne&&!$)return yl([new Ks("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ne instanceof Ks)return yl([ne]);if(ne instanceof Dl&&!ra(y))return yl([new Ks("",'"interpolate" expressions cannot be used with this property')]);if(!ne)return Fo(U?new Jc("constant",m.value):new Jc("source",m.value));var he=ne instanceof Dl?ne.interpolation:void 0;return Fo(U?new yc("camera",m.value,ne.labels,he):new yc("composite",m.value,ne.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,Rl(this,nu(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(fs(m))return new ue(m,y);if(Ia(m)){var I=_c(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=ns.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Rc)y=B(m.result);else if(m instanceof Wu)for(var I=0,U=m.args;IU.maximum?[new ua(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function tt(m){var y=m.valueSpec,I=uo(m.value.type),U,$={},ne,he,ze=I!=="categorical"&&m.value.property===void 0,Ke=!ze,st=Za(m.value.stops)==="array"&&Za(m.value.stops[0])==="array"&&Za(m.value.stops[0][0])==="object",gt=se({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:Zt,default:Cr}});return I==="identity"&&ze&>.push(new ua(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&>.push(new ua(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!ra(m.valueSpec)&>.push(new ua(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(Ke&&!Gs(m.valueSpec)?gt.push(new ua(m.key,m.value,"property functions not supported")):ze&&!Is(m.valueSpec)&>.push(new ua(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||st)&&m.value.property===void 0&>.push(new ua(m.key,m.value,'"property" property is required')),gt;function Zt(Kr){if(I==="identity")return[new ua(Kr.key,Kr.value,'identity function may not have a "stops" property')];var xi=[],ui=Kr.value;return xi=xi.concat(Fe({key:Kr.key,value:ui,valueSpec:Kr.valueSpec,style:Kr.style,styleSpec:Kr.styleSpec,arrayElementValidator:ur})),Za(ui)==="array"&&ui.length===0&&xi.push(new ua(Kr.key,ui,"array must have at least one stop")),xi}function ur(Kr){var xi=[],ui=Kr.value,Gi=Kr.key;if(Za(ui)!=="array")return[new ua(Gi,ui,"array expected, "+Za(ui)+" found")];if(ui.length!==2)return[new ua(Gi,ui,"array length 2 expected, length "+ui.length+" found")];if(st){if(Za(ui[0])!=="object")return[new ua(Gi,ui,"object expected, "+Za(ui[0])+" found")];if(ui[0].zoom===void 0)return[new ua(Gi,ui,"object stop key must have zoom")];if(ui[0].value===void 0)return[new ua(Gi,ui,"object stop key must have value")];if(he&&he>uo(ui[0].zoom))return[new ua(Gi,ui[0].zoom,"stop zoom values must appear in ascending order")];uo(ui[0].zoom)!==he&&(he=uo(ui[0].zoom),ne=void 0,$={}),xi=xi.concat(se({key:Gi+"[0]",value:ui[0],valueSpec:{zoom:{}},style:Kr.style,styleSpec:Kr.styleSpec,objectElementValidators:{zoom:Ue,value:ar}}))}else xi=xi.concat(ar({key:Gi+"[0]",value:ui[0],valueSpec:{},style:Kr.style,styleSpec:Kr.styleSpec},ui));return Ia(Zl(ui[1]))?xi.concat([new ua(Gi+"[1]",ui[1],"expressions are not allowed in function stops.")]):xi.concat(Ha({key:Gi+"[1]",value:ui[1],valueSpec:y,style:Kr.style,styleSpec:Kr.styleSpec}))}function ar(Kr,xi){var ui=Za(Kr.value),Gi=uo(Kr.value),Ci=Kr.value!==null?Kr.value:xi;if(!U)U=ui;else if(ui!==U)return[new ua(Kr.key,Ci,ui+" stop domain type must match previous stop domain type "+U)];if(ui!=="number"&&ui!=="string"&&ui!=="boolean")return[new ua(Kr.key,Ci,"stop domain value must be a number, string, or boolean")];if(ui!=="number"&&I!=="categorical"){var Hi="number expected, "+ui+" found";return Gs(y)&&I===void 0&&(Hi+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ua(Kr.key,Ci,Hi)]}return I==="categorical"&&ui==="number"&&(!isFinite(Gi)||Math.floor(Gi)!==Gi)?[new ua(Kr.key,Ci,"integer expected, found "+Gi)]:I!=="categorical"&&ui==="number"&&ne!==void 0&&Gi=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function qe(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?Ne(m[1],m[2],y):y==="any"?$e(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(We)):y==="none"?["all"].concat(m.slice(1).map(We).map(Ht)):y==="in"?Et(m[1],m.slice(2)):y==="!in"?Ht(Et(m[1],m.slice(2))):y==="has"?Dt(m[1]):y==="!has"?Ht(Dt(m[1])):y==="within"?m:!0;return I}function Ne(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function $e(m){return["any"].concat(m.map(We))}function Et(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Pe)]]:["filter-in-small",m,["literal",y]]}}function Dt(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function Ht(m){return["!",m]}function tr(m){return Ar(Zl(m.value))?mt(Rl({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):yr(m)}function yr(m){var y=m.value,I=m.key;if(Za(y)!=="array")return[new ua(I,y,"array expected, "+Za(y)+" found")];var U=m.styleSpec,$,ne=[];if(y.length<1)return[new ua(I,y,"filter array must have at least 1 element")];switch(ne=ne.concat(fr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),uo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&uo(y[1])==="$type"&&ne.push(new ua(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ne.push(new ua(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=Za(y[1]),$!=="string"&&ne.push(new ua(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=gt[ar+0]&&U>=gt[ar+1])?(he[ur]=!0,ne.push(st[ur])):he[ur]=!1}}},au.prototype._forEachCell=function(m,y,I,U,$,ne,he,ze){for(var Ke=this._convertToCellCoord(m),st=this._convertToCellCoord(y),gt=this._convertToCellCoord(I),Zt=this._convertToCellCoord(U),ur=Ke;ur<=gt;ur++)for(var ar=st;ar<=Zt;ar++){var Cr=this.d*ar+ur;if(!(ze&&!ze(this._convertFromCellCoord(ur),this._convertFromCellCoord(ar),this._convertFromCellCoord(ur+1),this._convertFromCellCoord(ar+1)))&&$.call(this,m,y,I,U,Cr,ne,he,ze))return}},au.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},au.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},au.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=el+this.cells.length+1+1,I=0,U=0;U=0)){var Zt=m[gt];st[gt]=Fl[Ke].shallow.indexOf(gt)>=0?Zt:Be(Zt,y)}m instanceof Error&&(st.message=m.message)}if(st.$name)throw new Error("$name property is reserved for worker serialization logic.");return Ke!=="Object"&&(st.$name=Ke),st}throw new Error("can't serialize object of type "+typeof m)}function Ve(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Ae(m)||Oe(m)||ArrayBuffer.isView(m)||m instanceof zc)return m;if(Array.isArray(m))return m.map(Ve);if(typeof m=="object"){var y=m.$name||"Object",I=Fl[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ne=0,he=Object.keys(m);ne=0?Ke:Ve(Ke)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var bt=function(){this.first=!0};bt.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function zt(m){for(var y=0,I=m;y=65097&&m<=65103)||et["CJK Compatibility Ideographs"](m)||et["CJK Compatibility"](m)||et["CJK Radicals Supplement"](m)||et["CJK Strokes"](m)||et["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||et["CJK Unified Ideographs Extension A"](m)||et["CJK Unified Ideographs"](m)||et["Enclosed CJK Letters and Months"](m)||et["Hangul Compatibility Jamo"](m)||et["Hangul Jamo Extended-A"](m)||et["Hangul Jamo Extended-B"](m)||et["Hangul Jamo"](m)||et["Hangul Syllables"](m)||et.Hiragana(m)||et["Ideographic Description Characters"](m)||et.Kanbun(m)||et["Kangxi Radicals"](m)||et["Katakana Phonetic Extensions"](m)||et.Katakana(m)&&m!==12540||et["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||et["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||et["Unified Canadian Aboriginal Syllabics"](m)||et["Unified Canadian Aboriginal Syllabics Extended"](m)||et["Vertical Forms"](m)||et["Yijing Hexagram Symbols"](m)||et["Yi Syllables"](m)||et["Yi Radicals"](m))}function li(m){return!!(et["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||et["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||et["Letterlike Symbols"](m)||et["Number Forms"](m)||et["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||et["Control Pictures"](m)&&m!==9251||et["Optical Character Recognition"](m)||et["Enclosed Alphanumerics"](m)||et["Geometric Shapes"](m)||et["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||et["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||et["CJK Symbols and Punctuation"](m)||et.Katakana(m)||et["Private Use Area"](m)||et["CJK Compatibility Forms"](m)||et["Small Form Variants"](m)||et["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function fi(m){return!(Rr(m)||li(m))}function Or(m){return et.Arabic(m)||et["Arabic Supplement"](m)||et["Arabic Extended-A"](m)||et["Arabic Presentation Forms-A"](m)||et["Arabic Presentation Forms-B"](m)}function $r(m){return m>=1424&&m<=2303||et["Arabic Presentation Forms-A"](m)||et["Arabic Presentation Forms-B"](m)}function oi(m,y){return!(!y&&$r(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||et.Khmer(m))}function pi(m){for(var y=0,I=m;y-1&&(dn=Qr.error),un&&un(m)};function va(){ga.fire(new Vo("pluginStateChange",{pluginStatus:dn,pluginURL:Sn}))}var ga=new go,io=function(){return dn},ba=function(m){return m({pluginStatus:dn,pluginURL:Sn}),ga.on("pluginStateChange",m),m},eo=function(m,y,I){if(I===void 0&&(I=!1),dn===Qr.deferred||dn===Qr.loading||dn===Qr.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Sn=lt.resolveURL(m),dn=Qr.deferred,un=y,va(),I||Ts()},Ts=function(){if(dn!==Qr.deferred||!Sn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");dn=Qr.loading,va(),Sn&&Zr({url:Sn},function(m){m?qn(m):(dn=Qr.loaded,va())})},gs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return dn===Qr.loaded||gs.applyArabicShaping!=null},isLoading:function(){return dn===Qr.loading},setState:function(y){dn=y.pluginStatus,Sn=y.pluginURL},isParsed:function(){return gs.applyArabicShaping!=null&&gs.processBidirectionalText!=null&&gs.processStyledBidirectionalText!=null},getPluginURL:function(){return Sn}},Bs=function(){!gs.isLoading()&&!gs.isLoaded()&&io()==="deferred"&&Ts()},pn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new bt,this.transition={})};pn.prototype.isSupportedScript=function(y){return hi(y,gs.isLoaded())},pn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},pn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ra=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ra.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ra.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Eo=function(y){this.property=y,this.value=new Ra(y,void 0)};Eo.prototype.transitioned=function(y,I){return new js(this.property,this.value,I,_({},y.transition,this.transition),y.now)},Eo.prototype.untransitioned=function(){return new js(this.property,this.value,null,{},0)};var Ro=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Ro.prototype.getValue=function(y){return G(this._values[y].value.value)},Ro.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Eo(this._values[y].property)),this._values[y].value=new Ra(this._values[y].property,I===null?void 0:G(I))},Ro.prototype.getTransition=function(y){return G(this._values[y].transition)},Ro.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Eo(this._values[y].property)),this._values[y].transition=G(I)||void 0},Ro.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ne;if(this.value.isDataDriven())return this.prior=null,ne;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ne,to:$}},y.prototype.interpolate=function(U){return U},y}(Sr),Ai=function(y){this.specification=y};Ai.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ne=y.expression.evaluate(I,null,{},U,$);return this._calculate(ne,ne,ne,I)}else return this._calculate(y.expression.evaluate(new pn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new pn(Math.floor(I.zoom),I)),y.expression.evaluate(new pn(Math.floor(I.zoom+1),I)),I)},Ai.prototype._calculate=function(y,I,U,$){var ne=$.zoom;return ne>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Ai.prototype.interpolate=function(y){return y};var Vi=function(y){this.specification=y};Vi.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Vi.prototype.interpolate=function(){return!1};var Bi=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ra(U,void 0),ne=this.defaultTransitionablePropertyValues[I]=new Eo(U);this.defaultTransitioningPropertyValues[I]=ne.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};W("DataDrivenProperty",Sr),W("DataConstantProperty",Mt),W("CrossFadedDataDrivenProperty",Wr),W("CrossFadedProperty",Ai),W("ColorRampProperty",Vi);var Ni="-transition",cn=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new fu(U.layout)),U.paint)){this._transitionablePaint=new Ro(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ne in I.layout)this.setLayoutProperty(ne,I.layout[ne],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new xc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ne){if(ne===void 0&&(ne={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Gl,he,U,$,ne))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Ni)?this._transitionablePaint.getTransition(U.slice(0,-Ni.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ne){if(ne===void 0&&(ne={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(_l,he,U,$,ne))return!1}if(V(U,Ni))return this._transitionablePaint.setTransition(U.slice(0,-Ni.length),$||void 0),!1;var ze=this._transitionablePaint._values[U],Ke=ze.property.specification["property-type"]==="cross-faded-data-driven",st=ze.value.isDataDriven(),gt=ze.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var Zt=this._transitionablePaint._values[U].value,ur=Zt.isDataDriven();return ur||st||Ke||this._handleOverridablePaintPropertyUpdate(U,gt,Zt)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ne){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),X(U,function($,ne){return $!==void 0&&!(ne==="layout"&&!Object.keys($).length)&&!(ne==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ne,he,ze){return ze===void 0&&(ze={}),ze&&ze.validate===!1?!1:Zu(this,U.call(vo,{key:$,layerType:this.type,objectKey:ne,value:he,styleSpec:on,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof dl)||!Gs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(go),zn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Fn=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},yn=128,$a=5,In=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};In.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},In.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},In.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},In.prototype.clear=function(){this.length=0},In.prototype.resize=function(y){this.reserve(y),this.length=y},In.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*$a),yn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},In.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Rn(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var ze=fn(he.type),Ke=I=Si(I,Math.max(y,ze)),st=he.components||1;return U=Math.max(U,ze),I+=ze*st,{name:he.name,type:he.type,components:st,offset:Ke}}),ne=Si(I,Math.max(U,y));return{members:$,size:ne,alignment:y}}function fn(m){return zn[m].BYTES_PER_ELEMENT}function Si(m,y){return Math.ceil(m/y)*y}var Zi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ne=this.length;return this.resize(ne+1),this.emplace(ne,U,$)},y.prototype.emplace=function(U,$,ne){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ne,U},y}(In);Zi.prototype.bytesPerElement=4,W("StructArrayLayout2i4",Zi);var Cn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,U,$,ne,he)},y.prototype.emplace=function(U,$,ne,he,ze){var Ke=U*4;return this.int16[Ke+0]=$,this.int16[Ke+1]=ne,this.int16[Ke+2]=he,this.int16[Ke+3]=ze,U},y}(In);Cn.prototype.bytesPerElement=8,W("StructArrayLayout4i8",Cn);var On=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke){var st=this.length;return this.resize(st+1),this.emplace(st,U,$,ne,he,ze,Ke)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st){var gt=U*6;return this.int16[gt+0]=$,this.int16[gt+1]=ne,this.int16[gt+2]=he,this.int16[gt+3]=ze,this.int16[gt+4]=Ke,this.int16[gt+5]=st,U},y}(In);On.prototype.bytesPerElement=12,W("StructArrayLayout2i4i12",On);var gn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke){var st=this.length;return this.resize(st+1),this.emplace(st,U,$,ne,he,ze,Ke)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st){var gt=U*4,Zt=U*8;return this.int16[gt+0]=$,this.int16[gt+1]=ne,this.uint8[Zt+4]=he,this.uint8[Zt+5]=ze,this.uint8[Zt+6]=Ke,this.uint8[Zt+7]=st,U},y}(In);gn.prototype.bytesPerElement=8,W("StructArrayLayout2i4ub8",gn);var la=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ne=this.length;return this.resize(ne+1),this.emplace(ne,U,$)},y.prototype.emplace=function(U,$,ne){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ne,U},y}(In);la.prototype.bytesPerElement=8,W("StructArrayLayout2f8",la);var Yn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur){var ar=this.length;return this.resize(ar+1),this.emplace(ar,U,$,ne,he,ze,Ke,st,gt,Zt,ur)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar){var Cr=U*10;return this.uint16[Cr+0]=$,this.uint16[Cr+1]=ne,this.uint16[Cr+2]=he,this.uint16[Cr+3]=ze,this.uint16[Cr+4]=Ke,this.uint16[Cr+5]=st,this.uint16[Cr+6]=gt,this.uint16[Cr+7]=Zt,this.uint16[Cr+8]=ur,this.uint16[Cr+9]=ar,U},y}(In);Yn.prototype.bytesPerElement=20,W("StructArrayLayout10ui20",Yn);var Ga=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr){var Kr=this.length;return this.resize(Kr+1),this.emplace(Kr,U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr){var xi=U*12;return this.int16[xi+0]=$,this.int16[xi+1]=ne,this.int16[xi+2]=he,this.int16[xi+3]=ze,this.uint16[xi+4]=Ke,this.uint16[xi+5]=st,this.uint16[xi+6]=gt,this.uint16[xi+7]=Zt,this.int16[xi+8]=ur,this.int16[xi+9]=ar,this.int16[xi+10]=Cr,this.int16[xi+11]=Kr,U},y}(In);Ga.prototype.bytesPerElement=24,W("StructArrayLayout4i4ui4i24",Ga);var xn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ne)},y.prototype.emplace=function(U,$,ne,he){var ze=U*3;return this.float32[ze+0]=$,this.float32[ze+1]=ne,this.float32[ze+2]=he,U},y}(In);xn.prototype.bytesPerElement=12,W("StructArrayLayout3f12",xn);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ne=U*1;return this.uint32[ne+0]=$,U},y}(In);vn.prototype.bytesPerElement=4,W("StructArrayLayout1ul4",vn);var Ta=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke,st,gt,Zt){var ur=this.length;return this.resize(ur+1),this.emplace(ur,U,$,ne,he,ze,Ke,st,gt,Zt)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur){var ar=U*10,Cr=U*5;return this.int16[ar+0]=$,this.int16[ar+1]=ne,this.int16[ar+2]=he,this.int16[ar+3]=ze,this.int16[ar+4]=Ke,this.int16[ar+5]=st,this.uint32[Cr+3]=gt,this.uint16[ar+8]=Zt,this.uint16[ar+9]=ur,U},y}(In);Ta.prototype.bytesPerElement=20,W("StructArrayLayout6i1ul2ui20",Ta);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke){var st=this.length;return this.resize(st+1),this.emplace(st,U,$,ne,he,ze,Ke)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st){var gt=U*6;return this.int16[gt+0]=$,this.int16[gt+1]=ne,this.int16[gt+2]=he,this.int16[gt+3]=ze,this.int16[gt+4]=Ke,this.int16[gt+5]=st,U},y}(In);na.prototype.bytesPerElement=12,W("StructArrayLayout2i2i2i12",na);var Wn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze){var Ke=this.length;return this.resize(Ke+1),this.emplace(Ke,U,$,ne,he,ze)},y.prototype.emplace=function(U,$,ne,he,ze,Ke){var st=U*4,gt=U*8;return this.float32[st+0]=$,this.float32[st+1]=ne,this.float32[st+2]=he,this.int16[gt+6]=ze,this.int16[gt+7]=Ke,U},y}(In);Wn.prototype.bytesPerElement=16,W("StructArrayLayout2f1f2i16",Wn);var Bn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,U,$,ne,he)},y.prototype.emplace=function(U,$,ne,he,ze){var Ke=U*12,st=U*3;return this.uint8[Ke+0]=$,this.uint8[Ke+1]=ne,this.float32[st+1]=he,this.float32[st+2]=ze,U},y}(In);Bn.prototype.bytesPerElement=12,W("StructArrayLayout2ub2f12",Bn);var pa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ne)},y.prototype.emplace=function(U,$,ne,he){var ze=U*3;return this.uint16[ze+0]=$,this.uint16[ze+1]=ne,this.uint16[ze+2]=he,U},y}(In);pa.prototype.bytesPerElement=6,W("StructArrayLayout3ui6",pa);var Qa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci){var Hi=this.length;return this.resize(Hi+1),this.emplace(Hi,U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci,Hi){var tn=U*24,wn=U*12,ta=U*48;return this.int16[tn+0]=$,this.int16[tn+1]=ne,this.uint16[tn+2]=he,this.uint16[tn+3]=ze,this.uint32[wn+2]=Ke,this.uint32[wn+3]=st,this.uint32[wn+4]=gt,this.uint16[tn+10]=Zt,this.uint16[tn+11]=ur,this.uint16[tn+12]=ar,this.float32[wn+7]=Cr,this.float32[wn+8]=Kr,this.uint8[ta+36]=xi,this.uint8[ta+37]=ui,this.uint8[ta+38]=Gi,this.uint32[wn+10]=Ci,this.int16[tn+22]=Hi,U},y}(In);Qa.prototype.bytesPerElement=48,W("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Qa);var bo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci,Hi,tn,wn,ta,Jn,qa,ma,Ca,Do,Oa,Va){var os=this.length;return this.resize(os+1),this.emplace(os,U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci,Hi,tn,wn,ta,Jn,qa,ma,Ca,Do,Oa,Va)},y.prototype.emplace=function(U,$,ne,he,ze,Ke,st,gt,Zt,ur,ar,Cr,Kr,xi,ui,Gi,Ci,Hi,tn,wn,ta,Jn,qa,ma,Ca,Do,Oa,Va,os){var Io=U*34,rl=U*17;return this.int16[Io+0]=$,this.int16[Io+1]=ne,this.int16[Io+2]=he,this.int16[Io+3]=ze,this.int16[Io+4]=Ke,this.int16[Io+5]=st,this.int16[Io+6]=gt,this.int16[Io+7]=Zt,this.uint16[Io+8]=ur,this.uint16[Io+9]=ar,this.uint16[Io+10]=Cr,this.uint16[Io+11]=Kr,this.uint16[Io+12]=xi,this.uint16[Io+13]=ui,this.uint16[Io+14]=Gi,this.uint16[Io+15]=Ci,this.uint16[Io+16]=Hi,this.uint16[Io+17]=tn,this.uint16[Io+18]=wn,this.uint16[Io+19]=ta,this.uint16[Io+20]=Jn,this.uint16[Io+21]=qa,this.uint16[Io+22]=ma,this.uint32[rl+12]=Ca,this.float32[rl+13]=Do,this.float32[rl+14]=Oa,this.float32[rl+15]=Va,this.float32[rl+16]=os,U},y}(In);bo.prototype.bytesPerElement=68,W("StructArrayLayout8i15ui1ul4f68",bo);var Kn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ne=U*1;return this.float32[ne+0]=$,U},y}(In);Kn.prototype.bytesPerElement=4,W("StructArrayLayout1f4",Kn);var Fa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ne)},y.prototype.emplace=function(U,$,ne,he){var ze=U*3;return this.int16[ze+0]=$,this.int16[ze+1]=ne,this.int16[ze+2]=he,U},y}(In);Fa.prototype.bytesPerElement=6,W("StructArrayLayout3i6",Fa);var po=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ne)},y.prototype.emplace=function(U,$,ne,he){var ze=U*2,Ke=U*4;return this.uint32[ze+0]=$,this.uint16[Ke+2]=ne,this.uint16[Ke+3]=he,U},y}(In);po.prototype.bytesPerElement=8,W("StructArrayLayout1ul2ui8",po);var ko=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ne=this.length;return this.resize(ne+1),this.emplace(ne,U,$)},y.prototype.emplace=function(U,$,ne){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ne,U},y}(In);ko.prototype.bytesPerElement=4,W("StructArrayLayout2ui4",ko);var Xo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ne=U*1;return this.uint16[ne+0]=$,U},y}(In);Xo.prototype.bytesPerElement=2,W("StructArrayLayout1ui2",Xo);var Yl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ne,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,U,$,ne,he)},y.prototype.emplace=function(U,$,ne,he,ze){var Ke=U*4;return this.float32[Ke+0]=$,this.float32[Ke+1]=ne,this.float32[Ke+2]=he,this.float32[Ke+3]=ze,U},y}(In);Yl.prototype.bytesPerElement=16,W("StructArrayLayout4f16",Yl);var $c=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Fn);$c.prototype.size=20;var ms=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new $c(this,U)},y}(Ta);W("CollisionBoxArray",ms);var Qc=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Fn);Qc.prototype.size=48;var El=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Qc(this,U)},y}(Qa);W("PlacedSymbolArray",El);var bc=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Fn);bc.prototype.size=68;var wc=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new bc(this,U)},y}(bo);W("SymbolInstanceArray",wc);var yf=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Kn);W("GlyphOffsetArray",yf);var jl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Fa);W("SymbolLineVertexArray",jl);var Fc=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Fn);Fc.prototype.size=8;var ef=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Fc(this,U)},y}(po);W("FeatureIndexArray",ef);var as=Rn([{name:"a_pos",components:2,type:"Int16"}],4),_f=as.members,ts=function(y){y===void 0&&(y=[]),this.segments=y};ts.prototype.prepareSegment=function(y,I,U,$){var ne=this.segments[this.segments.length-1];return y>ts.MAX_VERTEX_ARRAY_LENGTH&&ie("Max vertices per segment is "+ts.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ne||ne.vertexLength+y>ts.MAX_VERTEX_ARRAY_LENGTH||ne.sortKey!==$)&&(ne={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ne.sortKey=$),this.segments.push(ne)),ne},ts.prototype.get=function(){return this.segments},ts.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*Ke&65535)<<16)&4294967295,gt=gt<<15|gt>>>17,gt=(gt&65535)*st+(((gt>>>16)*st&65535)<<16)&4294967295,he^=gt,he=he<<13|he>>>19,ze=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(ze&65535)+27492+(((ze>>>16)+58964&65535)<<16);switch(gt=0,$){case 3:gt^=(I.charCodeAt(Zt+2)&255)<<16;case 2:gt^=(I.charCodeAt(Zt+1)&255)<<8;case 1:gt^=I.charCodeAt(Zt)&255,gt=(gt&65535)*Ke+(((gt>>>16)*Ke&65535)<<16)&4294967295,gt=gt<<15|gt>>>17,gt=(gt&65535)*st+(((gt>>>16)*st&65535)<<16)&4294967295,he^=gt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),O=a(function(m){function y(I,U){for(var $=I.length,ne=U^$,he=0,ze;$>=4;)ze=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ze^=ze>>>24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ne=(ne&65535)*1540483477+(((ne>>>16)*1540483477&65535)<<16)^ze,$-=4,++he;switch($){case 3:ne^=(I.charCodeAt(he+2)&255)<<16;case 2:ne^=(I.charCodeAt(he+1)&255)<<8;case 1:ne^=I.charCodeAt(he)&255,ne=(ne&65535)*1540483477+(((ne>>>16)*1540483477&65535)<<16)}return ne^=ne>>>13,ne=(ne&65535)*1540483477+(((ne>>>16)*1540483477&65535)<<16),ne^=ne>>>15,ne>>>0}m.exports=y}),Q=J,me=J,ve=O;Q.murmur3=me,Q.murmur2=ve;var Re=function(){this.ids=[],this.positions=[],this.indexed=!1};Re.prototype.add=function(y,I,U,$){this.ids.push(vt(y)),this.positions.push(I,U,$)},Re.prototype.getPositions=function(y){for(var I=vt(y),U=0,$=this.ids.length-1;U<$;){var ne=U+$>>1;this.ids[ne]>=I?$=ne:U=ne+1}for(var he=[];this.ids[U]===I;){var ze=this.positions[3*U],Ke=this.positions[3*U+1],st=this.positions[3*U+2];he.push({index:ze,start:Ke,end:st}),U++}return he},Re.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Kt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},Re.deserialize=function(y){var I=new Re;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ye=Math.pow(2,53)-1;function vt(m){var y=+m;return!isNaN(y)&&y<=Ye?y:Q(String(m))}function Kt(m,y,I,U){for(;I>1],ne=I-1,he=U+1;;){do ne++;while(m[ne]<$);do he--;while(m[he]>$);if(ne>=he)break;nr(m,ne,he),nr(y,3*ne,3*he),nr(y,3*ne+1,3*he+1),nr(y,3*ne+2,3*he+2)}he-Ihe.x+1||Kehe.y+1)&&ie("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function qo(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?fa(m):[]}}function Po(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var hs=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Zi,this.indexArray=new pa,this.segments=new ts,this.programConfigurations=new zi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};hs.prototype.populate=function(y,I,U){var $=this.layers[0],ne=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var ze=0,Ke=y;ze=nn||ur<0||ur>=nn)){var ar=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Cr=ar.vertexLength;Po(this.layoutVertexArray,Zt,ur,-1,-1),Po(this.layoutVertexArray,Zt,ur,1,-1),Po(this.layoutVertexArray,Zt,ur,1,1),Po(this.layoutVertexArray,Zt,ur,-1,1),this.indexArray.emplaceBack(Cr,Cr+1,Cr+2),this.indexArray.emplaceBack(Cr,Cr+3,Cr+2),ar.vertexLength+=4,ar.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},W("CircleBucket",hs,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ne=0;ne<$.length;ne++)if(_d(m,$[ne]))return!0}if(Sv(m,$,I))return!0}return!1}function Sv(m,y,I){if(m.length>1){if(Ev(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function vp(m,y){for(var I=!1,U,$,ne,he=0;hey.y!=ne.y>y.y&&y.x<(ne.x-$.x)*(y.y-$.y)/(ne.y-$.y)+$.x&&(I=!I)}return I}function _d(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ne.x)*(y.y-ne.y)/(he.y-ne.y)+ne.x&&(I=!I)}return I}function pp(m,y,I,U,$){for(var ne=0,he=m;ne=ze.x&&$>=ze.y)return!0}var Ke=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var st=0,gt=Ke;st$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ne=ae(m,y,I[0]);return ne!==ae(m,y,I[1])||ne!==ae(m,y,I[2])||ne!==ae(m,y,I[3])}function xd(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function kv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Kv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ne=u.convert(y)._mult($);I==="viewport"&&ne._rotate(-U);for(var he=[],ze=0;ze0&&(ne=1/Math.sqrt(ne)),m[0]=y[0]*ne,m[1]=y[1]*ne,m[2]=y[2]*ne,m}function F9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function q9(m,y,I){var U=y[0],$=y[1],ne=y[2],he=I[0],ze=I[1],Ke=I[2];return m[0]=$*Ke-ne*ze,m[1]=ne*he-U*Ke,m[2]=U*ze-$*he,m}function O9(m,y,I){var U=y[0],$=y[1],ne=y[2];return m[0]=U*I[0]+$*I[3]+ne*I[6],m[1]=U*I[1]+$*I[4]+ne*I[7],m[2]=U*I[2]+$*I[5]+ne*I[8],m}var B9=om,CQ=function(){var m=am();return function(y,I,U,$,ne,he){var ze,Ke;for(I||(I=3),U||(U=0),$?Ke=Math.min($*I+U,y.length):Ke=y.length,ze=U;zem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,ze=y.data,Ke=0;Ke<$.height;Ke++)for(var st=((I.y+Ke)*m.width+I.x)*ne,gt=((U.y+Ke)*y.width+U.x)*ne,Zt=0;Zt<$.width*ne;Zt++)ze[gt+Zt]=he[st+Zt];return y}var Pv=function(y,I){wd(this,y,1,I)};Pv.prototype.resize=function(y){kw(this,y,1)},Pv.prototype.clone=function(){return new Pv({width:this.width,height:this.height},new Uint8Array(this.data))},Pv.copy=function(y,I,U,$,ne){Cw(y,I,U,$,ne,1)};var lh=function(y,I){wd(this,y,4,I)};lh.prototype.resize=function(y){kw(this,y,4)},lh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},lh.prototype.clone=function(){return new lh({width:this.width,height:this.height},new Uint8Array(this.data))},lh.copy=function(y,I,U,$,ne){Cw(y,I,U,$,ne,4)},W("AlphaImage",Pv),W("RGBAImage",lh);var Hx=new Bi({"heatmap-radius":new Sr(on.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Sr(on.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Mt(on.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Vi(on.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Mt(on.paint_heatmap["heatmap-opacity"])}),M1={paint:Hx};function Gx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new lh({width:I,height:U}),ne=function(Gi,Ci,Hi){y[m.evaluationKey]=Hi;var tn=m.expression.evaluate(y);$.data[Gi+Ci+0]=Math.floor(tn.r*255/tn.a),$.data[Gi+Ci+1]=Math.floor(tn.g*255/tn.a),$.data[Gi+Ci+2]=Math.floor(tn.b*255/tn.a),$.data[Gi+Ci+3]=Math.floor(tn.a*255)};if(m.clips)for(var st=0,gt=0;st80*I){ze=st=m[0],Ke=gt=m[1];for(var Cr=I;Cr<$;Cr+=I)Zt=m[Cr],ur=m[Cr+1],Ztst&&(st=Zt),ur>gt&&(gt=ur);ar=Math.max(st-ze,gt-Ke),ar=ar!==0?1/ar:0}return jx(ne,he,I,ze,Ke,ar),he}function Iw(m,y,I,U,$){var ne,he;if($===cM(m,y,I,U)>0)for(ne=y;ne=y;ne-=U)he=xC(ne,m[ne],m[ne+1],he);return he&&Zx(he,he.next)&&(Kx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Zx(I,I.next)||tf(I.prev,I,I.next)===0)){if(Kx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function jx(m,y,I,U,$,ne,he){if(m){!he&&ne&&Rw(m,U,$,ne);for(var ze=m,Ke,st;m.prev!==m.next;){if(Ke=m.prev,st=m.next,ne?mC(m,U,$,ne):gC(m)){y.push(Ke.i/I),y.push(m.i/I),y.push(st.i/I),Kx(m),m=st.next,ze=st.next;continue}if(m=st,m===ze){he?he===1?(m=Wx(sm(m),y,I),jx(m,y,I,U,$,ne,2)):he===2&&v0(m,y,I,U,$,ne):jx(sm(m),y,I,U,$,ne,1);break}}}}function gC(m){var y=m.prev,I=m,U=m.next;if(tf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&tf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function mC(m,y,I,U){var $=m.prev,ne=m,he=m.next;if(tf($,ne,he)>=0)return!1;for(var ze=$.xne.x?$.x>he.x?$.x:he.x:ne.x>he.x?ne.x:he.x,gt=$.y>ne.y?$.y>he.y?$.y:he.y:ne.y>he.y?ne.y:he.y,Zt=oM(ze,Ke,y,I,U),ur=oM(st,gt,y,I,U),ar=m.prevZ,Cr=m.nextZ;ar&&ar.z>=Zt&&Cr&&Cr.z<=ur;){if(ar!==m.prev&&ar!==m.next&&um($.x,$.y,ne.x,ne.y,he.x,he.y,ar.x,ar.y)&&tf(ar.prev,ar,ar.next)>=0||(ar=ar.prevZ,Cr!==m.prev&&Cr!==m.next&&um($.x,$.y,ne.x,ne.y,he.x,he.y,Cr.x,Cr.y)&&tf(Cr.prev,Cr,Cr.next)>=0))return!1;Cr=Cr.nextZ}for(;ar&&ar.z>=Zt;){if(ar!==m.prev&&ar!==m.next&&um($.x,$.y,ne.x,ne.y,he.x,he.y,ar.x,ar.y)&&tf(ar.prev,ar,ar.next)>=0)return!1;ar=ar.prevZ}for(;Cr&&Cr.z<=ur;){if(Cr!==m.prev&&Cr!==m.next&&um($.x,$.y,ne.x,ne.y,he.x,he.y,Cr.x,Cr.y)&&tf(Cr.prev,Cr,Cr.next)>=0)return!1;Cr=Cr.nextZ}return!0}function Wx(m,y,I){var U=m;do{var $=U.prev,ne=U.next.next;!Zx($,ne)&&Dw($,U,U.next,ne)&&Yx($,ne)&&Yx(ne,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ne.i/I),Kx(U),Kx(U.next),U=m=ne),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ne){var he=m;do{for(var ze=he.next.next;ze!==he.prev;){if(he.i!==ze.i&&E1(he,ze)){var Ke=lM(he,ze);he=sm(he,he.next),Ke=sm(Ke,Ke.next),jx(he,y,I,U,$,ne),jx(Ke,y,I,U,$,ne);return}ze=ze.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ne,he,ze,Ke,st;for(ne=0,he=y.length;ne=I.next.y&&I.next.y!==I.y){var ze=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(ze<=U&&ze>ne){if(ne=ze,ze===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=st&&U!==I.x&&um($he.x||I.x===he.x&&X9(he,I)))&&(he=I,Zt=ur)),I=I.next;while(I!==Ke);return he}function X9(m,y){return tf(m.prev,m,y.prev)<0&&tf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=oM($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,aM($)}function aM(m){var y,I,U,$,ne,he,ze,Ke,st=1;do{for(I=m,m=null,ne=null,he=0;I;){for(he++,U=I,ze=0,y=0;y0||Ke>0&&U;)ze!==0&&(Ke===0||!U||I.z<=U.z)?($=I,I=I.nextZ,ze--):($=U,U=U.nextZ,Ke--),ne?ne.nextZ=$:m=$,$.prevZ=ne,ne=$;I=U}ne.nextZ=null,st*=2}while(he>1);return m}function oM(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function sM(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-ze)-(I-he)*(y-ze)>=0&&(I-he)*(ne-ze)-($-he)*(U-ze)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!_C(m,y)&&(Yx(m,y)&&Yx(y,m)&&Y9(m,y)&&(tf(m.prev,m,y.prev)||tf(m,y.prev,y))||Zx(m,y)&&tf(m.prev,m,m.next)>0&&tf(y.prev,y,y.next)>0)}function tf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Zx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=ly(tf(m,y,I)),ne=ly(tf(m,y,U)),he=ly(tf(I,U,m)),ze=ly(tf(I,U,y));return!!($!==ne&&he!==ze||$===0&&Xx(m,I,y)||ne===0&&Xx(m,U,y)||he===0&&Xx(I,m,U)||ze===0&&Xx(I,y,U))}function Xx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function ly(m){return m>0?1:m<0?-1:0}function _C(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Yx(m,y){return tf(m.prev,m,m.next)<0?tf(m,y,m.next)>=0&&tf(m,m.prev,y)>=0:tf(m,y,m.prev)<0||tf(m,m.next,y)<0}function Y9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ne=(m.y+y.y)/2;do I.y>ne!=I.next.y>ne&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ne-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function lM(m,y){var I=new uM(m.i,m.x,m.y),U=new uM(y.i,y.x,y.y),$=m.next,ne=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ne.next=U,U.prev=ne,U}function xC(m,y,I,U){var $=new uM(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Kx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function uM(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}S1.deviation=function(m,y,I,U){var $=y&&y.length,ne=$?y[0]*I:m.length,he=Math.abs(cM(m,0,ne,I));if($)for(var ze=0,Ke=y.length;ze0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=pC;function fM(m,y,I,U,$){dg(m,y,I||0,U||m.length-1,$||bC)}function dg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ne=U-I+1,he=y-I+1,ze=Math.log(ne),Ke=.5*Math.exp(2*ze/3),st=.5*Math.sqrt(ze*Ke*(ne-Ke)/ne)*(he-ne/2<0?-1:1),gt=Math.max(I,Math.floor(y-he*Ke/ne+st)),Zt=Math.min(U,Math.floor(y+(ne-he)*Ke/ne+st));dg(m,y,gt,Zt,$)}var ur=m[y],ar=I,Cr=U;for(k1(m,I,y),$(m[U],ur)>0&&k1(m,I,U);ar0;)Cr--}$(m[I],ur)===0?k1(m,I,Cr):(Cr++,k1(m,Cr,U)),Cr<=y&&(I=Cr+1),y<=Cr&&(U=Cr-1)}}function k1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function bC(m,y){return my?1:0}function zw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ne,he=0;he1)for(var Ke=0;Ke>3}if(U--,I===1||I===2)$+=m.readSVarint(),ne+=m.readSVarint(),I===1&&(ze&&he.push(ze),ze=[]),ze.push(new u($,ne));else if(I===7)ze&&ze.push(ze[0].clone());else throw new Error("unknown command "+I)}return ze&&he.push(ze),he},uy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ne=0,he=1/0,ze=-1/0,Ke=1/0,st=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ne+=m.readSVarint(),$ze&&(ze=$),nest&&(st=ne);else if(I!==7)throw new Error("unknown command "+I)}return[he,Ke,ze,st]},uy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ne=this.extent*y,he=this.loadGeometry(),ze=uy.types[this.type],Ke,st;function gt(ar){for(var Cr=0;Cr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}vM.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new dM(this._pbf,y,this.extent,this._keys,this._values)};var PC=J9;function J9(m,y){this.layers=m.readFields($9,{},y)}function $9(m,y,I){if(m===3){var U=new vg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var IC=PC,C1=dM,RC=vg,pg={VectorTile:IC,VectorTileFeature:C1,VectorTileLayer:RC},DC=pg.VectorTileFeature.types,qw=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ne,he,ze){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ne*L1*2,Math.round(ze))}var Hp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new On,this.indexArray=new pa,this.programConfigurations=new zi(y.layers,y.zoom),this.segments=new ts,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Hp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=Fw("fill-extrusion",this.layers,I);for(var $=0,ne=y;$=1){var Hi=xi[Gi-1];if(!Q9(Ci,Hi)){ar.vertexLength+4>ts.MAX_VERTEX_ARRAY_LENGTH&&(ar=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var tn=Ci.sub(Hi)._perp()._unit(),wn=Hi.dist(Ci);ui+wn>32768&&(ui=0),cm(this.layoutVertexArray,Ci.x,Ci.y,tn.x,tn.y,0,0,ui),cm(this.layoutVertexArray,Ci.x,Ci.y,tn.x,tn.y,0,1,ui),ui+=wn,cm(this.layoutVertexArray,Hi.x,Hi.y,tn.x,tn.y,0,0,ui),cm(this.layoutVertexArray,Hi.x,Hi.y,tn.x,tn.y,0,1,ui);var ta=ar.vertexLength;this.indexArray.emplaceBack(ta,ta+2,ta+1),this.indexArray.emplaceBack(ta+1,ta+2,ta+3),ar.vertexLength+=4,ar.primitiveLength+=2}}}}if(ar.vertexLength+st>ts.MAX_VERTEX_ARRAY_LENGTH&&(ar=this.segments.prepareSegment(st,this.layoutVertexArray,this.indexArray)),DC[y.type]==="Polygon"){for(var Jn=[],qa=[],ma=ar.vertexLength,Ca=0,Do=Ke;Cann)||m.y===y.y&&(m.y<0||m.y>nn)}function eq(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>nn})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>nn})}var P1=new Bi({"fill-extrusion-opacity":new Mt(on["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Sr(on["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Mt(on["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Mt(on["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Wr(on["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Sr(on["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Sr(on["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Mt(on["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ed={paint:P1},fm=function(m){function y(I){m.call(this,I,ed)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Hp(U)},y.prototype.queryRadius=function(){return kv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ne,he,ze,Ke,st,gt){var Zt=Kv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Ke.angle,st),ur=this.paint.get("fill-extrusion-height").evaluate($,ne),ar=this.paint.get("fill-extrusion-base").evaluate($,ne),Cr=tq(Zt,gt,Ke,0),Kr=gM(he,ar,ur,gt),xi=Kr[0],ui=Kr[1];return zC(xi,ui,Cr)},y}(cn);function cy(m,y){return m.x*y.x+m.y*y.y}function pM(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[st-1].equals(y[st-2]);)st--;for(var gt=0;gt0;if(Jn&&Gi>gt){var ma=ar.dist(Cr);if(ma>2*Zt){var Ca=ar.sub(ar.sub(Cr)._mult(Zt/ma)._round());this.updateDistance(Cr,Ca),this.addCurrentVertex(Ca,xi,0,0,ur),Cr=Ca}}var Do=Cr&&Kr,Oa=Do?U:Ke?"butt":$;if(Do&&Oa==="round"&&(wnne&&(Oa="bevel"),Oa==="bevel"&&(wn>2&&(Oa="flipbevel"),wn100)Ci=ui.mult(-1);else{var Va=wn*xi.add(ui).mag()/xi.sub(ui).mag();Ci._perp()._mult(Va*(qa?-1:1))}this.addCurrentVertex(ar,Ci,0,0,ur),this.addCurrentVertex(ar,Ci.mult(-1),0,0,ur)}else if(Oa==="bevel"||Oa==="fakeround"){var os=-Math.sqrt(wn*wn-1),Io=qa?os:0,rl=qa?0:os;if(Cr&&this.addCurrentVertex(ar,xi,Io,rl,ur),Oa==="fakeround")for(var su=Math.round(ta*180/Math.PI/yM),il=1;il2*Zt){var Zf=ar.add(Kr.sub(ar)._mult(Zt/qh)._round());this.updateDistance(ar,Zf),this.addCurrentVertex(Zf,ui,0,0,ur),ar=Zf}}}}},Gf.prototype.addCurrentVertex=function(y,I,U,$,ne,he){he===void 0&&(he=!1);var ze=I.x+I.y*U,Ke=I.y-I.x*U,st=-I.x+I.y*$,gt=-I.y-I.x*$;this.addHalfVertex(y,ze,Ke,he,!1,U,ne),this.addHalfVertex(y,st,gt,he,!0,-$,ne),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ne,he))},Gf.prototype.addHalfVertex=function(y,I,U,$,ne,he,ze){var Ke=y.x,st=y.y,gt=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,Zt=gt*Bw;if(this.layoutVertexArray.emplaceBack((Ke<<1)+($?1:0),(st<<1)+(ne?1:0),Math.round(Ow*I)+128,Math.round(Ow*U)+128,(he===0?0:he<0?-1:1)+1|(Zt&63)<<2,Zt>>6),this.lineClips){var ur=this.scaledDistance-this.lineClips.start,ar=this.lineClips.end-this.lineClips.start,Cr=ur/ar;this.layoutVertexArray2.emplaceBack(Cr,this.lineClipsArray.length)}var Kr=ze.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Kr),ze.primitiveLength++),ne?this.e2=Kr:this.e1=Kr},Gf.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Gf.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},W("LineBucket",Gf,{omit:["layers","patternFeatures"]});var _M=new Bi({"line-cap":new Mt(on.layout_line["line-cap"]),"line-join":new Sr(on.layout_line["line-join"]),"line-miter-limit":new Mt(on.layout_line["line-miter-limit"]),"line-round-limit":new Mt(on.layout_line["line-round-limit"]),"line-sort-key":new Sr(on.layout_line["line-sort-key"])}),xM=new Bi({"line-opacity":new Sr(on.paint_line["line-opacity"]),"line-color":new Sr(on.paint_line["line-color"]),"line-translate":new Mt(on.paint_line["line-translate"]),"line-translate-anchor":new Mt(on.paint_line["line-translate-anchor"]),"line-width":new Sr(on.paint_line["line-width"]),"line-gap-width":new Sr(on.paint_line["line-gap-width"]),"line-offset":new Sr(on.paint_line["line-offset"]),"line-blur":new Sr(on.paint_line["line-blur"]),"line-dasharray":new Ai(on.paint_line["line-dasharray"]),"line-pattern":new Wr(on.paint_line["line-pattern"]),"line-gradient":new Vi(on.paint_line["line-gradient"])}),Nw={paint:xM,layout:_M},iq=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new pn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ne,he){return $=_({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ne,he)},y}(Sr),R=new iq(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var M=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof yu,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new Gf(U)},y.prototype.queryRadius=function(U){var $=U,ne=D(xd("line-width",this,$),xd("line-gap-width",this,$)),he=xd("line-offset",this,$);return ne/2+Math.abs(he)+kv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ne,he,ze,Ke,st){var gt=Kv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Ke.angle,st),Zt=st/2*D(this.paint.get("line-width").evaluate($,ne),this.paint.get("line-gap-width").evaluate($,ne)),ur=this.paint.get("line-offset").evaluate($,ne);return ur&&(he=j(he,ur*st)),zu(gt,he,Zt)},y.prototype.isTileClipped=function(){return!0},y}(cn);function D(m,y){return y>0?y+2*m:m}function j(m,y){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function Li(m){for(var y="",I=0;I>1,gt=-7,Zt=I?$-1:0,ur=I?-1:1,ar=m[y+Zt];for(Zt+=ur,ne=ar&(1<<-gt)-1,ar>>=-gt,gt+=ze;gt>0;ne=ne*256+m[y+Zt],Zt+=ur,gt-=8);for(he=ne&(1<<-gt)-1,ne>>=-gt,gt+=U;gt>0;he=he*256+m[y+Zt],Zt+=ur,gt-=8);if(ne===0)ne=1-st;else{if(ne===Ke)return he?NaN:(ar?-1:1)*(1/0);he=he+Math.pow(2,U),ne=ne-st}return(ar?-1:1)*he*Math.pow(2,ne-U)},Na=function(m,y,I,U,$,ne){var he,ze,Ke,st=ne*8-$-1,gt=(1<>1,ur=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,ar=U?0:ne-1,Cr=U?1:-1,Kr=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(ze=isNaN(y)?1:0,he=gt):(he=Math.floor(Math.log(y)/Math.LN2),y*(Ke=Math.pow(2,-he))<1&&(he--,Ke*=2),he+Zt>=1?y+=ur/Ke:y+=ur*Math.pow(2,1-Zt),y*Ke>=2&&(he++,Ke/=2),he+Zt>=gt?(ze=0,he=gt):he+Zt>=1?(ze=(y*Ke-1)*Math.pow(2,$),he=he+Zt):(ze=y*Math.pow(2,Zt-1)*Math.pow(2,$),he=0));$>=8;m[I+ar]=ze&255,ar+=Cr,ze/=256,$-=8);for(he=he<<$|ze,st+=$;st>0;m[I+ar]=he&255,ar+=Cr,he/=256,st-=8);m[I+ar-Cr]|=Kr*128},Co={read:ea,write:Na},ka=Nn;function Nn(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}Nn.Varint=0,Nn.Fixed64=1,Nn.Bytes=2,Nn.Fixed32=5;var no=65536*65536,Ya=1/no,ja=12,bn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Nn.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ne=this.pos;this.type=U&7,m($,y,this),this.pos===ne&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Dh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Iv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Dh(this.buf,this.pos)+Dh(this.buf,this.pos+4)*no;return this.pos+=8,m},readSFixed64:function(){var m=Dh(this.buf,this.pos)+Iv(this.buf,this.pos+4)*no;return this.pos+=8,m},readFloat:function(){var m=Co.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Co.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,yo(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=ja&&bn?Cl(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==Nn.Bytes)return m.push(this.readVarint(y));var I=Wa(this);for(m=m||[];this.pos127;);else if(y===Nn.Bytes)this.pos=this.readVarint()+this.pos;else if(y===Nn.Fixed32)this.pos+=4;else if(y===Nn.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){wu(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=qu(this.buf,m,this.pos);var I=this.pos-y;I>=128&&$v(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Co.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Co.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&$v(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,Nn.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,td,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,ch,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Ud,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Vd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,rf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,fh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Td,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,rd,y)},writeBytesField:function(m,y){this.writeTag(m,Nn.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,Nn.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,Nn.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,Nn.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,Nn.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,Nn.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,Nn.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,Nn.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,Nn.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,Nn.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function yo(m,y,I){var U=I.buf,$,ne;if(ne=U[I.pos++],$=(ne&112)>>4,ne<128||(ne=U[I.pos++],$|=(ne&127)<<3,ne<128)||(ne=U[I.pos++],$|=(ne&127)<<10,ne<128)||(ne=U[I.pos++],$|=(ne&127)<<17,ne<128)||(ne=U[I.pos++],$|=(ne&127)<<24,ne<128)||(ne=U[I.pos++],$|=(ne&1)<<31,ne<128))return Oo(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function Wa(m){return m.type===Nn.Bytes?m.readVarint()+m.pos:m.pos+1}function Oo(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function wu(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),hu(I,U,y),uh(U,y)}function hu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function uh(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function $v(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function td(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Iv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ne>223?3:ne>191?2:1;if($+ze>I)break;var Ke,st,gt;ze===1?ne<128&&(he=ne):ze===2?(Ke=m[$+1],(Ke&192)===128&&(he=(ne&31)<<6|Ke&63,he<=127&&(he=null))):ze===3?(Ke=m[$+1],st=m[$+2],(Ke&192)===128&&(st&192)===128&&(he=(ne&15)<<12|(Ke&63)<<6|st&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):ze===4&&(Ke=m[$+1],st=m[$+2],gt=m[$+3],(Ke&192)===128&&(st&192)===128&&(gt&192)===128&&(he=(ne&15)<<18|(Ke&63)<<12|(st&63)<<6|gt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,ze=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=ze}return U}function Cl(m,y,I){return bn.decode(m.subarray(y,I))}function qu(m,y,I){for(var U=0,$,ne;U55295&&$<57344)if(ne)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ne=$;continue}else $=ne-55296<<10|$-56320|65536,ne=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ne=$;continue}else ne&&(m[I++]=239,m[I++]=191,m[I++]=189,ne=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var Tu=3;function Rv(m,y,I){m===1&&I.readMessage(qc,y)}function qc(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ne=U.bitmap,he=U.width,ze=U.height,Ke=U.left,st=U.top,gt=U.advance;y.push({id:$,bitmap:new Pv({width:he+2*Tu,height:ze+2*Tu},ne),metrics:{width:he,height:ze,left:Ke,top:st,advance:gt}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new ka(m).readFields(Rv,[])}var Gp=Tu;function Qv(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ne=$[U];y+=ne.w*ne.h,I=Math.max(I,ne.w)}m.sort(function(xi,ui){return ui.h-xi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),ze=[{x:0,y:0,w:he,h:1/0}],Ke=0,st=0,gt=0,Zt=m;gt=0;ar--){var Cr=ze[ar];if(!(ur.w>Cr.w||ur.h>Cr.h)){if(ur.x=Cr.x,ur.y=Cr.y,st=Math.max(st,ur.y+ur.h),Ke=Math.max(Ke,ur.x+ur.w),ur.w===Cr.w&&ur.h===Cr.h){var Kr=ze.pop();ar=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},zh.prototype.substring=function(y,I){var U=new zh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},zh.prototype.toString=function(){return this.text},zh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},zh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(fy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function nq(m,y){for(var I=[],U=m.text,$=0,ne=0,he=y;ne=0,gt=0,Zt=0;Zt0&&Zf>qa&&(qa=Zf)}else{var nl=I[Ca.fontStack],Ws=nl&&nl[Oa];if(Ws&&Ws.rect)Io=Ws.rect,os=Ws.metrics;else{var Au=y[Ca.fontStack],Ou=Au&&Au[Oa];if(!Ou)continue;os=Ou.metrics}Va=(tn-Ca.scale)*Ki}il?(m.verticalizable=!0,Jn.push({glyph:Oa,imageName:rl,x:ur,y:ar+Va,vertical:il,scale:Ca.scale,fontStack:Ca.fontStack,sectionIndex:Do,metrics:os,rect:Io}),ur+=su*Ca.scale+st):(Jn.push({glyph:Oa,imageName:rl,x:ur,y:ar+Va,vertical:il,scale:Ca.scale,fontStack:Ca.fontStack,sectionIndex:Do,metrics:os,rect:Io}),ur+=os.advance*Ca.scale+st)}if(Jn.length!==0){var jd=ur-st;Cr=Math.max(jd,Cr),lq(Jn,0,Jn.length-1,xi,qa)}ur=0;var Wd=ne*tn+qa;ta.lineOffset=Math.max(qa,wn),ar+=Wd,Kr=Math.max(Wd,Kr),++ui}var Oh=ar-R1,fv=wM(he),hv=fv.horizontalAlign,hh=fv.verticalAlign;Ad(m.positionedLines,xi,hv,hh,Cr,Kr,ne,Oh,$.length),m.top+=-hh*Oh,m.bottom=m.top+Oh,m.left+=-hv*Cr,m.right=m.left+Cr}function lq(m,y,I,U,$){if(!(!U&&!$))for(var ne=m[I],he=ne.metrics.advance*ne.scale,ze=(m[I].x+he)*U,Ke=y;Ke<=I;Ke++)m[Ke].x-=ze,m[Ke].y+=$}function Ad(m,y,I,U,$,ne,he,ze,Ke){var st=(y-I)*$,gt=0;ne!==he?gt=-ze*U-R1:gt=(-U*Ke+.5)*he;for(var Zt=0,ur=m;Zt-I/2;){if(he--,he<0)return!1;ze-=m[he].dist(ne),ne=m[he]}ze+=m[he].dist(m[he+1]),he++;for(var Ke=[],st=0;zeU;)st-=Ke.shift().angleDelta;if(st>$)return!1;he++,ze+=Zt.dist(ur)}return!0}function DQ(m){for(var y=0,I=0;Ist){var Cr=(st-Ke)/ar,Kr=Qs(Zt.x,ur.x,Cr),xi=Qs(Zt.y,ur.y,Cr),ui=new Gd(Kr,xi,ur.angleTo(Zt),gt);return ui._round(),!he||RQ(m,ui,ze,he,y)?ui:void 0}Ke+=ar}}function set(m,y,I,U,$,ne,he,ze,Ke){var st=zQ(U,ne,he),gt=FQ(U,$),Zt=gt*he,ur=m[0].x===0||m[0].x===Ke||m[0].y===0||m[0].y===Ke;y-Zt=0&&Hi=0&&tn=0&&ur+st<=gt){var wn=new Gd(Hi,tn,Gi,Cr);wn._round(),(!U||RQ(m,wn,ne,U,$))&&ar.push(wn)}}Zt+=ui}return!ze&&!ar.length&&!he&&(ar=qQ(m,Zt/2,I,U,$,ne,he,!0,Ke)),ar}function OQ(m,y,I,U,$){for(var ne=[],he=0;he=U&&Zt.x>=U)&&(gt.x>=U?gt=new u(U,gt.y+(Zt.y-gt.y)*((U-gt.x)/(Zt.x-gt.x)))._round():Zt.x>=U&&(Zt=new u(U,gt.y+(Zt.y-gt.y)*((U-gt.x)/(Zt.x-gt.x)))._round()),!(gt.y>=$&&Zt.y>=$)&&(gt.y>=$?gt=new u(gt.x+(Zt.x-gt.x)*(($-gt.y)/(Zt.y-gt.y)),$)._round():Zt.y>=$&&(Zt=new u(gt.x+(Zt.x-gt.x)*(($-gt.y)/(Zt.y-gt.y)),$)._round()),(!Ke||!gt.equals(Ke[Ke.length-1]))&&(Ke=[gt],ne.push(Ke)),Ke.push(Zt)))))}return ne}var Gw=oc;function BQ(m,y,I,U){var $=[],ne=m.image,he=ne.pixelRatio,ze=ne.paddedRect.w-2*Gw,Ke=ne.paddedRect.h-2*Gw,st=m.right-m.left,gt=m.bottom-m.top,Zt=ne.stretchX||[[0,ze]],ur=ne.stretchY||[[0,Ke]],ar=function(nl,Ws){return nl+Ws[1]-Ws[0]},Cr=Zt.reduce(ar,0),Kr=ur.reduce(ar,0),xi=ze-Cr,ui=Ke-Kr,Gi=0,Ci=Cr,Hi=0,tn=Kr,wn=0,ta=xi,Jn=0,qa=ui;if(ne.content&&U){var ma=ne.content;Gi=HC(Zt,0,ma[0]),Hi=HC(ur,0,ma[1]),Ci=HC(Zt,ma[0],ma[2]),tn=HC(ur,ma[1],ma[3]),wn=ma[0]-Gi,Jn=ma[1]-Hi,ta=ma[2]-ma[0]-Ci,qa=ma[3]-ma[1]-tn}var Ca=function(nl,Ws,Au,Ou){var nf=GC(nl.stretch-Gi,Ci,st,m.left),bf=jC(nl.fixed-wn,ta,nl.stretch,Cr),qh=GC(Ws.stretch-Hi,tn,gt,m.top),Zf=jC(Ws.fixed-Jn,qa,Ws.stretch,Kr),jd=GC(Au.stretch-Gi,Ci,st,m.left),Wd=jC(Au.fixed-wn,ta,Au.stretch,Cr),Oh=GC(Ou.stretch-Hi,tn,gt,m.top),fv=jC(Ou.fixed-Jn,qa,Ou.stretch,Kr),hv=new u(nf,qh),hh=new u(jd,qh),dv=new u(jd,Oh),_p=new u(nf,Oh),vy=new u(bf/he,Zf/he),F1=new u(Wd/he,fv/he),q1=y*Math.PI/180;if(q1){var O1=Math.sin(q1),$w=Math.cos(q1),y0=[$w,-O1,O1,$w];hv._matMult(y0),hh._matMult(y0),_p._matMult(y0),dv._matMult(y0)}var JC=nl.stretch+nl.fixed,gq=Au.stretch+Au.fixed,$C=Ws.stretch+Ws.fixed,mq=Ou.stretch+Ou.fixed,jp={x:ne.paddedRect.x+Gw+JC,y:ne.paddedRect.y+Gw+$C,w:gq-JC,h:mq-$C},Qw=ta/he/st,QC=qa/he/gt;return{tl:hv,tr:hh,bl:_p,br:dv,tex:jp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:vy,pixelOffsetBR:F1,minFontScaleX:Qw,minFontScaleY:QC,isSDF:I}};if(!U||!ne.stretchX&&!ne.stretchY)$.push(Ca({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:ze+1},{fixed:0,stretch:Ke+1}));else for(var Do=NQ(Zt,xi,Cr),Oa=NQ(ur,ui,Kr),Va=0;Va0&&(Cr=Math.max(10,Cr),this.circleDiameter=Cr)}else{var Kr=he.top*ze-Ke,xi=he.bottom*ze+Ke,ui=he.left*ze-Ke,Gi=he.right*ze+Ke,Ci=he.collisionPadding;if(Ci&&(ui-=Ci[0]*ze,Kr-=Ci[1]*ze,Gi+=Ci[2]*ze,xi+=Ci[3]*ze),gt){var Hi=new u(ui,Kr),tn=new u(Gi,Kr),wn=new u(ui,xi),ta=new u(Gi,xi),Jn=gt*Math.PI/180;Hi._rotate(Jn),tn._rotate(Jn),wn._rotate(Jn),ta._rotate(Jn),ui=Math.min(Hi.x,tn.x,wn.x,ta.x),Gi=Math.max(Hi.x,tn.x,wn.x,ta.x),Kr=Math.min(Hi.y,tn.y,wn.y,ta.y),xi=Math.max(Hi.y,tn.y,wn.y,ta.y)}y.emplaceBack(I.x,I.y,ui,Kr,Gi,xi,U,$,ne)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=cet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ne=U[y];y>0;){var he=y-1>>1,ze=U[he];if($(ne,ze)>=0)break;U[y]=ze,y=he}U[y]=ne},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ne=this.length>>1,he=U[y];y=0)break;U[y]=Ke,y=ze}U[y]=he};function cet(m,y){return my?1:0}function fet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ne=-1/0,he=-1/0,ze=m[0],Ke=0;Kene)&&(ne=st.x),(!Ke||st.y>he)&&(he=st.y)}var gt=ne-U,Zt=he-$,ur=Math.min(gt,Zt),ar=ur/2,Cr=new jw([],het);if(ur===0)return new u(U,$);for(var Kr=U;Krui.d||!ui.d)&&(ui=Ci,I&&console.log("found best %d after %d probes",Math.round(1e4*Ci.d)/1e4,Gi)),!(Ci.max-ui.d<=y)&&(ar=Ci.h/2,Cr.push(new Ww(Ci.p.x-ar,Ci.p.y-ar,ar,m)),Cr.push(new Ww(Ci.p.x+ar,Ci.p.y-ar,ar,m)),Cr.push(new Ww(Ci.p.x-ar,Ci.p.y+ar,ar,m)),Cr.push(new Ww(Ci.p.x+ar,Ci.p.y+ar,ar,m)),Gi+=4)}return I&&(console.log("num probes: "+Gi),console.log("best distance: "+ui.d)),ui.p}function het(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=det(this.p,U),this.max=this.d+this.h*Math.SQRT2}function det(m,y){for(var I=!1,U=1/0,$=0;$m.y!=gt.y>m.y&&m.x<(gt.x-st.x)*(m.y-st.y)/(gt.y-st.y)+st.x&&(I=!I),U=Math.min(U,cg(m,st,gt))}return(I?1:-1)*Math.sqrt(U)}function vet(m){for(var y=0,I=0,U=0,$=m[0],ne=0,he=$.length,ze=he-1;ne=nn||y0.y<0||y0.y>=nn||met(m,y0,$w,I,U,$,Oa,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,ui,tn,Jn,Ke,Ci,wn,qa,ar,y,ne,st,gt,he)};if(ma==="line")for(var os=0,Io=OQ(y.geometry,0,0,nn,nn);os1){var qh=oet(bf,ta,I.vertical||Cr,U,Kr,Gi);qh&&Va(bf,qh)}}else if(y.type==="Polygon")for(var Zf=0,jd=zw(y.geometry,0);ZfD1&&ie(m.layerIds[0]+': Value for "text-size" is >= '+TM+'. Reduce your "text-size".')):xi.kind==="composite"&&(ui=[Md*ar.compositeTextSizes[0].evaluate(he,{},Cr),Md*ar.compositeTextSizes[1].evaluate(he,{},Cr)],(ui[0]>D1||ui[1]>D1)&&ie(m.layerIds[0]+': Value for "text-size" is >= '+TM+'. Reduce your "text-size".')),m.addSymbols(m.text,Kr,ui,ze,ne,he,st,y,Ke.lineStartIndex,Ke.lineLength,ur,Cr);for(var Gi=0,Ci=gt;GiD1&&ie(m.layerIds[0]+': Value for "icon-size" is >= '+TM+'. Reduce your "icon-size".')):hv.kind==="composite"&&(hh=[Md*tn.compositeIconSizes[0].evaluate(Hi,{},ta),Md*tn.compositeIconSizes[1].evaluate(Hi,{},ta)],(hh[0]>D1||hh[1]>D1)&&ie(m.layerIds[0]+': Value for "icon-size" is >= '+TM+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Oh,hh,Ci,Gi,Hi,!1,y,ma.lineStartIndex,ma.lineLength,-1,ta),il=m.icon.placedSymbolArray.length-1,fv&&(Io=fv.length*4,m.addSymbols(m.icon,fv,hh,Ci,Gi,Hi,uv.vertical,y,ma.lineStartIndex,ma.lineLength,-1,ta),nl=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var _p=U.horizontal[dv];if(!Ca){Au=Q(_p.text);var vy=ze.layout.get("text-rotate").evaluate(Hi,{},ta);Ca=new WC(Ke,y,st,gt,Zt,_p,ur,ar,Cr,vy)}var F1=_p.positionedLines.length===1;if(rl+=VQ(m,y,_p,ne,ze,Cr,Hi,Kr,ma,U.vertical?uv.horizontal:uv.horizontalOnly,F1?Object.keys(U.horizontal):[dv],Ws,il,tn,ta),F1)break}U.vertical&&(su+=VQ(m,y,U.vertical,ne,ze,Cr,Hi,Kr,ma,uv.vertical,["vertical"],Ws,nl,tn,ta));var q1=Ca?Ca.boxStartIndex:m.collisionBoxArray.length,O1=Ca?Ca.boxEndIndex:m.collisionBoxArray.length,$w=Oa?Oa.boxStartIndex:m.collisionBoxArray.length,y0=Oa?Oa.boxEndIndex:m.collisionBoxArray.length,JC=Do?Do.boxStartIndex:m.collisionBoxArray.length,gq=Do?Do.boxEndIndex:m.collisionBoxArray.length,$C=Va?Va.boxStartIndex:m.collisionBoxArray.length,mq=Va?Va.boxEndIndex:m.collisionBoxArray.length,jp=-1,Qw=function(SM,aee){return SM&&SM.circleDiameter?Math.max(SM.circleDiameter,aee):aee};jp=Qw(Ca,jp),jp=Qw(Oa,jp),jp=Qw(Do,jp),jp=Qw(Va,jp);var QC=jp>-1?1:0;QC&&(jp*=Jn/Ki),m.glyphOffsetArray.length>=ou.MAX_GLYPHS&&ie("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Hi.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,Hi.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,Ws.right>=0?Ws.right:-1,Ws.center>=0?Ws.center:-1,Ws.left>=0?Ws.left:-1,Ws.vertical||-1,il,nl,Au,q1,O1,$w,y0,JC,gq,$C,mq,st,rl,su,os,Io,QC,0,ur,Ou,nf,jp)}function yet(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ne=$[y],he=ne.length-1;he>=0;he--)if(U.dist(ne[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),gt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Zt=ne.get("symbol-sort-key");if(this.features=[],!(!st&&!gt)){for(var ur=I.iconDependencies,ar=I.glyphDependencies,Cr=I.availableImages,Kr=new pn(this.zoom),xi=0,ui=y;xi=0;for(var su=0,il=qa.sections;su=0;Ke--)he[Ke]={x:I[Ke].x,y:I[Ke].y,tileUnitDistanceFromAnchor:ne},Ke>0&&(ne+=I[Ke-1].dist(I[Ke]));for(var st=0;st0},ou.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ou.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ou.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ou.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ou.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ne=U.vertexStartIndex;ne<$;ne+=4)y.indexArray.emplaceBack(ne,ne+1,ne+2),y.indexArray.emplaceBack(ne+1,ne+2,ne+3)},ou.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ne=[],he=[],ze=0;ze1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ne=$[U],he=this.symbolInstances.get(ne);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(ze,Ke,st){ze>=0&&st.indexOf(ze)===Ke&&I.addIndicesForPlacedSymbol(I.text,ze)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},W("SymbolBucket",ou,{omit:["layers","collisionBoxArray","features","compareText"]}),ou.MAX_GLYPHS=65535,ou.addDynamicAttributes=fq;function wet(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var Tet=new Bi({"symbol-placement":new Mt(on.layout_symbol["symbol-placement"]),"symbol-spacing":new Mt(on.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Mt(on.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Sr(on.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Mt(on.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Mt(on.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Mt(on.layout_symbol["icon-ignore-placement"]),"icon-optional":new Mt(on.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Mt(on.layout_symbol["icon-rotation-alignment"]),"icon-size":new Sr(on.layout_symbol["icon-size"]),"icon-text-fit":new Mt(on.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Mt(on.layout_symbol["icon-text-fit-padding"]),"icon-image":new Sr(on.layout_symbol["icon-image"]),"icon-rotate":new Sr(on.layout_symbol["icon-rotate"]),"icon-padding":new Mt(on.layout_symbol["icon-padding"]),"icon-keep-upright":new Mt(on.layout_symbol["icon-keep-upright"]),"icon-offset":new Sr(on.layout_symbol["icon-offset"]),"icon-anchor":new Sr(on.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Mt(on.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Mt(on.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Mt(on.layout_symbol["text-rotation-alignment"]),"text-field":new Sr(on.layout_symbol["text-field"]),"text-font":new Sr(on.layout_symbol["text-font"]),"text-size":new Sr(on.layout_symbol["text-size"]),"text-max-width":new Sr(on.layout_symbol["text-max-width"]),"text-line-height":new Mt(on.layout_symbol["text-line-height"]),"text-letter-spacing":new Sr(on.layout_symbol["text-letter-spacing"]),"text-justify":new Sr(on.layout_symbol["text-justify"]),"text-radial-offset":new Sr(on.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Mt(on.layout_symbol["text-variable-anchor"]),"text-anchor":new Sr(on.layout_symbol["text-anchor"]),"text-max-angle":new Mt(on.layout_symbol["text-max-angle"]),"text-writing-mode":new Mt(on.layout_symbol["text-writing-mode"]),"text-rotate":new Sr(on.layout_symbol["text-rotate"]),"text-padding":new Mt(on.layout_symbol["text-padding"]),"text-keep-upright":new Mt(on.layout_symbol["text-keep-upright"]),"text-transform":new Sr(on.layout_symbol["text-transform"]),"text-offset":new Sr(on.layout_symbol["text-offset"]),"text-allow-overlap":new Mt(on.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Mt(on.layout_symbol["text-ignore-placement"]),"text-optional":new Mt(on.layout_symbol["text-optional"])}),Aet=new Bi({"icon-opacity":new Sr(on.paint_symbol["icon-opacity"]),"icon-color":new Sr(on.paint_symbol["icon-color"]),"icon-halo-color":new Sr(on.paint_symbol["icon-halo-color"]),"icon-halo-width":new Sr(on.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Sr(on.paint_symbol["icon-halo-blur"]),"icon-translate":new Mt(on.paint_symbol["icon-translate"]),"icon-translate-anchor":new Mt(on.paint_symbol["icon-translate-anchor"]),"text-opacity":new Sr(on.paint_symbol["text-opacity"]),"text-color":new Sr(on.paint_symbol["text-color"],{runtimeType:Tl,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new Sr(on.paint_symbol["text-halo-color"]),"text-halo-width":new Sr(on.paint_symbol["text-halo-width"]),"text-halo-blur":new Sr(on.paint_symbol["text-halo-blur"]),"text-translate":new Mt(on.paint_symbol["text-translate"]),"text-translate-anchor":new Mt(on.paint_symbol["text-translate-anchor"])}),hq={paint:Aet,layout:Tet},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:Ec,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},W("FormatSectionOverride",Yw,{omit:["defaultValue"]});var Met=function(m){function y(I){m.call(this,I,hq)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ne=this.layout.get("text-writing-mode");if(ne){for(var he=[],ze=0,Ke=ne;ze",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ve(I.error)):$(null,Ve(I.data)))}else{var ne=!1,he=ce(this.globalScope)?void 0:[],ze=I.hasCallback?function(ur,ar){ne=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:ur?Be(ur):null,data:Be(ar,he)},he)}:function(ur){ne=!0},Ke=null,st=Ve(I.data);if(this.parent[I.type])Ke=this.parent[I.type](I.sourceMapId,st,ze);else if(this.parent.getWorkerSource){var gt=I.type.split("."),Zt=this.parent.getWorkerSource(I.sourceMapId,gt[0],st.source);Ke=Zt[gt[1]](st,ze)}else ze(new Error("Could not find function "+I.type));!ne&&Ke&&Ke.cancel&&(this.cancelCallbacks[y]=Ke.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function qet(m,y,I){y=Math.pow(2,I)-y-1;var U=XQ(m*256,y*256,I),$=XQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function XQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ne=y*U-2*Math.PI*6378137/2;return[$,ne]}var jf=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};jf.prototype.setNorthEast=function(y){return this._ne=y instanceof sc?new sc(y.lng,y.lat):sc.convert(y),this},jf.prototype.setSouthWest=function(y){return this._sw=y instanceof sc?new sc(y.lng,y.lat):sc.convert(y),this},jf.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ne;if(y instanceof sc)$=y,ne=y;else if(y instanceof jf){if($=y._sw,ne=y._ne,!$||!ne)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(jf.convert(he))}else{var ze=y;return this.extend(sc.convert(ze))}return this}return!I&&!U?(this._sw=new sc($.lng,$.lat),this._ne=new sc(ne.lng,ne.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ne.lng,U.lng),U.lat=Math.max(ne.lat,U.lat)),this},jf.prototype.getCenter=function(){return new sc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},jf.prototype.getSouthWest=function(){return this._sw},jf.prototype.getNorthEast=function(){return this._ne},jf.prototype.getNorthWest=function(){return new sc(this.getWest(),this.getNorth())},jf.prototype.getSouthEast=function(){return new sc(this.getEast(),this.getSouth())},jf.prototype.getWest=function(){return this._sw.lng},jf.prototype.getSouth=function(){return this._sw.lat},jf.prototype.getEast=function(){return this._ne.lng},jf.prototype.getNorth=function(){return this._ne.lat},jf.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},jf.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},jf.prototype.isEmpty=function(){return!(this._sw&&this._ne)},jf.prototype.contains=function(y){var I=sc.convert(y),U=I.lng,$=I.lat,ne=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ne&&he},jf.convert=function(y){return!y||y instanceof jf?y:new jf(y)};var YQ=63710088e-1,sc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};sc.prototype.wrap=function(){return new sc(E(this.lng,-180,180),this.lat)},sc.prototype.toArray=function(){return[this.lng,this.lat]},sc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},sc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ne=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=YQ*Math.acos(Math.min(ne,1));return he},sc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new jf(new sc(this.lng-$,this.lat-U),new sc(this.lng+$,this.lat+U))},sc.convert=function(y){if(y instanceof sc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new sc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new sc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var KQ=2*Math.PI*YQ;function JQ(m){return KQ*Math.cos(m*Math.PI/180)}function $Q(m){return(180+m)/360}function QQ(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function eee(m,y){return m/JQ(y)}function Oet(m){return m*360-180}function vq(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Bet(m,y){return m*JQ(vq(y))}function Net(m){return 1/Math.cos(m*Math.PI/180)}var nb=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};nb.fromLngLat=function(y,I){I===void 0&&(I=0);var U=sc.convert(y);return new nb($Q(U.lng),QQ(U.lat),eee(I,U.lat))},nb.prototype.toLngLat=function(){return new sc(Oet(this.x),vq(this.y))},nb.prototype.toAltitude=function(){return Bet(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/KQ*Net(vq(this.y))};var ab=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=MM(0,y,y,I,U)};ab.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},ab.prototype.url=function(y,I){var U=qet(this.x,this.y,this.z),$=Uet(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},ab.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*nn,(y.y*I-this.y)*nn)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var tee=function(y,I){this.wrap=y,this.canonical=I,this.key=MM(y,I.z,I.z,I.x,I.y)},Wf=function(y,I,U,$,ne){this.overscaledZ=y,this.wrap=I,this.canonical=new ab(U,+$,+ne),this.key=MM(I,y,U,$,ne)};Wf.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},Wf.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new Wf(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Wf(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},Wf.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?MM(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):MM(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},Wf.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},Wf.prototype.children=function(y){if(this.overscaledZ>=y)return[new Wf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new Wf(I,this.wrap,I,U,$),new Wf(I,this.wrap,I,U+1,$),new Wf(I,this.wrap,I,U,$+1),new Wf(I,this.wrap,I,U+1,$+1)]},Wf.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ne--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},hy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},hy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},hy.prototype.getPixels=function(){return new lh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},hy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ne=I*this.dim+this.dim,he=U*this.dim,ze=U*this.dim+this.dim;switch(I){case-1:$=ne-1;break;case 1:ne=$+1;break}switch(U){case-1:he=ze-1;break;case 1:ze=he+1;break}for(var Ke=-I*this.dim,st=-U*this.dim,gt=he;gt=0&&Zt[3]>=0&&Ke.insert(ze,Zt[0],Zt[1],Zt[2],Zt[3])}},dy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pg.VectorTile(new ka(this.rawTileData)).layers,this.sourceLayerCoder=new YC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},dy.prototype.query=function(y,I,U,$){var ne=this;this.loadVTLayers();for(var he=y.params||{},ze=nn/y.tileSize/y.scale,Ke=Te(he.filter),st=y.queryGeometry,gt=y.queryPadding*ze,Zt=iee(st),ur=this.grid.query(Zt.minX-gt,Zt.minY-gt,Zt.maxX+gt,Zt.maxY+gt),ar=iee(y.cameraQueryGeometry),Cr=this.grid3D.query(ar.minX-gt,ar.minY-gt,ar.maxX+gt,ar.maxY+gt,function(wn,ta,Jn,qa){return pp(y.cameraQueryGeometry,wn-gt,ta-gt,Jn+gt,qa+gt)}),Kr=0,xi=Cr;Kr$)ne=!1;else if(!I)ne=!0;else if(this.expirationTime=_s.maxzoom)&&_s.visibility!=="none"){h(go,this.zoom,Wt);var Vs=Ei[_s.id]=_s.createBucket({index:mi.bucketLayerIDs.length,layers:go,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Sa,sourceID:this.source});Vs.populate(Gn,ki,this.tileID.canonical),mi.bucketLayerIDs.push(go.map(function(ii){return ii.id}))}}}}var As,wt,Lr,Pr,Xr=i.mapObject(ki.glyphDependencies,function(ii){return Object.keys(ii).map(Number)});Object.keys(Xr).length?gr.send("getGlyphs",{uid:this.uid,stacks:Xr},function(ii,Ui){As||(As=ii,wt=Ui,Wi.call(Zr))}):wt={};var bi=Object.keys(ki.iconDependencies);bi.length?gr.send("getImages",{icons:bi,source:this.source,tileID:this.tileID,type:"icons"},function(ii,Ui){As||(As=ii,Lr=Ui,Wi.call(Zr))}):Lr={};var ai=Object.keys(ki.patternDependencies);ai.length?gr.send("getImages",{icons:ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ii,Ui){As||(As=ii,Pr=Ui,Wi.call(Zr))}):Pr={},Wi.call(this);function Wi(){if(As)return qr(As);if(wt&&Lr&&Pr){var ii=new c(wt),Ui=new i.ImageAtlas(Lr,Pr);for(var Vn in Ei){var Tn=Ei[Vn];Tn instanceof i.SymbolBucket?(h(Tn.layers,this.zoom,Wt),i.performSymbolLayout(Tn,wt,ii.positions,Lr,Ui.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Tn.hasPattern&&(Tn instanceof i.LineBucket||Tn instanceof i.FillBucket||Tn instanceof i.FillExtrusionBucket)&&(h(Tn.layers,this.zoom,Wt),Tn.addFeatures(ki,this.tileID.canonical,Ui.patternPositions))}this.status="done",qr(null,{buckets:i.values(Ei).filter(function(xa){return!xa.isEmpty()}),featureIndex:mi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ii.image,imageAtlas:Ui,glyphMap:this.returnDependencies?wt:null,iconMap:this.returnDependencies?Lr:null,glyphPositions:this.returnDependencies?ii.positions:null})}}};function h(It,ct,Vt){for(var Wt=new i.EvaluationParameters(ct),gr=0,qr=It;gr=0!=!!ct&&It.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(ct){this._feature=ct,this.extent=i.EXTENT,this.type=ct.type,this.properties=ct.tags,"id"in ct&&!isNaN(ct.id)&&(this.id=parseInt(ct.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ct=[],Vt=0,Wt=this._feature.geometry;Vt>31}function ke(It,ct){for(var Vt=It.loadGeometry(),Wt=It.type,gr=0,qr=0,Zr=Vt.length,Hr=0;Hr>1;ce(It,ct,Zr,Wt,gr,qr%2),K(It,ct,Vt,Wt,Zr-1,qr+1),K(It,ct,Vt,Zr+1,gr,qr+1)}}function ce(It,ct,Vt,Wt,gr,qr){for(;gr>Wt;){if(gr-Wt>600){var Zr=gr-Wt+1,Hr=Vt-Wt+1,mi=Math.log(Zr),Ei=.5*Math.exp(2*mi/3),ki=.5*Math.sqrt(mi*Ei*(Zr-Ei)/Zr)*(Hr-Zr/2<0?-1:1),Ri=Math.max(Wt,Math.floor(Vt-Hr*Ei/Zr+ki)),ji=Math.min(gr,Math.floor(Vt+(Zr-Hr)*Ei/Zr+ki));ce(It,ct,Vt,Ri,ji,qr)}var $i=ct[2*Vt+qr],Sa=Wt,Gn=gr;for(pe(It,ct,Wt,Vt),ct[2*gr+qr]>$i&&pe(It,ct,Wt,gr);Sa$i;)Gn--}ct[2*Wt+qr]===$i?pe(It,ct,Wt,Gn):(Gn++,pe(It,ct,Gn,gr)),Gn<=Vt&&(Wt=Gn+1),Vt<=Gn&&(gr=Gn-1)}}function pe(It,ct,Vt,Wt){xe(It,Vt,Wt),xe(ct,2*Vt,2*Wt),xe(ct,2*Vt+1,2*Wt+1)}function xe(It,ct,Vt){var Wt=It[ct];It[ct]=It[Vt],It[Vt]=Wt}function Ce(It,ct,Vt,Wt,gr,qr,Zr){for(var Hr=[0,It.length-1,0],mi=[],Ei,ki;Hr.length;){var Ri=Hr.pop(),ji=Hr.pop(),$i=Hr.pop();if(ji-$i<=Zr){for(var Sa=$i;Sa<=ji;Sa++)Ei=ct[2*Sa],ki=ct[2*Sa+1],Ei>=Vt&&Ei<=gr&&ki>=Wt&&ki<=qr&&mi.push(It[Sa]);continue}var Gn=Math.floor(($i+ji)/2);Ei=ct[2*Gn],ki=ct[2*Gn+1],Ei>=Vt&&Ei<=gr&&ki>=Wt&&ki<=qr&&mi.push(It[Gn]);var sa=(Ri+1)%2;(Ri===0?Vt<=Ei:Wt<=ki)&&(Hr.push($i),Hr.push(Gn-1),Hr.push(sa)),(Ri===0?gr>=Ei:qr>=ki)&&(Hr.push(Gn+1),Hr.push(ji),Hr.push(sa))}return mi}function Me(It,ct,Vt,Wt,gr,qr){for(var Zr=[0,It.length-1,0],Hr=[],mi=gr*gr;Zr.length;){var Ei=Zr.pop(),ki=Zr.pop(),Ri=Zr.pop();if(ki-Ri<=qr){for(var ji=Ri;ji<=ki;ji++)Le(ct[2*ji],ct[2*ji+1],Vt,Wt)<=mi&&Hr.push(It[ji]);continue}var $i=Math.floor((Ri+ki)/2),Sa=ct[2*$i],Gn=ct[2*$i+1];Le(Sa,Gn,Vt,Wt)<=mi&&Hr.push(It[$i]);var sa=(Ei+1)%2;(Ei===0?Vt-gr<=Sa:Wt-gr<=Gn)&&(Zr.push(Ri),Zr.push($i-1),Zr.push(sa)),(Ei===0?Vt+gr>=Sa:Wt+gr>=Gn)&&(Zr.push($i+1),Zr.push(ki),Zr.push(sa))}return Hr}function Le(It,ct,Vt,Wt){var gr=It-Vt,qr=ct-Wt;return gr*gr+qr*qr}var je=function(It){return It[0]},Se=function(It){return It[1]},Xe=function(ct,Vt,Wt,gr,qr){Vt===void 0&&(Vt=je),Wt===void 0&&(Wt=Se),gr===void 0&&(gr=64),qr===void 0&&(qr=Float64Array),this.nodeSize=gr,this.points=ct;for(var Zr=ct.length<65536?Uint16Array:Uint32Array,Hr=this.ids=new Zr(ct.length),mi=this.coords=new qr(ct.length*2),Ei=0;Ei=gr;ki--){var Ri=+Date.now();mi=this._cluster(mi,ki),this.trees[ki]=new Xe(mi,Ge,yt,Zr,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",ki,mi.length,+Date.now()-Ri)}return Wt&&console.timeEnd("total time"),this},At.prototype.getClusters=function(ct,Vt){var Wt=((ct[0]+180)%360+360)%360-180,gr=Math.max(-90,Math.min(90,ct[1])),qr=ct[2]===180?180:((ct[2]+180)%360+360)%360-180,Zr=Math.max(-90,Math.min(90,ct[3]));if(ct[2]-ct[0]>=360)Wt=-180,qr=180;else if(Wt>qr){var Hr=this.getClusters([Wt,gr,180,Zr],Vt),mi=this.getClusters([-180,gr,qr,Zr],Vt);return Hr.concat(mi)}for(var Ei=this.trees[this._limitZoom(Vt)],ki=Ei.range(Lt(Wt),Rt(Zr),Lt(qr),Rt(gr)),Ri=[],ji=0,$i=ki;ji<$i.length;ji+=1){var Sa=$i[ji],Gn=Ei.points[Sa];Ri.push(Gn.numPoints?ot(Gn):this.points[Gn.index])}return Ri},At.prototype.getChildren=function(ct){var Vt=this._getOriginId(ct),Wt=this._getOriginZoom(ct),gr="No cluster with the specified id.",qr=this.trees[Wt];if(!qr)throw new Error(gr);var Zr=qr.points[Vt];if(!Zr)throw new Error(gr);for(var Hr=this.options.radius/(this.options.extent*Math.pow(2,Wt-1)),mi=qr.within(Zr.x,Zr.y,Hr),Ei=[],ki=0,Ri=mi;kiVt&&(Gn+=Vo.numPoints||1)}if(Gn>=mi){for(var aa=Ri.x*Sa,go=Ri.y*Sa,_s=Hr&&Sa>1?this._map(Ri,!0):null,Vs=(ki<<5)+(Vt+1)+this.points.length,As=0,wt=$i;As1)for(var bi=0,ai=$i;bi>5},At.prototype._getOriginZoom=function(ct){return(ct-this.points.length)%32},At.prototype._map=function(ct,Vt){if(ct.numPoints)return Vt?er({},ct.properties):ct.properties;var Wt=this.points[ct.index].properties,gr=this.options.map(Wt);return Vt&&gr===Wt?er({},gr):gr};function Yt(It,ct,Vt,Wt,gr){return{x:It,y:ct,zoom:1/0,id:Vt,parentId:-1,numPoints:Wt,properties:gr}}function nt(It,ct){var Vt=It.geometry.coordinates,Wt=Vt[0],gr=Vt[1];return{x:Lt(Wt),y:Rt(gr),zoom:1/0,index:ct,parentId:-1}}function ot(It){return{type:"Feature",id:It.id,properties:Ft(It),geometry:{type:"Point",coordinates:[Xt(It.x),xr(It.y)]}}}function Ft(It){var ct=It.numPoints,Vt=ct>=1e4?Math.round(ct/1e3)+"k":ct>=1e3?Math.round(ct/100)/10+"k":ct;return er(er({},It.properties),{cluster:!0,cluster_id:It.id,point_count:ct,point_count_abbreviated:Vt})}function Lt(It){return It/360+.5}function Rt(It){var ct=Math.sin(It*Math.PI/180),Vt=.5-.25*Math.log((1+ct)/(1-ct))/Math.PI;return Vt<0?0:Vt>1?1:Vt}function Xt(It){return(It-.5)*360}function xr(It){var ct=(180-It*360)*Math.PI/180;return 360*Math.atan(Math.exp(ct))/Math.PI-90}function er(It,ct){for(var Vt in ct)It[Vt]=ct[Vt];return It}function Ge(It){return It.x}function yt(It){return It.y}function _t(It,ct,Vt,Wt){for(var gr=Wt,qr=Vt-ct>>1,Zr=Vt-ct,Hr,mi=It[ct],Ei=It[ct+1],ki=It[Vt],Ri=It[Vt+1],ji=ct+3;jigr)Hr=ji,gr=$i;else if($i===gr){var Sa=Math.abs(ji-qr);SaWt&&(Hr-ct>3&&_t(It,ct,Hr,Wt),It[Hr+2]=gr,Vt-Hr>3&&_t(It,Hr,Vt,Wt))}function Ct(It,ct,Vt,Wt,gr,qr){var Zr=gr-Vt,Hr=qr-Wt;if(Zr!==0||Hr!==0){var mi=((It-Vt)*Zr+(ct-Wt)*Hr)/(Zr*Zr+Hr*Hr);mi>1?(Vt=gr,Wt=qr):mi>0&&(Vt+=Zr*mi,Wt+=Hr*mi)}return Zr=It-Vt,Hr=ct-Wt,Zr*Zr+Hr*Hr}function St(It,ct,Vt,Wt){var gr={id:typeof It=="undefined"?null:It,type:ct,geometry:Vt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return kt(gr),gr}function kt(It){var ct=It.geometry,Vt=It.type;if(Vt==="Point"||Vt==="MultiPoint"||Vt==="LineString")ft(It,ct);else if(Vt==="Polygon"||Vt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Zr+=(gr*Ei-mi*qr)/2:Zr+=Math.sqrt(Math.pow(mi-gr,2)+Math.pow(Ei-qr,2))),gr=mi,qr=Ei}var ki=ct.length-3;ct[2]=1,_t(ct,0,ki,Vt),ct[ki+2]=1,ct.size=Math.abs(Zr),ct.start=0,ct.end=ct.size}function Nr(It,ct,Vt,Wt){for(var gr=0;gr1?1:Vt}function ut(It,ct,Vt,Wt,gr,qr,Zr,Hr){if(Vt/=ct,Wt/=ct,qr>=Vt&&Zr=Wt)return null;for(var mi=[],Ei=0;Ei=Vt&&Sa=Wt)continue;var Gn=[];if(ji==="Point"||ji==="MultiPoint")rt(Ri,Gn,Vt,Wt,gr);else if(ji==="LineString")it(Ri,Gn,Vt,Wt,gr,!1,Hr.lineMetrics);else if(ji==="MultiLineString")Je(Ri,Gn,Vt,Wt,gr,!1);else if(ji==="Polygon")Je(Ri,Gn,Vt,Wt,gr,!0);else if(ji==="MultiPolygon")for(var sa=0;sa=Vt&&Zr<=Wt&&(ct.push(It[qr]),ct.push(It[qr+1]),ct.push(It[qr+2]))}}function it(It,ct,Vt,Wt,gr,qr,Zr){for(var Hr=Ze(It),mi=gr===0?Ie:le,Ei=It.start,ki,Ri,ji=0;jiVt&&(Ri=mi(Hr,$i,Sa,sa,Da,Vt),Zr&&(Hr.start=Ei+ki*Ri)):Pa>Wt?Vo=Vt&&(Ri=mi(Hr,$i,Sa,sa,Da,Vt),aa=!0),Vo>Wt&&Pa<=Wt&&(Ri=mi(Hr,$i,Sa,sa,Da,Wt),aa=!0),!qr&&aa&&(Zr&&(Hr.end=Ei+ki*Ri),ct.push(Hr),Hr=Ze(It)),Zr&&(Ei+=ki)}var go=It.length-3;$i=It[go],Sa=It[go+1],Gn=It[go+2],Pa=gr===0?$i:Sa,Pa>=Vt&&Pa<=Wt&&ht(Hr,$i,Sa,Gn),go=Hr.length-3,qr&&go>=3&&(Hr[go]!==Hr[0]||Hr[go+1]!==Hr[1])&&ht(Hr,Hr[0],Hr[1],Hr[2]),Hr.length&&ct.push(Hr)}function Ze(It){var ct=[];return ct.size=It.size,ct.start=It.start,ct.end=It.end,ct}function Je(It,ct,Vt,Wt,gr,qr){for(var Zr=0;ZrZr.maxX&&(Zr.maxX=ki),Ri>Zr.maxY&&(Zr.maxY=Ri)}return Zr}function ni(It,ct,Vt,Wt){var gr=ct.geometry,qr=ct.type,Zr=[];if(qr==="Point"||qr==="MultiPoint")for(var Hr=0;Hr0&&ct.size<(gr?Zr:Wt)){Vt.numPoints+=ct.length/3;return}for(var Hr=[],mi=0;miZr)&&(Vt.numSimplified++,Hr.push(ct[mi]),Hr.push(ct[mi+1])),Vt.numPoints++;gr&&ri(Hr,qr),It.push(Hr)}function ri(It,ct){for(var Vt=0,Wt=0,gr=It.length,qr=gr-2;Wt0===ct)for(Wt=0,gr=It.length;Wt24)throw new Error("maxZoom should be in the 0-24 range");if(ct.promoteId&&ct.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=Gt(It,ct);this.tiles={},this.tileCoords=[],Vt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ct.indexMaxZoom,ct.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=be(Wt,ct),Wt.length&&this.splitTile(Wt,0,0,0),Vt&&(Wt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}an.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},an.prototype.splitTile=function(It,ct,Vt,Wt,gr,qr,Zr){for(var Hr=[It,ct,Vt,Wt],mi=this.options,Ei=mi.debug;Hr.length;){Wt=Hr.pop(),Vt=Hr.pop(),ct=Hr.pop(),It=Hr.pop();var ki=1<1&&console.time("creation"),ji=this.tiles[Ri]=Jr(It,ct,Vt,Wt,mi),this.tileCoords.push({z:ct,x:Vt,y:Wt}),Ei)){Ei>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ct,Vt,Wt,ji.numFeatures,ji.numPoints,ji.numSimplified),console.timeEnd("creation"));var $i="z"+ct;this.stats[$i]=(this.stats[$i]||0)+1,this.total++}if(ji.source=It,gr){if(ct===mi.maxZoom||ct===gr)continue;var Sa=1<1&&console.time("clipping");var Gn=.5*mi.buffer/mi.extent,sa=.5-Gn,Da=.5+Gn,Pa=1+Gn,Vo,aa,go,_s,Vs,As;Vo=aa=go=_s=null,Vs=ut(It,ki,Vt-Gn,Vt+Da,0,ji.minX,ji.maxX,mi),As=ut(It,ki,Vt+sa,Vt+Pa,0,ji.minX,ji.maxX,mi),It=null,Vs&&(Vo=ut(Vs,ki,Wt-Gn,Wt+Da,1,ji.minY,ji.maxY,mi),aa=ut(Vs,ki,Wt+sa,Wt+Pa,1,ji.minY,ji.maxY,mi),Vs=null),As&&(go=ut(As,ki,Wt-Gn,Wt+Da,1,ji.minY,ji.maxY,mi),_s=ut(As,ki,Wt+sa,Wt+Pa,1,ji.minY,ji.maxY,mi),As=null),Ei>1&&console.timeEnd("clipping"),Hr.push(Vo||[],ct+1,Vt*2,Wt*2),Hr.push(aa||[],ct+1,Vt*2,Wt*2+1),Hr.push(go||[],ct+1,Vt*2+1,Wt*2),Hr.push(_s||[],ct+1,Vt*2+1,Wt*2+1)}}},an.prototype.getTile=function(It,ct,Vt){var Wt=this.options,gr=Wt.extent,qr=Wt.debug;if(It<0||It>24)return null;var Zr=1<1&&console.log("drilling down to z%d-%d-%d",It,ct,Vt);for(var mi=It,Ei=ct,ki=Vt,Ri;!Ri&&mi>0;)mi--,Ei=Math.floor(Ei/2),ki=Math.floor(ki/2),Ri=this.tiles[Yi(mi,Ei,ki)];return!Ri||!Ri.source?null:(qr>1&&console.log("found parent tile z%d-%d-%d",mi,Ei,ki),qr>1&&console.time("drilling down"),this.splitTile(Ri.source,mi,Ei,ki,It,ct,Vt),qr>1&&console.timeEnd("drilling down"),this.tiles[Hr]?Ot(this.tiles[Hr],gr):null)};function Yi(It,ct,Vt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,z,J){var O,Q,me,ve=i.browser.devicePixelRatio>1?"@2x":"",Re=i.getJSON(z.transformRequest(z.normalizeSpriteURL(Y,ve,".json"),i.ResourceType.SpriteJSON),function(Kt,nr){Re=null,me||(me=Kt,O=nr,vt())}),Ye=i.getImage(z.transformRequest(z.normalizeSpriteURL(Y,ve,".png"),i.ResourceType.SpriteImage),function(Kt,nr){Ye=null,me||(me=Kt,Q=nr,vt())});function vt(){if(me)J(me);else if(O&&Q){var Kt=i.browser.getImageData(Q),nr={};for(var Jt in O){var dt=O[Jt],Pt=dt.width,jt=dt.height,ir=dt.x,dr=dt.y,pr=dt.sdf,Er=dt.pixelRatio,Tr=dt.stretchX,mr=dt.stretchY,kr=dt.content,cr=new i.RGBAImage({width:Pt,height:jt});i.RGBAImage.copy(Kt,cr,{x:ir,y:dr},{x:0,y:0},{width:Pt,height:jt}),nr[Jt]={data:cr,pixelRatio:Er,sdf:pr,stretchX:Tr,stretchY:mr,content:kr}}J(null,nr)}}return{cancel:function(){Re&&(Re.cancel(),Re=null),Ye&&(Ye.cancel(),Ye=null)}}}function b(Y){var z=Y.userImage;if(z&&z.render){var J=z.render();if(J)return Y.data.replace(new Uint8Array(z.data.buffer)),!0}return!1}var p=1,E=function(Y){function z(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.isLoaded=function(){return this.loaded},z.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var Q=0,me=this.requestors;Q=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var z=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){Kt(new Error("glyphs > 65535 not supported"));return}if(dt.ranges[jt]){Kt(null,{stack:nr,id:Jt,glyph:Pt});return}var ir=dt.requests[jt];ir||(ir=dt.requests[jt]=[],P.loadGlyphRange(nr,jt,O.url,O.requestManager,function(dr,pr){if(pr){for(var Er in pr)O._doesCharSupportLocalGlyph(+Er)||(dt.glyphs[+Er]=pr[+Er]);dt.ranges[jt]=!0}for(var Tr=0,mr=ir;Tr1&&(vt=z[++Ye]);var nr=Math.abs(Kt-vt.left),Jt=Math.abs(Kt-vt.right),dt=Math.min(nr,Jt),Pt=void 0,jt=me/O*(Q+1);if(vt.isDash){var ir=Q-Math.abs(jt);Pt=Math.sqrt(dt*dt+ir*ir)}else Pt=Q-Math.sqrt(dt*dt+jt*jt);this.data[Re+Kt]=Math.max(0,Math.min(255,Pt+128))}},H.prototype.addRegularDash=function(z){for(var J=z.length-1;J>=0;--J){var O=z[J],Q=z[J+1];O.zeroLength?z.splice(J,1):Q&&Q.isDash===O.isDash&&(Q.left=O.left,z.splice(J,1))}var me=z[0],ve=z[z.length-1];me.isDash===ve.isDash&&(me.left=ve.left-this.width,ve.right=me.right+this.width);for(var Re=this.width*this.nextRow,Ye=0,vt=z[Ye],Kt=0;Kt1&&(vt=z[++Ye]);var nr=Math.abs(Kt-vt.left),Jt=Math.abs(Kt-vt.right),dt=Math.min(nr,Jt),Pt=vt.isDash?dt:-dt;this.data[Re+Kt]=Math.max(0,Math.min(255,Pt+128))}},H.prototype.addDash=function(z,J){var O=J?7:0,Q=2*O+1;if(this.nextRow+Q>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var me=0,ve=0;ve=O.minX&&z.x=O.minY&&z.y0&&(Kt[new i.OverscaledTileID(O.overscaledZ,Re,Q.z,ve,Q.y-1).key]={backfilled:!1},Kt[new i.OverscaledTileID(O.overscaledZ,O.wrap,Q.z,Q.x,Q.y-1).key]={backfilled:!1},Kt[new i.OverscaledTileID(O.overscaledZ,vt,Q.z,Ye,Q.y-1).key]={backfilled:!1}),Q.y+10&&(me.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",me))})},z.prototype.onAdd=function(O){this.map=O,this.load()},z.prototype.setData=function(O){var Q=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(me){if(me){Q.fire(new i.ErrorEvent(me));return}var ve={dataType:"source",sourceDataType:"content"};Q._collectResourceTiming&&Q._resourceTiming&&Q._resourceTiming.length>0&&(ve.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new i.Event("data",ve))}),this},z.prototype.getClusterExpansionZoom=function(O,Q){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},Q),this},z.prototype.getClusterChildren=function(O,Q){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},Q),this},z.prototype.getClusterLeaves=function(O,Q,me,ve){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:Q,offset:me},ve),this},z.prototype._updateWorkerData=function(O){var Q=this;this._loaded=!1;var me=i.extend({},this.workerOptions),ve=this._data;typeof ve=="string"?(me.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ve),i.ResourceType.Source),me.request.collectResourceTiming=this._collectResourceTiming):me.data=JSON.stringify(ve),this.actor.send(this.type+".loadData",me,function(Re,Ye){Q._removed||Ye&&Ye.abandoned||(Q._loaded=!0,Ye&&Ye.resourceTiming&&Ye.resourceTiming[Q.id]&&(Q._resourceTiming=Ye.resourceTiming[Q.id].slice(0)),Q.actor.send(Q.type+".coalesce",{source:me.source},null),O(Re))})},z.prototype.loaded=function(){return this._loaded},z.prototype.loadTile=function(O,Q){var me=this,ve=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Re={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ve,Re,function(Ye,vt){return delete O.request,O.unloadVectorData(),O.aborted?Q(null):Ye?Q(Ye):(O.loadVectorData(vt,me.map.painter,ve==="reloadTile"),Q(null))})},z.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},z.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},z.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},z.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},z.prototype.hasTransition=function(){return!1},z}(i.Evented),Ee=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function z(J,O,Q,me){Y.call(this),this.id=J,this.dispatcher=Q,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(me),this.options=O}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.load=function(O,Q){var me=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ve,Re){me._loaded=!0,ve?me.fire(new i.ErrorEvent(ve)):Re&&(me.image=Re,O&&(me.coordinates=O),Q&&Q(),me._finishLoading())})},z.prototype.loaded=function(){return this._loaded},z.prototype.updateImage=function(O){var Q=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){Q.texture=null}),this)},z.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},z.prototype.onAdd=function(O){this.map=O,this.load()},z.prototype.setCoordinates=function(O){var Q=this;this.coordinates=O;var me=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=ye(me),this.minzoom=this.maxzoom=this.tileID.z;var ve=me.map(function(Re){return Q.tileID.getTilePoint(Re)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ve[0].x,ve[0].y,0,0),this._boundsArray.emplaceBack(ve[1].x,ve[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ve[3].x,ve[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ve[2].x,ve[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},z.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,Q=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,Q.RGBA),this.texture.bind(Q.LINEAR,Q.CLAMP_TO_EDGE));for(var me in this.tiles){var ve=this.tiles[me];ve.state!=="loaded"&&(ve.state="loaded",ve.texture=this.texture)}}},z.prototype.loadTile=function(O,Q){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},Q(null)):(O.state="errored",Q(null))},z.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},z.prototype.hasTransition=function(){return!1},z}(i.Evented);function ye(Y){for(var z=1/0,J=1/0,O=-1/0,Q=-1/0,me=0,ve=Y;meQ.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+Q.start(0)+" and "+Q.end(0)+"-second mark."))):this.video.currentTime=O}},z.prototype.getVideo=function(){return this.video},z.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},z.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,Q=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(Q.LINEAR,Q.CLAMP_TO_EDGE),Q.texSubImage2D(Q.TEXTURE_2D,0,0,0,Q.RGBA,Q.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,Q.RGBA),this.texture.bind(Q.LINEAR,Q.CLAMP_TO_EDGE));for(var me in this.tiles){var ve=this.tiles[me];ve.state!=="loaded"&&(ve.state="loaded",ve.texture=this.texture)}}},z.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},z.prototype.hasTransition=function(){return this.video&&!this.video.paused},z}(ke),ce=function(Y){function z(J,O,Q,me){Y.call(this,J,O,Q,me),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ve){return!Array.isArray(ve)||ve.length!==2||ve.some(function(Re){return typeof Re!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},z.prototype.getCanvas=function(){return this.canvas},z.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},z.prototype.onRemove=function(){this.pause()},z.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var Q=this.map.painter.context,me=Q.gl;this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(Q,this.canvas,me.RGBA,{premultiply:!0});for(var ve in this.tiles){var Re=this.tiles[ve];Re.state!=="loaded"&&(Re.state="loaded",Re.texture=this.texture)}}},z.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},z.prototype.hasTransition=function(){return this._playing},z.prototype._hasInvalidDimensions=function(){for(var O=0,Q=[this.canvas.width,this.canvas.height];Othis.max){var Re=this._getAndRemoveByKey(this.order[0]);Re&&this.onRemove(Re)}return this},nt.prototype.has=function(z){return z.wrapped().key in this.data},nt.prototype.getAndRemove=function(z){return this.has(z)?this._getAndRemoveByKey(z.wrapped().key):null},nt.prototype._getAndRemoveByKey=function(z){var J=this.data[z].shift();return J.timeout&&clearTimeout(J.timeout),this.data[z].length===0&&delete this.data[z],this.order.splice(this.order.indexOf(z),1),J.value},nt.prototype.getByKey=function(z){var J=this.data[z];return J?J[0].value:null},nt.prototype.get=function(z){if(!this.has(z))return null;var J=this.data[z.wrapped().key][0];return J.value},nt.prototype.remove=function(z,J){if(!this.has(z))return this;var O=z.wrapped().key,Q=J===void 0?0:this.data[O].indexOf(J),me=this.data[O][Q];return this.data[O].splice(Q,1),me.timeout&&clearTimeout(me.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(me.value),this.order.splice(this.order.indexOf(O),1),this},nt.prototype.setMaxSize=function(z){for(this.max=z;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},nt.prototype.filter=function(z){var J=[];for(var O in this.data)for(var Q=0,me=this.data[O];Q1||(Math.abs(nr)>1&&(Math.abs(nr+dt)===1?nr+=dt:Math.abs(nr-dt)===1&&(nr-=dt)),!(!Kt.dem||!vt.dem)&&(vt.dem.backfillBorder(Kt.dem,nr,Jt),vt.neighboringTiles&&vt.neighboringTiles[Pt]&&(vt.neighboringTiles[Pt].backfilled=!0)))}},z.prototype.getTile=function(O){return this.getTileByID(O.key)},z.prototype.getTileByID=function(O){return this._tiles[O]},z.prototype._retainLoadedChildren=function(O,Q,me,ve){for(var Re in this._tiles){var Ye=this._tiles[Re];if(!(ve[Re]||!Ye.hasData()||Ye.tileID.overscaledZ<=Q||Ye.tileID.overscaledZ>me)){for(var vt=Ye.tileID;Ye&&Ye.tileID.overscaledZ>Q+1;){var Kt=Ye.tileID.scaledTo(Ye.tileID.overscaledZ-1);Ye=this._tiles[Kt.key],Ye&&Ye.hasData()&&(vt=Kt)}for(var nr=vt;nr.overscaledZ>Q;)if(nr=nr.scaledTo(nr.overscaledZ-1),O[nr.key]){ve[vt.key]=vt;break}}}},z.prototype.findLoadedParent=function(O,Q){if(O.key in this._loadedParentTiles){var me=this._loadedParentTiles[O.key];return me&&me.tileID.overscaledZ>=Q?me:null}for(var ve=O.overscaledZ-1;ve>=Q;ve--){var Re=O.scaledTo(ve),Ye=this._getLoadedTile(Re);if(Ye)return Ye}},z.prototype._getLoadedTile=function(O){var Q=this._tiles[O.key];if(Q&&Q.hasData())return Q;var me=this._cache.getByKey(O.wrapped().key);return me},z.prototype.updateCacheSize=function(O){var Q=Math.ceil(O.width/this._source.tileSize)+1,me=Math.ceil(O.height/this._source.tileSize)+1,ve=Q*me,Re=5,Ye=Math.floor(ve*Re),vt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ye):Ye;this._cache.setMaxSize(vt)},z.prototype.handleWrapJump=function(O){var Q=this._prevLng===void 0?O:this._prevLng,me=O-Q,ve=me/360,Re=Math.round(ve);if(this._prevLng=O,Re){var Ye={};for(var vt in this._tiles){var Kt=this._tiles[vt];Kt.tileID=Kt.tileID.unwrapTo(Kt.tileID.wrap+Re),Ye[Kt.tileID.key]=Kt}this._tiles=Ye;for(var nr in this._timers)clearTimeout(this._timers[nr]),delete this._timers[nr];for(var Jt in this._tiles){var dt=this._tiles[Jt];this._setTileReloadTimer(Jt,dt)}}},z.prototype.update=function(O){var Q=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var me;this.used?this._source.tileID?me=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(_i){return new i.OverscaledTileID(_i.canonical.z,_i.wrap,_i.canonical.z,_i.canonical.x,_i.canonical.y)}):(me=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(me=me.filter(function(_i){return Q._source.hasTile(_i)}))):me=[];var ve=O.coveringZoomLevel(this._source),Re=Math.max(ve-z.maxOverzooming,this._source.minzoom),Ye=Math.max(ve+z.maxUnderzooming,this._source.minzoom),vt=this._updateRetainedTiles(me,ve);if(mi(this._source.type)){for(var Kt={},nr={},Jt=Object.keys(vt),dt=0,Pt=Jt;dtthis._source.maxzoom){var pr=ir.children(this._source.maxzoom)[0],Er=this.getTile(pr);if(Er&&Er.hasData()){me[pr.key]=pr;continue}}else{var Tr=ir.children(this._source.maxzoom);if(me[Tr[0].key]&&me[Tr[1].key]&&me[Tr[2].key]&&me[Tr[3].key])continue}for(var mr=dr.wasRequested(),kr=ir.overscaledZ-1;kr>=Re;--kr){var cr=ir.scaledTo(kr);if(ve[cr.key]||(ve[cr.key]=!0,dr=this.getTile(cr),!dr&&mr&&(dr=this._addTile(cr)),dr&&(me[cr.key]=cr,mr=dr.wasRequested(),dr.hasData())))break}}}return me},z.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var Q=[],me=void 0,ve=this._tiles[O].tileID;ve.overscaledZ>0;){if(ve.key in this._loadedParentTiles){me=this._loadedParentTiles[ve.key];break}Q.push(ve.key);var Re=ve.scaledTo(ve.overscaledZ-1);if(me=this._getLoadedTile(Re),me)break;ve=Re}for(var Ye=0,vt=Q;Ye0)&&(Q.hasData()&&Q.state!=="reloading"?this._cache.add(Q.tileID,Q,Q.getExpiryTimeout()):(Q.aborted=!0,this._abortTile(Q),this._unloadTile(Q))))},z.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},z.prototype.tilesIn=function(O,Q,me){var ve=this,Re=[],Ye=this.transform;if(!Ye)return Re;for(var vt=me?Ye.getCameraQueryGeometry(O):O,Kt=O.map(function(kr){return Ye.pointCoordinate(kr)}),nr=vt.map(function(kr){return Ye.pointCoordinate(kr)}),Jt=this.getIds(),dt=1/0,Pt=1/0,jt=-1/0,ir=-1/0,dr=0,pr=nr;dr=0&&rn[1].y+_i>=0){var zi=Kt.map(function($n){return jr.getTilePoint($n)}),ln=nr.map(function($n){return jr.getTilePoint($n)});Re.push({tile:cr,tileID:jr,queryGeometry:zi,cameraQueryGeometry:ln,scale:ti})}}},mr=0;mr=i.browser.now())return!0}return!1},z.prototype.setFeatureState=function(O,Q,me){O=O||"_geojsonTileLayer",this._state.updateState(O,Q,me)},z.prototype.removeFeatureState=function(O,Q,me){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,Q,me)},z.prototype.getFeatureState=function(O,Q){return O=O||"_geojsonTileLayer",this._state.getState(O,Q)},z.prototype.setDependencies=function(O,Q,me){var ve=this._tiles[O];ve&&ve.setDependencies(Q,me)},z.prototype.reloadTilesForDependencies=function(O,Q){for(var me in this._tiles){var ve=this._tiles[me];ve.hasDependency(O,Q)&&this._reloadTile(me,"reloading")}this._cache.filter(function(Re){return!Re.hasDependency(O,Q)})},z}(i.Evented);Zr.maxOverzooming=10,Zr.maxUnderzooming=3;function Hr(Y,z){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(z.wrap*2)-+(z.wrap<0);return Y.overscaledZ-z.overscaledZ||O-J||z.canonical.y-Y.canonical.y||z.canonical.x-Y.canonical.x}function mi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ei(){return new i.window.Worker(ts.workerUrl)}var ki="mapboxgl_preloaded_worker_pool",Ri=function(){this.active={}};Ri.prototype.acquire=function(z){if(!this.workers)for(this.workers=[];this.workers.length0?(Q-ve)/Re:0;return this.points[me].mult(1-Ye).add(this.points[J].mult(Ye))};var ii=function(z,J,O){var Q=this.boxCells=[],me=this.circleCells=[];this.xCellCount=Math.ceil(z/O),this.yCellCount=Math.ceil(J/O);for(var ve=0;vethis.width||Q<0||J>this.height)return me?!1:[];var Re=[];if(z<=0&&J<=0&&this.width<=O&&this.height<=Q){if(me)return!0;for(var Ye=0;Ye0:Re}},ii.prototype._queryCircle=function(z,J,O,Q,me){var ve=z-O,Re=z+O,Ye=J-O,vt=J+O;if(Re<0||ve>this.width||vt<0||Ye>this.height)return Q?!1:[];var Kt=[],nr={hitTest:Q,circle:{x:z,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ve,Ye,Re,vt,this._queryCellCircle,Kt,nr,me),Q?Kt.length>0:Kt},ii.prototype.query=function(z,J,O,Q,me){return this._query(z,J,O,Q,!1,me)},ii.prototype.hitTest=function(z,J,O,Q,me){return this._query(z,J,O,Q,!0,me)},ii.prototype.hitTestCircle=function(z,J,O,Q){return this._queryCircle(z,J,O,!0,Q)},ii.prototype._queryCell=function(z,J,O,Q,me,ve,Re,Ye){var vt=Re.seenUids,Kt=this.boxCells[me];if(Kt!==null)for(var nr=this.bboxes,Jt=0,dt=Kt;Jt=nr[jt+0]&&Q>=nr[jt+1]&&(!Ye||Ye(this.boxKeys[Pt]))){if(Re.hitTest)return ve.push(!0),!0;ve.push({key:this.boxKeys[Pt],x1:nr[jt],y1:nr[jt+1],x2:nr[jt+2],y2:nr[jt+3]})}}}var ir=this.circleCells[me];if(ir!==null)for(var dr=this.circles,pr=0,Er=ir;prRe*Re+Ye*Ye},ii.prototype._circleAndRectCollide=function(z,J,O,Q,me,ve,Re){var Ye=(ve-Q)/2,vt=Math.abs(z-(Q+Ye));if(vt>Ye+O)return!1;var Kt=(Re-me)/2,nr=Math.abs(J-(me+Kt));if(nr>Kt+O)return!1;if(vt<=Ye||nr<=Kt)return!0;var Jt=vt-Ye,dt=nr-Kt;return Jt*Jt+dt*dt<=O*O};function Ui(Y,z,J,O,Q){var me=i.create();return z?(i.scale(me,me,[1/Q,1/Q,1]),J||i.rotateZ(me,me,O.angle)):i.multiply(me,O.labelPlaneMatrix,Y),me}function Vn(Y,z,J,O,Q){if(z){var me=i.clone(Y);return i.scale(me,me,[Q,Q,1]),J||i.rotateZ(me,me,-O.angle),me}else return O.glCoordMatrix}function Tn(Y,z){var J=[Y.x,Y.y,0,1];wl(J,J,z);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function xa(Y,z){return .5+.5*(Y/z)}function fo(Y,z){var J=Y[0]/Y[3],O=Y[1]/Y[3],Q=J>=-z[0]&&J<=z[0]&&O>=-z[1]&&O<=z[1];return Q}function zo(Y,z,J,O,Q,me,ve,Re){var Ye=O?Y.textSizeData:Y.iconSizeData,vt=i.evaluateSizeForZoom(Ye,J.transform.zoom),Kt=[256/J.width*2+1,256/J.height*2+1],nr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;nr.clear();for(var Jt=Y.lineVertexArray,dt=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,Pt=J.transform.width/J.transform.height,jt=!1,ir=0;irme)return{useVertical:!0}}return(Y===i.WritingMode.vertical?z.yJ.x)?{needsFlipping:!0}:null}function mo(Y,z,J,O,Q,me,ve,Re,Ye,vt,Kt,nr,Jt,dt){var Pt=z/24,jt=Y.lineOffsetX*Pt,ir=Y.lineOffsetY*Pt,dr;if(Y.numGlyphs>1){var pr=Y.glyphStartIndex+Y.numGlyphs,Er=Y.lineStartIndex,Tr=Y.lineStartIndex+Y.lineLength,mr=lo(Pt,Re,jt,ir,J,Kt,nr,Y,Ye,me,Jt);if(!mr)return{notEnoughRoom:!0};var kr=Tn(mr.first.point,ve).point,cr=Tn(mr.last.point,ve).point;if(O&&!J){var jr=To(Y.writingMode,kr,cr,dt);if(jr)return jr}dr=[mr.first];for(var ti=Y.glyphStartIndex+1;ti0?ln.point:Ds(nr,zi,_i,1,Q),Dn=To(Y.writingMode,_i,$n,dt);if(Dn)return Dn}var nn=Es(Pt*Re.getoffsetX(Y.glyphStartIndex),jt,ir,J,Kt,nr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ye,me,Jt);if(!nn)return{notEnoughRoom:!0};dr=[nn]}for(var _n=0,mn=dr;_n0?1:-1,Pt=0;O&&(dt*=-1,Pt=Math.PI),dt<0&&(Pt+=Math.PI);for(var jt=dt>0?Re+ve:Re+ve+1,ir=Q,dr=Q,pr=0,Er=0,Tr=Math.abs(Jt),mr=[];pr+Er<=Tr;){if(jt+=dt,jt=Ye)return null;if(dr=ir,mr.push(ir),ir=nr[jt],ir===void 0){var kr=new i.Point(vt.getx(jt),vt.gety(jt)),cr=Tn(kr,Kt);if(cr.signedDistanceFromCamera>0)ir=nr[jt]=cr.point;else{var jr=jt-dt,ti=pr===0?me:new i.Point(vt.getx(jr),vt.gety(jr));ir=Ds(ti,kr,dr,Tr-pr+1,Kt)}}pr+=Er,Er=dr.dist(ir)}var _i=(Tr-pr)/Er,rn=ir.sub(dr),zi=rn.mult(_i)._add(dr);zi._add(rn._unit()._perp()._mult(J*dt));var ln=Pt+Math.atan2(ir.y-dr.y,ir.x-dr.x);return mr.push(zi),{point:zi,angle:ln,path:mr}}var Zs=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Xs(Y,z){for(var J=0;J=1;Hn--)mn.push(nn.path[Hn]);for(var fa=1;fa<_n.path.length;fa++)mn.push(_n.path[fa]);var qo=zi*2.5;if(Ye){var Po=mn.map(function(Cv){return Tn(Cv,Ye)});Po.some(function(Cv){return Cv.signedDistanceFromCamera<=0})?mn=[]:mn=Po.map(function(Cv){return Cv.point})}var hs=[];if(mn.length>0){for(var so=mn[0].clone(),rs=mn[0].clone(),tl=1;tl=ln.x&&rs.x<=$n.x&&so.y>=ln.y&&rs.y<=$n.y?hs=[mn]:rs.x$n.x||rs.y$n.y?hs=[]:hs=i.clipLine([mn],ln.x,ln.y,$n.x,$n.y)}for(var zu=0,Sv=hs;zu=this.screenRightBoundary||Qthis.screenBottomBoundary},cl.prototype.isInsideGrid=function(z,J,O,Q){return O>=0&&z=0&&J0){var Tr;return this.prevPlacement&&this.prevPlacement.variableOffsets[Jt.crossTileID]&&this.prevPlacement.placements[Jt.crossTileID]&&this.prevPlacement.placements[Jt.crossTileID].text&&(Tr=this.prevPlacement.variableOffsets[Jt.crossTileID].anchor),this.variableOffsets[Jt.crossTileID]={textOffset:ir,width:O,height:Q,anchor:z,textBoxScale:me,prevAnchor:Tr},this.markUsedJustification(dt,z,Jt,Pt),dt.allowVerticalPlacement&&(this.markUsedOrientation(dt,Pt,Jt),this.placedOrientations[Jt.crossTileID]=Pt),{shift:dr,placedGlyphBoxes:pr}}},vs.prototype.placeLayerBucketPart=function(z,J,O){var Q=this,me=z.parameters,ve=me.bucket,Re=me.layout,Ye=me.posMatrix,vt=me.textLabelPlaneMatrix,Kt=me.labelToScreenMatrix,nr=me.textPixelRatio,Jt=me.holdingForFade,dt=me.collisionBoxArray,Pt=me.partiallyEvaluatedTextSize,jt=me.collisionGroup,ir=Re.get("text-optional"),dr=Re.get("icon-optional"),pr=Re.get("text-allow-overlap"),Er=Re.get("icon-allow-overlap"),Tr=Re.get("text-rotation-alignment")==="map",mr=Re.get("text-pitch-alignment")==="map",kr=Re.get("icon-text-fit")!=="none",cr=Re.get("symbol-z-order")==="viewport-y",jr=pr&&(Er||!ve.hasIconData()||dr),ti=Er&&(pr||!ve.hasTextData()||ir);!ve.collisionArrays&&dt&&ve.deserializeCollisionBoxes(dt);var _i=function(nn,_n){if(!J[nn.crossTileID]){if(Jt){Q.placements[nn.crossTileID]=new Hs(!1,!1,!1);return}var mn=!1,Hn=!1,fa=!0,qo=null,Po={box:null,offscreen:null},hs={box:null,offscreen:null},so=null,rs=null,tl=null,zu=0,Sv=0,Ev=0;_n.textFeatureIndex?zu=_n.textFeatureIndex:nn.useRuntimeCollisionCircles&&(zu=nn.featureIndex),_n.verticalTextFeatureIndex&&(Sv=_n.verticalTextFeatureIndex);var yd=_n.textBox;if(yd){var Yv=function(Fu){var kl=i.WritingMode.horizontal;if(ve.allowVerticalPlacement&&!Fu&&Q.prevPlacement){var bd=Q.prevPlacement.placedOrientations[nn.crossTileID];bd&&(Q.placedOrientations[nn.crossTileID]=bd,kl=bd,Q.markUsedOrientation(ve,kl,nn))}return kl},cg=function(Fu,kl){if(ve.allowVerticalPlacement&&nn.numVerticalGlyphVertices>0&&_n.verticalTextBox)for(var bd=0,oy=ve.writingModes;bd0&&(Nd=Nd.filter(function(Fu){return Fu!==xd.anchor}),Nd.unshift(xd.anchor))}var kv=function(Fu,kl,bd){for(var oy=Fu.x2-Fu.x1,A1=Fu.y2-Fu.y1,Kl=nn.textBoxScale,Nx=kr&&!Er?kl:null,am={box:[],offscreen:!1},Sw=pr?Nd.length*2:Nd.length,Lv=0;Lv=Nd.length,Ux=Q.attemptAnchorPlacement(om,Fu,oy,A1,Kl,Tr,mr,nr,Ye,jt,Ew,nn,ve,bd,Nx);if(Ux&&(am=Ux.placedGlyphBoxes,am&&am.box&&am.box.length)){mn=!0,qo=Ux.shift;break}}return am},Kv=function(){return kv(yd,_n.iconBox,i.WritingMode.horizontal)},Cv=function(){var Fu=_n.verticalTextBox,kl=Po&&Po.box&&Po.box.length;return ve.allowVerticalPlacement&&!kl&&nn.numVerticalGlyphVertices>0&&Fu?kv(Fu,_n.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Kv,Cv),Po&&(mn=Po.box,fa=Po.offscreen);var iy=Yv(Po&&Po.box);if(!mn&&Q.prevPlacement){var fg=Q.prevPlacement.variableOffsets[nn.crossTileID];fg&&(Q.variableOffsets[nn.crossTileID]=fg,Q.markUsedJustification(ve,fg.anchor,nn,iy))}}else{var vp=function(Fu,kl){var bd=Q.collisionIndex.placeCollisionBox(Fu,pr,nr,Ye,jt.predicate);return bd&&bd.box&&bd.box.length&&(Q.markUsedOrientation(ve,kl,nn),Q.placedOrientations[nn.crossTileID]=kl),bd},_d=function(){return vp(yd,i.WritingMode.horizontal)},pp=function(){var Fu=_n.verticalTextBox;return ve.allowVerticalPlacement&&nn.numVerticalGlyphVertices>0&&Fu?vp(Fu,i.WritingMode.vertical):{box:null,offscreen:null}};cg(_d,pp),Yv(Po&&Po.box&&Po.box.length)}}if(so=Po,mn=so&&so.box&&so.box.length>0,fa=so&&so.offscreen,nn.useRuntimeCollisionCircles){var Hf=ve.text.placedSymbolArray.get(nn.centerJustifiedTextSymbolIndex),hg=i.evaluateSizeForFeature(ve.textSizeData,Pt,Hf),ny=Re.get("text-padding"),Rh=nn.collisionCircleDiameter;rs=Q.collisionIndex.placeCollisionCircles(pr,Hf,ve.lineVertexArray,ve.glyphOffsetArray,hg,Ye,vt,Kt,O,mr,jt.predicate,Rh,ny),mn=pr||rs.circles.length>0&&!rs.collisionDetected,fa=fa&&rs.offscreen}if(_n.iconFeatureIndex&&(Ev=_n.iconFeatureIndex),_n.iconBox){var rm=function(Fu){var kl=kr&&qo?fc(Fu,qo.x,qo.y,Tr,mr,Q.transform.angle):Fu;return Q.collisionIndex.placeCollisionBox(kl,Er,nr,Ye,jt.predicate)};hs&&hs.box&&hs.box.length&&_n.verticalIconBox?(tl=rm(_n.verticalIconBox),Hn=tl.box.length>0):(tl=rm(_n.iconBox),Hn=tl.box.length>0),fa=fa&&tl.offscreen}var w1=ir||nn.numHorizontalGlyphVertices===0&&nn.numVerticalGlyphVertices===0,T1=dr||nn.numIconVertices===0;if(!w1&&!T1?Hn=mn=Hn&&mn:T1?w1||(Hn=Hn&&mn):mn=Hn&&mn,mn&&so&&so.box&&(hs&&hs.box&&Sv?Q.collisionIndex.insertCollisionBox(so.box,Re.get("text-ignore-placement"),ve.bucketInstanceId,Sv,jt.ID):Q.collisionIndex.insertCollisionBox(so.box,Re.get("text-ignore-placement"),ve.bucketInstanceId,zu,jt.ID)),Hn&&tl&&Q.collisionIndex.insertCollisionBox(tl.box,Re.get("icon-ignore-placement"),ve.bucketInstanceId,Ev,jt.ID),rs&&(mn&&Q.collisionIndex.insertCollisionCircles(rs.circles,Re.get("text-ignore-placement"),ve.bucketInstanceId,zu,jt.ID),O)){var ay=ve.bucketInstanceId,im=Q.collisionCircleArrays[ay];im===void 0&&(im=Q.collisionCircleArrays[ay]=new Ao);for(var nm=0;nm=0;--zi){var ln=rn[zi];_i(ve.symbolInstances.get(ln),ve.collisionArrays[ln])}else for(var $n=z.symbolInstanceStart;$n=0&&(ve>=0&&Kt!==ve?z.text.placedSymbolArray.get(Kt).crossTileID=0:z.text.placedSymbolArray.get(Kt).crossTileID=O.crossTileID)}},vs.prototype.markUsedOrientation=function(z,J,O){for(var Q=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,me=J===i.WritingMode.vertical?J:0,ve=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Re=0,Ye=ve;Re0||mr>0,_i=Er.numIconVertices>0,rn=Q.placedOrientations[Er.crossTileID],zi=rn===i.WritingMode.vertical,ln=rn===i.WritingMode.horizontal||rn===i.WritingMode.horizontalOnly;if(ti){var $n=Ec(jr.text),Dn=zi?jn:$n;Pt(z.text,Tr,Dn);var nn=ln?jn:$n;Pt(z.text,mr,nn);var _n=jr.text.isHidden();[Er.rightJustifiedTextSymbolIndex,Er.centerJustifiedTextSymbolIndex,Er.leftJustifiedTextSymbolIndex].forEach(function(Ev){Ev>=0&&(z.text.placedSymbolArray.get(Ev).hidden=_n||zi?1:0)}),Er.verticalPlacedTextSymbolIndex>=0&&(z.text.placedSymbolArray.get(Er.verticalPlacedTextSymbolIndex).hidden=_n||ln?1:0);var mn=Q.variableOffsets[Er.crossTileID];mn&&Q.markUsedJustification(z,mn.anchor,Er,rn);var Hn=Q.placedOrientations[Er.crossTileID];Hn&&(Q.markUsedJustification(z,"left",Er,Hn),Q.markUsedOrientation(z,Hn,Er))}if(_i){var fa=Ec(jr.icon),qo=!(Jt&&Er.verticalPlacedIconSymbolIndex&&zi);if(Er.placedIconSymbolIndex>=0){var Po=qo?fa:jn;Pt(z.icon,Er.numIconVertices,Po),z.icon.placedSymbolArray.get(Er.placedIconSymbolIndex).hidden=jr.icon.isHidden()}if(Er.verticalPlacedIconSymbolIndex>=0){var hs=qo?jn:fa;Pt(z.icon,Er.numVerticalIconVertices,hs),z.icon.placedSymbolArray.get(Er.verticalPlacedIconSymbolIndex).hidden=jr.icon.isHidden()}}if(z.hasIconCollisionBoxData()||z.hasTextCollisionBoxData()){var so=z.collisionArrays[pr];if(so){var rs=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var tl=!0;if(vt){var zu=Q.variableOffsets[kr];zu?(rs=Hu(zu.anchor,zu.width,zu.height,zu.textOffset,zu.textBoxScale),Kt&&rs._rotate(nr?Q.transform.angle:-Q.transform.angle)):tl=!1}so.textBox&&on(z.textCollisionBox.collisionVertexArray,jr.text.placed,!tl||zi,rs.x,rs.y),so.verticalTextBox&&on(z.textCollisionBox.collisionVertexArray,jr.text.placed,!tl||ln,rs.x,rs.y)}var Sv=!!(!ln&&so.verticalIconBox);so.iconBox&&on(z.iconCollisionBox.collisionVertexArray,jr.icon.placed,Sv,Jt?rs.x:0,Jt?rs.y:0),so.verticalIconBox&&on(z.iconCollisionBox.collisionVertexArray,jr.icon.placed,!Sv,Jt?rs.x:0,Jt?rs.y:0)}}},ir=0;irz},vs.prototype.setStale=function(){this.stale=!0};function on(Y,z,J,O,Q){Y.emplaceBack(z?1:0,J?1:0,O||0,Q||0),Y.emplaceBack(z?1:0,J?1:0,O||0,Q||0),Y.emplaceBack(z?1:0,J?1:0,O||0,Q||0),Y.emplaceBack(z?1:0,J?1:0,O||0,Q||0)}var ua=Math.pow(2,25),Qu=Math.pow(2,24),Rl=Math.pow(2,17),uo=Math.pow(2,16),Zl=Math.pow(2,9),Ks=Math.pow(2,8),Xl=Math.pow(2,1);function Ec(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var z=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*ua+z*Qu+J*Rl+z*uo+J*Zl+z*Ks+J*Xl+z}var jn=0,Mo=function(z){this._sortAcrossTiles=z.layout.get("symbol-z-order")!=="viewport-y"&&z.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Mo.prototype.continuePlacement=function(z,J,O,Q,me){for(var ve=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Re=z[this._currentPlacementIndex],Ye=J[Re],vt=this.placement.collisionIndex.transform.zoom;if(Ye.type==="symbol"&&(!Ye.minzoom||Ye.minzoom<=vt)&&(!Ye.maxzoom||Ye.maxzoom>vt)){this._inProgressLayer||(this._inProgressLayer=new Mo(Ye));var Kt=this._inProgressLayer.continuePlacement(O[Ye.source],this.placement,this._showCollisionBoxes,Ye,ve);if(Kt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},So.prototype.commit=function(z){return this.placement.commit(z),this.placement};var Tl=512/i.EXTENT/2,uf=function(z,J,O){this.tileID=z,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var Q=0;Qz.overscaledZ)for(var vt in Ye){var Kt=Ye[vt];Kt.tileID.isChildOf(z)&&Kt.findMatches(J.symbolInstances,z,ve)}else{var nr=z.scaledTo(Number(Re)),Jt=Ye[nr.key];Jt&&Jt.findMatches(J.symbolInstances,z,ve)}}for(var dt=0;dt0)throw new Error("Unimplemented: "+ve.map(function(Re){return Re.command}).join(", ")+".");return me.forEach(function(Re){Re.command!=="setTransition"&&Q[Re.command].apply(Q,Re.args)}),this.stylesheet=O,!0},z.prototype.addImage=function(O,Q){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,Q),this._afterImageUpdated(O)},z.prototype.updateImage=function(O,Q){this.imageManager.updateImage(O,Q)},z.prototype.getImage=function(O){return this.imageManager.getImage(O)},z.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},z.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},z.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},z.prototype.addSource=function(O,Q,me){var ve=this;if(me===void 0&&(me={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!Q.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(Q).join(", ")+".");var Re=["vector","raster","geojson","video","image"],Ye=Re.indexOf(Q.type)>=0;if(!(Ye&&this._validate(i.validateStyle.source,"sources."+O,Q,null,me))){this.map&&this.map._collectResourceTiming&&(Q.collectResourceTiming=!0);var vt=this.sourceCaches[O]=new Zr(O,Q,this.dispatcher);vt.style=this,vt.setEventedParent(this,function(){return{isSourceLoaded:ve.loaded(),source:vt.serialize(),sourceId:O}}),vt.onAdd(this.map),this._changed=!0}},z.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var Q in this._layers)if(this._layers[Q].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+Q+'" is using it.')));var me=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],me.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),me.setEventedParent(null),me.clearTiles(),me.onRemove&&me.onRemove(this.map),this._changed=!0},z.prototype.setGeoJSONSourceData=function(O,Q){this._checkLoaded();var me=this.sourceCaches[O].getSource();me.setData(Q),this._changed=!0},z.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},z.prototype.addLayer=function(O,Q,me){me===void 0&&(me={}),this._checkLoaded();var ve=O.id;if(this.getLayer(ve)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ve+'" already exists on this map')));return}var Re;if(O.type==="custom"){if(Al(this,i.validateCustomStyleLayer(O)))return;Re=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ve,O.source),O=i.clone$1(O),O=i.extend(O,{source:ve})),this._validate(i.validateStyle.layer,"layers."+ve,O,{arrayIndex:-1},me))return;Re=i.createStyleLayer(O),this._validateLayer(Re),Re.setEventedParent(this,{layer:{id:ve}}),this._serializedLayers[Re.id]=Re.serialize()}var Ye=Q?this._order.indexOf(Q):this._order.length;if(Q&&Ye===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+Q+'" does not exist on this map.')));return}if(this._order.splice(Ye,0,ve),this._layerOrderChanged=!0,this._layers[ve]=Re,this._removedLayers[ve]&&Re.source&&Re.type!=="custom"){var vt=this._removedLayers[ve];delete this._removedLayers[ve],vt.type!==Re.type?this._updatedSources[Re.source]="clear":(this._updatedSources[Re.source]="reload",this.sourceCaches[Re.source].pause())}this._updateLayer(Re),Re.onAdd&&Re.onAdd(this.map)},z.prototype.moveLayer=function(O,Q){this._checkLoaded(),this._changed=!0;var me=this._layers[O];if(!me){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==Q){var ve=this._order.indexOf(O);this._order.splice(ve,1);var Re=Q?this._order.indexOf(Q):this._order.length;if(Q&&Re===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+Q+'" does not exist on this map.')));return}this._order.splice(Re,0,O),this._layerOrderChanged=!0}},z.prototype.removeLayer=function(O){this._checkLoaded();var Q=this._layers[O];if(!Q){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}Q.setEventedParent(null);var me=this._order.indexOf(O);this._order.splice(me,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=Q,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],Q.onRemove&&Q.onRemove(this.map)},z.prototype.getLayer=function(O){return this._layers[O]},z.prototype.hasLayer=function(O){return O in this._layers},z.prototype.setLayerZoomRange=function(O,Q,me){this._checkLoaded();var ve=this.getLayer(O);if(!ve){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ve.minzoom===Q&&ve.maxzoom===me||(Q!=null&&(ve.minzoom=Q),me!=null&&(ve.maxzoom=me),this._updateLayer(ve))},z.prototype.setFilter=function(O,Q,me){me===void 0&&(me={}),this._checkLoaded();var ve=this.getLayer(O);if(!ve){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ve.filter,Q)){if(Q==null){ve.filter=void 0,this._updateLayer(ve);return}this._validate(i.validateStyle.filter,"layers."+ve.id+".filter",Q,null,me)||(ve.filter=i.clone$1(Q),this._updateLayer(ve))}},z.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},z.prototype.setLayoutProperty=function(O,Q,me,ve){ve===void 0&&(ve={}),this._checkLoaded();var Re=this.getLayer(O);if(!Re){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Re.getLayoutProperty(Q),me)||(Re.setLayoutProperty(Q,me,ve),this._updateLayer(Re))},z.prototype.getLayoutProperty=function(O,Q){var me=this.getLayer(O);if(!me){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return me.getLayoutProperty(Q)},z.prototype.setPaintProperty=function(O,Q,me,ve){ve===void 0&&(ve={}),this._checkLoaded();var Re=this.getLayer(O);if(!Re){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Re.getPaintProperty(Q),me)){var Ye=Re.setPaintProperty(Q,me,ve);Ye&&this._updateLayer(Re),this._changed=!0,this._updatedPaintProps[O]=!0}},z.prototype.getPaintProperty=function(O,Q){return this.getLayer(O).getPaintProperty(Q)},z.prototype.setFeatureState=function(O,Q){this._checkLoaded();var me=O.source,ve=O.sourceLayer,Re=this.sourceCaches[me];if(Re===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+me+"' does not exist in the map's style.")));return}var Ye=Re.getSource().type;if(Ye==="geojson"&&ve){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ye==="vector"&&!ve){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Re.setFeatureState(ve,O.id,Q)},z.prototype.removeFeatureState=function(O,Q){this._checkLoaded();var me=O.source,ve=this.sourceCaches[me];if(ve===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+me+"' does not exist in the map's style.")));return}var Re=ve.getSource().type,Ye=Re==="vector"?O.sourceLayer:void 0;if(Re==="vector"&&!Ye){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(Q&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ve.removeFeatureState(Ye,O.id,Q)},z.prototype.getFeatureState=function(O){this._checkLoaded();var Q=O.source,me=O.sourceLayer,ve=this.sourceCaches[Q];if(ve===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+Q+"' does not exist in the map's style.")));return}var Re=ve.getSource().type;if(Re==="vector"&&!me){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ve.getFeatureState(me,O.id)},z.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},z.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},z.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},z.prototype._flattenAndSortRenderedFeatures=function(O){for(var Q=this,me=function(ln){return Q._layers[ln].type==="fill-extrusion"},ve={},Re=[],Ye=this._order.length-1;Ye>=0;Ye--){var vt=this._order[Ye];if(me(vt)){ve[vt]=Ye;for(var Kt=0,nr=O;Kt=0;pr--){var Er=this._order[pr];if(me(Er))for(var Tr=Re.length-1;Tr>=0;Tr--){var mr=Re[Tr].feature;if(ve[mr.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,Sl=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Yh=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Eh=`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,nh="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",hf=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,kh="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Kh=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,rc=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,ah=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Wc=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,df=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Cu=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,Nf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Zc=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,cs=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ch="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Bd=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Jh=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,Cf=`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,pd=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,Lu=`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,$h=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,tu=Ps(Of,Gc),Pu=Ps(vd,Bf),Lc=Ps(ns,ff),fl=Ps(ih,Hl),Xc=Ps(Js,hc),ic=Ps(Cc,xs),yu=Ps($s,us),Qs=Ps(Ms,dc),Qh=Ps(Ml,ec),gd=Ps(Ls,ov),Gu=Ps(_o,Od),Pc=Ps(Yo,Xa),vc=Ps(Ef,tc),sv=Ps(uu,Sh),Lf=Ps(jc,kf),Uf=Ps(Sl,Yh),Iu=Ps(Eh,nh),oh=Ps(hf,kh),ru=Ps(Kh,rc),vf=Ps(ah,Wc),md=Ps(df,Cu),sh=Ps(Nf,Zc),zs=Ps(cs,Ch),_u=Ps(Bd,Jh),xu=Ps(Cf,pd),Lh=Ps(Lu,$h);function Ps(Y,z){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,O=z.match(/attribute ([\w]+) ([\w]+)/g),Q=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),me=z.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ve=me?me.concat(Q):Q,Re={};return Y=Y.replace(J,function(Ye,vt,Kt,nr,Jt){return Re[Jt]=!0,vt==="define"?` +#ifndef HAS_UNIFORM_u_`+Jt+` +varying `+Kt+" "+nr+" "+Jt+`; +#else +uniform `+Kt+" "+nr+" u_"+Jt+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+Jt+` + `+Kt+" "+nr+" "+Jt+" = u_"+Jt+`; +#endif +`}),z=z.replace(J,function(Ye,vt,Kt,nr,Jt){var dt=nr==="float"?"vec2":"vec4",Pt=Jt.match(/color/)?"color":dt;return Re[Jt]?vt==="define"?` +#ifndef HAS_UNIFORM_u_`+Jt+` +uniform lowp float u_`+Jt+`_t; +attribute `+Kt+" "+dt+" a_"+Jt+`; +varying `+Kt+" "+nr+" "+Jt+`; +#else +uniform `+Kt+" "+nr+" u_"+Jt+`; +#endif +`:Pt==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Jt+` + `+Jt+" = a_"+Jt+`; +#else + `+Kt+" "+nr+" "+Jt+" = u_"+Jt+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Jt+` + `+Jt+" = unpack_mix_"+Pt+"(a_"+Jt+", u_"+Jt+`_t); +#else + `+Kt+" "+nr+" "+Jt+" = u_"+Jt+`; +#endif +`:vt==="define"?` +#ifndef HAS_UNIFORM_u_`+Jt+` +uniform lowp float u_`+Jt+`_t; +attribute `+Kt+" "+dt+" a_"+Jt+`; +#else +uniform `+Kt+" "+nr+" u_"+Jt+`; +#endif +`:Pt==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Jt+` + `+Kt+" "+nr+" "+Jt+" = a_"+Jt+`; +#else + `+Kt+" "+nr+" "+Jt+" = u_"+Jt+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Jt+` + `+Kt+" "+nr+" "+Jt+" = unpack_mix_"+Pt+"(a_"+Jt+", u_"+Jt+`_t); +#else + `+Kt+" "+nr+" "+Jt+" = u_"+Jt+`; +#endif +`}),{fragmentSource:Y,vertexSource:z,staticAttributes:O,staticUniforms:ve}}var Pf=Object.freeze({__proto__:null,prelude:tu,background:Pu,backgroundPattern:Lc,circle:fl,clippingMask:Xc,heatmap:ic,heatmapTexture:yu,collisionBox:Qs,collisionCircle:Qh,debug:gd,fill:Gu,fillOutline:Pc,fillOutlinePattern:vc,fillPattern:sv,fillExtrusion:Lf,fillExtrusionPattern:Uf,hillshadePrepare:Iu,hillshade:oh,line:ru,lineGradient:vf,linePattern:md,lineSDF:sh,raster:zs,symbolIcon:_u,symbolSDF:xu,symbolTextAndIcon:Lh}),Ic=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Ic.prototype.bind=function(z,J,O,Q,me,ve,Re,Ye){this.context=z;for(var vt=this.boundPaintVertexBuffers.length!==Q.length,Kt=0;!vt&&Kt>16,Re>>16],u_pixel_coord_lower:[ve&65535,Re&65535]}}function pf(Y,z,J,O){var Q=J.imageManager.getPattern(Y.from.toString()),me=J.imageManager.getPattern(Y.to.toString()),ve=J.imageManager.getPixelSize(),Re=ve.width,Ye=ve.height,vt=Math.pow(2,O.tileID.overscaledZ),Kt=O.tileSize*Math.pow(2,J.transform.tileZoom)/vt,nr=Kt*(O.tileID.canonical.x+O.tileID.wrap*vt),Jt=Kt*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Q.tl,u_pattern_br_a:Q.br,u_pattern_tl_b:me.tl,u_pattern_br_b:me.br,u_texsize:[Re,Ye],u_mix:z.t,u_pattern_size_a:Q.displaySize,u_pattern_size_b:me.displaySize,u_scale_a:z.fromScale,u_scale_b:z.toScale,u_tile_units_to_pixels:1/ks(O,1,J.transform.tileZoom),u_pixel_coord_upper:[nr>>16,Jt>>16],u_pixel_coord_lower:[nr&65535,Jt&65535]}}var Ph=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_lightpos:new i.Uniform3f(Y,z.u_lightpos),u_lightintensity:new i.Uniform1f(Y,z.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,z.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,z.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,z.u_opacity)}},Dl=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_lightpos:new i.Uniform3f(Y,z.u_lightpos),u_lightintensity:new i.Uniform1f(Y,z.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,z.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,z.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,z.u_height_factor),u_image:new i.Uniform1i(Y,z.u_image),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,z.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,z.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,z.u_scale),u_fade:new i.Uniform1f(Y,z.u_fade),u_opacity:new i.Uniform1f(Y,z.u_opacity)}},Ih=function(Y,z,J,O){var Q=z.style.light,me=Q.properties.get("position"),ve=[me.x,me.y,me.z],Re=i.create$1();Q.properties.get("anchor")==="viewport"&&i.fromRotation(Re,-z.transform.angle),i.transformMat3(ve,ve,Re);var Ye=Q.properties.get("color");return{u_matrix:Y,u_lightpos:ve,u_lightintensity:Q.properties.get("intensity"),u_lightcolor:[Ye.r,Ye.g,Ye.b],u_vertical_gradient:+J,u_opacity:O}},Wu=function(Y,z,J,O,Q,me,ve){return i.extend(Ih(Y,z,J,O),pc(me,z,ve),{u_height_factor:-Math.pow(2,Q.overscaledZ)/ve.tileSize/8})},Rc=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix)}},gc=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_image:new i.Uniform1i(Y,z.u_image),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,z.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,z.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,z.u_scale),u_fade:new i.Uniform1f(Y,z.u_fade)}},hl=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_world:new i.Uniform2f(Y,z.u_world)}},iu=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_world:new i.Uniform2f(Y,z.u_world),u_image:new i.Uniform1i(Y,z.u_image),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,z.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,z.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,z.u_scale),u_fade:new i.Uniform1f(Y,z.u_fade)}},mc=function(Y){return{u_matrix:Y}},Yc=function(Y,z,J,O){return i.extend(mc(Y),pc(J,z,O))},nc=function(Y,z){return{u_matrix:Y,u_world:z}},gf=function(Y,z,J,O,Q){return i.extend(Yc(Y,z,J,O),{u_world:Q})},pt=function(Y,z){return{u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,z.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,z.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,z.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix)}},Nt=function(Y,z,J,O){var Q=Y.transform,me,ve;if(O.paint.get("circle-pitch-alignment")==="map"){var Re=ks(J,1,Q.zoom);me=!0,ve=[Re,Re]}else me=!1,ve=Q.pixelsToGLUnits;return{u_camera_to_center_distance:Q.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(z.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+me,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ve}},br=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,z.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,z.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,z.u_overscale_factor)}},vr=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,z.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,z.u_viewport_size)}},Vr=function(Y,z,J){var O=ks(J,1,z.zoom),Q=Math.pow(2,z.zoom-J.tileID.overscaledZ),me=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:z.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[z.pixelsToGLUnits[0]/(O*Q),z.pixelsToGLUnits[1]/(O*Q)],u_overscale_factor:me}},di=function(Y,z,J){return{u_matrix:Y,u_inv_matrix:z,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},wi=function(Y,z){return{u_color:new i.UniformColor(Y,z.u_color),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_overlay:new i.Uniform1i(Y,z.u_overlay),u_overlay_scale:new i.Uniform1f(Y,z.u_overlay_scale)}},qi=function(Y,z,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:z,u_overlay:0,u_overlay_scale:J}},Ji=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix)}},hn=function(Y){return{u_matrix:Y}},Mi=function(Y,z){return{u_extrude_scale:new i.Uniform1f(Y,z.u_extrude_scale),u_intensity:new i.Uniform1f(Y,z.u_intensity),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix)}},Oi=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_world:new i.Uniform2f(Y,z.u_world),u_image:new i.Uniform1i(Y,z.u_image),u_color_ramp:new i.Uniform1i(Y,z.u_color_ramp),u_opacity:new i.Uniform1f(Y,z.u_opacity)}},Di=function(Y,z,J,O){return{u_matrix:Y,u_extrude_scale:ks(z,1,J),u_intensity:O}},yi=function(Y,z,J,O){var Q=i.create();i.ortho(Q,0,Y.width,Y.height,0,0,1);var me=Y.context.gl;return{u_matrix:Q,u_world:[me.drawingBufferWidth,me.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:z.paint.get("heatmap-opacity")}},Ln=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_image:new i.Uniform1i(Y,z.u_image),u_latrange:new i.Uniform2f(Y,z.u_latrange),u_light:new i.Uniform2f(Y,z.u_light),u_shadow:new i.UniformColor(Y,z.u_shadow),u_highlight:new i.UniformColor(Y,z.u_highlight),u_accent:new i.UniformColor(Y,z.u_accent)}},Aa=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_image:new i.Uniform1i(Y,z.u_image),u_dimension:new i.Uniform2f(Y,z.u_dimension),u_zoom:new i.Uniform1f(Y,z.u_zoom),u_unpack:new i.Uniform4f(Y,z.u_unpack)}},wa=function(Y,z,J){var O=J.paint.get("hillshade-shadow-color"),Q=J.paint.get("hillshade-highlight-color"),me=J.paint.get("hillshade-accent-color"),ve=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ve-=Y.transform.angle);var Re=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(z.tileID.toUnwrapped(),Re),u_image:0,u_latrange:za(Y,z.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ve],u_shadow:O,u_highlight:Q,u_accent:me}},Ma=function(Y,z){var J=z.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:z.getUnpackVector()}};function za(Y,z){var J=Math.pow(2,z.canonical.z),O=z.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var kn=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_ratio:new i.Uniform1f(Y,z.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,z.u_units_to_pixels)}},sn=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_ratio:new i.Uniform1f(Y,z.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,z.u_units_to_pixels),u_image:new i.Uniform1i(Y,z.u_image),u_image_height:new i.Uniform1f(Y,z.u_image_height)}},Ba=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_ratio:new i.Uniform1f(Y,z.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,z.u_image),u_units_to_pixels:new i.Uniform2f(Y,z.u_units_to_pixels),u_scale:new i.Uniform3f(Y,z.u_scale),u_fade:new i.Uniform1f(Y,z.u_fade)}},ho=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_ratio:new i.Uniform1f(Y,z.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,z.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,z.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,z.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,z.u_sdfgamma),u_image:new i.Uniform1i(Y,z.u_image),u_tex_y_a:new i.Uniform1f(Y,z.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,z.u_tex_y_b),u_mix:new i.Uniform1f(Y,z.u_mix)}},jo=function(Y,z,J){var O=Y.transform;return{u_matrix:yl(Y,z,J),u_ratio:1/ks(z,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},bs=function(Y,z,J,O){return i.extend(jo(Y,z,J),{u_image:0,u_image_height:O})},Ko=function(Y,z,J,O){var Q=Y.transform,me=Fo(z,Q);return{u_matrix:yl(Y,z,J),u_texsize:z.imageAtlasTexture.size,u_ratio:1/ks(z,1,Q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[me,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/Q.pixelsToGLUnits[0],1/Q.pixelsToGLUnits[1]]}},ps=function(Y,z,J,O,Q){var me=Y.transform,ve=Y.lineAtlas,Re=Fo(z,me),Ye=J.layout.get("line-cap")==="round",vt=ve.getDash(O.from,Ye),Kt=ve.getDash(O.to,Ye),nr=vt.width*Q.fromScale,Jt=Kt.width*Q.toScale;return i.extend(jo(Y,z,J),{u_patternscale_a:[Re/nr,-vt.height/2],u_patternscale_b:[Re/Jt,-Kt.height/2],u_sdfgamma:ve.width/(Math.min(nr,Jt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:vt.y,u_tex_y_b:Kt.y,u_mix:Q.t})};function Fo(Y,z){return 1/ks(Y,1,z.tileZoom)}function yl(Y,z,J){return Y.translatePosMatrix(z.tileID.posMatrix,z,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Gs=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_tl_parent:new i.Uniform2f(Y,z.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,z.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,z.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,z.u_fade_t),u_opacity:new i.Uniform1f(Y,z.u_opacity),u_image0:new i.Uniform1i(Y,z.u_image0),u_image1:new i.Uniform1i(Y,z.u_image1),u_brightness_low:new i.Uniform1f(Y,z.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,z.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,z.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,z.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,z.u_spin_weights)}},Is=function(Y,z,J,O,Q){return{u_matrix:Y,u_tl_parent:z,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*Q.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:Q.paint.get("raster-brightness-min"),u_brightness_high:Q.paint.get("raster-brightness-max"),u_saturation_factor:fs(Q.paint.get("raster-saturation")),u_contrast_factor:Za(Q.paint.get("raster-contrast")),u_spin_weights:ra(Q.paint.get("raster-hue-rotate"))}};function ra(Y){Y*=Math.PI/180;var z=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*z-J+1)/3,(Math.sqrt(3)*z-J+1)/3]}function Za(Y){return Y>0?1/(1-Y):1+Y}function fs(Y){return Y>0?1-1/(1.001-Y):-Y}var Zo=function(Y,z){return{u_is_size_zoom_constant:new i.Uniform1i(Y,z.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,z.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,z.u_size_t),u_size:new i.Uniform1f(Y,z.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,z.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,z.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,z.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,z.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,z.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,z.u_coord_matrix),u_is_text:new i.Uniform1i(Y,z.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,z.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_texture:new i.Uniform1i(Y,z.u_texture)}},nu=function(Y,z){return{u_is_size_zoom_constant:new i.Uniform1i(Y,z.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,z.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,z.u_size_t),u_size:new i.Uniform1f(Y,z.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,z.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,z.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,z.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,z.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,z.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,z.u_coord_matrix),u_is_text:new i.Uniform1i(Y,z.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,z.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_texture:new i.Uniform1i(Y,z.u_texture),u_gamma_scale:new i.Uniform1f(Y,z.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,z.u_is_halo)}},Ru=function(Y,z){return{u_is_size_zoom_constant:new i.Uniform1i(Y,z.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,z.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,z.u_size_t),u_size:new i.Uniform1f(Y,z.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,z.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,z.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,z.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,z.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,z.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,z.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,z.u_coord_matrix),u_is_text:new i.Uniform1i(Y,z.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,z.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_texsize_icon:new i.Uniform2f(Y,z.u_texsize_icon),u_texture:new i.Uniform1i(Y,z.u_texture),u_texture_icon:new i.Uniform1i(Y,z.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,z.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,z.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,z.u_is_halo)}},ac=function(Y,z,J,O,Q,me,ve,Re,Ye,vt){var Kt=Q.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:z?z.uSizeT:0,u_size:z?z.uSize:0,u_camera_to_center_distance:Kt.cameraToCenterDistance,u_pitch:Kt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Kt.width/Kt.height,u_fade_change:Q.options.fadeDuration?Q.symbolFadeChange:1,u_matrix:me,u_label_plane_matrix:ve,u_coord_matrix:Re,u_is_text:+Ye,u_pitch_with_map:+O,u_texsize:vt,u_texture:0}},mf=function(Y,z,J,O,Q,me,ve,Re,Ye,vt,Kt){var nr=Q.transform;return i.extend(ac(Y,z,J,O,Q,me,ve,Re,Ye,vt),{u_gamma_scale:O?Math.cos(nr._pitch)*nr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Kt})},bu=function(Y,z,J,O,Q,me,ve,Re,Ye,vt){return i.extend(mf(Y,z,J,O,Q,me,ve,Re,!0,Ye,!0),{u_texsize_icon:vt,u_texture_icon:1})},Kc=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_opacity:new i.Uniform1f(Y,z.u_opacity),u_color:new i.UniformColor(Y,z.u_color)}},Du=function(Y,z){return{u_matrix:new i.UniformMatrix4f(Y,z.u_matrix),u_opacity:new i.Uniform1f(Y,z.u_opacity),u_image:new i.Uniform1i(Y,z.u_image),u_pattern_tl_a:new i.Uniform2f(Y,z.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,z.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,z.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,z.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,z.u_texsize),u_mix:new i.Uniform1f(Y,z.u_mix),u_pattern_size_a:new i.Uniform2f(Y,z.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,z.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,z.u_scale_a),u_scale_b:new i.Uniform1f(Y,z.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,z.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,z.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,z.u_tile_units_to_pixels)}},Dc=function(Y,z,J){return{u_matrix:Y,u_opacity:z,u_color:J}},Ia=function(Y,z,J,O,Q,me){return i.extend(pf(O,me,J,Q),{u_matrix:Y,u_opacity:z})},Ja={fillExtrusion:Ph,fillExtrusionPattern:Dl,fill:Rc,fillPattern:gc,fillOutline:hl,fillOutlinePattern:iu,circle:pt,collisionBox:br,collisionCircle:vr,debug:wi,clippingMask:Ji,heatmap:Mi,heatmapTexture:Oi,hillshade:Ln,hillshadePrepare:Aa,line:kn,lineGradient:sn,linePattern:Ba,lineSDF:ho,raster:Gs,symbolIcon:Zo,symbolSDF:nu,symbolTextAndIcon:Ru,background:Kc,backgroundPattern:Du},Jc;function yc(Y,z,J,O,Q,me,ve){for(var Re=Y.context,Ye=Re.gl,vt=Y.useProgram("collisionBox"),Kt=[],nr=0,Jt=0,dt=0;dt0){var Tr=i.create(),mr=dr;i.mul(Tr,ir.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Tr,Tr,ir.placementViewportMatrix),Kt.push({circleArray:Er,circleOffset:Jt,transform:mr,invTransform:Tr}),nr+=Er.length/4,Jt=nr}pr&&vt.draw(Re,Ye.LINES,Yi.disabled,Qi.disabled,Y.colorModeForRenderPass(),gr.disabled,Vr(dr,Y.transform,jt),J.id,pr.layoutVertexBuffer,pr.indexBuffer,pr.segments,null,Y.transform.zoom,null,null,pr.collisionVertexBuffer)}}if(!(!ve||!Kt.length)){var kr=Y.useProgram("collisionCircle"),cr=new i.StructArrayLayout2f1f2i16;cr.resize(nr*4),cr._trim();for(var jr=0,ti=0,_i=Kt;ti<_i.length;ti+=1)for(var rn=_i[ti],zi=0;zi=0&&(Pt[ir.associatedIconIndex]={shiftedAnchor:ln,angle:$n})}}if(Kt){dt.clear();for(var nn=Y.icon.placedSymbolArray,_n=0;_n0){var ve=i.browser.now(),Re=(ve-Y.timeAdded)/me,Ye=z?(ve-z.timeAdded)/me:-1,vt=J.getSource(),Kt=Q.coveringZoomLevel({tileSize:vt.tileSize,roundZoom:vt.roundZoom}),nr=!z||Math.abs(z.tileID.overscaledZ-Kt)>Math.abs(Y.tileID.overscaledZ-Kt),Jt=nr&&Y.refreshedUponExpiration?1:i.clamp(nr?Re:1-Ye,0,1);return Y.refreshedUponExpiration&&Re>=1&&(Y.refreshedUponExpiration=!1),z?{opacity:1,mix:1-Jt}:{opacity:Jt,mix:0}}else return{opacity:1,mix:0}}function Ht(Y,z,J){var O=J.paint.get("background-color"),Q=J.paint.get("background-opacity");if(Q!==0){var me=Y.context,ve=me.gl,Re=Y.transform,Ye=Re.tileSize,vt=J.paint.get("background-pattern");if(!Y.isPatternMissing(vt)){var Kt=!vt&&O.a===1&&Q===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Kt){var nr=Qi.disabled,Jt=Y.depthModeForSublayer(0,Kt==="opaque"?Yi.ReadWrite:Yi.ReadOnly),dt=Y.colorModeForRenderPass(),Pt=Y.useProgram(vt?"backgroundPattern":"background"),jt=Re.coveringTiles({tileSize:Ye});vt&&(me.activeTexture.set(ve.TEXTURE0),Y.imageManager.bind(Y.context));for(var ir=J.getCrossfadeParameters(),dr=0,pr=jt;dr "+J.overscaledZ);var dr=ir+" "+dt+"kb";Ua(Y,dr),ve.draw(O,Q.TRIANGLES,Re,Ye,ct.alphaBlended,gr.disabled,qi(me,i.Color.transparent,jt),Kt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function Ua(Y,z){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,Q=Y.debugOverlayCanvas.getContext("2d");Q.clearRect(0,0,J.width,J.height),Q.shadowColor="white",Q.shadowBlur=2,Q.lineWidth=1.5,Q.strokeStyle="white",Q.textBaseline="top",Q.font="bold 36px Open Sans, sans-serif",Q.fillText(z,5,5),Q.strokeText(z,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function xo(Y,z,J){var O=Y.context,Q=J.implementation;if(Y.renderPass==="offscreen"){var me=Q.prerender;me&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),me.call(Q,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(Qi.disabled);var ve=Q.renderingMode==="3d"?new Yi(Y.context.gl.LEQUAL,Yi.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Yi.ReadOnly);O.setDepthMode(ve),Q.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Ha={symbol:w,circle:tt,heatmap:mt,line:Ar,fill:de,"fill-extrusion":Pe,hillshade:We,raster:Et,background:Ht,debug:da,custom:xo},oo=function(z,J){this.context=new qr(z),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Zr.maxUnderzooming+Zr.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new rh,this.gpuTimers={}};oo.prototype.resize=function(z,J){if(this.width=z*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,Q=this.style._order;O256&&this.clearStencil(),O.setColorMode(ct.disabled),O.setDepthMode(Yi.disabled);var me=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ve=0,Re=J;ve256&&this.clearStencil();var z=this.nextStencilID++,J=this.context.gl;return new Qi({func:J.NOTEQUAL,mask:255},z,255,J.KEEP,J.KEEP,J.REPLACE)},oo.prototype.stencilModeForClipping=function(z){var J=this.context.gl;return new Qi({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[z.key],0,J.KEEP,J.KEEP,J.REPLACE)},oo.prototype.stencilConfigForOverlap=function(z){var J,O=this.context.gl,Q=z.sort(function(vt,Kt){return Kt.overscaledZ-vt.overscaledZ}),me=Q[Q.length-1].overscaledZ,ve=Q[0].overscaledZ-me+1;if(ve>1){this.currentStencilSource=void 0,this.nextStencilID+ve>256&&this.clearStencil();for(var Re={},Ye=0;Ye=0;this.currentLayer--){var Tr=this.style._layers[Q[this.currentLayer]],mr=me[Tr.source],kr=Ye[Tr.source];this._renderTileClippingMasks(Tr,kr),this.renderLayer(this,mr,Tr,kr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},oo.prototype.isPatternMissing=function(z){if(!z)return!1;if(!z.from||!z.to)return!0;var J=this.imageManager.getPattern(z.from.toString()),O=this.imageManager.getPattern(z.to.toString());return!J||!O},oo.prototype.useProgram=function(z,J){this.cache=this.cache||{};var O=""+z+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new Vf(this.context,z,Pf[z],J,Ja[z],this._showOverdrawInspector)),this.cache[O]},oo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},oo.prototype.setBaseState=function(){var z=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(z.FUNC_ADD)},oo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var z=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,z.RGBA)}},oo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Lo=function(z,J){this.points=z,this.planes=J};Lo.fromInvProjectionMatrix=function(z,J,O){var Q=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],me=Math.pow(2,O),ve=Q.map(function(vt){return i.transformMat4([],vt,z)}).map(function(vt){return i.scale$1([],vt,1/vt[3]/J*me)}),Re=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ye=Re.map(function(vt){var Kt=i.sub([],ve[vt[0]],ve[vt[1]]),nr=i.sub([],ve[vt[2]],ve[vt[1]]),Jt=i.normalize([],i.cross([],Kt,nr)),dt=-i.dot(Jt,ve[vt[1]]);return Jt.concat(dt)});return new Lo(ve,Ye)};var Rs=function(z,J){this.min=z,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Rs.prototype.quadrant=function(z){for(var J=[z%2===0,z<2],O=i.clone$2(this.min),Q=i.clone$2(this.max),me=0;me=0;if(ve===0)return 0;ve!==J.length&&(O=!1)}if(O)return 2;for(var Ye=0;Ye<3;Ye++){for(var vt=Number.MAX_VALUE,Kt=-Number.MAX_VALUE,nr=0;nrthis.max[Ye]-this.min[Ye])return 0}return 1};var ws=function(z,J,O,Q){if(z===void 0&&(z=0),J===void 0&&(J=0),O===void 0&&(O=0),Q===void 0&&(Q=0),isNaN(z)||z<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(Q)||Q<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=z,this.bottom=J,this.left=O,this.right=Q};ws.prototype.interpolate=function(z,J,O){return J.top!=null&&z.top!=null&&(this.top=i.number(z.top,J.top,O)),J.bottom!=null&&z.bottom!=null&&(this.bottom=i.number(z.bottom,J.bottom,O)),J.left!=null&&z.left!=null&&(this.left=i.number(z.left,J.left,O)),J.right!=null&&z.right!=null&&(this.right=i.number(z.right,J.right,O)),this},ws.prototype.getCenter=function(z,J){var O=i.clamp((this.left+z-this.right)/2,0,z),Q=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,Q)},ws.prototype.equals=function(z){return this.top===z.top&&this.bottom===z.bottom&&this.left===z.left&&this.right===z.right},ws.prototype.clone=function(){return new ws(this.top,this.bottom,this.left,this.right)},ws.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var vo=function(z,J,O,Q,me){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=me===void 0?!0:me,this._minZoom=z||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=Q==null?60:Q,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ws,this._posMatrixCache={},this._alignedPosMatrixCache={}},co={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};vo.prototype.clone=function(){var z=new vo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return z.tileSize=this.tileSize,z.latRange=this.latRange,z.width=this.width,z.height=this.height,z._center=this._center,z.zoom=this.zoom,z.angle=this.angle,z._fov=this._fov,z._pitch=this._pitch,z._unmodified=this._unmodified,z._edgeInsets=this._edgeInsets.clone(),z._calcMatrices(),z},co.minZoom.get=function(){return this._minZoom},co.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},co.maxZoom.get=function(){return this._maxZoom},co.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},co.minPitch.get=function(){return this._minPitch},co.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},co.maxPitch.get=function(){return this._maxPitch},co.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},co.renderWorldCopies.get=function(){return this._renderWorldCopies},co.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},co.worldSize.get=function(){return this.tileSize*this.scale},co.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},co.size.get=function(){return new i.Point(this.width,this.height)},co.bearing.get=function(){return-this.angle/Math.PI*180},co.bearing.set=function(Y){var z=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==z&&(this._unmodified=!1,this.angle=z,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},co.pitch.get=function(){return this._pitch/Math.PI*180},co.pitch.set=function(Y){var z=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==z&&(this._unmodified=!1,this._pitch=z,this._calcMatrices())},co.fov.get=function(){return this._fov/Math.PI*180},co.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},co.zoom.get=function(){return this._zoom},co.zoom.set=function(Y){var z=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==z&&(this._unmodified=!1,this._zoom=z,this.scale=this.zoomScale(z),this.tileZoom=Math.floor(z),this.zoomFraction=z-this.tileZoom,this._constrain(),this._calcMatrices())},co.center.get=function(){return this._center},co.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},co.padding.get=function(){return this._edgeInsets.toJSON()},co.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},co.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},vo.prototype.isPaddingEqual=function(z){return this._edgeInsets.equals(z)},vo.prototype.interpolatePadding=function(z,J,O){this._unmodified=!1,this._edgeInsets.interpolate(z,J,O),this._constrain(),this._calcMatrices()},vo.prototype.coveringZoomLevel=function(z){var J=(z.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/z.tileSize));return Math.max(0,J)},vo.prototype.getVisibleUnwrappedCoordinates=function(z){var J=[new i.UnwrappedTileID(0,z)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),Q=this.pointCoordinate(new i.Point(this.width,0)),me=this.pointCoordinate(new i.Point(this.width,this.height)),ve=this.pointCoordinate(new i.Point(0,this.height)),Re=Math.floor(Math.min(O.x,Q.x,me.x,ve.x)),Ye=Math.floor(Math.max(O.x,Q.x,me.x,ve.x)),vt=1,Kt=Re-vt;Kt<=Ye+vt;Kt++)Kt!==0&&J.push(new i.UnwrappedTileID(Kt,z));return J},vo.prototype.coveringTiles=function(z){var J=this.coveringZoomLevel(z),O=J;if(z.minzoom!==void 0&&Jz.maxzoom&&(J=z.maxzoom);var Q=i.MercatorCoordinate.fromLngLat(this.center),me=Math.pow(2,J),ve=[me*Q.x,me*Q.y,0],Re=Lo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ye=z.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ye=J);var vt=3,Kt=function(zi){return{aabb:new Rs([zi*me,0,0],[(zi+1)*me,me,0]),zoom:0,x:0,y:0,wrap:zi,fullyVisible:!1}},nr=[],Jt=[],dt=J,Pt=z.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var jt=1;jt<=3;jt++)nr.push(Kt(-jt)),nr.push(Kt(jt));for(nr.push(Kt(0));nr.length>0;){var ir=nr.pop(),dr=ir.x,pr=ir.y,Er=ir.fullyVisible;if(!Er){var Tr=ir.aabb.intersects(Re);if(Tr===0)continue;Er=Tr===2}var mr=ir.aabb.distanceX(ve),kr=ir.aabb.distanceY(ve),cr=Math.max(Math.abs(mr),Math.abs(kr)),jr=vt+(1<jr&&ir.zoom>=Ye){Jt.push({tileID:new i.OverscaledTileID(ir.zoom===dt?Pt:ir.zoom,ir.wrap,ir.zoom,dr,pr),distanceSq:i.sqrLen([ve[0]-.5-dr,ve[1]-.5-pr])});continue}for(var ti=0;ti<4;ti++){var _i=(dr<<1)+ti%2,rn=(pr<<1)+(ti>>1);nr.push({aabb:ir.aabb.quadrant(ti),zoom:ir.zoom+1,x:_i,y:rn,wrap:ir.wrap,fullyVisible:Er})}}return Jt.sort(function(zi,ln){return zi.distanceSq-ln.distanceSq}).map(function(zi){return zi.tileID})},vo.prototype.resize=function(z,J){this.width=z,this.height=J,this.pixelsToGLUnits=[2/z,-2/J],this._constrain(),this._calcMatrices()},co.unmodified.get=function(){return this._unmodified},vo.prototype.zoomScale=function(z){return Math.pow(2,z)},vo.prototype.scaleZoom=function(z){return Math.log(z)/Math.LN2},vo.prototype.project=function(z){var J=i.clamp(z.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(z.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},vo.prototype.unproject=function(z){return new i.MercatorCoordinate(z.x/this.worldSize,z.y/this.worldSize).toLngLat()},co.point.get=function(){return this.project(this.center)},vo.prototype.setLocationAtPoint=function(z,J){var O=this.pointCoordinate(J),Q=this.pointCoordinate(this.centerPoint),me=this.locationCoordinate(z),ve=new i.MercatorCoordinate(me.x-(O.x-Q.x),me.y-(O.y-Q.y));this.center=this.coordinateLocation(ve),this._renderWorldCopies&&(this.center=this.center.wrap())},vo.prototype.locationPoint=function(z){return this.coordinatePoint(this.locationCoordinate(z))},vo.prototype.pointLocation=function(z){return this.coordinateLocation(this.pointCoordinate(z))},vo.prototype.locationCoordinate=function(z){return i.MercatorCoordinate.fromLngLat(z)},vo.prototype.coordinateLocation=function(z){return z.toLngLat()},vo.prototype.pointCoordinate=function(z){var J=0,O=[z.x,z.y,0,1],Q=[z.x,z.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(Q,Q,this.pixelMatrixInverse);var me=O[3],ve=Q[3],Re=O[0]/me,Ye=Q[0]/ve,vt=O[1]/me,Kt=Q[1]/ve,nr=O[2]/me,Jt=Q[2]/ve,dt=nr===Jt?0:(J-nr)/(Jt-nr);return new i.MercatorCoordinate(i.number(Re,Ye,dt)/this.worldSize,i.number(vt,Kt,dt)/this.worldSize)},vo.prototype.coordinatePoint=function(z){var J=[z.x*this.worldSize,z.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},vo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},vo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},vo.prototype.setMaxBounds=function(z){z?(this.lngRange=[z.getWest(),z.getEast()],this.latRange=[z.getSouth(),z.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},vo.prototype.calculatePosMatrix=function(z,J){J===void 0&&(J=!1);var O=z.key,Q=J?this._alignedPosMatrixCache:this._posMatrixCache;if(Q[O])return Q[O];var me=z.canonical,ve=this.worldSize/this.zoomScale(me.z),Re=me.x+Math.pow(2,me.z)*z.wrap,Ye=i.identity(new Float64Array(16));return i.translate(Ye,Ye,[Re*ve,me.y*ve,0]),i.scale(Ye,Ye,[ve/i.EXTENT,ve/i.EXTENT,1]),i.multiply(Ye,J?this.alignedProjMatrix:this.projMatrix,Ye),Q[O]=new Float32Array(Ye),Q[O]},vo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},vo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var z=-90,J=90,O=-180,Q=180,me,ve,Re,Ye,vt=this.size,Kt=this._unmodified;if(this.latRange){var nr=this.latRange;z=i.mercatorYfromLat(nr[1])*this.worldSize,J=i.mercatorYfromLat(nr[0])*this.worldSize,me=J-zJ&&(Ye=J-ir)}if(this.lngRange){var dr=dt.x,pr=vt.x/2;dr-prQ&&(Re=Q-pr)}(Re!==void 0||Ye!==void 0)&&(this.center=this.unproject(new i.Point(Re!==void 0?Re:dt.x,Ye!==void 0?Ye:dt.y))),this._unmodified=Kt,this._constraining=!1}},vo.prototype._calcMatrices=function(){if(this.height){var z=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(z)*this.height;var O=Math.PI/2+this._pitch,Q=this._fov*(.5+J.y/this.height),me=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-Q,.01,Math.PI-.01)),ve=this.point,Re=ve.x,Ye=ve.y,vt=Math.cos(Math.PI/2-this._pitch)*me+this.cameraToCenterDistance,Kt=vt*1.01,nr=this.height/50,Jt=new Float64Array(16);i.perspective(Jt,this._fov,this.width/this.height,nr,Kt),Jt[8]=-J.x*2/this.width,Jt[9]=J.y*2/this.height,i.scale(Jt,Jt,[1,-1,1]),i.translate(Jt,Jt,[0,0,-this.cameraToCenterDistance]),i.rotateX(Jt,Jt,this._pitch),i.rotateZ(Jt,Jt,this.angle),i.translate(Jt,Jt,[-Re,-Ye,0]),this.mercatorMatrix=i.scale([],Jt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(Jt,Jt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Jt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,Pt=this.height%2/2,jt=Math.cos(this.angle),ir=Math.sin(this.angle),dr=Re-Math.round(Re)+jt*dt+ir*Pt,pr=Ye-Math.round(Ye)+jt*Pt+ir*dt,Er=new Float64Array(Jt);if(i.translate(Er,Er,[dr>.5?dr-1:dr,pr>.5?pr-1:pr,0]),this.alignedProjMatrix=Er,Jt=i.create(),i.scale(Jt,Jt,[this.width/2,-this.height/2,1]),i.translate(Jt,Jt,[1,-1,0]),this.labelPlaneMatrix=Jt,Jt=i.create(),i.scale(Jt,Jt,[1,-1,1]),i.translate(Jt,Jt,[-1,-1,0]),i.scale(Jt,Jt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Jt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Jt=i.invert(new Float64Array(16),this.pixelMatrix),!Jt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Jt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},vo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var z=this.pointCoordinate(new i.Point(0,0)),J=[z.x*this.worldSize,z.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},vo.prototype.getCameraPoint=function(){var z=this._pitch,J=Math.tan(z)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},vo.prototype.getCameraQueryGeometry=function(z){var J=this.getCameraPoint();if(z.length===1)return[z[0],J];for(var O=J.x,Q=J.y,me=J.x,ve=J.y,Re=0,Ye=z;Re=3&&!z.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(z[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+z[2],+z[1]],zoom:+z[0],bearing:J,pitch:+(z[4]||0)}),!0}return!1},Gl.prototype._updateHashUnthrottled=function(){var z=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,z)}catch(J){}};var Zu={linearity:.3,easing:i.bezier(0,0,.3,1)},cu=i.extend({deceleration:2500,maxSpeed:1400},Zu),el=i.extend({deceleration:20,maxSpeed:1400},Zu),au=i.extend({deceleration:1e3,maxSpeed:360},Zu),zc=i.extend({deceleration:1e3,maxSpeed:90},Zu),zl=function(z){this._map=z,this.clear()};zl.prototype.clear=function(){this._inertiaBuffer=[]},zl.prototype.record=function(z){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:z})},zl.prototype._drainInertiaBuffer=function(){for(var z=this._inertiaBuffer,J=i.browser.now(),O=160;z.length>0&&J-z[0].time>O;)z.shift()},zl.prototype._onMoveEnd=function(z){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,Q=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new oe(z.type,this._map,z))},Be.prototype.dblclick=function(z){return this._firePreventable(new oe(z.type,this._map,z))},Be.prototype.mouseover=function(z){this._map.fire(new oe(z.type,this._map,z))},Be.prototype.mouseout=function(z){this._map.fire(new oe(z.type,this._map,z))},Be.prototype.touchstart=function(z){return this._firePreventable(new Ae(z.type,this._map,z))},Be.prototype.touchmove=function(z){this._map.fire(new Ae(z.type,this._map,z))},Be.prototype.touchend=function(z){this._map.fire(new Ae(z.type,this._map,z))},Be.prototype.touchcancel=function(z){this._map.fire(new Ae(z.type,this._map,z))},Be.prototype._firePreventable=function(z){if(this._map.fire(z),z.defaultPrevented)return{}},Be.prototype.isEnabled=function(){return!0},Be.prototype.isActive=function(){return!1},Be.prototype.enable=function(){},Be.prototype.disable=function(){};var Ve=function(z){this._map=z};Ve.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ve.prototype.mousemove=function(z){this._map.fire(new oe(z.type,this._map,z))},Ve.prototype.mousedown=function(){this._delayContextMenu=!0},Ve.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new oe("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ve.prototype.contextmenu=function(z){this._delayContextMenu?this._contextMenuEvent=z:this._map.fire(new oe(z.type,this._map,z)),this._map.listens("contextmenu")&&z.preventDefault()},Ve.prototype.isEnabled=function(){return!0},Ve.prototype.isActive=function(){return!1},Ve.prototype.enable=function(){},Ve.prototype.disable=function(){};var bt=function(z,J){this._map=z,this._el=z.getCanvasContainer(),this._container=z.getContainer(),this._clickTolerance=J.clickTolerance||1};bt.prototype.isEnabled=function(){return!!this._enabled},bt.prototype.isActive=function(){return!!this._active},bt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},bt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},bt.prototype.mousedown=function(z,J){this.isEnabled()&&z.shiftKey&&z.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},bt.prototype.mousemoveWindow=function(z,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=z.timeStamp),O.length===this.numTouches&&(this.centroid=zt(J),this.touches=et(O,J)))},Rr.prototype.touchmove=function(z,J,O){if(!(this.aborted||!this.centroid)){var Q=et(O,J);for(var me in this.touches){var ve=this.touches[me],Re=Q[me];(!Re||Re.dist(ve)>zr)&&(this.aborted=!0)}}},Rr.prototype.touchend=function(z,J,O){if((!this.centroid||z.timeStamp-this.startTime>lr)&&(this.aborted=!0),O.length===0){var Q=!this.aborted&&this.centroid;if(this.reset(),Q)return Q}};var li=function(z){this.singleTap=new Rr(z),this.numTaps=z.numTaps,this.reset()};li.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},li.prototype.touchstart=function(z,J,O){this.singleTap.touchstart(z,J,O)},li.prototype.touchmove=function(z,J,O){this.singleTap.touchmove(z,J,O)},li.prototype.touchend=function(z,J,O){var Q=this.singleTap.touchend(z,J,O);if(Q){var me=z.timeStamp-this.lastTime0&&(this._active=!0);var Q=et(O,J),me=new i.Point(0,0),ve=new i.Point(0,0),Re=0;for(var Ye in Q){var vt=Q[Ye],Kt=this._touches[Ye];Kt&&(me._add(vt),ve._add(vt.sub(Kt)),Re++,Q[Ye]=vt)}if(this._touches=Q,!(ReMath.abs(Y.x)}var pn=100,Ra=function(Y){function z(){Y.apply(this,arguments)}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},z.prototype._start=function(O){this._lastPoints=O,Bs(O[0].sub(O[1]))&&(this._valid=!1)},z.prototype._move=function(O,Q,me){var ve=O[0].sub(this._lastPoints[0]),Re=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ve,Re,me.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ye=(ve.y+Re.y)/2,vt=-.5;return{pitchDelta:Ye*vt}}},z.prototype.gestureBeginsVertically=function(O,Q,me){if(this._valid!==void 0)return this._valid;var ve=2,Re=O.mag()>=ve,Ye=Q.mag()>=ve;if(!(!Re&&!Ye)){if(!Re||!Ye)return this._firstMove===void 0&&(this._firstMove=me),me-this._firstMove0==Q.y>0;return Bs(O)&&Bs(Q)&&vt}},z}(qn),Eo={panStep:100,bearingStep:15,pitchStep:10},Ro=function(){var z=Eo;this._panStep=z.panStep,this._bearingStep=z.bearingStep,this._pitchStep=z.pitchStep,this._rotationDisabled=!1};Ro.prototype.reset=function(){this._active=!1},Ro.prototype.keydown=function(z){var J=this;if(!(z.altKey||z.ctrlKey||z.metaKey)){var O=0,Q=0,me=0,ve=0,Re=0;switch(z.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:z.shiftKey?Q=-1:(z.preventDefault(),ve=-1);break;case 39:z.shiftKey?Q=1:(z.preventDefault(),ve=1);break;case 38:z.shiftKey?me=1:(z.preventDefault(),Re=-1);break;case 40:z.shiftKey?me=-1:(z.preventDefault(),Re=1);break;default:return}return this._rotationDisabled&&(Q=0,me=0),{cameraAnimation:function(Ye){var vt=Ye.getZoom();Ye.easeTo({duration:300,easeId:"keyboardHandler",easing:js,zoom:O?Math.round(vt)+O*(z.shiftKey?2:1):vt,bearing:Ye.getBearing()+Q*J._bearingStep,pitch:Ye.getPitch()+me*J._pitchStep,offset:[-ve*J._panStep,-Re*J._panStep],center:Ye.getCenter()},{originalEvent:z})}}}},Ro.prototype.enable=function(){this._enabled=!0},Ro.prototype.disable=function(){this._enabled=!1,this.reset()},Ro.prototype.isEnabled=function(){return this._enabled},Ro.prototype.isActive=function(){return this._active},Ro.prototype.disableRotation=function(){this._rotationDisabled=!0},Ro.prototype.enableRotation=function(){this._rotationDisabled=!1};function js(Y){return Y*(2-Y)}var xl=4.000244140625,fu=1/100,dl=1/450,xc=2,Mt=function(z,J){this._map=z,this._el=z.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=fu,this._wheelZoomRate=dl,i.bindAll(["_onTimeout"],this)};Mt.prototype.setZoomRate=function(z){this._defaultZoomRate=z},Mt.prototype.setWheelZoomRate=function(z){this._wheelZoomRate=z},Mt.prototype.isEnabled=function(){return!!this._enabled},Mt.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Mt.prototype.isZooming=function(){return!!this._zooming},Mt.prototype.enable=function(z){this.isEnabled()||(this._enabled=!0,this._aroundCenter=z&&z.around==="center")},Mt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Mt.prototype.wheel=function(z){if(this.isEnabled()){var J=z.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?z.deltaY*40:z.deltaY,O=i.browser.now(),Q=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%xl===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":Q>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,z)):this._type||(this._type=Math.abs(Q*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),z.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=z,this._delta-=J,this._active||this._start(z)),z.preventDefault()}},Mt.prototype._onTimeout=function(z){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(z)},Mt.prototype._start=function(z){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,z);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Mt.prototype.renderFrame=function(){var z=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>xl?this._wheelZoomRate:this._defaultZoomRate,Q=xc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&Q!==0&&(Q=1/Q);var me=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(me*Q))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ve=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Re=this._startZoom,Ye=this._easing,vt=!1,Kt;if(this._type==="wheel"&&Re&&Ye){var nr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),Jt=Ye(nr);Kt=i.number(Re,ve,Jt),nr<1?this._frameId||(this._frameId=!0):vt=!0}else Kt=ve,vt=!0;return this._active=!0,vt&&(this._active=!1,this._finishTimeout=setTimeout(function(){z._zooming=!1,z._handler._triggerRenderFrame(),delete z._targetZoom,delete z._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!vt,zoomDelta:Kt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Mt.prototype._smoothOutEasing=function(z){var J=i.ease;if(this._prevEase){var O=this._prevEase,Q=(i.browser.now()-O.start)/O.duration,me=O.easing(Q+.01)-O.easing(Q),ve=.27/Math.sqrt(me*me+1e-4)*.01,Re=Math.sqrt(.27*.27-ve*ve);J=i.bezier(ve,Re,.25,1)}return this._prevEase={start:i.browser.now(),duration:z,easing:J},J},Mt.prototype.reset=function(){this._active=!1};var Sr=function(z,J){this._clickZoom=z,this._tapZoom=J};Sr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Sr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Sr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Sr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Wr=function(){this.reset()};Wr.prototype.reset=function(){this._active=!1},Wr.prototype.dblclick=function(z,J){return z.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(z.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:z})}}},Wr.prototype.enable=function(){this._enabled=!0},Wr.prototype.disable=function(){this._enabled=!1,this.reset()},Wr.prototype.isEnabled=function(){return this._enabled},Wr.prototype.isActive=function(){return this._active};var Ai=function(){this._tap=new li({numTouches:1,numTaps:1}),this.reset()};Ai.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ai.prototype.touchstart=function(z,J,O){this._swipePoint||(this._tapTime&&z.timeStamp-this._tapTime>or&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(z,J,O))},Ai.prototype.touchmove=function(z,J,O){if(!this._tapTime)this._tap.touchmove(z,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var Q=J[0],me=Q.y-this._swipePoint.y;return this._swipePoint=Q,z.preventDefault(),this._active=!0,{zoomDelta:me/128}}},Ai.prototype.touchend=function(z,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var Q=this._tap.touchend(z,J,O);Q&&(this._tapTime=z.timeStamp)}},Ai.prototype.touchcancel=function(){this.reset()},Ai.prototype.enable=function(){this._enabled=!0},Ai.prototype.disable=function(){this._enabled=!1,this.reset()},Ai.prototype.isEnabled=function(){return this._enabled},Ai.prototype.isActive=function(){return this._active};var Vi=function(z,J,O){this._el=z,this._mousePan=J,this._touchPan=O};Vi.prototype.enable=function(z){this._inertiaOptions=z||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Vi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Vi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Vi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Bi=function(z,J,O){this._pitchWithRotate=z.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};Bi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Bi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Bi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Bi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Ni=function(z,J,O,Q){this._el=z,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=Q,this._rotationDisabled=!1,this._enabled=!0};Ni.prototype.enable=function(z){this._touchZoom.enable(z),this._rotationDisabled||this._touchRotate.enable(z),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Ni.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Ni.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Ni.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Ni.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Ni.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var cn=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},zn=function(Y){function z(){Y.apply(this,arguments)}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z}(i.Event);function Fn(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var yn=function(z,J){this._map=z,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new zl(z),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var Q=0,me=this._listeners;QRe?Math.min(2,mr):Math.max(.5,mr),zi=Math.pow(rn,1-ti),ln=ve.unproject(Er.add(Tr.mult(ti*zi)).mult(_i));ve.setLocationAtPoint(ve.renderWorldCopies?ln.wrap():ln,ir)}me._fireMoveEvents(Q)},function(ti){me._afterEase(Q,ti)},O),this},z.prototype._prepareEase=function(O,Q,me){me===void 0&&(me={}),this._moving=!0,!Q&&!me.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!me.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!me.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!me.pitching&&this.fire(new i.Event("pitchstart",O))},z.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},z.prototype._afterEase=function(O,Q){if(!(this._easeId&&Q&&this._easeId===Q)){delete this._easeId;var me=this._zooming,ve=this._rotating,Re=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,me&&this.fire(new i.Event("zoomend",O)),ve&&this.fire(new i.Event("rotateend",O)),Re&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},z.prototype.flyTo=function(O,Q){var me=this;if(!O.essential&&i.browser.prefersReducedMotion){var ve=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ve,Q)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var Re=this.transform,Ye=this.getZoom(),vt=this.getBearing(),Kt=this.getPitch(),nr=this.getPadding(),Jt="zoom"in O?i.clamp(+O.zoom,Re.minZoom,Re.maxZoom):Ye,dt="bearing"in O?this._normalizeBearing(O.bearing,vt):vt,Pt="pitch"in O?+O.pitch:Kt,jt="padding"in O?O.padding:Re.padding,ir=Re.zoomScale(Jt-Ye),dr=i.Point.convert(O.offset),pr=Re.centerPoint.add(dr),Er=Re.pointLocation(pr),Tr=i.LngLat.convert(O.center||Er);this._normalizeCenter(Tr);var mr=Re.project(Er),kr=Re.project(Tr).sub(mr),cr=O.curve,jr=Math.max(Re.width,Re.height),ti=jr/ir,_i=kr.mag();if("minZoom"in O){var rn=i.clamp(Math.min(O.minZoom,Ye,Jt),Re.minZoom,Re.maxZoom),zi=jr/Re.zoomScale(rn-Ye);cr=Math.sqrt(zi/_i*2)}var ln=cr*cr;function $n(so){var rs=(ti*ti-jr*jr+(so?-1:1)*ln*ln*_i*_i)/(2*(so?ti:jr)*ln*_i);return Math.log(Math.sqrt(rs*rs+1)-rs)}function Dn(so){return(Math.exp(so)-Math.exp(-so))/2}function nn(so){return(Math.exp(so)+Math.exp(-so))/2}function _n(so){return Dn(so)/nn(so)}var mn=$n(0),Hn=function(so){return nn(mn)/nn(mn+cr*so)},fa=function(so){return jr*((nn(mn)*_n(mn+cr*so)-Dn(mn))/ln)/_i},qo=($n(1)-mn)/cr;if(Math.abs(_i)<1e-6||!isFinite(qo)){if(Math.abs(jr-ti)<1e-6)return this.easeTo(O,Q);var Po=tiO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=vt!==dt,this._pitching=Pt!==Kt,this._padding=!Re.isPaddingEqual(jt),this._prepareEase(Q,!1),this._ease(function(so){var rs=so*qo,tl=1/Hn(rs);Re.zoom=so===1?Jt:Ye+Re.scaleZoom(tl),me._rotating&&(Re.bearing=i.number(vt,dt,so)),me._pitching&&(Re.pitch=i.number(Kt,Pt,so)),me._padding&&(Re.interpolatePadding(nr,jt,so),pr=Re.centerPoint.add(dr));var zu=so===1?Tr:Re.unproject(mr.add(kr.mult(fa(rs))).mult(tl));Re.setLocationAtPoint(Re.renderWorldCopies?zu.wrap():zu,pr),me._fireMoveEvents(Q)},function(){return me._afterEase(Q)},O),this},z.prototype.isEasing=function(){return!!this._easeFrameId},z.prototype.stop=function(){return this._stop()},z.prototype._stop=function(O,Q){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var me=this._onEaseEnd;delete this._onEaseEnd,me.call(this,Q)}if(!O){var ve=this.handlers;ve&&ve.stop(!1)}return this},z.prototype._ease=function(O,Q,me){me.animate===!1||me.duration===0?(O(1),Q()):(this._easeStart=i.browser.now(),this._easeOptions=me,this._onEaseFrame=O,this._onEaseEnd=Q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},z.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},z.prototype._normalizeBearing=function(O,Q){O=i.wrap(O,-180,180);var me=Math.abs(O-Q);return Math.abs(O-360-Q)180?-360:me<-180?360:0}},z}(i.Evented),In=function(z){z===void 0&&(z={}),this.options=z,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};In.prototype.getDefaultPosition=function(){return"bottom-right"},In.prototype.onAdd=function(z){var J=this.options&&this.options.compact;return this._map=z,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},In.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},In.prototype._setElementTitle=function(z,J){var O=this._map._getUIString("AttributionControl."+J);z.title=O,z.setAttribute("aria-label",O)},In.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},In.prototype._updateEditLink=function(){var z=this._editLink;z||(z=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(z){var O=J.reduce(function(Q,me,ve){return me.value&&(Q+=me.key+"="+me.value+(ve=0)return!1;return!0});var Re=z.join(" | ");Re!==this._attribHTML&&(this._attribHTML=Re,z.length?(this._innerContainer.innerHTML=Re,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},In.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Rn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Rn.prototype.onAdd=function(z){this._map=z,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Rn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Rn.prototype.getDefaultPosition=function(){return"bottom-left"},Rn.prototype._updateLogo=function(z){(!z||z.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Rn.prototype._logoRequired=function(){if(this._map.style){var z=this._map.style.sourceCaches;for(var J in z){var O=z[J].getSource();if(O.mapbox_logo)return!0}return!1}},Rn.prototype._updateCompact=function(){var z=this._container.children;if(z.length){var J=z[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var fn=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};fn.prototype.add=function(z){var J=++this._id,O=this._queue;return O.push({callback:z,id:J,cancelled:!1}),J},fn.prototype.remove=function(z){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,Q=0,me=O;QO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchGa)throw new Error("maxPitch must be less than or equal to "+Ga);var me=new vo(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,me,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new fn,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Si,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof Cn)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return Q._update(!1)}),this.on("moveend",function(){return Q._update(!1)}),this.on("zoom",function(){return Q._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yn(this,O);var ve=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Gl(ve).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new In({customAttribution:O.customAttribution})),this.addControl(new Rn,O.logoPosition),this.on("style.load",function(){Q.transform.unmodified&&Q.jumpTo(Q.style.stylesheet)}),this.on("data",function(Re){Q._update(Re.dataType==="style"),Q.fire(new i.Event(Re.dataType+"data",Re))}),this.on("dataloading",function(Re){Q.fire(new i.Event(Re.dataType+"dataloading",Re))})}Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return z.prototype._getMapId=function(){return this._mapId},z.prototype.addControl=function(Q,me){if(me===void 0&&(Q.getDefaultPosition?me=Q.getDefaultPosition():me="top-right"),!Q||!Q.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ve=Q.onAdd(this);this._controls.push(Q);var Re=this._controlPositions[me];return me.indexOf("bottom")!==-1?Re.insertBefore(ve,Re.firstChild):Re.appendChild(ve),this},z.prototype.removeControl=function(Q){if(!Q||!Q.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var me=this._controls.indexOf(Q);return me>-1&&this._controls.splice(me,1),Q.onRemove(this),this},z.prototype.hasControl=function(Q){return this._controls.indexOf(Q)>-1},z.prototype.resize=function(Q){var me=this._containerDimensions(),ve=me[0],Re=me[1];this._resizeCanvas(ve,Re),this.transform.resize(ve,Re),this.painter.resize(ve,Re);var Ye=!this._moving;return Ye&&(this.stop(),this.fire(new i.Event("movestart",Q)).fire(new i.Event("move",Q))),this.fire(new i.Event("resize",Q)),Ye&&this.fire(new i.Event("moveend",Q)),this},z.prototype.getBounds=function(){return this.transform.getBounds()},z.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},z.prototype.setMaxBounds=function(Q){return this.transform.setMaxBounds(i.LngLatBounds.convert(Q)),this._update()},z.prototype.setMinZoom=function(Q){if(Q=Q==null?gn:Q,Q>=gn&&Q<=this.transform.maxZoom)return this.transform.minZoom=Q,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=Q,this._update(),this.getZoom()>Q&&this.setZoom(Q),this;throw new Error("maxZoom must be greater than the current minZoom")},z.prototype.getMaxZoom=function(){return this.transform.maxZoom},z.prototype.setMinPitch=function(Q){if(Q=Q==null?Yn:Q,Q=Yn&&Q<=this.transform.maxPitch)return this.transform.minPitch=Q,this._update(),this.getPitch()Ga)throw new Error("maxPitch must be less than or equal to "+Ga);if(Q>=this.transform.minPitch)return this.transform.maxPitch=Q,this._update(),this.getPitch()>Q&&this.setPitch(Q),this;throw new Error("maxPitch must be greater than the current minPitch")},z.prototype.getMaxPitch=function(){return this.transform.maxPitch},z.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},z.prototype.setRenderWorldCopies=function(Q){return this.transform.renderWorldCopies=Q,this._update()},z.prototype.project=function(Q){return this.transform.locationPoint(i.LngLat.convert(Q))},z.prototype.unproject=function(Q){return this.transform.pointLocation(i.Point.convert(Q))},z.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},z.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},z.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},z.prototype._createDelegatedListener=function(Q,me,ve){var Re=this,Ye;if(Q==="mouseenter"||Q==="mouseover"){var vt=!1,Kt=function(ir){var dr=Re.getLayer(me)?Re.queryRenderedFeatures(ir.point,{layers:[me]}):[];dr.length?vt||(vt=!0,ve.call(Re,new oe(Q,Re,ir.originalEvent,{features:dr}))):vt=!1},nr=function(){vt=!1};return{layer:me,listener:ve,delegates:{mousemove:Kt,mouseout:nr}}}else if(Q==="mouseleave"||Q==="mouseout"){var Jt=!1,dt=function(ir){var dr=Re.getLayer(me)?Re.queryRenderedFeatures(ir.point,{layers:[me]}):[];dr.length?Jt=!0:Jt&&(Jt=!1,ve.call(Re,new oe(Q,Re,ir.originalEvent)))},Pt=function(ir){Jt&&(Jt=!1,ve.call(Re,new oe(Q,Re,ir.originalEvent)))};return{layer:me,listener:ve,delegates:{mousemove:dt,mouseout:Pt}}}else{var jt=function(ir){var dr=Re.getLayer(me)?Re.queryRenderedFeatures(ir.point,{layers:[me]}):[];dr.length&&(ir.features=dr,ve.call(Re,ir),delete ir.features)};return{layer:me,listener:ve,delegates:(Ye={},Ye[Q]=jt,Ye)}}},z.prototype.on=function(Q,me,ve){if(ve===void 0)return Y.prototype.on.call(this,Q,me);var Re=this._createDelegatedListener(Q,me,ve);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[Q]=this._delegatedListeners[Q]||[],this._delegatedListeners[Q].push(Re);for(var Ye in Re.delegates)this.on(Ye,Re.delegates[Ye]);return this},z.prototype.once=function(Q,me,ve){if(ve===void 0)return Y.prototype.once.call(this,Q,me);var Re=this._createDelegatedListener(Q,me,ve);for(var Ye in Re.delegates)this.once(Ye,Re.delegates[Ye]);return this},z.prototype.off=function(Q,me,ve){var Re=this;if(ve===void 0)return Y.prototype.off.call(this,Q,me);var Ye=function(vt){for(var Kt=vt[Q],nr=0;nr180;){var ve=J.locationPoint(Y);if(ve.x>=0&&ve.y>=0&&ve.x<=J.width&&ve.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Qa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function bo(Y,z,J){var O=Y.classList;for(var Q in Qa)O.remove("mapboxgl-"+J+"-anchor-"+Q);O.add("mapboxgl-"+J+"-anchor-"+z)}var Kn=function(Y){function z(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var Q=o.createNS("http://www.w3.org/2000/svg","svg"),me=41,ve=27;Q.setAttributeNS(null,"display","block"),Q.setAttributeNS(null,"height",me+"px"),Q.setAttributeNS(null,"width",ve+"px"),Q.setAttributeNS(null,"viewBox","0 0 "+ve+" "+me);var Re=o.createNS("http://www.w3.org/2000/svg","g");Re.setAttributeNS(null,"stroke","none"),Re.setAttributeNS(null,"stroke-width","1"),Re.setAttributeNS(null,"fill","none"),Re.setAttributeNS(null,"fill-rule","evenodd");var Ye=o.createNS("http://www.w3.org/2000/svg","g");Ye.setAttributeNS(null,"fill-rule","nonzero");var vt=o.createNS("http://www.w3.org/2000/svg","g");vt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),vt.setAttributeNS(null,"fill","#000000");for(var Kt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],nr=0,Jt=Kt;nr=Q}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},z.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},z.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},z.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},z.prototype.isDraggable=function(){return this._draggable},z.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},z.prototype.getRotation=function(){return this._rotation},z.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},z.prototype.getRotationAlignment=function(){return this._rotationAlignment},z.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},z.prototype.getPitchAlignment=function(){return this._pitchAlignment},z}(i.Evented),Fa={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},po;function ko(Y){po!==void 0?Y(po):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(z){po=z.state!=="denied",Y(po)}):(po=!!i.window.navigator.geolocation,Y(po))}var Xo=0,Yl=!1,$c=function(Y){function z(J){Y.call(this),this.options=i.extend({},Fa,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ko(this._setupUI),this._container},z.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Xo=0,Yl=!1},z.prototype._isOutOfMapMaxBounds=function(O){var Q=this._map.getMaxBounds(),me=O.coords;return Q&&(me.longitudeQ.getEast()||me.latitudeQ.getNorth())},z.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},z.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},z.prototype._updateCamera=function(O){var Q=new i.LngLat(O.coords.longitude,O.coords.latitude),me=O.coords.accuracy,ve=this._map.getBearing(),Re=i.extend({bearing:ve},this.options.fitBoundsOptions);this._map.fitBounds(Q.toBounds(me),Re,{geolocateSource:!0})},z.prototype._updateMarker=function(O){if(O){var Q=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(Q).addTo(this._map),this._userLocationDotMarker.setLngLat(Q).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},z.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,Q=this._map.unproject([0,O]),me=this._map.unproject([1,O]),ve=Q.distanceTo(me),Re=Math.ceil(2*this._accuracy/ve);this._circleElement.style.width=Re+"px",this._circleElement.style.height=Re+"px"},z.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},z.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var Q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=Q,this._geolocateButton.setAttribute("aria-label",Q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&Yl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},z.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},z.prototype._setupUI=function(O){var Q=this;if(this._container.addEventListener("contextmenu",function(Re){return Re.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var me=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=me,this._geolocateButton.setAttribute("aria-label",me)}else{var ve=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ve,this._geolocateButton.setAttribute("aria-label",ve)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Kn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Kn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Re){var Ye=Re.originalEvent&&Re.originalEvent.type==="resize";!Re.geolocateSource&&Q._watchState==="ACTIVE_LOCK"&&!Ye&&(Q._watchState="BACKGROUND",Q._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),Q._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),Q.fire(new i.Event("trackuserlocationend")))})},z.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Xo--,Yl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Xo++;var O;Xo>1?(O={maximumAge:6e5,timeout:0},Yl=!0):(O=this.options.positionOptions,Yl=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},z.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},z}(i.Evented),ms={maxWidth:100,unit:"metric"},Qc=function(z){this.options=i.extend({},ms,z),i.bindAll(["_onMove","setUnit"],this)};Qc.prototype.getDefaultPosition=function(){return"bottom-left"},Qc.prototype._onMove=function(){El(this._map,this._container,this.options)},Qc.prototype.onAdd=function(z){return this._map=z,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",z.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Qc.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Qc.prototype.setUnit=function(z){this.options.unit=z,El(this._map,this._container,this.options)};function El(Y,z,J){var O=J&&J.maxWidth||100,Q=Y._container.clientHeight/2,me=Y.unproject([0,Q]),ve=Y.unproject([O,Q]),Re=me.distanceTo(ve);if(J&&J.unit==="imperial"){var Ye=3.2808*Re;if(Ye>5280){var vt=Ye/5280;bc(z,O,vt,Y._getUIString("ScaleControl.Miles"))}else bc(z,O,Ye,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Kt=Re/1852;bc(z,O,Kt,Y._getUIString("ScaleControl.NauticalMiles"))}else Re>=1e3?bc(z,O,Re/1e3,Y._getUIString("ScaleControl.Kilometers")):bc(z,O,Re,Y._getUIString("ScaleControl.Meters"))}function bc(Y,z,J,O){var Q=yf(J),me=Q/J;Y.style.width=z*me+"px",Y.innerHTML=Q+" "+O}function wc(Y){var z=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*z)/z}function yf(Y){var z=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/z;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:wc(J),z*J}var jl=function(z){this._fullscreen=!1,z&&z.container&&(z.container instanceof i.window.HTMLElement?this._container=z.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};jl.prototype.onAdd=function(z){return this._map=z,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},jl.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},jl.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},jl.prototype._setupUI=function(){var z=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",z).setAttribute("aria-hidden",!0),z.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},jl.prototype._updateTitle=function(){var z=this._getTitle();this._fullscreenButton.setAttribute("aria-label",z),this._fullscreenButton.title=z},jl.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},jl.prototype._isFullscreen=function(){return this._fullscreen},jl.prototype._changeIcon=function(){var z=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;z===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},jl.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Fc={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ef=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),as=function(Y){function z(J){Y.call(this),this.options=i.extend(Object.create(Fc),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(z.__proto__=Y),z.prototype=Object.create(Y&&Y.prototype),z.prototype.constructor=z,z.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},z.prototype.isOpen=function(){return!!this._map},z.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},z.prototype.getLngLat=function(){return this._lngLat},z.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},z.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},z.prototype.getElement=function(){return this._container},z.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},z.prototype.setHTML=function(O){var Q=i.window.document.createDocumentFragment(),me=i.window.document.createElement("body"),ve;for(me.innerHTML=O;ve=me.firstChild,!!ve;)Q.appendChild(ve);return this.setDOMContent(Q)},z.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},z.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},z.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},z.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},z.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},z.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},z.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},z.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},z.prototype._onMouseUp=function(O){this._update(O.point)},z.prototype._onMouseMove=function(O){this._update(O.point)},z.prototype._onDrag=function(O){this._update(O.point)},z.prototype._update=function(O){var Q=this,me=this._lngLat||this._trackPointer;if(!(!this._map||!me||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(dt){return Q._container.classList.add(dt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=pa(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ve=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Re=this.options.anchor,Ye=_f(this.options.offset);if(!Re){var vt=this._container.offsetWidth,Kt=this._container.offsetHeight,nr;ve.y+Ye.bottom.ythis._map.transform.height-Kt?nr=["bottom"]:nr=[],ve.xthis._map.transform.width-vt/2&&nr.push("right"),nr.length===0?Re="bottom":Re=nr.join("-")}var Jt=ve.add(Ye[Re]).round();o.setTransform(this._container,Qa[Re]+" translate("+Jt.x+"px,"+Jt.y+"px)"),bo(this._container,Re,"popup")}},z.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(ef);O&&O.focus()}},z.prototype._onClose=function(){this.remove()},z}(i.Evented);function _f(Y){if(Y)if(typeof Y=="number"){var z=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(z,z),"top-right":new i.Point(-z,z),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(z,-z),"bottom-right":new i.Point(-z,-z),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return _f(new i.Point(0,0))}var ts={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:vn,NavigationControl:Wn,GeolocateControl:$c,AttributionControl:In,ScaleControl:Qc,FullscreenControl:jl,Popup:as,Marker:Kn,Style:mu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Gn,clearPrewarmedResources:sa,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ri.workerCount},set workerCount(Y){Ri.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(z){i.clearTileCache(z)},workerUrl:""};return ts}),r})});var QVe=_e((q_r,$Ve)=>{"use strict";var tw=Mr(),njt=Pl().sanitizeHTML,ajt=tJ(),YVe=c1();function KVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=YVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ig=KVe.prototype;ig.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=JF(t)};ig.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ig.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ig.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ig.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ig.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ig.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!JF(e)){var r=ojt(e);t.addSource(this.idSource,r)}};ig.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function JVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=ajt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ojt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=njt(e.sourceattribution)),n}$Ve.exports=function(t,r,n){var i=new KVe(t,r);return i.update(n),i}});var lHe=_e((O_r,sHe)=>{"use strict";var lJ=sJ(),uJ=Mr(),iHe=nx(),eHe=_a(),sjt=Ka(),ljt=gv(),$F=Nc(),nHe=Mg(),ujt=nHe.drawMode,cjt=nHe.selectMode,fjt=wf().prepSelect,hjt=wf().clearOutline,djt=wf().clearSelectionsCache,vjt=wf().selectOnClick,_x=c1(),pjt=QVe();function aHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Ah=aHe.prototype;Ah.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Ah.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=oHe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new lJ.Map({container:i.div,style:o.style,center:cJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new lJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(iHe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Ah.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=oHe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(iHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Ah.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&vjt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&$F.click(n,l.originalEvent)}}};Ah.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=uJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),cjt(a)||ujt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){fjt(l,u,c,t.dragOptions,a)},ljt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Ah.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Ah.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var fJ=Mr(),gjt=C_(),mjt=Zd(),uHe=Rk();cHe.exports=function(t,r,n){gjt(t,r,n,{type:"mapbox",attributes:uHe,handleDefaults:yjt,partition:"y",accessToken:r._mapboxAccessToken})};function yjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,mjt(e,t,{name:"layers",handleItemDefaults:_jt}),t._input=e}function _jt(e,t){function r(l,u){return fJ.coerce(e,t,uHe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",fJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),fJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var QF=_e(Np=>{"use strict";var hHe=sJ(),tm=Mr(),hJ=tm.strTranslate,xjt=tm.strScale,bjt=kd().getSubplotCalcData,wjt=Zp(),Tjt=ya(),dHe=ro(),Ajt=Pl(),Mjt=lHe(),xx="mapbox",$m=Np.constants=c1();Np.name=xx;Np.attr="subplot";Np.idRoot=xx;Np.idRegex=Np.attrRegex=tm.counterRegex(xx);var Sjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Np.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Np.layoutAttributes=Rk();Np.supplyLayoutDefaults=fHe();var vHe=!0;Np.plot=function(t){vHe&&(vHe=!1,tm.warn(Sjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(hHe.version!==$m.requiredVersion)throw new Error($m.wrongVersionErrorMsg);var a=Ejt(t,i);hHe.accessToken=a;for(var o=0;op/2){var E=d.split("|").join("
");x.text(E).attr("data-unformatted",E).call(Ajt.convertToTspans,e),b=dHe.bBox(x.node())}x.attr("transform",hJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var k=1;b.width+6>p&&(k=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",hJ(A[0],A[1])+xjt(k))}};function Ejt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn($m.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function pHe(e){return typeof e=="string"&&($m.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Np.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var U_r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");gHe.exports={attributes:jF(),supplyDefaults:kVe(),colorbar:Kd(),formatLabels:eJ(),calc:vz(),plot:VVe(),hoverPoints:KF().hoverPoints,eventData:WVe(),selectPoints:XVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:QF(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var _He=_e((H_r,yHe)=>{"use strict";yHe.exports=mHe()});var dJ=_e((G_r,xHe)=>{"use strict";var f1=J5(),kjt=Jl(),Cjt=Ho().hovertemplateAttrs,Ljt=vl(),bx=to().extendFlat;xHe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:bx({},f1.marker.line.color,{editType:"plot"}),width:bx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:Cjt({},{keys:["properties"]}),showlegend:bx({},Ljt.showlegend,{dflt:!1})},kjt("",{cLetter:"z",editTypeOverride:"calc"}))});var wHe=_e((j_r,bHe)=>{"use strict";var qk=Mr(),Pjt=Uh(),Ijt=dJ();bHe.exports=function(t,r,n,i){function a(c,f){return qk.coerce(t,r,Ijt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!qk.isArrayOrTypedArray(o)||!o.length||!qk.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||qk.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),Pjt(t,r,i,a,{prefix:"",cLetter:"z"}),qk.coerceSelectionMarkerOpacity(r,a)}});var vJ=_e((W_r,MHe)=>{"use strict";var Rjt=ao(),h1=Mr(),Djt=Su(),zjt=ro(),Fjt=rx().makeBlank,THe=nx();function qjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Fjt()};if(!r)return a;var o=THe.extractTraceFeature(e);if(!o)return a;var s=Djt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(E){var k=E.mo;return Rjt(k)?+h1.constrain(k,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(E){return E.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(E){return E.mlw});for(var d=0;d{"use strict";var EHe=vJ().convert,Ojt=vJ().convertOnSelect,SHe=c1().traceLayerPrefix;function kHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",SHe+t+"-fill"],["line",SHe+t+"-line"]],this.below=null}var TA=kHe.prototype;TA.update=function(e){this._update(EHe(e)),e[0].trace._glTrace=this};TA.updateOnSelect=function(e){this._update(Ojt(e))};TA._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};TA.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};CHe.exports=function(t,r){var n=r[0].trace,i=new kHe(t,n.uid),a=i.sourceId,o=EHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var IHe=_e((Y_r,PHe)=>{"use strict";var X_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");PHe.exports={attributes:dJ(),supplyDefaults:wHe(),colorbar:S_(),calc:Fz(),plot:LHe(),hoverPoints:Oz(),eventData:Bz(),selectPoints:Nz(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";RHe.exports=IHe()});var gJ=_e((J_r,FHe)=>{"use strict";var Bjt=Jl(),Njt=Ho().hovertemplateAttrs,zHe=vl(),e7=jF(),pJ=to().extendFlat;FHe.exports=pJ({lon:e7.lon,lat:e7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:e7.text,hovertext:e7.hovertext,hoverinfo:pJ({},zHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Njt(),showlegend:pJ({},zHe.showlegend,{dflt:!1})},Bjt("",{cLetter:"z",editTypeOverride:"calc"}))});var OHe=_e(($_r,qHe)=>{"use strict";var Ujt=Mr(),Vjt=Uh(),Hjt=gJ();qHe.exports=function(t,r,n,i){function a(u,c){return Ujt.coerce(t,r,Hjt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Vjt(t,r,i,a,{prefix:"",cLetter:"z"})}});var UHe=_e((Q_r,NHe)=>{"use strict";var mJ=ao(),Gjt=Mr().isArrayOrTypedArray,yJ=Jo().BADNUM,jjt=zv(),BHe=Mr()._;NHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Gjt(a)&&a.length,s=0;s{"use strict";var Wjt=ao(),_J=Mr(),VHe=ha(),HHe=Su(),GHe=Jo().BADNUM,Zjt=rx().makeBlank;jHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Zjt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=_J.isArrayOrTypedArray(l)&&l.length,f=_J.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=HHe.extractOpts(r),p=b.reversescale?HHe.flipScale(b.colorscale):b.colorscale,E=p[0][1],k=VHe.opacity(E)<1?E:VHe.addOpacity(E,0),A=["interpolate",["linear"],["heatmap-density"],0,k];for(s=1;s{"use strict";var ZHe=WHe(),Xjt=c1().traceLayerPrefix;function XHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Xjt+t+"-heatmap"]],this.below=null}var t7=XHe.prototype;t7.update=function(e){var t=this.subplot,r=this.layerList,n=ZHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};t7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};YHe.exports=function(t,r){var n=r[0].trace,i=new XHe(t,n.uid),a=i.sourceId,o=ZHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var $He=_e((rxr,JHe)=>{"use strict";var Yjt=Ka(),Kjt=KF().hoverPoints,Jjt=KF().getExtraText;JHe.exports=function(t,r,n){var i=Kjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=Yjt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Jjt(s,l,o[0].t.labels),[a]}}});var eGe=_e((ixr,QHe)=>{"use strict";QHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var rGe=_e((axr,tGe)=>{"use strict";var nxr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");tGe.exports={attributes:gJ(),supplyDefaults:OHe(),colorbar:S_(),formatLabels:eJ(),calc:UHe(),plot:KHe(),hoverPoints:$He(),eventData:eGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";iGe.exports=rGe()});var oGe=_e((sxr,aGe)=>{aGe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} +{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":`{name:latin} +{name:nonlatin}`,"text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var lGe=_e((lxr,sGe)=>{sGe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var wx=_e((uxr,dGe)=>{"use strict";var $jt=Y1(),Qjt=oGe(),eWt=lGe(),tWt='\xA9 OpenStreetMap contributors',uGe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",cGe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",rWt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",iWt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",nWt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",hGe={basic:r7,streets:r7,outdoors:r7,light:uGe,dark:cGe,satellite:eWt,"satellite-streets":Qjt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:tWt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":uGe,"carto-darkmatter":cGe,"carto-voyager":r7,"carto-positron-nolabels":rWt,"carto-darkmatter-nolabels":iWt,"carto-voyager-nolabels":nWt},fGe=$jt(hGe);dGe.exports={styleValueDflt:"basic",stylesMap:hGe,styleValuesMap:fGe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",fGe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var Ok=_e((cxr,yGe)=>{"use strict";var vGe=Mr(),pGe=ha().defaultLine,aWt=Ju().attributes,oWt=Mu(),sWt=Uc().textposition,lWt=Bu().overrideAll,uWt=Us().templatedArray,gGe=wx(),mGe=oWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});mGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var cWt=yGe.exports=lWt({_arrayAttrRegexps:[vGe.counterRegex("map",".layers",!0)],domain:aWt({name:"map"}),style:{valType:"any",values:gGe.styleValuesMap,dflt:gGe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:uWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:pGe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:pGe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:mGe,textposition:vGe.extendFlat({},sWt,{arrayOk:!1})}})},"plot","from-root");cWt.uirevision={valType:"any",editType:"none"}});var i7=_e((fxr,bGe)=>{"use strict";var fWt=Ho().hovertemplateAttrs,hWt=Ho().texttemplateAttrs,dWt=Eg(),Bk=H2(),AA=Uc(),_Ge=Ok(),vWt=vl(),pWt=Jl(),rw=to().extendFlat,gWt=Bu().overrideAll,mWt=Ok(),xGe=Bk.line,MA=Bk.marker;bGe.exports=gWt({lon:Bk.lon,lat:Bk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},mWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},MA.opacity,{dflt:1})},mode:rw({},AA.mode,{dflt:"markers"}),text:rw({},AA.text,{}),texttemplate:hWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},AA.hovertext,{}),line:{color:xGe.color,width:xGe.width},connectgaps:AA.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:MA.opacity,size:MA.size,sizeref:MA.sizeref,sizemin:MA.sizemin,sizemode:MA.sizemode},pWt("marker")),fill:Bk.fill,fillcolor:dWt(),textfont:_Ge.layers.symbol.textfont,textposition:_Ge.layers.symbol.textposition,below:{valType:"string"},selected:{marker:AA.selected.marker},unselected:{marker:AA.unselected.marker},hoverinfo:rw({},vWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:fWt()},"calc","nested")});var xJ=_e((hxr,wGe)=>{"use strict";var yWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];wGe.exports={isSupportedFont:function(e){return yWt.indexOf(e)!==-1}}});var MGe=_e((dxr,AGe)=>{"use strict";var Nk=Mr(),bJ=lu(),_Wt=$p(),xWt=R0(),bWt=D0(),wWt=Ig(),TGe=i7(),TWt=xJ().isSupportedFont;AGe.exports=function(t,r,n,i){function a(p,E){return Nk.coerce(t,r,TGe,p,E)}function o(p,E){return Nk.coerce2(t,r,TGe,p,E)}var s=AWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),bJ.hasMarkers(r)){_Wt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(Nk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),Nk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}bJ.hasLines(r)&&(xWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||bJ.hasText(r)){var b=i.font.family;bWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:TWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&wWt(t,r,n,a),Nk.coerceSelectionMarkerOpacity(r,a)};function AWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var wJ=_e((vxr,EGe)=>{"use strict";var SGe=Ka();EGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=SGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=SGe.tickText(o,o.c2l(s[1]),!0).text,i}});var TJ=_e((pxr,CGe)=>{"use strict";var kGe=Mr();CGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=kGe.isArrayOrTypedArray(r)?kGe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var zGe=_e((gxr,DGe)=>{"use strict";var IGe=ao(),nv=Mr(),MWt=Jo().BADNUM,a7=rx(),LGe=Su(),SWt=ro(),EWt=M3(),o7=lu(),kWt=xJ().isSupportedFont,CWt=TJ(),LWt=rp().appendArrayPointValue,PWt=Pl().NEWLINES,IWt=Pl().BR_TAG_ALL;DGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=o7.hasLines(n),s=o7.hasMarkers(n),l=o7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=n7("fill"),d=n7("line"),v=n7("circle"),x=n7("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=a7.calcTraceToLineCoords(r)),a&&(h.geojson=a7.makePolygon(p),h.layout.visibility="visible",nv.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=a7.makeLine(p),d.layout.visibility="visible",nv.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var E=RWt(r);v.geojson=E.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":MJ(n.cluster.color,n.cluster.step),"circle-radius":MJ(n.cluster.size,n.cluster.step),"circle-opacity":MJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":PGe(n),"text-size":12}}),nv.extendFlat(v.paint,{"circle-color":E.mcc,"circle-radius":E.mrc,"circle-opacity":E.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=DWt(r,t),nv.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(nv.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&nv.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,nv.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var k=(n.marker||{}).size,A=CWt(n.textposition,k);nv.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":PGe(n)}),nv.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function n7(e){return{type:e,geojson:a7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function RWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=nv.isArrayOrTypedArray(r.color),a=nv.isArrayOrTypedArray(r.size),o=nv.isArrayOrTypedArray(r.opacity),s;function l(k){return t.opacity*k}function u(k){return k/2}var c;i&&(LGe.hasColorscale(t,"marker")?c=LGe.makeColorScaleFuncFromTrace(r):c=nv.identity);var f;a&&(f=EWt(t));var h;o&&(h=function(k){var A=IGe(k)?+nv.constrain(k,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),kWt(s)||(s=r);var l=s.split(", ");return l}});var BGe=_e((mxr,OGe)=>{"use strict";var zWt=Mr(),FGe=zGe(),SA=wx().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function qGe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:SA+t+"-fill",line:SA+t+"-line",circle:SA+t+"-circle",symbol:SA+t+"-symbol",cluster:SA+t+"-cluster",clusterCount:SA+t+"-cluster-count"},this.below=null}var Uk=qGe.prototype;Uk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&zWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Uk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Uk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}k||i.removeSource(u.sourceIds.circle)}function h(k){for(var A=ng.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),k||i.removeSource(u.sourceIds[_])}}function v(k){l?f(k):d(k)}function x(k){s?c(k):h(k)}function b(){for(var k=s?ng.cluster:ng.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};OGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new qGe(t,n.uid,i,a),s=FGe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var FWt=Nc(),SJ=Mr(),qWt=oT(),OWt=SJ.fillText,BWt=Jo().BADNUM,NWt=wx().traceLayerPrefix;function UWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=NWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(S){var g=S.lonlat;if(g[0]===BWt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=SJ.modHalf(g[0],360),T=g[1],F=s.project([P,T]),q=F.x-a.c2p([v,T]),V=F.y-o.c2p([P,r]),H=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-H,1-3/H)}if(FWt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,E=[SJ.modHalf(p[0],360)+d,p[1]],k=a.c2p(E),A=o.c2p(E),L=b.mrc||1;e.x0=k-L,e.x1=k+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=qWt(i,b),e.extraText=NGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function NGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&OWt(t,e,u),u.join("
")}UGe.exports={hoverPoints:UWt,getExtraText:NGe}});var HGe=_e((_xr,VGe)=>{"use strict";VGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var jGe=_e((xxr,GGe)=>{"use strict";var VWt=Mr(),HWt=lu(),GWt=Jo().BADNUM;GGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!HWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof EJ=="object"&&typeof kJ!="undefined"?kJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(EJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,M,D,j){return new(D||(D=Promise))(function(re,fe){function ge(at){try{He(j.next(at))}catch(Tt){fe(Tt)}}function De(at){try{He(j.throw(at))}catch(Tt){fe(Tt)}}function He(at){var Tt;at.done?re(at.value):(Tt=at.value,Tt instanceof D?Tt:new D(function(qt){qt(Tt)})).then(ge,De)}He((j=j.apply(R,M||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,M){this.x=R,this.y=M}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,M){return this.clone()._rotateAround(R,M)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var M=R.x-this.x,D=R.y-this.y;return M*M+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,M){return Math.atan2(this.x*M-this.y*R,this.x*R+this.y*M)},_matMult:function(R){var M=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=M,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var M=Math.cos(R),D=Math.sin(R),j=D*this.x+M*this.y;return this.x=M*this.x-D*this.y,this.y=j,this},_rotateAround:function(R,M){var D=Math.cos(R),j=Math.sin(R),re=M.y+j*(this.x-M.x)+D*(this.y-M.y);return this.x=M.x+D*(this.x-M.x)-j*(this.y-M.y),this.y=re,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,M,D,j){this.cx=3*R,this.bx=3*(D-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(j-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=M,this.p2x=D,this.p2y=j}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,M){if(M===void 0&&(M=1e-6),R<0)return 0;if(R>1)return 1;for(var D=R,j=0;j<8;j++){var re=this.sampleCurveX(D)-R;if(Math.abs(re)re?ge=D:De=D,D=.5*(De-ge)+ge;return D},solve:function(R,M){return this.sampleCurveY(this.solveCurveX(R,M))}};var h=o(c);let d,v;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,x())){let M=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(M){for(let j=0;j<5*5;j++){let re=4*j;M.fillStyle=`rgb(${re},${re+1},${re+2})`,M.fillRect(j%5,Math.floor(j/5),1,1)}let D=M.getImageData(0,0,5,5).data;for(let j=0;j<5*5*4;j++)if(j%4!=3&&D[j]!==j){v=!0;break}}}return v||!1}function p(R,M,D,j){let re=new h(R,M,D,j);return fe=>re.solve(fe)}let E=p(.25,.1,.25,1);function k(R,M,D){return Math.min(D,Math.max(M,R))}function A(R,M,D){let j=D-M,re=((R-M)%j+j)%j+M;return re===M?D:re}function L(R,...M){for(let D of M)for(let j in D)R[j]=D[j];return R}let _=1;function C(R,M,D){let j={};for(let re in R)j[re]=M.call(this,R[re],re,R);return j}function S(R,M,D){let j={};for(let re in R)M.call(this,R[re],re,R)&&(j[re]=R[re]);return j}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?C(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function F(R,M,D){return(D.y-R.y)*(M.x-R.x)>(M.y-R.y)*(D.x-R.x)}function q(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function H(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function G(R,M,D,j,re){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let ge=fe==null?void 0:fe.format;if(!ge||!ge.startsWith("BGR")&&!ge.startsWith("RGB"))throw new Error(`Unrecognized format ${ge}`);let De=ge.startsWith("BGR"),He=new Uint8ClampedArray(j*re*4);if(yield fe.copyTo(He,function(at,Tt,qt,Qt,sr){let wr=4*Math.max(-Tt,0),Ir=(Math.max(0,qt)-qt)*Qt*4+wr,ei=4*Qt,si=Math.max(0,Tt),Fi=Math.max(0,qt);return{rect:{x:si,y:Fi,width:Math.min(at.width,Tt+Qt)-si,height:Math.min(at.height,qt+sr)-Fi},layout:[{offset:Ir,stride:ei}]}}(R,M,D,j,re)),De)for(let at=0;atq(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ce=function(R,M){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let j=Ee(R.url);if(j)return j(R,M);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},M)}if(!(/^file:/.test(D=R.url)||/^file:/.test(K())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(j,re){return a(this,void 0,void 0,function*(){let fe=new Request(j.url,{method:j.method||"GET",body:j.body,credentials:j.credentials,headers:j.headers,cache:j.cache,referrer:K(),signal:re.signal});j.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let ge=yield fetch(fe);if(!ge.ok){let at=yield ge.blob();throw new ye(ge.status,ge.statusText,j.url,at)}let De;De=j.type==="arrayBuffer"||j.type==="image"?ge.arrayBuffer():j.type==="json"?ge.json():ge.text();let He=yield De;if(re.signal.aborted)throw ae();return{data:He,cacheControl:ge.headers.get("Cache-Control"),expires:ge.headers.get("Expires")}})}(R,M);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},M)}var D;return function(j,re){return new Promise((fe,ge)=>{var De;let He=new XMLHttpRequest;He.open(j.method||"GET",j.url,!0),j.type!=="arrayBuffer"&&j.type!=="image"||(He.responseType="arraybuffer");for(let at in j.headers)He.setRequestHeader(at,j.headers[at]);j.type==="json"&&(He.responseType="text",!((De=j.headers)===null||De===void 0)&&De.Accept||He.setRequestHeader("Accept","application/json")),He.withCredentials=j.credentials==="include",He.onerror=()=>{ge(new Error(He.statusText))},He.onload=()=>{if(!re.signal.aborted)if((He.status>=200&&He.status<300||He.status===0)&&He.response!==null){let at=He.response;if(j.type==="json")try{at=JSON.parse(He.response)}catch(Tt){return void ge(Tt)}fe({data:at,cacheControl:He.getResponseHeader("Cache-Control"),expires:He.getResponseHeader("Expires")})}else{let at=new Blob([He.response],{type:He.getResponseHeader("Content-Type")});ge(new ye(He.status,He.statusText,j.url,at))}},re.signal.addEventListener("abort",()=>{He.abort(),ge(ae())}),He.send(j.body)})}(R,M)};function pe(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let M=new URL(R),D=window.location;return M.protocol===D.protocol&&M.host===D.host}function xe(R,M,D){D[R]&&D[R].indexOf(M)!==-1||(D[R]=D[R]||[],D[R].push(M))}function Ce(R,M,D){if(D&&D[R]){let j=D[R].indexOf(M);j!==-1&&D[R].splice(j,1)}}class Me{constructor(M,D={}){L(this,D),this.type=M}}class Le extends Me{constructor(M,D={}){super("error",L({error:M},D))}}class je{on(M,D){return this._listeners=this._listeners||{},xe(M,D,this._listeners),this}off(M,D){return Ce(M,D,this._listeners),Ce(M,D,this._oneTimeListeners),this}once(M,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},xe(M,D,this._oneTimeListeners),this):new Promise(j=>this.once(M,j))}fire(M,D){typeof M=="string"&&(M=new Me(M,D||{}));let j=M.type;if(this.listens(j)){M.target=this;let re=this._listeners&&this._listeners[j]?this._listeners[j].slice():[];for(let De of re)De.call(this,M);let fe=this._oneTimeListeners&&this._oneTimeListeners[j]?this._oneTimeListeners[j].slice():[];for(let De of fe)Ce(j,De,this._oneTimeListeners),De.call(this,M);let ge=this._eventedParent;ge&&(L(M,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),ge.fire(M))}else M instanceof Le&&console.error(M.error);return this}listens(M){return this._listeners&&this._listeners[M]&&this._listeners[M].length>0||this._oneTimeListeners&&this._oneTimeListeners[M]&&this._oneTimeListeners[M].length>0||this._eventedParent&&this._eventedParent.listens(M)}setEventedParent(M,D){return this._eventedParent=M,this._eventedParentData=D,this}}var Se={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Xe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function lt(R,M){let D={};for(let j in R)j!=="ref"&&(D[j]=R[j]);return Xe.forEach(j=>{j in M&&(D[j]=M[j])}),D}function At(R,M){if(Array.isArray(R)){if(!Array.isArray(M)||R.length!==M.length)return!1;for(let D=0;D`:R.itemType.kind==="value"?"array":`array<${M}>`}return R.kind}let Ze=[Ct,St,kt,ft,Gt,Nr,$t,rt(hr),Br,Ur,ut];function Je(R,M){if(M.kind==="error")return null;if(R.kind==="array"){if(M.kind==="array"&&(M.N===0&&M.itemType.kind==="value"||!Je(R.itemType,M.itemType))&&(typeof R.N!="number"||R.N===M.N))return null}else{if(R.kind===M.kind)return null;if(R.kind==="value"){for(let D of Ze)if(!Je(D,M))return null}}return`Expected ${it(R)} but found ${it(M)} instead.`}function ht(R,M){return M.some(D=>D.kind===R.kind)}function Ie(R,M){return M.some(D=>D==="null"?R===null:D==="array"?Array.isArray(R):D==="object"?R&&!Array.isArray(R)&&typeof R=="object":D===typeof R)}function le(R,M){return R.kind==="array"&&M.kind==="array"?R.itemType.kind===M.itemType.kind&&typeof R.N=="number":R.kind===M.kind}let be=.96422,Qe=.82521,xt=4/29,Ot=6/29,rr=3*Ot*Ot,Jr=Ot*Ot*Ot,ni=Math.PI/180,Gr=180/Math.PI;function ri(R){return(R%=360)<0&&(R+=360),R}function Ti([R,M,D,j]){let re,fe,ge=Yi((.2225045*(R=an(R))+.7168786*(M=an(M))+.0606169*(D=an(D)))/1);R===M&&M===D?re=fe=ge:(re=Yi((.4360747*R+.3850649*M+.1430804*D)/be),fe=Yi((.0139322*R+.0971045*M+.7141733*D)/Qe));let De=116*ge-16;return[De<0?0:De,500*(re-ge),200*(ge-fe),j]}function an(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function Yi(R){return R>Jr?Math.pow(R,1/3):R/rr+xt}function Xi([R,M,D,j]){let re=(R+16)/116,fe=isNaN(M)?re:re+M/500,ge=isNaN(D)?re:re-D/200;return re=1*Qi(re),fe=be*Qi(fe),ge=Qe*Qi(ge),[An(3.1338561*fe-1.6168667*re-.4906146*ge),An(-.9787684*fe+1.9161415*re+.033454*ge),An(.0719453*fe-.2289914*re+1.4052427*ge),j]}function An(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function Qi(R){return R>Ot?R*R*R:rr*(R-xt)}function Un(R){return parseInt(R.padEnd(2,R),16)/255}function Xn(R,M){return It(M?R/100:R,0,1)}function It(R,M,D){return Math.min(Math.max(M,R),D)}function ct(R){return!R.some(Number.isNaN)}let Vt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wt{constructor(M,D,j,re=1,fe=!0){this.r=M,this.g=D,this.b=j,this.a=re,fe||(this.r*=re,this.g*=re,this.b*=re,re||this.overwriteGetter("rgb",[M,D,j,re]))}static parse(M){if(M instanceof Wt)return M;if(typeof M!="string")return;let D=function(j){if((j=j.toLowerCase().trim())==="transparent")return[0,0,0,0];let re=Vt[j];if(re){let[ge,De,He]=re;return[ge/255,De/255,He/255,1]}if(j.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(j)){let ge=j.length<6?1:2,De=1;return[Un(j.slice(De,De+=ge)),Un(j.slice(De,De+=ge)),Un(j.slice(De,De+=ge)),Un(j.slice(De,De+ge)||"ff")]}if(j.startsWith("rgb")){let ge=j.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ge){let[De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si,Fi]=ge,gi=[Tt||" ",sr||" ",ei].join("");if(gi===" "||gi===" /"||gi===",,"||gi===",,,"){let Li=[at,Qt,Ir].join(""),Ki=Li==="%%%"?100:Li===""?255:0;if(Ki){let ea=[It(+He/Ki,0,1),It(+qt/Ki,0,1),It(+wr/Ki,0,1),si?Xn(+si,Fi):1];if(ct(ea))return ea}}return}}let fe=j.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[ge,De,He,at,Tt,qt,Qt,sr,wr]=fe,Ir=[He||" ",Tt||" ",Qt].join("");if(Ir===" "||Ir===" /"||Ir===",,"||Ir===",,,"){let ei=[+De,It(+at,0,100),It(+qt,0,100),sr?Xn(+sr,wr):1];if(ct(ei))return function([si,Fi,gi,Li]){function Ki(ea){let Na=(ea+si/30)%12,Co=Fi*Math.min(gi,1-gi);return gi-Co*Math.max(-1,Math.min(Na-3,9-Na,1))}return si=ri(si),Fi/=100,gi/=100,[Ki(0),Ki(8),Ki(4),Li]}(ei)}}}(M);return D?new Wt(...D,!1):void 0}get rgb(){let{r:M,g:D,b:j,a:re}=this,fe=re||1/0;return this.overwriteGetter("rgb",[M/fe,D/fe,j/fe,re])}get hcl(){return this.overwriteGetter("hcl",function(M){let[D,j,re,fe]=Ti(M),ge=Math.sqrt(j*j+re*re);return[Math.round(1e4*ge)?ri(Math.atan2(re,j)*Gr):NaN,ge,D,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Ti(this.rgb))}overwriteGetter(M,D){return Object.defineProperty(this,M,{value:D}),D}toString(){let[M,D,j,re]=this.rgb;return`rgba(${[M,D,j].map(fe=>Math.round(255*fe)).join(",")},${re})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class gr{constructor(M,D,j){this.sensitivity=M?D?"variant":"case":D?"accent":"base",this.locale=j,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(M,D){return this.collator.compare(M,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class qr{constructor(M,D,j,re,fe){this.text=M,this.image=D,this.scale=j,this.fontStack=re,this.textColor=fe}}class Zr{constructor(M){this.sections=M}static fromString(M){return new Zr([new qr(M,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(M=>M.text.length!==0||M.image&&M.image.name.length!==0)}static factory(M){return M instanceof Zr?M:Zr.fromString(M)}toString(){return this.sections.length===0?"":this.sections.map(M=>M.text).join("")}}class Hr{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof Hr)return M;if(typeof M=="number")return new Hr([M,M,M,M]);if(Array.isArray(M)&&!(M.length<1||M.length>4)){for(let D of M)if(typeof D!="number")return;switch(M.length){case 1:M=[M[0],M[0],M[0],M[0]];break;case 2:M=[M[0],M[1],M[0],M[1]];break;case 3:M=[M[0],M[1],M[2],M[1]]}return new Hr(M)}}toString(){return JSON.stringify(this.values)}}let mi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ei{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof Ei)return M;if(Array.isArray(M)&&!(M.length<1)&&M.length%2==0){for(let D=0;D=0&&R<=255&&typeof M=="number"&&M>=0&&M<=255&&typeof D=="number"&&D>=0&&D<=255?j===void 0||typeof j=="number"&&j>=0&&j<=1?null:`Invalid rgba value [${[R,M,D,j].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof j=="number"?[R,M,D,j]:[R,M,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ji(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof Wt||R instanceof gr||R instanceof Zr||R instanceof Hr||R instanceof Ei||R instanceof ki)return!0;if(Array.isArray(R)){for(let M of R)if(!ji(M))return!1;return!0}if(typeof R=="object"){for(let M in R)if(!ji(R[M]))return!1;return!0}return!1}function $i(R){if(R===null)return Ct;if(typeof R=="string")return kt;if(typeof R=="boolean")return ft;if(typeof R=="number")return St;if(R instanceof Wt)return Gt;if(R instanceof gr)return _r;if(R instanceof Zr)return Nr;if(R instanceof Hr)return Br;if(R instanceof Ei)return ut;if(R instanceof ki)return Ur;if(Array.isArray(R)){let M=R.length,D;for(let j of R){let re=$i(j);if(D){if(D===re)continue;D=hr;break}D=re}return rt(D||hr,M)}return $t}function Sa(R){let M=typeof R;return R===null?"":M==="string"||M==="number"||M==="boolean"?String(R):R instanceof Wt||R instanceof Zr||R instanceof Hr||R instanceof Ei||R instanceof ki?R.toString():JSON.stringify(R)}class Gn{constructor(M,D){this.type=M,this.value=D}static parse(M,D){if(M.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${M.length-1} instead.`);if(!ji(M[1]))return D.error("invalid value");let j=M[1],re=$i(j),fe=D.expectedType;return re.kind!=="array"||re.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(re=fe),new Gn(re,j)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class sa{constructor(M){this.name="ExpressionEvaluationError",this.message=M}toJSON(){return this.message}}let Da={string:kt,number:St,boolean:ft,object:$t};class Pa{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let j,re=1,fe=M[0];if(fe==="array"){let De,He;if(M.length>2){let at=M[1];if(typeof at!="string"||!(at in Da)||at==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);De=Da[at],re++}else De=hr;if(M.length>3){if(M[2]!==null&&(typeof M[2]!="number"||M[2]<0||M[2]!==Math.floor(M[2])))return D.error('The length argument to "array" must be a positive integer literal',2);He=M[2],re++}j=rt(De,He)}else{if(!Da[fe])throw new Error(`Types doesn't contain name = ${fe}`);j=Da[fe]}let ge=[];for(;reM.outputDefined())}}let Vo={"to-boolean":ft,"to-color":Gt,"to-number":St,"to-string":kt};class aa{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let j=M[0];if(!Vo[j])throw new Error(`Can't parse ${j} as it is not part of the known types`);if((j==="to-boolean"||j==="to-string")&&M.length!==2)return D.error("Expected one argument.");let re=Vo[j],fe=[];for(let ge=1;ge4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ri(D[0],D[1],D[2],D[3]),!j))return new Wt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new sa(j||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let j of this.args){D=j.evaluate(M);let re=Hr.parse(D);if(re)return re}throw new sa(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let j of this.args){D=j.evaluate(M);let re=Ei.parse(D);if(re)return re}throw new sa(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let j of this.args){if(D=j.evaluate(M),D===null)return 0;let re=Number(D);if(!isNaN(re))return re}throw new sa(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Zr.fromString(Sa(this.args[0].evaluate(M)));case"resolvedImage":return ki.fromString(Sa(this.args[0].evaluate(M)));default:return Sa(this.args[0].evaluate(M))}}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}let go=["Unknown","Point","LineString","Polygon"];class _s{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?go[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(M){let D=this._parseColorCache[M];return D||(D=this._parseColorCache[M]=Wt.parse(M)),D}}class Vs{constructor(M,D,j=[],re,fe=new _t,ge=[]){this.registry=M,this.path=j,this.key=j.map(De=>`[${De}]`).join(""),this.scope=fe,this.errors=ge,this.expectedType=re,this._isConstant=D}parse(M,D,j,re,fe={}){return D?this.concat(D,j,re)._parse(M,fe):this._parse(M,fe)}_parse(M,D){function j(re,fe,ge){return ge==="assert"?new Pa(fe,[re]):ge==="coerce"?new aa(fe,[re]):re}if(M!==null&&typeof M!="string"&&typeof M!="boolean"&&typeof M!="number"||(M=["literal",M]),Array.isArray(M)){if(M.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let re=M[0];if(typeof re!="string")return this.error(`Expression name must be a string, but found ${typeof re} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[re];if(fe){let ge=fe.parse(M,this);if(!ge)return null;if(this.expectedType){let De=this.expectedType,He=ge.type;if(De.kind!=="string"&&De.kind!=="number"&&De.kind!=="boolean"&&De.kind!=="object"&&De.kind!=="array"||He.kind!=="value")if(De.kind!=="color"&&De.kind!=="formatted"&&De.kind!=="resolvedImage"||He.kind!=="value"&&He.kind!=="string")if(De.kind!=="padding"||He.kind!=="value"&&He.kind!=="number"&&He.kind!=="array")if(De.kind!=="variableAnchorOffsetCollection"||He.kind!=="value"&&He.kind!=="array"){if(this.checkSubtype(De,He))return null}else ge=j(ge,De,D.typeAnnotation||"coerce");else ge=j(ge,De,D.typeAnnotation||"coerce");else ge=j(ge,De,D.typeAnnotation||"coerce");else ge=j(ge,De,D.typeAnnotation||"assert")}if(!(ge instanceof Gn)&&ge.type.kind!=="resolvedImage"&&this._isConstant(ge)){let De=new _s;try{ge=new Gn(ge.type,ge.evaluate(De))}catch(He){return this.error(He.message),null}}return ge}return this.error(`Unknown expression "${re}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(M===void 0?"'undefined' value invalid. Use null instead.":typeof M=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof M} instead.`)}concat(M,D,j){let re=typeof M=="number"?this.path.concat(M):this.path,fe=j?this.scope.concat(j):this.scope;return new Vs(this.registry,this._isConstant,re,D||null,fe,this.errors)}error(M,...D){let j=`${this.key}${D.map(re=>`[${re}]`).join("")}`;this.errors.push(new yt(j,M))}checkSubtype(M,D){let j=Je(M,D);return j&&this.error(j),j}}class As{constructor(M,D){this.type=D.type,this.bindings=[].concat(M),this.result=D}evaluate(M){return this.result.evaluate(M)}eachChild(M){for(let D of this.bindings)M(D[1]);M(this.result)}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found ${M.length-1} instead.`);let j=[];for(let fe=1;fe=j.length)throw new sa(`Array index out of bounds: ${D} > ${j.length-1}.`);if(D!==Math.floor(D))throw new sa(`Array index must be an integer, but found ${D} instead.`);return j[D]}eachChild(M){M(this.index),M(this.input)}outputDefined(){return!1}}class Pr{constructor(M,D){this.type=ft,this.needle=M,this.haystack=D}static parse(M,D){if(M.length!==3)return D.error(`Expected 2 arguments, but found ${M.length-1} instead.`);let j=D.parse(M[1],1,hr),re=D.parse(M[2],2,hr);return j&&re?ht(j.type,[ft,kt,St,Ct,hr])?new Pr(j,re):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${it(j.type)} instead`):null}evaluate(M){let D=this.needle.evaluate(M),j=this.haystack.evaluate(M);if(!j)return!1;if(!Ie(D,["boolean","string","number","null"]))throw new sa(`Expected first argument to be of type boolean, string, number or null, but found ${it($i(D))} instead.`);if(!Ie(j,["string","array"]))throw new sa(`Expected second argument to be of type array or string, but found ${it($i(j))} instead.`);return j.indexOf(D)>=0}eachChild(M){M(this.needle),M(this.haystack)}outputDefined(){return!0}}class Xr{constructor(M,D,j){this.type=St,this.needle=M,this.haystack=D,this.fromIndex=j}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let j=D.parse(M[1],1,hr),re=D.parse(M[2],2,hr);if(!j||!re)return null;if(!ht(j.type,[ft,kt,St,Ct,hr]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${it(j.type)} instead`);if(M.length===4){let fe=D.parse(M[3],3,St);return fe?new Xr(j,re,fe):null}return new Xr(j,re)}evaluate(M){let D=this.needle.evaluate(M),j=this.haystack.evaluate(M);if(!Ie(D,["boolean","string","number","null"]))throw new sa(`Expected first argument to be of type boolean, string, number or null, but found ${it($i(D))} instead.`);let re;if(this.fromIndex&&(re=this.fromIndex.evaluate(M)),Ie(j,["string"])){let fe=j.indexOf(D,re);return fe===-1?-1:[...j.slice(0,fe)].length}if(Ie(j,["array"]))return j.indexOf(D,re);throw new sa(`Expected second argument to be of type array or string, but found ${it($i(j))} instead.`)}eachChild(M){M(this.needle),M(this.haystack),this.fromIndex&&M(this.fromIndex)}outputDefined(){return!1}}class bi{constructor(M,D,j,re,fe,ge){this.inputType=M,this.type=D,this.input=j,this.cases=re,this.outputs=fe,this.otherwise=ge}static parse(M,D){if(M.length<5)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if(M.length%2!=1)return D.error("Expected an even number of arguments.");let j,re;D.expectedType&&D.expectedType.kind!=="value"&&(re=D.expectedType);let fe={},ge=[];for(let at=2;atNumber.MAX_SAFE_INTEGER)return Qt.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof wr=="number"&&Math.floor(wr)!==wr)return Qt.error("Numeric branch labels must be integer values.");if(j){if(Qt.checkSubtype(j,$i(wr)))return null}else j=$i(wr);if(fe[String(wr)]!==void 0)return Qt.error("Branch labels must be unique.");fe[String(wr)]=ge.length}let sr=D.parse(qt,at,re);if(!sr)return null;re=re||sr.type,ge.push(sr)}let De=D.parse(M[1],1,hr);if(!De)return null;let He=D.parse(M[M.length-1],M.length-1,re);return He?De.type.kind!=="value"&&D.concat(1).checkSubtype(j,De.type)?null:new bi(j,re,De,fe,ge,He):null}evaluate(M){let D=this.input.evaluate(M);return($i(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(M)}eachChild(M){M(this.input),this.outputs.forEach(M),M(this.otherwise)}outputDefined(){return this.outputs.every(M=>M.outputDefined())&&this.otherwise.outputDefined()}}class ai{constructor(M,D,j){this.type=M,this.branches=D,this.otherwise=j}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found only ${M.length-1}.`);if(M.length%2!=0)return D.error("Expected an odd number of arguments.");let j;D.expectedType&&D.expectedType.kind!=="value"&&(j=D.expectedType);let re=[];for(let ge=1;geD.outputDefined())&&this.otherwise.outputDefined()}}class Wi{constructor(M,D,j,re){this.type=M,this.input=D,this.beginIndex=j,this.endIndex=re}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let j=D.parse(M[1],1,hr),re=D.parse(M[2],2,St);if(!j||!re)return null;if(!ht(j.type,[rt(hr),kt,hr]))return D.error(`Expected first argument to be of type array or string, but found ${it(j.type)} instead`);if(M.length===4){let fe=D.parse(M[3],3,St);return fe?new Wi(j.type,j,re,fe):null}return new Wi(j.type,j,re)}evaluate(M){let D=this.input.evaluate(M),j=this.beginIndex.evaluate(M),re;if(this.endIndex&&(re=this.endIndex.evaluate(M)),Ie(D,["string"]))return[...D].slice(j,re).join("");if(Ie(D,["array"]))return D.slice(j,re);throw new sa(`Expected first argument to be of type array or string, but found ${it($i(D))} instead.`)}eachChild(M){M(this.input),M(this.beginIndex),this.endIndex&&M(this.endIndex)}outputDefined(){return!1}}function ii(R,M){let D=R.length-1,j,re,fe=0,ge=D,De=0;for(;fe<=ge;)if(De=Math.floor((fe+ge)/2),j=R[De],re=R[De+1],j<=M){if(De===D||MM))throw new sa("Input is not a number.");ge=De-1}return 0}class Ui{constructor(M,D,j){this.type=M,this.input=D,this.labels=[],this.outputs=[];for(let[re,fe]of j)this.labels.push(re),this.outputs.push(fe)}static parse(M,D){if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");let j=D.parse(M[1],1,St);if(!j)return null;let re=[],fe=null;D.expectedType&&D.expectedType.kind!=="value"&&(fe=D.expectedType);for(let ge=1;ge=De)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',at);let qt=D.parse(He,Tt,fe);if(!qt)return null;fe=fe||qt.type,re.push([De,qt])}return new Ui(fe,j,re)}evaluate(M){let D=this.labels,j=this.outputs;if(D.length===1)return j[0].evaluate(M);let re=this.input.evaluate(M);if(re<=D[0])return j[0].evaluate(M);let fe=D.length;return re>=D[fe-1]?j[fe-1].evaluate(M):j[ii(D,re)].evaluate(M)}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function Vn(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Tn=xa;function xa(R,M,D,j){this.cx=3*R,this.bx=3*(D-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(j-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=M,this.p2x=D,this.p2y=j}xa.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,M){if(M===void 0&&(M=1e-6),R<0)return 0;if(R>1)return 1;for(var D=R,j=0;j<8;j++){var re=this.sampleCurveX(D)-R;if(Math.abs(re)re?ge=D:De=D,D=.5*(De-ge)+ge;return D},solve:function(R,M){return this.sampleCurveY(this.solveCurveX(R,M))}};var fo=Vn(Tn);function zo(R,M,D){return R+D*(M-R)}function lo(R,M,D){return R.map((j,re)=>zo(j,M[re],D))}let To={number:zo,color:function(R,M,D,j="rgb"){switch(j){case"rgb":{let[re,fe,ge,De]=lo(R.rgb,M.rgb,D);return new Wt(re,fe,ge,De,!1)}case"hcl":{let[re,fe,ge,De]=R.hcl,[He,at,Tt,qt]=M.hcl,Qt,sr;if(isNaN(re)||isNaN(He))isNaN(re)?isNaN(He)?Qt=NaN:(Qt=He,ge!==1&&ge!==0||(sr=at)):(Qt=re,Tt!==1&&Tt!==0||(sr=fe));else{let Fi=He-re;He>re&&Fi>180?Fi-=360:He180&&(Fi+=360),Qt=re+D*Fi}let[wr,Ir,ei,si]=function([Fi,gi,Li,Ki]){return Fi=isNaN(Fi)?0:Fi*ni,Xi([Li,Math.cos(Fi)*gi,Math.sin(Fi)*gi,Ki])}([Qt,sr!=null?sr:zo(fe,at,D),zo(ge,Tt,D),zo(De,qt,D)]);return new Wt(wr,Ir,ei,si,!1)}case"lab":{let[re,fe,ge,De]=Xi(lo(R.lab,M.lab,D));return new Wt(re,fe,ge,De,!1)}}},array:lo,padding:function(R,M,D){return new Hr(lo(R.values,M.values,D))},variableAnchorOffsetCollection:function(R,M,D){let j=R.values,re=M.values;if(j.length!==re.length)throw new sa(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${M.toString()}`);let fe=[];for(let ge=0;getypeof Tt!="number"||Tt<0||Tt>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);re={name:"cubic-bezier",controlPoints:at}}}if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(fe=D.parse(fe,2,St),!fe)return null;let De=[],He=null;j==="interpolate-hcl"||j==="interpolate-lab"?He=Gt:D.expectedType&&D.expectedType.kind!=="value"&&(He=D.expectedType);for(let at=0;at=Tt)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Qt);let wr=D.parse(qt,sr,He);if(!wr)return null;He=He||wr.type,De.push([Tt,wr])}return le(He,St)||le(He,Gt)||le(He,Br)||le(He,ut)||le(He,rt(St))?new mo(He,j,re,fe,De):D.error(`Type ${it(He)} is not interpolatable.`)}evaluate(M){let D=this.labels,j=this.outputs;if(D.length===1)return j[0].evaluate(M);let re=this.input.evaluate(M);if(re<=D[0])return j[0].evaluate(M);let fe=D.length;if(re>=D[fe-1])return j[fe-1].evaluate(M);let ge=ii(D,re),De=mo.interpolationFactor(this.interpolation,re,D[ge],D[ge+1]),He=j[ge].evaluate(M),at=j[ge+1].evaluate(M);switch(this.operator){case"interpolate":return To[this.type.kind](He,at,De);case"interpolate-hcl":return To.color(He,at,De,"hcl");case"interpolate-lab":return To.color(He,at,De,"lab")}}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function Ds(R,M,D,j){let re=j-D,fe=R-D;return re===0?0:M===1?fe/re:(Math.pow(M,fe)-1)/(Math.pow(M,re)-1)}class Es{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expectected at least one argument.");let j=null,re=D.expectedType;re&&re.kind!=="value"&&(j=re);let fe=[];for(let De of M.slice(1)){let He=D.parse(De,1+fe.length,j,void 0,{typeAnnotation:"omit"});if(!He)return null;j=j||He.type,fe.push(He)}if(!j)throw new Error("No output type");let ge=re&&fe.some(De=>Je(re,De.type));return new Es(ge?hr:j,fe)}evaluate(M){let D,j=null,re=0;for(let fe of this.args)if(re++,j=fe.evaluate(M),j&&j instanceof ki&&!j.available&&(D||(D=j.name),j=null,re===this.args.length&&(j=D)),j!==null)break;return j}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}function Zs(R,M){return R==="=="||R==="!="?M.kind==="boolean"||M.kind==="string"||M.kind==="number"||M.kind==="null"||M.kind==="value":M.kind==="string"||M.kind==="number"||M.kind==="value"}function Xs(R,M,D,j){return j.compare(M,D)===0}function wl(R,M,D){let j=R!=="=="&&R!=="!=";return class WGe{constructor(fe,ge,De){this.type=ft,this.lhs=fe,this.rhs=ge,this.collator=De,this.hasUntypedArgument=fe.type.kind==="value"||ge.type.kind==="value"}static parse(fe,ge){if(fe.length!==3&&fe.length!==4)return ge.error("Expected two or three arguments.");let De=fe[0],He=ge.parse(fe[1],1,hr);if(!He)return null;if(!Zs(De,He.type))return ge.concat(1).error(`"${De}" comparisons are not supported for type '${it(He.type)}'.`);let at=ge.parse(fe[2],2,hr);if(!at)return null;if(!Zs(De,at.type))return ge.concat(2).error(`"${De}" comparisons are not supported for type '${it(at.type)}'.`);if(He.type.kind!==at.type.kind&&He.type.kind!=="value"&&at.type.kind!=="value")return ge.error(`Cannot compare types '${it(He.type)}' and '${it(at.type)}'.`);j&&(He.type.kind==="value"&&at.type.kind!=="value"?He=new Pa(at.type,[He]):He.type.kind!=="value"&&at.type.kind==="value"&&(at=new Pa(He.type,[at])));let Tt=null;if(fe.length===4){if(He.type.kind!=="string"&&at.type.kind!=="string"&&He.type.kind!=="value"&&at.type.kind!=="value")return ge.error("Cannot use collator to compare non-string types.");if(Tt=ge.parse(fe[3],3,_r),!Tt)return null}return new WGe(He,at,Tt)}evaluate(fe){let ge=this.lhs.evaluate(fe),De=this.rhs.evaluate(fe);if(j&&this.hasUntypedArgument){let He=$i(ge),at=$i(De);if(He.kind!==at.kind||He.kind!=="string"&&He.kind!=="number")throw new sa(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${He.kind}, ${at.kind}) instead.`)}if(this.collator&&!j&&this.hasUntypedArgument){let He=$i(ge),at=$i(De);if(He.kind!=="string"||at.kind!=="string")return M(fe,ge,De)}return this.collator?D(fe,ge,De,this.collator.evaluate(fe)):M(fe,ge,De)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let is=wl("==",function(R,M,D){return M===D},Xs),cl=wl("!=",function(R,M,D){return M!==D},function(R,M,D,j){return!Xs(0,M,D,j)}),ks=wl("<",function(R,M,D){return M",function(R,M,D){return M>D},function(R,M,D,j){return j.compare(M,D)>0}),Ys=wl("<=",function(R,M,D){return M<=D},function(R,M,D,j){return j.compare(M,D)<=0}),Hs=wl(">=",function(R,M,D){return M>=D},function(R,M,D,j){return j.compare(M,D)>=0});class Ao{constructor(M,D,j){this.type=_r,this.locale=j,this.caseSensitive=M,this.diacriticSensitive=D}static parse(M,D){if(M.length!==2)return D.error("Expected one argument.");let j=M[1];if(typeof j!="object"||Array.isArray(j))return D.error("Collator options argument must be an object.");let re=D.parse(j["case-sensitive"]!==void 0&&j["case-sensitive"],1,ft);if(!re)return null;let fe=D.parse(j["diacritic-sensitive"]!==void 0&&j["diacritic-sensitive"],1,ft);if(!fe)return null;let ge=null;return j.locale&&(ge=D.parse(j.locale,1,kt),!ge)?null:new Ao(re,fe,ge)}evaluate(M){return new gr(this.caseSensitive.evaluate(M),this.diacriticSensitive.evaluate(M),this.locale?this.locale.evaluate(M):null)}eachChild(M){M(this.caseSensitive),M(this.diacriticSensitive),this.locale&&M(this.locale)}outputDefined(){return!1}}class ls{constructor(M,D,j,re,fe){this.type=kt,this.number=M,this.locale=D,this.currency=j,this.minFractionDigits=re,this.maxFractionDigits=fe}static parse(M,D){if(M.length!==3)return D.error("Expected two arguments.");let j=D.parse(M[1],1,St);if(!j)return null;let re=M[2];if(typeof re!="object"||Array.isArray(re))return D.error("NumberFormat options argument must be an object.");let fe=null;if(re.locale&&(fe=D.parse(re.locale,1,kt),!fe))return null;let ge=null;if(re.currency&&(ge=D.parse(re.currency,1,kt),!ge))return null;let De=null;if(re["min-fraction-digits"]&&(De=D.parse(re["min-fraction-digits"],1,St),!De))return null;let He=null;return re["max-fraction-digits"]&&(He=D.parse(re["max-fraction-digits"],1,St),!He)?null:new ls(j,fe,ge,De,He)}evaluate(M){return new Intl.NumberFormat(this.locale?this.locale.evaluate(M):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(M):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(M):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(M):void 0}).format(this.number.evaluate(M))}eachChild(M){M(this.number),this.locale&&M(this.locale),this.currency&&M(this.currency),this.minFractionDigits&&M(this.minFractionDigits),this.maxFractionDigits&&M(this.maxFractionDigits)}outputDefined(){return!1}}class Ql{constructor(M){this.type=Nr,this.sections=M}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let j=M[1];if(!Array.isArray(j)&&typeof j=="object")return D.error("First argument must be an image or text section.");let re=[],fe=!1;for(let ge=1;ge<=M.length-1;++ge){let De=M[ge];if(fe&&typeof De=="object"&&!Array.isArray(De)){fe=!1;let He=null;if(De["font-scale"]&&(He=D.parse(De["font-scale"],1,St),!He))return null;let at=null;if(De["text-font"]&&(at=D.parse(De["text-font"],1,rt(kt)),!at))return null;let Tt=null;if(De["text-color"]&&(Tt=D.parse(De["text-color"],1,Gt),!Tt))return null;let qt=re[re.length-1];qt.scale=He,qt.font=at,qt.textColor=Tt}else{let He=D.parse(M[ge],1,hr);if(!He)return null;let at=He.type.kind;if(at!=="string"&&at!=="value"&&at!=="null"&&at!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,re.push({content:He,scale:null,font:null,textColor:null})}}return new Ql(re)}evaluate(M){return new Zr(this.sections.map(D=>{let j=D.content.evaluate(M);return $i(j)===Ur?new qr("",j,null,null,null):new qr(Sa(j),null,D.scale?D.scale.evaluate(M):null,D.font?D.font.evaluate(M).join(","):null,D.textColor?D.textColor.evaluate(M):null)}))}eachChild(M){for(let D of this.sections)M(D.content),D.scale&&M(D.scale),D.font&&M(D.font),D.textColor&&M(D.textColor)}outputDefined(){return!1}}class Hu{constructor(M){this.type=Ur,this.input=M}static parse(M,D){if(M.length!==2)return D.error("Expected two arguments.");let j=D.parse(M[1],1,kt);return j?new Hu(j):D.error("No image name provided.")}evaluate(M){let D=this.input.evaluate(M),j=ki.fromString(D);return j&&M.availableImages&&(j.available=M.availableImages.indexOf(D)>-1),j}eachChild(M){M(this.input)}outputDefined(){return!1}}class fc{constructor(M){this.type=St,this.input=M}static parse(M,D){if(M.length!==2)return D.error(`Expected 1 argument, but found ${M.length-1} instead.`);let j=D.parse(M[1],1);return j?j.type.kind!=="array"&&j.type.kind!=="string"&&j.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${it(j.type)} instead.`):new fc(j):null}evaluate(M){let D=this.input.evaluate(M);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new sa(`Expected value to be of type string or array, but found ${it($i(D))} instead.`)}eachChild(M){M(this.input)}outputDefined(){return!1}}let vs=8192;function on(R,M){let D=(180+R[0])/360,j=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,re=Math.pow(2,M.z);return[Math.round(D*re*vs),Math.round(j*re*vs)]}function ua(R,M){let D=Math.pow(2,M.z);return[(re=(R[0]/vs+M.x)/D,360*re-180),(j=(R[1]/vs+M.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*j)*Math.PI/180))-90)];var j,re}function Qu(R,M){R[0]=Math.min(R[0],M[0]),R[1]=Math.min(R[1],M[1]),R[2]=Math.max(R[2],M[0]),R[3]=Math.max(R[3],M[1])}function Rl(R,M){return!(R[0]<=M[0]||R[2]>=M[2]||R[1]<=M[1]||R[3]>=M[3])}function uo(R,M,D){let j=R[0]-M[0],re=R[1]-M[1],fe=R[0]-D[0],ge=R[1]-D[1];return j*ge-fe*re==0&&j*fe<=0&&re*ge<=0}function Zl(R,M,D,j){return(re=[j[0]-D[0],j[1]-D[1]])[0]*(fe=[M[0]-R[0],M[1]-R[1]])[1]-re[1]*fe[0]!=0&&!(!So(R,M,D,j)||!So(D,j,R,M));var re,fe}function Ks(R,M,D){for(let j of D)for(let re=0;re(re=R)[1]!=(ge=De[He+1])[1]>re[1]&&re[0]<(ge[0]-fe[0])*(re[1]-fe[1])/(ge[1]-fe[1])+fe[0]&&(j=!j)}var re,fe,ge;return j}function Ec(R,M){for(let D of M)if(Xl(R,D))return!0;return!1}function jn(R,M){for(let D of R)if(!Xl(D,M))return!1;for(let D=0;D0&&De<0||ge<0&&De>0}function Tl(R,M,D){let j=[];for(let re=0;reD[2]){let re=.5*j,fe=R[0]-D[0]>re?-j:D[0]-R[0]>re?j:0;fe===0&&(fe=R[0]-D[2]>re?-j:D[2]-R[0]>re?j:0),R[0]+=fe}Qu(M,R)}function cf(R,M,D,j){let re=Math.pow(2,j.z)*vs,fe=[j.x*vs,j.y*vs],ge=[];for(let De of R)for(let He of De){let at=[He.x+fe[0],He.y+fe[1]];wo(at,M,D,re),ge.push(at)}return ge}function rh(R,M,D,j){let re=Math.pow(2,j.z)*vs,fe=[j.x*vs,j.y*vs],ge=[];for(let He of R){let at=[];for(let Tt of He){let qt=[Tt.x+fe[0],Tt.y+fe[1]];Qu(M,qt),at.push(qt)}ge.push(at)}if(M[2]-M[0]<=re/2){(De=M)[0]=De[1]=1/0,De[2]=De[3]=-1/0;for(let He of ge)for(let at of He)wo(at,M,D,re)}var De;return ge}class Al{constructor(M,D){this.type=ft,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${M.length-1} instead.`);if(ji(M[1])){let j=M[1];if(j.type==="FeatureCollection"){let re=[];for(let fe of j.features){let{type:ge,coordinates:De}=fe.geometry;ge==="Polygon"&&re.push(De),ge==="MultiPolygon"&&re.push(...De)}if(re.length)return new Al(j,{type:"MultiPolygon",coordinates:re})}else if(j.type==="Feature"){let re=j.geometry.type;if(re==="Polygon"||re==="MultiPolygon")return new Al(j,j.geometry)}else if(j.type==="Polygon"||j.type==="MultiPolygon")return new Al(j,j)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,j){let re=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],ge=D.canonicalID();if(j.type==="Polygon"){let De=Tl(j.coordinates,fe,ge),He=cf(D.geometry(),re,fe,ge);if(!Rl(re,fe))return!1;for(let at of He)if(!Xl(at,De))return!1}if(j.type==="MultiPolygon"){let De=uf(j.coordinates,fe,ge),He=cf(D.geometry(),re,fe,ge);if(!Rl(re,fe))return!1;for(let at of He)if(!Ec(at,De))return!1}return!0}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,j){let re=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],ge=D.canonicalID();if(j.type==="Polygon"){let De=Tl(j.coordinates,fe,ge),He=rh(D.geometry(),re,fe,ge);if(!Rl(re,fe))return!1;for(let at of He)if(!jn(at,De))return!1}if(j.type==="MultiPolygon"){let De=uf(j.coordinates,fe,ge),He=rh(D.geometry(),re,fe,ge);if(!Rl(re,fe))return!1;for(let at of He)if(!Mo(at,De))return!1}return!0}(M,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Hc=class{constructor(R=[],M=(D,j)=>Dj?1:0){if(this.data=R,this.length=this.data.length,this.compare=M,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],M=this.data.pop();return--this.length>0&&(this.data[0]=M,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:M,compare:D}=this,j=M[R];for(;R>0;){let re=R-1>>1,fe=M[re];if(D(j,fe)>=0)break;M[R]=fe,R=re}M[R]=j}_down(R){let{data:M,compare:D}=this,j=this.length>>1,re=M[R];for(;R=0)break;M[R]=M[fe],R=fe}M[R]=re}};function eu(R,M,D,j,re){Cs(R,M,D,j||R.length-1,re||kc)}function Cs(R,M,D,j,re){for(;j>D;){if(j-D>600){var fe=j-D+1,ge=M-D+1,De=Math.log(fe),He=.5*Math.exp(2*De/3),at=.5*Math.sqrt(De*He*(fe-He)/fe)*(ge-fe/2<0?-1:1);Cs(R,M,Math.max(D,Math.floor(M-ge*He/fe+at)),Math.min(j,Math.floor(M+(fe-ge)*He/fe+at)),re)}var Tt=R[M],qt=D,Qt=j;for(mu(R,D,M),re(R[j],Tt)>0&&mu(R,D,j);qt0;)Qt--}re(R[D],Tt)===0?mu(R,D,Qt):mu(R,++Qt,j),Qt<=M&&(D=Qt+1),M<=Qt&&(j=Qt-1)}}function mu(R,M,D){var j=R[M];R[M]=R[D],R[D]=j}function kc(R,M){return RM?1:0}function Of(R,M){if(R.length<=1)return[R];let D=[],j,re;for(let fe of R){let ge=vd(fe);ge!==0&&(fe.area=Math.abs(ge),re===void 0&&(re=ge<0),re===ge<0?(j&&D.push(j),j=[fe]):j.push(fe))}if(j&&D.push(j),M>1)for(let fe=0;fe1?(at=M[He+1][0],Tt=M[He+1][1]):sr>0&&(at+=qt/this.kx*sr,Tt+=Qt/this.ky*sr)),qt=this.wrap(D[0]-at)*this.kx,Qt=(D[1]-Tt)*this.ky;let wr=qt*qt+Qt*Qt;wr180;)M-=360;return M}}function Hl(R,M){return M[0]-R[0]}function Js(R){return R[1]-R[0]+1}function hc(R,M){return R[1]>=R[0]&&R[1]R[1])return[null,null];let D=Js(R);if(M){if(D===2)return[R,null];let re=Math.floor(D/2);return[[R[0],R[0]+re],[R[0]+re,R[1]]]}if(D===1)return[R,null];let j=Math.floor(D/2)-1;return[[R[0],R[0]+j],[R[0]+j+1,R[1]]]}function xs(R,M){if(!hc(M,R.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let j=M[0];j<=M[1];++j)Qu(D,R[j]);return D}function $s(R){let M=[1/0,1/0,-1/0,-1/0];for(let D of R)for(let j of D)Qu(M,j);return M}function us(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function Ms(R,M,D){if(!us(R)||!us(M))return NaN;let j=0,re=0;return R[2]M[2]&&(j=R[0]-M[2]),R[1]>M[3]&&(re=R[1]-M[3]),R[3]=j)return j;if(Rl(re,fe)){if(Od(R,M))return 0}else if(Od(M,R))return 0;let ge=1/0;for(let De of R)for(let He=0,at=De.length,Tt=at-1;He0;){let He=ge.pop();if(He[0]>=fe)continue;let at=He[1],Tt=M?50:100;if(Js(at)<=Tt){if(!hc(at,R.length))return NaN;if(M){let qt=_o(R,at,D,j);if(isNaN(qt)||qt===0)return qt;fe=Math.min(fe,qt)}else for(let qt=at[0];qt<=at[1];++qt){let Qt=ov(R[qt],D,j);if(fe=Math.min(fe,Qt),fe===0)return 0}}else{let qt=Cc(at,M);Xa(ge,fe,j,R,De,qt[0]),Xa(ge,fe,j,R,De,qt[1])}}return fe}function uu(R,M,D,j,re,fe=1/0){let ge=Math.min(fe,re.distance(R[0],D[0]));if(ge===0)return ge;let De=new Hc([[0,[0,R.length-1],[0,D.length-1]]],Hl);for(;De.length>0;){let He=De.pop();if(He[0]>=ge)continue;let at=He[1],Tt=He[2],qt=M?50:100,Qt=j?50:100;if(Js(at)<=qt&&Js(Tt)<=Qt){if(!hc(at,R.length)&&hc(Tt,D.length))return NaN;let sr;if(M&&j)sr=ec(R,at,D,Tt,re),ge=Math.min(ge,sr);else if(M&&!j){let wr=R.slice(at[0],at[1]+1);for(let Ir=Tt[0];Ir<=Tt[1];++Ir)if(sr=dc(D[Ir],wr,re),ge=Math.min(ge,sr),ge===0)return ge}else if(!M&&j){let wr=D.slice(Tt[0],Tt[1]+1);for(let Ir=at[0];Ir<=at[1];++Ir)if(sr=dc(R[Ir],wr,re),ge=Math.min(ge,sr),ge===0)return ge}else sr=Ls(R,at,D,Tt,re),ge=Math.min(ge,sr)}else{let sr=Cc(at,M),wr=Cc(Tt,j);Ef(De,ge,re,R,D,sr[0],wr[0]),Ef(De,ge,re,R,D,sr[0],wr[1]),Ef(De,ge,re,R,D,sr[1],wr[0]),Ef(De,ge,re,R,D,sr[1],wr[1])}}return ge}function Sh(R){return R.type==="MultiPolygon"?R.coordinates.map(M=>({type:"Polygon",coordinates:M})):R.type==="MultiLineString"?R.coordinates.map(M=>({type:"LineString",coordinates:M})):R.type==="MultiPoint"?R.coordinates.map(M=>({type:"Point",coordinates:M})):[R]}class jc{constructor(M,D){this.type=St,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${M.length-1} instead.`);if(ji(M[1])){let j=M[1];if(j.type==="FeatureCollection")return new jc(j,j.features.map(re=>Sh(re.geometry)).flat());if(j.type==="Feature")return new jc(j,Sh(j.geometry));if("type"in j&&"coordinates"in j)return new jc(j,Sh(j))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,j){let re=D.geometry(),fe=re.flat().map(He=>ua([He.x,He.y],D.canonical));if(re.length===0)return NaN;let ge=new ih(fe[0][1]),De=1/0;for(let He of j){switch(He.type){case"Point":De=Math.min(De,uu(fe,!1,[He.coordinates],!1,ge,De));break;case"LineString":De=Math.min(De,uu(fe,!1,He.coordinates,!0,ge,De));break;case"Polygon":De=Math.min(De,tc(fe,!1,He.coordinates,ge,De))}if(De===0)return De}return De}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,j){let re=D.geometry(),fe=re.flat().map(He=>ua([He.x,He.y],D.canonical));if(re.length===0)return NaN;let ge=new ih(fe[0][1]),De=1/0;for(let He of j){switch(He.type){case"Point":De=Math.min(De,uu(fe,!0,[He.coordinates],!1,ge,De));break;case"LineString":De=Math.min(De,uu(fe,!0,He.coordinates,!0,ge,De));break;case"Polygon":De=Math.min(De,tc(fe,!0,He.coordinates,ge,De))}if(De===0)return De}return De}(M,this.geometries);if(M.geometryType()==="Polygon")return function(D,j){let re=D.geometry();if(re.length===0||re[0].length===0)return NaN;let fe=Of(re,0).map(He=>He.map(at=>at.map(Tt=>ua([Tt.x,Tt.y],D.canonical)))),ge=new ih(fe[0][0][0][1]),De=1/0;for(let He of j)for(let at of fe){switch(He.type){case"Point":De=Math.min(De,tc([He.coordinates],!1,at,ge,De));break;case"LineString":De=Math.min(De,tc(He.coordinates,!0,at,ge,De));break;case"Polygon":De=Math.min(De,Yo(at,He.coordinates,ge,De))}if(De===0)return De}return De}(M,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let kf={"==":is,"!=":cl,">":ml,"<":ks,">=":Hs,"<=":Ys,array:Pa,at:Lr,boolean:Pa,case:ai,coalesce:Es,collator:Ao,format:Ql,image:Hu,in:Pr,"index-of":Xr,interpolate:mo,"interpolate-hcl":mo,"interpolate-lab":mo,length:fc,let:As,literal:Gn,match:bi,number:Pa,"number-format":ls,object:Pa,slice:Wi,step:Ui,string:Pa,"to-boolean":aa,"to-color":aa,"to-number":aa,"to-string":aa,var:wt,within:Al,distance:jc};class Sl{constructor(M,D,j,re){this.name=M,this.type=D,this._evaluate=j,this.args=re}evaluate(M){return this._evaluate(M,this.args)}eachChild(M){this.args.forEach(M)}outputDefined(){return!1}static parse(M,D){let j=M[0],re=Sl.definitions[j];if(!re)return D.error(`Unknown expression "${j}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(re)?re[0]:re.type,ge=Array.isArray(re)?[[re[1],re[2]]]:re.overloads,De=ge.filter(([at])=>!Array.isArray(at)||at.length===M.length-1),He=null;for(let[at,Tt]of De){He=new Vs(D.registry,kh,D.path,null,D.scope);let qt=[],Qt=!1;for(let sr=1;sr{return Qt=qt,Array.isArray(Qt)?`(${Qt.map(it).join(", ")})`:`(${it(Qt.type)}...)`;var Qt}).join(" | "),Tt=[];for(let qt=1;qt{D=M?D&&kh(j):D&&j instanceof Gn}),!!D&&Kh(R)&&ah(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Kh(R){if(R instanceof Sl&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof Al||R instanceof jc)return!1;let M=!0;return R.eachChild(D=>{M&&!Kh(D)&&(M=!1)}),M}function rc(R){if(R instanceof Sl&&R.name==="feature-state")return!1;let M=!0;return R.eachChild(D=>{M&&!rc(D)&&(M=!1)}),M}function ah(R,M){if(R instanceof Sl&&M.indexOf(R.name)>=0)return!1;let D=!0;return R.eachChild(j=>{D&&!ah(j,M)&&(D=!1)}),D}function Wc(R){return{result:"success",value:R}}function df(R){return{result:"error",value:R}}function Cu(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Nf(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Zc(R){return!!R.expression&&R.expression.interpolated}function cs(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function Ch(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Bd(R){return R}function Jh(R,M){let D=M.type==="color",j=R.stops&&typeof R.stops[0][0]=="object",re=j||!(j||R.property!==void 0),fe=R.type||(Zc(M)?"exponential":"interval");if(D||M.type==="padding"){let Tt=D?Wt.parse:Hr.parse;(R=Ge({},R)).stops&&(R.stops=R.stops.map(qt=>[qt[0],Tt(qt[1])])),R.default=Tt(R.default?R.default:M.default)}if(R.colorSpace&&(ge=R.colorSpace)!=="rgb"&&ge!=="hcl"&&ge!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var ge;let De,He,at;if(fe==="exponential")De=$h;else if(fe==="interval")De=Lu;else if(fe==="categorical"){De=pd,He=Object.create(null);for(let Tt of R.stops)He[Tt[0]]=Tt[1];at=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);De=tu}if(j){let Tt={},qt=[];for(let wr=0;wrwr[0]),evaluate:({zoom:wr},Ir)=>$h({stops:Qt,base:R.base},M,wr).evaluate(wr,Ir)}}if(re){let Tt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Tt,interpolationFactor:mo.interpolationFactor.bind(void 0,Tt),zoomStops:R.stops.map(qt=>qt[0]),evaluate:({zoom:qt})=>De(R,M,qt,He,at)}}return{kind:"source",evaluate(Tt,qt){let Qt=qt&&qt.properties?qt.properties[R.property]:void 0;return Qt===void 0?Cf(R.default,M.default):De(R,M,Qt,He,at)}}}function Cf(R,M,D){return R!==void 0?R:M!==void 0?M:D!==void 0?D:void 0}function pd(R,M,D,j,re){return Cf(typeof D===re?j[D]:void 0,R.default,M.default)}function Lu(R,M,D){if(cs(D)!=="number")return Cf(R.default,M.default);let j=R.stops.length;if(j===1||D<=R.stops[0][0])return R.stops[0][1];if(D>=R.stops[j-1][0])return R.stops[j-1][1];let re=ii(R.stops.map(fe=>fe[0]),D);return R.stops[re][1]}function $h(R,M,D){let j=R.base!==void 0?R.base:1;if(cs(D)!=="number")return Cf(R.default,M.default);let re=R.stops.length;if(re===1||D<=R.stops[0][0])return R.stops[0][1];if(D>=R.stops[re-1][0])return R.stops[re-1][1];let fe=ii(R.stops.map(Tt=>Tt[0]),D),ge=function(Tt,qt,Qt,sr){let wr=sr-Qt,Ir=Tt-Qt;return wr===0?0:qt===1?Ir/wr:(Math.pow(qt,Ir)-1)/(Math.pow(qt,wr)-1)}(D,j,R.stops[fe][0],R.stops[fe+1][0]),De=R.stops[fe][1],He=R.stops[fe+1][1],at=To[M.type]||Bd;return typeof De.evaluate=="function"?{evaluate(...Tt){let qt=De.evaluate.apply(void 0,Tt),Qt=He.evaluate.apply(void 0,Tt);if(qt!==void 0&&Qt!==void 0)return at(qt,Qt,ge,R.colorSpace)}}:at(De,He,ge,R.colorSpace)}function tu(R,M,D){switch(M.type){case"color":D=Wt.parse(D);break;case"formatted":D=Zr.fromString(D.toString());break;case"resolvedImage":D=ki.fromString(D.toString());break;case"padding":D=Hr.parse(D);break;default:cs(D)===M.type||M.type==="enum"&&M.values[D]||(D=void 0)}return Cf(D,R.default,M.default)}Sl.register(kf,{error:[{kind:"error"},[kt],(R,[M])=>{throw new sa(M.evaluate(R))}],typeof:[kt,[hr],(R,[M])=>it($i(M.evaluate(R)))],"to-rgba":[rt(St,4),[Gt],(R,[M])=>{let[D,j,re,fe]=M.evaluate(R).rgb;return[255*D,255*j,255*re,fe]}],rgb:[Gt,[St,St,St],Yh],rgba:[Gt,[St,St,St,St],Yh],has:{type:ft,overloads:[[[kt],(R,[M])=>Eh(M.evaluate(R),R.properties())],[[kt,$t],(R,[M,D])=>Eh(M.evaluate(R),D.evaluate(R))]]},get:{type:hr,overloads:[[[kt],(R,[M])=>nh(M.evaluate(R),R.properties())],[[kt,$t],(R,[M,D])=>nh(M.evaluate(R),D.evaluate(R))]]},"feature-state":[hr,[kt],(R,[M])=>nh(M.evaluate(R),R.featureState||{})],properties:[$t,[],R=>R.properties()],"geometry-type":[kt,[],R=>R.geometryType()],id:[hr,[],R=>R.id()],zoom:[St,[],R=>R.globals.zoom],"heatmap-density":[St,[],R=>R.globals.heatmapDensity||0],"line-progress":[St,[],R=>R.globals.lineProgress||0],accumulated:[hr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[St,hf(St),(R,M)=>{let D=0;for(let j of M)D+=j.evaluate(R);return D}],"*":[St,hf(St),(R,M)=>{let D=1;for(let j of M)D*=j.evaluate(R);return D}],"-":{type:St,overloads:[[[St,St],(R,[M,D])=>M.evaluate(R)-D.evaluate(R)],[[St],(R,[M])=>-M.evaluate(R)]]},"/":[St,[St,St],(R,[M,D])=>M.evaluate(R)/D.evaluate(R)],"%":[St,[St,St],(R,[M,D])=>M.evaluate(R)%D.evaluate(R)],ln2:[St,[],()=>Math.LN2],pi:[St,[],()=>Math.PI],e:[St,[],()=>Math.E],"^":[St,[St,St],(R,[M,D])=>Math.pow(M.evaluate(R),D.evaluate(R))],sqrt:[St,[St],(R,[M])=>Math.sqrt(M.evaluate(R))],log10:[St,[St],(R,[M])=>Math.log(M.evaluate(R))/Math.LN10],ln:[St,[St],(R,[M])=>Math.log(M.evaluate(R))],log2:[St,[St],(R,[M])=>Math.log(M.evaluate(R))/Math.LN2],sin:[St,[St],(R,[M])=>Math.sin(M.evaluate(R))],cos:[St,[St],(R,[M])=>Math.cos(M.evaluate(R))],tan:[St,[St],(R,[M])=>Math.tan(M.evaluate(R))],asin:[St,[St],(R,[M])=>Math.asin(M.evaluate(R))],acos:[St,[St],(R,[M])=>Math.acos(M.evaluate(R))],atan:[St,[St],(R,[M])=>Math.atan(M.evaluate(R))],min:[St,hf(St),(R,M)=>Math.min(...M.map(D=>D.evaluate(R)))],max:[St,hf(St),(R,M)=>Math.max(...M.map(D=>D.evaluate(R)))],abs:[St,[St],(R,[M])=>Math.abs(M.evaluate(R))],round:[St,[St],(R,[M])=>{let D=M.evaluate(R);return D<0?-Math.round(-D):Math.round(D)}],floor:[St,[St],(R,[M])=>Math.floor(M.evaluate(R))],ceil:[St,[St],(R,[M])=>Math.ceil(M.evaluate(R))],"filter-==":[ft,[kt,hr],(R,[M,D])=>R.properties()[M.value]===D.value],"filter-id-==":[ft,[hr],(R,[M])=>R.id()===M.value],"filter-type-==":[ft,[kt],(R,[M])=>R.geometryType()===M.value],"filter-<":[ft,[kt,hr],(R,[M,D])=>{let j=R.properties()[M.value],re=D.value;return typeof j==typeof re&&j{let D=R.id(),j=M.value;return typeof D==typeof j&&D":[ft,[kt,hr],(R,[M,D])=>{let j=R.properties()[M.value],re=D.value;return typeof j==typeof re&&j>re}],"filter-id->":[ft,[hr],(R,[M])=>{let D=R.id(),j=M.value;return typeof D==typeof j&&D>j}],"filter-<=":[ft,[kt,hr],(R,[M,D])=>{let j=R.properties()[M.value],re=D.value;return typeof j==typeof re&&j<=re}],"filter-id-<=":[ft,[hr],(R,[M])=>{let D=R.id(),j=M.value;return typeof D==typeof j&&D<=j}],"filter->=":[ft,[kt,hr],(R,[M,D])=>{let j=R.properties()[M.value],re=D.value;return typeof j==typeof re&&j>=re}],"filter-id->=":[ft,[hr],(R,[M])=>{let D=R.id(),j=M.value;return typeof D==typeof j&&D>=j}],"filter-has":[ft,[hr],(R,[M])=>M.value in R.properties()],"filter-has-id":[ft,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[ft,[rt(kt)],(R,[M])=>M.value.indexOf(R.geometryType())>=0],"filter-id-in":[ft,[rt(hr)],(R,[M])=>M.value.indexOf(R.id())>=0],"filter-in-small":[ft,[kt,rt(hr)],(R,[M,D])=>D.value.indexOf(R.properties()[M.value])>=0],"filter-in-large":[ft,[kt,rt(hr)],(R,[M,D])=>function(j,re,fe,ge){for(;fe<=ge;){let De=fe+ge>>1;if(re[De]===j)return!0;re[De]>j?ge=De-1:fe=De+1}return!1}(R.properties()[M.value],D.value,0,D.value.length-1)],all:{type:ft,overloads:[[[ft,ft],(R,[M,D])=>M.evaluate(R)&&D.evaluate(R)],[hf(ft),(R,M)=>{for(let D of M)if(!D.evaluate(R))return!1;return!0}]]},any:{type:ft,overloads:[[[ft,ft],(R,[M,D])=>M.evaluate(R)||D.evaluate(R)],[hf(ft),(R,M)=>{for(let D of M)if(D.evaluate(R))return!0;return!1}]]},"!":[ft,[ft],(R,[M])=>!M.evaluate(R)],"is-supported-script":[ft,[kt],(R,[M])=>{let D=R.globals&&R.globals.isSupportedScript;return!D||D(M.evaluate(R))}],upcase:[kt,[kt],(R,[M])=>M.evaluate(R).toUpperCase()],downcase:[kt,[kt],(R,[M])=>M.evaluate(R).toLowerCase()],concat:[kt,hf(hr),(R,M)=>M.map(D=>Sa(D.evaluate(R))).join("")],"resolved-locale":[kt,[_r],(R,[M])=>M.evaluate(R).resolvedLocale()]});class Pu{constructor(M,D){var j;this.expression=M,this._warningHistory={},this._evaluator=new _s,this._defaultValue=D?(j=D).type==="color"&&Ch(j.default)?new Wt(0,0,0,0):j.type==="color"?Wt.parse(j.default)||null:j.type==="padding"?Hr.parse(j.default)||null:j.type==="variableAnchorOffsetCollection"?Ei.parse(j.default)||null:j.default===void 0?null:j.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(M,D,j,re,fe,ge){return this._evaluator.globals=M,this._evaluator.feature=D,this._evaluator.featureState=j,this._evaluator.canonical=re,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=ge,this.expression.evaluate(this._evaluator)}evaluate(M,D,j,re,fe,ge){this._evaluator.globals=M,this._evaluator.feature=D||null,this._evaluator.featureState=j||null,this._evaluator.canonical=re,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=ge||null;try{let De=this.expression.evaluate(this._evaluator);if(De==null||typeof De=="number"&&De!=De)return this._defaultValue;if(this._enumValues&&!(De in this._enumValues))throw new sa(`Expected value to be one of ${Object.keys(this._enumValues).map(He=>JSON.stringify(He)).join(", ")}, but found ${JSON.stringify(De)} instead.`);return De}catch(De){return this._warningHistory[De.message]||(this._warningHistory[De.message]=!0,typeof console!="undefined"&&console.warn(De.message)),this._defaultValue}}}function Lc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in kf}function fl(R,M){let D=new Vs(kf,kh,[],M?function(re){let fe={color:Gt,string:kt,number:St,enum:kt,boolean:ft,formatted:Nr,padding:Br,resolvedImage:Ur,variableAnchorOffsetCollection:ut};return re.type==="array"?rt(fe[re.value]||hr,re.length):fe[re.type]}(M):void 0),j=D.parse(R,void 0,void 0,void 0,M&&M.type==="string"?{typeAnnotation:"coerce"}:void 0);return j?Wc(new Pu(j,M)):df(D.errors)}class Xc{constructor(M,D){this.kind=M,this._styleExpression=D,this.isStateDependent=M!=="constant"&&!rc(D.expression)}evaluateWithoutErrorHandling(M,D,j,re,fe,ge){return this._styleExpression.evaluateWithoutErrorHandling(M,D,j,re,fe,ge)}evaluate(M,D,j,re,fe,ge){return this._styleExpression.evaluate(M,D,j,re,fe,ge)}}class ic{constructor(M,D,j,re){this.kind=M,this.zoomStops=j,this._styleExpression=D,this.isStateDependent=M!=="camera"&&!rc(D.expression),this.interpolationType=re}evaluateWithoutErrorHandling(M,D,j,re,fe,ge){return this._styleExpression.evaluateWithoutErrorHandling(M,D,j,re,fe,ge)}evaluate(M,D,j,re,fe,ge){return this._styleExpression.evaluate(M,D,j,re,fe,ge)}interpolationFactor(M,D,j){return this.interpolationType?mo.interpolationFactor(this.interpolationType,M,D,j):0}}function yu(R,M){let D=fl(R,M);if(D.result==="error")return D;let j=D.value.expression,re=Kh(j);if(!re&&!Cu(M))return df([new yt("","data expressions not supported")]);let fe=ah(j,["zoom"]);if(!fe&&!Nf(M))return df([new yt("","zoom expressions not supported")]);let ge=Qh(j);return ge||fe?ge instanceof yt?df([ge]):ge instanceof mo&&!Zc(M)?df([new yt("",'"interpolate" expressions cannot be used with this property')]):Wc(ge?new ic(re?"camera":"composite",D.value,ge.labels,ge instanceof mo?ge.interpolation:void 0):new Xc(re?"constant":"source",D.value)):df([new yt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Qs{constructor(M,D){this._parameters=M,this._specification=D,Ge(this,Jh(this._parameters,this._specification))}static deserialize(M){return new Qs(M._parameters,M._specification)}static serialize(M){return{_parameters:M._parameters,_specification:M._specification}}}function Qh(R){let M=null;if(R instanceof As)M=Qh(R.result);else if(R instanceof Es){for(let D of R.args)if(M=Qh(D),M)break}else(R instanceof Ui||R instanceof mo)&&R.input instanceof Sl&&R.input.name==="zoom"&&(M=R);return M instanceof yt||R.eachChild(D=>{let j=Qh(D);j instanceof yt?M=j:!M&&j?M=new yt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):M&&j&&M!==j&&(M=new yt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),M}function gd(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let M of R.slice(1))if(!gd(M)&&typeof M!="boolean")return!1;return!0;default:return!0}}let Gu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Pc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};gd(R)||(R=Lf(R));let M=fl(R,Gu);if(M.result==="error")throw new Error(M.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,j,re)=>M.value.evaluate(D,j,{},re),needGeometry:sv(R)}}function vc(R,M){return RM?1:0}function sv(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let M=1;M"||M==="<="||M===">="?Uf(R[1],R[2],M):M==="any"?(D=R.slice(1),["any"].concat(D.map(Lf))):M==="all"?["all"].concat(R.slice(1).map(Lf)):M==="none"?["all"].concat(R.slice(1).map(Lf).map(ru)):M==="in"?Iu(R[1],R.slice(2)):M==="!in"?ru(Iu(R[1],R.slice(2))):M==="has"?oh(R[1]):M!=="!has"||ru(oh(R[1]));var D}function Uf(R,M,D){switch(R){case"$type":return[`filter-type-${D}`,M];case"$id":return[`filter-id-${D}`,M];default:return[`filter-${D}`,R,M]}}function Iu(R,M){if(M.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",M]];case"$id":return["filter-id-in",["literal",M]];default:return M.length>200&&!M.some(D=>typeof D!=typeof M[0])?["filter-in-large",R,["literal",M.sort(vc)]]:["filter-in-small",R,["literal",M]]}}function oh(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function ru(R){return["!",R]}function vf(R){let M=typeof R;if(M==="number"||M==="boolean"||M==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let re="[";for(let fe of R)re+=`${vf(fe)},`;return`${re}]`}let D=Object.keys(R).sort(),j="{";for(let re=0;rej.maximum?[new er(M,D,`${D} is greater than the maximum value ${j.maximum}`)]:[]}function Pf(R){let M=R.valueSpec,D=zs(R.value.type),j,re,fe,ge={},De=D!=="categorical"&&R.value.property===void 0,He=!De,at=cs(R.value.stops)==="array"&&cs(R.value.stops[0])==="array"&&cs(R.value.stops[0][0])==="object",Tt=xu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(sr){if(D==="identity")return[new er(sr.key,sr.value,'identity function may not have a "stops" property')];let wr=[],Ir=sr.value;return wr=wr.concat(Lh({key:sr.key,value:Ir,valueSpec:sr.valueSpec,validateSpec:sr.validateSpec,style:sr.style,styleSpec:sr.styleSpec,arrayElementValidator:qt})),cs(Ir)==="array"&&Ir.length===0&&wr.push(new er(sr.key,Ir,"array must have at least one stop")),wr},default:function(sr){return sr.validateSpec({key:sr.key,value:sr.value,valueSpec:M,validateSpec:sr.validateSpec,style:sr.style,styleSpec:sr.styleSpec})}}});return D==="identity"&&De&&Tt.push(new er(R.key,R.value,'missing required property "property"')),D==="identity"||R.value.stops||Tt.push(new er(R.key,R.value,'missing required property "stops"')),D==="exponential"&&R.valueSpec.expression&&!Zc(R.valueSpec)&&Tt.push(new er(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(He&&!Cu(R.valueSpec)?Tt.push(new er(R.key,R.value,"property functions not supported")):De&&!Nf(R.valueSpec)&&Tt.push(new er(R.key,R.value,"zoom functions not supported"))),D!=="categorical"&&!at||R.value.property!==void 0||Tt.push(new er(R.key,R.value,'"property" property is required')),Tt;function qt(sr){let wr=[],Ir=sr.value,ei=sr.key;if(cs(Ir)!=="array")return[new er(ei,Ir,`array expected, ${cs(Ir)} found`)];if(Ir.length!==2)return[new er(ei,Ir,`array length 2 expected, length ${Ir.length} found`)];if(at){if(cs(Ir[0])!=="object")return[new er(ei,Ir,`object expected, ${cs(Ir[0])} found`)];if(Ir[0].zoom===void 0)return[new er(ei,Ir,"object stop key must have zoom")];if(Ir[0].value===void 0)return[new er(ei,Ir,"object stop key must have value")];if(fe&&fe>zs(Ir[0].zoom))return[new er(ei,Ir[0].zoom,"stop zoom values must appear in ascending order")];zs(Ir[0].zoom)!==fe&&(fe=zs(Ir[0].zoom),re=void 0,ge={}),wr=wr.concat(xu({key:`${ei}[0]`,value:Ir[0],valueSpec:{zoom:{}},validateSpec:sr.validateSpec,style:sr.style,styleSpec:sr.styleSpec,objectElementValidators:{zoom:Ps,value:Qt}}))}else wr=wr.concat(Qt({key:`${ei}[0]`,value:Ir[0],valueSpec:{},validateSpec:sr.validateSpec,style:sr.style,styleSpec:sr.styleSpec},Ir));return Lc(_u(Ir[1]))?wr.concat([new er(`${ei}[1]`,Ir[1],"expressions are not allowed in function stops.")]):wr.concat(sr.validateSpec({key:`${ei}[1]`,value:Ir[1],valueSpec:M,validateSpec:sr.validateSpec,style:sr.style,styleSpec:sr.styleSpec}))}function Qt(sr,wr){let Ir=cs(sr.value),ei=zs(sr.value),si=sr.value!==null?sr.value:wr;if(j){if(Ir!==j)return[new er(sr.key,si,`${Ir} stop domain type must match previous stop domain type ${j}`)]}else j=Ir;if(Ir!=="number"&&Ir!=="string"&&Ir!=="boolean")return[new er(sr.key,si,"stop domain value must be a number, string, or boolean")];if(Ir!=="number"&&D!=="categorical"){let Fi=`number expected, ${Ir} found`;return Cu(M)&&D===void 0&&(Fi+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new er(sr.key,si,Fi)]}return D!=="categorical"||Ir!=="number"||isFinite(ei)&&Math.floor(ei)===ei?D!=="categorical"&&Ir==="number"&&re!==void 0&&einew er(`${R.key}${j.key}`,R.value,j.message));let D=M.value.expression||M.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!D.outputDefined())return[new er(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!rc(D))return[new er(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!rc(D))return[new er(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!ah(D,["zoom","feature-state"]))return[new er(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!Kh(D))return[new er(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function ju(R){let M=R.key,D=R.value,j=R.valueSpec,re=[];return Array.isArray(j.values)?j.values.indexOf(zs(D))===-1&&re.push(new er(M,D,`expected one of [${j.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(j.values).indexOf(zs(D))===-1&&re.push(new er(M,D,`expected one of [${Object.keys(j.values).join(", ")}], ${JSON.stringify(D)} found`)),re}function Vf(R){return gd(_u(R.value))?Ic(Ge({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):pc(R)}function pc(R){let M=R.value,D=R.key;if(cs(M)!=="array")return[new er(D,M,`array expected, ${cs(M)} found`)];let j=R.styleSpec,re,fe=[];if(M.length<1)return[new er(D,M,"filter array must have at least 1 element")];switch(fe=fe.concat(ju({key:`${D}[0]`,value:M[0],valueSpec:j.filter_operator,style:R.style,styleSpec:R.styleSpec})),zs(M[0])){case"<":case"<=":case">":case">=":M.length>=2&&zs(M[1])==="$type"&&fe.push(new er(D,M,`"$type" cannot be use with operator "${M[0]}"`));case"==":case"!=":M.length!==3&&fe.push(new er(D,M,`filter array for operator "${M[0]}" must have 3 elements`));case"in":case"!in":M.length>=2&&(re=cs(M[1]),re!=="string"&&fe.push(new er(`${D}[1]`,M[1],`string expected, ${re} found`)));for(let ge=2;ge{at in D&&M.push(new er(j,D[at],`"${at}" is prohibited for ref layers`))}),re.layers.forEach(at=>{zs(at.id)===De&&(He=at)}),He?He.ref?M.push(new er(j,D.ref,"ref cannot reference another ref layer")):ge=zs(He.type):M.push(new er(j,D.ref,`ref layer "${De}" not found`))}else if(ge!=="background")if(D.source){let He=re.sources&&re.sources[D.source],at=He&&zs(He.type);He?at==="vector"&&ge==="raster"?M.push(new er(j,D.source,`layer "${D.id}" requires a raster source`)):at!=="raster-dem"&&ge==="hillshade"?M.push(new er(j,D.source,`layer "${D.id}" requires a raster-dem source`)):at==="raster"&&ge!=="raster"?M.push(new er(j,D.source,`layer "${D.id}" requires a vector source`)):at!=="vector"||D["source-layer"]?at==="raster-dem"&&ge!=="hillshade"?M.push(new er(j,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):ge!=="line"||!D.paint||!D.paint["line-gradient"]||at==="geojson"&&He.lineMetrics||M.push(new er(j,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):M.push(new er(j,D,`layer "${D.id}" must specify a "source-layer"`)):M.push(new er(j,D.source,`source "${D.source}" not found`))}else M.push(new er(j,D,'missing required property "source"'));return M=M.concat(xu({key:j,value:D,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${j}.type`,value:D.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:D,objectKey:"type"}),filter:Vf,layout:He=>xu({layer:D,key:He.key,value:He.value,style:He.style,styleSpec:He.styleSpec,validateSpec:He.validateSpec,objectElementValidators:{"*":at=>Dl(Ge({layerType:ge},at))}}),paint:He=>xu({layer:D,key:He.key,value:He.value,style:He.style,styleSpec:He.styleSpec,validateSpec:He.validateSpec,objectElementValidators:{"*":at=>Ph(Ge({layerType:ge},at))}})}})),M}function Wu(R){let M=R.value,D=R.key,j=cs(M);return j!=="string"?[new er(D,M,`string expected, ${j} found`)]:[]}let Rc={promoteId:function({key:R,value:M}){if(cs(M)==="string")return Wu({key:R,value:M});{let D=[];for(let j in M)D.push(...Wu({key:`${R}.${j}`,value:M[j]}));return D}}};function gc(R){let M=R.value,D=R.key,j=R.styleSpec,re=R.style,fe=R.validateSpec;if(!M.type)return[new er(D,M,'"type" is required')];let ge=zs(M.type),De;switch(ge){case"vector":case"raster":return De=xu({key:D,value:M,valueSpec:j[`source_${ge.replace("-","_")}`],style:R.style,styleSpec:j,objectElementValidators:Rc,validateSpec:fe}),De;case"raster-dem":return De=function(He){var at;let Tt=(at=He.sourceName)!==null&&at!==void 0?at:"",qt=He.value,Qt=He.styleSpec,sr=Qt.source_raster_dem,wr=He.style,Ir=[],ei=cs(qt);if(qt===void 0)return Ir;if(ei!=="object")return Ir.push(new er("source_raster_dem",qt,`object expected, ${ei} found`)),Ir;let si=zs(qt.encoding)==="custom",Fi=["redFactor","greenFactor","blueFactor","baseShift"],gi=He.value.encoding?`"${He.value.encoding}"`:"Default";for(let Li in qt)!si&&Fi.includes(Li)?Ir.push(new er(Li,qt[Li],`In "${Tt}": "${Li}" is only valid when "encoding" is set to "custom". ${gi} encoding found`)):sr[Li]?Ir=Ir.concat(He.validateSpec({key:Li,value:qt[Li],valueSpec:sr[Li],validateSpec:He.validateSpec,style:wr,styleSpec:Qt})):Ir.push(new er(Li,qt[Li],`unknown property "${Li}"`));return Ir}({sourceName:D,value:M,style:R.style,styleSpec:j,validateSpec:fe}),De;case"geojson":if(De=xu({key:D,value:M,valueSpec:j.source_geojson,style:re,styleSpec:j,validateSpec:fe,objectElementValidators:Rc}),M.cluster)for(let He in M.clusterProperties){let[at,Tt]=M.clusterProperties[He],qt=typeof at=="string"?[at,["accumulated"],["get",He]]:at;De.push(...Ic({key:`${D}.${He}.map`,value:Tt,validateSpec:fe,expressionContext:"cluster-map"})),De.push(...Ic({key:`${D}.${He}.reduce`,value:qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return De;case"video":return xu({key:D,value:M,valueSpec:j.source_video,style:re,validateSpec:fe,styleSpec:j});case"image":return xu({key:D,value:M,valueSpec:j.source_image,style:re,validateSpec:fe,styleSpec:j});case"canvas":return[new er(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return ju({key:`${D}.type`,value:M.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:re,validateSpec:fe,styleSpec:j})}}function hl(R){let M=R.value,D=R.styleSpec,j=D.light,re=R.style,fe=[],ge=cs(M);if(M===void 0)return fe;if(ge!=="object")return fe=fe.concat([new er("light",M,`object expected, ${ge} found`)]),fe;for(let De in M){let He=De.match(/^(.*)-transition$/);fe=fe.concat(He&&j[He[1]]&&j[He[1]].transition?R.validateSpec({key:De,value:M[De],valueSpec:D.transition,validateSpec:R.validateSpec,style:re,styleSpec:D}):j[De]?R.validateSpec({key:De,value:M[De],valueSpec:j[De],validateSpec:R.validateSpec,style:re,styleSpec:D}):[new er(De,M[De],`unknown property "${De}"`)])}return fe}function iu(R){let M=R.value,D=R.styleSpec,j=D.sky,re=R.style,fe=cs(M);if(M===void 0)return[];if(fe!=="object")return[new er("sky",M,`object expected, ${fe} found`)];let ge=[];for(let De in M)ge=ge.concat(j[De]?R.validateSpec({key:De,value:M[De],valueSpec:j[De],style:re,styleSpec:D}):[new er(De,M[De],`unknown property "${De}"`)]);return ge}function mc(R){let M=R.value,D=R.styleSpec,j=D.terrain,re=R.style,fe=[],ge=cs(M);if(M===void 0)return fe;if(ge!=="object")return fe=fe.concat([new er("terrain",M,`object expected, ${ge} found`)]),fe;for(let De in M)fe=fe.concat(j[De]?R.validateSpec({key:De,value:M[De],valueSpec:j[De],validateSpec:R.validateSpec,style:re,styleSpec:D}):[new er(De,M[De],`unknown property "${De}"`)]);return fe}function Yc(R){let M=[],D=R.value,j=R.key;if(Array.isArray(D)){let re=[],fe=[];for(let ge in D)D[ge].id&&re.includes(D[ge].id)&&M.push(new er(j,D,`all the sprites' ids must be unique, but ${D[ge].id} is duplicated`)),re.push(D[ge].id),D[ge].url&&fe.includes(D[ge].url)&&M.push(new er(j,D,`all the sprites' URLs must be unique, but ${D[ge].url} is duplicated`)),fe.push(D[ge].url),M=M.concat(xu({key:`${j}[${ge}]`,value:D[ge],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return M}return Wu({key:j,value:D})}let nc={"*":()=>[],array:Lh,boolean:function(R){let M=R.value,D=R.key,j=cs(M);return j!=="boolean"?[new er(D,M,`boolean expected, ${j} found`)]:[]},number:Ps,color:function(R){let M=R.key,D=R.value,j=cs(D);return j!=="string"?[new er(M,D,`color expected, ${j} found`)]:Wt.parse(String(D))?[]:[new er(M,D,`color expected, "${D}" found`)]},constants:sh,enum:ju,filter:Vf,function:Pf,layer:Ih,object:xu,source:gc,light:hl,sky:iu,terrain:mc,projection:function(R){let M=R.value,D=R.styleSpec,j=D.projection,re=R.style,fe=cs(M);if(M===void 0)return[];if(fe!=="object")return[new er("projection",M,`object expected, ${fe} found`)];let ge=[];for(let De in M)ge=ge.concat(j[De]?R.validateSpec({key:De,value:M[De],valueSpec:j[De],style:re,styleSpec:D}):[new er(De,M[De],`unknown property "${De}"`)]);return ge},string:Wu,formatted:function(R){return Wu(R).length===0?[]:Ic(R)},resolvedImage:function(R){return Wu(R).length===0?[]:Ic(R)},padding:function(R){let M=R.key,D=R.value;if(cs(D)==="array"){if(D.length<1||D.length>4)return[new er(M,D,`padding requires 1 to 4 values; ${D.length} values found`)];let j={type:"number"},re=[];for(let fe=0;fe[]}})),R.constants&&(D=D.concat(sh({key:"constants",value:R.constants,style:R,styleSpec:M,validateSpec:gf}))),vr(D)}function br(R){return function(M){return R(cee(uee({},M),{validateSpec:gf}))}}function vr(R){return[].concat(R).sort((M,D)=>M.line-D.line)}function Vr(R){return function(...M){return vr(R.apply(this,M))}}Nt.source=Vr(br(gc)),Nt.sprite=Vr(br(Yc)),Nt.glyphs=Vr(br(pt)),Nt.light=Vr(br(hl)),Nt.sky=Vr(br(iu)),Nt.terrain=Vr(br(mc)),Nt.layer=Vr(br(Ih)),Nt.filter=Vr(br(Vf)),Nt.paintProperty=Vr(br(Ph)),Nt.layoutProperty=Vr(br(Dl));let di=Nt,wi=di.light,qi=di.sky,Ji=di.paintProperty,hn=di.layoutProperty;function Mi(R,M){let D=!1;if(M&&M.length)for(let j of M)R.fire(new Le(new Error(j.message))),D=!0;return D}class Oi{constructor(M,D,j){let re=this.cells=[];if(M instanceof ArrayBuffer){this.arrayBuffer=M;let ge=new Int32Array(this.arrayBuffer);M=ge[0],this.d=(D=ge[1])+2*(j=ge[2]);for(let He=0;He=qt[wr+0]&&re>=qt[wr+1])?(De[sr]=!0,ge.push(Tt[sr])):De[sr]=!1}}}}_forEachCell(M,D,j,re,fe,ge,De,He){let at=this._convertToCellCoord(M),Tt=this._convertToCellCoord(D),qt=this._convertToCellCoord(j),Qt=this._convertToCellCoord(re);for(let sr=at;sr<=qt;sr++)for(let wr=Tt;wr<=Qt;wr++){let Ir=this.d*wr+sr;if((!He||He(this._convertFromCellCoord(sr),this._convertFromCellCoord(wr),this._convertFromCellCoord(sr+1),this._convertFromCellCoord(wr+1)))&&fe.call(this,M,D,j,re,Ir,ge,De,He))return}}_convertFromCellCoord(M){return(M-this.padding)/this.scale}_convertToCellCoord(M){return Math.max(0,Math.min(this.d-1,Math.floor(M*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let M=this.cells,D=3+this.cells.length+1+1,j=0;for(let ge=0;ge=0)continue;let ge=R[fe];re[fe]=Di[D].shallow.indexOf(fe)>=0?ge:Ma(ge,M)}R instanceof Error&&(re.message=R.message)}if(re.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(re.$name=D),re}function za(R){if(wa(R))return R;if(Array.isArray(R))return R.map(za);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let M=Aa(R)||"Object";if(!Di[M])throw new Error(`can't deserialize unregistered class ${M}`);let{klass:D}=Di[M];if(!D)throw new Error(`can't deserialize unregistered class ${M}`);if(D.deserialize)return D.deserialize(R);let j=Object.create(D.prototype);for(let re of Object.keys(R)){if(re==="$name")continue;let fe=R[re];j[re]=Di[M].shallow.indexOf(re)>=0?fe:za(fe)}return j}class kn{constructor(){this.first=!0}update(M,D){let j=Math.floor(M);return this.first?(this.first=!1,this.lastIntegerZoom=j,this.lastIntegerZoomTime=0,this.lastZoom=M,this.lastFloorZoom=j,!0):(this.lastFloorZoom>j?(this.lastIntegerZoom=j+1,this.lastIntegerZoomTime=D):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ba(R){for(let M of R)if(Fo(M.charCodeAt(0)))return!0;return!1}function ho(R){for(let M of R)if(!Ko(M.charCodeAt(0)))return!1;return!0}function jo(R){let M=R.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(j){return null}}).filter(D=>D);return new RegExp(M.join("|"),"u")}let bs=jo(["Arab","Dupl","Mong","Ougr","Syrc"]);function Ko(R){return!bs.test(String.fromCodePoint(R))}let ps=jo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Fo(R){return!(R!==746&&R!==747&&(R<4352||!(sn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||sn["CJK Compatibility"](R)||sn["CJK Strokes"](R)||!(!sn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||sn["Enclosed CJK Letters and Months"](R)||sn["Ideographic Description Characters"](R)||sn.Kanbun(R)||sn.Katakana(R)&&R!==12540||!(!sn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!sn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||sn["Vertical Forms"](R)||sn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||ps.test(String.fromCodePoint(R)))))}function yl(R){return!(Fo(R)||function(M){return!!(sn["Latin-1 Supplement"](M)&&(M===167||M===169||M===174||M===177||M===188||M===189||M===190||M===215||M===247)||sn["General Punctuation"](M)&&(M===8214||M===8224||M===8225||M===8240||M===8241||M===8251||M===8252||M===8258||M===8263||M===8264||M===8265||M===8273)||sn["Letterlike Symbols"](M)||sn["Number Forms"](M)||sn["Miscellaneous Technical"](M)&&(M>=8960&&M<=8967||M>=8972&&M<=8991||M>=8996&&M<=9e3||M===9003||M>=9085&&M<=9114||M>=9150&&M<=9165||M===9167||M>=9169&&M<=9179||M>=9186&&M<=9215)||sn["Control Pictures"](M)&&M!==9251||sn["Optical Character Recognition"](M)||sn["Enclosed Alphanumerics"](M)||sn["Geometric Shapes"](M)||sn["Miscellaneous Symbols"](M)&&!(M>=9754&&M<=9759)||sn["Miscellaneous Symbols and Arrows"](M)&&(M>=11026&&M<=11055||M>=11088&&M<=11097||M>=11192&&M<=11243)||sn["CJK Symbols and Punctuation"](M)||sn.Katakana(M)||sn["Private Use Area"](M)||sn["CJK Compatibility Forms"](M)||sn["Small Form Variants"](M)||sn["Halfwidth and Fullwidth Forms"](M)||M===8734||M===8756||M===8757||M>=9984&&M<=10087||M>=10102&&M<=10131||M===65532||M===65533)}(R))}let Gs=jo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Is(R){return Gs.test(String.fromCodePoint(R))}function ra(R,M){return!(!M&&Is(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||sn.Khmer(R))}function Za(R){for(let M of R)if(Is(M.charCodeAt(0)))return!0;return!1}let fs=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class Zo{constructor(M,D){this.zoom=M,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new kn,this.transition={})}isSupportedScript(M){return function(D,j){for(let re of D)if(!ra(re.charCodeAt(0),j))return!1;return!0}(M,fs.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let M=this.zoom,D=M-Math.floor(M),j=this.crossFadingFactor();return M>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*j}:{fromScale:.5,toScale:1,t:1-(1-j)*D}}}class nu{constructor(M,D){this.property=M,this.value=D,this.expression=function(j,re){if(Ch(j))return new Qs(j,re);if(Lc(j)){let fe=yu(j,re);if(fe.result==="error")throw new Error(fe.value.map(ge=>`${ge.key}: ${ge.message}`).join(", "));return fe.value}{let fe=j;return re.type==="color"&&typeof j=="string"?fe=Wt.parse(j):re.type!=="padding"||typeof j!="number"&&!Array.isArray(j)?re.type==="variableAnchorOffsetCollection"&&Array.isArray(j)&&(fe=Ei.parse(j)):fe=Hr.parse(j),{kind:"constant",evaluate:()=>fe}}}(D===void 0?M.specification.default:D,M.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(M,D,j){return this.property.possiblyEvaluate(this,M,D,j)}}class Ru{constructor(M){this.property=M,this.value=new nu(M,void 0)}transitioned(M,D){return new mf(this.property,this.value,D,L({},M.transition,this.transition),M.now)}untransitioned(){return new mf(this.property,this.value,null,{},0)}}class ac{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitionablePropertyValues)}getValue(M){return g(this._values[M].value.value)}setValue(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new Ru(this._values[M].property)),this._values[M].value=new nu(this._values[M].property,D===null?void 0:g(D))}getTransition(M){return g(this._values[M].transition)}setTransition(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new Ru(this._values[M].property)),this._values[M].transition=g(D)||void 0}serialize(){let M={};for(let D of Object.keys(this._values)){let j=this.getValue(D);j!==void 0&&(M[D]=j);let re=this.getTransition(D);re!==void 0&&(M[`${D}-transition`]=re)}return M}transitioned(M,D){let j=new bu(this._properties);for(let re of Object.keys(this._values))j._values[re]=this._values[re].transitioned(M,D._values[re]);return j}untransitioned(){let M=new bu(this._properties);for(let D of Object.keys(this._values))M._values[D]=this._values[D].untransitioned();return M}}class mf{constructor(M,D,j,re,fe){this.property=M,this.value=D,this.begin=fe+re.delay||0,this.end=this.begin+re.duration||0,M.specification.transition&&(re.delay||re.duration)&&(this.prior=j)}possiblyEvaluate(M,D,j){let re=M.now||0,fe=this.value.possiblyEvaluate(M,D,j),ge=this.prior;if(ge){if(re>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(re=1)return 1;let at=He*He,Tt=at*He;return 4*(He<.5?Tt:3*(He-at)+Tt-.75)}(De))}}return fe}}class bu{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitioningPropertyValues)}possiblyEvaluate(M,D,j){let re=new Dc(this._properties);for(let fe of Object.keys(this._values))re._values[fe]=this._values[fe].possiblyEvaluate(M,D,j);return re}hasTransition(){for(let M of Object.keys(this._values))if(this._values[M].prior)return!0;return!1}}class Kc{constructor(M){this._properties=M,this._values=Object.create(M.defaultPropertyValues)}hasValue(M){return this._values[M].value!==void 0}getValue(M){return g(this._values[M].value)}setValue(M,D){this._values[M]=new nu(this._values[M].property,D===null?void 0:g(D))}serialize(){let M={};for(let D of Object.keys(this._values)){let j=this.getValue(D);j!==void 0&&(M[D]=j)}return M}possiblyEvaluate(M,D,j){let re=new Dc(this._properties);for(let fe of Object.keys(this._values))re._values[fe]=this._values[fe].possiblyEvaluate(M,D,j);return re}}class Du{constructor(M,D,j){this.property=M,this.value=D,this.parameters=j}isConstant(){return this.value.kind==="constant"}constantOr(M){return this.value.kind==="constant"?this.value.value:M}evaluate(M,D,j,re){return this.property.evaluate(this.value,this.parameters,M,D,j,re)}}class Dc{constructor(M){this._properties=M,this._values=Object.create(M.defaultPossiblyEvaluatedValues)}get(M){return this._values[M]}}class Ia{constructor(M){this.specification=M}possiblyEvaluate(M,D){if(M.isDataDriven())throw new Error("Value should not be data driven");return M.expression.evaluate(D)}interpolate(M,D,j){let re=To[this.specification.type];return re?re(M,D,j):M}}class Ja{constructor(M,D){this.specification=M,this.overrides=D}possiblyEvaluate(M,D,j,re){return new Du(this,M.expression.kind==="constant"||M.expression.kind==="camera"?{kind:"constant",value:M.expression.evaluate(D,null,{},j,re)}:M.expression,D)}interpolate(M,D,j){if(M.value.kind!=="constant"||D.value.kind!=="constant")return M;if(M.value.value===void 0||D.value.value===void 0)return new Du(this,{kind:"constant",value:void 0},M.parameters);let re=To[this.specification.type];if(re){let fe=re(M.value.value,D.value.value,j);return new Du(this,{kind:"constant",value:fe},M.parameters)}return M}evaluate(M,D,j,re,fe,ge){return M.kind==="constant"?M.value:M.evaluate(D,j,re,fe,ge)}}class Jc extends Ja{possiblyEvaluate(M,D,j,re){if(M.value===void 0)return new Du(this,{kind:"constant",value:void 0},D);if(M.expression.kind==="constant"){let fe=M.expression.evaluate(D,null,{},j,re),ge=M.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,De=this._calculate(ge,ge,ge,D);return new Du(this,{kind:"constant",value:De},D)}if(M.expression.kind==="camera"){let fe=this._calculate(M.expression.evaluate({zoom:D.zoom-1}),M.expression.evaluate({zoom:D.zoom}),M.expression.evaluate({zoom:D.zoom+1}),D);return new Du(this,{kind:"constant",value:fe},D)}return new Du(this,M.expression,D)}evaluate(M,D,j,re,fe,ge){if(M.kind==="source"){let De=M.evaluate(D,j,re,fe,ge);return this._calculate(De,De,De,D)}return M.kind==="composite"?this._calculate(M.evaluate({zoom:Math.floor(D.zoom)-1},j,re),M.evaluate({zoom:Math.floor(D.zoom)},j,re),M.evaluate({zoom:Math.floor(D.zoom)+1},j,re),D):M.value}_calculate(M,D,j,re){return re.zoom>re.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:j,to:D}}interpolate(M){return M}}class yc{constructor(M){this.specification=M}possiblyEvaluate(M,D,j,re){if(M.value!==void 0){if(M.expression.kind==="constant"){let fe=M.expression.evaluate(D,null,{},j,re);return this._calculate(fe,fe,fe,D)}return this._calculate(M.expression.evaluate(new Zo(Math.floor(D.zoom-1),D)),M.expression.evaluate(new Zo(Math.floor(D.zoom),D)),M.expression.evaluate(new Zo(Math.floor(D.zoom+1),D)),D)}}_calculate(M,D,j,re){return re.zoom>re.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:j,to:D}}interpolate(M){return M}}class _c{constructor(M){this.specification=M}possiblyEvaluate(M,D,j,re){return!!M.expression.evaluate(D,null,{},j,re)}interpolate(){return!1}}class ue{constructor(M){this.properties=M,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in M){let j=M[D];j.specification.overridable&&this.overridableProperties.push(D);let re=this.defaultPropertyValues[D]=new nu(j,void 0),fe=this.defaultTransitionablePropertyValues[D]=new Ru(j);this.defaultTransitioningPropertyValues[D]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=re.possiblyEvaluate({})}}}yi("DataDrivenProperty",Ja),yi("DataConstantProperty",Ia),yi("CrossFadedDataDrivenProperty",Jc),yi("CrossFadedProperty",yc),yi("ColorRampProperty",_c);let w="-transition";class B extends je{constructor(M,D){if(super(),this.id=M.id,this.type=M.type,this._featureFilter={filter:()=>!0,needGeometry:!1},M.type!=="custom"&&(this.metadata=M.metadata,this.minzoom=M.minzoom,this.maxzoom=M.maxzoom,M.type!=="background"&&(this.source=M.source,this.sourceLayer=M["source-layer"],this.filter=M.filter),D.layout&&(this._unevaluatedLayout=new Kc(D.layout)),D.paint)){this._transitionablePaint=new ac(D.paint);for(let j in M.paint)this.setPaintProperty(j,M.paint[j],{validate:!1});for(let j in M.layout)this.setLayoutProperty(j,M.layout[j],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Dc(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(M){return M==="visibility"?this.visibility:this._unevaluatedLayout.getValue(M)}setLayoutProperty(M,D,j={}){D!=null&&this._validate(hn,`layers.${this.id}.layout.${M}`,M,D,j)||(M!=="visibility"?this._unevaluatedLayout.setValue(M,D):this.visibility=D)}getPaintProperty(M){return M.endsWith(w)?this._transitionablePaint.getTransition(M.slice(0,-11)):this._transitionablePaint.getValue(M)}setPaintProperty(M,D,j={}){if(D!=null&&this._validate(Ji,`layers.${this.id}.paint.${M}`,M,D,j))return!1;if(M.endsWith(w))return this._transitionablePaint.setTransition(M.slice(0,-11),D||void 0),!1;{let re=this._transitionablePaint._values[M],fe=re.property.specification["property-type"]==="cross-faded-data-driven",ge=re.value.isDataDriven(),De=re.value;this._transitionablePaint.setValue(M,D),this._handleSpecialPaintPropertyUpdate(M);let He=this._transitionablePaint._values[M].value;return He.isDataDriven()||ge||fe||this._handleOverridablePaintPropertyUpdate(M,De,He)}}_handleSpecialPaintPropertyUpdate(M){}_handleOverridablePaintPropertyUpdate(M,D,j){return!1}isHidden(M){return!!(this.minzoom&&M=this.maxzoom)||this.visibility==="none"}updateTransitions(M){this._transitioningPaint=this._transitionablePaint.transitioned(M,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(M,D){M.getCrossfadeParameters&&(this._crossfadeParameters=M.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(M,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(M,void 0,D)}serialize(){let M={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(M.layout=M.layout||{},M.layout.visibility=this.visibility),S(M,(D,j)=>!(D===void 0||j==="layout"&&!Object.keys(D).length||j==="paint"&&!Object.keys(D).length))}_validate(M,D,j,re,fe={}){return(!fe||fe.validate!==!1)&&Mi(this,M.call(di,{key:D,layerType:this.type,objectKey:j,value:re,styleSpec:Se,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let M in this.paint._values){let D=this.paint.get(M);if(D instanceof Du&&Cu(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let ee={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class te{constructor(M,D){this._structArray=M,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class se{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(M,D){return M._trim(),D&&(M.isTransferred=!0,D.push(M.arrayBuffer)),{length:M.length,arrayBuffer:M.arrayBuffer}}static deserialize(M){let D=Object.create(this.prototype);return D.arrayBuffer=M.arrayBuffer,D.length=M.length,D.capacity=M.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(M){this.reserve(M),this.length=M}reserve(M){if(M>this.capacity){this.capacity=Math.max(M,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Fe(R,M=1){let D=0,j=0;return{members:R.map(re=>{let fe=ee[re.type].BYTES_PER_ELEMENT,ge=D=Ue(D,Math.max(M,fe)),De=re.components||1;return j=Math.max(j,fe),D+=fe*De,{name:re.name,type:re.type,components:De,offset:ge}}),size:Ue(D,Math.max(j,M)),alignment:M}}function Ue(R,M){return Math.ceil(R/M)*M}class tt extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D){let j=this.length;return this.resize(j+1),this.emplace(j,M,D)}emplace(M,D,j){let re=2*M;return this.int16[re+0]=D,this.int16[re+1]=j,M}}tt.prototype.bytesPerElement=4,yi("StructArrayLayout2i4",tt);class mt extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j){let re=this.length;return this.resize(re+1),this.emplace(re,M,D,j)}emplace(M,D,j,re){let fe=3*M;return this.int16[fe+0]=D,this.int16[fe+1]=j,this.int16[fe+2]=re,M}}mt.prototype.bytesPerElement=6,yi("StructArrayLayout3i6",mt);class Bt extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re){let fe=this.length;return this.resize(fe+1),this.emplace(fe,M,D,j,re)}emplace(M,D,j,re,fe){let ge=4*M;return this.int16[ge+0]=D,this.int16[ge+1]=j,this.int16[ge+2]=re,this.int16[ge+3]=fe,M}}Bt.prototype.bytesPerElement=8,yi("StructArrayLayout4i8",Bt);class Ut extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge){let De=this.length;return this.resize(De+1),this.emplace(De,M,D,j,re,fe,ge)}emplace(M,D,j,re,fe,ge,De){let He=6*M;return this.int16[He+0]=D,this.int16[He+1]=j,this.int16[He+2]=re,this.int16[He+3]=fe,this.int16[He+4]=ge,this.int16[He+5]=De,M}}Ut.prototype.bytesPerElement=12,yi("StructArrayLayout2i4i12",Ut);class fr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge){let De=this.length;return this.resize(De+1),this.emplace(De,M,D,j,re,fe,ge)}emplace(M,D,j,re,fe,ge,De){let He=4*M,at=8*M;return this.int16[He+0]=D,this.int16[He+1]=j,this.uint8[at+4]=re,this.uint8[at+5]=fe,this.uint8[at+6]=ge,this.uint8[at+7]=De,M}}fr.prototype.bytesPerElement=8,yi("StructArrayLayout2i4ub8",fr);class Ar extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D){let j=this.length;return this.resize(j+1),this.emplace(j,M,D)}emplace(M,D,j){let re=2*M;return this.float32[re+0]=D,this.float32[re+1]=j,M}}Ar.prototype.bytesPerElement=8,yi("StructArrayLayout2f8",Ar);class de extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge,De,He,at,Tt){let qt=this.length;return this.resize(qt+1),this.emplace(qt,M,D,j,re,fe,ge,De,He,at,Tt)}emplace(M,D,j,re,fe,ge,De,He,at,Tt,qt){let Qt=10*M;return this.uint16[Qt+0]=D,this.uint16[Qt+1]=j,this.uint16[Qt+2]=re,this.uint16[Qt+3]=fe,this.uint16[Qt+4]=ge,this.uint16[Qt+5]=De,this.uint16[Qt+6]=He,this.uint16[Qt+7]=at,this.uint16[Qt+8]=Tt,this.uint16[Qt+9]=qt,M}}de.prototype.bytesPerElement=20,yi("StructArrayLayout10ui20",de);class Te extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt){let sr=this.length;return this.resize(sr+1),this.emplace(sr,M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt)}emplace(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr){let wr=12*M;return this.int16[wr+0]=D,this.int16[wr+1]=j,this.int16[wr+2]=re,this.int16[wr+3]=fe,this.uint16[wr+4]=ge,this.uint16[wr+5]=De,this.uint16[wr+6]=He,this.uint16[wr+7]=at,this.int16[wr+8]=Tt,this.int16[wr+9]=qt,this.int16[wr+10]=Qt,this.int16[wr+11]=sr,M}}Te.prototype.bytesPerElement=24,yi("StructArrayLayout4i4ui4i24",Te);class Pe extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,j){let re=this.length;return this.resize(re+1),this.emplace(re,M,D,j)}emplace(M,D,j,re){let fe=3*M;return this.float32[fe+0]=D,this.float32[fe+1]=j,this.float32[fe+2]=re,M}}Pe.prototype.bytesPerElement=12,yi("StructArrayLayout3f12",Pe);class qe extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint32[1*M+0]=D,M}}qe.prototype.bytesPerElement=4,yi("StructArrayLayout1ul4",qe);class We extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge,De,He,at){let Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,M,D,j,re,fe,ge,De,He,at)}emplace(M,D,j,re,fe,ge,De,He,at,Tt){let qt=10*M,Qt=5*M;return this.int16[qt+0]=D,this.int16[qt+1]=j,this.int16[qt+2]=re,this.int16[qt+3]=fe,this.int16[qt+4]=ge,this.int16[qt+5]=De,this.uint32[Qt+3]=He,this.uint16[qt+8]=at,this.uint16[qt+9]=Tt,M}}We.prototype.bytesPerElement=20,yi("StructArrayLayout6i1ul2ui20",We);class Ne extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge){let De=this.length;return this.resize(De+1),this.emplace(De,M,D,j,re,fe,ge)}emplace(M,D,j,re,fe,ge,De){let He=6*M;return this.int16[He+0]=D,this.int16[He+1]=j,this.int16[He+2]=re,this.int16[He+3]=fe,this.int16[He+4]=ge,this.int16[He+5]=De,M}}Ne.prototype.bytesPerElement=12,yi("StructArrayLayout2i2i2i12",Ne);class $e extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe){let ge=this.length;return this.resize(ge+1),this.emplace(ge,M,D,j,re,fe)}emplace(M,D,j,re,fe,ge){let De=4*M,He=8*M;return this.float32[De+0]=D,this.float32[De+1]=j,this.float32[De+2]=re,this.int16[He+6]=fe,this.int16[He+7]=ge,M}}$e.prototype.bytesPerElement=16,yi("StructArrayLayout2f1f2i16",$e);class Et extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge){let De=this.length;return this.resize(De+1),this.emplace(De,M,D,j,re,fe,ge)}emplace(M,D,j,re,fe,ge,De){let He=16*M,at=4*M,Tt=8*M;return this.uint8[He+0]=D,this.uint8[He+1]=j,this.float32[at+1]=re,this.float32[at+2]=fe,this.int16[Tt+6]=ge,this.int16[Tt+7]=De,M}}Et.prototype.bytesPerElement=16,yi("StructArrayLayout2ub2f2i16",Et);class Dt extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,j){let re=this.length;return this.resize(re+1),this.emplace(re,M,D,j)}emplace(M,D,j,re){let fe=3*M;return this.uint16[fe+0]=D,this.uint16[fe+1]=j,this.uint16[fe+2]=re,M}}Dt.prototype.bytesPerElement=6,yi("StructArrayLayout3ui6",Dt);class Ht extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si){let Fi=this.length;return this.resize(Fi+1),this.emplace(Fi,M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si)}emplace(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si,Fi){let gi=24*M,Li=12*M,Ki=48*M;return this.int16[gi+0]=D,this.int16[gi+1]=j,this.uint16[gi+2]=re,this.uint16[gi+3]=fe,this.uint32[Li+2]=ge,this.uint32[Li+3]=De,this.uint32[Li+4]=He,this.uint16[gi+10]=at,this.uint16[gi+11]=Tt,this.uint16[gi+12]=qt,this.float32[Li+7]=Qt,this.float32[Li+8]=sr,this.uint8[Ki+36]=wr,this.uint8[Ki+37]=Ir,this.uint8[Ki+38]=ei,this.uint32[Li+10]=si,this.int16[gi+22]=Fi,M}}Ht.prototype.bytesPerElement=48,yi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ht);class tr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si,Fi,gi,Li,Ki,ea,Na,Co,ka,Nn,no,Ya){let ja=this.length;return this.resize(ja+1),this.emplace(ja,M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si,Fi,gi,Li,Ki,ea,Na,Co,ka,Nn,no,Ya)}emplace(M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir,ei,si,Fi,gi,Li,Ki,ea,Na,Co,ka,Nn,no,Ya,ja){let bn=32*M,yo=16*M;return this.int16[bn+0]=D,this.int16[bn+1]=j,this.int16[bn+2]=re,this.int16[bn+3]=fe,this.int16[bn+4]=ge,this.int16[bn+5]=De,this.int16[bn+6]=He,this.int16[bn+7]=at,this.uint16[bn+8]=Tt,this.uint16[bn+9]=qt,this.uint16[bn+10]=Qt,this.uint16[bn+11]=sr,this.uint16[bn+12]=wr,this.uint16[bn+13]=Ir,this.uint16[bn+14]=ei,this.uint16[bn+15]=si,this.uint16[bn+16]=Fi,this.uint16[bn+17]=gi,this.uint16[bn+18]=Li,this.uint16[bn+19]=Ki,this.uint16[bn+20]=ea,this.uint16[bn+21]=Na,this.uint16[bn+22]=Co,this.uint32[yo+12]=ka,this.float32[yo+13]=Nn,this.float32[yo+14]=no,this.uint16[bn+30]=Ya,this.uint16[bn+31]=ja,M}}tr.prototype.bytesPerElement=64,yi("StructArrayLayout8i15ui1ul2f2ui64",tr);class yr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.float32[1*M+0]=D,M}}yr.prototype.bytesPerElement=4,yi("StructArrayLayout1f4",yr);class Dr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,j){let re=this.length;return this.resize(re+1),this.emplace(re,M,D,j)}emplace(M,D,j,re){let fe=3*M;return this.uint16[6*M+0]=D,this.float32[fe+1]=j,this.float32[fe+2]=re,M}}Dr.prototype.bytesPerElement=12,yi("StructArrayLayout1ui2f12",Dr);class Fr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,j){let re=this.length;return this.resize(re+1),this.emplace(re,M,D,j)}emplace(M,D,j,re){let fe=4*M;return this.uint32[2*M+0]=D,this.uint16[fe+2]=j,this.uint16[fe+3]=re,M}}Fr.prototype.bytesPerElement=8,yi("StructArrayLayout1ul2ui8",Fr);class Yr extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D){let j=this.length;return this.resize(j+1),this.emplace(j,M,D)}emplace(M,D,j){let re=2*M;return this.uint16[re+0]=D,this.uint16[re+1]=j,M}}Yr.prototype.bytesPerElement=4,yi("StructArrayLayout2ui4",Yr);class vi extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint16[1*M+0]=D,M}}vi.prototype.bytesPerElement=2,yi("StructArrayLayout1ui2",vi);class Ii extends se{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,j,re){let fe=this.length;return this.resize(fe+1),this.emplace(fe,M,D,j,re)}emplace(M,D,j,re,fe){let ge=4*M;return this.float32[ge+0]=D,this.float32[ge+1]=j,this.float32[ge+2]=re,this.float32[ge+3]=fe,M}}Ii.prototype.bytesPerElement=16,yi("StructArrayLayout4f16",Ii);class Pi extends te{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}Pi.prototype.size=20;class en extends We{get(M){return new Pi(this,M)}}yi("CollisionBoxArray",en);class Mn extends te{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(M){this._structArray.uint8[this._pos1+37]=M}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(M){this._structArray.uint8[this._pos1+38]=M}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(M){this._structArray.uint32[this._pos4+10]=M}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Mn.prototype.size=48;class da extends Ht{get(M){return new Mn(this,M)}}yi("PlacedSymbolArray",da);class Qn extends te{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(M){this._structArray.uint32[this._pos4+12]=M}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Qn.prototype.size=64;class Ua extends tr{get(M){return new Qn(this,M)}}yi("SymbolInstanceArray",Ua);class xo extends yr{getoffsetX(M){return this.float32[1*M+0]}}yi("GlyphOffsetArray",xo);class Ha extends mt{getx(M){return this.int16[3*M+0]}gety(M){return this.int16[3*M+1]}gettileUnitDistanceFromAnchor(M){return this.int16[3*M+2]}}yi("SymbolLineVertexArray",Ha);class oo extends te{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}oo.prototype.size=12;class Lo extends Dr{get(M){return new oo(this,M)}}yi("TextAnchorOffsetArray",Lo);class Rs extends te{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Rs.prototype.size=8;class ws extends Fr{get(M){return new Rs(this,M)}}yi("FeatureIndexArray",ws);class vo extends tt{}class co extends tt{}class _l extends tt{}class Gl extends Ut{}class Zu extends fr{}class cu extends Ar{}class el extends de{}class au extends Te{}class zc extends Pe{}class zl extends qe{}class Fl extends Ne{}class W extends Et{}class oe extends Dt{}class Ae extends Yr{}let Oe=Fe([{name:"a_pos",components:2,type:"Int16"}],4),{members:Be}=Oe;class Ve{constructor(M=[]){this.segments=M}prepareSegment(M,D,j,re){let fe=this.segments[this.segments.length-1];return M>Ve.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ve.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${M}`),(!fe||fe.vertexLength+M>Ve.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==re)&&(fe={vertexOffset:D.length,primitiveOffset:j.length,vertexLength:0,primitiveLength:0},re!==void 0&&(fe.sortKey=re),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let M of this.segments)for(let D in M.vaos)M.vaos[D].destroy()}static simpleSegment(M,D,j,re){return new Ve([{vertexOffset:M,primitiveOffset:D,vertexLength:j,primitiveLength:re,vaos:{},sortKey:0}])}}function bt(R,M){return 256*(R=k(Math.floor(R),0,255))+k(Math.floor(M),0,255)}Ve.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,yi("SegmentVector",Ve);let et=Fe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var zt={exports:{}},or={exports:{}};or.exports=function(R,M){var D,j,re,fe,ge,De,He,at;for(j=R.length-(D=3&R.length),re=M,ge=3432918353,De=461845907,at=0;at>>16)*ge&65535)<<16)&4294967295)<<15|He>>>17))*De+(((He>>>16)*De&65535)<<16)&4294967295)<<13|re>>>19))+((5*(re>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(He=0,D){case 3:He^=(255&R.charCodeAt(at+2))<<16;case 2:He^=(255&R.charCodeAt(at+1))<<8;case 1:re^=He=(65535&(He=(He=(65535&(He^=255&R.charCodeAt(at)))*ge+(((He>>>16)*ge&65535)<<16)&4294967295)<<15|He>>>17))*De+(((He>>>16)*De&65535)<<16)&4294967295}return re^=R.length,re=2246822507*(65535&(re^=re>>>16))+((2246822507*(re>>>16)&65535)<<16)&4294967295,re=3266489909*(65535&(re^=re>>>13))+((3266489909*(re>>>16)&65535)<<16)&4294967295,(re^=re>>>16)>>>0};var lr=or.exports,zr={exports:{}};zr.exports=function(R,M){for(var D,j=R.length,re=M^j,fe=0;j>=4;)D=1540483477*(65535&(D=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(D>>>16)&65535)<<16),re=1540483477*(65535&re)+((1540483477*(re>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),j-=4,++fe;switch(j){case 3:re^=(255&R.charCodeAt(fe+2))<<16;case 2:re^=(255&R.charCodeAt(fe+1))<<8;case 1:re=1540483477*(65535&(re^=255&R.charCodeAt(fe)))+((1540483477*(re>>>16)&65535)<<16)}return re=1540483477*(65535&(re^=re>>>13))+((1540483477*(re>>>16)&65535)<<16),(re^=re>>>15)>>>0};var Rr=lr,li=zr.exports;zt.exports=Rr,zt.exports.murmur3=Rr,zt.exports.murmur2=li;var fi=o(zt.exports);class Or{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(M,D,j,re){this.ids.push($r(M)),this.positions.push(D,j,re)}getPositions(M){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=$r(M),j=0,re=this.ids.length-1;for(;j>1;this.ids[ge]>=D?re=ge:j=ge+1}let fe=[];for(;this.ids[j]===D;)fe.push({index:this.positions[3*j],start:this.positions[3*j+1],end:this.positions[3*j+2]}),j++;return fe}static serialize(M,D){let j=new Float64Array(M.ids),re=new Uint32Array(M.positions);return oi(j,re,0,j.length-1),D&&D.push(j.buffer,re.buffer),{ids:j,positions:re}}static deserialize(M){let D=new Or;return D.ids=M.ids,D.positions=M.positions,D.indexed=!0,D}}function $r(R){let M=+R;return!isNaN(M)&&M<=Number.MAX_SAFE_INTEGER?M:fi(String(R))}function oi(R,M,D,j){for(;D>1],fe=D-1,ge=j+1;for(;;){do fe++;while(R[fe]re);if(fe>=ge)break;pi(R,fe,ge),pi(M,3*fe,3*ge),pi(M,3*fe+1,3*ge+1),pi(M,3*fe+2,3*ge+2)}ge-D`u_${re}`),this.type=j}setUniform(M,D,j){M.set(j.constantOr(this.value))}getBinding(M,D,j){return this.type==="color"?new dn(M,D):new Qr(M,D)}}class ga{constructor(M,D){this.uniformNames=D.map(j=>`u_${j}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(M,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=M.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=M.tlbr}setUniform(M,D,j,re){let fe=re==="u_pattern_to"?this.patternTo:re==="u_pattern_from"?this.patternFrom:re==="u_pixel_ratio_to"?this.pixelRatioTo:re==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&M.set(fe)}getBinding(M,D,j){return j.substr(0,9)==="u_pattern"?new un(M,D):new Qr(M,D)}}class io{constructor(M,D,j,re){this.expression=M,this.type=j,this.maxValue=0,this.paintVertexAttributes=D.map(fe=>({name:`a_${fe}`,type:"Float32",components:j==="color"?2:1,offset:0})),this.paintVertexArray=new re}populatePaintArray(M,D,j,re,fe){let ge=this.paintVertexArray.length,De=this.expression.evaluate(new Zo(0),D,{},re,[],fe);this.paintVertexArray.resize(M),this._setPaintValue(ge,M,De)}updatePaintArray(M,D,j,re){let fe=this.expression.evaluate({zoom:0},j,re);this._setPaintValue(M,D,fe)}_setPaintValue(M,D,j){if(this.type==="color"){let re=qn(j);for(let fe=M;fe`u_${De}_t`),this.type=j,this.useIntegerZoom=re,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=D.map(De=>({name:`a_${De}`,type:"Float32",components:j==="color"?4:2,offset:0})),this.paintVertexArray=new ge}populatePaintArray(M,D,j,re,fe){let ge=this.expression.evaluate(new Zo(this.zoom),D,{},re,[],fe),De=this.expression.evaluate(new Zo(this.zoom+1),D,{},re,[],fe),He=this.paintVertexArray.length;this.paintVertexArray.resize(M),this._setPaintValue(He,M,ge,De)}updatePaintArray(M,D,j,re){let fe=this.expression.evaluate({zoom:this.zoom},j,re),ge=this.expression.evaluate({zoom:this.zoom+1},j,re);this._setPaintValue(M,D,fe,ge)}_setPaintValue(M,D,j,re){if(this.type==="color"){let fe=qn(j),ge=qn(re);for(let De=M;De`#define HAS_UNIFORM_${re}`))}return M}getBinderAttributes(){let M=[];for(let D in this.binders){let j=this.binders[D];if(j instanceof io||j instanceof ba)for(let re=0;re!0){this.programConfigurations={};for(let re of M)this.programConfigurations[re.id]=new Ts(re,D,j);this.needsUpload=!1,this._featureMap=new Or,this._bufferOffset=0}populatePaintArrays(M,D,j,re,fe,ge){for(let De in this.programConfigurations)this.programConfigurations[De].populatePaintArrays(M,D,re,fe,ge);D.id!==void 0&&this._featureMap.add(D.id,j,this._bufferOffset,M),this._bufferOffset=M,this.needsUpload=!0}updatePaintArrays(M,D,j,re){for(let fe of j)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(M,this._featureMap,D,fe,re)||this.needsUpload}get(M){return this.programConfigurations[M]}upload(M){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(M);this.needsUpload=!1}}destroy(){for(let M in this.programConfigurations)this.programConfigurations[M].destroy()}}function Bs(R,M){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${M}-`,"").replace(/-/g,"_")]}function pn(R,M,D){let j={color:{source:Ar,composite:Ii},number:{source:yr,composite:Ar}},re=function(fe){return{"line-pattern":{source:el,composite:el},"fill-pattern":{source:el,composite:el},"fill-extrusion-pattern":{source:el,composite:el}}[fe]}(R);return re&&re[D]||j[M][D]}yi("ConstantBinder",va),yi("CrossFadedConstantBinder",ga),yi("SourceExpressionBinder",io),yi("CrossFadedCompositeBinder",eo),yi("CompositeExpressionBinder",ba),yi("ProgramConfiguration",Ts,{omit:["_buffers"]}),yi("ProgramConfigurationSet",gs);let Ra=8192,Eo=Math.pow(2,14)-1,Ro=-Eo-1;function js(R){let M=Ra/R.extent,D=R.loadGeometry();for(let j=0;jge.x+1||Hege.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function xl(R,M){return{type:R.type,id:R.id,properties:R.properties,geometry:M?js(R):[]}}function fu(R,M,D,j,re){R.emplaceBack(2*M+(j+1)/2,2*D+(re+1)/2)}class dl{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new co,this.indexArray=new oe,this.segments=new Ve,this.programConfigurations=new gs(M.layers,M.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,j){let re=this.layers[0],fe=[],ge=null,De=!1;re.type==="circle"&&(ge=re.layout.get("circle-sort-key"),De=!ge.isConstant());for(let{feature:He,id:at,index:Tt,sourceLayerIndex:qt}of M){let Qt=this.layers[0]._featureFilter.needGeometry,sr=xl(He,Qt);if(!this.layers[0]._featureFilter.filter(new Zo(this.zoom),sr,j))continue;let wr=De?ge.evaluate(sr,{},j):void 0,Ir={id:at,properties:He.properties,type:He.type,sourceLayerIndex:qt,index:Tt,geometry:Qt?sr.geometry:js(He),patterns:{},sortKey:wr};fe.push(Ir)}De&&fe.sort((He,at)=>He.sortKey-at.sortKey);for(let He of fe){let{geometry:at,index:Tt,sourceLayerIndex:qt}=He,Qt=M[Tt].feature;this.addFeature(He,at,Tt,j),D.featureIndex.insert(Qt,at,Tt,qt,this.index)}}update(M,D,j){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,j)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,Be),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(M,D,j,re){for(let fe of D)for(let ge of fe){let De=ge.x,He=ge.y;if(De<0||De>=Ra||He<0||He>=Ra)continue;let at=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,M.sortKey),Tt=at.vertexLength;fu(this.layoutVertexArray,De,He,-1,-1),fu(this.layoutVertexArray,De,He,1,-1),fu(this.layoutVertexArray,De,He,1,1),fu(this.layoutVertexArray,De,He,-1,1),this.indexArray.emplaceBack(Tt,Tt+1,Tt+2),this.indexArray.emplaceBack(Tt,Tt+3,Tt+2),at.vertexLength+=4,at.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,j,{},re)}}function xc(R,M){for(let D=0;D1){if(Ai(R,M))return!0;for(let j=0;j1?D:D.sub(M)._mult(re)._add(M))}function cn(R,M){let D,j,re,fe=!1;for(let ge=0;geM.y!=re.y>M.y&&M.x<(re.x-j.x)*(M.y-j.y)/(re.y-j.y)+j.x&&(fe=!fe)}return fe}function zn(R,M){let D=!1;for(let j=0,re=R.length-1;jM.y!=ge.y>M.y&&M.x<(ge.x-fe.x)*(M.y-fe.y)/(ge.y-fe.y)+fe.x&&(D=!D)}return D}function Fn(R,M,D){let j=D[0],re=D[2];if(R.xre.x&&M.x>re.x||R.yre.y&&M.y>re.y)return!1;let fe=F(R,M,D[0]);return fe!==F(R,M,D[1])||fe!==F(R,M,D[2])||fe!==F(R,M,D[3])}function yn(R,M,D){let j=M.paint.get(R).value;return j.kind==="constant"?j.value:D.programConfigurations.get(M.id).getMaxValue(R)}function $a(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function In(R,M,D,j,re){if(!M[0]&&!M[1])return R;let fe=u.convert(M)._mult(re);D==="viewport"&&fe._rotate(-j);let ge=[];for(let De=0;Devn(ei,Ir))}(at,He),sr=qt?Tt*De:Tt;for(let wr of re)for(let Ir of wr){let ei=qt?Ir:vn(Ir,He),si=sr,Fi=Ga([],[Ir.x,Ir.y,0,1],He);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?si*=Fi[3]/ge.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(si*=ge.cameraToCenterDistance/Fi[3]),Mt(Qt,ei,si))return!0}return!1}}function vn(R,M){let D=Ga([],[R.x,R.y,0,1],M);return new u(D[0]/D[3],D[1]/D[3])}class Ta extends dl{}let na;yi("HeatmapBucket",Ta,{omit:["layers"]});var Wn={get paint(){return na=na||new ue({"heatmap-radius":new Ja(Se.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Ja(Se.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ia(Se.paint_heatmap["heatmap-intensity"]),"heatmap-color":new _c(Se.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ia(Se.paint_heatmap["heatmap-opacity"])})}};function Bn(R,{width:M,height:D},j,re){if(re){if(re instanceof Uint8ClampedArray)re=new Uint8Array(re.buffer);else if(re.length!==M*D*j)throw new RangeError(`mismatched image size. expected: ${re.length} but got: ${M*D*j}`)}else re=new Uint8Array(M*D*j);return R.width=M,R.height=D,R.data=re,R}function pa(R,{width:M,height:D},j){if(M===R.width&&D===R.height)return;let re=Bn({},{width:M,height:D},j);Qa(R,re,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,M),height:Math.min(R.height,D)},j),R.width=M,R.height=D,R.data=re.data}function Qa(R,M,D,j,re,fe){if(re.width===0||re.height===0)return M;if(re.width>R.width||re.height>R.height||D.x>R.width-re.width||D.y>R.height-re.height)throw new RangeError("out of range source coordinates for image copy");if(re.width>M.width||re.height>M.height||j.x>M.width-re.width||j.y>M.height-re.height)throw new RangeError("out of range destination coordinates for image copy");let ge=R.data,De=M.data;if(ge===De)throw new Error("srcData equals dstData, so image is already copied");for(let He=0;He{M[R.evaluationKey]=He;let at=R.expression.evaluate(M);re.data[ge+De+0]=Math.floor(255*at.r/at.a),re.data[ge+De+1]=Math.floor(255*at.g/at.a),re.data[ge+De+2]=Math.floor(255*at.b/at.a),re.data[ge+De+3]=Math.floor(255*at.a)};if(R.clips)for(let ge=0,De=0;ge80*D){De=1/0,He=1/0;let Tt=-1/0,qt=-1/0;for(let Qt=D;QtTt&&(Tt=sr),wr>qt&&(qt=wr)}at=Math.max(Tt-De,qt-He),at=at!==0?32767/at:0}return yf(fe,ge,D,De,He,at,0),ge}function bc(R,M,D,j,re){let fe;if(re===function(ge,De,He,at){let Tt=0;for(let qt=De,Qt=He-at;qt0)for(let ge=M;ge=M;ge-=j)fe=Jt(ge/j|0,R[ge],R[ge+1],fe);return fe&&ve(fe,fe.next)&&(dt(fe),fe=fe.next),fe}function wc(R,M){if(!R)return R;M||(M=R);let D,j=R;do if(D=!1,j.steiner||!ve(j,j.next)&&me(j.prev,j,j.next)!==0)j=j.next;else{if(dt(j),j=M=j.prev,j===j.next)break;D=!0}while(D||j!==M);return M}function yf(R,M,D,j,re,fe,ge){if(!R)return;!ge&&fe&&function(He,at,Tt,qt){let Qt=He;do Qt.z===0&&(Qt.z=z(Qt.x,Qt.y,at,Tt,qt)),Qt.prevZ=Qt.prev,Qt.nextZ=Qt.next,Qt=Qt.next;while(Qt!==He);Qt.prevZ.nextZ=null,Qt.prevZ=null,function(sr){let wr,Ir=1;do{let ei,si=sr;sr=null;let Fi=null;for(wr=0;si;){wr++;let gi=si,Li=0;for(let ea=0;ea0||Ki>0&&gi;)Li!==0&&(Ki===0||!gi||si.z<=gi.z)?(ei=si,si=si.nextZ,Li--):(ei=gi,gi=gi.nextZ,Ki--),Fi?Fi.nextZ=ei:sr=ei,ei.prevZ=Fi,Fi=ei;si=gi}Fi.nextZ=null,Ir*=2}while(wr>1)}(Qt)}(R,j,re,fe);let De=R;for(;R.prev!==R.next;){let He=R.prev,at=R.next;if(fe?Fc(R,j,re,fe):jl(R))M.push(He.i,R.i,at.i),dt(R),R=at.next,De=at.next;else if((R=at)===De){ge?ge===1?yf(R=ef(wc(R),M),M,D,j,re,fe,2):ge===2&&as(R,M,D,j,re,fe):yf(wc(R),M,D,j,re,fe,1);break}}}function jl(R){let M=R.prev,D=R,j=R.next;if(me(M,D,j)>=0)return!1;let re=M.x,fe=D.x,ge=j.x,De=M.y,He=D.y,at=j.y,Tt=refe?re>ge?re:ge:fe>ge?fe:ge,sr=De>He?De>at?De:at:He>at?He:at,wr=j.next;for(;wr!==M;){if(wr.x>=Tt&&wr.x<=Qt&&wr.y>=qt&&wr.y<=sr&&O(re,De,fe,He,ge,at,wr.x,wr.y)&&me(wr.prev,wr,wr.next)>=0)return!1;wr=wr.next}return!0}function Fc(R,M,D,j){let re=R.prev,fe=R,ge=R.next;if(me(re,fe,ge)>=0)return!1;let De=re.x,He=fe.x,at=ge.x,Tt=re.y,qt=fe.y,Qt=ge.y,sr=DeHe?De>at?De:at:He>at?He:at,ei=Tt>qt?Tt>Qt?Tt:Qt:qt>Qt?qt:Qt,si=z(sr,wr,M,D,j),Fi=z(Ir,ei,M,D,j),gi=R.prevZ,Li=R.nextZ;for(;gi&&gi.z>=si&&Li&&Li.z<=Fi;){if(gi.x>=sr&&gi.x<=Ir&&gi.y>=wr&&gi.y<=ei&&gi!==re&&gi!==ge&&O(De,Tt,He,qt,at,Qt,gi.x,gi.y)&&me(gi.prev,gi,gi.next)>=0||(gi=gi.prevZ,Li.x>=sr&&Li.x<=Ir&&Li.y>=wr&&Li.y<=ei&&Li!==re&&Li!==ge&&O(De,Tt,He,qt,at,Qt,Li.x,Li.y)&&me(Li.prev,Li,Li.next)>=0))return!1;Li=Li.nextZ}for(;gi&&gi.z>=si;){if(gi.x>=sr&&gi.x<=Ir&&gi.y>=wr&&gi.y<=ei&&gi!==re&&gi!==ge&&O(De,Tt,He,qt,at,Qt,gi.x,gi.y)&&me(gi.prev,gi,gi.next)>=0)return!1;gi=gi.prevZ}for(;Li&&Li.z<=Fi;){if(Li.x>=sr&&Li.x<=Ir&&Li.y>=wr&&Li.y<=ei&&Li!==re&&Li!==ge&&O(De,Tt,He,qt,at,Qt,Li.x,Li.y)&&me(Li.prev,Li,Li.next)>=0)return!1;Li=Li.nextZ}return!0}function ef(R,M){let D=R;do{let j=D.prev,re=D.next.next;!ve(j,re)&&Re(j,D,D.next,re)&&Kt(j,re)&&Kt(re,j)&&(M.push(j.i,D.i,re.i),dt(D),dt(D.next),D=R=re),D=D.next}while(D!==R);return wc(D)}function as(R,M,D,j,re,fe){let ge=R;do{let De=ge.next.next;for(;De!==ge.prev;){if(ge.i!==De.i&&Q(ge,De)){let He=nr(ge,De);return ge=wc(ge,ge.next),He=wc(He,He.next),yf(ge,M,D,j,re,fe,0),void yf(He,M,D,j,re,fe,0)}De=De.next}ge=ge.next}while(ge!==R)}function _f(R,M){return R.x-M.x}function ts(R,M){let D=function(re,fe){let ge=fe,De=re.x,He=re.y,at,Tt=-1/0;do{if(He<=ge.y&&He>=ge.next.y&&ge.next.y!==ge.y){let Ir=ge.x+(He-ge.y)*(ge.next.x-ge.x)/(ge.next.y-ge.y);if(Ir<=De&&Ir>Tt&&(Tt=Ir,at=ge.x=ge.x&&ge.x>=Qt&&De!==ge.x&&O(Heat.x||ge.x===at.x&&Y(at,ge)))&&(at=ge,wr=Ir)}ge=ge.next}while(ge!==qt);return at}(R,M);if(!D)return M;let j=nr(D,R);return wc(j,j.next),wc(D,D.next)}function Y(R,M){return me(R.prev,R,M.prev)<0&&me(M.next,R,R.next)<0}function z(R,M,D,j,re){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-D)*re|0)|R<<8))|R<<4))|R<<2))|R<<1))|(M=1431655765&((M=858993459&((M=252645135&((M=16711935&((M=(M-j)*re|0)|M<<8))|M<<4))|M<<2))|M<<1))<<1}function J(R){let M=R,D=R;do(M.x=(R-ge)*(fe-De)&&(R-ge)*(j-De)>=(D-ge)*(M-De)&&(D-ge)*(fe-De)>=(re-ge)*(j-De)}function Q(R,M){return R.next.i!==M.i&&R.prev.i!==M.i&&!function(D,j){let re=D;do{if(re.i!==D.i&&re.next.i!==D.i&&re.i!==j.i&&re.next.i!==j.i&&Re(re,re.next,D,j))return!0;re=re.next}while(re!==D);return!1}(R,M)&&(Kt(R,M)&&Kt(M,R)&&function(D,j){let re=D,fe=!1,ge=(D.x+j.x)/2,De=(D.y+j.y)/2;do re.y>De!=re.next.y>De&&re.next.y!==re.y&&ge<(re.next.x-re.x)*(De-re.y)/(re.next.y-re.y)+re.x&&(fe=!fe),re=re.next;while(re!==D);return fe}(R,M)&&(me(R.prev,R,M.prev)||me(R,M.prev,M))||ve(R,M)&&me(R.prev,R,R.next)>0&&me(M.prev,M,M.next)>0)}function me(R,M,D){return(M.y-R.y)*(D.x-M.x)-(M.x-R.x)*(D.y-M.y)}function ve(R,M){return R.x===M.x&&R.y===M.y}function Re(R,M,D,j){let re=vt(me(R,M,D)),fe=vt(me(R,M,j)),ge=vt(me(D,j,R)),De=vt(me(D,j,M));return re!==fe&&ge!==De||!(re!==0||!Ye(R,D,M))||!(fe!==0||!Ye(R,j,M))||!(ge!==0||!Ye(D,R,j))||!(De!==0||!Ye(D,M,j))}function Ye(R,M,D){return M.x<=Math.max(R.x,D.x)&&M.x>=Math.min(R.x,D.x)&&M.y<=Math.max(R.y,D.y)&&M.y>=Math.min(R.y,D.y)}function vt(R){return R>0?1:R<0?-1:0}function Kt(R,M){return me(R.prev,R,R.next)<0?me(R,M,R.next)>=0&&me(R,R.prev,M)>=0:me(R,M,R.prev)<0||me(R,R.next,M)<0}function nr(R,M){let D=Pt(R.i,R.x,R.y),j=Pt(M.i,M.x,M.y),re=R.next,fe=M.prev;return R.next=M,M.prev=R,D.next=re,re.prev=D,j.next=D,D.prev=j,fe.next=j,j.prev=fe,j}function Jt(R,M,D,j){let re=Pt(R,M,D);return j?(re.next=j.next,re.prev=j,j.next.prev=re,j.next=re):(re.prev=re,re.next=re),re}function dt(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function Pt(R,M,D){return{i:R,x:M,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function jt(R,M,D){let j=D.patternDependencies,re=!1;for(let fe of M){let ge=fe.paint.get(`${R}-pattern`);ge.isConstant()||(re=!0);let De=ge.constantOr(null);De&&(re=!0,j[De.to]=!0,j[De.from]=!0)}return re}function ir(R,M,D,j,re){let fe=re.patternDependencies;for(let ge of M){let De=ge.paint.get(`${R}-pattern`).value;if(De.kind!=="constant"){let He=De.evaluate({zoom:j-1},D,{},re.availableImages),at=De.evaluate({zoom:j},D,{},re.availableImages),Tt=De.evaluate({zoom:j+1},D,{},re.availableImages);He=He&&He.name?He.name:He,at=at&&at.name?at.name:at,Tt=Tt&&Tt.name?Tt.name:Tt,fe[He]=!0,fe[at]=!0,fe[Tt]=!0,D.patterns[ge.id]={min:He,mid:at,max:Tt}}}return D}class dr{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new _l,this.indexArray=new oe,this.indexArray2=new Ae,this.programConfigurations=new gs(M.layers,M.zoom),this.segments=new Ve,this.segments2=new Ve,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,j){this.hasPattern=jt("fill",this.layers,D);let re=this.layers[0].layout.get("fill-sort-key"),fe=!re.isConstant(),ge=[];for(let{feature:De,id:He,index:at,sourceLayerIndex:Tt}of M){let qt=this.layers[0]._featureFilter.needGeometry,Qt=xl(De,qt);if(!this.layers[0]._featureFilter.filter(new Zo(this.zoom),Qt,j))continue;let sr=fe?re.evaluate(Qt,{},j,D.availableImages):void 0,wr={id:He,properties:De.properties,type:De.type,sourceLayerIndex:Tt,index:at,geometry:qt?Qt.geometry:js(De),patterns:{},sortKey:sr};ge.push(wr)}fe&&ge.sort((De,He)=>De.sortKey-He.sortKey);for(let De of ge){let{geometry:He,index:at,sourceLayerIndex:Tt}=De;if(this.hasPattern){let qt=ir("fill",this.layers,De,this.zoom,D);this.patternFeatures.push(qt)}else this.addFeature(De,He,at,j,{});D.featureIndex.insert(M[at].feature,He,at,Tt,this.index)}}update(M,D,j){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,j)}addFeatures(M,D,j){for(let re of this.patternFeatures)this.addFeature(re,re.geometry,re.index,D,j)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,Qc),this.indexBuffer=M.createIndexBuffer(this.indexArray),this.indexBuffer2=M.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(M,D,j,re,fe){for(let ge of Of(D,500)){let De=0;for(let sr of ge)De+=sr.length;let He=this.segments.prepareSegment(De,this.layoutVertexArray,this.indexArray),at=He.vertexLength,Tt=[],qt=[];for(let sr of ge){if(sr.length===0)continue;sr!==ge[0]&&qt.push(Tt.length/2);let wr=this.segments2.prepareSegment(sr.length,this.layoutVertexArray,this.indexArray2),Ir=wr.vertexLength;this.layoutVertexArray.emplaceBack(sr[0].x,sr[0].y),this.indexArray2.emplaceBack(Ir+sr.length-1,Ir),Tt.push(sr[0].x),Tt.push(sr[0].y);for(let ei=1;ei>3}if(re--,j===1||j===2)fe+=R.readSVarint(),ge+=R.readSVarint(),j===1&&(M&&De.push(M),M=[]),M.push(new _i(fe,ge));else{if(j!==7)throw new Error("unknown command "+j);M&&M.push(M[0].clone())}}return M&&De.push(M),De},zi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var M=R.readVarint()+R.pos,D=1,j=0,re=0,fe=0,ge=1/0,De=-1/0,He=1/0,at=-1/0;R.pos>3}if(j--,D===1||D===2)(re+=R.readSVarint())De&&(De=re),(fe+=R.readSVarint())at&&(at=fe);else if(D!==7)throw new Error("unknown command "+D)}return[ge,He,De,at]},zi.prototype.toGeoJSON=function(R,M,D){var j,re,fe=this.extent*Math.pow(2,D),ge=this.extent*R,De=this.extent*M,He=this.loadGeometry(),at=zi.types[this.type];function Tt(sr){for(var wr=0;wr>3;re=ge===1?j.readString():ge===2?j.readFloat():ge===3?j.readDouble():ge===4?j.readVarint64():ge===5?j.readVarint():ge===6?j.readSVarint():ge===7?j.readBoolean():null}return re}(D))}_n.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var M=this._pbf.readVarint()+this._pbf.pos;return new Dn(this._pbf,M,this.extent,this._keys,this._values)};var Hn=nn;function fa(R,M,D){if(R===3){var j=new Hn(D,D.readVarint()+D.pos);j.length&&(M[j.name]=j)}}ti.VectorTile=function(R,M){this.layers=R.readFields(fa,{},M)},ti.VectorTileFeature=rn,ti.VectorTileLayer=nn;let qo=ti.VectorTileFeature.types,Po=Math.pow(2,13);function hs(R,M,D,j,re,fe,ge,De){R.emplaceBack(M,D,2*Math.floor(j*Po)+ge,re*Po*2,fe*Po*2,Math.round(De))}class so{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new Gl,this.centroidVertexArray=new vo,this.indexArray=new oe,this.programConfigurations=new gs(M.layers,M.zoom),this.segments=new Ve,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,j){this.features=[],this.hasPattern=jt("fill-extrusion",this.layers,D);for(let{feature:re,id:fe,index:ge,sourceLayerIndex:De}of M){let He=this.layers[0]._featureFilter.needGeometry,at=xl(re,He);if(!this.layers[0]._featureFilter.filter(new Zo(this.zoom),at,j))continue;let Tt={id:fe,sourceLayerIndex:De,index:ge,geometry:He?at.geometry:js(re),properties:re.properties,type:re.type,patterns:{}};this.hasPattern?this.features.push(ir("fill-extrusion",this.layers,Tt,this.zoom,D)):this.addFeature(Tt,Tt.geometry,ge,j,{}),D.featureIndex.insert(re,Tt.geometry,ge,De,this.index,!0)}}addFeatures(M,D,j){for(let re of this.features){let{geometry:fe}=re;this.addFeature(re,fe,re.index,D,j)}}update(M,D,j){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,j)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,jr),this.centroidVertexBuffer=M.createVertexBuffer(this.centroidVertexArray,cr.members,!0),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(M,D,j,re,fe){for(let ge of Of(D,500)){let De={x:0,y:0,vertexCount:0},He=0;for(let wr of ge)He+=wr.length;let at=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let wr of ge){if(wr.length===0||tl(wr))continue;let Ir=0;for(let ei=0;ei=1){let Fi=wr[ei-1];if(!rs(si,Fi)){at.vertexLength+4>Ve.MAX_VERTEX_ARRAY_LENGTH&&(at=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let gi=si.sub(Fi)._perp()._unit(),Li=Fi.dist(si);Ir+Li>32768&&(Ir=0),hs(this.layoutVertexArray,si.x,si.y,gi.x,gi.y,0,0,Ir),hs(this.layoutVertexArray,si.x,si.y,gi.x,gi.y,0,1,Ir),De.x+=2*si.x,De.y+=2*si.y,De.vertexCount+=2,Ir+=Li,hs(this.layoutVertexArray,Fi.x,Fi.y,gi.x,gi.y,0,0,Ir),hs(this.layoutVertexArray,Fi.x,Fi.y,gi.x,gi.y,0,1,Ir),De.x+=2*Fi.x,De.y+=2*Fi.y,De.vertexCount+=2;let Ki=at.vertexLength;this.indexArray.emplaceBack(Ki,Ki+2,Ki+1),this.indexArray.emplaceBack(Ki+1,Ki+2,Ki+3),at.vertexLength+=4,at.primitiveLength+=2}}}}if(at.vertexLength+He>Ve.MAX_VERTEX_ARRAY_LENGTH&&(at=this.segments.prepareSegment(He,this.layoutVertexArray,this.indexArray)),qo[M.type]!=="Polygon")continue;let Tt=[],qt=[],Qt=at.vertexLength;for(let wr of ge)if(wr.length!==0){wr!==ge[0]&&qt.push(Tt.length/2);for(let Ir=0;IrRa)||R.y===M.y&&(R.y<0||R.y>Ra)}function tl(R){return R.every(M=>M.x<0)||R.every(M=>M.x>Ra)||R.every(M=>M.y<0)||R.every(M=>M.y>Ra)}let zu;yi("FillExtrusionBucket",so,{omit:["layers","features"]});var Sv={get paint(){return zu=zu||new ue({"fill-extrusion-opacity":new Ia(Se["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ja(Se["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ia(Se["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ia(Se["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Jc(Se["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ja(Se["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ja(Se["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ia(Se["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ev extends B{constructor(M){super(M,Sv)}createBucket(M){return new so(M)}queryRadius(){return $a(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(M,D,j,re,fe,ge,De,He){let at=In(M,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),ge.angle,De),Tt=this.paint.get("fill-extrusion-height").evaluate(D,j),qt=this.paint.get("fill-extrusion-base").evaluate(D,j),Qt=function(wr,Ir,ei,si){let Fi=[];for(let gi of wr){let Li=[gi.x,gi.y,0,1];Ga(Li,Li,Ir),Fi.push(new u(Li[0]/Li[3],Li[1]/Li[3]))}return Fi}(at,He),sr=function(wr,Ir,ei,si){let Fi=[],gi=[],Li=si[8]*Ir,Ki=si[9]*Ir,ea=si[10]*Ir,Na=si[11]*Ir,Co=si[8]*ei,ka=si[9]*ei,Nn=si[10]*ei,no=si[11]*ei;for(let Ya of wr){let ja=[],bn=[];for(let yo of Ya){let Wa=yo.x,Oo=yo.y,wu=si[0]*Wa+si[4]*Oo+si[12],hu=si[1]*Wa+si[5]*Oo+si[13],uh=si[2]*Wa+si[6]*Oo+si[14],$v=si[3]*Wa+si[7]*Oo+si[15],td=uh+ea,ch=$v+Na,Ud=wu+Co,Vd=hu+ka,Hd=uh+Nn,rf=$v+no,fh=new u((wu+Li)/ch,(hu+Ki)/ch);fh.z=td/ch,ja.push(fh);let Td=new u(Ud/rf,Vd/rf);Td.z=Hd/rf,bn.push(Td)}Fi.push(ja),gi.push(bn)}return[Fi,gi]}(re,qt,Tt,He);return function(wr,Ir,ei){let si=1/0;Sr(ei,Ir)&&(si=Yv(ei,Ir[0]));for(let Fi=0;FiD.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(D=>{this.gradients[D.id]={}}),this.layoutVertexArray=new Zu,this.layoutVertexArray2=new cu,this.indexArray=new oe,this.programConfigurations=new gs(M.layers,M.zoom),this.segments=new Ve,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,j){this.hasPattern=jt("line",this.layers,D);let re=this.layers[0].layout.get("line-sort-key"),fe=!re.isConstant(),ge=[];for(let{feature:De,id:He,index:at,sourceLayerIndex:Tt}of M){let qt=this.layers[0]._featureFilter.needGeometry,Qt=xl(De,qt);if(!this.layers[0]._featureFilter.filter(new Zo(this.zoom),Qt,j))continue;let sr=fe?re.evaluate(Qt,{},j):void 0,wr={id:He,properties:De.properties,type:De.type,sourceLayerIndex:Tt,index:at,geometry:qt?Qt.geometry:js(De),patterns:{},sortKey:sr};ge.push(wr)}fe&&ge.sort((De,He)=>De.sortKey-He.sortKey);for(let De of ge){let{geometry:He,index:at,sourceLayerIndex:Tt}=De;if(this.hasPattern){let qt=ir("line",this.layers,De,this.zoom,D);this.patternFeatures.push(qt)}else this.addFeature(De,He,at,j,{});D.featureIndex.insert(M[at].feature,He,at,Tt,this.index)}}update(M,D,j){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,j)}addFeatures(M,D,j){for(let re of this.patternFeatures)this.addFeature(re,re.geometry,re.index,D,j)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=M.createVertexBuffer(this.layoutVertexArray2,pp)),this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,vp),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(M){if(M.properties&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_end"))return{start:+M.properties.mapbox_clip_start,end:+M.properties.mapbox_clip_end}}addFeature(M,D,j,re,fe){let ge=this.layers[0].layout,De=ge.get("line-join").evaluate(M,{}),He=ge.get("line-cap"),at=ge.get("line-miter-limit"),Tt=ge.get("line-round-limit");this.lineClips=this.lineFeatureClips(M);for(let qt of D)this.addLine(qt,M,De,He,at,Tt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,j,fe,re)}addLine(M,D,j,re,fe,ge){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let si=0;si=2&&M[He-1].equals(M[He-2]);)He--;let at=0;for(;at0;if(Na&&si>at){let no=Qt.dist(sr);if(no>2*Tt){let Ya=Qt.sub(Qt.sub(sr)._mult(Tt/no)._round());this.updateDistance(sr,Ya),this.addCurrentVertex(Ya,Ir,0,0,qt),sr=Ya}}let ka=sr&&wr,Nn=ka?j:De?"butt":re;if(ka&&Nn==="round"&&(Kife&&(Nn="bevel"),Nn==="bevel"&&(Ki>2&&(Nn="flipbevel"),Ki100)Fi=ei.mult(-1);else{let no=Ki*Ir.add(ei).mag()/Ir.sub(ei).mag();Fi._perp()._mult(no*(Co?-1:1))}this.addCurrentVertex(Qt,Fi,0,0,qt),this.addCurrentVertex(Qt,Fi.mult(-1),0,0,qt)}else if(Nn==="bevel"||Nn==="fakeround"){let no=-Math.sqrt(Ki*Ki-1),Ya=Co?no:0,ja=Co?0:no;if(sr&&this.addCurrentVertex(Qt,Ir,Ya,ja,qt),Nn==="fakeround"){let bn=Math.round(180*ea/Math.PI/20);for(let yo=1;yo2*Tt){let Ya=Qt.add(wr.sub(Qt)._mult(Tt/no)._round());this.updateDistance(Qt,Ya),this.addCurrentVertex(Ya,ei,0,0,qt),Qt=Ya}}}}addCurrentVertex(M,D,j,re,fe,ge=!1){let De=D.y*re-D.x,He=-D.y-D.x*re;this.addHalfVertex(M,D.x+D.y*j,D.y-D.x*j,ge,!1,j,fe),this.addHalfVertex(M,De,He,ge,!0,-re,fe),this.distance>kv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(M,D,j,re,fe,ge))}addHalfVertex({x:M,y:D},j,re,fe,ge,De,He){let at=.5*(this.lineClips?this.scaledDistance*(kv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((M<<1)+(fe?1:0),(D<<1)+(ge?1:0),Math.round(63*j)+128,Math.round(63*re)+128,1+(De===0?0:De<0?-1:1)|(63&at)<<2,at>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Tt=He.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Tt),He.primitiveLength++),ge?this.e2=Tt:this.e1=Tt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(M,D){this.distance+=M.dist(D),this.updateScaledDistance()}}let Cv,iy;yi("LineBucket",Kv,{omit:["layers","patternFeatures"]});var fg={get paint(){return iy=iy||new ue({"line-opacity":new Ja(Se.paint_line["line-opacity"]),"line-color":new Ja(Se.paint_line["line-color"]),"line-translate":new Ia(Se.paint_line["line-translate"]),"line-translate-anchor":new Ia(Se.paint_line["line-translate-anchor"]),"line-width":new Ja(Se.paint_line["line-width"]),"line-gap-width":new Ja(Se.paint_line["line-gap-width"]),"line-offset":new Ja(Se.paint_line["line-offset"]),"line-blur":new Ja(Se.paint_line["line-blur"]),"line-dasharray":new yc(Se.paint_line["line-dasharray"]),"line-pattern":new Jc(Se.paint_line["line-pattern"]),"line-gradient":new _c(Se.paint_line["line-gradient"])})},get layout(){return Cv=Cv||new ue({"line-cap":new Ia(Se.layout_line["line-cap"]),"line-join":new Ja(Se.layout_line["line-join"]),"line-miter-limit":new Ia(Se.layout_line["line-miter-limit"]),"line-round-limit":new Ia(Se.layout_line["line-round-limit"]),"line-sort-key":new Ja(Se.layout_line["line-sort-key"])})}};class Hf extends Ja{possiblyEvaluate(M,D){return D=new Zo(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(M,D)}evaluate(M,D,j,re){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(M,D,j,re)}}let hg;class ny extends B{constructor(M){super(M,fg),this.gradientVersion=0,hg||(hg=new Hf(fg.paint.properties["line-width"].specification),hg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(M){if(M==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!function(j){return j._styleExpression!==void 0}(D)&&D._styleExpression.expression instanceof Ui,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(M,D){super.recalculate(M,D),this.paint._values["line-floorwidth"]=hg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,M)}createBucket(M){return new Kv(M)}queryRadius(M){let D=M,j=Rh(yn("line-width",this,D),yn("line-gap-width",this,D)),re=yn("line-offset",this,D);return j/2+Math.abs(re)+$a(this.paint.get("line-translate"))}queryIntersectsFeature(M,D,j,re,fe,ge,De){let He=In(M,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),ge.angle,De),at=De/2*Rh(this.paint.get("line-width").evaluate(D,j),this.paint.get("line-gap-width").evaluate(D,j)),Tt=this.paint.get("line-offset").evaluate(D,j);return Tt&&(re=function(qt,Qt){let sr=[];for(let wr=0;wr=3){for(let ei=0;ei0?M+2*R:R}let rm=Fe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=Fe([{name:"a_projected_pos",components:3,type:"Float32"}],4);Fe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=Fe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Fe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let ay=Fe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=Fe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,M,D){return R.sections.forEach(j=>{j.text=function(re,fe,ge){let De=fe.layout.get("text-transform").evaluate(ge,{});return De==="uppercase"?re=re.toLocaleUpperCase():De==="lowercase"&&(re=re.toLocaleLowerCase()),fs.applyArabicShaping&&(re=fs.applyArabicShaping(re)),re}(j.text,M,D)}),R}Fe([{name:"triangle",components:3,type:"Uint16"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Fe([{type:"Float32",name:"offsetX"}]),Fe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Fe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let Fu={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var kl=24,bd=Kl,oy=function(R,M,D,j,re){var fe,ge,De=8*re-j-1,He=(1<>1,Tt=-7,qt=D?re-1:0,Qt=D?-1:1,sr=R[M+qt];for(qt+=Qt,fe=sr&(1<<-Tt)-1,sr>>=-Tt,Tt+=De;Tt>0;fe=256*fe+R[M+qt],qt+=Qt,Tt-=8);for(ge=fe&(1<<-Tt)-1,fe>>=-Tt,Tt+=j;Tt>0;ge=256*ge+R[M+qt],qt+=Qt,Tt-=8);if(fe===0)fe=1-at;else{if(fe===He)return ge?NaN:1/0*(sr?-1:1);ge+=Math.pow(2,j),fe-=at}return(sr?-1:1)*ge*Math.pow(2,fe-j)},A1=function(R,M,D,j,re,fe){var ge,De,He,at=8*fe-re-1,Tt=(1<>1,Qt=re===23?Math.pow(2,-24)-Math.pow(2,-77):0,sr=j?0:fe-1,wr=j?1:-1,Ir=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(De=isNaN(M)?1:0,ge=Tt):(ge=Math.floor(Math.log(M)/Math.LN2),M*(He=Math.pow(2,-ge))<1&&(ge--,He*=2),(M+=ge+qt>=1?Qt/He:Qt*Math.pow(2,1-qt))*He>=2&&(ge++,He/=2),ge+qt>=Tt?(De=0,ge=Tt):ge+qt>=1?(De=(M*He-1)*Math.pow(2,re),ge+=qt):(De=M*Math.pow(2,qt-1)*Math.pow(2,re),ge=0));re>=8;R[D+sr]=255&De,sr+=wr,De/=256,re-=8);for(ge=ge<0;R[D+sr]=255&ge,sr+=wr,ge/=256,at-=8);R[D+sr-wr]|=128*Ir};function Kl(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}Kl.Varint=0,Kl.Fixed64=1,Kl.Bytes=2,Kl.Fixed32=5;var Nx=4294967296,am=1/Nx,Sw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lv(R){return R.type===Kl.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,M,D){return D?4294967296*M+(R>>>0):4294967296*(M>>>0)+(R>>>0)}function Ew(R,M,D){var j=M<=16383?1:M<=2097151?2:M<=268435455?3:Math.floor(Math.log(M)/(7*Math.LN2));D.realloc(j);for(var re=D.pos-1;re>=R;re--)D.buf[re+j]=D.buf[re]}function Ux(R,M){for(var D=0;D>>8,R[D+2]=M>>>16,R[D+3]=M>>>24}function cC(R,M){return(R[M]|R[M+1]<<8|R[M+2]<<16)+(R[M+3]<<24)}Kl.prototype={destroy:function(){this.buf=null},readFields:function(R,M,D){for(D=D||this.length;this.pos>3,fe=this.pos;this.type=7&j,R(re,M,this),this.pos===fe&&this.skip(j)}return M},readMessage:function(R,M){return this.readFields(R,M,this.readVarint()+this.pos)},readFixed32:function(){var R=sy(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=cC(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=sy(this.buf,this.pos)+sy(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readSFixed64:function(){var R=sy(this.buf,this.pos)+cC(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readFloat:function(){var R=oy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=oy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var M,D,j=this.buf;return M=127&(D=j[this.pos++]),D<128?M:(M|=(127&(D=j[this.pos++]))<<7,D<128?M:(M|=(127&(D=j[this.pos++]))<<14,D<128?M:(M|=(127&(D=j[this.pos++]))<<21,D<128?M:function(re,fe,ge){var De,He,at=ge.buf;if(De=(112&(He=at[ge.pos++]))>>4,He<128||(De|=(127&(He=at[ge.pos++]))<<3,He<128)||(De|=(127&(He=at[ge.pos++]))<<10,He<128)||(De|=(127&(He=at[ge.pos++]))<<17,He<128)||(De|=(127&(He=at[ge.pos++]))<<24,He<128)||(De|=(1&(He=at[ge.pos++]))<<31,He<128))return om(re,De,fe);throw new Error("Expected varint not more than 10 bytes")}(M|=(15&(D=j[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,M=this.pos;return this.pos=R,R-M>=12&&Sw?function(D,j,re){return Sw.decode(D.subarray(j,re))}(this.buf,M,R):function(D,j,re){for(var fe="",ge=j;ge239?4:Tt>223?3:Tt>191?2:1;if(ge+Qt>re)break;Qt===1?Tt<128&&(qt=Tt):Qt===2?(192&(De=D[ge+1]))==128&&(qt=(31&Tt)<<6|63&De)<=127&&(qt=null):Qt===3?(He=D[ge+2],(192&(De=D[ge+1]))==128&&(192&He)==128&&((qt=(15&Tt)<<12|(63&De)<<6|63&He)<=2047||qt>=55296&&qt<=57343)&&(qt=null)):Qt===4&&(He=D[ge+2],at=D[ge+3],(192&(De=D[ge+1]))==128&&(192&He)==128&&(192&at)==128&&((qt=(15&Tt)<<18|(63&De)<<12|(63&He)<<6|63&at)<=65535||qt>=1114112)&&(qt=null)),qt===null?(qt=65533,Qt=1):qt>65535&&(qt-=65536,fe+=String.fromCharCode(qt>>>10&1023|55296),qt=56320|1023&qt),fe+=String.fromCharCode(qt),ge+=Qt}return fe}(this.buf,M,R)},readBytes:function(){var R=this.readVarint()+this.pos,M=this.buf.subarray(this.pos,R);return this.pos=R,M},readPackedVarint:function(R,M){if(this.type!==Kl.Bytes)return R.push(this.readVarint(M));var D=Lv(this);for(R=R||[];this.pos127;);else if(M===Kl.Bytes)this.pos=this.readVarint()+this.pos;else if(M===Kl.Fixed32)this.pos+=4;else{if(M!==Kl.Fixed64)throw new Error("Unimplemented type: "+M);this.pos+=8}},writeTag:function(R,M){this.writeVarint(R<<3|M)},realloc:function(R){for(var M=this.length||16;M268435455||R<0?function(M,D){var j,re;if(M>=0?(j=M%4294967296|0,re=M/4294967296|0):(re=~(-M/4294967296),4294967295^(j=~(-M%4294967296))?j=j+1|0:(j=0,re=re+1|0)),M>=18446744073709552e3||M<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(fe,ge,De){De.buf[De.pos++]=127&fe|128,fe>>>=7,De.buf[De.pos++]=127&fe|128,fe>>>=7,De.buf[De.pos++]=127&fe|128,fe>>>=7,De.buf[De.pos++]=127&fe|128,De.buf[De.pos]=127&(fe>>>=7)}(j,0,D),function(fe,ge){var De=(7&fe)<<4;ge.buf[ge.pos++]|=De|((fe>>>=3)?128:0),fe&&(ge.buf[ge.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(ge.buf[ge.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(ge.buf[ge.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(ge.buf[ge.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(ge.buf[ge.pos++]=127&fe)))))}(re,D)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var M=this.pos;this.pos=function(j,re,fe){for(var ge,De,He=0;He55295&&ge<57344){if(!De){ge>56319||He+1===re.length?(j[fe++]=239,j[fe++]=191,j[fe++]=189):De=ge;continue}if(ge<56320){j[fe++]=239,j[fe++]=191,j[fe++]=189,De=ge;continue}ge=De-55296<<10|ge-56320|65536,De=null}else De&&(j[fe++]=239,j[fe++]=191,j[fe++]=189,De=null);ge<128?j[fe++]=ge:(ge<2048?j[fe++]=ge>>6|192:(ge<65536?j[fe++]=ge>>12|224:(j[fe++]=ge>>18|240,j[fe++]=ge>>12&63|128),j[fe++]=ge>>6&63|128),j[fe++]=63&ge|128)}return fe}(this.buf,R,this.pos);var D=this.pos-M;D>=128&&Ew(M,D,this),this.pos=M-1,this.writeVarint(D),this.pos+=D},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var M=R.length;this.writeVarint(M),this.realloc(M);for(var D=0;D=128&&Ew(D,j,this),this.pos=D-1,this.writeVarint(j),this.pos+=j},writeMessage:function(R,M,D){this.writeTag(R,Kl.Bytes),this.writeRawMessage(M,D)},writePackedVarint:function(R,M){M.length&&this.writeMessage(R,Ux,M)},writePackedSVarint:function(R,M){M.length&&this.writeMessage(R,F9,M)},writePackedBoolean:function(R,M){M.length&&this.writeMessage(R,B9,M)},writePackedFloat:function(R,M){M.length&&this.writeMessage(R,q9,M)},writePackedDouble:function(R,M){M.length&&this.writeMessage(R,O9,M)},writePackedFixed32:function(R,M){M.length&&this.writeMessage(R,CQ,M)},writePackedSFixed32:function(R,M){M.length&&this.writeMessage(R,N9,M)},writePackedFixed64:function(R,M){M.length&&this.writeMessage(R,U9,M)},writePackedSFixed64:function(R,M){M.length&&this.writeMessage(R,V9,M)},writeBytesField:function(R,M){this.writeTag(R,Kl.Bytes),this.writeBytes(M)},writeFixed32Field:function(R,M){this.writeTag(R,Kl.Fixed32),this.writeFixed32(M)},writeSFixed32Field:function(R,M){this.writeTag(R,Kl.Fixed32),this.writeSFixed32(M)},writeFixed64Field:function(R,M){this.writeTag(R,Kl.Fixed64),this.writeFixed64(M)},writeSFixed64Field:function(R,M){this.writeTag(R,Kl.Fixed64),this.writeSFixed64(M)},writeVarintField:function(R,M){this.writeTag(R,Kl.Varint),this.writeVarint(M)},writeSVarintField:function(R,M){this.writeTag(R,Kl.Varint),this.writeSVarint(M)},writeStringField:function(R,M){this.writeTag(R,Kl.Bytes),this.writeString(M)},writeFloatField:function(R,M){this.writeTag(R,Kl.Fixed32),this.writeFloat(M)},writeDoubleField:function(R,M){this.writeTag(R,Kl.Fixed64),this.writeDouble(M)},writeBooleanField:function(R,M){this.writeVarintField(R,!!M)}};var tM=o(bd);let rM=3;function LQ(R,M,D){R===1&&D.readMessage(H9,M)}function H9(R,M,D){if(R===3){let{id:j,bitmap:re,width:fe,height:ge,left:De,top:He,advance:at}=D.readMessage(fC,{});M.push({id:j,bitmap:new bo({width:fe+2*rM,height:ge+2*rM},re),metrics:{width:fe,height:ge,left:De,top:He,advance:at}})}}function fC(R,M,D){R===1?M.id=D.readVarint():R===2?M.bitmap=D.readBytes():R===3?M.width=D.readVarint():R===4?M.height=D.readVarint():R===5?M.left=D.readSVarint():R===6?M.top=D.readSVarint():R===7&&(M.advance=D.readVarint())}let hC=rM;function iM(R){let M=0,D=0;for(let ge of R)M+=ge.w*ge.h,D=Math.max(D,ge.w);R.sort((ge,De)=>De.h-ge.h);let j=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(M/.95)),D),h:1/0}],re=0,fe=0;for(let ge of R)for(let De=j.length-1;De>=0;De--){let He=j[De];if(!(ge.w>He.w||ge.h>He.h)){if(ge.x=He.x,ge.y=He.y,fe=Math.max(fe,ge.y+ge.h),re=Math.max(re,ge.x+ge.w),ge.w===He.w&&ge.h===He.h){let at=j.pop();De=0&&j>=M&&Lw[this.text.charCodeAt(j)];j--)D--;this.text=this.text.substring(M,D),this.sectionIndex=this.sectionIndex.slice(M,D)}substring(M,D){let j=new M1;return j.text=this.text.substring(M,D),j.sectionIndex=this.sectionIndex.slice(M,D),j.sections=this.sections,j}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((M,D)=>Math.max(M,this.sections[D].scale),0)}addTextSection(M,D){this.text+=M.text,this.sections.push(Hx.forText(M.scale,M.fontStack||D));let j=this.sections.length-1;for(let re=0;re=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Gx(R,M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr){let Ir=M1.fromFeature(R,re),ei;qt===i.ah.vertical&&Ir.verticalizePunctuation();let{processBidirectionalText:si,processStyledBidirectionalText:Fi}=fs;if(si&&Ir.sections.length===1){ei=[];let Ki=si(Ir.toString(),S1(Ir,at,fe,M,j,sr));for(let ea of Ki){let Na=new M1;Na.text=ea,Na.sections=Ir.sections;for(let Co=0;Co0&&ep>xf&&(xf=ep)}else{let oc=Na[Cl.fontStack],If=oc&&oc[Tu];if(If&&If.rect)I1=If.rect,qc=If.metrics;else{let ep=ea[Cl.fontStack],gg=ep&&ep[Tu];if(!gg)continue;qc=gg.metrics}Rv=(fh-Cl.scale)*kl}Qv?(Ki.verticalizable=!0,Dh.push({glyph:Tu,imageName:p0,x:Oo,y:wu+Rv,vertical:Qv,scale:Cl.scale,fontStack:Cl.fontStack,sectionIndex:qu,metrics:qc,rect:I1}),Oo+=Gp*Cl.scale+bn):(Dh.push({glyph:Tu,imageName:p0,x:Oo,y:wu+Rv,vertical:Qv,scale:Cl.scale,fontStack:Cl.fontStack,sectionIndex:qu,metrics:qc,rect:I1}),Oo+=qc.advance*Cl.scale+bn)}Dh.length!==0&&(hu=Math.max(Oo-bn,hu),sm(Dh,0,Dh.length-1,$v,xf)),Oo=0;let Iv=Nn*fh+xf;rd.lineOffset=Math.max(xf,Td),wu+=Iv,uh=Math.max(Iv,uh),++td}var ch;let Ud=wu-lh,{horizontalAlign:Vd,verticalAlign:Hd}=Iw(no);(function(rf,fh,Td,rd,Dh,xf,Iv,lv,Cl){let qu=(fh-Td)*Dh,Tu=0;Tu=xf!==Iv?-lv*rd-lh:(-rd*Cl+.5)*Iv;for(let Rv of rf)for(let qc of Rv.positionedGlyphs)qc.x+=qu,qc.y+=Tu})(Ki.positionedLines,$v,Vd,Hd,hu,uh,Nn,Ud,ka.length),Ki.top+=-Hd*Ud,Ki.bottom=Ki.top+Ud,Ki.left+=-Vd*hu,Ki.right=Ki.left+hu}(Li,M,D,j,ei,ge,De,He,qt,at,Qt,wr),!function(Ki){for(let ea of Ki)if(ea.positionedGlyphs.length!==0)return!1;return!0}(gi)&&Li}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},G9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},j9={40:!0};function dC(R,M,D,j,re,fe){if(M.imageName){let ge=j[M.imageName];return ge?ge.displaySize[0]*M.scale*kl/fe+re:0}{let ge=D[M.fontStack],De=ge&&ge[R];return De?De.metrics.advance*M.scale+re:0}}function vC(R,M,D,j){let re=Math.pow(R-M,2);return j?R=0,at=0;for(let qt=0;qtat){let Tt=Math.ceil(fe/at);re*=Tt/ge,ge=Tt}return{x1:j,y1:re,x2:j+fe,y2:re+ge}}function mC(R,M,D,j,re,fe){let ge=R.image,De;if(ge.content){let ei=ge.content,si=ge.pixelRatio||1;De=[ei[0]/si,ei[1]/si,ge.displaySize[0]-ei[2]/si,ge.displaySize[1]-ei[3]/si]}let He=M.left*fe,at=M.right*fe,Tt,qt,Qt,sr;D==="width"||D==="both"?(sr=re[0]+He-j[3],qt=re[0]+at+j[1]):(sr=re[0]+(He+at-ge.displaySize[0])/2,qt=sr+ge.displaySize[0]);let wr=M.top*fe,Ir=M.bottom*fe;return D==="height"||D==="both"?(Tt=re[1]+wr-j[0],Qt=re[1]+Ir+j[2]):(Tt=re[1]+(wr+Ir-ge.displaySize[1])/2,Qt=Tt+ge.displaySize[1]),{image:ge,top:Tt,right:qt,bottom:Qt,left:sr,collisionPadding:De}}let Wx=255,v0=128,lm=Wx*v0;function yC(R,M){let{expression:D}=M;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new Zo(R+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:j,interpolationType:re}=D,fe=0;for(;fege.id),this.index=M.index,this.pixelRatio=M.pixelRatio,this.sourceLayerIndex=M.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=On([]),this.placementViewportMatrix=On([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=yC(this.zoom,D["text-size"]),this.iconSizeData=yC(this.zoom,D["icon-size"]);let j=this.layers[0].layout,re=j.get("symbol-sort-key"),fe=j.get("symbol-z-order");this.canOverlap=nM(j,"text-overlap","text-allow-overlap")!=="never"||nM(j,"icon-overlap","icon-allow-overlap")!=="never"||j.get("text-ignore-placement")||j.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!re.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,j.get("symbol-placement")==="point"&&(this.writingModes=j.get("text-writing-mode").map(ge=>i.ah[ge])),this.stateDependentLayerIds=this.layers.filter(ge=>ge.isStateDependent()).map(ge=>ge.id),this.sourceID=M.sourceID}createArrays(){this.text=new sM(new gs(this.layers,this.zoom,M=>/^text/.test(M))),this.icon=new sM(new gs(this.layers,this.zoom,M=>/^icon/.test(M))),this.glyphOffsetArray=new xo,this.lineVertexArray=new Ha,this.symbolInstances=new Ua,this.textAnchorOffsets=new Lo}calculateGlyphDependencies(M,D,j,re,fe){for(let ge=0;ge0)&&(ge.value.kind!=="constant"||ge.value.value.length>0),Tt=He.value.kind!=="constant"||!!He.value.value||Object.keys(He.parameters).length>0,qt=fe.get("symbol-sort-key");if(this.features=[],!at&&!Tt)return;let Qt=D.iconDependencies,sr=D.glyphDependencies,wr=D.availableImages,Ir=new Zo(this.zoom);for(let{feature:ei,id:si,index:Fi,sourceLayerIndex:gi}of M){let Li=re._featureFilter.needGeometry,Ki=xl(ei,Li);if(!re._featureFilter.filter(Ir,Ki,j))continue;let ea,Na;if(Li||(Ki.geometry=js(ei)),at){let ka=re.getValueAndResolveTokens("text-field",Ki,j,wr),Nn=Zr.factory(ka),no=this.hasRTLText=this.hasRTLText||oM(Nn);(!no||fs.getRTLTextPluginStatus()==="unavailable"||no&&fs.isParsed())&&(ea=nm(Nn,re,Ki))}if(Tt){let ka=re.getValueAndResolveTokens("icon-image",Ki,j,wr);Na=ka instanceof ki?ka:ki.fromString(ka)}if(!ea&&!Na)continue;let Co=this.sortFeaturesByKey?qt.evaluate(Ki,{},j):void 0;if(this.features.push({id:si,text:ea,icon:Na,index:Fi,sourceLayerIndex:gi,geometry:Ki.geometry,properties:ei.properties,type:Z9[ei.type],sortKey:Co}),Na&&(Qt[Na.name]=!0),ea){let ka=ge.evaluate(Ki,{},j).join(","),Nn=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let no of ea.sections)if(no.image)Qt[no.image.name]=!0;else{let Ya=Ba(ea.toString()),ja=no.fontStack||ka,bn=sr[ja]=sr[ja]||{};this.calculateGlyphDependencies(no.text,bn,Nn,this.allowVerticalPlacement,Ya)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ei){let si={},Fi={},gi=[],Li=0;function Ki(ka){gi.push(ei[ka]),Li++}function ea(ka,Nn,no){let Ya=Fi[ka];return delete Fi[ka],Fi[Nn]=Ya,gi[Ya].geometry[0].pop(),gi[Ya].geometry[0]=gi[Ya].geometry[0].concat(no[0]),Ya}function Na(ka,Nn,no){let Ya=si[Nn];return delete si[Nn],si[ka]=Ya,gi[Ya].geometry[0].shift(),gi[Ya].geometry[0]=no[0].concat(gi[Ya].geometry[0]),Ya}function Co(ka,Nn,no){let Ya=no?Nn[0][Nn[0].length-1]:Nn[0][0];return`${ka}:${Ya.x}:${Ya.y}`}for(let ka=0;kaka.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ei,si)=>ei.sortKey-si.sortKey)}update(M,D,j){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(M,D,this.layers,j),this.icon.programConfigurations.updatePaintArrays(M,D,this.layers,j))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(M){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(M),this.iconCollisionBox.upload(M)),this.text.upload(M,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(M,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(M,D){let j=this.lineVertexArray.length;if(M.segment!==void 0){let re=M.dist(D[M.segment+1]),fe=M.dist(D[M.segment]),ge={};for(let De=M.segment+1;De=0;De--)ge[De]={x:D[De].x,y:D[De].y,tileUnitDistanceFromAnchor:fe},De>0&&(fe+=D[De-1].dist(D[De]));for(let De=0;De0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(M,D){let j=M.placedSymbolArray.get(D),re=j.vertexStartIndex+4*j.numGlyphs;for(let fe=j.vertexStartIndex;fere[De]-re[He]||fe[He]-fe[De]),ge}addToSortKeyRanges(M,D){let j=this.sortKeyRanges[this.sortKeyRanges.length-1];j&&j.sortKey===D?j.symbolInstanceEnd=M+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:M,symbolInstanceEnd:M+1})}sortFeatures(M){if(this.sortFeaturesByY&&this.sortedAngle!==M&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(M),this.sortedAngle=M,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let j=this.symbolInstances.get(D);this.featureSortOrder.push(j.featureIndex),[j.rightJustifiedTextSymbolIndex,j.centerJustifiedTextSymbolIndex,j.leftJustifiedTextSymbolIndex].forEach((re,fe,ge)=>{re>=0&&ge.indexOf(re)===fe&&this.addIndicesForPlacedSymbol(this.text,re)}),j.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,j.verticalPlacedTextSymbolIndex),j.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,j.placedIconSymbolIndex),j.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,j.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let tf,Zx;yi("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aM;var Dw={get paint(){return Zx=Zx||new ue({"icon-opacity":new Ja(Se.paint_symbol["icon-opacity"]),"icon-color":new Ja(Se.paint_symbol["icon-color"]),"icon-halo-color":new Ja(Se.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ja(Se.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ja(Se.paint_symbol["icon-halo-blur"]),"icon-translate":new Ia(Se.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ia(Se.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ja(Se.paint_symbol["text-opacity"]),"text-color":new Ja(Se.paint_symbol["text-color"],{runtimeType:Gt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new Ja(Se.paint_symbol["text-halo-color"]),"text-halo-width":new Ja(Se.paint_symbol["text-halo-width"]),"text-halo-blur":new Ja(Se.paint_symbol["text-halo-blur"]),"text-translate":new Ia(Se.paint_symbol["text-translate"]),"text-translate-anchor":new Ia(Se.paint_symbol["text-translate-anchor"])})},get layout(){return tf=tf||new ue({"symbol-placement":new Ia(Se.layout_symbol["symbol-placement"]),"symbol-spacing":new Ia(Se.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ia(Se.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ja(Se.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ia(Se.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ia(Se.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ia(Se.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ia(Se.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ia(Se.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ia(Se.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ja(Se.layout_symbol["icon-size"]),"icon-text-fit":new Ia(Se.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ia(Se.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ja(Se.layout_symbol["icon-image"]),"icon-rotate":new Ja(Se.layout_symbol["icon-rotate"]),"icon-padding":new Ja(Se.layout_symbol["icon-padding"]),"icon-keep-upright":new Ia(Se.layout_symbol["icon-keep-upright"]),"icon-offset":new Ja(Se.layout_symbol["icon-offset"]),"icon-anchor":new Ja(Se.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ia(Se.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ia(Se.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ia(Se.layout_symbol["text-rotation-alignment"]),"text-field":new Ja(Se.layout_symbol["text-field"]),"text-font":new Ja(Se.layout_symbol["text-font"]),"text-size":new Ja(Se.layout_symbol["text-size"]),"text-max-width":new Ja(Se.layout_symbol["text-max-width"]),"text-line-height":new Ia(Se.layout_symbol["text-line-height"]),"text-letter-spacing":new Ja(Se.layout_symbol["text-letter-spacing"]),"text-justify":new Ja(Se.layout_symbol["text-justify"]),"text-radial-offset":new Ja(Se.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ia(Se.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Ja(Se.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Ja(Se.layout_symbol["text-anchor"]),"text-max-angle":new Ia(Se.layout_symbol["text-max-angle"]),"text-writing-mode":new Ia(Se.layout_symbol["text-writing-mode"]),"text-rotate":new Ja(Se.layout_symbol["text-rotate"]),"text-padding":new Ia(Se.layout_symbol["text-padding"]),"text-keep-upright":new Ia(Se.layout_symbol["text-keep-upright"]),"text-transform":new Ja(Se.layout_symbol["text-transform"]),"text-offset":new Ja(Se.layout_symbol["text-offset"]),"text-allow-overlap":new Ia(Se.layout_symbol["text-allow-overlap"]),"text-overlap":new Ia(Se.layout_symbol["text-overlap"]),"text-ignore-placement":new Ia(Se.layout_symbol["text-ignore-placement"]),"text-optional":new Ia(Se.layout_symbol["text-optional"])})}};class Xx{constructor(M){if(M.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=M.property.overrides?M.property.overrides.runtimeType:Ct,this.defaultValue=M}evaluate(M){if(M.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(M.formattedSection))return D.getOverride(M.formattedSection)}return M.feature&&M.featureState?this.defaultValue.evaluate(M.feature,M.featureState):this.defaultValue.property.specification.default}eachChild(M){this.defaultValue.isConstant()||M(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}yi("FormatSectionOverride",Xx,{omit:["defaultValue"]});class ly extends B{constructor(M){super(M,Dw)}recalculate(M,D){if(super.recalculate(M,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let j=this.layout.get("text-writing-mode");if(j){let re=[];for(let fe of j)re.indexOf(fe)<0&&re.push(fe);this.layout._values["text-writing-mode"]=re}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(M,D,j,re){let fe=this.layout.get(M).evaluate(D,{},j,re),ge=this._unevaluatedLayout._values[M];return ge.isDataDriven()||Lc(ge.value)||!fe?fe:function(De,He){return He.replace(/{([^{}]+)}/g,(at,Tt)=>De&&Tt in De?String(De[Tt]):"")}(D.properties,fe)}createBucket(M){return new E1(M)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let M of Dw.paint.overridableProperties){if(!ly.hasPaintOverride(this.layout,M))continue;let D=this.paint.get(M),j=new Xx(D),re=new Pu(j,D.property.specification),fe=null;fe=D.value.kind==="constant"||D.value.kind==="source"?new Xc("source",re):new ic("composite",re,D.value.zoomStops),this.paint._values[M]=new Du(D.property,fe,D.parameters)}}_handleOverridablePaintPropertyUpdate(M,D,j){return!(!this.layout||D.isDataDriven()||j.isDataDriven())&&ly.hasPaintOverride(this.layout,M)}static hasPaintOverride(M,D){let j=M.get("text-field"),re=Dw.paint.properties[D],fe=!1,ge=De=>{for(let He of De)if(re.overrides&&re.overrides.hasOverride(He))return void(fe=!0)};if(j.value.kind==="constant"&&j.value.value instanceof Zr)ge(j.value.value.sections);else if(j.value.kind==="source"){let De=at=>{fe||(at instanceof Gn&&$i(at.value)===Nr?ge(at.value.sections):at instanceof Ql?ge(at.sections):at.eachChild(De))},He=j.value;He._styleExpression&&De(He._styleExpression.expression)}return fe}}let _C;var Yx={get paint(){return _C=_C||new ue({"background-color":new Ia(Se.paint_background["background-color"]),"background-pattern":new yc(Se.paint_background["background-pattern"]),"background-opacity":new Ia(Se.paint_background["background-opacity"])})}};class Y9 extends B{constructor(M){super(M,Yx)}}let lM;var xC={get paint(){return lM=lM||new ue({"raster-opacity":new Ia(Se.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ia(Se.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ia(Se.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ia(Se.paint_raster["raster-brightness-max"]),"raster-saturation":new Ia(Se.paint_raster["raster-saturation"]),"raster-contrast":new Ia(Se.paint_raster["raster-contrast"]),"raster-resampling":new Ia(Se.paint_raster["raster-resampling"]),"raster-fade-duration":new Ia(Se.paint_raster["raster-fade-duration"])})}};class Kx extends B{constructor(M){super(M,xC)}}class uM extends B{constructor(M){super(M,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=M}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cM{constructor(M){this._methodToThrottle=M,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let fM=63710088e-1;class dg{constructor(M,D){if(isNaN(M)||isNaN(D))throw new Error(`Invalid LngLat object: (${M}, ${D})`);if(this.lng=+M,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(M){let D=Math.PI/180,j=this.lat*D,re=M.lat*D,fe=Math.sin(j)*Math.sin(re)+Math.cos(j)*Math.cos(re)*Math.cos((M.lng-this.lng)*D);return fM*Math.acos(Math.min(fe,1))}static convert(M){if(M instanceof dg)return M;if(Array.isArray(M)&&(M.length===2||M.length===3))return new dg(Number(M[0]),Number(M[1]));if(!Array.isArray(M)&&typeof M=="object"&&M!==null)return new dg(Number("lng"in M?M.lng:M.lon),Number(M.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let k1=2*Math.PI*fM;function bC(R){return k1*Math.cos(R*Math.PI/180)}function zw(R){return(180+R)/360}function wC(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function Fw(R,M){return R/bC(M)}function Jx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class $x{constructor(M,D,j=0){this.x=+M,this.y=+D,this.z=+j}static fromLngLat(M,D=0){let j=dg.convert(M);return new $x(zw(j.lng),wC(j.lat),Fw(D,j.lat))}toLngLat(){return new dg(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*bC(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/k1*(M=Jx(this.y),1/Math.cos(M*Math.PI/180));var M}}function gp(R,M,D){var j=2*Math.PI*6378137/256/Math.pow(2,D);return[R*j-2*Math.PI*6378137/2,M*j-2*Math.PI*6378137/2]}class hM{constructor(M,D,j){if(!function(re,fe,ge){return!(re<0||re>25||ge<0||ge>=Math.pow(2,re)||fe<0||fe>=Math.pow(2,re))}(M,D,j))throw new Error(`x=${D}, y=${j}, z=${M} outside of bounds. 0<=x<${Math.pow(2,M)}, 0<=y<${Math.pow(2,M)} 0<=z<=25 `);this.z=M,this.x=D,this.y=j,this.key=Qx(0,M,M,D,j)}equals(M){return this.z===M.z&&this.x===M.x&&this.y===M.y}url(M,D,j){let re=(ge=this.y,De=this.z,He=gp(256*(fe=this.x),256*(ge=Math.pow(2,De)-ge-1),De),at=gp(256*(fe+1),256*(ge+1),De),He[0]+","+He[1]+","+at[0]+","+at[1]);var fe,ge,De,He,at;let Tt=function(qt,Qt,sr){let wr,Ir="";for(let ei=qt;ei>0;ei--)wr=1<1?"@2x":"").replace(/{quadkey}/g,Tt).replace(/{bbox-epsg-3857}/g,re)}isChildOf(M){let D=this.z-M.z;return D>0&&M.x===this.x>>D&&M.y===this.y>>D}getTilePoint(M){let D=Math.pow(2,this.z);return new u((M.x*D-this.x)*Ra,(M.y*D-this.y)*Ra)}toString(){return`${this.z}/${this.x}/${this.y}`}}class TC{constructor(M,D){this.wrap=M,this.canonical=D,this.key=Qx(M,D.z,D.z,D.x,D.y)}}class Jv{constructor(M,D,j,re,fe){if(M= z; overscaledZ = ${M}; z = ${j}`);this.overscaledZ=M,this.wrap=D,this.canonical=new hM(j,+re,+fe),this.key=Qx(D,M,j,re,fe)}clone(){return new Jv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(M){return this.overscaledZ===M.overscaledZ&&this.wrap===M.wrap&&this.canonical.equals(M.canonical)}scaledTo(M){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-M;return M>this.canonical.z?new Jv(M,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jv(M,this.wrap,M,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(M,D){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let j=this.canonical.z-M;return M>this.canonical.z?Qx(this.wrap*+D,M,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+D,M,M,this.canonical.x>>j,this.canonical.y>>j)}isChildOf(M){if(M.wrap!==this.wrap)return!1;let D=this.canonical.z-M.canonical.z;return M.overscaledZ===0||M.overscaledZ>D&&M.canonical.y===this.canonical.y>>D}children(M){if(this.overscaledZ>=M)return[new Jv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,j=2*this.canonical.x,re=2*this.canonical.y;return[new Jv(D,this.wrap,D,j,re),new Jv(D,this.wrap,D,j+1,re),new Jv(D,this.wrap,D,j,re+1),new Jv(D,this.wrap,D,j+1,re+1)]}isLessThan(M){return this.wrapM.wrap)&&(this.overscaledZM.overscaledZ)&&(this.canonical.xM.canonical.x)&&this.canonical.ythis.max&&(this.max=qt),qt=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(M+1)}unpack(M,D,j){return M*this.redFactor+D*this.greenFactor+j*this.blueFactor-this.baseShift}getPixels(){return new Kn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(M,D,j){if(this.dim!==M.dim)throw new Error("dem dimension mismatch");let re=D*this.dim,fe=D*this.dim+this.dim,ge=j*this.dim,De=j*this.dim+this.dim;switch(D){case-1:re=fe-1;break;case 1:fe=re+1}switch(j){case-1:ge=De-1;break;case 1:De=ge+1}let He=-D*this.dim,at=-j*this.dim;for(let Tt=ge;Tt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${M} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[M]}}class dM{constructor(M,D,j,re,fe){this.type="Feature",this._vectorTileFeature=M,M._z=D,M._x=j,M._y=re,this.properties=M.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(M){this._geometry=M}toJSON(){let M={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(M[D]=this[D]);return M}}class uy{constructor(M,D){this.tileID=M,this.x=M.canonical.x,this.y=M.canonical.y,this.z=M.canonical.z,this.grid=new Oi(Ra,16,0),this.grid3D=new Oi(Ra,16,0),this.featureIndexArray=new ws,this.promoteId=D}insert(M,D,j,re,fe,ge){let De=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(j,re,fe);let He=ge?this.grid3D:this.grid;for(let at=0;at=0&&qt[3]>=0&&He.insert(De,qt[0],qt[1],qt[2],qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new ti.VectorTile(new tM(this.rawTileData)).layers,this.sourceLayerCoder=new MC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(M,D,j,re){this.loadVTLayers();let fe=M.params||{},ge=Ra/M.tileSize/M.scale,De=Pc(fe.filter),He=M.queryGeometry,at=M.queryPadding*ge,Tt=EC(He),qt=this.grid.query(Tt.minX-at,Tt.minY-at,Tt.maxX+at,Tt.maxY+at),Qt=EC(M.cameraQueryGeometry),sr=this.grid3D.query(Qt.minX-at,Qt.minY-at,Qt.maxX+at,Qt.maxY+at,(ei,si,Fi,gi)=>function(Li,Ki,ea,Na,Co){for(let Nn of Li)if(Ki<=Nn.x&&ea<=Nn.y&&Na>=Nn.x&&Co>=Nn.y)return!0;let ka=[new u(Ki,ea),new u(Ki,Co),new u(Na,Co),new u(Na,ea)];if(Li.length>2){for(let Nn of ka)if(zn(Li,Nn))return!0}for(let Nn=0;Nn(gi||(gi=js(Li)),Ki.queryIntersectsFeature(He,Li,ea,gi,this.z,M.transform,ge,M.pixelPosMatrix)))}return wr}loadMatchingFeature(M,D,j,re,fe,ge,De,He,at,Tt,qt){let Qt=this.bucketLayerIDs[D];if(ge&&!function(ei,si){for(let Fi=0;Fi=0)return!0;return!1}(ge,Qt))return;let sr=this.sourceLayerCoder.decode(j),wr=this.vtLayers[sr].feature(re);if(fe.needGeometry){let ei=xl(wr,!0);if(!fe.filter(new Zo(this.tileID.overscaledZ),ei,this.tileID.canonical))return}else if(!fe.filter(new Zo(this.tileID.overscaledZ),wr))return;let Ir=this.getId(wr,sr);for(let ei=0;ei{let De=M instanceof Dc?M.get(ge):null;return De&&De.evaluate?De.evaluate(D,j,re):De})}function EC(R){let M=1/0,D=1/0,j=-1/0,re=-1/0;for(let fe of R)M=Math.min(M,fe.x),D=Math.min(D,fe.y),j=Math.max(j,fe.x),re=Math.max(re,fe.y);return{minX:M,minY:D,maxX:j,maxY:re}}function K9(R,M){return M-R}function kC(R,M,D,j,re){let fe=[];for(let ge=0;ge=j&&qt.x>=j||(Tt.x>=j?Tt=new u(j,Tt.y+(j-Tt.x)/(qt.x-Tt.x)*(qt.y-Tt.y))._round():qt.x>=j&&(qt=new u(j,Tt.y+(j-Tt.x)/(qt.x-Tt.x)*(qt.y-Tt.y))._round()),Tt.y>=re&&qt.y>=re||(Tt.y>=re?Tt=new u(Tt.x+(re-Tt.y)/(qt.y-Tt.y)*(qt.x-Tt.x),re)._round():qt.y>=re&&(qt=new u(Tt.x+(re-Tt.y)/(qt.y-Tt.y)*(qt.x-Tt.x),re)._round()),He&&Tt.equals(He[He.length-1])||(He=[Tt],fe.push(He)),He.push(qt)))))}}return fe}yi("FeatureIndex",uy,{omit:["rawTileData","sourceLayerCoder"]});class vg extends u{constructor(M,D,j,re){super(M,D),this.angle=j,re!==void 0&&(this.segment=re)}clone(){return new vg(this.x,this.y,this.angle,this.segment)}}function vM(R,M,D,j,re){if(M.segment===void 0||D===0)return!0;let fe=M,ge=M.segment+1,De=0;for(;De>-D/2;){if(ge--,ge<0)return!1;De-=R[ge].dist(fe),fe=R[ge]}De+=R[ge].dist(R[ge+1]),ge++;let He=[],at=0;for(;Dej;)at-=He.shift().angleDelta;if(at>re)return!1;ge++,De+=Tt.dist(qt)}return!0}function CC(R){let M=0;for(let D=0;Dat){let wr=(at-He)/sr,Ir=To.number(qt.x,Qt.x,wr),ei=To.number(qt.y,Qt.y,wr),si=new vg(Ir,ei,Qt.angleTo(qt),Tt);return si._round(),!ge||vM(R,si,De,ge,M)?si:void 0}He+=sr}}function $9(R,M,D,j,re,fe,ge,De,He){let at=LC(j,fe,ge),Tt=PC(j,re),qt=Tt*ge,Qt=R[0].x===0||R[0].x===He||R[0].y===0||R[0].y===He;return M-qt=0&&Li=0&&Ki=0&&Qt+at<=Tt){let ea=new vg(Li,Ki,Fi,wr);ea._round(),j&&!vM(R,ea,fe,j,re)||sr.push(ea)}}qt+=si}return De||sr.length||ge||(sr=IC(R,qt/2,D,j,re,fe,ge,!0,He)),sr}yi("Anchor",vg);let C1=wd;function RC(R,M,D,j){let re=[],fe=R.image,ge=fe.pixelRatio,De=fe.paddedRect.w-2*C1,He=fe.paddedRect.h-2*C1,at={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Tt=fe.stretchX||[[0,De]],qt=fe.stretchY||[[0,He]],Qt=(bn,yo)=>bn+yo[1]-yo[0],sr=Tt.reduce(Qt,0),wr=qt.reduce(Qt,0),Ir=De-sr,ei=He-wr,si=0,Fi=sr,gi=0,Li=wr,Ki=0,ea=Ir,Na=0,Co=ei;if(fe.content&&j){let bn=fe.content,yo=bn[2]-bn[0],Wa=bn[3]-bn[1];(fe.textFitWidth||fe.textFitHeight)&&(at=gC(R)),si=pg(Tt,0,bn[0]),gi=pg(qt,0,bn[1]),Fi=pg(Tt,bn[0],bn[2]),Li=pg(qt,bn[1],bn[3]),Ki=bn[0]-si,Na=bn[1]-gi,ea=yo-Fi,Co=Wa-Li}let ka=at.x1,Nn=at.y1,no=at.x2-ka,Ya=at.y2-Nn,ja=(bn,yo,Wa,Oo)=>{let wu=qw(bn.stretch-si,Fi,no,ka),hu=L1(bn.fixed-Ki,ea,bn.stretch,sr),uh=qw(yo.stretch-gi,Li,Ya,Nn),$v=L1(yo.fixed-Na,Co,yo.stretch,wr),td=qw(Wa.stretch-si,Fi,no,ka),ch=L1(Wa.fixed-Ki,ea,Wa.stretch,sr),Ud=qw(Oo.stretch-gi,Li,Ya,Nn),Vd=L1(Oo.fixed-Na,Co,Oo.stretch,wr),Hd=new u(wu,uh),rf=new u(td,uh),fh=new u(td,Ud),Td=new u(wu,Ud),rd=new u(hu/ge,$v/ge),Dh=new u(ch/ge,Vd/ge),xf=M*Math.PI/180;if(xf){let Cl=Math.sin(xf),qu=Math.cos(xf),Tu=[qu,-Cl,Cl,qu];Hd._matMult(Tu),rf._matMult(Tu),Td._matMult(Tu),fh._matMult(Tu)}let Iv=bn.stretch+bn.fixed,lv=yo.stretch+yo.fixed;return{tl:Hd,tr:rf,bl:Td,br:fh,tex:{x:fe.paddedRect.x+C1+Iv,y:fe.paddedRect.y+C1+lv,w:Wa.stretch+Wa.fixed-Iv,h:Oo.stretch+Oo.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:rd,pixelOffsetBR:Dh,minFontScaleX:ea/ge/no,minFontScaleY:Co/ge/Ya,isSDF:D}};if(j&&(fe.stretchX||fe.stretchY)){let bn=DC(Tt,Ir,sr),yo=DC(qt,ei,wr);for(let Wa=0;Wa0&&(Ir=Math.max(10,Ir),this.circleDiameter=Ir)}else{let Qt=!((qt=ge.image)===null||qt===void 0)&&qt.content&&(ge.image.textFitWidth||ge.image.textFitHeight)?gC(ge):{x1:ge.left,y1:ge.top,x2:ge.right,y2:ge.bottom};Qt.y1=Qt.y1*De-He[0],Qt.y2=Qt.y2*De+He[2],Qt.x1=Qt.x1*De-He[3],Qt.x2=Qt.x2*De+He[1];let sr=ge.collisionPadding;if(sr&&(Qt.x1-=sr[0]*De,Qt.y1-=sr[1]*De,Qt.x2+=sr[2]*De,Qt.y2+=sr[3]*De),Tt){let wr=new u(Qt.x1,Qt.y1),Ir=new u(Qt.x2,Qt.y1),ei=new u(Qt.x1,Qt.y2),si=new u(Qt.x2,Qt.y2),Fi=Tt*Math.PI/180;wr._rotate(Fi),Ir._rotate(Fi),ei._rotate(Fi),si._rotate(Fi),Qt.x1=Math.min(wr.x,Ir.x,ei.x,si.x),Qt.x2=Math.max(wr.x,Ir.x,ei.x,si.x),Qt.y1=Math.min(wr.y,Ir.y,ei.y,si.y),Qt.y2=Math.max(wr.y,Ir.y,ei.y,si.y)}M.emplaceBack(D.x,D.y,Qt.x1,Qt.y1,Qt.x2,Qt.y2,j,re,fe)}this.boxEndIndex=M.length}}class Hp{constructor(M=[],D=(j,re)=>jre?1:0){if(this.data=M,this.length=this.data.length,this.compare=D,this.length>0)for(let j=(this.length>>1)-1;j>=0;j--)this._down(j)}push(M){this.data.push(M),this._up(this.length++)}pop(){if(this.length===0)return;let M=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),M}peek(){return this.data[0]}_up(M){let{data:D,compare:j}=this,re=D[M];for(;M>0;){let fe=M-1>>1,ge=D[fe];if(j(re,ge)>=0)break;D[M]=ge,M=fe}D[M]=re}_down(M){let{data:D,compare:j}=this,re=this.length>>1,fe=D[M];for(;M=0)break;D[M]=D[ge],M=ge}D[M]=fe}}function Q9(R,M=1,D=!1){let j=1/0,re=1/0,fe=-1/0,ge=-1/0,De=R[0];for(let sr=0;srfe)&&(fe=wr.x),(!sr||wr.y>ge)&&(ge=wr.y)}let He=Math.min(fe-j,ge-re),at=He/2,Tt=new Hp([],eq);if(He===0)return new u(j,re);for(let sr=j;srqt.d||!qt.d)&&(qt=sr,D&&console.log("found best %d after %d probes",Math.round(1e4*sr.d)/1e4,Qt)),sr.max-qt.d<=M||(at=sr.h/2,Tt.push(new P1(sr.p.x-at,sr.p.y-at,at,R)),Tt.push(new P1(sr.p.x+at,sr.p.y-at,at,R)),Tt.push(new P1(sr.p.x-at,sr.p.y+at,at,R)),Tt.push(new P1(sr.p.x+at,sr.p.y+at,at,R)),Qt+=4)}return D&&(console.log(`num probes: ${Qt}`),console.log(`best distance: ${qt.d}`)),qt.p}function eq(R,M){return M.max-R.max}function P1(R,M,D,j){this.p=new u(R,M),this.h=D,this.d=function(re,fe){let ge=!1,De=1/0;for(let He=0;Here.y!=wr.y>re.y&&re.x<(wr.x-sr.x)*(re.y-sr.y)/(wr.y-sr.y)+sr.x&&(ge=!ge),De=Math.min(De,Ni(re,sr,wr))}}return(ge?1:-1)*Math.sqrt(De)}(this.p,j),this.max=this.d+this.h*Math.SQRT2}var ed;i.aq=void 0,(ed=i.aq||(i.aq={}))[ed.center=1]="center",ed[ed.left=2]="left",ed[ed.right=3]="right",ed[ed.top=4]="top",ed[ed.bottom=5]="bottom",ed[ed["top-left"]=6]="top-left",ed[ed["top-right"]=7]="top-right",ed[ed["bottom-left"]=8]="bottom-left",ed[ed["bottom-right"]=9]="bottom-right";let fm=7,cy=Number.POSITIVE_INFINITY;function pM(R,M){return M[1]!==cy?function(D,j,re){let fe=0,ge=0;switch(j=Math.abs(j),re=Math.abs(re),D){case"top-right":case"top-left":case"top":ge=re-fm;break;case"bottom-right":case"bottom-left":case"bottom":ge=-re+fm}switch(D){case"top-right":case"bottom-right":case"right":fe=-j;break;case"top-left":case"bottom-left":case"left":fe=j}return[fe,ge]}(R,M[0],M[1]):function(D,j){let re=0,fe=0;j<0&&(j=0);let ge=j/Math.SQRT2;switch(D){case"top-right":case"top-left":fe=ge-fm;break;case"bottom-right":case"bottom-left":fe=-ge+fm;break;case"bottom":fe=-j+fm;break;case"top":fe=j-fm}switch(D){case"top-right":case"bottom-right":re=-ge;break;case"top-left":case"bottom-left":re=ge;break;case"left":re=j;break;case"right":re=-j}return[re,fe]}(R,M[0])}function zC(R,M,D){var j;let re=R.layout,fe=(j=re.get("text-variable-anchor-offset"))===null||j===void 0?void 0:j.evaluate(M,{},D);if(fe){let De=fe.values,He=[];for(let at=0;atQt*kl);Tt.startsWith("top")?qt[1]-=fm:Tt.startsWith("bottom")&&(qt[1]+=fm),He[at+1]=qt}return new Ei(He)}let ge=re.get("text-variable-anchor");if(ge){let De;De=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[re.get("text-radial-offset").evaluate(M,{},D)*kl,cy]:re.get("text-offset").evaluate(M,{},D).map(at=>at*kl);let He=[];for(let at of ge)He.push(at,pM(at,De));return new Ei(He)}return null}function gM(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function tq(R,M,D,j,re,fe,ge,De,He,at,Tt){let qt=fe.textMaxSize.evaluate(M,{});qt===void 0&&(qt=ge);let Qt=R.layers[0].layout,sr=Qt.get("icon-offset").evaluate(M,{},Tt),wr=qC(D.horizontal),Ir=ge/24,ei=R.tilePixelRatio*Ir,si=R.tilePixelRatio*qt/24,Fi=R.tilePixelRatio*De,gi=R.tilePixelRatio*Qt.get("symbol-spacing"),Li=Qt.get("text-padding")*R.tilePixelRatio,Ki=function(bn,yo,Wa,Oo=1){let wu=bn.get("icon-padding").evaluate(yo,{},Wa),hu=wu&&wu.values;return[hu[0]*Oo,hu[1]*Oo,hu[2]*Oo,hu[3]*Oo]}(Qt,M,Tt,R.tilePixelRatio),ea=Qt.get("text-max-angle")/180*Math.PI,Na=Qt.get("text-rotation-alignment")!=="viewport"&&Qt.get("symbol-placement")!=="point",Co=Qt.get("icon-rotation-alignment")==="map"&&Qt.get("symbol-placement")!=="point",ka=Qt.get("symbol-placement"),Nn=gi/2,no=Qt.get("icon-text-fit"),Ya;j&&no!=="none"&&(R.allowVerticalPlacement&&D.vertical&&(Ya=mC(j,D.vertical,no,Qt.get("icon-text-fit-padding"),sr,Ir)),wr&&(j=mC(j,wr,no,Qt.get("icon-text-fit-padding"),sr,Ir)));let ja=(bn,yo)=>{yo.x<0||yo.x>=Ra||yo.y<0||yo.y>=Ra||function(Wa,Oo,wu,hu,uh,$v,td,ch,Ud,Vd,Hd,rf,fh,Td,rd,Dh,xf,Iv,lv,Cl,qu,Tu,Rv,qc,I1){let p0=Wa.addToLineVertexArray(Oo,wu),Gp,Qv,oc,If,ep=0,gg=0,uv=0,R1=0,bM=-1,Uw=-1,g0={},fy=fi("");if(Wa.allowVerticalPlacement&&hu.vertical){let Ad=ch.layout.get("text-rotate").evaluate(qu,{},qc)+90;oc=new cm(Ud,Oo,Vd,Hd,rf,hu.vertical,fh,Td,rd,Ad),td&&(If=new cm(Ud,Oo,Vd,Hd,rf,td,xf,Iv,rd,Ad))}if(uh){let Ad=ch.layout.get("icon-rotate").evaluate(qu,{}),tp=ch.layout.get("icon-text-fit")!=="none",hm=RC(uh,Ad,Rv,tp),Gd=td?RC(td,Ad,Rv,tp):void 0;Qv=new cm(Ud,Oo,Vd,Hd,rf,uh,xf,Iv,!1,Ad),ep=4*hm.length;let Md=Wa.iconSizeData,yp=null;Md.kind==="source"?(yp=[v0*ch.layout.get("icon-size").evaluate(qu,{})],yp[0]>lm&&T(`${Wa.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):Md.kind==="composite"&&(yp=[v0*Tu.compositeIconSizes[0].evaluate(qu,{},qc),v0*Tu.compositeIconSizes[1].evaluate(qu,{},qc)],(yp[0]>lm||yp[1]>lm)&&T(`${Wa.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),Wa.addSymbols(Wa.icon,hm,yp,Cl,lv,qu,i.ah.none,Oo,p0.lineStartIndex,p0.lineLength,-1,qc),bM=Wa.icon.placedSymbolArray.length-1,Gd&&(gg=4*Gd.length,Wa.addSymbols(Wa.icon,Gd,yp,Cl,lv,qu,i.ah.vertical,Oo,p0.lineStartIndex,p0.lineLength,-1,qc),Uw=Wa.icon.placedSymbolArray.length-1)}let zh=Object.keys(hu.horizontal);for(let Ad of zh){let tp=hu.horizontal[Ad];if(!Gp){fy=fi(tp.text);let Gd=ch.layout.get("text-rotate").evaluate(qu,{},qc);Gp=new cm(Ud,Oo,Vd,Hd,rf,tp,fh,Td,rd,Gd)}let hm=tp.positionedLines.length===1;if(uv+=FC(Wa,Oo,tp,$v,ch,rd,qu,Dh,p0,hu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?zh:[Ad],g0,bM,Tu,qc),hm)break}hu.vertical&&(R1+=FC(Wa,Oo,hu.vertical,$v,ch,rd,qu,Dh,p0,i.ah.vertical,["vertical"],g0,Uw,Tu,qc));let nq=Gp?Gp.boxStartIndex:Wa.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:Wa.collisionBoxArray.length,m0=oc?oc.boxStartIndex:Wa.collisionBoxArray.length,cv=oc?oc.boxEndIndex:Wa.collisionBoxArray.length,UC=Qv?Qv.boxStartIndex:Wa.collisionBoxArray.length,aq=Qv?Qv.boxEndIndex:Wa.collisionBoxArray.length,VC=If?If.boxStartIndex:Wa.collisionBoxArray.length,oq=If?If.boxEndIndex:Wa.collisionBoxArray.length,mp=-1,rb=(Ad,tp)=>Ad&&Ad.circleDiameter?Math.max(Ad.circleDiameter,tp):tp;mp=rb(Gp,mp),mp=rb(oc,mp),mp=rb(Qv,mp),mp=rb(If,mp);let Hw=mp>-1?1:0;Hw&&(mp*=I1/kl),Wa.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),qu.sortKey!==void 0&&Wa.addToSortKeyRanges(Wa.symbolInstances.length,qu.sortKey);let wM=zC(ch,qu,qc),[sq,lq]=function(Ad,tp){let hm=Ad.length,Gd=tp==null?void 0:tp.values;if((Gd==null?void 0:Gd.length)>0)for(let Md=0;Md=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,bM,Uw,fy,nq,Vw,m0,cv,UC,aq,VC,oq,Vd,uv,R1,ep,gg,Hw,0,fh,mp,sq,lq)}(R,yo,bn,D,j,re,Ya,R.layers[0],R.collisionBoxArray,M.index,M.sourceLayerIndex,R.index,ei,[Li,Li,Li,Li],Na,He,Fi,Ki,Co,sr,M,fe,at,Tt,ge)};if(ka==="line")for(let bn of kC(M.geometry,0,0,Ra,Ra)){let yo=$9(bn,gi,ea,D.vertical||wr,j,24,si,R.overscaling,Ra);for(let Wa of yo)wr&&rq(R,wr.text,Nn,Wa)||ja(bn,Wa)}else if(ka==="line-center"){for(let bn of M.geometry)if(bn.length>1){let yo=J9(bn,ea,D.vertical||wr,j,24,si);yo&&ja(bn,yo)}}else if(M.type==="Polygon")for(let bn of Of(M.geometry,0)){let yo=Q9(bn,16);ja(bn[0],new vg(yo.x,yo.y,0))}else if(M.type==="LineString")for(let bn of M.geometry)ja(bn,new vg(bn[0].x,bn[0].y,0));else if(M.type==="Point")for(let bn of M.geometry)for(let yo of bn)ja([yo],new vg(yo.x,yo.y,0))}function FC(R,M,D,j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr){let Ir=function(Fi,gi,Li,Ki,ea,Na,Co,ka){let Nn=Ki.layout.get("text-rotate").evaluate(Na,{})*Math.PI/180,no=[];for(let Ya of gi.positionedLines)for(let ja of Ya.positionedGlyphs){if(!ja.rect)continue;let bn=ja.rect||{},yo=hC+1,Wa=!0,Oo=1,wu=0,hu=(ea||ka)&&ja.vertical,uh=ja.metrics.advance*ja.scale/2;if(ka&&gi.verticalizable&&(wu=Ya.lineOffset/2-(ja.imageName?-(kl-ja.metrics.width*ja.scale)/2:(ja.scale-1)*kl)),ja.imageName){let Cl=Co[ja.imageName];Wa=Cl.sdf,Oo=Cl.pixelRatio,yo=wd/Oo}let $v=ea?[ja.x+uh,ja.y]:[0,0],td=ea?[0,0]:[ja.x+uh+Li[0],ja.y+Li[1]-wu],ch=[0,0];hu&&(ch=td,td=[0,0]);let Ud=ja.metrics.isDoubleResolution?2:1,Vd=(ja.metrics.left-yo)*ja.scale-uh+td[0],Hd=(-ja.metrics.top-yo)*ja.scale+td[1],rf=Vd+bn.w/Ud*ja.scale/Oo,fh=Hd+bn.h/Ud*ja.scale/Oo,Td=new u(Vd,Hd),rd=new u(rf,Hd),Dh=new u(Vd,fh),xf=new u(rf,fh);if(hu){let Cl=new u(-uh,uh-lh),qu=-Math.PI/2,Tu=kl/2-uh,Rv=new u(5-lh-Tu,-(ja.imageName?Tu:0)),qc=new u(...ch);Td._rotateAround(qu,Cl)._add(Rv)._add(qc),rd._rotateAround(qu,Cl)._add(Rv)._add(qc),Dh._rotateAround(qu,Cl)._add(Rv)._add(qc),xf._rotateAround(qu,Cl)._add(Rv)._add(qc)}if(Nn){let Cl=Math.sin(Nn),qu=Math.cos(Nn),Tu=[qu,-Cl,Cl,qu];Td._matMult(Tu),rd._matMult(Tu),Dh._matMult(Tu),xf._matMult(Tu)}let Iv=new u(0,0),lv=new u(0,0);no.push({tl:Td,tr:rd,bl:Dh,br:xf,tex:bn,writingMode:gi.writingMode,glyphOffset:$v,sectionIndex:ja.sectionIndex,isSDF:Wa,pixelOffsetTL:Iv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return no}(0,D,De,re,fe,ge,j,R.allowVerticalPlacement),ei=R.textSizeData,si=null;ei.kind==="source"?(si=[v0*re.layout.get("text-size").evaluate(ge,{})],si[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):ei.kind==="composite"&&(si=[v0*sr.compositeTextSizes[0].evaluate(ge,{},wr),v0*sr.compositeTextSizes[1].evaluate(ge,{},wr)],(si[0]>lm||si[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),R.addSymbols(R.text,Ir,si,De,fe,ge,at,M,He.lineStartIndex,He.lineLength,Qt,wr);for(let Fi of Tt)qt[Fi]=R.text.placedSymbolArray.length-1;return 4*Ir.length}function qC(R){for(let M in R)return R[M];return null}function rq(R,M,D,j){let re=R.compareText;if(M in re){let fe=re[M];for(let ge=fe.length-1;ge>=0;ge--)if(j.dist(fe[ge])>4;if(re!==1)throw new Error(`Got v${re} data when expected v1.`);let fe=OC[15&j];if(!fe)throw new Error("Unrecognized array type.");let[ge]=new Uint16Array(M,2,1),[De]=new Uint32Array(M,4,1);return new mM(De,ge,fe,M)}constructor(M,D=64,j=Float64Array,re){if(isNaN(M)||M<0)throw new Error(`Unpexpected numItems value: ${M}.`);this.numItems=+M,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=j,this.IndexArrayType=M<65536?Uint16Array:Uint32Array;let fe=OC.indexOf(this.ArrayType),ge=2*M*this.ArrayType.BYTES_PER_ELEMENT,De=M*this.IndexArrayType.BYTES_PER_ELEMENT,He=(8-De%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${j}.`);re&&re instanceof ArrayBuffer?(this.data=re,this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+De+He,2*M),this._pos=2*M,this._finished=!0):(this.data=new ArrayBuffer(8+ge+De+He),this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+De+He,2*M),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=M)}add(M,D){let j=this._pos>>1;return this.ids[j]=j,this.coords[this._pos++]=M,this.coords[this._pos++]=D,j}finish(){let M=this._pos>>1;if(M!==this.numItems)throw new Error(`Added ${M} items when expected ${this.numItems}.`);return Ow(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(M,D,j,re){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:ge,nodeSize:De}=this,He=[0,fe.length-1,0],at=[];for(;He.length;){let Tt=He.pop()||0,qt=He.pop()||0,Qt=He.pop()||0;if(qt-Qt<=De){for(let ei=Qt;ei<=qt;ei++){let si=ge[2*ei],Fi=ge[2*ei+1];si>=M&&si<=j&&Fi>=D&&Fi<=re&&at.push(fe[ei])}continue}let sr=Qt+qt>>1,wr=ge[2*sr],Ir=ge[2*sr+1];wr>=M&&wr<=j&&Ir>=D&&Ir<=re&&at.push(fe[sr]),(Tt===0?M<=wr:D<=Ir)&&(He.push(Qt),He.push(sr-1),He.push(1-Tt)),(Tt===0?j>=wr:re>=Ir)&&(He.push(sr+1),He.push(qt),He.push(1-Tt))}return at}within(M,D,j){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:re,coords:fe,nodeSize:ge}=this,De=[0,re.length-1,0],He=[],at=j*j;for(;De.length;){let Tt=De.pop()||0,qt=De.pop()||0,Qt=De.pop()||0;if(qt-Qt<=ge){for(let ei=Qt;ei<=qt;ei++)NC(fe[2*ei],fe[2*ei+1],M,D)<=at&&He.push(re[ei]);continue}let sr=Qt+qt>>1,wr=fe[2*sr],Ir=fe[2*sr+1];NC(wr,Ir,M,D)<=at&&He.push(re[sr]),(Tt===0?M-j<=wr:D-j<=Ir)&&(De.push(Qt),De.push(sr-1),De.push(1-Tt)),(Tt===0?M+j>=wr:D+j>=Ir)&&(De.push(sr+1),De.push(qt),De.push(1-Tt))}return He}}function Ow(R,M,D,j,re,fe){if(re-j<=D)return;let ge=j+re>>1;BC(R,M,ge,j,re,fe),Ow(R,M,D,j,ge-1,1-fe),Ow(R,M,D,ge+1,re,1-fe)}function BC(R,M,D,j,re,fe){for(;re>j;){if(re-j>600){let at=re-j+1,Tt=D-j+1,qt=Math.log(at),Qt=.5*Math.exp(2*qt/3),sr=.5*Math.sqrt(qt*Qt*(at-Qt)/at)*(Tt-at/2<0?-1:1);BC(R,M,D,Math.max(j,Math.floor(D-Tt*Qt/at+sr)),Math.min(re,Math.floor(D+(at-Tt)*Qt/at+sr)),fe)}let ge=M[2*D+fe],De=j,He=re;for(eb(R,M,j,D),M[2*re+fe]>ge&&eb(R,M,j,re);Dege;)He--}M[2*j+fe]===ge?eb(R,M,j,He):(He++,eb(R,M,He,re)),He<=D&&(j=He+1),D<=He&&(re=He-1)}}function eb(R,M,D,j){yM(R,D,j),yM(M,2*D,2*j),yM(M,2*D+1,2*j+1)}function yM(R,M,D){let j=R[M];R[M]=R[D],R[D]=j}function NC(R,M,D,j){let re=R-D,fe=M-j;return re*re+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let tb=null,Gf=[],_M=1e3/60,xM="loadTime",Nw="fullLoadTime",iq={mark(R){performance.mark(R)},frame(R){let M=R;tb!=null&&Gf.push(M-tb),tb=M},clearMetrics(){tb=null,Gf=[],performance.clearMeasures(xM),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(xM,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(xM)[0].duration,M=performance.getEntriesByName(Nw)[0].duration,D=Gf.length,j=1/(Gf.reduce((fe,ge)=>fe+ge,0)/D/1e3),re=Gf.filter(fe=>fe>_M).reduce((fe,ge)=>fe+(ge-_M)/_M,0);return{loadTime:R,fullLoadTime:M,fps:j,percentDroppedFrames:re/(D+re)*100,totalFrames:D}}};i.$=class extends Bt{},i.A=Cn,i.B=qi,i.C=function(R){if(V==null){let M=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!M||!(/\b(iPad|iPhone|iPod)\b/.test(M)||M.match("Safari")&&!M.match("Chrome")))}return V},i.D=Ia,i.E=je,i.F=class{constructor(R,M){this.target=R,this.mapId=M,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cM(()=>this.process()),this.subscription=function(D,j,re,fe){return D.addEventListener(j,re,!1),{unsubscribe:()=>{D.removeEventListener(j,re,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=q(self)?R:window}registerMessageHandler(R,M){this.messageHandlers[R]=M}sendAsync(R,M){return new Promise((D,j)=>{let re=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[re]={resolve:D,reject:j},M&&M.signal.addEventListener("abort",()=>{delete this.resolveRejects[re];let De={id:re,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(De)},{once:!0});let fe=[],ge=Object.assign(Object.assign({},R),{id:re,sourceMapId:this.mapId,origin:location.origin,data:Ma(R.data,fe)});this.target.postMessage(ge,{transfer:fe})})}receive(R){let M=R.data,D=M.id;if(!(M.origin!=="file://"&&location.origin!=="file://"&&M.origin!=="resource://android"&&location.origin!=="resource://android"&&M.origin!==location.origin||M.targetMapId&&this.mapId!==M.targetMapId)){if(M.type===""){delete this.tasks[D];let j=this.abortControllers[D];return delete this.abortControllers[D],void(j&&j.abort())}if(q(self)||M.mustQueue)return this.tasks[D]=M,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,M)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),M=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),M&&this.processTask(R,M)}processTask(R,M){return a(this,void 0,void 0,function*(){if(M.type===""){let re=this.resolveRejects[R];return delete this.resolveRejects[R],re?void(M.error?re.reject(za(M.error)):re.resolve(za(M.data))):void 0}if(!this.messageHandlers[M.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${M.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=za(M.data),j=new AbortController;this.abortControllers[R]=j;try{let re=yield this.messageHandlers[M.type](M.sourceMapId,D,j);this.completeTask(R,null,re)}catch(re){this.completeTask(R,re)}})}completeTask(R,M,D){let j=[];delete this.abortControllers[R];let re={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:M?Ma(M):null,data:Ma(D,j)};this.target.postMessage(re,{transfer:j})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new Cn(16);return Cn!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=kw,i.J=function(R,M,D){var j,re,fe,ge,De,He,at,Tt,qt,Qt,sr,wr,Ir=D[0],ei=D[1],si=D[2];return M===R?(R[12]=M[0]*Ir+M[4]*ei+M[8]*si+M[12],R[13]=M[1]*Ir+M[5]*ei+M[9]*si+M[13],R[14]=M[2]*Ir+M[6]*ei+M[10]*si+M[14],R[15]=M[3]*Ir+M[7]*ei+M[11]*si+M[15]):(re=M[1],fe=M[2],ge=M[3],De=M[4],He=M[5],at=M[6],Tt=M[7],qt=M[8],Qt=M[9],sr=M[10],wr=M[11],R[0]=j=M[0],R[1]=re,R[2]=fe,R[3]=ge,R[4]=De,R[5]=He,R[6]=at,R[7]=Tt,R[8]=qt,R[9]=Qt,R[10]=sr,R[11]=wr,R[12]=j*Ir+De*ei+qt*si+M[12],R[13]=re*Ir+He*ei+Qt*si+M[13],R[14]=fe*Ir+at*ei+sr*si+M[14],R[15]=ge*Ir+Tt*ei+wr*si+M[15]),R},i.K=function(R,M,D){var j=D[0],re=D[1],fe=D[2];return R[0]=M[0]*j,R[1]=M[1]*j,R[2]=M[2]*j,R[3]=M[3]*j,R[4]=M[4]*re,R[5]=M[5]*re,R[6]=M[6]*re,R[7]=M[7]*re,R[8]=M[8]*fe,R[9]=M[9]*fe,R[10]=M[10]*fe,R[11]=M[11]*fe,R[12]=M[12],R[13]=M[13],R[14]=M[14],R[15]=M[15],R},i.L=gn,i.M=function(R,M){let D={};for(let j=0;j{let M=window.document.createElement("video");return M.muted=!0,new Promise(D=>{M.onloadstart=()=>{D(M)};for(let j of R){let re=window.document.createElement("source");pe(j)||(M.crossOrigin="Anonymous"),re.src=j,M.appendChild(re)}})},i.a4=function(){return _++},i.a5=en,i.a6=E1,i.a7=Pc,i.a8=xl,i.a9=dM,i.aA=function(R){if(R.type==="custom")return new uM(R);switch(R.type){case"background":return new Y9(R);case"circle":return new xn(R);case"fill":return new mr(R);case"fill-extrusion":return new Ev(R);case"heatmap":return new ko(R);case"hillshade":return new $c(R);case"line":return new ny(R);case"raster":return new Kx(R);case"symbol":return new ly(R)}},i.aB=g,i.aC=function(R,M){if(!R)return[{command:"setStyle",args:[M]}];let D=[];try{if(!At(R.version,M.version))return[{command:"setStyle",args:[M]}];At(R.center,M.center)||D.push({command:"setCenter",args:[M.center]}),At(R.zoom,M.zoom)||D.push({command:"setZoom",args:[M.zoom]}),At(R.bearing,M.bearing)||D.push({command:"setBearing",args:[M.bearing]}),At(R.pitch,M.pitch)||D.push({command:"setPitch",args:[M.pitch]}),At(R.sprite,M.sprite)||D.push({command:"setSprite",args:[M.sprite]}),At(R.glyphs,M.glyphs)||D.push({command:"setGlyphs",args:[M.glyphs]}),At(R.transition,M.transition)||D.push({command:"setTransition",args:[M.transition]}),At(R.light,M.light)||D.push({command:"setLight",args:[M.light]}),At(R.terrain,M.terrain)||D.push({command:"setTerrain",args:[M.terrain]}),At(R.sky,M.sky)||D.push({command:"setSky",args:[M.sky]}),At(R.projection,M.projection)||D.push({command:"setProjection",args:[M.projection]});let j={},re=[];(function(ge,De,He,at){let Tt;for(Tt in De=De||{},ge=ge||{})Object.prototype.hasOwnProperty.call(ge,Tt)&&(Object.prototype.hasOwnProperty.call(De,Tt)||ot(Tt,He,at));for(Tt in De)Object.prototype.hasOwnProperty.call(De,Tt)&&(Object.prototype.hasOwnProperty.call(ge,Tt)?At(ge[Tt],De[Tt])||(ge[Tt].type==="geojson"&&De[Tt].type==="geojson"&&Lt(ge,De,Tt)?Yt(He,{command:"setGeoJSONSourceData",args:[Tt,De[Tt].data]}):Ft(Tt,De,He,at)):nt(Tt,De,He))})(R.sources,M.sources,re,j);let fe=[];R.layers&&R.layers.forEach(ge=>{"source"in ge&&j[ge.source]?D.push({command:"removeLayer",args:[ge.id]}):fe.push(ge)}),D=D.concat(re),function(ge,De,He){De=De||[];let at=(ge=ge||[]).map(Xt),Tt=De.map(Xt),qt=ge.reduce(xr,{}),Qt=De.reduce(xr,{}),sr=at.slice(),wr=Object.create(null),Ir,ei,si,Fi,gi;for(let Li=0,Ki=0;Li@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,j,re,fe)=>{let ge=re||fe;return M[j]=!ge||ge.toLowerCase(),""}),M["max-age"]){let D=parseInt(M["max-age"],10);isNaN(D)?delete M["max-age"]:M["max-age"]=D}return M},i.ab=function(R,M){let D=[];for(let j in R)j in M||D.push(j);return D},i.ac=k,i.ad=function(R,M,D){var j=Math.sin(D),re=Math.cos(D),fe=M[0],ge=M[1],De=M[2],He=M[3],at=M[4],Tt=M[5],qt=M[6],Qt=M[7];return M!==R&&(R[8]=M[8],R[9]=M[9],R[10]=M[10],R[11]=M[11],R[12]=M[12],R[13]=M[13],R[14]=M[14],R[15]=M[15]),R[0]=fe*re+at*j,R[1]=ge*re+Tt*j,R[2]=De*re+qt*j,R[3]=He*re+Qt*j,R[4]=at*re-fe*j,R[5]=Tt*re-ge*j,R[6]=qt*re-De*j,R[7]=Qt*re-He*j,R},i.ae=function(R){var M=new Cn(16);return M[0]=R[0],M[1]=R[1],M[2]=R[2],M[3]=R[3],M[4]=R[4],M[5]=R[5],M[6]=R[6],M[7]=R[7],M[8]=R[8],M[9]=R[9],M[10]=R[10],M[11]=R[11],M[12]=R[12],M[13]=R[13],M[14]=R[14],M[15]=R[15],M},i.af=Ga,i.ag=function(R,M){let D=0,j=0;if(R.kind==="constant")j=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:re,minZoom:fe,maxZoom:ge}=R,De=re?k(mo.interpolationFactor(re,M,fe,ge),0,1):0;R.kind==="camera"?j=To.number(R.minSize,R.maxSize,De):D=De}return{uSizeT:D,uSize:j}},i.ai=function(R,{uSize:M,uSizeT:D},{lowerSize:j,upperSize:re}){return R.kind==="source"?j/v0:R.kind==="composite"?To.number(j/v0,re/v0,D):M},i.aj=aM,i.ak=function(R,M,D,j){let re=M.y-R.y,fe=M.x-R.x,ge=j.y-D.y,De=j.x-D.x,He=ge*fe-De*re;if(He===0)return null;let at=(De*(R.y-D.y)-ge*(R.x-D.x))/He;return new u(R.x+at*fe,R.y+at*re)},i.al=kC,i.am=xc,i.an=On,i.ao=function(R){let M=1/0,D=1/0,j=-1/0,re=-1/0;for(let fe of R)M=Math.min(M,fe.x),D=Math.min(D,fe.y),j=Math.max(j,fe.x),re=Math.max(re,fe.y);return[M,D,j,re]},i.ap=kl,i.ar=nM,i.as=function(R,M){var D=M[0],j=M[1],re=M[2],fe=M[3],ge=M[4],De=M[5],He=M[6],at=M[7],Tt=M[8],qt=M[9],Qt=M[10],sr=M[11],wr=M[12],Ir=M[13],ei=M[14],si=M[15],Fi=D*De-j*ge,gi=D*He-re*ge,Li=D*at-fe*ge,Ki=j*He-re*De,ea=j*at-fe*De,Na=re*at-fe*He,Co=Tt*Ir-qt*wr,ka=Tt*ei-Qt*wr,Nn=Tt*si-sr*wr,no=qt*ei-Qt*Ir,Ya=qt*si-sr*Ir,ja=Qt*si-sr*ei,bn=Fi*ja-gi*Ya+Li*no+Ki*Nn-ea*ka+Na*Co;return bn?(R[0]=(De*ja-He*Ya+at*no)*(bn=1/bn),R[1]=(re*Ya-j*ja-fe*no)*bn,R[2]=(Ir*Na-ei*ea+si*Ki)*bn,R[3]=(Qt*ea-qt*Na-sr*Ki)*bn,R[4]=(He*Nn-ge*ja-at*ka)*bn,R[5]=(D*ja-re*Nn+fe*ka)*bn,R[6]=(ei*Li-wr*Na-si*gi)*bn,R[7]=(Tt*Na-Qt*Li+sr*gi)*bn,R[8]=(ge*Ya-De*Nn+at*Co)*bn,R[9]=(j*Nn-D*Ya-fe*Co)*bn,R[10]=(wr*ea-Ir*Li+si*Fi)*bn,R[11]=(qt*Li-Tt*ea-sr*Fi)*bn,R[12]=(De*ka-ge*no-He*Co)*bn,R[13]=(D*no-j*ka+re*Co)*bn,R[14]=(Ir*gi-wr*Ki-ei*Fi)*bn,R[15]=(Tt*Ki-qt*gi+Qt*Fi)*bn,R):null},i.at=gM,i.au=Iw,i.av=mM,i.aw=function(){let R={},M=Se.$version;for(let D in Se.$root){let j=Se.$root[D];if(j.required){let re=null;re=D==="version"?M:j.type==="array"?[]:{},re!=null&&(R[D]=re)}}return R},i.ax=kn,i.ay=K,i.az=function(R){R=R.slice();let M=Object.create(null);for(let D=0;D25||j<0||j>=1||D<0||D>=1)},i.bc=function(R,M){return R[0]=M[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=M[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=M[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends mt{},i.be=fM,i.bf=iq,i.bh=ye,i.bi=function(R,M){we.REGISTERED_PROTOCOLS[R]=M},i.bj=function(R){delete we.REGISTERED_PROTOCOLS[R]},i.bk=function(R,M){let D={};for(let re=0;reja*kl)}let ka=ge?"center":D.get("text-justify").evaluate(at,{},R.canonical),Nn=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(at,{},R.canonical)*kl:1/0,no=()=>{R.bucket.allowVerticalPlacement&&Ba(Li)&&(wr.vertical=Gx(Ir,R.glyphMap,R.glyphPositions,R.imagePositions,Tt,Nn,fe,Na,"left",ea,si,i.ah.vertical,!0,Qt,qt))};if(!ge&&Co){let Ya=new Set;if(ka==="auto")for(let bn=0;bna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let M=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(M)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((M,D)=>{let j=new Image;j.onload=()=>{M(j),URL.revokeObjectURL(j.src),j.onload=null,window.requestAnimationFrame(()=>{j.src=X})},j.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let re=new Blob([new Uint8Array(R)],{type:"image/png"});j.src=R.byteLength?URL.createObjectURL(re):X}),i.g=Ee,i.h=(R,M)=>ce(L(R,{type:"json"}),M),i.i=q,i.j=Le,i.k=Me,i.l=(R,M)=>ce(L(R,{type:"arrayBuffer"}),M),i.m=ce,i.n=function(R){return new tM(R).readFields(LQ,[])},i.o=bo,i.p=iM,i.q=ue,i.r=wi,i.s=pe,i.t=Mi,i.u=di,i.v=Se,i.w=T,i.x=function([R,M,D]){return M+=90,M*=Math.PI/180,D*=Math.PI/180,{x:R*Math.cos(M)*Math.sin(D),y:R*Math.sin(M)*Math.sin(D),z:R*Math.cos(D)}},i.y=To,i.z=Zo}),r("worker",["./shared"],function(i){"use strict";class a{constructor(rt){this.keyCache={},rt&&this.replace(rt)}replace(rt){this._layerConfigs={},this._layers={},this.update(rt,[])}update(rt,it){for(let Je of rt){this._layerConfigs[Je.id]=Je;let ht=this._layers[Je.id]=i.aA(Je);ht._featureFilter=i.a7(ht.filter),this.keyCache[Je.id]&&delete this.keyCache[Je.id]}for(let Je of it)delete this.keyCache[Je],delete this._layerConfigs[Je],delete this._layers[Je];this.familiesBySource={};let Ze=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let Je of Ze){let ht=Je.map(Ot=>this._layers[Ot.id]),Ie=ht[0];if(Ie.visibility==="none")continue;let le=Ie.source||"",be=this.familiesBySource[le];be||(be=this.familiesBySource[le]={});let Qe=Ie.sourceLayer||"_geojsonTileLayer",xt=be[Qe];xt||(xt=be[Qe]=[]),xt.push(ht)}}}class o{constructor(rt){let it={},Ze=[];for(let le in rt){let be=rt[le],Qe=it[le]={};for(let xt in be){let Ot=be[+xt];if(!Ot||Ot.bitmap.width===0||Ot.bitmap.height===0)continue;let rr={x:0,y:0,w:Ot.bitmap.width+2,h:Ot.bitmap.height+2};Ze.push(rr),Qe[xt]={rect:rr,metrics:Ot.metrics}}}let{w:Je,h:ht}=i.p(Ze),Ie=new i.o({width:Je||1,height:ht||1});for(let le in rt){let be=rt[le];for(let Qe in be){let xt=be[+Qe];if(!xt||xt.bitmap.width===0||xt.bitmap.height===0)continue;let Ot=it[le][Qe].rect;i.o.copy(xt.bitmap,Ie,{x:0,y:0},{x:Ot.x+1,y:Ot.y+1},xt.bitmap)}}this.image=Ie,this.positions=it}}i.bl("GlyphAtlas",o);class s{constructor(rt){this.tileID=new i.S(rt.tileID.overscaledZ,rt.tileID.wrap,rt.tileID.canonical.z,rt.tileID.canonical.x,rt.tileID.canonical.y),this.uid=rt.uid,this.zoom=rt.zoom,this.pixelRatio=rt.pixelRatio,this.tileSize=rt.tileSize,this.source=rt.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=rt.showCollisionBoxes,this.collectResourceTiming=!!rt.collectResourceTiming,this.returnDependencies=!!rt.returnDependencies,this.promoteId=rt.promoteId,this.inFlightDependencies=[]}parse(rt,it,Ze,Je){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=rt,this.collisionBoxArray=new i.a5;let ht=new i.bm(Object.keys(rt.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let le={},be={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Ze},Qe=it.familiesBySource[this.source];for(let An in Qe){let Qi=rt.layers[An];if(!Qi)continue;Qi.version===1&&i.w(`Vector tile source "${this.source}" layer "${An}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let Un=ht.encode(An),Xn=[];for(let It=0;It=ct.maxzoom||ct.visibility!=="none"&&(l(It,this.zoom,Ze),(le[ct.id]=ct.createBucket({index:Ie.bucketLayerIDs.length,layers:It,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Un,sourceID:this.source})).populate(Xn,be,this.tileID.canonical),Ie.bucketLayerIDs.push(It.map(Vt=>Vt.id)))}}let xt=i.aF(be.glyphDependencies,An=>Object.keys(An).map(Number));this.inFlightDependencies.forEach(An=>An==null?void 0:An.abort()),this.inFlightDependencies=[];let Ot=Promise.resolve({});if(Object.keys(xt).length){let An=new AbortController;this.inFlightDependencies.push(An),Ot=Je.sendAsync({type:"GG",data:{stacks:xt,source:this.source,tileID:this.tileID,type:"glyphs"}},An)}let rr=Object.keys(be.iconDependencies),Jr=Promise.resolve({});if(rr.length){let An=new AbortController;this.inFlightDependencies.push(An),Jr=Je.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},An)}let ni=Object.keys(be.patternDependencies),Gr=Promise.resolve({});if(ni.length){let An=new AbortController;this.inFlightDependencies.push(An),Gr=Je.sendAsync({type:"GI",data:{icons:ni,source:this.source,tileID:this.tileID,type:"patterns"}},An)}let[ri,Ti,an]=yield Promise.all([Ot,Jr,Gr]),Yi=new o(ri),Xi=new i.bo(Ti,an);for(let An in le){let Qi=le[An];Qi instanceof i.a6?(l(Qi.layers,this.zoom,Ze),i.bp({bucket:Qi,glyphMap:ri,glyphPositions:Yi.positions,imageMap:Ti,imagePositions:Xi.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Qi.hasPattern&&(Qi instanceof i.bq||Qi instanceof i.br||Qi instanceof i.bs)&&(l(Qi.layers,this.zoom,Ze),Qi.addFeatures(be,this.tileID.canonical,Xi.patternPositions))}return this.status="done",{buckets:Object.values(le).filter(An=>!An.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Yi.image,imageAtlas:Xi,glyphMap:this.returnDependencies?ri:null,iconMap:this.returnDependencies?Ti:null,glyphPositions:this.returnDependencies?Yi.positions:null}})}}function l(ut,rt,it){let Ze=new i.z(rt);for(let Je of ut)Je.recalculate(Ze,it)}class u{constructor(rt,it,Ze){this.actor=rt,this.layerIndex=it,this.availableImages=Ze,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(rt,it){return i._(this,void 0,void 0,function*(){let Ze=yield i.l(rt.request,it);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Ze.data)),rawData:Ze.data,cacheControl:Ze.cacheControl,expires:Ze.expires}}catch(Je){let ht=new Uint8Array(Ze.data),Ie=`Unable to parse the tile at ${rt.request.url}, `;throw Ie+=ht[0]===31&&ht[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Je.message}`,new Error(Ie)}})}loadTile(rt){return i._(this,void 0,void 0,function*(){let it=rt.uid,Ze=!!(rt&&rt.request&&rt.request.collectResourceTiming)&&new i.bv(rt.request),Je=new s(rt);this.loading[it]=Je;let ht=new AbortController;Je.abort=ht;try{let Ie=yield this.loadVectorTile(rt,ht);if(delete this.loading[it],!Ie)return null;let le=Ie.rawData,be={};Ie.expires&&(be.expires=Ie.expires),Ie.cacheControl&&(be.cacheControl=Ie.cacheControl);let Qe={};if(Ze){let Ot=Ze.finish();Ot&&(Qe.resourceTiming=JSON.parse(JSON.stringify(Ot)))}Je.vectorTile=Ie.vectorTile;let xt=Je.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[it]=Je,this.fetching[it]={rawTileData:le,cacheControl:be,resourceTiming:Qe};try{let Ot=yield xt;return i.e({rawTileData:le.slice(0)},Ot,be,Qe)}finally{delete this.fetching[it]}}catch(Ie){throw delete this.loading[it],Je.status="done",this.loaded[it]=Je,Ie}})}reloadTile(rt){return i._(this,void 0,void 0,function*(){let it=rt.uid;if(!this.loaded||!this.loaded[it])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let Ze=this.loaded[it];if(Ze.showCollisionBoxes=rt.showCollisionBoxes,Ze.status==="parsing"){let Je=yield Ze.parse(Ze.vectorTile,this.layerIndex,this.availableImages,this.actor),ht;if(this.fetching[it]){let{rawTileData:Ie,cacheControl:le,resourceTiming:be}=this.fetching[it];delete this.fetching[it],ht=i.e({rawTileData:Ie.slice(0)},Je,le,be)}else ht=Je;return ht}if(Ze.status==="done"&&Ze.vectorTile)return Ze.parse(Ze.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(rt){return i._(this,void 0,void 0,function*(){let it=this.loading,Ze=rt.uid;it&&it[Ze]&&it[Ze].abort&&(it[Ze].abort.abort(),delete it[Ze])})}removeTile(rt){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[rt.uid]&&delete this.loaded[rt.uid]})}}class c{constructor(){this.loaded={}}loadTile(rt){return i._(this,void 0,void 0,function*(){let{uid:it,encoding:Ze,rawImageData:Je,redFactor:ht,greenFactor:Ie,blueFactor:le,baseShift:be}=rt,Qe=Je.width+2,xt=Je.height+2,Ot=i.b(Je)?new i.R({width:Qe,height:xt},yield i.bw(Je,-1,-1,Qe,xt)):Je,rr=new i.bx(it,Ot,Ze,ht,Ie,le,be);return this.loaded=this.loaded||{},this.loaded[it]=rr,rr})}removeTile(rt){let it=this.loaded,Ze=rt.uid;it&&it[Ze]&&delete it[Ze]}}function f(ut,rt){if(ut.length!==0){h(ut[0],rt);for(var it=1;it=Math.abs(le)?it-be+le:le-be+it,it=be}it+Ze>=0!=!!rt&&ut.reverse()}var d=i.by(function ut(rt,it){var Ze,Je=rt&&rt.type;if(Je==="FeatureCollection")for(Ze=0;Ze>31}function q(ut,rt){for(var it=ut.loadGeometry(),Ze=ut.type,Je=0,ht=0,Ie=it.length,le=0;leut},G=Math.fround||(N=new Float32Array(1),ut=>(N[0]=+ut,N[0]));var N;let Z=3,ie=5,ae=6;class we{constructor(rt){this.options=Object.assign(Object.create(X),rt),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(rt){let{log:it,minZoom:Ze,maxZoom:Je}=this.options;it&&console.time("total time");let ht=`prepare ${rt.length} points`;it&&console.time(ht),this.points=rt;let Ie=[];for(let be=0;be=Ze;be--){let Qe=+Date.now();le=this.trees[be]=this._createTree(this._cluster(le,be)),it&&console.log("z%d: %d clusters in %dms",be,le.numItems,+Date.now()-Qe)}return it&&console.timeEnd("total time"),this}getClusters(rt,it){let Ze=((rt[0]+180)%360+360)%360-180,Je=Math.max(-90,Math.min(90,rt[1])),ht=rt[2]===180?180:((rt[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,rt[3]));if(rt[2]-rt[0]>=360)Ze=-180,ht=180;else if(Ze>ht){let Ot=this.getClusters([Ze,Je,180,Ie],it),rr=this.getClusters([-180,Je,ht,Ie],it);return Ot.concat(rr)}let le=this.trees[this._limitZoom(it)],be=le.range(ye(Ze),K(Ie),ye(ht),K(Je)),Qe=le.data,xt=[];for(let Ot of be){let rr=this.stride*Ot;xt.push(Qe[rr+ie]>1?Ee(Qe,rr,this.clusterProps):this.points[Qe[rr+Z]])}return xt}getChildren(rt){let it=this._getOriginId(rt),Ze=this._getOriginZoom(rt),Je="No cluster with the specified id.",ht=this.trees[Ze];if(!ht)throw new Error(Je);let Ie=ht.data;if(it*this.stride>=Ie.length)throw new Error(Je);let le=this.options.radius/(this.options.extent*Math.pow(2,Ze-1)),be=ht.within(Ie[it*this.stride],Ie[it*this.stride+1],le),Qe=[];for(let xt of be){let Ot=xt*this.stride;Ie[Ot+4]===rt&&Qe.push(Ie[Ot+ie]>1?Ee(Ie,Ot,this.clusterProps):this.points[Ie[Ot+Z]])}if(Qe.length===0)throw new Error(Je);return Qe}getLeaves(rt,it,Ze){let Je=[];return this._appendLeaves(Je,rt,it=it||10,Ze=Ze||0,0),Je}getTile(rt,it,Ze){let Je=this.trees[this._limitZoom(rt)],ht=Math.pow(2,rt),{extent:Ie,radius:le}=this.options,be=le/Ie,Qe=(Ze-be)/ht,xt=(Ze+1+be)/ht,Ot={features:[]};return this._addTileFeatures(Je.range((it-be)/ht,Qe,(it+1+be)/ht,xt),Je.data,it,Ze,ht,Ot),it===0&&this._addTileFeatures(Je.range(1-be/ht,Qe,1,xt),Je.data,ht,Ze,ht,Ot),it===ht-1&&this._addTileFeatures(Je.range(0,Qe,be/ht,xt),Je.data,-1,Ze,ht,Ot),Ot.features.length?Ot:null}getClusterExpansionZoom(rt){let it=this._getOriginZoom(rt)-1;for(;it<=this.options.maxZoom;){let Ze=this.getChildren(rt);if(it++,Ze.length!==1)break;rt=Ze[0].properties.cluster_id}return it}_appendLeaves(rt,it,Ze,Je,ht){let Ie=this.getChildren(it);for(let le of Ie){let be=le.properties;if(be&&be.cluster?ht+be.point_count<=Je?ht+=be.point_count:ht=this._appendLeaves(rt,be.cluster_id,Ze,Je,ht):ht1,xt,Ot,rr;if(Qe)xt=ke(it,be,this.clusterProps),Ot=it[be],rr=it[be+1];else{let Gr=this.points[it[be+Z]];xt=Gr.properties;let[ri,Ti]=Gr.geometry.coordinates;Ot=ye(ri),rr=K(Ti)}let Jr={type:1,geometry:[[Math.round(this.options.extent*(Ot*ht-Ze)),Math.round(this.options.extent*(rr*ht-Je))]],tags:xt},ni;ni=Qe||this.options.generateId?it[be+Z]:this.points[it[be+Z]].id,ni!==void 0&&(Jr.id=ni),Ie.features.push(Jr)}}_limitZoom(rt){return Math.max(this.options.minZoom,Math.min(Math.floor(+rt),this.options.maxZoom+1))}_cluster(rt,it){let{radius:Ze,extent:Je,reduce:ht,minPoints:Ie}=this.options,le=Ze/(Je*Math.pow(2,it)),be=rt.data,Qe=[],xt=this.stride;for(let Ot=0;Otit&&(ri+=be[an+ie])}if(ri>Gr&&ri>=Ie){let Ti,an=rr*Gr,Yi=Jr*Gr,Xi=-1,An=((Ot/xt|0)<<5)+(it+1)+this.points.length;for(let Qi of ni){let Un=Qi*xt;if(be[Un+2]<=it)continue;be[Un+2]=it;let Xn=be[Un+ie];an+=be[Un]*Xn,Yi+=be[Un+1]*Xn,be[Un+4]=An,ht&&(Ti||(Ti=this._map(be,Ot,!0),Xi=this.clusterProps.length,this.clusterProps.push(Ti)),ht(Ti,this._map(be,Un)))}be[Ot+4]=An,Qe.push(an/ri,Yi/ri,1/0,An,-1,ri),ht&&Qe.push(Xi)}else{for(let Ti=0;Ti1)for(let Ti of ni){let an=Ti*xt;if(!(be[an+2]<=it)){be[an+2]=it;for(let Yi=0;Yi>5}_getOriginZoom(rt){return(rt-this.points.length)%32}_map(rt,it,Ze){if(rt[it+ie]>1){let Ie=this.clusterProps[rt[it+ae]];return Ze?Object.assign({},Ie):Ie}let Je=this.points[rt[it+Z]].properties,ht=this.options.map(Je);return Ze&&ht===Je?Object.assign({},ht):ht}}function Ee(ut,rt,it){return{type:"Feature",id:ut[rt+Z],properties:ke(ut,rt,it),geometry:{type:"Point",coordinates:[(Ze=ut[rt],360*(Ze-.5)),ce(ut[rt+1])]}};var Ze}function ke(ut,rt,it){let Ze=ut[rt+ie],Je=Ze>=1e4?`${Math.round(Ze/1e3)}k`:Ze>=1e3?Math.round(Ze/100)/10+"k":Ze,ht=ut[rt+ae],Ie=ht===-1?{}:Object.assign({},it[ht]);return Object.assign(Ie,{cluster:!0,cluster_id:ut[rt+Z],point_count:Ze,point_count_abbreviated:Je})}function ye(ut){return ut/360+.5}function K(ut){let rt=Math.sin(ut*Math.PI/180),it=.5-.25*Math.log((1+rt)/(1-rt))/Math.PI;return it<0?0:it>1?1:it}function ce(ut){let rt=(180-360*ut)*Math.PI/180;return 360*Math.atan(Math.exp(rt))/Math.PI-90}function pe(ut,rt,it,Ze){let Je=Ze,ht=rt+(it-rt>>1),Ie,le=it-rt,be=ut[rt],Qe=ut[rt+1],xt=ut[it],Ot=ut[it+1];for(let rr=rt+3;rrJe)Ie=rr,Je=Jr;else if(Jr===Je){let ni=Math.abs(rr-ht);niZe&&(Ie-rt>3&&pe(ut,rt,Ie,Ze),ut[Ie+2]=Je,it-Ie>3&&pe(ut,Ie,it,Ze))}function xe(ut,rt,it,Ze,Je,ht){let Ie=Je-it,le=ht-Ze;if(Ie!==0||le!==0){let be=((ut-it)*Ie+(rt-Ze)*le)/(Ie*Ie+le*le);be>1?(it=Je,Ze=ht):be>0&&(it+=Ie*be,Ze+=le*be)}return Ie=ut-it,le=rt-Ze,Ie*Ie+le*le}function Ce(ut,rt,it,Ze){let Je={id:ut==null?null:ut,type:rt,geometry:it,tags:Ze,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(rt==="Point"||rt==="MultiPoint"||rt==="LineString")Me(Je,it);else if(rt==="Polygon")Me(Je,it[0]);else if(rt==="MultiLineString")for(let ht of it)Me(Je,ht);else if(rt==="MultiPolygon")for(let ht of it)Me(Je,ht[0]);return Je}function Me(ut,rt){for(let it=0;it0&&(Ie+=Ze?(Je*xt-Qe*ht)/2:Math.sqrt(Math.pow(Qe-Je,2)+Math.pow(xt-ht,2))),Je=Qe,ht=xt}let le=rt.length-3;rt[2]=1,pe(rt,0,le,it),rt[le+2]=1,rt.size=Math.abs(Ie),rt.start=0,rt.end=rt.size}function Xe(ut,rt,it,Ze){for(let Je=0;Je1?1:it}function Yt(ut,rt,it,Ze,Je,ht,Ie,le){if(Ze/=rt,ht>=(it/=rt)&&Ie=Ze)return null;let be=[];for(let Qe of ut){let xt=Qe.geometry,Ot=Qe.type,rr=Je===0?Qe.minX:Qe.minY,Jr=Je===0?Qe.maxX:Qe.maxY;if(rr>=it&&Jr=Ze)continue;let ni=[];if(Ot==="Point"||Ot==="MultiPoint")nt(xt,ni,it,Ze,Je);else if(Ot==="LineString")ot(xt,ni,it,Ze,Je,!1,le.lineMetrics);else if(Ot==="MultiLineString")Lt(xt,ni,it,Ze,Je,!1);else if(Ot==="Polygon")Lt(xt,ni,it,Ze,Je,!0);else if(Ot==="MultiPolygon")for(let Gr of xt){let ri=[];Lt(Gr,ri,it,Ze,Je,!0),ri.length&&ni.push(ri)}if(ni.length){if(le.lineMetrics&&Ot==="LineString"){for(let Gr of ni)be.push(Ce(Qe.id,Ot,Gr,Qe.tags));continue}Ot!=="LineString"&&Ot!=="MultiLineString"||(ni.length===1?(Ot="LineString",ni=ni[0]):Ot="MultiLineString"),Ot!=="Point"&&Ot!=="MultiPoint"||(Ot=ni.length===3?"Point":"MultiPoint"),be.push(Ce(Qe.id,Ot,ni,Qe.tags))}}return be.length?be:null}function nt(ut,rt,it,Ze,Je){for(let ht=0;ht=it&&Ie<=Ze&&Rt(rt,ut[ht],ut[ht+1],ut[ht+2])}}function ot(ut,rt,it,Ze,Je,ht,Ie){let le=Ft(ut),be=Je===0?Xt:xr,Qe,xt,Ot=ut.start;for(let ri=0;riit&&(xt=be(le,Ti,an,Xi,An,it),Ie&&(le.start=Ot+Qe*xt)):Qi>Ze?Un=it&&(xt=be(le,Ti,an,Xi,An,it),Xn=!0),Un>Ze&&Qi<=Ze&&(xt=be(le,Ti,an,Xi,An,Ze),Xn=!0),!ht&&Xn&&(Ie&&(le.end=Ot+Qe*xt),rt.push(le),le=Ft(ut)),Ie&&(Ot+=Qe)}let rr=ut.length-3,Jr=ut[rr],ni=ut[rr+1],Gr=Je===0?Jr:ni;Gr>=it&&Gr<=Ze&&Rt(le,Jr,ni,ut[rr+2]),rr=le.length-3,ht&&rr>=3&&(le[rr]!==le[0]||le[rr+1]!==le[1])&&Rt(le,le[0],le[1],le[2]),le.length&&rt.push(le)}function Ft(ut){let rt=[];return rt.size=ut.size,rt.start=ut.start,rt.end=ut.end,rt}function Lt(ut,rt,it,Ze,Je,ht){for(let Ie of ut)ot(Ie,rt,it,Ze,Je,ht,!1)}function Rt(ut,rt,it,Ze){ut.push(rt,it,Ze)}function Xt(ut,rt,it,Ze,Je,ht){let Ie=(ht-rt)/(Ze-rt);return Rt(ut,ht,it+(Je-it)*Ie,1),Ie}function xr(ut,rt,it,Ze,Je,ht){let Ie=(ht-it)/(Je-it);return Rt(ut,rt+(Ze-rt)*Ie,ht,1),Ie}function er(ut,rt){let it=[];for(let Ze=0;Ze0&&rt.size<(Je?Ie:Ze))return void(it.numPoints+=rt.length/3);let le=[];for(let be=0;beIe)&&(it.numSimplified++,le.push(rt[be],rt[be+1])),it.numPoints++;Je&&function(be,Qe){let xt=0;for(let Ot=0,rr=be.length,Jr=rr-2;Ot0===Qe)for(let Ot=0,rr=be.length;Ot24)throw new Error("maxZoom should be in the 0-24 range");if(it.promoteId&&it.generateId)throw new Error("promoteId and generateId cannot be used together.");let Je=function(ht,Ie){let le=[];if(ht.type==="FeatureCollection")for(let be=0;be1&&console.time("creation"),Jr=this.tiles[rr]=Ct(rt,it,Ze,Je,Qe),this.tileCoords.push({z:it,x:Ze,y:Je}),xt)){xt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",it,Ze,Je,Jr.numFeatures,Jr.numPoints,Jr.numSimplified),console.timeEnd("creation"));let Xn=`z${it}`;this.stats[Xn]=(this.stats[Xn]||0)+1,this.total++}if(Jr.source=rt,ht==null){if(it===Qe.indexMaxZoom||Jr.numPoints<=Qe.indexMaxPoints)continue}else{if(it===Qe.maxZoom||it===ht)continue;if(ht!=null){let Xn=ht-it;if(Ze!==Ie>>Xn||Je!==le>>Xn)continue}}if(Jr.source=null,rt.length===0)continue;xt>1&&console.time("clipping");let ni=.5*Qe.buffer/Qe.extent,Gr=.5-ni,ri=.5+ni,Ti=1+ni,an=null,Yi=null,Xi=null,An=null,Qi=Yt(rt,Ot,Ze-ni,Ze+ri,0,Jr.minX,Jr.maxX,Qe),Un=Yt(rt,Ot,Ze+Gr,Ze+Ti,0,Jr.minX,Jr.maxX,Qe);rt=null,Qi&&(an=Yt(Qi,Ot,Je-ni,Je+ri,1,Jr.minY,Jr.maxY,Qe),Yi=Yt(Qi,Ot,Je+Gr,Je+Ti,1,Jr.minY,Jr.maxY,Qe),Qi=null),Un&&(Xi=Yt(Un,Ot,Je-ni,Je+ri,1,Jr.minY,Jr.maxY,Qe),An=Yt(Un,Ot,Je+Gr,Je+Ti,1,Jr.minY,Jr.maxY,Qe),Un=null),xt>1&&console.timeEnd("clipping"),be.push(an||[],it+1,2*Ze,2*Je),be.push(Yi||[],it+1,2*Ze,2*Je+1),be.push(Xi||[],it+1,2*Ze+1,2*Je),be.push(An||[],it+1,2*Ze+1,2*Je+1)}}getTile(rt,it,Ze){rt=+rt,it=+it,Ze=+Ze;let Je=this.options,{extent:ht,debug:Ie}=Je;if(rt<0||rt>24)return null;let le=1<1&&console.log("drilling down to z%d-%d-%d",rt,it,Ze);let Qe,xt=rt,Ot=it,rr=Ze;for(;!Qe&&xt>0;)xt--,Ot>>=1,rr>>=1,Qe=this.tiles[$t(xt,Ot,rr)];return Qe&&Qe.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",xt,Ot,rr),console.time("drilling down")),this.splitTile(Qe.source,xt,Ot,rr,rt,it,Ze),Ie>1&&console.timeEnd("drilling down"),this.tiles[be]?yt(this.tiles[be],ht):null):null}}function $t(ut,rt,it){return 32*((1<{Ot.properties=Jr;let ni={};for(let Gr of rr)ni[Gr]=be[Gr].evaluate(xt,Ot);return ni},Ie.reduce=(Jr,ni)=>{Ot.properties=ni;for(let Gr of rr)xt.accumulated=Jr[Gr],Jr[Gr]=Qe[Gr].evaluate(xt,Ot)},Ie}(rt)).load((yield this._pendingData).features):(Je=yield this._pendingData,new Gt(Je,rt.geojsonVtOptions)),this.loaded={};let ht={};if(Ze){let Ie=Ze.finish();Ie&&(ht.resourceTiming={},ht.resourceTiming[rt.source]=JSON.parse(JSON.stringify(Ie)))}return ht}catch(ht){if(delete this._pendingRequest,i.bB(ht))return{abandoned:!0};throw ht}var Je})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(rt){let it=this.loaded;return it&&it[rt.uid]?super.reloadTile(rt):this.loadTile(rt)}loadAndProcessGeoJSON(rt,it){return i._(this,void 0,void 0,function*(){let Ze=yield this.loadGeoJSON(rt,it);if(delete this._pendingRequest,typeof Ze!="object")throw new Error(`Input data given to '${rt.source}' is not a valid GeoJSON object.`);if(d(Ze,!0),rt.filter){let Je=i.bC(rt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Je.result==="error")throw new Error(Je.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));Ze={type:"FeatureCollection",features:Ze.features.filter(Ie=>Je.value.evaluate({zoom:0},Ie))}}return Ze})}loadGeoJSON(rt,it){return i._(this,void 0,void 0,function*(){let{promoteId:Ze}=rt;if(rt.request){let Je=yield i.h(rt.request,it);return this._dataUpdateable=_r(Je.data,Ze)?Nr(Je.data,Ze):void 0,Je.data}if(typeof rt.data=="string")try{let Je=JSON.parse(rt.data);return this._dataUpdateable=_r(Je,Ze)?Nr(Je,Ze):void 0,Je}catch(Je){throw new Error(`Input data given to '${rt.source}' is not a valid GeoJSON object.`)}if(!rt.dataDiff)throw new Error(`Input data given to '${rt.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${rt.source}`);return function(Je,ht,Ie){var le,be,Qe,xt;if(ht.removeAll&&Je.clear(),ht.remove)for(let Ot of ht.remove)Je.delete(Ot);if(ht.add)for(let Ot of ht.add){let rr=hr(Ot,Ie);rr!=null&&Je.set(rr,Ot)}if(ht.update)for(let Ot of ht.update){let rr=Je.get(Ot.id);if(rr==null)continue;let Jr=!Ot.removeAllProperties&&(((le=Ot.removeProperties)===null||le===void 0?void 0:le.length)>0||((be=Ot.addOrUpdateProperties)===null||be===void 0?void 0:be.length)>0);if((Ot.newGeometry||Ot.removeAllProperties||Jr)&&(rr=Object.assign({},rr),Je.set(Ot.id,rr),Jr&&(rr.properties=Object.assign({},rr.properties))),Ot.newGeometry&&(rr.geometry=Ot.newGeometry),Ot.removeAllProperties)rr.properties={};else if(((Qe=Ot.removeProperties)===null||Qe===void 0?void 0:Qe.length)>0)for(let ni of Ot.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,ni)&&delete rr.properties[ni];if(((xt=Ot.addOrUpdateProperties)===null||xt===void 0?void 0:xt.length)>0)for(let{key:ni,value:Gr}of Ot.addOrUpdateProperties)rr.properties[ni]=Gr}}(this._dataUpdateable,rt.dataDiff,Ze),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(rt){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(rt){return this._geoJSONIndex.getClusterExpansionZoom(rt.clusterId)}getClusterChildren(rt){return this._geoJSONIndex.getChildren(rt.clusterId)}getClusterLeaves(rt){return this._geoJSONIndex.getLeaves(rt.clusterId,rt.limit,rt.offset)}}class Ur{constructor(rt){this.self=rt,this.actor=new i.F(rt),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(it,Ze)=>{if(this.externalWorkerSourceTypes[it])throw new Error(`Worker source with name "${it}" already registered.`);this.externalWorkerSourceTypes[it]=Ze},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=it=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(it)},this.actor.registerMessageHandler("LDT",(it,Ze)=>this._getDEMWorkerSource(it,Ze.source).loadTile(Ze)),this.actor.registerMessageHandler("RDT",(it,Ze)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(it,Ze.source).removeTile(Ze)})),this.actor.registerMessageHandler("GCEZ",(it,Ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(it,Ze.type,Ze.source).getClusterExpansionZoom(Ze)})),this.actor.registerMessageHandler("GCC",(it,Ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(it,Ze.type,Ze.source).getClusterChildren(Ze)})),this.actor.registerMessageHandler("GCL",(it,Ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(it,Ze.type,Ze.source).getClusterLeaves(Ze)})),this.actor.registerMessageHandler("LD",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).loadData(Ze)),this.actor.registerMessageHandler("GD",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).getData()),this.actor.registerMessageHandler("LT",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).loadTile(Ze)),this.actor.registerMessageHandler("RT",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).reloadTile(Ze)),this.actor.registerMessageHandler("AT",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).abortTile(Ze)),this.actor.registerMessageHandler("RMT",(it,Ze)=>this._getWorkerSource(it,Ze.type,Ze.source).removeTile(Ze)),this.actor.registerMessageHandler("RS",(it,Ze)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[it]||!this.workerSources[it][Ze.type]||!this.workerSources[it][Ze.type][Ze.source])return;let Je=this.workerSources[it][Ze.type][Ze.source];delete this.workerSources[it][Ze.type][Ze.source],Je.removeSource!==void 0&&Je.removeSource(Ze)})),this.actor.registerMessageHandler("RM",it=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[it],delete this.availableImages[it],delete this.workerSources[it],delete this.demWorkerSources[it]})),this.actor.registerMessageHandler("SR",(it,Ze)=>i._(this,void 0,void 0,function*(){this.referrer=Ze})),this.actor.registerMessageHandler("SRPS",(it,Ze)=>this._syncRTLPluginState(it,Ze)),this.actor.registerMessageHandler("IS",(it,Ze)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Ze)})),this.actor.registerMessageHandler("SI",(it,Ze)=>this._setImages(it,Ze)),this.actor.registerMessageHandler("UL",(it,Ze)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(it).update(Ze.layers,Ze.removedIds)})),this.actor.registerMessageHandler("SL",(it,Ze)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(it).replace(Ze)}))}_setImages(rt,it){return i._(this,void 0,void 0,function*(){this.availableImages[rt]=it;for(let Ze in this.workerSources[rt]){let Je=this.workerSources[rt][Ze];for(let ht in Je)Je[ht].availableImages=it}})}_syncRTLPluginState(rt,it){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(it.pluginStatus!=="loading")return i.bD.setState(it),it;let Ze=it.pluginURL;if(this.self.importScripts(Ze),i.bD.isParsed()){let Je={pluginStatus:"loaded",pluginURL:Ze};return i.bD.setState(Je),Je}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Ze}`)})}_getAvailableImages(rt){let it=this.availableImages[rt];return it||(it=[]),it}_getLayerIndex(rt){let it=this.layerIndexes[rt];return it||(it=this.layerIndexes[rt]=new a),it}_getWorkerSource(rt,it,Ze){if(this.workerSources[rt]||(this.workerSources[rt]={}),this.workerSources[rt][it]||(this.workerSources[rt][it]={}),!this.workerSources[rt][it][Ze]){let Je={sendAsync:(ht,Ie)=>(ht.targetMapId=rt,this.actor.sendAsync(ht,Ie))};switch(it){case"vector":this.workerSources[rt][it][Ze]=new u(Je,this._getLayerIndex(rt),this._getAvailableImages(rt));break;case"geojson":this.workerSources[rt][it][Ze]=new Br(Je,this._getLayerIndex(rt),this._getAvailableImages(rt));break;default:this.workerSources[rt][it][Ze]=new this.externalWorkerSourceTypes[it](Je,this._getLayerIndex(rt),this._getAvailableImages(rt))}}return this.workerSources[rt][it][Ze]}_getDEMWorkerSource(rt,it){return this.demWorkerSources[rt]||(this.demWorkerSources[rt]={}),this.demWorkerSources[rt][it]||(this.demWorkerSources[rt][it]=new c),this.demWorkerSources[rt][it]}}return i.i(self)&&(self.worker=new Ur(self)),Ur}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let ee=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(ee),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,ee){let te=B.boundingClientRect;return new a.P((ee.clientX-te.left)/B.x-w.clientLeft,(ee.clientY-te.top)/B.y-w.clientTop)}static mousePos(w,B){let ee=c.getScale(w);return c.getPoint(w,ee,B)}static touchPos(w,B){let ee=[],te=c.getScale(w);for(let se=0;se{h&&b(h),h=null,x=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,ee,te;ue.resetRequestQueue=()=>{w=[],B=0,ee=0,te={}},ue.addThrottleControl=tt=>{let mt=ee++;return te[mt]=tt,mt},ue.removeThrottleControl=tt=>{delete te[tt],Fe()},ue.getImage=(tt,mt,Bt=!0)=>new Promise((Ut,fr)=>{f.supported&&(tt.headers||(tt.headers={}),tt.headers.accept="image/webp,*/*"),a.e(tt,{type:"image"}),w.push({abortController:mt,requestParameters:tt,supportImageRefresh:Bt,state:"queued",onError:Ar=>{fr(Ar)},onSuccess:Ar=>{Ut(Ar)}}),Fe()});let se=tt=>a._(this,void 0,void 0,function*(){tt.state="running";let{requestParameters:mt,supportImageRefresh:Bt,onError:Ut,onSuccess:fr,abortController:Ar}=tt,de=Bt===!1&&!a.i(self)&&!a.g(mt.url)&&(!mt.headers||Object.keys(mt.headers).reduce((qe,We)=>qe&&We==="accept",!0));B++;let Te=de?Ue(mt,Ar):a.m(mt,Ar);try{let qe=yield Te;delete tt.abortController,tt.state="completed",qe.data instanceof HTMLImageElement||a.b(qe.data)?fr(qe):qe.data&&fr({data:yield(Pe=qe.data,typeof createImageBitmap=="function"?a.d(Pe):a.f(Pe)),cacheControl:qe.cacheControl,expires:qe.expires})}catch(qe){delete tt.abortController,Ut(qe)}finally{B--,Fe()}var Pe}),Fe=()=>{let tt=(()=>{for(let mt of Object.keys(te))if(te[mt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let mt=B;mt0;mt++){let Bt=w.shift();Bt.abortController.signal.aborted?mt--:se(Bt)}},Ue=(tt,mt)=>new Promise((Bt,Ut)=>{let fr=new Image,Ar=tt.url,de=tt.credentials;de&&de==="include"?fr.crossOrigin="use-credentials":(de&&de==="same-origin"||!a.s(Ar))&&(fr.crossOrigin="anonymous"),mt.signal.addEventListener("abort",()=>{fr.src="",Ut(a.c())}),fr.fetchPriority="high",fr.onload=()=>{fr.onerror=fr.onload=null,Bt({data:fr})},fr.onerror=()=>{fr.onerror=fr.onload=null,mt.signal.aborted||Ut(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},fr.src=Ar})}(p||(p={})),p.resetRequestQueue();class E{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function k(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var _=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function C(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:ee,url:te}of ue){let se=`${ee}${te}`;B.indexOf(se)===-1&&(B.push(se),w.push({id:ee,url:te}))}}return w}function S(ue,w,B){let ee=ue.split("?");return ee[0]+=`${w}${B}`,ee.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,ee,te){this.context=w,this.format=ee,this.texture=w.gl.createTexture(),this.update(B,te)}update(w,B,ee){let{width:te,height:se}=w,Fe=!(this.size&&this.size[0]===te&&this.size[1]===se||ee),{context:Ue}=this,{gl:tt}=Ue;if(this.useMipmap=!!(B&&B.useMipmap),tt.bindTexture(tt.TEXTURE_2D,this.texture),Ue.pixelStoreUnpackFlipY.set(!1),Ue.pixelStoreUnpack.set(1),Ue.pixelStoreUnpackPremultiplyAlpha.set(this.format===tt.RGBA&&(!B||B.premultiply!==!1)),Fe)this.size=[te,se],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?tt.texImage2D(tt.TEXTURE_2D,0,this.format,this.format,tt.UNSIGNED_BYTE,w):tt.texImage2D(tt.TEXTURE_2D,0,this.format,te,se,0,this.format,tt.UNSIGNED_BYTE,w.data);else{let{x:mt,y:Bt}=ee||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?tt.texSubImage2D(tt.TEXTURE_2D,0,mt,Bt,tt.RGBA,tt.UNSIGNED_BYTE,w):tt.texSubImage2D(tt.TEXTURE_2D,0,mt,Bt,te,se,tt.RGBA,tt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&tt.generateMipmap(tt.TEXTURE_2D)}bind(w,B,ee){let{context:te}=this,{gl:se}=te;se.bindTexture(se.TEXTURE_2D,this.texture),ee!==se.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(ee=se.LINEAR),w!==this.filter&&(se.texParameteri(se.TEXTURE_2D,se.TEXTURE_MAG_FILTER,w),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_MIN_FILTER,ee||w),this.filter=w),B!==this.wrap&&(se.texParameteri(se.TEXTURE_2D,se.TEXTURE_WRAP_S,B),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:ee}of this.requestors)ee(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let ee=B.spriteData;B.data=new a.R({width:ee.width,height:ee.height},ee.context.getImageData(ee.x,ee.y,ee.width,ee.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let ee=!0,te=B.data||B.spriteData;return this._validateStretch(B.stretchX,te&&te.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),ee=!1),this._validateStretch(B.stretchY,te&&te.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),ee=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),ee=!1),ee}_validateStretch(w,B){if(!w)return!0;let ee=0;for(let te of w){if(te[0]{let te=!0;if(!this.isLoaded())for(let se of w)this.images[se]||(te=!1);this.isLoaded()||te?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let ee of w){let te=this.getImage(ee);te||(this.fire(new a.k("styleimagemissing",{id:ee})),te=this.getImage(ee)),te?B[ee]={data:te.data.clone(),pixelRatio:te.pixelRatio,sdf:te.sdf,version:te.version,stretchX:te.stretchX,stretchY:te.stretchY,content:te.content,textFitWidth:te.textFitWidth,textFitHeight:te.textFitHeight,hasRenderCallback:!!(te.userImage&&te.userImage.render)}:a.w(`Image "${ee}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],ee=this.getImage(w);if(!ee)return null;if(B&&B.position.version===ee.version)return B.position;if(B)B.position.version=ee.version;else{let te={w:ee.data.width+2,h:ee.data.height+2,x:0,y:0},se=new a.I(te,ee);this.patterns[w]={bin:te,position:se}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let se in this.patterns)w.push(this.patterns[se].bin);let{w:B,h:ee}=a.p(w),te=this.atlasImage;te.resize({width:B||1,height:ee||1});for(let se in this.patterns){let{bin:Fe}=this.patterns[se],Ue=Fe.x+1,tt=Fe.y+1,mt=this.getImage(se).data,Bt=mt.width,Ut=mt.height;a.R.copy(mt,te,{x:0,y:0},{x:Ue,y:tt},{width:Bt,height:Ut}),a.R.copy(mt,te,{x:0,y:Ut-1},{x:Ue,y:tt-1},{width:Bt,height:1}),a.R.copy(mt,te,{x:0,y:0},{x:Ue,y:tt+Ut},{width:Bt,height:1}),a.R.copy(mt,te,{x:Bt-1,y:0},{x:Ue-1,y:tt},{width:1,height:Ut}),a.R.copy(mt,te,{x:0,y:0},{x:Ue+Bt,y:tt},{width:1,height:Ut})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let ee=this.getImage(B);ee||a.w(`Image with ID: "${B}" was not found`),P(ee)&&this.updateImage(B,ee)}}}let F=1e20;function q(ue,w,B,ee,te,se,Fe,Ue,tt){for(let mt=w;mt-1);tt++,se[tt]=Ue,Fe[tt]=mt,Fe[tt+1]=F}for(let Ue=0,tt=0;Ue65535)throw new Error("glyphs > 65535 not supported");if(ee.ranges[se])return{stack:w,id:B,glyph:te};if(!this.url)throw new Error("glyphsUrl is not set");if(!ee.requests[se]){let Ue=H.loadGlyphRange(w,se,this.url,this.requestManager);ee.requests[se]=Ue}let Fe=yield ee.requests[se];for(let Ue in Fe)this._doesCharSupportLocalGlyph(+Ue)||(ee.glyphs[+Ue]=Fe[+Ue]);return ee.ranges[se]=!0,{stack:w,id:B,glyph:Fe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,ee){let te=this.localIdeographFontFamily;if(!te||!this._doesCharSupportLocalGlyph(ee))return;let se=w.tinySDF;if(!se){let Ue="400";/bold/i.test(B)?Ue="900":/medium/i.test(B)?Ue="500":/light/i.test(B)&&(Ue="200"),se=w.tinySDF=new H.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:te,fontWeight:Ue})}let Fe=se.draw(String.fromCharCode(ee));return{id:ee,bitmap:new a.o({width:Fe.width||60,height:Fe.height||60},Fe.data),metrics:{width:Fe.glyphWidth/2||24,height:Fe.glyphHeight/2||24,left:Fe.glyphLeft/2+.5||0,top:Fe.glyphTop/2-27.5||-8,advance:Fe.glyphAdvance/2||24,isDoubleResolution:!0}}}}H.loadGlyphRange=function(ue,w,B,ee){return a._(this,void 0,void 0,function*(){let te=256*w,se=te+255,Fe=ee.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${te}-${se}`),"Glyphs"),Ue=yield a.l(Fe,new AbortController);if(!Ue||!Ue.data)throw new Error(`Could not load glyph range. range: ${w}, ${te}-${se}`);let tt={};for(let mt of a.n(Ue.data))tt[mt.id]=mt;return tt})},H.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:ee=.25,fontFamily:te="sans-serif",fontWeight:se="normal",fontStyle:Fe="normal"}={}){this.buffer=w,this.cutoff=ee,this.radius=B;let Ue=this.size=ue+4*w,tt=this._createCanvas(Ue),mt=this.ctx=tt.getContext("2d",{willReadFrequently:!0});mt.font=`${Fe} ${se} ${ue}px ${te}`,mt.textBaseline="alphabetic",mt.textAlign="left",mt.fillStyle="black",this.gridOuter=new Float64Array(Ue*Ue),this.gridInner=new Float64Array(Ue*Ue),this.f=new Float64Array(Ue),this.z=new Float64Array(Ue+1),this.v=new Uint16Array(Ue)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:ee,actualBoundingBoxLeft:te,actualBoundingBoxRight:se}=this.ctx.measureText(ue),Fe=Math.ceil(B),Ue=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(se-te))),tt=Math.min(this.size-this.buffer,Fe+Math.ceil(ee)),mt=Ue+2*this.buffer,Bt=tt+2*this.buffer,Ut=Math.max(mt*Bt,0),fr=new Uint8ClampedArray(Ut),Ar={data:fr,width:mt,height:Bt,glyphWidth:Ue,glyphHeight:tt,glyphTop:Fe,glyphLeft:0,glyphAdvance:w};if(Ue===0||tt===0)return Ar;let{ctx:de,buffer:Te,gridInner:Pe,gridOuter:qe}=this;de.clearRect(Te,Te,Ue,tt),de.fillText(ue,Te,Te+Fe);let We=de.getImageData(Te,Te,Ue,tt);qe.fill(F,0,Ut),Pe.fill(0,0,Ut);for(let Ne=0;Ne0?Ht*Ht:0,Pe[Dt]=Ht<0?Ht*Ht:0}}q(qe,0,0,mt,Bt,mt,this.f,this.v,this.z),q(Pe,Te,Te,Ue,tt,mt,this.f,this.v,this.z);for(let Ne=0;Ne1&&(tt=w[++Ue]);let Bt=Math.abs(mt-tt.left),Ut=Math.abs(mt-tt.right),fr=Math.min(Bt,Ut),Ar,de=se/ee*(te+1);if(tt.isDash){let Te=te-Math.abs(de);Ar=Math.sqrt(fr*fr+Te*Te)}else Ar=te-Math.sqrt(fr*fr+de*de);this.data[Fe+mt]=Math.max(0,Math.min(255,Ar+128))}}}addRegularDash(w){for(let Ue=w.length-1;Ue>=0;--Ue){let tt=w[Ue],mt=w[Ue+1];tt.zeroLength?w.splice(Ue,1):mt&&mt.isDash===tt.isDash&&(mt.left=tt.left,w.splice(Ue,1))}let B=w[0],ee=w[w.length-1];B.isDash===ee.isDash&&(B.left=ee.left-this.width,ee.right=B.right+this.width);let te=this.width*this.nextRow,se=0,Fe=w[se];for(let Ue=0;Ue1&&(Fe=w[++se]);let tt=Math.abs(Ue-Fe.left),mt=Math.abs(Ue-Fe.right),Bt=Math.min(tt,mt);this.data[te+Ue]=Math.max(0,Math.min(255,(Fe.isDash?Bt:-Bt)+128))}}addDash(w,B){let ee=B?7:0,te=2*ee+1;if(this.nextRow+te>this.height)return a.w("LineAtlas out of space"),null;let se=0;for(let Ue=0;Ue{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[we]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),ye,K;function ce(){return ye||(ye=new Ee),ye}Ee.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class pe{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let ee=this.workerPool.acquire(B);for(let te=0;te{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let ee of this.actors)ee.registerMessageHandler(w,B)}}function xe(){return K||(K=new pe(ce(),a.G),K.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),K}function Ce(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Me(ue,w,B,ee,te,se){let Fe=function(Ut,fr,Ar){if(Ut)for(let de of Ut){let Te=fr[de];if(Te&&Te.source===Ar&&Te.type==="fill-extrusion")return!0}else for(let de in fr){let Te=fr[de];if(Te.source===Ar&&Te.type==="fill-extrusion")return!0}return!1}(te&&te.layers,w,ue.id),Ue=se.maxPitchScaleFactor(),tt=ue.tilesIn(ee,Ue,Fe);tt.sort(Le);let mt=[];for(let Ut of tt)mt.push({wrappedTileID:Ut.tileID.wrapped().key,queryResults:Ut.tile.queryRenderedFeatures(w,B,ue._state,Ut.queryGeometry,Ut.cameraQueryGeometry,Ut.scale,te,se,Ue,Ce(ue.transform,Ut.tileID))});let Bt=function(Ut){let fr={},Ar={};for(let de of Ut){let Te=de.queryResults,Pe=de.wrappedTileID,qe=Ar[Pe]=Ar[Pe]||{};for(let We in Te){let Ne=Te[We],$e=qe[We]=qe[We]||{},Et=fr[We]=fr[We]||[];for(let Dt of Ne)$e[Dt.featureIndex]||($e[Dt.featureIndex]=!0,Et.push(Dt))}}return fr}(mt);for(let Ut in Bt)Bt[Ut].forEach(fr=>{let Ar=fr.feature,de=ue.getFeatureState(Ar.layer["source-layer"],Ar.id);Ar.source=Ar.layer.source,Ar.layer["source-layer"]&&(Ar.sourceLayer=Ar.layer["source-layer"]),Ar.state=de});return Bt}function Le(ue,w){let B=ue.tileID,ee=w.tileID;return B.overscaledZ-ee.overscaledZ||B.canonical.y-ee.canonical.y||B.wrap-ee.wrap||B.canonical.x-ee.canonical.x}function je(ue,w,B){return a._(this,void 0,void 0,function*(){let ee=ue;if(ue.url?ee=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!ee)return null;let te=a.M(a.e(ee,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in ee&&ee.vector_layers&&(te.vectorLayerIds=ee.vector_layers.map(se=>se.id)),te})}class Se{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,ee=this._ne,te,se;if(w instanceof a.N)te=w,se=w;else{if(!(w instanceof Se))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(Se.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(te=w._sw,se=w._ne,!te||!se)return this}return B||ee?(B.lng=Math.min(te.lng,B.lng),B.lat=Math.min(te.lat,B.lat),ee.lng=Math.max(se.lng,ee.lng),ee.lat=Math.max(se.lat,ee.lat)):(this._sw=new a.N(te.lng,te.lat),this._ne=new a.N(se.lng,se.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:ee}=a.N.convert(w),te=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(te=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=ee&&ee<=this._ne.lat&&te}static convert(w){return w instanceof Se?w:w&&new Se(w)}static fromLngLat(w,B=0){let ee=360*B/40075017,te=ee/Math.cos(Math.PI/180*w.lat);return new Se(new a.N(w.lng-te,w.lat-ee),new a.N(w.lng+te,w.lat+ee))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new Se(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Xe{constructor(w,B,ee){this.bounds=Se.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=ee||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),ee=Math.floor(a.O(this.bounds.getWest())*B),te=Math.floor(a.Q(this.bounds.getNorth())*B),se=Math.ceil(a.O(this.bounds.getEast())*B),Fe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=ee&&w.x=te&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),ee={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ee.request.collectResourceTiming=this._collectResourceTiming;let te="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((se,Fe)=>{w.reloadPromise={resolve:se,reject:Fe}})}else w.actor=this.dispatcher.getActor(),te="LT";w.abortController=new AbortController;try{let se=yield w.actor.sendAsync({type:te,data:ee},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,se)}catch(se){if(delete w.abortController,w.aborted)return;if(se&&se.status!==404)throw se;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let ee=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(ee.resolve).catch(ee.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class At extends a.E{constructor(w,B,ee,te){super(),this.id=w,this.dispatcher=ee,this.setEventedParent(te),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield je(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Xe(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let ee=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let te=this.map.painter.context,se=te.gl,Fe=ee.data;w.texture=this.map.painter.getTileTexture(Fe.width),w.texture?w.texture.update(Fe,{useMipmap:!0}):(w.texture=new g(te,Fe,se.RGBA,{useMipmap:!0}),w.texture.bind(se.LINEAR,se.CLAMP_TO_EDGE,se.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Yt extends At{constructor(w,B,ee,te){super(w,B,ee,te),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),ee=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let te=yield p.getImage(ee,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(te&&te.data){let se=te.data;this.map._refreshExpiredTiles&&te.cacheControl&&te.expires&&w.setExpiryData({cacheControl:te.cacheControl,expires:te.expires});let Fe=a.b(se)&&a.U()?se:yield this.readImageNow(se),Ue={type:this.type,uid:w.uid,source:this.id,rawImageData:Fe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let tt=yield w.actor.sendAsync({type:"LDT",data:Ue});w.dem=tt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(te){if(delete w.abortController,w.aborted)w.state="unloaded";else if(te)throw w.state="errored",te}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,ee=w.height+2;try{return new a.R({width:B,height:ee},yield a.W(w,-1,-1,B,ee))}catch(te){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,ee=Math.pow(2,B.z),te=(B.x-1+ee)%ee,se=B.x===0?w.wrap-1:w.wrap,Fe=(B.x+1+ee)%ee,Ue=B.x+1===ee?w.wrap+1:w.wrap,tt={};return tt[new a.S(w.overscaledZ,se,B.z,te,B.y).key]={backfilled:!1},tt[new a.S(w.overscaledZ,Ue,B.z,Fe,B.y).key]={backfilled:!1},B.y>0&&(tt[new a.S(w.overscaledZ,se,B.z,te,B.y-1).key]={backfilled:!1},tt[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},tt[new a.S(w.overscaledZ,Ue,B.z,Fe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(se,{resourceTiming:te}),this.fire(new a.k("data",Object.assign(Object.assign({},se),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},se),{sourceDataType:"content"})))}catch(ee){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(ee))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let ee={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let te=yield this.actor.sendAsync({type:B,data:ee},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(te,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var ot=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Ft extends a.E{constructor(w,B,ee,te){super(),this.id=w,this.dispatcher=ee,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(te),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(te){let se=1/0,Fe=1/0,Ue=-1/0,tt=-1/0;for(let fr of te)se=Math.min(se,fr.x),Fe=Math.min(Fe,fr.y),Ue=Math.max(Ue,fr.x),tt=Math.max(tt,fr.y);let mt=Math.max(Ue-se,tt-Fe),Bt=Math.max(0,Math.floor(-Math.log(mt)/Math.LN2)),Ut=Math.pow(2,Bt);return new a.a1(Bt,Math.floor((se+Ue)/2*Ut),Math.floor((Fe+tt)/2*Ut))}(B),this.minzoom=this.maxzoom=this.tileID.z;let ee=B.map(te=>this.tileID.getTilePoint(te)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(ee[0].x,ee[0].y,0,0),this._boundsArray.emplaceBack(ee[1].x,ee[1].y,a.X,0),this._boundsArray.emplaceBack(ee[3].x,ee[3].y,0,a.X),this._boundsArray.emplaceBack(ee[2].x,ee[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let ee=!1;for(let te in this.tiles){let se=this.tiles[te];se.state!=="loaded"&&(se.state="loaded",se.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Lt extends Ft{constructor(w,B,ee,te){super(w,B,ee,te),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let ee=!1;for(let te in this.tiles){let se=this.tiles[te];se.state!=="loaded"&&(se.state="loaded",se.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Rt extends Ft{constructor(w,B,ee,te){super(w,B,ee,te),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(se=>!Array.isArray(se)||se.length!==2||se.some(Fe=>typeof Fe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,ee=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,ee.RGBA,{premultiply:!0});let te=!1;for(let se in this.tiles){let Fe=this.tiles[se];Fe.state!=="loaded"&&(Fe.state="loaded",Fe.texture=this.texture,te=!0)}te&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let Xt={},xr=ue=>{switch(ue){case"geojson":return nt;case"image":return Ft;case"raster":return At;case"raster-dem":return Yt;case"vector":return lt;case"video":return Lt;case"canvas":return Rt}return Xt[ue]},er="RTLPluginLoaded";class Ge extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=xe()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,ee=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!ee)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(er))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let yt=null;function _t(){return yt||(yt=new Ge),yt}class Ct{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Bse.getLayer(mt)).filter(Boolean);if(tt.length!==0){Ue.layers=tt,Ue.stateDependentLayerIds&&(Ue.stateDependentLayers=Ue.stateDependentLayerIds.map(mt=>tt.filter(Bt=>Bt.id===mt)[0]));for(let mt of tt)Fe[mt.id]=Ue}}return Fe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let te in this.buckets){let se=this.buckets[te];if(se instanceof a.a6){if(this.hasSymbolBuckets=!0,!ee)break;se.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let te in this.buckets){let se=this.buckets[te];if(se instanceof a.a6&&se.hasRTLText){this.hasRTLText=!0,_t().lazyLoad();break}}this.queryPadding=0;for(let te in this.buckets){let se=this.buckets[te];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(te).queryRadius(se))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let ee in this.buckets){let te=this.buckets[ee];te.uploadPending()&&te.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,ee,te,se,Fe,Ue,tt,mt,Bt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:te,cameraQueryGeometry:se,scale:Fe,tileSize:this.tileSize,pixelPosMatrix:Bt,transform:tt,params:Ue,queryPadding:this.queryPadding*mt},w,B,ee):{}}querySourceFeatures(w,B){let ee=this.latestFeatureIndex;if(!ee||!ee.rawTileData)return;let te=ee.loadVTLayers(),se=B&&B.sourceLayer?B.sourceLayer:"",Fe=te._geojsonTileLayer||te[se];if(!Fe)return;let Ue=a.a7(B&&B.filter),{z:tt,x:mt,y:Bt}=this.tileID.canonical,Ut={z:tt,x:mt,y:Bt};for(let fr=0;free)te=!1;else if(B)if(this.expirationTime{this.remove(w,se)},ee)),this.data[te].push(se),this.order.push(te),this.order.length>this.max){let Fe=this._getAndRemoveByKey(this.order[0]);Fe&&this.onRemove(Fe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let ee=w.wrapped().key,te=B===void 0?0:this.data[ee].indexOf(B),se=this.data[ee][te];return this.data[ee].splice(te,1),se.timeout&&clearTimeout(se.timeout),this.data[ee].length===0&&delete this.data[ee],this.onRemove(se.value),this.order.splice(this.order.indexOf(ee),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let ee in this.data)for(let te of this.data[ee])w(te.value)||B.push(te);for(let ee of B)this.remove(ee.value.tileID,ee)}}class kt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,ee){let te=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][te]=this.stateChanges[w][te]||{},a.e(this.stateChanges[w][te],ee),this.deletedStates[w]===null){this.deletedStates[w]={};for(let se in this.state[w])se!==te&&(this.deletedStates[w][se]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][te]===null){this.deletedStates[w][te]={};for(let se in this.state[w][te])ee[se]||(this.deletedStates[w][te][se]=null)}else for(let se in ee)this.deletedStates[w]&&this.deletedStates[w][te]&&this.deletedStates[w][te][se]===null&&delete this.deletedStates[w][te][se]}removeFeatureState(w,B,ee){if(this.deletedStates[w]===null)return;let te=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},ee&&B!==void 0)this.deletedStates[w][te]!==null&&(this.deletedStates[w][te]=this.deletedStates[w][te]||{},this.deletedStates[w][te][ee]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][te])for(ee in this.deletedStates[w][te]={},this.stateChanges[w][te])this.deletedStates[w][te][ee]=null;else this.deletedStates[w][te]=null;else this.deletedStates[w]=null}getState(w,B){let ee=String(B),te=a.e({},(this.state[w]||{})[ee],(this.stateChanges[w]||{})[ee]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let se=this.deletedStates[w][B];if(se===null)return{};for(let Fe in se)delete te[Fe]}return te}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let ee={};for(let te in this.stateChanges){this.state[te]=this.state[te]||{};let se={};for(let Fe in this.stateChanges[te])this.state[te][Fe]||(this.state[te][Fe]={}),a.e(this.state[te][Fe],this.stateChanges[te][Fe]),se[Fe]=this.state[te][Fe];ee[te]=se}for(let te in this.deletedStates){this.state[te]=this.state[te]||{};let se={};if(this.deletedStates[te]===null)for(let Fe in this.state[te])se[Fe]={},this.state[te][Fe]={};else for(let Fe in this.deletedStates[te]){if(this.deletedStates[te][Fe]===null)this.state[te][Fe]={};else for(let Ue of Object.keys(this.deletedStates[te][Fe]))delete this.state[te][Fe][Ue];se[Fe]=this.state[te][Fe]}ee[te]=ee[te]||{},a.e(ee[te],se)}if(this.stateChanges={},this.deletedStates={},Object.keys(ee).length!==0)for(let te in w)w[te].setFeatureState(ee,B)}}class ft extends a.E{constructor(w,B,ee){super(),this.id=w,this.dispatcher=ee,this.on("data",te=>this._dataHandler(te)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((te,se,Fe,Ue)=>{let tt=new(xr(se.type))(te,se,Fe,Ue);if(tt.id!==te)throw new Error(`Expected Source id to be ${te} instead of ${tt.id}`);return tt})(w,B,ee,this),this._tiles={},this._cache=new St(0,te=>this._unloadTile(te)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new kt,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,ee){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,ee)}catch(te){w.state="errored",te.status!==404?this._source.fire(new a.j(te,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let ee=this._tiles[B];ee.upload(w),ee.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Gt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let ee in this._tiles)this._isIdRenderable(ee,w)&&B.push(this._tiles[ee]);return w?B.sort((ee,te)=>{let se=ee.tileID,Fe=te.tileID,Ue=new a.P(se.canonical.x,se.canonical.y)._rotate(this.transform.angle),tt=new a.P(Fe.canonical.x,Fe.canonical.y)._rotate(this.transform.angle);return se.overscaledZ-Fe.overscaledZ||tt.y-Ue.y||tt.x-Ue.x}).map(ee=>ee.tileID.key):B.map(ee=>ee.tileID).sort(Gt).map(ee=>ee.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let ee=this._tiles[w];ee&&(ee.state!=="loading"&&(ee.state=B),yield this._loadTile(ee,w,B))})}_tileLoaded(w,B,ee){w.timeAdded=u.now(),ee==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let te=0;te1||(Math.abs(Fe)>1&&(Math.abs(Fe+tt)===1?Fe+=tt:Math.abs(Fe-tt)===1&&(Fe-=tt)),se.dem&&te.dem&&(te.dem.backfillBorder(se.dem,Fe,Ue),te.neighboringTiles&&te.neighboringTiles[mt]&&(te.neighboringTiles[mt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,ee,te){for(let se in this._tiles){let Fe=this._tiles[se];if(te[se]||!Fe.hasData()||Fe.tileID.overscaledZ<=B||Fe.tileID.overscaledZ>ee)continue;let Ue=Fe.tileID;for(;Fe&&Fe.tileID.overscaledZ>B+1;){let mt=Fe.tileID.scaledTo(Fe.tileID.overscaledZ-1);Fe=this._tiles[mt.key],Fe&&Fe.hasData()&&(Ue=mt)}let tt=Ue;for(;tt.overscaledZ>B;)if(tt=tt.scaledTo(tt.overscaledZ-1),w[tt.key]){te[Ue.key]=Ue;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let ee=this._loadedParentTiles[w.key];return ee&&ee.tileID.overscaledZ>=B?ee:null}for(let ee=w.overscaledZ-1;ee>=B;ee--){let te=w.scaledTo(ee),se=this._getLoadedTile(te);if(se)return se}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,ee=Math.ceil(w.height/this._source.tileSize)+1,te=Math.floor(B*ee*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),se=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,te):te;this._cache.setMaxSize(se)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let ee={};for(let te in this._tiles){let se=this._tiles[te];se.tileID=se.tileID.unwrapTo(se.tileID.wrap+B),ee[se.tileID.key]=se}this._tiles=ee;for(let te in this._timers)clearTimeout(this._timers[te]),delete this._timers[te];for(let te in this._tiles)this._setTileReloadTimer(te,this._tiles[te])}}_updateCoveredAndRetainedTiles(w,B,ee,te,se,Fe){let Ue={},tt={},mt=Object.keys(w),Bt=u.now();for(let Ut of mt){let fr=w[Ut],Ar=this._tiles[Ut];if(!Ar||Ar.fadeEndTime!==0&&Ar.fadeEndTime<=Bt)continue;let de=this.findLoadedParent(fr,B),Te=this.findLoadedSibling(fr),Pe=de||Te||null;Pe&&(this._addTile(Pe.tileID),Ue[Pe.tileID.key]=Pe.tileID),tt[Ut]=fr}this._retainLoadedChildren(tt,te,ee,w);for(let Ut in Ue)w[Ut]||(this._coveredTiles[Ut]=!0,w[Ut]=Ue[Ut]);if(Fe){let Ut={},fr={};for(let Ar of se)this._tiles[Ar.key].hasData()?Ut[Ar.key]=Ar:fr[Ar.key]=Ar;for(let Ar in fr){let de=fr[Ar].children(this._source.maxzoom);this._tiles[de[0].key]&&this._tiles[de[1].key]&&this._tiles[de[2].key]&&this._tiles[de[3].key]&&(Ut[de[0].key]=w[de[0].key]=de[0],Ut[de[1].key]=w[de[1].key]=de[1],Ut[de[2].key]=w[de[2].key]=de[2],Ut[de[3].key]=w[de[3].key]=de[3],delete fr[Ar])}for(let Ar in fr){let de=fr[Ar],Te=this.findLoadedParent(de,this._source.minzoom),Pe=this.findLoadedSibling(de),qe=Te||Pe||null;if(qe){Ut[qe.tileID.key]=w[qe.tileID.key]=qe.tileID;for(let We in Ut)Ut[We].isChildOf(qe.tileID)&&delete Ut[We]}}for(let Ar in this._tiles)Ut[Ar]||(this._coveredTiles[Ar]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let ee;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?ee=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Bt=>new a.S(Bt.canonical.z,Bt.wrap,Bt.canonical.z,Bt.canonical.x,Bt.canonical.y)):(ee=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(ee=ee.filter(Bt=>this._source.hasTile(Bt)))):ee=[];let te=w.coveringZoomLevel(this._source),se=Math.max(te-ft.maxOverzooming,this._source.minzoom),Fe=Math.max(te+ft.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Bt={};for(let Ut of ee)if(Ut.canonical.z>this._source.minzoom){let fr=Ut.scaledTo(Ut.canonical.z-1);Bt[fr.key]=fr;let Ar=Ut.scaledTo(Math.max(this._source.minzoom,Math.min(Ut.canonical.z,5)));Bt[Ar.key]=Ar}ee=ee.concat(Object.values(Bt))}let Ue=ee.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Ue&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let tt=this._updateRetainedTiles(ee,te);$t(this._source.type)&&this._updateCoveredAndRetainedTiles(tt,se,Fe,te,ee,B);for(let Bt in tt)this._tiles[Bt].clearFadeHold();let mt=a.ab(this._tiles,tt);for(let Bt of mt){let Ut=this._tiles[Bt];Ut.hasSymbolBuckets&&!Ut.holdingForFade()?Ut.setHoldDuration(this.map._fadeDuration):Ut.hasSymbolBuckets&&!Ut.symbolFadeFinished()||this._removeTile(Bt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var ee;let te={},se={},Fe=Math.max(B-ft.maxOverzooming,this._source.minzoom),Ue=Math.max(B+ft.maxUnderzooming,this._source.minzoom),tt={};for(let mt of w){let Bt=this._addTile(mt);te[mt.key]=mt,Bt.hasData()||Bthis._source.maxzoom){let fr=mt.children(this._source.maxzoom)[0],Ar=this.getTile(fr);if(Ar&&Ar.hasData()){te[fr.key]=fr;continue}}else{let fr=mt.children(this._source.maxzoom);if(te[fr[0].key]&&te[fr[1].key]&&te[fr[2].key]&&te[fr[3].key])continue}let Ut=Bt.wasRequested();for(let fr=mt.overscaledZ-1;fr>=Fe;--fr){let Ar=mt.scaledTo(fr);if(se[Ar.key])break;if(se[Ar.key]=!0,Bt=this.getTile(Ar),!Bt&&Ut&&(Bt=this._addTile(Ar)),Bt){let de=Bt.hasData();if((de||!(!((ee=this.map)===null||ee===void 0)&&ee.cancelPendingTileRequestsWhileZooming)||Ut)&&(te[Ar.key]=Ar),Ut=Bt.wasRequested(),de)break}}}return te}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],ee,te=this._tiles[w].tileID;for(;te.overscaledZ>0;){if(te.key in this._loadedParentTiles){ee=this._loadedParentTiles[te.key];break}B.push(te.key);let se=te.scaledTo(te.overscaledZ-1);if(ee=this._getLoadedTile(se),ee)break;te=se}for(let se of B)this._loadedParentTiles[se]=ee}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,ee=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=ee}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let ee=B;return B||(B=new Ct(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,ee||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let ee=B.getExpiryTimeout();ee&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},ee))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,ee){let te=[],se=this.transform;if(!se)return te;let Fe=ee?se.getCameraQueryGeometry(w):w,Ue=w.map(de=>se.pointCoordinate(de,this.terrain)),tt=Fe.map(de=>se.pointCoordinate(de,this.terrain)),mt=this.getIds(),Bt=1/0,Ut=1/0,fr=-1/0,Ar=-1/0;for(let de of tt)Bt=Math.min(Bt,de.x),Ut=Math.min(Ut,de.y),fr=Math.max(fr,de.x),Ar=Math.max(Ar,de.y);for(let de=0;de=0&&Ne[1].y+We>=0){let $e=Ue.map(Dt=>Pe.getTilePoint(Dt)),Et=tt.map(Dt=>Pe.getTilePoint(Dt));te.push({tile:Te,tileID:Pe,queryGeometry:$e,cameraQueryGeometry:Et,scale:qe})}}return te}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(ee=>this._tiles[ee].tileID);for(let ee of B)ee.posMatrix=this.transform.calculatePosMatrix(ee.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if($t(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,ee){this._state.updateState(w=w||"_geojsonTileLayer",B,ee)}removeFeatureState(w,B,ee){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,ee)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,ee){let te=this._tiles[w];te&&te.setDependencies(B,ee)}reloadTilesForDependencies(w,B){for(let ee in this._tiles)this._tiles[ee].hasDependency(w,B)&&this._reloadTile(ee,"reloading");this._cache.filter(ee=>!ee.hasDependency(w,B))}}function Gt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),ee=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||ee-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function $t(ue){return ue==="raster"||ue==="image"||ue==="video"}ft.maxOverzooming=10,ft.maxUnderzooming=3;class hr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let ee=1;ee0?(te-Fe)/Ue:0;return this.points[se].mult(1-tt).add(this.points[B].mult(tt))}}function _r(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class Nr{constructor(w,B,ee){let te=this.boxCells=[],se=this.circleCells=[];this.xCellCount=Math.ceil(w/ee),this.yCellCount=Math.ceil(B/ee);for(let Fe=0;Fethis.width||te<0||B>this.height)return[];let tt=[];if(w<=0&&B<=0&&this.width<=ee&&this.height<=te){if(se)return[{key:null,x1:w,y1:B,x2:ee,y2:te}];for(let mt=0;mt0}hitTestCircle(w,B,ee,te,se){let Fe=w-ee,Ue=w+ee,tt=B-ee,mt=B+ee;if(Ue<0||Fe>this.width||mt<0||tt>this.height)return!1;let Bt=[];return this._forEachCell(Fe,tt,Ue,mt,this._queryCellCircle,Bt,{hitTest:!0,overlapMode:te,circle:{x:w,y:B,radius:ee},seenUids:{box:{},circle:{}}},se),Bt.length>0}_queryCell(w,B,ee,te,se,Fe,Ue,tt){let{seenUids:mt,hitTest:Bt,overlapMode:Ut}=Ue,fr=this.boxCells[se];if(fr!==null){let de=this.bboxes;for(let Te of fr)if(!mt.box[Te]){mt.box[Te]=!0;let Pe=4*Te,qe=this.boxKeys[Te];if(w<=de[Pe+2]&&B<=de[Pe+3]&&ee>=de[Pe+0]&&te>=de[Pe+1]&&(!tt||tt(qe))&&(!Bt||!_r(Ut,qe.overlapMode))&&(Fe.push({key:qe,x1:de[Pe],y1:de[Pe+1],x2:de[Pe+2],y2:de[Pe+3]}),Bt))return!0}}let Ar=this.circleCells[se];if(Ar!==null){let de=this.circles;for(let Te of Ar)if(!mt.circle[Te]){mt.circle[Te]=!0;let Pe=3*Te,qe=this.circleKeys[Te];if(this._circleAndRectCollide(de[Pe],de[Pe+1],de[Pe+2],w,B,ee,te)&&(!tt||tt(qe))&&(!Bt||!_r(Ut,qe.overlapMode))){let We=de[Pe],Ne=de[Pe+1],$e=de[Pe+2];if(Fe.push({key:qe,x1:We-$e,y1:Ne-$e,x2:We+$e,y2:Ne+$e}),Bt)return!0}}}return!1}_queryCellCircle(w,B,ee,te,se,Fe,Ue,tt){let{circle:mt,seenUids:Bt,overlapMode:Ut}=Ue,fr=this.boxCells[se];if(fr!==null){let de=this.bboxes;for(let Te of fr)if(!Bt.box[Te]){Bt.box[Te]=!0;let Pe=4*Te,qe=this.boxKeys[Te];if(this._circleAndRectCollide(mt.x,mt.y,mt.radius,de[Pe+0],de[Pe+1],de[Pe+2],de[Pe+3])&&(!tt||tt(qe))&&!_r(Ut,qe.overlapMode))return Fe.push(!0),!0}}let Ar=this.circleCells[se];if(Ar!==null){let de=this.circles;for(let Te of Ar)if(!Bt.circle[Te]){Bt.circle[Te]=!0;let Pe=3*Te,qe=this.circleKeys[Te];if(this._circlesCollide(de[Pe],de[Pe+1],de[Pe+2],mt.x,mt.y,mt.radius)&&(!tt||tt(qe))&&!_r(Ut,qe.overlapMode))return Fe.push(!0),!0}}}_forEachCell(w,B,ee,te,se,Fe,Ue,tt){let mt=this._convertToXCellCoord(w),Bt=this._convertToYCellCoord(B),Ut=this._convertToXCellCoord(ee),fr=this._convertToYCellCoord(te);for(let Ar=mt;Ar<=Ut;Ar++)for(let de=Bt;de<=fr;de++)if(se.call(this,w,B,ee,te,this.xCellCount*de+Ar,Fe,Ue,tt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,ee,te,se,Fe){let Ue=te-w,tt=se-B,mt=ee+Fe;return mt*mt>Ue*Ue+tt*tt}_circleAndRectCollide(w,B,ee,te,se,Fe,Ue){let tt=(Fe-te)/2,mt=Math.abs(w-(te+tt));if(mt>tt+ee)return!1;let Bt=(Ue-se)/2,Ut=Math.abs(B-(se+Bt));if(Ut>Bt+ee)return!1;if(mt<=tt||Ut<=Bt)return!0;let fr=mt-tt,Ar=Ut-Bt;return fr*fr+Ar*Ar<=ee*ee}}function Br(ue,w,B,ee,te){let se=a.H();return w?(a.K(se,se,[1/te,1/te,1]),B||a.ad(se,se,ee.angle)):a.L(se,ee.labelPlaneMatrix,ue),se}function Ur(ue,w,B,ee,te){if(w){let se=a.ae(ue);return a.K(se,se,[te,te,1]),B||a.ad(se,se,-ee.angle),se}return ee.glCoordMatrix}function ut(ue,w,B,ee){let te;ee?(te=[ue,w,ee(ue,w),1],a.af(te,te,B)):(te=[ue,w,0,1],Gr(te,te,B));let se=te[3];return{point:new a.P(te[0]/se,te[1]/se),signedDistanceFromCamera:se,isOccluded:!1}}function rt(ue,w){return .5+ue/w*.5}function it(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function Ze(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar,de){let Te=ee?ue.textSizeData:ue.iconSizeData,Pe=a.ag(Te,B.transform.zoom),qe=[256/B.width*2+1,256/B.height*2+1],We=ee?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;We.clear();let Ne=ue.lineVertexArray,$e=ee?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Et=B.transform.width/B.transform.height,Dt=!1;for(let Ht=0;Ht<$e.length;Ht++){let tr=$e.get(Ht);if(tr.hidden||tr.writingMode===a.ah.vertical&&!Dt){ni(tr.numGlyphs,We);continue}Dt=!1;let yr=ut(tr.anchorX,tr.anchorY,w,de);if(!it(yr.point,qe)){ni(tr.numGlyphs,We);continue}let Dr=rt(B.transform.cameraToCenterDistance,yr.signedDistanceFromCamera),Fr=a.ai(Te,Pe,tr),Yr=Fe?Fr/Dr:Fr*Dr,vi={getElevation:de,labelPlaneMatrix:te,lineVertexArray:Ne,pitchWithMap:Fe,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},projection:mt,tileAnchorPoint:new a.P(tr.anchorX,tr.anchorY),unwrappedTileID:Bt,width:Ut,height:fr,translation:Ar},Ii=Ie(vi,tr,Yr,!1,Ue,w,se,ue.glyphOffsetArray,We,Et,tt);Dt=Ii.useVertical,(Ii.notEnoughRoom||Dt||Ii.needsFlipping&&Ie(vi,tr,Yr,!0,Ue,w,se,ue.glyphOffsetArray,We,Et,tt).notEnoughRoom)&&ni(tr.numGlyphs,We)}ee?ue.text.dynamicLayoutVertexBuffer.updateData(We):ue.icon.dynamicLayoutVertexBuffer.updateData(We)}function Je(ue,w,B,ee,te,se,Fe,Ue){let tt=se.glyphStartIndex+se.numGlyphs,mt=se.lineStartIndex,Bt=se.lineStartIndex+se.lineLength,Ut=w.getoffsetX(se.glyphStartIndex),fr=w.getoffsetX(tt-1),Ar=rr(ue*Ut,B,ee,te,se.segment,mt,Bt,Ue,Fe);if(!Ar)return null;let de=rr(ue*fr,B,ee,te,se.segment,mt,Bt,Ue,Fe);return de?Ue.projectionCache.anyProjectionOccluded?null:{first:Ar,last:de}:null}function ht(ue,w,B,ee){return ue===a.ah.horizontal&&Math.abs(B.y-w.y)>Math.abs(B.x-w.x)*ee?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt){let Ut=B/24,fr=w.lineOffsetX*Ut,Ar=w.lineOffsetY*Ut,de;if(w.numGlyphs>1){let Te=w.glyphStartIndex+w.numGlyphs,Pe=w.lineStartIndex,qe=w.lineStartIndex+w.lineLength,We=Je(Ut,Ue,fr,Ar,ee,w,Bt,ue);if(!We)return{notEnoughRoom:!0};let Ne=ut(We.first.point.x,We.first.point.y,Fe,ue.getElevation).point,$e=ut(We.last.point.x,We.last.point.y,Fe,ue.getElevation).point;if(te&&!ee){let Et=ht(w.writingMode,Ne,$e,mt);if(Et)return Et}de=[We.first];for(let Et=w.glyphStartIndex+1;Et0?Ne.point:function(Dt,Ht,tr,yr,Dr,Fr){return le(Dt,Ht,tr,1,Dr,Fr)}(ue.tileAnchorPoint,We,Pe,0,se,ue),Et=ht(w.writingMode,Pe,$e,mt);if(Et)return Et}let Te=rr(Ut*Ue.getoffsetX(w.glyphStartIndex),fr,Ar,ee,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Bt);if(!Te||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};de=[Te]}for(let Te of de)a.aj(tt,Te.point,Te.angle);return{}}function le(ue,w,B,ee,te,se){let Fe=ue.add(ue.sub(w)._unit()),Ue=te!==void 0?ut(Fe.x,Fe.y,te,se.getElevation).point:Qe(Fe.x,Fe.y,se).point,tt=B.sub(Ue);return B.add(tt._mult(ee/tt.mag()))}function be(ue,w,B){let ee=w.projectionCache;if(ee.projections[ue])return ee.projections[ue];let te=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),se=Qe(te.x,te.y,w);if(se.signedDistanceFromCamera>0)return ee.projections[ue]=se.point,ee.anyProjectionOccluded=ee.anyProjectionOccluded||se.isOccluded,se.point;let Fe=ue-B.direction;return function(Ue,tt,mt,Bt,Ut){return le(Ue,tt,mt,Bt,void 0,Ut)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Fe),w.lineVertexArray.gety(Fe)),te,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function Qe(ue,w,B){let ee=ue+B.translation[0],te=w+B.translation[1],se;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(se=B.projection.projectTileCoordinates(ee,te,B.unwrappedTileID,B.getElevation),se.point.x=(.5*se.point.x+.5)*B.width,se.point.y=(.5*-se.point.y+.5)*B.height):(se=ut(ee,te,B.labelPlaneMatrix,B.getElevation),se.isOccluded=!1),se}function xt(ue,w,B){return ue._unit()._perp()._mult(w*B)}function Ot(ue,w,B,ee,te,se,Fe,Ue,tt){if(Ue.projectionCache.offsets[ue])return Ue.projectionCache.offsets[ue];let mt=B.add(w);if(ue+tt.direction=te)return Ue.projectionCache.offsets[ue]=mt,mt;let Bt=be(ue+tt.direction,Ue,tt),Ut=xt(Bt.sub(B),Fe,tt.direction),fr=B.add(Ut),Ar=Bt.add(Ut);return Ue.projectionCache.offsets[ue]=a.ak(se,mt,fr,Ar)||mt,Ue.projectionCache.offsets[ue]}function rr(ue,w,B,ee,te,se,Fe,Ue,tt){let mt=ee?ue-w:ue+w,Bt=mt>0?1:-1,Ut=0;ee&&(Bt*=-1,Ut=Math.PI),Bt<0&&(Ut+=Math.PI);let fr,Ar=Bt>0?se+te:se+te+1;Ue.projectionCache.cachedAnchorPoint?fr=Ue.projectionCache.cachedAnchorPoint:(fr=Qe(Ue.tileAnchorPoint.x,Ue.tileAnchorPoint.y,Ue).point,Ue.projectionCache.cachedAnchorPoint=fr);let de,Te,Pe=fr,qe=fr,We=0,Ne=0,$e=Math.abs(mt),Et=[],Dt;for(;We+Ne<=$e;){if(Ar+=Bt,Ar=Fe)return null;We+=Ne,qe=Pe,Te=de;let yr={absOffsetX:$e,direction:Bt,distanceFromAnchor:We,previousVertex:qe};if(Pe=be(Ar,Ue,yr),B===0)Et.push(qe),Dt=Pe.sub(qe);else{let Dr,Fr=Pe.sub(qe);Dr=Fr.mag()===0?xt(be(Ar+Bt,Ue,yr).sub(Pe),B,Bt):xt(Fr,B,Bt),Te||(Te=qe.add(Dr)),de=Ot(Ar,Dr,Pe,se,Fe,Te,B,Ue,yr),Et.push(Te),Dt=de.sub(Te)}Ne=Dt.mag()}let Ht=Dt._mult(($e-We)/Ne)._add(Te||qe),tr=Ut+Math.atan2(Pe.y-qe.y,Pe.x-qe.x);return Et.push(Ht),{point:Ht,angle:tt?tr:0,path:Et}}let Jr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ni(ue,w){for(let B=0;B=1;Qn--)en.push(Ii.path[Qn]);for(let Qn=1;QnUa.signedDistanceFromCamera<=0)?[]:Qn.map(Ua=>Ua.point)}let da=[];if(en.length>0){let Qn=en[0].clone(),Ua=en[0].clone();for(let xo=1;xo=Fr.x&&Ua.x<=Yr.x&&Qn.y>=Fr.y&&Ua.y<=Yr.y?[en]:Ua.xYr.x||Ua.yYr.y?[]:a.al([en],Fr.x,Fr.y,Yr.x,Yr.y)}for(let Qn of da){vi.reset(Qn,.25*Dr);let Ua=0;Ua=vi.length<=.5*Dr?1:Math.ceil(vi.paddedLength/Mn)+1;for(let xo=0;xout(te.x,te.y,ee,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],ee=1/0,te=1/0,se=-1/0,Fe=-1/0;for(let Bt of w){let Ut=new a.P(Bt.x+ri,Bt.y+ri);ee=Math.min(ee,Ut.x),te=Math.min(te,Ut.y),se=Math.max(se,Ut.x),Fe=Math.max(Fe,Ut.y),B.push(Ut)}let Ue=this.grid.query(ee,te,se,Fe).concat(this.ignoredGrid.query(ee,te,se,Fe)),tt={},mt={};for(let Bt of Ue){let Ut=Bt.key;if(tt[Ut.bucketInstanceId]===void 0&&(tt[Ut.bucketInstanceId]={}),tt[Ut.bucketInstanceId][Ut.featureIndex])continue;let fr=[new a.P(Bt.x1,Bt.y1),new a.P(Bt.x2,Bt.y1),new a.P(Bt.x2,Bt.y2),new a.P(Bt.x1,Bt.y2)];a.am(B,fr)&&(tt[Ut.bucketInstanceId][Ut.featureIndex]=!0,mt[Ut.bucketInstanceId]===void 0&&(mt[Ut.bucketInstanceId]=[]),mt[Ut.bucketInstanceId].push(Ut.featureIndex))}return mt}insertCollisionBox(w,B,ee,te,se,Fe){(ee?this.ignoredGrid:this.grid).insert({bucketInstanceId:te,featureIndex:se,collisionGroupID:Fe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,ee,te,se,Fe){let Ue=ee?this.ignoredGrid:this.grid,tt={bucketInstanceId:te,featureIndex:se,collisionGroupID:Fe,overlapMode:B};for(let mt=0;mt=this.screenRightBoundary||tethis.screenBottomBoundary}isInsideGrid(w,B,ee,te){return ee>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(ee,Dr.x,Dr.y,te,mt));tr=yr.some(Dr=>!Dr.isOccluded),Ht=yr.map(Dr=>Dr.point)}else tr=!0;return{box:a.ao(Ht),allPointsOccluded:!tr}}}function an(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class Yi{constructor(w,B,ee,te){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):te&&ee?1:0,this.placed=ee}isHidden(){return this.opacity===0&&!this.placed}}class Xi{constructor(w,B,ee,te,se){this.text=new Yi(w?w.text:null,B,ee,se),this.icon=new Yi(w?w.icon:null,B,te,se)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class An{constructor(w,B,ee){this.text=w,this.icon=B,this.skipFade=ee}}class Qi{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class Un{constructor(w,B,ee,te,se){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=ee,this.bucketIndex=te,this.tileID=se}}class Xn{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:ee=>ee.collisionGroupID===B}}return this.collisionGroups[w]}}function It(ue,w,B,ee,te){let{horizontalAlign:se,verticalAlign:Fe}=a.au(ue);return new a.P(-(se-.5)*w+ee[0]*te,-(Fe-.5)*B+ee[1]*te)}class ct{constructor(w,B,ee,te,se,Fe){this.transform=w.clone(),this.terrain=ee,this.collisionIndex=new Ti(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=te,this.retainedQueryData={},this.collisionGroups=new Xn(se),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Fe,Fe&&(Fe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(ee,te)=>B.getElevation(w,ee,te):null}getBucketParts(w,B,ee,te){let se=ee.getBucket(B),Fe=ee.latestFeatureIndex;if(!se||!Fe||B.id!==se.layerIds[0])return;let Ue=ee.collisionBoxArray,tt=se.layers[0].layout,mt=se.layers[0].paint,Bt=Math.pow(2,this.transform.zoom-ee.tileID.overscaledZ),Ut=ee.tileSize/a.X,fr=ee.tileID.toUnwrapped(),Ar=this.transform.calculatePosMatrix(fr),de=tt.get("text-pitch-alignment")==="map",Te=tt.get("text-rotation-alignment")==="map",Pe=an(ee,1,this.transform.zoom),qe=this.collisionIndex.mapProjection.translatePosition(this.transform,ee,mt.get("text-translate"),mt.get("text-translate-anchor")),We=this.collisionIndex.mapProjection.translatePosition(this.transform,ee,mt.get("icon-translate"),mt.get("icon-translate-anchor")),Ne=Br(Ar,de,Te,this.transform,Pe),$e=null;if(de){let Dt=Ur(Ar,de,Te,this.transform,Pe);$e=a.L([],this.transform.labelPlaneMatrix,Dt)}this.retainedQueryData[se.bucketInstanceId]=new Un(se.bucketInstanceId,Fe,se.sourceLayerIndex,se.index,ee.tileID);let Et={bucket:se,layout:tt,translationText:qe,translationIcon:We,posMatrix:Ar,unwrappedTileID:fr,textLabelPlaneMatrix:Ne,labelToScreenMatrix:$e,scale:Bt,textPixelRatio:Ut,holdingForFade:ee.holdingForFade(),collisionBoxArray:Ue,partiallyEvaluatedTextSize:a.ag(se.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(se.sourceID)};if(te)for(let Dt of se.sortKeyRanges){let{sortKey:Ht,symbolInstanceStart:tr,symbolInstanceEnd:yr}=Dt;w.push({sortKey:Ht,symbolInstanceStart:tr,symbolInstanceEnd:yr,parameters:Et})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:se.symbolInstances.length,parameters:Et})}attemptAnchorPlacement(w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar,de,Te,Pe,qe,We,Ne){let $e=a.aq[w.textAnchor],Et=[w.textOffset0,w.textOffset1],Dt=It($e,ee,te,Et,se),Ht=this.collisionIndex.placeCollisionBox(B,fr,tt,mt,Bt,Ue,Fe,Pe,Ut.predicate,Ne,Dt);if((!We||this.collisionIndex.placeCollisionBox(We,fr,tt,mt,Bt,Ue,Fe,qe,Ut.predicate,Ne,Dt).placeable)&&Ht.placeable){let tr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ar.crossTileID]&&this.prevPlacement.placements[Ar.crossTileID]&&this.prevPlacement.placements[Ar.crossTileID].text&&(tr=this.prevPlacement.variableOffsets[Ar.crossTileID].anchor),Ar.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ar.crossTileID]={textOffset:Et,width:ee,height:te,anchor:$e,textBoxScale:se,prevAnchor:tr},this.markUsedJustification(de,$e,Ar,Te),de.allowVerticalPlacement&&(this.markUsedOrientation(de,Te,Ar),this.placedOrientations[Ar.crossTileID]=Te),{shift:Dt,placedGlyphBoxes:Ht}}}placeLayerBucketPart(w,B,ee){let{bucket:te,layout:se,translationText:Fe,translationIcon:Ue,posMatrix:tt,unwrappedTileID:mt,textLabelPlaneMatrix:Bt,labelToScreenMatrix:Ut,textPixelRatio:fr,holdingForFade:Ar,collisionBoxArray:de,partiallyEvaluatedTextSize:Te,collisionGroup:Pe}=w.parameters,qe=se.get("text-optional"),We=se.get("icon-optional"),Ne=a.ar(se,"text-overlap","text-allow-overlap"),$e=Ne==="always",Et=a.ar(se,"icon-overlap","icon-allow-overlap"),Dt=Et==="always",Ht=se.get("text-rotation-alignment")==="map",tr=se.get("text-pitch-alignment")==="map",yr=se.get("icon-text-fit")!=="none",Dr=se.get("symbol-z-order")==="viewport-y",Fr=$e&&(Dt||!te.hasIconData()||We),Yr=Dt&&($e||!te.hasTextData()||qe);!te.collisionArrays&&de&&te.deserializeCollisionBoxes(de);let vi=this._getTerrainElevationFunc(this.retainedQueryData[te.bucketInstanceId].tileID),Ii=(Pi,en,Mn)=>{var da,Qn;if(B[Pi.crossTileID])return;if(Ar)return void(this.placements[Pi.crossTileID]=new An(!1,!1,!1));let Ua=!1,xo=!1,Ha=!0,oo=null,Lo={box:null,placeable:!1,offscreen:null},Rs={box:null,placeable:!1,offscreen:null},ws=null,vo=null,co=null,_l=0,Gl=0,Zu=0;en.textFeatureIndex?_l=en.textFeatureIndex:Pi.useRuntimeCollisionCircles&&(_l=Pi.featureIndex),en.verticalTextFeatureIndex&&(Gl=en.verticalTextFeatureIndex);let cu=en.textBox;if(cu){let zl=Ae=>{let Oe=a.ah.horizontal;if(te.allowVerticalPlacement&&!Ae&&this.prevPlacement){let Be=this.prevPlacement.placedOrientations[Pi.crossTileID];Be&&(this.placedOrientations[Pi.crossTileID]=Be,Oe=Be,this.markUsedOrientation(te,Oe,Pi))}return Oe},Fl=(Ae,Oe)=>{if(te.allowVerticalPlacement&&Pi.numVerticalGlyphVertices>0&&en.verticalTextBox){for(let Be of te.writingModes)if(Be===a.ah.vertical?(Lo=Oe(),Rs=Lo):Lo=Ae(),Lo&&Lo.placeable)break}else Lo=Ae()},W=Pi.textAnchorOffsetStartIndex,oe=Pi.textAnchorOffsetEndIndex;if(oe===W){let Ae=(Oe,Be)=>{let Ve=this.collisionIndex.placeCollisionBox(Oe,Ne,fr,tt,mt,tr,Ht,Fe,Pe.predicate,vi);return Ve&&Ve.placeable&&(this.markUsedOrientation(te,Be,Pi),this.placedOrientations[Pi.crossTileID]=Be),Ve};Fl(()=>Ae(cu,a.ah.horizontal),()=>{let Oe=en.verticalTextBox;return te.allowVerticalPlacement&&Pi.numVerticalGlyphVertices>0&&Oe?Ae(Oe,a.ah.vertical):{box:null,offscreen:null}}),zl(Lo&&Lo.placeable)}else{let Ae=a.aq[(Qn=(da=this.prevPlacement)===null||da===void 0?void 0:da.variableOffsets[Pi.crossTileID])===null||Qn===void 0?void 0:Qn.anchor],Oe=(Ve,bt,et)=>{let zt=Ve.x2-Ve.x1,or=Ve.y2-Ve.y1,lr=Pi.textBoxScale,zr=yr&&Et==="never"?bt:null,Rr=null,li=Ne==="never"?1:2,fi="never";Ae&&li++;for(let Or=0;OrOe(cu,en.iconBox,a.ah.horizontal),()=>{let Ve=en.verticalTextBox;return te.allowVerticalPlacement&&(!Lo||!Lo.placeable)&&Pi.numVerticalGlyphVertices>0&&Ve?Oe(Ve,en.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Lo&&(Ua=Lo.placeable,Ha=Lo.offscreen);let Be=zl(Lo&&Lo.placeable);if(!Ua&&this.prevPlacement){let Ve=this.prevPlacement.variableOffsets[Pi.crossTileID];Ve&&(this.variableOffsets[Pi.crossTileID]=Ve,this.markUsedJustification(te,Ve.anchor,Pi,Be))}}}if(ws=Lo,Ua=ws&&ws.placeable,Ha=ws&&ws.offscreen,Pi.useRuntimeCollisionCircles){let zl=te.text.placedSymbolArray.get(Pi.centerJustifiedTextSymbolIndex),Fl=a.ai(te.textSizeData,Te,zl),W=se.get("text-padding");vo=this.collisionIndex.placeCollisionCircles(Ne,zl,te.lineVertexArray,te.glyphOffsetArray,Fl,tt,mt,Bt,Ut,ee,tr,Pe.predicate,Pi.collisionCircleDiameter,W,Fe,vi),vo.circles.length&&vo.collisionDetected&&!ee&&a.w("Collisions detected, but collision boxes are not shown"),Ua=$e||vo.circles.length>0&&!vo.collisionDetected,Ha=Ha&&vo.offscreen}if(en.iconFeatureIndex&&(Zu=en.iconFeatureIndex),en.iconBox){let zl=Fl=>this.collisionIndex.placeCollisionBox(Fl,Et,fr,tt,mt,tr,Ht,Ue,Pe.predicate,vi,yr&&oo?oo:void 0);Rs&&Rs.placeable&&en.verticalIconBox?(co=zl(en.verticalIconBox),xo=co.placeable):(co=zl(en.iconBox),xo=co.placeable),Ha=Ha&&co.offscreen}let el=qe||Pi.numHorizontalGlyphVertices===0&&Pi.numVerticalGlyphVertices===0,au=We||Pi.numIconVertices===0;el||au?au?el||(xo=xo&&Ua):Ua=xo&&Ua:xo=Ua=xo&&Ua;let zc=xo&&co.placeable;if(Ua&&ws.placeable&&this.collisionIndex.insertCollisionBox(ws.box,Ne,se.get("text-ignore-placement"),te.bucketInstanceId,Rs&&Rs.placeable&&Gl?Gl:_l,Pe.ID),zc&&this.collisionIndex.insertCollisionBox(co.box,Et,se.get("icon-ignore-placement"),te.bucketInstanceId,Zu,Pe.ID),vo&&Ua&&this.collisionIndex.insertCollisionCircles(vo.circles,Ne,se.get("text-ignore-placement"),te.bucketInstanceId,_l,Pe.ID),ee&&this.storeCollisionData(te.bucketInstanceId,Mn,en,ws,co,vo),Pi.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(te.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Pi.crossTileID]=new An(Ua||Fr,xo||Yr,Ha||te.justReloaded),B[Pi.crossTileID]=!0};if(Dr){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Pi=te.getSortedSymbolIndexes(this.transform.angle);for(let en=Pi.length-1;en>=0;--en){let Mn=Pi[en];Ii(te.symbolInstances.get(Mn),te.collisionArrays[Mn],Mn)}}else for(let Pi=w.symbolInstanceStart;Pi=0&&(w.text.placedSymbolArray.get(Ue).crossTileID=se>=0&&Ue!==se?0:ee.crossTileID)}markUsedOrientation(w,B,ee){let te=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,se=B===a.ah.vertical?B:0,Fe=[ee.leftJustifiedTextSymbolIndex,ee.centerJustifiedTextSymbolIndex,ee.rightJustifiedTextSymbolIndex];for(let Ue of Fe)w.text.placedSymbolArray.get(Ue).placedOrientation=te;ee.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(ee.verticalPlacedTextSymbolIndex).placedOrientation=se)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,ee=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let te=B?B.symbolFadeChange(w):1,se=B?B.opacities:{},Fe=B?B.variableOffsets:{},Ue=B?B.placedOrientations:{};for(let tt in this.placements){let mt=this.placements[tt],Bt=se[tt];Bt?(this.opacities[tt]=new Xi(Bt,te,mt.text,mt.icon),ee=ee||mt.text!==Bt.text.placed||mt.icon!==Bt.icon.placed):(this.opacities[tt]=new Xi(null,te,mt.text,mt.icon,mt.skipFade),ee=ee||mt.text||mt.icon)}for(let tt in se){let mt=se[tt];if(!this.opacities[tt]){let Bt=new Xi(mt,te,!1,!1);Bt.isHidden()||(this.opacities[tt]=Bt,ee=ee||mt.text.placed||mt.icon.placed)}}for(let tt in Fe)this.variableOffsets[tt]||!this.opacities[tt]||this.opacities[tt].isHidden()||(this.variableOffsets[tt]=Fe[tt]);for(let tt in Ue)this.placedOrientations[tt]||!this.opacities[tt]||this.opacities[tt].isHidden()||(this.placedOrientations[tt]=Ue[tt]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");ee?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let ee={};for(let te of B){let se=te.getBucket(w);se&&te.latestFeatureIndex&&w.id===se.layerIds[0]&&this.updateBucketOpacities(se,te.tileID,ee,te.collisionBoxArray)}}updateBucketOpacities(w,B,ee,te){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let se=w.layers[0],Fe=se.layout,Ue=new Xi(null,0,!1,!1,!0),tt=Fe.get("text-allow-overlap"),mt=Fe.get("icon-allow-overlap"),Bt=se._unevaluatedLayout.hasValue("text-variable-anchor")||se._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Ut=Fe.get("text-rotation-alignment")==="map",fr=Fe.get("text-pitch-alignment")==="map",Ar=Fe.get("icon-text-fit")!=="none",de=new Xi(null,0,tt&&(mt||!w.hasIconData()||Fe.get("icon-optional")),mt&&(tt||!w.hasTextData()||Fe.get("text-optional")),!0);!w.collisionArrays&&te&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(te);let Te=(qe,We,Ne)=>{for(let $e=0;$e0,tr=this.placedOrientations[We.crossTileID],yr=tr===a.ah.vertical,Dr=tr===a.ah.horizontal||tr===a.ah.horizontalOnly;if(Ne>0||$e>0){let Yr=ki(Dt.text);Te(w.text,Ne,yr?Ri:Yr),Te(w.text,$e,Dr?Ri:Yr);let vi=Dt.text.isHidden();[We.rightJustifiedTextSymbolIndex,We.centerJustifiedTextSymbolIndex,We.leftJustifiedTextSymbolIndex].forEach(en=>{en>=0&&(w.text.placedSymbolArray.get(en).hidden=vi||yr?1:0)}),We.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(We.verticalPlacedTextSymbolIndex).hidden=vi||Dr?1:0);let Ii=this.variableOffsets[We.crossTileID];Ii&&this.markUsedJustification(w,Ii.anchor,We,tr);let Pi=this.placedOrientations[We.crossTileID];Pi&&(this.markUsedJustification(w,"left",We,Pi),this.markUsedOrientation(w,Pi,We))}if(Ht){let Yr=ki(Dt.icon),vi=!(Ar&&We.verticalPlacedIconSymbolIndex&&yr);We.placedIconSymbolIndex>=0&&(Te(w.icon,We.numIconVertices,vi?Yr:Ri),w.icon.placedSymbolArray.get(We.placedIconSymbolIndex).hidden=Dt.icon.isHidden()),We.verticalPlacedIconSymbolIndex>=0&&(Te(w.icon,We.numVerticalIconVertices,vi?Ri:Yr),w.icon.placedSymbolArray.get(We.verticalPlacedIconSymbolIndex).hidden=Dt.icon.isHidden())}let Fr=Pe&&Pe.has(qe)?Pe.get(qe):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Yr=w.collisionArrays[qe];if(Yr){let vi=new a.P(0,0);if(Yr.textBox||Yr.verticalTextBox){let Ii=!0;if(Bt){let Pi=this.variableOffsets[Et];Pi?(vi=It(Pi.anchor,Pi.width,Pi.height,Pi.textOffset,Pi.textBoxScale),Ut&&vi._rotate(fr?this.transform.angle:-this.transform.angle)):Ii=!1}if(Yr.textBox||Yr.verticalTextBox){let Pi;Yr.textBox&&(Pi=yr),Yr.verticalTextBox&&(Pi=Dr),Vt(w.textCollisionBox.collisionVertexArray,Dt.text.placed,!Ii||Pi,Fr.text,vi.x,vi.y)}}if(Yr.iconBox||Yr.verticalIconBox){let Ii=!!(!Dr&&Yr.verticalIconBox),Pi;Yr.iconBox&&(Pi=Ii),Yr.verticalIconBox&&(Pi=!Ii),Vt(w.iconCollisionBox.collisionVertexArray,Dt.icon.placed,Pi,Fr.icon,Ar?vi.x:0,Ar?vi.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let qe=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=qe.invProjMatrix,w.placementViewportMatrix=qe.viewportMatrix,w.collisionCircleArray=qe.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function Vt(ue,w,B,ee,te,se){ee&&ee.length!==0||(ee=[0,0,0,0]);let Fe=ee[0]-ri,Ue=ee[1]-ri,tt=ee[2]-ri,mt=ee[3]-ri;ue.emplaceBack(w?1:0,B?1:0,te||0,se||0,Fe,Ue),ue.emplaceBack(w?1:0,B?1:0,te||0,se||0,tt,Ue),ue.emplaceBack(w?1:0,B?1:0,te||0,se||0,tt,mt),ue.emplaceBack(w?1:0,B?1:0,te||0,se||0,Fe,mt)}let Wt=Math.pow(2,25),gr=Math.pow(2,24),qr=Math.pow(2,17),Zr=Math.pow(2,16),Hr=Math.pow(2,9),mi=Math.pow(2,8),Ei=Math.pow(2,1);function ki(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*Wt+w*gr+B*qr+w*Zr+B*Hr+w*mi+B*Ei+w}let Ri=0;function ji(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,ee){throw new Error("Not implemented.")},translatePosition:(ue,w,B,ee)=>function(te,se,Fe,Ue,tt=!1){if(!Fe[0]&&!Fe[1])return[0,0];let mt=tt?Ue==="map"?te.angle:0:Ue==="viewport"?-te.angle:0;if(mt){let Bt=Math.sin(mt),Ut=Math.cos(mt);Fe=[Fe[0]*Ut-Fe[1]*Bt,Fe[0]*Bt+Fe[1]*Ut]}return[tt?Fe[0]:an(se,Fe[0],te.zoom),tt?Fe[1]:an(se,Fe[1],te.zoom)]}(ue,w,B,ee),getCircleRadiusCorrection:ue=>1}}class $i{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,ee,te,se){let Fe=this._bucketParts;for(;this._currentTileIndexUe.sortKey-tt.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-te>2;for(;this._currentPlacementIndex>=0;){let Fe=B[w[this._currentPlacementIndex]],Ue=this.placement.collisionIndex.transform.zoom;if(Fe.type==="symbol"&&(!Fe.minzoom||Fe.minzoom<=Ue)&&(!Fe.maxzoom||Fe.maxzoom>Ue)){if(this._inProgressLayer||(this._inProgressLayer=new $i(Fe)),this._inProgressLayer.continuePlacement(ee[Fe.source],this.placement,this._showCollisionBoxes,Fe,se))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Gn=512/a.X/2;class sa{constructor(w,B,ee){this.tileID=w,this.bucketInstanceId=ee,this._symbolsByKey={};let te=new Map;for(let se=0;se({x:Math.floor(tt.anchorX*Gn),y:Math.floor(tt.anchorY*Gn)})),crossTileIDs:Fe.map(tt=>tt.crossTileID)};if(Ue.positions.length>128){let tt=new a.av(Ue.positions.length,16,Uint16Array);for(let{x:mt,y:Bt}of Ue.positions)tt.add(mt,Bt);tt.finish(),delete Ue.positions,Ue.index=tt}this._symbolsByKey[se]=Ue}}getScaledCoordinates(w,B){let{x:ee,y:te,z:se}=this.tileID.canonical,{x:Fe,y:Ue,z:tt}=B.canonical,mt=Gn/Math.pow(2,tt-se),Bt=(Ue*a.X+w.anchorY)*mt,Ut=te*a.X*Gn;return{x:Math.floor((Fe*a.X+w.anchorX)*mt-ee*a.X*Gn),y:Math.floor(Bt-Ut)}}findMatches(w,B,ee){let te=this.tileID.canonical.zw)}}class Da{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Pa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let ee in this.indexes){let te=this.indexes[ee],se={};for(let Fe in te){let Ue=te[Fe];Ue.tileID=Ue.tileID.unwrapTo(Ue.tileID.wrap+B),se[Ue.tileID.key]=Ue}this.indexes[ee]=se}this.lng=w}addBucket(w,B,ee){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let se=0;sew.overscaledZ)for(let Ue in Fe){let tt=Fe[Ue];tt.tileID.isChildOf(w)&&tt.findMatches(B.symbolInstances,w,te)}else{let Ue=Fe[w.scaledTo(Number(se)).key];Ue&&Ue.findMatches(B.symbolInstances,w,te)}}for(let se=0;se{B[ee]=!0});for(let ee in this.layerIndexes)B[ee]||delete this.layerIndexes[ee]}}let aa=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),go=a.aw();class _s extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let ee in this.sourceCaches){let te=this.sourceCaches[ee].getSource().type;te!=="vector"&&te!=="geojson"||this.sourceCaches[ee].reload()}},this.map=w,this.dispatcher=new pe(ce(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(ee,te)=>this.getGlyphs(ee,te)),this.dispatcher.registerMessageHandler("GI",(ee,te)=>this.getImages(ee,te)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new H(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new Vo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),_t().on(er,this._rtlPluginLoaded),this.on("data",ee=>{if(ee.dataType!=="source"||ee.sourceDataType!=="metadata")return;let te=this.sourceCaches[ee.sourceId];if(!te)return;let se=te.getSource();if(se&&se.vectorLayerIds)for(let Fe in this._layers){let Ue=this._layers[Fe];Ue.source===se.id&&this._validateLayer(Ue)}})}loadURL(w,B={},ee){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let te=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let se=this._loadStyleRequest;a.h(te,this._loadStyleRequest).then(Fe=>{this._loadStyleRequest=null,this._load(Fe.data,B,ee)}).catch(Fe=>{this._loadStyleRequest=null,Fe&&!se.signal.aborted&&this.fire(new a.j(Fe))})}loadJSON(w,B={},ee){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,ee)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(go,{validate:!1})}_load(w,B,ee){var te;let se=B.transformStyle?B.transformStyle(ee,w):w;if(!B.validate||!aa(this,a.u(se))){this._loaded=!0,this.stylesheet=se;for(let Fe in se.sources)this.addSource(Fe,se.sources[Fe],{validate:!1});se.sprite?this._loadSprite(se.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(se.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new ie(this.stylesheet.sky),this.map.setTerrain((te=this.stylesheet.terrain)!==null&&te!==void 0?te:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let ee=a.aA(B);ee.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=ee}}_loadSprite(w,B=!1,ee=void 0){let te;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(se,Fe,Ue,tt){return a._(this,void 0,void 0,function*(){let mt=C(se),Bt=Ue>1?"@2x":"",Ut={},fr={};for(let{id:Ar,url:de}of mt){let Te=Fe.transformRequest(S(de,Bt,".json"),"SpriteJSON");Ut[Ar]=a.h(Te,tt);let Pe=Fe.transformRequest(S(de,Bt,".png"),"SpriteImage");fr[Ar]=p.getImage(Pe,tt)}return yield Promise.all([...Object.values(Ut),...Object.values(fr)]),function(Ar,de){return a._(this,void 0,void 0,function*(){let Te={};for(let Pe in Ar){Te[Pe]={};let qe=u.getImageCanvasContext((yield de[Pe]).data),We=(yield Ar[Pe]).data;for(let Ne in We){let{width:$e,height:Et,x:Dt,y:Ht,sdf:tr,pixelRatio:yr,stretchX:Dr,stretchY:Fr,content:Yr,textFitWidth:vi,textFitHeight:Ii}=We[Ne];Te[Pe][Ne]={data:null,pixelRatio:yr,sdf:tr,stretchX:Dr,stretchY:Fr,content:Yr,textFitWidth:vi,textFitHeight:Ii,spriteData:{width:$e,height:Et,x:Dt,y:Ht,context:qe}}}}return Te})}(Ut,fr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(se=>{if(this._spriteRequest=null,se)for(let Fe in se){this._spritesImagesIds[Fe]=[];let Ue=this._spritesImagesIds[Fe]?this._spritesImagesIds[Fe].filter(tt=>!(tt in se)):[];for(let tt of Ue)this.imageManager.removeImage(tt),this._changedImages[tt]=!0;for(let tt in se[Fe]){let mt=Fe==="default"?tt:`${Fe}:${tt}`;this._spritesImagesIds[Fe].push(mt),mt in this.imageManager.images?this.imageManager.updateImage(mt,se[Fe][tt],!1):this.imageManager.addImage(mt,se[Fe][tt]),B&&(this._changedImages[mt]=!0)}}}).catch(se=>{this._spriteRequest=null,te=se,this.fire(new a.j(te))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),ee&&ee(te)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let ee=w.sourceLayer;if(!ee)return;let te=B.getSource();(te.type==="geojson"||te.vectorLayerIds&&te.vectorLayerIds.indexOf(ee)===-1)&&this.fire(new a.j(new Error(`Source layer "${ee}" does not exist on source "${te.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let ee=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(ee):ee);let te=[];for(let se of w)if(ee[se]){let Fe=B?a.aB(ee[se]):ee[se];te.push(Fe)}return te}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let ee of B){let te=this._layers[ee];te.type!=="custom"&&(w[ee]=te.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let te=Object.keys(this._updatedLayers),se=Object.keys(this._removedLayers);(te.length||se.length)&&this._updateWorkerLayers(te,se);for(let Fe in this._updatedSources){let Ue=this._updatedSources[Fe];if(Ue==="reload")this._reloadSource(Fe);else{if(Ue!=="clear")throw new Error(`Invalid action ${Ue}`);this._clearSource(Fe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Fe in this._updatedPaintProps)this._layers[Fe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let ee={};for(let te in this.sourceCaches){let se=this.sourceCaches[te];ee[te]=se.used,se.used=!1}for(let te of this._order){let se=this._layers[te];se.recalculate(w,this._availableImages),!se.isHidden(w.zoom)&&se.source&&(this.sourceCaches[se.source].used=!0)}for(let te in ee){let se=this.sourceCaches[te];!!ee[te]!=!!se.used&&se.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:te}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var ee;this._checkLoaded();let te=this.serialize();if(w=B.transformStyle?B.transformStyle(te,w):w,((ee=B.validate)===null||ee===void 0||ee)&&aa(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let se=a.aC(te,w),Fe=this._getOperationsToPerform(se);if(Fe.unimplemented.length>0)throw new Error(`Unimplemented: ${Fe.unimplemented.join(", ")}.`);if(Fe.operations.length===0)return!1;for(let Ue of Fe.operations)Ue();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],ee=[];for(let te of w)switch(te.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,te.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,te.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,te.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,te.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,te.args));break;case"addSource":B.push(()=>this.addSource.apply(this,te.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,te.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,te.args));break;case"setLight":B.push(()=>this.setLight.apply(this,te.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,te.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,te.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,te.args));break;case"setSky":B.push(()=>this.setSky.apply(this,te.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,te.args));break;case"setTransition":B.push(()=>{});break;default:ee.push(te.command)}return{operations:B,unimplemented:ee}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,ee={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,ee))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let te=this.sourceCaches[w]=new ft(w,B,this.dispatcher);te.style=this,te.setEventedParent(this,()=>({isSourceLoaded:te.loaded(),source:te.serialize(),sourceId:w})),te.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let ee in this._layers)if(this._layers[ee].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${ee}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let ee=this.sourceCaches[w].getSource();if(ee.type!=="geojson")throw new Error(`geojsonSource.type is ${ee.type}, which is !== 'geojson`);ee.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,ee={}){this._checkLoaded();let te=w.id;if(this.getLayer(te))return void this.fire(new a.j(new Error(`Layer "${te}" already exists on this map.`)));let se;if(w.type==="custom"){if(aa(this,a.aD(w)))return;se=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(te,w.source),w=a.aB(w),w=a.e(w,{source:te})),this._validate(a.u.layer,`layers.${te}`,w,{arrayIndex:-1},ee))return;se=a.aA(w),this._validateLayer(se),se.setEventedParent(this,{layer:{id:te}})}let Fe=B?this._order.indexOf(B):this._order.length;if(B&&Fe===-1)this.fire(new a.j(new Error(`Cannot add layer "${te}" before non-existing layer "${B}".`)));else{if(this._order.splice(Fe,0,te),this._layerOrderChanged=!0,this._layers[te]=se,this._removedLayers[te]&&se.source&&se.type!=="custom"){let Ue=this._removedLayers[te];delete this._removedLayers[te],Ue.type!==se.type?this._updatedSources[se.source]="clear":(this._updatedSources[se.source]="reload",this.sourceCaches[se.source].pause())}this._updateLayer(se),se.onAdd&&se.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let ee=this._order.indexOf(w);this._order.splice(ee,1);let te=B?this._order.indexOf(B):this._order.length;B&&te===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(te,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let ee=this._order.indexOf(w);this._order.splice(ee,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,ee){this._checkLoaded();let te=this.getLayer(w);te?te.minzoom===B&&te.maxzoom===ee||(B!=null&&(te.minzoom=B),ee!=null&&(te.maxzoom=ee),this._updateLayer(te)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,ee={}){this._checkLoaded();let te=this.getLayer(w);if(te){if(!a.aE(te.filter,B))return B==null?(te.filter=void 0,void this._updateLayer(te)):void(this._validate(a.u.filter,`layers.${te.id}.filter`,B,null,ee)||(te.filter=a.aB(B),this._updateLayer(te)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,ee,te={}){this._checkLoaded();let se=this.getLayer(w);se?a.aE(se.getLayoutProperty(B),ee)||(se.setLayoutProperty(B,ee,te),this._updateLayer(se)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let ee=this.getLayer(w);if(ee)return ee.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,ee,te={}){this._checkLoaded();let se=this.getLayer(w);se?a.aE(se.getPaintProperty(B),ee)||(se.setPaintProperty(B,ee,te)&&this._updateLayer(se),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let ee=w.source,te=w.sourceLayer,se=this.sourceCaches[ee];if(se===void 0)return void this.fire(new a.j(new Error(`The source '${ee}' does not exist in the map's style.`)));let Fe=se.getSource().type;Fe==="geojson"&&te?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Fe!=="vector"||te?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),se.setFeatureState(te,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let ee=w.source,te=this.sourceCaches[ee];if(te===void 0)return void this.fire(new a.j(new Error(`The source '${ee}' does not exist in the map's style.`)));let se=te.getSource().type,Fe=se==="vector"?w.sourceLayer:void 0;se!=="vector"||Fe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):te.removeFeatureState(Fe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,ee=w.sourceLayer,te=this.sourceCaches[B];if(te!==void 0)return te.getSource().type!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),te.getFeatureState(ee,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,se=>se.serialize()),B=this._serializeByIds(this._order,!0),ee=this.map.getTerrain()||void 0,te=this.stylesheet;return a.aG({version:te.version,name:te.name,metadata:te.metadata,light:te.light,sky:te.sky,center:te.center,zoom:te.zoom,bearing:te.bearing,pitch:te.pitch,sprite:te.sprite,glyphs:te.glyphs,transition:te.transition,sources:w,layers:B,terrain:ee},se=>se!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=Fe=>this._layers[Fe].type==="fill-extrusion",ee={},te=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ue=this._order[Fe];if(B(Ue)){ee[Ue]=Fe;for(let tt of w){let mt=tt[Ue];if(mt)for(let Bt of mt)te.push(Bt)}}}te.sort((Fe,Ue)=>Ue.intersectionZ-Fe.intersectionZ);let se=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ue=this._order[Fe];if(B(Ue))for(let tt=te.length-1;tt>=0;tt--){let mt=te[tt].feature;if(ee[mt.layer.id]{let tr=qe.featureSortOrder;if(tr){let yr=tr.indexOf(Dt.featureIndex);return tr.indexOf(Ht.featureIndex)-yr}return Ht.featureIndex-Dt.featureIndex});for(let Dt of Et)$e.push(Dt)}}for(let qe in de)de[qe].forEach(We=>{let Ne=We.feature,$e=mt[Ue[qe].source].getFeatureState(Ne.layer["source-layer"],Ne.id);Ne.source=Ne.layer.source,Ne.layer["source-layer"]&&(Ne.sourceLayer=Ne.layer["source-layer"]),Ne.state=$e});return de}(this._layers,Fe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(se)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let ee=this.sourceCaches[w];return ee?function(te,se){let Fe=te.getRenderableIds().map(mt=>te.getTileByID(mt)),Ue=[],tt={};for(let mt=0;mtfr.getTileByID(Ar)).sort((Ar,de)=>de.tileID.overscaledZ-Ar.tileID.overscaledZ||(Ar.tileID.isLessThan(de.tileID)?-1:1))}let Ut=this.crossTileSymbolIndex.addLayer(Bt,tt[Bt.source],w.center.lng);Fe=Fe||Ut}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((se=se||this._layerOrderChanged||ee===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Sa(w,this.map.terrain,this._order,se,B,ee,te,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,tt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Ue=!0),Fe&&this.pauseablePlacement.placement.setStale()),Ue||Fe)for(let mt of this._order){let Bt=this._layers[mt];Bt.type==="symbol"&&this.placement.updateLayerOpacities(Bt,tt[Bt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let ee=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let te=this.sourceCaches[B.source];return te&&te.setDependencies(B.tileID.key,B.type,B.icons),ee})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let ee=yield this.glyphManager.getGlyphs(B.stacks),te=this.sourceCaches[B.source];return te&&te.setDependencies(B.tileID.key,B.type,[""]),ee})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,ee={},te){this._checkLoaded();let se=[{id:w,url:B}],Fe=[...C(this.stylesheet.sprite),...se];this._validate(a.u.sprite,"sprite",Fe,null,ee)||(this.stylesheet.sprite=Fe,this._loadSprite(se,!0,te))}removeSprite(w){this._checkLoaded();let B=C(this.stylesheet.sprite);if(B.find(ee=>ee.id===w)){if(this._spritesImagesIds[w])for(let ee of this._spritesImagesIds[w])this.imageManager.removeImage(ee),this._changedImages[ee]=!0;B.splice(B.findIndex(ee=>ee.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,B={},ee){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,ee):(this._unloadSprite(),ee&&ee(null)))}}var Vs=a.Y([{name:"a_pos",type:"Int16",components:2}]);let As={prelude:wt(`#ifdef GL_ES +precision mediump float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +`,`#ifdef GL_ES +precision highp float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 +);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} +#ifdef TERRAIN3D +uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; +#endif +const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { +#ifdef TERRAIN3D +highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); +#else +return 1.0; +#endif +}float calculate_visibility(vec4 pos) { +#ifdef TERRAIN3D +vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; +#else +return 1.0; +#endif +}float ele(vec2 pos) { +#ifdef TERRAIN3D +vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; +#else +return 0.0; +#endif +}float get_elevation(vec2 pos) { +#ifdef TERRAIN3D +vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; +#else +return 0.0; +#endif +}`),background:wt(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:wt(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:wt(`varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main(void) { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:wt("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:wt(`uniform highp float u_intensity;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#define GAUSS_COEF 0.3989422804014327 +void main() { +#pragma mapbox: initialize highp float weight +float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#pragma mapbox: define mediump float radius +const highp float ZERO=1.0/255.0/16.0; +#define GAUSS_COEF 0.3989422804014327 +void main(void) { +#pragma mapbox: initialize highp float weight +#pragma mapbox: initialize mediump float radius +vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:wt(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(0.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:wt("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:wt("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:wt("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:wt(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:wt(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:wt(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:wt(`#ifdef GL_ES +precision highp float; +#endif +uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:wt(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:wt(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:wt(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:wt(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:wt(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),lineGradient:wt(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),linePattern:wt(`#ifdef GL_ES +precision highp float; +#endif +uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:wt(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:wt(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:wt(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:wt(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:wt(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:wt("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:wt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:wt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:wt("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function wt(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ee=w.match(/attribute ([\w]+) ([\w]+)/g),te=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),se=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Fe=se?se.concat(te):te,Ue={};return{fragmentSource:ue=ue.replace(B,(tt,mt,Bt,Ut,fr)=>(Ue[fr]=!0,mt==="define"?` +#ifndef HAS_UNIFORM_u_${fr} +varying ${Bt} ${Ut} ${fr}; +#else +uniform ${Bt} ${Ut} u_${fr}; +#endif +`:` +#ifdef HAS_UNIFORM_u_${fr} + ${Bt} ${Ut} ${fr} = u_${fr}; +#endif +`)),vertexSource:w=w.replace(B,(tt,mt,Bt,Ut,fr)=>{let Ar=Ut==="float"?"vec2":"vec4",de=fr.match(/color/)?"color":Ar;return Ue[fr]?mt==="define"?` +#ifndef HAS_UNIFORM_u_${fr} +uniform lowp float u_${fr}_t; +attribute ${Bt} ${Ar} a_${fr}; +varying ${Bt} ${Ut} ${fr}; +#else +uniform ${Bt} ${Ut} u_${fr}; +#endif +`:de==="vec4"?` +#ifndef HAS_UNIFORM_u_${fr} + ${fr} = a_${fr}; +#else + ${Bt} ${Ut} ${fr} = u_${fr}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${fr} + ${fr} = unpack_mix_${de}(a_${fr}, u_${fr}_t); +#else + ${Bt} ${Ut} ${fr} = u_${fr}; +#endif +`:mt==="define"?` +#ifndef HAS_UNIFORM_u_${fr} +uniform lowp float u_${fr}_t; +attribute ${Bt} ${Ar} a_${fr}; +#else +uniform ${Bt} ${Ut} u_${fr}; +#endif +`:de==="vec4"?` +#ifndef HAS_UNIFORM_u_${fr} + ${Bt} ${Ut} ${fr} = a_${fr}; +#else + ${Bt} ${Ut} ${fr} = u_${fr}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${fr} + ${Bt} ${Ut} ${fr} = unpack_mix_${de}(a_${fr}, u_${fr}_t); +#else + ${Bt} ${Ut} ${fr} = u_${fr}; +#endif +`}),staticAttributes:ee,staticUniforms:Fe}}class Lr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,B,ee,te,se,Fe,Ue,tt,mt){this.context=w;let Bt=this.boundPaintVertexBuffers.length!==te.length;for(let Ut=0;!Bt&&Ut({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:ee?ee.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:ee?ee.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:ee?ee.calculateFogBlendOpacity(te):0,u_horizon_color:ee?ee.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:ee?ee.properties.get("horizon-fog-blend"):1});function Xr(ue){let w=[];for(let B=0;B({u_depth:new a.aH(Dt,Ht.u_depth),u_terrain:new a.aH(Dt,Ht.u_terrain),u_terrain_dim:new a.aI(Dt,Ht.u_terrain_dim),u_terrain_matrix:new a.aJ(Dt,Ht.u_terrain_matrix),u_terrain_unpack:new a.aK(Dt,Ht.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Dt,Ht.u_terrain_exaggeration)}))(w,Et),this.binderUniforms=ee?ee.getUniforms(w,Et):[]}draw(w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar,de,Te,Pe,qe,We){let Ne=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(ee),w.setStencilMode(te),w.setColorMode(se),w.setCullFace(Fe),tt){w.activeTexture.set(Ne.TEXTURE2),Ne.bindTexture(Ne.TEXTURE_2D,tt.depthTexture),w.activeTexture.set(Ne.TEXTURE3),Ne.bindTexture(Ne.TEXTURE_2D,tt.texture);for(let Et in this.terrainUniforms)this.terrainUniforms[Et].set(tt[Et])}for(let Et in this.fixedUniforms)this.fixedUniforms[Et].set(Ue[Et]);Te&&Te.setUniforms(w,this.binderUniforms,Ar,{zoom:de});let $e=0;switch(B){case Ne.LINES:$e=2;break;case Ne.TRIANGLES:$e=3;break;case Ne.LINE_STRIP:$e=1}for(let Et of fr.get()){let Dt=Et.vaos||(Et.vaos={});(Dt[mt]||(Dt[mt]=new Lr)).bind(w,this,Bt,Te?Te.getPaintVertexBuffers():[],Ut,Et.vertexOffset,Pe,qe,We),Ne.drawElements(B,Et.primitiveLength*$e,Ne.UNSIGNED_SHORT,Et.primitiveOffset*$e*2)}}}function ai(ue,w,B){let ee=1/an(B,1,w.transform.tileZoom),te=Math.pow(2,B.tileID.overscaledZ),se=B.tileSize*Math.pow(2,w.transform.tileZoom)/te,Fe=se*(B.tileID.canonical.x+B.tileID.wrap*te),Ue=se*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[ee,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[Fe>>16,Ue>>16],u_pixel_coord_lower:[65535&Fe,65535&Ue]}}let Wi=(ue,w,B,ee)=>{let te=w.style.light,se=te.properties.get("position"),Fe=[se.x,se.y,se.z],Ue=function(){var mt=new a.A(9);return a.A!=Float32Array&&(mt[1]=0,mt[2]=0,mt[3]=0,mt[5]=0,mt[6]=0,mt[7]=0),mt[0]=1,mt[4]=1,mt[8]=1,mt}();te.properties.get("anchor")==="viewport"&&function(mt,Bt){var Ut=Math.sin(Bt),fr=Math.cos(Bt);mt[0]=fr,mt[1]=Ut,mt[2]=0,mt[3]=-Ut,mt[4]=fr,mt[5]=0,mt[6]=0,mt[7]=0,mt[8]=1}(Ue,-w.transform.angle),function(mt,Bt,Ut){var fr=Bt[0],Ar=Bt[1],de=Bt[2];mt[0]=fr*Ut[0]+Ar*Ut[3]+de*Ut[6],mt[1]=fr*Ut[1]+Ar*Ut[4]+de*Ut[7],mt[2]=fr*Ut[2]+Ar*Ut[5]+de*Ut[8]}(Fe,Fe,Ue);let tt=te.properties.get("color");return{u_matrix:ue,u_lightpos:Fe,u_lightintensity:te.properties.get("intensity"),u_lightcolor:[tt.r,tt.g,tt.b],u_vertical_gradient:+B,u_opacity:ee}},ii=(ue,w,B,ee,te,se,Fe)=>a.e(Wi(ue,w,B,ee),ai(se,w,Fe),{u_height_factor:-Math.pow(2,te.overscaledZ)/Fe.tileSize/8}),Ui=ue=>({u_matrix:ue}),Vn=(ue,w,B,ee)=>a.e(Ui(ue),ai(B,w,ee)),Tn=(ue,w)=>({u_matrix:ue,u_world:w}),xa=(ue,w,B,ee,te)=>a.e(Vn(ue,w,B,ee),{u_world:te}),fo=(ue,w,B,ee)=>{let te=ue.transform,se,Fe;if(ee.paint.get("circle-pitch-alignment")==="map"){let Ue=an(B,1,te.zoom);se=!0,Fe=[Ue,Ue]}else se=!1,Fe=te.pixelsToGLUnits;return{u_camera_to_center_distance:te.cameraToCenterDistance,u_scale_with_map:+(ee.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,ee.paint.get("circle-translate"),ee.paint.get("circle-translate-anchor")),u_pitch_with_map:+se,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:Fe}},zo=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),lo=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),To=ue=>({u_matrix:ue}),mo=(ue,w,B,ee)=>({u_matrix:ue,u_extrude_scale:an(w,1,B),u_intensity:ee}),Ds=(ue,w,B,ee)=>{let te=a.H();a.aP(te,0,ue.width,ue.height,0,0,1);let se=ue.context.gl;return{u_matrix:te,u_world:[se.drawingBufferWidth,se.drawingBufferHeight],u_image:B,u_color_ramp:ee,u_opacity:w.paint.get("heatmap-opacity")}};function Es(ue,w){let B=Math.pow(2,w.canonical.z),ee=w.canonical.y;return[new a.Z(0,ee/B).toLngLat().lat,new a.Z(0,(ee+1)/B).toLngLat().lat]}let Zs=(ue,w,B,ee)=>{let te=ue.transform;return{u_matrix:ks(ue,w,B,ee),u_ratio:1/an(w,1,te.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/te.pixelsToGLUnits[0],1/te.pixelsToGLUnits[1]]}},Xs=(ue,w,B,ee,te)=>a.e(Zs(ue,w,B,te),{u_image:0,u_image_height:ee}),wl=(ue,w,B,ee,te)=>{let se=ue.transform,Fe=cl(w,se);return{u_matrix:ks(ue,w,B,te),u_texsize:w.imageAtlasTexture.size,u_ratio:1/an(w,1,se.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Fe,ee.fromScale,ee.toScale],u_fade:ee.t,u_units_to_pixels:[1/se.pixelsToGLUnits[0],1/se.pixelsToGLUnits[1]]}},is=(ue,w,B,ee,te,se)=>{let Fe=ue.lineAtlas,Ue=cl(w,ue.transform),tt=B.layout.get("line-cap")==="round",mt=Fe.getDash(ee.from,tt),Bt=Fe.getDash(ee.to,tt),Ut=mt.width*te.fromScale,fr=Bt.width*te.toScale;return a.e(Zs(ue,w,B,se),{u_patternscale_a:[Ue/Ut,-mt.height/2],u_patternscale_b:[Ue/fr,-Bt.height/2],u_sdfgamma:Fe.width/(256*Math.min(Ut,fr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:mt.y,u_tex_y_b:Bt.y,u_mix:te.t})};function cl(ue,w){return 1/an(ue,1,w.tileZoom)}function ks(ue,w,B,ee){return ue.translatePosMatrix(ee?ee.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let ml=(ue,w,B,ee,te)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:ee.mix,u_opacity:ee.opacity*te.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:te.paint.get("raster-brightness-min"),u_brightness_high:te.paint.get("raster-brightness-max"),u_saturation_factor:(Fe=te.paint.get("raster-saturation"),Fe>0?1-1/(1.001-Fe):-Fe),u_contrast_factor:(se=te.paint.get("raster-contrast"),se>0?1/(1-se):1+se),u_spin_weights:Ys(te.paint.get("raster-hue-rotate"))};var se,Fe};function Ys(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Hs=(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar)=>{let de=Fe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:de.cameraToCenterDistance,u_pitch:de.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:de.width/de.height,u_fade_change:Fe.options.fadeDuration?Fe.symbolFadeChange:1,u_matrix:Ue,u_label_plane_matrix:tt,u_coord_matrix:mt,u_is_text:+Ut,u_pitch_with_map:+ee,u_is_along_line:te,u_is_variable_anchor:se,u_texsize:fr,u_texture:0,u_translation:Bt,u_pitched_scale:Ar}},Ao=(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar,de)=>{let Te=Fe.transform;return a.e(Hs(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,de),{u_gamma_scale:ee?Math.cos(Te._pitch)*Te.cameraToCenterDistance:1,u_device_pixel_ratio:Fe.pixelRatio,u_is_halo:+Ar})},ls=(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,Ut,fr,Ar)=>a.e(Ao(ue,w,B,ee,te,se,Fe,Ue,tt,mt,Bt,!0,Ut,!0,Ar),{u_texsize_icon:fr,u_texture_icon:1}),Ql=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Hu=(ue,w,B,ee,te,se)=>a.e(function(Fe,Ue,tt,mt){let Bt=tt.imageManager.getPattern(Fe.from.toString()),Ut=tt.imageManager.getPattern(Fe.to.toString()),{width:fr,height:Ar}=tt.imageManager.getPixelSize(),de=Math.pow(2,mt.tileID.overscaledZ),Te=mt.tileSize*Math.pow(2,tt.transform.tileZoom)/de,Pe=Te*(mt.tileID.canonical.x+mt.tileID.wrap*de),qe=Te*mt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Bt.tl,u_pattern_br_a:Bt.br,u_pattern_tl_b:Ut.tl,u_pattern_br_b:Ut.br,u_texsize:[fr,Ar],u_mix:Ue.t,u_pattern_size_a:Bt.displaySize,u_pattern_size_b:Ut.displaySize,u_scale_a:Ue.fromScale,u_scale_b:Ue.toScale,u_tile_units_to_pixels:1/an(mt,1,tt.transform.tileZoom),u_pixel_coord_upper:[Pe>>16,qe>>16],u_pixel_coord_lower:[65535&Pe,65535&qe]}}(ee,se,B,te),{u_matrix:ue,u_opacity:w}),fc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class vs{constructor(w,B,ee){this.context=w;let te=w.gl;this.buffer=te.createBuffer(),this.dynamicDraw=!!ee,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),te.bufferData(te.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?te.DYNAMIC_DRAW:te.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let on={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class ua{constructor(w,B,ee,te){this.length=B.length,this.attributes=ee,this.itemSize=B.bytesPerElement,this.dynamicDraw=te,this.context=w;let se=w.gl;this.buffer=se.createBuffer(),w.bindVertexBuffer.set(this.buffer),se.bufferData(se.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?se.DYNAMIC_DRAW:se.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let ee=0;ee0){let Dt=a.H();a.aQ(Dt,Ne.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Dt,Dt,Ne.placementViewportMatrix),tt.push({circleArray:Et,circleOffset:Bt,transform:We.posMatrix,invTransform:Dt,coord:We}),mt+=Et.length/4,Bt=mt}$e&&Ue.draw(se,Fe.LINES,_o.disabled,Yo.disabled,ue.colorModeForRenderPass(),Xa.disabled,{u_matrix:We.posMatrix,u_pixel_extrude_scale:[1/(Ut=ue.transform).width,1/Ut.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(We),B.id,$e.layoutVertexBuffer,$e.indexBuffer,$e.segments,null,ue.transform.zoom,null,null,$e.collisionVertexBuffer)}var Ut;if(!te||!tt.length)return;let fr=ue.useProgram("collisionCircle"),Ar=new a.aR;Ar.resize(4*mt),Ar._trim();let de=0;for(let qe of tt)for(let We=0;We=0&&(qe[Ne.associatedIconIndex]={shiftedAnchor:Mn,angle:da})}else ni(Ne.numGlyphs,Te)}if(mt){Pe.clear();let We=ue.icon.placedSymbolArray;for(let Ne=0;Neue.style.map.terrain.getElevation(Fr,et,zt):null,bt=B.layout.get("text-rotation-alignment")==="map";Ze(vi,Fr.posMatrix,ue,te,Gl,cu,qe,mt,bt,Te,Fr.toUnwrapped(),de.width,de.height,el,Ve)}let zl=Fr.posMatrix,Fl=te&&tr||zc,W=We||Fl?uu:Gl,oe=Zu,Ae=en&&B.paint.get(te?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Oe;Oe=en?vi.iconsInText?ls(Mn.kind,Ua,Ne,qe,We,Fl,ue,zl,W,oe,el,Ha,ws,Dr):Ao(Mn.kind,Ua,Ne,qe,We,Fl,ue,zl,W,oe,el,te,Ha,!0,Dr):Hs(Mn.kind,Ua,Ne,qe,We,Fl,ue,zl,W,oe,el,te,Ha,Dr);let Be={program:Qn,buffers:Ii,uniformValues:Oe,atlasTexture:oo,atlasTextureIcon:vo,atlasInterpolation:Lo,atlasInterpolationIcon:Rs,isSDF:en,hasHalo:Ae};if(Et&&vi.canOverlap){Dt=!0;let Ve=Ii.segments.get();for(let bt of Ve)yr.push({segments:new a.a0([bt]),sortKey:bt.sortKey,state:Be,terrainData:xo})}else yr.push({segments:Ii.segments,sortKey:0,state:Be,terrainData:xo})}Dt&&yr.sort((Fr,Yr)=>Fr.sortKey-Yr.sortKey);for(let Fr of yr){let Yr=Fr.state;if(fr.activeTexture.set(Ar.TEXTURE0),Yr.atlasTexture.bind(Yr.atlasInterpolation,Ar.CLAMP_TO_EDGE),Yr.atlasTextureIcon&&(fr.activeTexture.set(Ar.TEXTURE1),Yr.atlasTextureIcon&&Yr.atlasTextureIcon.bind(Yr.atlasInterpolationIcon,Ar.CLAMP_TO_EDGE)),Yr.isSDF){let vi=Yr.uniformValues;Yr.hasHalo&&(vi.u_is_halo=1,Eh(Yr.buffers,Fr.segments,B,ue,Yr.program,Ht,Bt,Ut,vi,Fr.terrainData)),vi.u_is_halo=0}Eh(Yr.buffers,Fr.segments,B,ue,Yr.program,Ht,Bt,Ut,Yr.uniformValues,Fr.terrainData)}}function Eh(ue,w,B,ee,te,se,Fe,Ue,tt,mt){let Bt=ee.context;te.draw(Bt,Bt.gl.TRIANGLES,se,Fe,Ue,Xa.disabled,tt,mt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,ee.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function nh(ue,w,B,ee){let te=ue.context,se=te.gl,Fe=Yo.disabled,Ue=new Ls([se.ONE,se.ONE],a.aM.transparent,[!0,!0,!0,!0]),tt=w.getBucket(B);if(!tt)return;let mt=ee.key,Bt=B.heatmapFbos.get(mt);Bt||(Bt=kh(te,w.tileSize,w.tileSize),B.heatmapFbos.set(mt,Bt)),te.bindFramebuffer.set(Bt.framebuffer),te.viewport.set([0,0,w.tileSize,w.tileSize]),te.clear({color:a.aM.transparent});let Ut=tt.programConfigurations.get(B.id),fr=ue.useProgram("heatmap",Ut),Ar=ue.style.map.terrain.getTerrainData(ee);fr.draw(te,se.TRIANGLES,_o.disabled,Fe,Ue,Xa.disabled,mo(ee.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Ar,B.id,tt.layoutVertexBuffer,tt.indexBuffer,tt.segments,B.paint,ue.transform.zoom,Ut)}function hf(ue,w,B){let ee=ue.context,te=ee.gl;ee.setColorMode(ue.colorModeForRenderPass());let se=Kh(ee,w),Fe=B.key,Ue=w.heatmapFbos.get(Fe);Ue&&(ee.activeTexture.set(te.TEXTURE0),te.bindTexture(te.TEXTURE_2D,Ue.colorAttachment.get()),ee.activeTexture.set(te.TEXTURE1),se.bind(te.LINEAR,te.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(ee,te.TRIANGLES,_o.disabled,Yo.disabled,ue.colorModeForRenderPass(),Xa.disabled,Ds(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Ue.destroy(),w.heatmapFbos.delete(Fe))}function kh(ue,w,B){var ee,te;let se=ue.gl,Fe=se.createTexture();se.bindTexture(se.TEXTURE_2D,Fe),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_WRAP_S,se.CLAMP_TO_EDGE),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_WRAP_T,se.CLAMP_TO_EDGE),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_MIN_FILTER,se.LINEAR),se.texParameteri(se.TEXTURE_2D,se.TEXTURE_MAG_FILTER,se.LINEAR);let Ue=(ee=ue.HALF_FLOAT)!==null&&ee!==void 0?ee:se.UNSIGNED_BYTE,tt=(te=ue.RGBA16F)!==null&&te!==void 0?te:se.RGBA;se.texImage2D(se.TEXTURE_2D,0,tt,w,B,0,se.RGBA,Ue,null);let mt=ue.createFramebuffer(w,B,!1,!1);return mt.colorAttachment.set(Fe),mt}function Kh(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function rc(ue,w,B,ee,te){if(!B||!ee||!ee.imageAtlas)return;let se=ee.imageAtlas.patternPositions,Fe=se[B.to.toString()],Ue=se[B.from.toString()];if(!Fe&&Ue&&(Fe=Ue),!Ue&&Fe&&(Ue=Fe),!Fe||!Ue){let tt=te.getPaintProperty(w);Fe=se[tt],Ue=se[tt]}Fe&&Ue&&ue.setConstantPatternPositions(Fe,Ue)}function ah(ue,w,B,ee,te,se,Fe){let Ue=ue.context.gl,tt="fill-pattern",mt=B.paint.get(tt),Bt=mt&&mt.constantOr(1),Ut=B.getCrossfadeParameters(),fr,Ar,de,Te,Pe;Fe?(Ar=Bt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",fr=Ue.LINES):(Ar=Bt?"fillPattern":"fill",fr=Ue.TRIANGLES);let qe=mt.constantOr(null);for(let We of ee){let Ne=w.getTile(We);if(Bt&&!Ne.patternsLoaded())continue;let $e=Ne.getBucket(B);if(!$e)continue;let Et=$e.programConfigurations.get(B.id),Dt=ue.useProgram(Ar,Et),Ht=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(We);Bt&&(ue.context.activeTexture.set(Ue.TEXTURE0),Ne.imageAtlasTexture.bind(Ue.LINEAR,Ue.CLAMP_TO_EDGE),Et.updatePaintBuffers(Ut)),rc(Et,tt,qe,Ne,B);let tr=Ht?We:null,yr=ue.translatePosMatrix(tr?tr.posMatrix:We.posMatrix,Ne,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(Fe){Te=$e.indexBuffer2,Pe=$e.segments2;let Dr=[Ue.drawingBufferWidth,Ue.drawingBufferHeight];de=Ar==="fillOutlinePattern"&&Bt?xa(yr,ue,Ut,Ne,Dr):Tn(yr,Dr)}else Te=$e.indexBuffer,Pe=$e.segments,de=Bt?Vn(yr,ue,Ut,Ne):Ui(yr);Dt.draw(ue.context,fr,te,ue.stencilModeForClipping(We),se,Xa.disabled,de,Ht,B.id,$e.layoutVertexBuffer,Te,Pe,B.paint,ue.transform.zoom,Et)}}function Wc(ue,w,B,ee,te,se,Fe){let Ue=ue.context,tt=Ue.gl,mt="fill-extrusion-pattern",Bt=B.paint.get(mt),Ut=Bt.constantOr(1),fr=B.getCrossfadeParameters(),Ar=B.paint.get("fill-extrusion-opacity"),de=Bt.constantOr(null);for(let Te of ee){let Pe=w.getTile(Te),qe=Pe.getBucket(B);if(!qe)continue;let We=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Te),Ne=qe.programConfigurations.get(B.id),$e=ue.useProgram(Ut?"fillExtrusionPattern":"fillExtrusion",Ne);Ut&&(ue.context.activeTexture.set(tt.TEXTURE0),Pe.imageAtlasTexture.bind(tt.LINEAR,tt.CLAMP_TO_EDGE),Ne.updatePaintBuffers(fr)),rc(Ne,mt,de,Pe,B);let Et=ue.translatePosMatrix(Te.posMatrix,Pe,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Dt=B.paint.get("fill-extrusion-vertical-gradient"),Ht=Ut?ii(Et,ue,Dt,Ar,Te,fr,Pe):Wi(Et,ue,Dt,Ar);$e.draw(Ue,Ue.gl.TRIANGLES,te,se,Fe,Xa.backCCW,Ht,We,B.id,qe.layoutVertexBuffer,qe.indexBuffer,qe.segments,B.paint,ue.transform.zoom,Ne,ue.style.map.terrain&&qe.centroidVertexBuffer)}}function df(ue,w,B,ee,te,se,Fe){let Ue=ue.context,tt=Ue.gl,mt=B.fbo;if(!mt)return;let Bt=ue.useProgram("hillshade"),Ut=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Ue.activeTexture.set(tt.TEXTURE0),tt.bindTexture(tt.TEXTURE_2D,mt.colorAttachment.get()),Bt.draw(Ue,tt.TRIANGLES,te,se,Fe,Xa.disabled,((fr,Ar,de,Te)=>{let Pe=de.paint.get("hillshade-shadow-color"),qe=de.paint.get("hillshade-highlight-color"),We=de.paint.get("hillshade-accent-color"),Ne=de.paint.get("hillshade-illumination-direction")*(Math.PI/180);de.paint.get("hillshade-illumination-anchor")==="viewport"&&(Ne-=fr.transform.angle);let $e=!fr.options.moving;return{u_matrix:Te?Te.posMatrix:fr.transform.calculatePosMatrix(Ar.tileID.toUnwrapped(),$e),u_image:0,u_latrange:Es(0,Ar.tileID),u_light:[de.paint.get("hillshade-exaggeration"),Ne],u_shadow:Pe,u_highlight:qe,u_accent:We}})(ue,B,ee,Ut?w:null),Ut,ee.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Cu(ue,w,B,ee,te,se){let Fe=ue.context,Ue=Fe.gl,tt=w.dem;if(tt&&tt.data){let mt=tt.dim,Bt=tt.stride,Ut=tt.getPixels();if(Fe.activeTexture.set(Ue.TEXTURE1),Fe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Bt),w.demTexture){let Ar=w.demTexture;Ar.update(Ut,{premultiply:!1}),Ar.bind(Ue.NEAREST,Ue.CLAMP_TO_EDGE)}else w.demTexture=new g(Fe,Ut,Ue.RGBA,{premultiply:!1}),w.demTexture.bind(Ue.NEAREST,Ue.CLAMP_TO_EDGE);Fe.activeTexture.set(Ue.TEXTURE0);let fr=w.fbo;if(!fr){let Ar=new g(Fe,{width:mt,height:mt,data:null},Ue.RGBA);Ar.bind(Ue.LINEAR,Ue.CLAMP_TO_EDGE),fr=w.fbo=Fe.createFramebuffer(mt,mt,!0,!1),fr.colorAttachment.set(Ar.texture)}Fe.bindFramebuffer.set(fr.framebuffer),Fe.viewport.set([0,0,mt,mt]),ue.useProgram("hillshadePrepare").draw(Fe,Ue.TRIANGLES,ee,te,se,Xa.disabled,((Ar,de)=>{let Te=de.stride,Pe=a.H();return a.aP(Pe,0,a.X,-a.X,0,0,1),a.J(Pe,Pe,[0,-a.X,0]),{u_matrix:Pe,u_image:1,u_dimension:[Te,Te],u_zoom:Ar.overscaledZ,u_unpack:de.getUnpackVector()}})(w.tileID,tt),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Nf(ue,w,B,ee,te,se){let Fe=ee.paint.get("raster-fade-duration");if(!se&&Fe>0){let Ue=u.now(),tt=(Ue-ue.timeAdded)/Fe,mt=w?(Ue-w.timeAdded)/Fe:-1,Bt=B.getSource(),Ut=te.coveringZoomLevel({tileSize:Bt.tileSize,roundZoom:Bt.roundZoom}),fr=!w||Math.abs(w.tileID.overscaledZ-Ut)>Math.abs(ue.tileID.overscaledZ-Ut),Ar=fr&&ue.refreshedUponExpiration?1:a.ac(fr?tt:1-mt,0,1);return ue.refreshedUponExpiration&&tt>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ar}:{opacity:Ar,mix:0}}return{opacity:1,mix:0}}let Zc=new a.aM(1,0,0,1),cs=new a.aM(0,1,0,1),Ch=new a.aM(0,0,1,1),Bd=new a.aM(1,0,1,1),Jh=new a.aM(0,1,1,1);function Cf(ue,w,B,ee){Lu(ue,0,w+B/2,ue.transform.width,B,ee)}function pd(ue,w,B,ee){Lu(ue,w-B/2,0,B,ue.transform.height,ee)}function Lu(ue,w,B,ee,te,se){let Fe=ue.context,Ue=Fe.gl;Ue.enable(Ue.SCISSOR_TEST),Ue.scissor(w*ue.pixelRatio,B*ue.pixelRatio,ee*ue.pixelRatio,te*ue.pixelRatio),Fe.clear({color:se}),Ue.disable(Ue.SCISSOR_TEST)}function $h(ue,w,B){let ee=ue.context,te=ee.gl,se=B.posMatrix,Fe=ue.useProgram("debug"),Ue=_o.disabled,tt=Yo.disabled,mt=ue.colorModeForRenderPass(),Bt="$debug",Ut=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);ee.activeTexture.set(te.TEXTURE0);let fr=w.getTileByID(B.key).latestRawTileData,Ar=Math.floor((fr&&fr.byteLength||0)/1024),de=w.getTile(B).tileSize,Te=512/Math.min(de,512)*(B.overscaledZ/ue.transform.zoom)*.5,Pe=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Pe+=` => ${B.overscaledZ}`),function(qe,We){qe.initDebugOverlayCanvas();let Ne=qe.debugOverlayCanvas,$e=qe.context.gl,Et=qe.debugOverlayCanvas.getContext("2d");Et.clearRect(0,0,Ne.width,Ne.height),Et.shadowColor="white",Et.shadowBlur=2,Et.lineWidth=1.5,Et.strokeStyle="white",Et.textBaseline="top",Et.font="bold 36px Open Sans, sans-serif",Et.fillText(We,5,5),Et.strokeText(We,5,5),qe.debugOverlayTexture.update(Ne),qe.debugOverlayTexture.bind($e.LINEAR,$e.CLAMP_TO_EDGE)}(ue,`${Pe} ${Ar}kB`),Fe.draw(ee,te.TRIANGLES,Ue,tt,Ls.alphaBlended,Xa.disabled,lo(se,a.aM.transparent,Te),null,Bt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Fe.draw(ee,te.LINE_STRIP,Ue,tt,mt,Xa.disabled,lo(se,a.aM.red),Ut,Bt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function tu(ue,w,B){let ee=ue.context,te=ee.gl,se=ue.colorModeForRenderPass(),Fe=new _o(te.LEQUAL,_o.ReadWrite,ue.depthRangeFor3D),Ue=ue.useProgram("terrain"),tt=w.getTerrainMesh();ee.bindFramebuffer.set(null),ee.viewport.set([0,0,ue.width,ue.height]);for(let mt of B){let Bt=ue.renderToTexture.getTexture(mt),Ut=w.getTerrainData(mt.tileID);ee.activeTexture.set(te.TEXTURE0),te.bindTexture(te.TEXTURE_2D,Bt.texture);let fr=ue.transform.calculatePosMatrix(mt.tileID.toUnwrapped()),Ar=w.getMeshFrameDelta(ue.transform.zoom),de=ue.transform.calculateFogMatrix(mt.tileID.toUnwrapped()),Te=Pr(fr,Ar,de,ue.style.sky,ue.transform.pitch);Ue.draw(ee,te.TRIANGLES,Fe,Yo.disabled,se,Xa.backCCW,Te,Ut,"terrain",tt.vertexBuffer,tt.indexBuffer,tt.segments)}}class Pu{constructor(w,B,ee){this.vertexBuffer=w,this.indexBuffer=B,this.segments=ee}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Lc{constructor(w,B){this.context=new ov(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ft.maxUnderzooming+ft.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vo}resize(w,B,ee){if(this.width=Math.floor(w*ee),this.height=Math.floor(B*ee),this.pixelRatio=ee,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let te of this.style._order)this.style._layers[te].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,Vs.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let ee=new a.aX;ee.emplaceBack(0,0),ee.emplaceBack(a.X,0),ee.emplaceBack(0,a.X),ee.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(ee,Vs.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let te=new a.$;te.emplaceBack(0,0,0,0),te.emplaceBack(a.X,0,a.X,0),te.emplaceBack(0,a.X,0,a.X),te.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(te,ot.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let se=new a.aX;se.emplaceBack(0,0),se.emplaceBack(1,0),se.emplaceBack(0,1),se.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(se,Vs.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Fe=new a.aZ;Fe.emplaceBack(0),Fe.emplaceBack(1),Fe.emplaceBack(3),Fe.emplaceBack(2),Fe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Fe);let Ue=new a.aY;Ue.emplaceBack(0,1,2),Ue.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Ue);let tt=this.context.gl;this.stencilClearMode=new Yo({func:tt.ALWAYS,mask:0},0,255,tt.ZERO,tt.ZERO,tt.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let ee=a.H();a.aP(ee,0,this.width,this.height,0,0,1),a.K(ee,ee,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,_o.disabled,this.stencilClearMode,Ls.disabled,Xa.disabled,To(ee),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let ee=this.context,te=ee.gl;this.nextStencilID+B.length>256&&this.clearStencil(),ee.setColorMode(Ls.disabled),ee.setDepthMode(_o.disabled);let se=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Fe of B){let Ue=this._tileClippingMaskIDs[Fe.key]=this.nextStencilID++,tt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Fe);se.draw(ee,te.TRIANGLES,_o.disabled,new Yo({func:te.ALWAYS,mask:0},Ue,255,te.KEEP,te.KEEP,te.REPLACE),Ls.disabled,Xa.disabled,To(Fe.posMatrix),tt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,ee=w.sort((Fe,Ue)=>Ue.overscaledZ-Fe.overscaledZ),te=ee[ee.length-1].overscaledZ,se=ee[0].overscaledZ-te+1;if(se>1){this.currentStencilSource=void 0,this.nextStencilID+se>256&&this.clearStencil();let Fe={};for(let Ue=0;Ue({u_sky_color:qe.properties.get("sky-color"),u_horizon_color:qe.properties.get("horizon-color"),u_horizon:(We.height/2+We.getHorizon())*Ne,u_sky_horizon_blend:qe.properties.get("sky-horizon-blend")*We.height/2*Ne}))(mt,tt.style.map.transform,tt.pixelRatio),Ar=new _o(Ut.LEQUAL,_o.ReadWrite,[0,1]),de=Yo.disabled,Te=tt.colorModeForRenderPass(),Pe=tt.useProgram("sky");if(!mt.mesh){let qe=new a.aX;qe.emplaceBack(-1,-1),qe.emplaceBack(1,-1),qe.emplaceBack(1,1),qe.emplaceBack(-1,1);let We=new a.aY;We.emplaceBack(0,1,2),We.emplaceBack(0,2,3),mt.mesh=new Pu(Bt.createVertexBuffer(qe,Vs.members),Bt.createIndexBuffer(We),a.a0.simpleSegment(0,0,qe.length,We.length))}Pe.draw(Bt,Ut.TRIANGLES,Ar,de,Te,Xa.disabled,fr,void 0,"sky",mt.mesh.vertexBuffer,mt.mesh.indexBuffer,mt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=ee.length-1;this.currentLayer>=0;this.currentLayer--){let tt=this.style._layers[ee[this.currentLayer]],mt=te[tt.source],Bt=se[tt.source];this._renderTileClippingMasks(tt,Bt),this.renderLayer(this,mt,tt,Bt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerPe.source&&!Pe.isHidden(Bt)?[mt.sourceCaches[Pe.source]]:[]),Ar=fr.filter(Pe=>Pe.getSource().type==="vector"),de=fr.filter(Pe=>Pe.getSource().type!=="vector"),Te=Pe=>{(!Ut||Ut.getSource().maxzoomTe(Pe)),Ut||de.forEach(Pe=>Te(Pe)),Ut}(this.style,this.transform.zoom);tt&&function(mt,Bt,Ut){for(let fr=0;fr0),te&&(a.b0(B,ee),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(se,Fe){let Ue=se.context,tt=Ue.gl,mt=Ls.unblended,Bt=new _o(tt.LEQUAL,_o.ReadWrite,[0,1]),Ut=Fe.getTerrainMesh(),fr=Fe.sourceCache.getRenderableTiles(),Ar=se.useProgram("terrainDepth");Ue.bindFramebuffer.set(Fe.getFramebuffer("depth").framebuffer),Ue.viewport.set([0,0,se.width/devicePixelRatio,se.height/devicePixelRatio]),Ue.clear({color:a.aM.transparent,depth:1});for(let de of fr){let Te=Fe.getTerrainData(de.tileID),Pe={u_matrix:se.transform.calculatePosMatrix(de.tileID.toUnwrapped()),u_ele_delta:Fe.getMeshFrameDelta(se.transform.zoom)};Ar.draw(Ue,tt.TRIANGLES,Bt,Yo.disabled,mt,Xa.backCCW,Pe,Te,"terrain",Ut.vertexBuffer,Ut.indexBuffer,Ut.segments)}Ue.bindFramebuffer.set(null),Ue.viewport.set([0,0,se.width,se.height])}(this,this.style.map.terrain),function(se,Fe){let Ue=se.context,tt=Ue.gl,mt=Ls.unblended,Bt=new _o(tt.LEQUAL,_o.ReadWrite,[0,1]),Ut=Fe.getTerrainMesh(),fr=Fe.getCoordsTexture(),Ar=Fe.sourceCache.getRenderableTiles(),de=se.useProgram("terrainCoords");Ue.bindFramebuffer.set(Fe.getFramebuffer("coords").framebuffer),Ue.viewport.set([0,0,se.width/devicePixelRatio,se.height/devicePixelRatio]),Ue.clear({color:a.aM.transparent,depth:1}),Fe.coordsIndex=[];for(let Te of Ar){let Pe=Fe.getTerrainData(Te.tileID);Ue.activeTexture.set(tt.TEXTURE0),tt.bindTexture(tt.TEXTURE_2D,fr.texture);let qe={u_matrix:se.transform.calculatePosMatrix(Te.tileID.toUnwrapped()),u_terrain_coords_id:(255-Fe.coordsIndex.length)/255,u_texture:0,u_ele_delta:Fe.getMeshFrameDelta(se.transform.zoom)};de.draw(Ue,tt.TRIANGLES,Bt,Yo.disabled,mt,Xa.backCCW,qe,Pe,"terrain",Ut.vertexBuffer,Ut.indexBuffer,Ut.segments),Fe.coordsIndex.push(Te.tileID.key)}Ue.bindFramebuffer.set(null),Ue.viewport.set([0,0,se.width,se.height])}(this,this.style.map.terrain))}renderLayer(w,B,ee,te){if(!ee.isHidden(this.transform.zoom)&&(ee.type==="background"||ee.type==="custom"||(te||[]).length))switch(this.id=ee.id,ee.type){case"symbol":(function(se,Fe,Ue,tt,mt){if(se.renderPass!=="translucent")return;let Bt=Yo.disabled,Ut=se.colorModeForRenderPass();(Ue._unevaluatedLayout.hasValue("text-variable-anchor")||Ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(fr,Ar,de,Te,Pe,qe,We,Ne,$e){let Et=Ar.transform,Dt=ji(),Ht=Pe==="map",tr=qe==="map";for(let yr of fr){let Dr=Te.getTile(yr),Fr=Dr.getBucket(de);if(!Fr||!Fr.text||!Fr.text.segments.get().length)continue;let Yr=a.ag(Fr.textSizeData,Et.zoom),vi=an(Dr,1,Ar.transform.zoom),Ii=Br(yr.posMatrix,tr,Ht,Ar.transform,vi),Pi=de.layout.get("icon-text-fit")!=="none"&&Fr.hasIconData();if(Yr){let en=Math.pow(2,Et.zoom-Dr.tileID.overscaledZ),Mn=Ar.style.map.terrain?(Qn,Ua)=>Ar.style.map.terrain.getElevation(yr,Qn,Ua):null,da=Dt.translatePosition(Et,Dr,We,Ne);kf(Fr,Ht,tr,$e,Et,Ii,yr.posMatrix,en,Yr,Pi,Dt,da,yr.toUnwrapped(),Mn)}}}(tt,se,Ue,Fe,Ue.layout.get("text-rotation-alignment"),Ue.layout.get("text-pitch-alignment"),Ue.paint.get("text-translate"),Ue.paint.get("text-translate-anchor"),mt),Ue.paint.get("icon-opacity").constantOr(1)!==0&&Yh(se,Fe,Ue,tt,!1,Ue.paint.get("icon-translate"),Ue.paint.get("icon-translate-anchor"),Ue.layout.get("icon-rotation-alignment"),Ue.layout.get("icon-pitch-alignment"),Ue.layout.get("icon-keep-upright"),Bt,Ut),Ue.paint.get("text-opacity").constantOr(1)!==0&&Yh(se,Fe,Ue,tt,!0,Ue.paint.get("text-translate"),Ue.paint.get("text-translate-anchor"),Ue.layout.get("text-rotation-alignment"),Ue.layout.get("text-pitch-alignment"),Ue.layout.get("text-keep-upright"),Bt,Ut),Fe.map.showCollisionBoxes&&(tc(se,Fe,Ue,tt,!0),tc(se,Fe,Ue,tt,!1))})(w,B,ee,te,this.style.placement.variableOffsets);break;case"circle":(function(se,Fe,Ue,tt){if(se.renderPass!=="translucent")return;let mt=Ue.paint.get("circle-opacity"),Bt=Ue.paint.get("circle-stroke-width"),Ut=Ue.paint.get("circle-stroke-opacity"),fr=!Ue.layout.get("circle-sort-key").isConstant();if(mt.constantOr(1)===0&&(Bt.constantOr(1)===0||Ut.constantOr(1)===0))return;let Ar=se.context,de=Ar.gl,Te=se.depthModeForSublayer(0,_o.ReadOnly),Pe=Yo.disabled,qe=se.colorModeForRenderPass(),We=[];for(let Ne=0;NeNe.sortKey-$e.sortKey);for(let Ne of We){let{programConfiguration:$e,program:Et,layoutVertexBuffer:Dt,indexBuffer:Ht,uniformValues:tr,terrainData:yr}=Ne.state;Et.draw(Ar,de.TRIANGLES,Te,Pe,qe,Xa.disabled,tr,yr,Ue.id,Dt,Ht,Ne.segments,Ue.paint,se.transform.zoom,$e)}})(w,B,ee,te);break;case"heatmap":(function(se,Fe,Ue,tt){if(Ue.paint.get("heatmap-opacity")===0)return;let mt=se.context;if(se.style.map.terrain){for(let Bt of tt){let Ut=Fe.getTile(Bt);Fe.hasRenderableParent(Bt)||(se.renderPass==="offscreen"?nh(se,Ut,Ue,Bt):se.renderPass==="translucent"&&hf(se,Ue,Bt))}mt.viewport.set([0,0,se.width,se.height])}else se.renderPass==="offscreen"?function(Bt,Ut,fr,Ar){let de=Bt.context,Te=de.gl,Pe=Yo.disabled,qe=new Ls([Te.ONE,Te.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(We,Ne,$e){let Et=We.gl;We.activeTexture.set(Et.TEXTURE1),We.viewport.set([0,0,Ne.width/4,Ne.height/4]);let Dt=$e.heatmapFbos.get(a.aU);Dt?(Et.bindTexture(Et.TEXTURE_2D,Dt.colorAttachment.get()),We.bindFramebuffer.set(Dt.framebuffer)):(Dt=kh(We,Ne.width/4,Ne.height/4),$e.heatmapFbos.set(a.aU,Dt))})(de,Bt,fr),de.clear({color:a.aM.transparent});for(let We=0;We20&&Bt.texParameterf(Bt.TEXTURE_2D,mt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,mt.extTextureFilterAnisotropicMax);let Fr=se.style.map.terrain&&se.style.map.terrain.getTerrainData(We),Yr=Fr?We:null,vi=Yr?Yr.posMatrix:se.transform.calculatePosMatrix(We.toUnwrapped(),qe),Ii=ml(vi,yr||[0,0],tr||1,Ht,Ue);Ut instanceof Ft?fr.draw(mt,Bt.TRIANGLES,Ne,Yo.disabled,Ar,Xa.disabled,Ii,Fr,Ue.id,Ut.boundsBuffer,se.quadTriangleIndexBuffer,Ut.boundsSegments):fr.draw(mt,Bt.TRIANGLES,Ne,de[We.overscaledZ],Ar,Xa.disabled,Ii,Fr,Ue.id,se.rasterBoundsBuffer,se.quadTriangleIndexBuffer,se.rasterBoundsSegments)}})(w,B,ee,te);break;case"background":(function(se,Fe,Ue,tt){let mt=Ue.paint.get("background-color"),Bt=Ue.paint.get("background-opacity");if(Bt===0)return;let Ut=se.context,fr=Ut.gl,Ar=se.transform,de=Ar.tileSize,Te=Ue.paint.get("background-pattern");if(se.isPatternMissing(Te))return;let Pe=!Te&&mt.a===1&&Bt===1&&se.opaquePassEnabledForLayer()?"opaque":"translucent";if(se.renderPass!==Pe)return;let qe=Yo.disabled,We=se.depthModeForSublayer(0,Pe==="opaque"?_o.ReadWrite:_o.ReadOnly),Ne=se.colorModeForRenderPass(),$e=se.useProgram(Te?"backgroundPattern":"background"),Et=tt||Ar.coveringTiles({tileSize:de,terrain:se.style.map.terrain});Te&&(Ut.activeTexture.set(fr.TEXTURE0),se.imageManager.bind(se.context));let Dt=Ue.getCrossfadeParameters();for(let Ht of Et){let tr=tt?Ht.posMatrix:se.transform.calculatePosMatrix(Ht.toUnwrapped()),yr=Te?Hu(tr,Bt,se,Te,{tileID:Ht,tileSize:de},Dt):Ql(tr,Bt,mt),Dr=se.style.map.terrain&&se.style.map.terrain.getTerrainData(Ht);$e.draw(Ut,fr.TRIANGLES,We,qe,Ne,Xa.disabled,yr,Dr,Ue.id,se.tileExtentBuffer,se.quadTriangleIndexBuffer,se.tileExtentSegments)}})(w,0,ee,te);break;case"custom":(function(se,Fe,Ue){let tt=se.context,mt=Ue.implementation;if(se.renderPass==="offscreen"){let Bt=mt.prerender;Bt&&(se.setCustomLayerDefaults(),tt.setColorMode(se.colorModeForRenderPass()),Bt.call(mt,tt.gl,se.transform.customLayerMatrix()),tt.setDirty(),se.setBaseState())}else if(se.renderPass==="translucent"){se.setCustomLayerDefaults(),tt.setColorMode(se.colorModeForRenderPass()),tt.setStencilMode(Yo.disabled);let Bt=mt.renderingMode==="3d"?new _o(se.context.gl.LEQUAL,_o.ReadWrite,se.depthRangeFor3D):se.depthModeForSublayer(0,_o.ReadOnly);tt.setDepthMode(Bt),mt.render(tt.gl,se.transform.customLayerMatrix(),{farZ:se.transform.farZ,nearZ:se.transform.nearZ,fov:se.transform._fov,modelViewProjectionMatrix:se.transform.modelViewProjectionMatrix,projectionMatrix:se.transform.projectionMatrix}),tt.setDirty(),se.setBaseState(),tt.bindFramebuffer.set(null)}})(w,0,ee)}}translatePosMatrix(w,B,ee,te,se){if(!ee[0]&&!ee[1])return w;let Fe=se?te==="map"?this.transform.angle:0:te==="viewport"?-this.transform.angle:0;if(Fe){let mt=Math.sin(Fe),Bt=Math.cos(Fe);ee=[ee[0]*Bt-ee[1]*mt,ee[0]*mt+ee[1]*Bt]}let Ue=[se?ee[0]:an(B,ee[0],this.transform.zoom),se?ee[1]:an(B,ee[1],this.transform.zoom),0],tt=new Float32Array(16);return a.J(tt,w,Ue),tt}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),ee=this.imageManager.getPattern(w.to.toString());return!B||!ee}useProgram(w,B){this.cache=this.cache||{};let ee=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[ee]||(this.cache[ee]=new bi(this.context,As[w],B,fc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[ee]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class fl{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,ee){let te=Math.pow(2,ee),se=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Ue=>{let tt=1/(Ue=a.af([],Ue,w))[3]/B*te;return a.b1(Ue,Ue,[tt,tt,1/Ue[3],tt])}),Fe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Ue=>{let tt=function(fr,Ar){var de=Ar[0],Te=Ar[1],Pe=Ar[2],qe=de*de+Te*Te+Pe*Pe;return qe>0&&(qe=1/Math.sqrt(qe)),fr[0]=Ar[0]*qe,fr[1]=Ar[1]*qe,fr[2]=Ar[2]*qe,fr}([],function(fr,Ar,de){var Te=Ar[0],Pe=Ar[1],qe=Ar[2],We=de[0],Ne=de[1],$e=de[2];return fr[0]=Pe*$e-qe*Ne,fr[1]=qe*We-Te*$e,fr[2]=Te*Ne-Pe*We,fr}([],L([],se[Ue[0]],se[Ue[1]]),L([],se[Ue[2]],se[Ue[1]]))),mt=-((Bt=tt)[0]*(Ut=se[Ue[1]])[0]+Bt[1]*Ut[1]+Bt[2]*Ut[2]);var Bt,Ut;return tt.concat(mt)});return new fl(se,Fe)}}class Xc{constructor(w,B){this.min=w,this.max=B,this.center=function(ee,te,se){return ee[0]=.5*te[0],ee[1]=.5*te[1],ee[2]=.5*te[2],ee}([],function(ee,te,se){return ee[0]=te[0]+se[0],ee[1]=te[1]+se[1],ee[2]=te[2]+se[2],ee}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],ee=k(this.min),te=k(this.max);for(let se=0;se=0&&Fe++;if(Fe===0)return 0;Fe!==B.length&&(ee=!1)}if(ee)return 2;for(let te=0;te<3;te++){let se=Number.MAX_VALUE,Fe=-Number.MAX_VALUE;for(let Ue=0;Uethis.max[te]-this.min[te])return 0}return 1}}class ic{constructor(w=0,B=0,ee=0,te=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(ee)||ee<0||isNaN(te)||te<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=ee,this.right=te}interpolate(w,B,ee){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,ee)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,ee)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,ee)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,ee)),this}getCenter(w,B){let ee=a.ac((this.left+w-this.right)/2,0,w),te=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(ee,te)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new ic(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let yu=85.051129;class Qs{constructor(w,B,ee,te,se){this.tileSize=512,this._renderWorldCopies=se===void 0||!!se,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=ee==null?0:ee,this._maxPitch=te==null?60:te,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ic,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Qs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var ee=new a.A(4);return a.A!=Float32Array&&(ee[1]=0,ee[2]=0),ee[0]=1,ee[3]=1,ee}(),function(ee,te,se){var Fe=te[0],Ue=te[1],tt=te[2],mt=te[3],Bt=Math.sin(se),Ut=Math.cos(se);ee[0]=Fe*Ut+tt*Bt,ee[1]=Ue*Ut+mt*Bt,ee[2]=Fe*-Bt+tt*Ut,ee[3]=Ue*-Bt+mt*Ut}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,ee){this._unmodified=!1,this._edgeInsets.interpolate(w,B,ee),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let ee=this.pointCoordinate(new a.P(0,0)),te=this.pointCoordinate(new a.P(this.width,0)),se=this.pointCoordinate(new a.P(this.width,this.height)),Fe=this.pointCoordinate(new a.P(0,this.height)),Ue=Math.floor(Math.min(ee.x,te.x,se.x,Fe.x)),tt=Math.floor(Math.max(ee.x,te.x,se.x,Fe.x)),mt=1;for(let Bt=Ue-mt;Bt<=tt+mt;Bt++)Bt!==0&&B.push(new a.b4(Bt,w))}return B}coveringTiles(w){var B,ee;let te=this.coveringZoomLevel(w),se=te;if(w.minzoom!==void 0&&tew.maxzoom&&(te=w.maxzoom);let Fe=this.pointCoordinate(this.getCameraPoint()),Ue=a.Z.fromLngLat(this.center),tt=Math.pow(2,te),mt=[tt*Fe.x,tt*Fe.y,0],Bt=[tt*Ue.x,tt*Ue.y,0],Ut=fl.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,te),fr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(fr=te);let Ar=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,de=Ne=>({aabb:new Xc([Ne*tt,0,0],[(Ne+1)*tt,tt,0]),zoom:0,x:0,y:0,wrap:Ne,fullyVisible:!1}),Te=[],Pe=[],qe=te,We=w.reparseOverscaled?se:te;if(this._renderWorldCopies)for(let Ne=1;Ne<=3;Ne++)Te.push(de(-Ne)),Te.push(de(Ne));for(Te.push(de(0));Te.length>0;){let Ne=Te.pop(),$e=Ne.x,Et=Ne.y,Dt=Ne.fullyVisible;if(!Dt){let Fr=Ne.aabb.intersects(Ut);if(Fr===0)continue;Dt=Fr===2}let Ht=w.terrain?mt:Bt,tr=Ne.aabb.distanceX(Ht),yr=Ne.aabb.distanceY(Ht),Dr=Math.max(Math.abs(tr),Math.abs(yr));if(Ne.zoom===qe||Dr>Ar+(1<=fr){let Fr=qe-Ne.zoom,Yr=mt[0]-.5-($e<>1),Ii=Ne.zoom+1,Pi=Ne.aabb.quadrant(Fr);if(w.terrain){let en=new a.S(Ii,Ne.wrap,Ii,Yr,vi),Mn=w.terrain.getMinMaxElevation(en),da=(B=Mn.minElevation)!==null&&B!==void 0?B:this.elevation,Qn=(ee=Mn.maxElevation)!==null&&ee!==void 0?ee:this.elevation;Pi=new Xc([Pi.min[0],Pi.min[1],da],[Pi.max[0],Pi.max[1],Qn])}Te.push({aabb:Pi,zoom:Ii,x:Yr,y:vi,wrap:Ne.wrap,fullyVisible:Dt})}}return Pe.sort((Ne,$e)=>Ne.distanceSq-$e.distanceSq).map(Ne=>Ne.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,yu);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,ee=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,te=this.pointLocation(this.centerPoint,w),se=w.getElevationForLngLatZoom(te,this.tileZoom);if(!(this.elevation-se))return;let Fe=ee+B-se,Ue=Math.cos(this._pitch)*this.cameraToCenterDistance/Fe/a.b5(1,te.lat),tt=this.scaleZoom(Ue/this.tileSize);this._elevation=se,this._center=te,this.zoom=tt}setLocationAtPoint(w,B){let ee=this.pointCoordinate(B),te=this.pointCoordinate(this.centerPoint),se=this.locationCoordinate(w),Fe=new a.Z(se.x-(ee.x-te.x),se.y-(ee.y-te.y));this.center=this.coordinateLocation(Fe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let fr=B.pointCoordinate(w);if(fr!=null)return fr}let ee=[w.x,w.y,0,1],te=[w.x,w.y,1,1];a.af(ee,ee,this.pixelMatrixInverse),a.af(te,te,this.pixelMatrixInverse);let se=ee[3],Fe=te[3],Ue=ee[1]/se,tt=te[1]/Fe,mt=ee[2]/se,Bt=te[2]/Fe,Ut=mt===Bt?0:(0-mt)/(Bt-mt);return new a.Z(a.y.number(ee[0]/se,te[0]/Fe,Ut)/this.worldSize,a.y.number(Ue,tt,Ut)/this.worldSize)}coordinatePoint(w,B=0,ee=this.pixelMatrix){let te=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(te,te,ee),new a.P(te[0]/te[3],te[1]/te[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new Se().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new Se([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,yu])}calculateTileMatrix(w){let B=w.canonical,ee=this.worldSize/this.zoomScale(B.z),te=B.x+Math.pow(2,B.z)*w.wrap,se=a.an(new Float64Array(16));return a.J(se,se,[te*ee,B.y*ee,0]),a.K(se,se,[ee/a.X,ee/a.X,1]),se}calculatePosMatrix(w,B=!1){let ee=w.key,te=B?this._alignedPosMatrixCache:this._posMatrixCache;if(te[ee])return te[ee];let se=this.calculateTileMatrix(w);return a.L(se,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,se),te[ee]=new Float32Array(se),te[ee]}calculateFogMatrix(w){let B=w.key,ee=this._fogMatrixCache;if(ee[B])return ee[B];let te=this.calculateTileMatrix(w);return a.L(te,this.fogMatrix,te),ee[B]=new Float32Array(te),ee[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let ee={center:new a.N(w.lng,w.lat),zoom:B},te=this.lngRange;if(!this._renderWorldCopies&&te===null){let Ne=179.9999999999;te=[-Ne,Ne]}let se=this.tileSize*this.zoomScale(ee.zoom),Fe=0,Ue=se,tt=0,mt=se,Bt=0,Ut=0,{x:fr,y:Ar}=this.size;if(this.latRange){let Ne=this.latRange;Fe=a.Q(Ne[1])*se,Ue=a.Q(Ne[0])*se,Ue-FeUe&&(qe=Ue-Ne)}if(te){let Ne=(tt+mt)/2,$e=de;this._renderWorldCopies&&($e=a.b3(de,Ne-se/2,Ne+se/2));let Et=fr/2;$e-Etmt&&(Pe=mt-Et)}if(Pe!==void 0||qe!==void 0){let Ne=new a.P(Pe!=null?Pe:de,qe!=null?qe:Te);ee.center=this.unproject.call({worldSize:se},Ne).wrap()}return ee}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:ee}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=ee,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,ee=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let te=a.an(new Float64Array(16));a.K(te,te,[this.width/2,-this.height/2,1]),a.J(te,te,[1,-1,0]),this.labelPlaneMatrix=te,te=a.an(new Float64Array(16)),a.K(te,te,[1,-1,1]),a.J(te,te,[-1,-1,0]),a.K(te,te,[2/this.width,2/this.height,1]),this.glCoordMatrix=te;let se=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Fe=Math.min(this.elevation,this.minElevationForCurrentTile),Ue=se-Fe*this._pixelPerMeter/Math.cos(this._pitch),tt=Fe<0?Ue:se,mt=Math.PI/2+this._pitch,Bt=this._fov*(.5+w.y/this.height),Ut=Math.sin(Bt)*tt/Math.sin(a.ac(Math.PI-mt-Bt,.01,Math.PI-.01)),fr=this.getHorizon(),Ar=2*Math.atan(fr/this.cameraToCenterDistance)*(.5+w.y/(2*fr)),de=Math.sin(Ar)*tt/Math.sin(a.ac(Math.PI-mt-Ar,.01,Math.PI-.01)),Te=Math.min(Ut,de);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Te+tt),this.nearZ=this.height/50,te=new Float64Array(16),a.b6(te,this._fov,this.width/this.height,this.nearZ,this.farZ),te[8]=2*-w.x/this.width,te[9]=2*w.y/this.height,this.projectionMatrix=a.ae(te),a.K(te,te,[1,-1,1]),a.J(te,te,[0,0,-this.cameraToCenterDistance]),a.b7(te,te,this._pitch),a.ad(te,te,this.angle),a.J(te,te,[-B,-ee,0]),this.mercatorMatrix=a.K([],te,[this.worldSize,this.worldSize,this.worldSize]),a.K(te,te,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,te),a.J(te,te,[0,0,-this.elevation]),this.modelViewProjectionMatrix=te,this.invModelViewProjectionMatrix=a.as([],te),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,se,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-ee,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,te);let Pe=this.width%2/2,qe=this.height%2/2,We=Math.cos(this.angle),Ne=Math.sin(this.angle),$e=B-Math.round(B)+We*Pe+Ne*qe,Et=ee-Math.round(ee)+We*qe+Ne*Pe,Dt=new Float64Array(te);if(a.J(Dt,Dt,[$e>.5?$e-1:$e,Et>.5?Et-1:Et,0]),this.alignedModelViewProjectionMatrix=Dt,te=a.as(new Float64Array(16),this.pixelMatrix),!te)throw new Error("failed to invert matrix");this.pixelMatrixInverse=te,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let ee=B.x,te=B.y,se=B.x,Fe=B.y;for(let Ue of w)ee=Math.min(ee,Ue.x),te=Math.min(te,Ue.y),se=Math.max(se,Ue.x),Fe=Math.max(Fe,Ue.y);return[new a.P(ee,te),new a.P(se,te),new a.P(se,Fe),new a.P(ee,Fe),new a.P(ee,te)]}}lngLatToCameraDepth(w,B){let ee=this.locationCoordinate(w),te=[ee.x*this.worldSize,ee.y*this.worldSize,B,1];return a.af(te,te,this.modelViewProjectionMatrix),te[2]/te[3]}}function Qh(ue,w){let B,ee=!1,te=null,se=null,Fe=()=>{te=null,ee&&(ue.apply(se,B),te=setTimeout(Fe,w),ee=!1)};return(...Ue)=>(ee=!0,se=this,B=Ue,te||Fe(),te)}class gd{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let ee;return B.split("&").map(te=>te.split("=")).forEach(te=>{te[0]===this._hashName&&(ee=te)}),(ee&&ee[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(ee=>isNaN(ee))){let ee=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:ee,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let ee=B.join("/"),te=ee;te.split("&").length>0&&(te=te.split("&")[0]),this._hashName&&(te=`${this._hashName}=${ee}`);let se=window.location.hash.replace(te,"");se.startsWith("#&")?se=se.slice(0,1)+se.slice(2):se==="#"&&(se="");let Fe=window.location.href.replace(/(#.+)?$/,se);Fe=Fe.replace("&&","&"),window.history.replaceState(window.history.state,null,Fe)},this._updateHash=Qh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),ee=Math.round(100*this._map.getZoom())/100,te=Math.ceil((ee*Math.LN2+Math.log(512/360/.5))/Math.LN10),se=Math.pow(10,te),Fe=Math.round(B.lng*se)/se,Ue=Math.round(B.lat*se)/se,tt=this._map.getBearing(),mt=this._map.getPitch(),Bt="";if(Bt+=w?`/${Fe}/${Ue}/${ee}`:`${ee}/${Ue}/${Fe}`,(tt||mt)&&(Bt+="/"+Math.round(10*tt)/10),mt&&(Bt+=`/${Math.round(mt)}`),this._hashName){let Ut=this._hashName,fr=!1,Ar=window.location.hash.slice(1).split("&").map(de=>{let Te=de.split("=")[0];return Te===Ut?(fr=!0,`${Te}=${Bt}`):de}).filter(de=>de);return fr||Ar.push(`${Ut}=${Bt}`),`#${Ar.join("&")}`}return`#${Bt}`}}let Gu={linearity:.3,easing:a.b8(0,0,.3,1)},Pc=a.e({deceleration:2500,maxSpeed:1400},Gu),vc=a.e({deceleration:20,maxSpeed:1400},Gu),sv=a.e({deceleration:1e3,maxSpeed:360},Gu),Lf=a.e({deceleration:1e3,maxSpeed:90},Gu);class Uf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:se}of this._inertiaBuffer)B.zoom+=se.zoomDelta||0,B.bearing+=se.bearingDelta||0,B.pitch+=se.pitchDelta||0,se.panDelta&&B.pan._add(se.panDelta),se.around&&(B.around=se.around),se.pinchAround&&(B.pinchAround=se.pinchAround);let ee=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,te={};if(B.pan.mag()){let se=oh(B.pan.mag(),ee,a.e({},Pc,w||{}));te.offset=B.pan.mult(se.amount/B.pan.mag()),te.center=this._map.transform.center,Iu(te,se)}if(B.zoom){let se=oh(B.zoom,ee,vc);te.zoom=this._map.transform.zoom+se.amount,Iu(te,se)}if(B.bearing){let se=oh(B.bearing,ee,sv);te.bearing=this._map.transform.bearing+a.ac(se.amount,-179,179),Iu(te,se)}if(B.pitch){let se=oh(B.pitch,ee,Lf);te.pitch=this._map.transform.pitch+se.amount,Iu(te,se)}if(te.zoom||te.bearing){let se=B.pinchAround===void 0?B.around:B.pinchAround;te.around=se?this._map.unproject(se):this._map.getCenter()}return this.clear(),a.e(te,{noMoveStart:!0})}}function Iu(ue,w){(!ue.duration||ue.durationB.unproject(tt)),Ue=se.reduce((tt,mt,Bt,Ut)=>tt.add(mt.div(Ut.length)),new a.P(0,0));super(w,{points:se,point:Ue,lngLats:Fe,lngLat:B.unproject(Ue),originalEvent:ee}),this._defaultPrevented=!1}}class md extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,ee){super(w,{originalEvent:ee}),this._defaultPrevented=!1}}class sh{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new md(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new ru(w.type,this._map,w))}mouseup(w){this._map.fire(new ru(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new ru(w.type,this._map,w))}dblclick(w){return this._firePreventable(new ru(w.type,this._map,w))}mouseover(w){this._map.fire(new ru(w.type,this._map,w))}mouseout(w){this._map.fire(new ru(w.type,this._map,w))}touchstart(w){return this._firePreventable(new vf(w.type,this._map,w))}touchmove(w){this._map.fire(new vf(w.type,this._map,w))}touchend(w){this._map.fire(new vf(w.type,this._map,w))}touchcancel(w){this._map.fire(new vf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class zs{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new ru(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ru("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new ru(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class _u{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class xu{constructor(w,B){this._map=w,this._tr=new _u(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let ee=B;if(this._lastPos.equals(ee)||!this._box&&ee.dist(this._startPos)se.fitScreenCoordinates(ee,te,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Lh(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let ee=0;eethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),ee.length===this.numTouches&&(this.centroid=function(te){let se=new a.P(0,0);for(let Fe of te)se._add(Fe);return se.div(te.length)}(B),this.touches=Lh(ee,B)))}touchmove(w,B,ee){if(this.aborted||!this.centroid)return;let te=Lh(ee,B);for(let se in this.touches){let Fe=te[se];(!Fe||Fe.dist(this.touches[se])>30)&&(this.aborted=!0)}}touchend(w,B,ee){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),ee.length===0){let te=!this.aborted&&this.centroid;if(this.reset(),te)return te}}}class Pf{constructor(w){this.singleTap=new Ps(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,ee){this.singleTap.touchstart(w,B,ee)}touchmove(w,B,ee){this.singleTap.touchmove(w,B,ee)}touchend(w,B,ee){let te=this.singleTap.touchend(w,B,ee);if(te){let se=w.timeStamp-this.lastTime<500,Fe=!this.lastTap||this.lastTap.dist(te)<30;if(se&&Fe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=te,this.count===this.numTaps)return this.reset(),te}}}class Ic{constructor(w){this._tr=new _u(w),this._zoomIn=new Pf({numTouches:1,numTaps:2}),this._zoomOut=new Pf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,ee){this._zoomIn.touchstart(w,B,ee),this._zoomOut.touchstart(w,B,ee)}touchmove(w,B,ee){this._zoomIn.touchmove(w,B,ee),this._zoomOut.touchmove(w,B,ee)}touchend(w,B,ee){let te=this._zoomIn.touchend(w,B,ee),se=this._zoomOut.touchend(w,B,ee),Fe=this._tr;return te?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ue=>Ue.easeTo({duration:300,zoom:Fe.zoom+1,around:Fe.unproject(te)},{originalEvent:w})}):se?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ue=>Ue.easeTo({duration:300,zoom:Fe.zoom-1,around:Fe.unproject(se)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ju{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let ee=this._lastPoint;if(!ee)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let te=B.length?B[0]:B;return!this._moved&&te.dist(ee){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Dl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let ee=new pc({checkCorrectEvent:te=>c.mouseButton(te)===0&&te.ctrlKey||c.mouseButton(te)===2});return new ju({clickTolerance:w,move:(te,se)=>({bearingDelta:(se.x-te.x)*B}),moveStateManager:ee,enable:ue,assignEvents:Ph})},Ih=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let ee=new pc({checkCorrectEvent:te=>c.mouseButton(te)===0&&te.ctrlKey||c.mouseButton(te)===2});return new ju({clickTolerance:w,move:(te,se)=>({pitchDelta:(se.y-te.y)*B}),moveStateManager:ee,enable:ue,assignEvents:Ph})};class Wu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,ee){return this._calculateTransform(w,B,ee)}touchmove(w,B,ee){if(this._active){if(!this._shouldBePrevented(ee.length))return w.preventDefault(),this._calculateTransform(w,B,ee);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,ee){this._calculateTransform(w,B,ee),this._active&&this._shouldBePrevented(ee.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,ee){ee.length>0&&(this._active=!0);let te=Lh(ee,B),se=new a.P(0,0),Fe=new a.P(0,0),Ue=0;for(let mt in te){let Bt=te[mt],Ut=this._touches[mt];Ut&&(se._add(Bt),Fe._add(Bt.sub(Ut)),Ue++,te[mt]=Bt)}if(this._touches=te,this._shouldBePrevented(Ue)||!Fe.mag())return;let tt=Fe.div(Ue);return this._sum._add(tt),this._sum.mag()Math.abs(ue.x)}class gf extends Rc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,ee){super.touchstart(w,B,ee),this._currentTouchCount=ee.length}_start(w){this._lastPoints=w,nc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,ee){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let te=w[0].sub(this._lastPoints[0]),se=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(te,se,ee.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(te.y+se.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,ee){if(this._valid!==void 0)return this._valid;let te=w.mag()>=2,se=B.mag()>=2;if(!te&&!se)return;if(!te||!se)return this._firstMove===void 0&&(this._firstMove=ee),ee-this._firstMove<100&&void 0;let Fe=w.y>0==B.y>0;return nc(w)&&nc(B)&&Fe}}let pt={panStep:100,bearingStep:15,pitchStep:10};class Nt{constructor(w){this._tr=new _u(w);let B=pt;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,ee=0,te=0,se=0,Fe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?ee=-1:(w.preventDefault(),se=-1);break;case 39:w.shiftKey?ee=1:(w.preventDefault(),se=1);break;case 38:w.shiftKey?te=1:(w.preventDefault(),Fe=-1);break;case 40:w.shiftKey?te=-1:(w.preventDefault(),Fe=1);break;default:return}return this._rotationDisabled&&(ee=0,te=0),{cameraAnimation:Ue=>{let tt=this._tr;Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:br,zoom:B?Math.round(tt.zoom)+B*(w.shiftKey?2:1):tt.zoom,bearing:tt.bearing+ee*this._bearingStep,pitch:tt.pitch+te*this._pitchStep,offset:[-se*this._panStep,-Fe*this._panStep],center:tt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function br(ue){return ue*(2-ue)}let vr=4.000244140625;class Vr{constructor(w,B){this._onTimeout=ee=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(ee)},this._map=w,this._tr=new _u(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,ee=u.now(),te=ee-(this._lastWheelEventTime||0);this._lastWheelEventTime=ee,B!==0&&B%vr==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":te>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(te*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),ee=this._tr;this._around=B.y>ee.transform.height/2-ee.transform.getHorizon()?a.N.convert(this._aroundCenter?ee.center:ee.unproject(B)):a.N.convert(ee.center),this._aroundPoint=ee.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let tt=this._type==="wheel"&&Math.abs(this._delta)>vr?this._wheelZoomRate:this._defaultZoomRate,mt=2/(1+Math.exp(-Math.abs(this._delta*tt)));this._delta<0&&mt!==0&&(mt=1/mt);let Bt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Bt*mt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,ee=this._startZoom,te=this._easing,se,Fe=!1,Ue=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&ee&&te&&Ue){let tt=Math.min(Ue/200,1),mt=te(tt);se=a.y.number(ee,B,mt),tt<1?this._frameId||(this._frameId=!0):Fe=!0}else se=B,Fe=!0;return this._active=!0,Fe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Fe,zoomDelta:se-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let ee=this._prevEase,te=(u.now()-ee.start)/ee.duration,se=ee.easing(te+.01)-ee.easing(te),Fe=.27/Math.sqrt(se*se+1e-4)*.01,Ue=Math.sqrt(.0729-Fe*Fe);B=a.b8(Fe,Ue,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class di{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class wi{constructor(w){this._tr=new _u(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:ee=>{ee.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class qi{constructor(){this._tap=new Pf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,ee){if(!this._swipePoint)if(this._tapTime){let te=B[0],se=w.timeStamp-this._tapTime<500,Fe=this._tapPoint.dist(te)<30;se&&Fe?ee.length>0&&(this._swipePoint=te,this._swipeTouch=ee[0].identifier):this.reset()}else this._tap.touchstart(w,B,ee)}touchmove(w,B,ee){if(this._tapTime){if(this._swipePoint){if(ee[0].identifier!==this._swipeTouch)return;let te=B[0],se=te.y-this._swipePoint.y;return this._swipePoint=te,w.preventDefault(),this._active=!0,{zoomDelta:se/128}}}else this._tap.touchmove(w,B,ee)}touchend(w,B,ee){if(this._tapTime)this._swipePoint&&ee.length===0&&this.reset();else{let te=this._tap.touchend(w,B,ee);te&&(this._tapTime=w.timeStamp,this._tapPoint=te)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ji{constructor(w,B,ee){this._el=w,this._mousePan=B,this._touchPan=ee}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class hn{constructor(w,B,ee){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=ee}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Mi{constructor(w,B,ee,te){this._el=w,this._touchZoom=B,this._touchRotate=ee,this._tapDragZoom=te,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class Oi{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let ee=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),te=document.createElement("div");te.className="maplibregl-desktop-message",te.textContent=B,this._container.appendChild(te);let se=document.createElement("div");se.className="maplibregl-mobile-message",se.textContent=ee,this._container.appendChild(se),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Di=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class yi extends a.k{}function Ln(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class Aa{constructor(w,B){this.handleWindowEvent=te=>{this.handleEvent(te,`${te.type}Window`)},this.handleEvent=(te,se)=>{if(te.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Fe=te.type==="renderFrame"?void 0:te,Ue={needsRenderFrame:!1},tt={},mt={},Bt=te.touches,Ut=Bt?this._getMapTouches(Bt):void 0,fr=Ut?c.touchPos(this._map.getCanvas(),Ut):c.mousePos(this._map.getCanvas(),te);for(let{handlerName:Te,handler:Pe,allowed:qe}of this._handlers){if(!Pe.isEnabled())continue;let We;this._blockedByActive(mt,qe,Te)?Pe.reset():Pe[se||te.type]&&(We=Pe[se||te.type](te,fr,Ut),this.mergeHandlerResult(Ue,tt,We,Te,Fe),We&&We.needsRenderFrame&&this._triggerRenderFrame()),(We||Pe.isActive())&&(mt[Te]=Pe)}let Ar={};for(let Te in this._previousActiveHandlers)mt[Te]||(Ar[Te]=Fe);this._previousActiveHandlers=mt,(Object.keys(Ar).length||Ln(Ue))&&(this._changes.push([Ue,tt,Ar]),this._triggerRenderFrame()),(Object.keys(mt).length||Ln(Ue))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:de}=Ue;de&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],de(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Uf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let ee=this._el;this._listeners=[[ee,"touchstart",{passive:!0}],[ee,"touchmove",{passive:!1}],[ee,"touchend",void 0],[ee,"touchcancel",void 0],[ee,"mousedown",void 0],[ee,"mousemove",void 0],[ee,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[ee,"mouseover",void 0],[ee,"mouseout",void 0],[ee,"dblclick",void 0],[ee,"click",void 0],[ee,"keydown",{capture:!1}],[ee,"keyup",void 0],[ee,"wheel",{passive:!1}],[ee,"contextmenu",void 0],[window,"blur",void 0]];for(let[te,se,Fe]of this._listeners)c.addEventListener(te,se,te===document?this.handleWindowEvent:this.handleEvent,Fe)}destroy(){for(let[w,B,ee]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,ee)}_addDefaultHandlers(w){let B=this._map,ee=B.getCanvasContainer();this._add("mapEvent",new sh(B,w));let te=B.boxZoom=new xu(B,w);this._add("boxZoom",te),w.interactive&&w.boxZoom&&te.enable();let se=B.cooperativeGestures=new Oi(B,w.cooperativeGestures);this._add("cooperativeGestures",se),w.cooperativeGestures&&se.enable();let Fe=new Ic(B),Ue=new wi(B);B.doubleClickZoom=new di(Ue,Fe),this._add("tapZoom",Fe),this._add("clickZoom",Ue),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let tt=new qi;this._add("tapDragZoom",tt);let mt=B.touchPitch=new gf(B);this._add("touchPitch",mt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Bt=Dl(w),Ut=Ih(w);B.dragRotate=new hn(w,Bt,Ut),this._add("mouseRotate",Bt,["mousePitch"]),this._add("mousePitch",Ut,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let fr=(({enable:We,clickTolerance:Ne})=>{let $e=new pc({checkCorrectEvent:Et=>c.mouseButton(Et)===0&&!Et.ctrlKey});return new ju({clickTolerance:Ne,move:(Et,Dt)=>({around:Dt,panDelta:Dt.sub(Et)}),activateOnStart:!0,moveStateManager:$e,enable:We,assignEvents:Ph})})(w),Ar=new Wu(w,B);B.dragPan=new Ji(ee,fr,Ar),this._add("mousePan",fr),this._add("touchPan",Ar,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let de=new Yc,Te=new iu;B.touchZoomRotate=new Mi(ee,Te,de,tt),this._add("touchRotate",de,["touchPan","touchZoom"]),this._add("touchZoom",Te,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Pe=B.scrollZoom=new Vr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Pe,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let qe=B.keyboard=new Nt(B);this._add("keyboard",qe),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new zs(B))}_add(w,B,ee){this._handlers.push({handlerName:w,handler:B,allowed:ee}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Di(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,ee){for(let te in w)if(te!==ee&&(!B||B.indexOf(te)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let ee of w)this._el.contains(ee.target)&&B.push(ee);return B}mergeHandlerResult(w,B,ee,te,se){if(!ee)return;a.e(w,ee);let Fe={handlerName:te,originalEvent:ee.originalEvent||se};ee.zoomDelta!==void 0&&(B.zoom=Fe),ee.panDelta!==void 0&&(B.drag=Fe),ee.pitchDelta!==void 0&&(B.pitch=Fe),ee.bearingDelta!==void 0&&(B.rotate=Fe)}_applyChanges(){let w={},B={},ee={};for(let[te,se,Fe]of this._changes)te.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(te.panDelta)),te.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+te.zoomDelta),te.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+te.bearingDelta),te.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+te.pitchDelta),te.around!==void 0&&(w.around=te.around),te.pinchAround!==void 0&&(w.pinchAround=te.pinchAround),te.noInertia&&(w.noInertia=te.noInertia),a.e(B,se),a.e(ee,Fe);this._updateMapTransform(w,B,ee),this._changes=[]}_updateMapTransform(w,B,ee){let te=this._map,se=te._getTransformForUpdate(),Fe=te.terrain;if(!(Ln(w)||Fe&&this._terrainMovement))return this._fireEvents(B,ee,!0);let{panDelta:Ue,zoomDelta:tt,bearingDelta:mt,pitchDelta:Bt,around:Ut,pinchAround:fr}=w;fr!==void 0&&(Ut=fr),te._stop(!0),Ut=Ut||te.transform.centerPoint;let Ar=se.pointLocation(Ue?Ut.sub(Ue):Ut);mt&&(se.bearing+=mt),Bt&&(se.pitch+=Bt),tt&&(se.zoom+=tt),Fe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?se.center=se.pointLocation(se.centerPoint.sub(Ue)):se.setLocationAtPoint(Ar,Ut):(this._terrainMovement=!0,this._map._elevationFreeze=!0,se.setLocationAtPoint(Ar,Ut)):se.setLocationAtPoint(Ar,Ut),te._applyUpdatedTransform(se),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,ee,!0)}_fireEvents(w,B,ee){let te=Di(this._eventsInProgress),se=Di(w),Fe={};for(let Ut in w){let{originalEvent:fr}=w[Ut];this._eventsInProgress[Ut]||(Fe[`${Ut}start`]=fr),this._eventsInProgress[Ut]=w[Ut]}!te&&se&&this._fireEvent("movestart",se.originalEvent);for(let Ut in Fe)this._fireEvent(Ut,Fe[Ut]);se&&this._fireEvent("move",se.originalEvent);for(let Ut in w){let{originalEvent:fr}=w[Ut];this._fireEvent(Ut,fr)}let Ue={},tt;for(let Ut in this._eventsInProgress){let{handlerName:fr,originalEvent:Ar}=this._eventsInProgress[Ut];this._handlersById[fr].isActive()||(delete this._eventsInProgress[Ut],tt=B[fr]||Ar,Ue[`${Ut}end`]=tt)}for(let Ut in Ue)this._fireEvent(Ut,Ue[Ut]);let mt=Di(this._eventsInProgress),Bt=(te||se)&&!mt;if(Bt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Ut=this._map._getTransformForUpdate();Ut.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Ut)}if(ee&&Bt){this._updatingCamera=!0;let Ut=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),fr=Ar=>Ar!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new yi("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class wa extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let ee=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ee)),ee<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,ee){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),ee)}panTo(w,B,ee){return this.easeTo(a.e({center:w},B),ee)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,ee){return this.easeTo(a.e({zoom:w},B),ee)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,ee){return this.easeTo(a.e({bearing:w},B),ee)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(te.zoom=a.y.number(se,Pe,Ht)),this._rotating&&(te.bearing=a.y.number(Fe,mt,Ht)),this._pitching&&(te.pitch=a.y.number(Ue,Bt,Ht)),this._padding&&(te.interpolatePadding(tt,Ut,Ht),Ar=te.centerPoint.add(fr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ht),$e)te.setLocationAtPoint($e,Et);else{let tr=te.zoomScale(te.zoom-se),yr=Pe>se?Math.min(2,Ne):Math.max(.5,Ne),Dr=Math.pow(yr,1-Ht),Fr=te.unproject(qe.add(We.mult(Ht*Dr)).mult(tr));te.setLocationAtPoint(te.renderWorldCopies?Fr.wrap():Fr,Ar)}this._applyUpdatedTransform(te),this._fireMoveEvents(B)},Ht=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,Ht)},w),this}_prepareEase(w,B,ee={}){this._moving=!0,B||ee.moving||this.fire(new a.k("movestart",w)),this._zooming&&!ee.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!ee.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!ee.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let ee=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(ee-(B-(ee*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),ee=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(te)),this.transformCameraUpdate&&B.push(te=>this.transformCameraUpdate(te)),!B.length)return;let ee=w.clone();for(let te of B){let se=ee.clone(),{center:Fe,zoom:Ue,pitch:tt,bearing:mt,elevation:Bt}=te(se);Fe&&(se.center=Fe),Ue!==void 0&&(se.zoom=Ue),tt!==void 0&&(se.pitch=tt),mt!==void 0&&(se.bearing=mt),Bt!==void 0&&(se.elevation=Bt),ee.apply(se)}this.transform.apply(ee)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let ee=this._zooming,te=this._rotating,se=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ee&&this.fire(new a.k("zoomend",w)),te&&this.fire(new a.k("rotateend",w)),se&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var ee;if(!w.essential&&u.prefersReducedMotion){let en=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(en,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let te=this._getTransformForUpdate(),se=te.zoom,Fe=te.bearing,Ue=te.pitch,tt=te.padding,mt="bearing"in w?this._normalizeBearing(w.bearing,Fe):Fe,Bt="pitch"in w?+w.pitch:Ue,Ut="padding"in w?w.padding:te.padding,fr=a.P.convert(w.offset),Ar=te.centerPoint.add(fr),de=te.pointLocation(Ar),{center:Te,zoom:Pe}=te.getConstrained(a.N.convert(w.center||de),(ee=w.zoom)!==null&&ee!==void 0?ee:se);this._normalizeCenter(Te,te);let qe=te.zoomScale(Pe-se),We=te.project(de),Ne=te.project(Te).sub(We),$e=w.curve,Et=Math.max(te.width,te.height),Dt=Et/qe,Ht=Ne.mag();if("minZoom"in w){let en=a.ac(Math.min(w.minZoom,se,Pe),te.minZoom,te.maxZoom),Mn=Et/te.zoomScale(en-se);$e=Math.sqrt(Mn/Ht*2)}let tr=$e*$e;function yr(en){let Mn=(Dt*Dt-Et*Et+(en?-1:1)*tr*tr*Ht*Ht)/(2*(en?Dt:Et)*tr*Ht);return Math.log(Math.sqrt(Mn*Mn+1)-Mn)}function Dr(en){return(Math.exp(en)-Math.exp(-en))/2}function Fr(en){return(Math.exp(en)+Math.exp(-en))/2}let Yr=yr(!1),vi=function(en){return Fr(Yr)/Fr(Yr+$e*en)},Ii=function(en){return Et*((Fr(Yr)*(Dr(Mn=Yr+$e*en)/Fr(Mn))-Dr(Yr))/tr)/Ht;var Mn},Pi=(yr(!0)-Yr)/$e;if(Math.abs(Ht)<1e-6||!isFinite(Pi)){if(Math.abs(Et-Dt)<1e-6)return this.easeTo(w,B);let en=Dt0,vi=Mn=>Math.exp(en*$e*Mn)}return w.duration="duration"in w?+w.duration:1e3*Pi/("screenSpeed"in w?+w.screenSpeed/$e:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Fe!==mt,this._pitching=Bt!==Ue,this._padding=!te.isPaddingEqual(Ut),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(Te),this._ease(en=>{let Mn=en*Pi,da=1/vi(Mn);te.zoom=en===1?Pe:se+te.scaleZoom(da),this._rotating&&(te.bearing=a.y.number(Fe,mt,en)),this._pitching&&(te.pitch=a.y.number(Ue,Bt,en)),this._padding&&(te.interpolatePadding(tt,Ut,en),Ar=te.centerPoint.add(fr)),this.terrain&&!w.freezeElevation&&this._updateElevation(en);let Qn=en===1?Te:te.unproject(We.add(Ne.mult(Ii(Mn))).mult(da));te.setLocationAtPoint(te.renderWorldCopies?Qn.wrap():Qn,Ar),this._applyUpdatedTransform(te),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var ee;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let te=this._onEaseEnd;delete this._onEaseEnd,te.call(this,B)}return w||(ee=this.handlers)===null||ee===void 0||ee.stop(!1),this}_ease(w,B,ee){ee.animate===!1||ee.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=ee,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let ee=Math.abs(w-B);return Math.abs(w-360-B)180?-360:ee<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let Ma={compact:!0,customAttribution:'MapLibre'};class za{constructor(w=Ma){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let ee=this._map._getUIString(`AttributionControl.${B}`);w.title=ee,w.setAttribute("aria-label",ee)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(te=>typeof te!="string"?"":te)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let te=this._map.style.stylesheet;this.styleOwner=te.owner,this.styleId=te.id}let B=this._map.style.sourceCaches;for(let te in B){let se=B[te];if(se.used||se.usedForTerrain){let Fe=se.getSource();Fe.attribution&&w.indexOf(Fe.attribution)<0&&w.push(Fe.attribution)}}w=w.filter(te=>String(te).trim()),w.sort((te,se)=>te.length-se.length),w=w.filter((te,se)=>{for(let Fe=se+1;Fe=0)return!1;return!0});let ee=w.join(" | ");ee!==this._attribHTML&&(this._attribHTML=ee,w.length?(this._innerContainer.innerHTML=ee,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class kn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let ee=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&ee.classList.add("maplibregl-compact"):ee.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class sn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,ee=B?this._queue.concat(B):this._queue;for(let te of ee)if(te.id===w)return void(te.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let ee of B)if(!ee.cancelled&&(ee.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ba=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class ho extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let ee={};for(let te of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))ee[te.key]=!0,this._renderableTilesKeys.push(te.key),this._tiles[te.key]||(te.posMatrix=new Float64Array(16),a.aP(te.posMatrix,0,a.X,0,a.X,0,1),this._tiles[te.key]=new Ct(te,this.tileSize));for(let te in this._tiles)ee[te]||delete this._tiles[te]}freeRtt(w){for(let B in this._tiles){let ee=this._tiles[B];(!w||ee.tileID.equals(w)||ee.tileID.isChildOf(w)||w.isChildOf(ee.tileID))&&(ee.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let ee of this._renderableTilesKeys){let te=this._tiles[ee].tileID;if(te.canonical.equals(w.canonical)){let se=w.clone();se.posMatrix=new Float64Array(16),a.aP(se.posMatrix,0,a.X,0,a.X,0,1),B[ee]=se}else if(te.canonical.isChildOf(w.canonical)){let se=w.clone();se.posMatrix=new Float64Array(16);let Fe=te.canonical.z-w.canonical.z,Ue=te.canonical.x-(te.canonical.x>>Fe<>Fe<>Fe;a.aP(se.posMatrix,0,mt,0,mt,0,1),a.J(se.posMatrix,se.posMatrix,[-Ue*mt,-tt*mt,0]),B[ee]=se}else if(w.canonical.isChildOf(te.canonical)){let se=w.clone();se.posMatrix=new Float64Array(16);let Fe=w.canonical.z-te.canonical.z,Ue=w.canonical.x-(w.canonical.x>>Fe<>Fe<>Fe;a.aP(se.posMatrix,0,a.X,0,a.X,0,1),a.J(se.posMatrix,se.posMatrix,[Ue*mt,tt*mt,0]),a.K(se.posMatrix,se.posMatrix,[1/2**Fe,1/2**Fe,0]),B[ee]=se}}return B}getSourceTile(w,B){let ee=this.sourceCache._source,te=w.overscaledZ-this.deltaZoom;if(te>ee.maxzoom&&(te=ee.maxzoom),te=ee.minzoom&&(!se||!se.dem);)se=this.sourceCache.getTileByID(w.scaledTo(te--).key);return se}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class jo{constructor(w,B,ee){this.painter=w,this.sourceCache=new ho(B),this.options=ee,this.exaggeration=typeof ee.exaggeration=="number"?ee.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,ee,te=a.X){var se;if(!(B>=0&&B=0&&eew.canonical.z&&(w.canonical.z>=te?se=w.canonical.z-te:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Fe=w.canonical.x-(w.canonical.x>>se<>se<>8<<4|se>>8,B[Fe+3]=0;let ee=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),te=new g(w,ee,w.gl.RGBA,{premultiply:!1});return te.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=te,te}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),ee=this.painter.context,te=ee.gl,se=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Fe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Ue=Math.round(this.painter.height/devicePixelRatio);ee.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),te.readPixels(se,Ue-Fe-1,1,1,te.RGBA,te.UNSIGNED_BYTE,B),ee.bindFramebuffer.set(null);let tt=B[0]+(B[2]>>4<<8),mt=B[1]+((15&B[2])<<8),Bt=this.coordsIndex[255-B[3]],Ut=Bt&&this.sourceCache.getTileByID(Bt);if(!Ut)return null;let fr=this._coordsTextureSize,Ar=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let Ko={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class ps{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new bs(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(ee=>!w._layers[ee].isHidden(B)),this._coordsDescendingInv={};for(let ee in w.sourceCaches){this._coordsDescendingInv[ee]={};let te=w.sourceCaches[ee].getVisibleCoordinates();for(let se of te){let Fe=this.terrain.sourceCache.getTerrainCoords(se);for(let Ue in Fe)this._coordsDescendingInv[ee][Ue]||(this._coordsDescendingInv[ee][Ue]=[]),this._coordsDescendingInv[ee][Ue].push(Fe[Ue])}}this._coordsDescendingInvStr={};for(let ee of w._order){let te=w._layers[ee],se=te.source;if(Ko[te.type]&&!this._coordsDescendingInvStr[se]){this._coordsDescendingInvStr[se]={};for(let Fe in this._coordsDescendingInv[se])this._coordsDescendingInvStr[se][Fe]=this._coordsDescendingInv[se][Fe].map(Ue=>Ue.key).sort().join()}}for(let ee of this._renderableTiles)for(let te in this._coordsDescendingInvStr){let se=this._coordsDescendingInvStr[te][ee.tileID.key];se&&se!==ee.rttCoords[te]&&(ee.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,ee=this.painter,te=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(Ko[B]&&(this._prevType&&Ko[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!te))return!0;if(Ko[this._prevType]||Ko[B]&&te){this._prevType=B;let se=this._stacks.length-1,Fe=this._stacks[se]||[];for(let Ue of this._renderableTiles){if(this.pool.isFull()&&(tu(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Ue),Ue.rtt[se]){let mt=this.pool.getObjectForId(Ue.rtt[se].id);if(mt.stamp===Ue.rtt[se].stamp){this.pool.useObject(mt);continue}}let tt=this.pool.getOrCreateFreeObject();this.pool.useObject(tt),this.pool.stampObject(tt),Ue.rtt[se]={id:tt.id,stamp:tt.stamp},ee.context.bindFramebuffer.set(tt.fbo.framebuffer),ee.context.clear({color:a.aM.transparent,stencil:0}),ee.currentStencilSource=void 0;for(let mt=0;mt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},ra={showCompass:!0,showZoom:!0,visualizePitch:!1};class Za{constructor(w,B,ee=!1){this.mousedown=Fe=>{this.startMouse(a.e({},Fe,{ctrlKey:!0,preventDefault:()=>Fe.preventDefault()}),c.mousePos(this.element,Fe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Fe=>{this.moveMouse(Fe,c.mousePos(this.element,Fe))},this.mouseup=Fe=>{this.mouseRotate.dragEnd(Fe),this.mousePitch&&this.mousePitch.dragEnd(Fe),this.offTemp()},this.touchstart=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.startTouch(Fe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.moveTouch(Fe,this._lastPos))},this.touchend=Fe=>{Fe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let te=w.dragRotate._mouseRotate.getClickTolerance(),se=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Dl({clickTolerance:te,enable:!0}),this.touchRotate=(({enable:Fe,clickTolerance:Ue,bearingDegreesPerPixelMoved:tt=.8})=>{let mt=new pf;return new ju({clickTolerance:Ue,move:(Bt,Ut)=>({bearingDelta:(Ut.x-Bt.x)*tt}),moveStateManager:mt,enable:Fe,assignEvents:Is})})({clickTolerance:te,enable:!0}),this.map=w,ee&&(this.mousePitch=Ih({clickTolerance:se,enable:!0}),this.touchPitch=(({enable:Fe,clickTolerance:Ue,pitchDegreesPerPixelMoved:tt=-.5})=>{let mt=new pf;return new ju({clickTolerance:Ue,move:(Bt,Ut)=>({pitchDelta:(Ut.y-Bt.y)*tt}),moveStateManager:mt,enable:Fe,assignEvents:Is})})({clickTolerance:se,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let ee=this.map,{bearingDelta:te}=this.mouseRotate.dragMove(w,B)||{};if(te&&ee.setBearing(ee.getBearing()+te),this.mousePitch){let{pitchDelta:se}=this.mousePitch.dragMove(w,B)||{};se&&ee.setPitch(ee.getPitch()+se)}}moveTouch(w,B){let ee=this.map,{bearingDelta:te}=this.touchRotate.dragMove(w,B)||{};if(te&&ee.setBearing(ee.getBearing()+te),this.touchPitch){let{pitchDelta:se}=this.touchPitch.dragMove(w,B)||{};se&&ee.setPitch(ee.getPitch()+se)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let fs;function Zo(ue,w,B){let ee=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let te=new a.N(ue.lng-360,ue.lat),se=new a.N(ue.lng+360,ue.lat),Fe=B.locationPoint(ue).distSqr(w);B.locationPoint(te).distSqr(w)180;){let te=B.locationPoint(ue);if(te.x>=0&&te.y>=0&&te.x<=B.width&&te.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==ee.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:ee}let nu={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Ru(ue,w,B){let ee=ue.classList;for(let te in nu)ee.remove(`maplibregl-${B}-anchor-${te}`);ee.add(`maplibregl-${B}-anchor-${w}`)}class ac extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let ee=B.code,te=B.charCode||B.keyCode;ee!=="Space"&&ee!=="Enter"&&te!==32&&te!==13||this.togglePopup()},this._onMapClick=B=>{let ee=B.originalEvent.target,te=this._element;this._popup&&(ee===te||te.contains(ee))&&this.togglePopup()},this._update=B=>{var ee;if(!this._map)return;let te=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!te)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?Zo(this._lngLat,this._flatPos,this._map.transform):(ee=this._lngLat)===null||ee===void 0?void 0:ee.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let se="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?se=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(se=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Fe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Fe="rotateX(0deg)":this._pitchAlignment==="map"&&(Fe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${nu[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Fe} ${se}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let ee=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=ee}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),ee=41,te=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${ee}px`),B.setAttributeNS(null,"width",`${te}px`),B.setAttributeNS(null,"viewBox",`0 0 ${te} ${ee}`);let se=c.createNS("http://www.w3.org/2000/svg","g");se.setAttributeNS(null,"stroke","none"),se.setAttributeNS(null,"stroke-width","1"),se.setAttributeNS(null,"fill","none"),se.setAttributeNS(null,"fill-rule","evenodd");let Fe=c.createNS("http://www.w3.org/2000/svg","g");Fe.setAttributeNS(null,"fill-rule","nonzero");let Ue=c.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ue.setAttributeNS(null,"fill","#000000");let tt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let qe of tt){let We=c.createNS("http://www.w3.org/2000/svg","ellipse");We.setAttributeNS(null,"opacity","0.04"),We.setAttributeNS(null,"cx","10.5"),We.setAttributeNS(null,"cy","5.80029008"),We.setAttributeNS(null,"rx",qe.rx),We.setAttributeNS(null,"ry",qe.ry),Ue.appendChild(We)}let mt=c.createNS("http://www.w3.org/2000/svg","g");mt.setAttributeNS(null,"fill",this._color);let Bt=c.createNS("http://www.w3.org/2000/svg","path");Bt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),mt.appendChild(Bt);let Ut=c.createNS("http://www.w3.org/2000/svg","g");Ut.setAttributeNS(null,"opacity","0.25"),Ut.setAttributeNS(null,"fill","#000000");let fr=c.createNS("http://www.w3.org/2000/svg","path");fr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Ut.appendChild(fr);let Ar=c.createNS("http://www.w3.org/2000/svg","g");Ar.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ar.setAttributeNS(null,"fill","#FFFFFF");let de=c.createNS("http://www.w3.org/2000/svg","g");de.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Te=c.createNS("http://www.w3.org/2000/svg","circle");Te.setAttributeNS(null,"fill","#000000"),Te.setAttributeNS(null,"opacity","0.25"),Te.setAttributeNS(null,"cx","5.5"),Te.setAttributeNS(null,"cy","5.5"),Te.setAttributeNS(null,"r","5.4999962");let Pe=c.createNS("http://www.w3.org/2000/svg","circle");Pe.setAttributeNS(null,"fill","#FFFFFF"),Pe.setAttributeNS(null,"cx","5.5"),Pe.setAttributeNS(null,"cy","5.5"),Pe.setAttributeNS(null,"r","5.4999962"),de.appendChild(Te),de.appendChild(Pe),Fe.appendChild(Ue),Fe.appendChild(mt),Fe.appendChild(Ut),Fe.appendChild(Ar),Fe.appendChild(de),B.appendChild(Fe),B.setAttributeNS(null,"height",ee*this._scale+"px"),B.setAttributeNS(null,"width",te*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),Ru(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let te=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[te,-1*(38.1-13.5+te)],"bottom-right":[-te,-1*(38.1-13.5+te)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,ee;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let te=this._map,se=te.terrain.depthAtPoint(this._pos),Fe=te.terrain.getElevationForLngLatZoom(this._lngLat,te.transform.tileZoom);if(te.transform.lngLatToCameraDepth(this._lngLat,Fe)-se<.006)return void(this._element.style.opacity=this._opacity);let Ue=-this._offset.y/te.transform._pixelPerMeter,tt=Math.sin(te.getPitch()*Math.PI/180)*Ue,mt=te.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Bt=te.transform.lngLatToCameraDepth(this._lngLat,Fe+tt)-mt>.006;!((ee=this._popup)===null||ee===void 0)&&ee.isOpen()&&Bt&&this._popup.remove(),this._element.style.opacity=Bt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let mf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},bu=0,Kc=!1,Du={maxWidth:100,unit:"metric"};function Dc(ue,w,B){let ee=B&&B.maxWidth||100,te=ue._container.clientHeight/2,se=ue.unproject([0,te]),Fe=ue.unproject([ee,te]),Ue=se.distanceTo(Fe);if(B&&B.unit==="imperial"){let tt=3.2808*Ue;tt>5280?Ia(w,ee,tt/5280,ue._getUIString("ScaleControl.Miles")):Ia(w,ee,tt,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ia(w,ee,Ue/1852,ue._getUIString("ScaleControl.NauticalMiles")):Ue>=1e3?Ia(w,ee,Ue/1e3,ue._getUIString("ScaleControl.Kilometers")):Ia(w,ee,Ue,ue._getUIString("ScaleControl.Meters"))}function Ia(ue,w,B,ee){let te=function(se){let Fe=Math.pow(10,`${Math.floor(se)}`.length-1),Ue=se/Fe;return Ue=Ue>=10?10:Ue>=5?5:Ue>=3?3:Ue>=2?2:Ue>=1?1:function(tt){let mt=Math.pow(10,Math.ceil(-Math.log(tt)/Math.LN10));return Math.round(tt*mt)/mt}(Ue),Fe*Ue}(B);ue.style.width=w*(te/B)+"px",ue.innerHTML=`${te} ${ee}`}let Ja={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Jc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function yc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return yc(new a.P(0,0))}let _c=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=za,i.BoxZoomHandler=xu,i.CanvasSource=Rt,i.CooperativeGesturesHandler=Oi,i.DoubleClickZoomHandler=di,i.DragPanHandler=Ji,i.DragRotateHandler=hn,i.EdgeInsets=ic,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=nt,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),ee=w.coords.accuracy,te=this._map.getBearing(),se=a.e({bearing:te},this.options.fitBoundsOptions),Fe=Se.fromLngLat(B,ee);this._map.fitBounds(Fe,se,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Kc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new ac({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ac({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},mf,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(fs!==void 0&&!w)return fs;if(window.navigator.permissions===void 0)return fs=!!window.navigator.geolocation,fs;try{fs=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){fs=!!window.navigator.geolocation}return fs})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,bu=0,Kc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),ee=w.distanceTo(B),te=Math.ceil(this._accuracy/(ee/this._map._container.clientHeight)*2);this._circleElement.style.width=`${te}px`,this._circleElement.style.height=`${te}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":bu--,Kc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),bu++,bu>1?(ue={maximumAge:6e5,timeout:0},Kc=!0):(ue=this.options.positionOptions,Kc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=gd,i.ImageSource=Ft,i.KeyboardHandler=Nt,i.LngLatBounds=Se,i.LogoControl=kn,i.Map=class extends wa{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Gs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Qs(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new sn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Fo),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new E(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,ee=Qh(te=>{this._trackResize&&!this._removed&&(this.resize(te),this.redraw())},50);this._resizeObserver=new ResizeObserver(te=>{B?ee(te):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Aa(this,w),this._hash=w.hash&&new gd(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new za(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new kn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let ee=this._controlPositions[w];return w.indexOf("bottom")!==-1?ee.insertBefore(B,ee.firstChild):ee.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,ee){return ee==null&&this.terrain&&(ee=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,ee)}resize(ue){var w;let B=this._containerDimensions(),ee=B[0],te=B[1],se=this._getClampedPixelRatio(ee,te);if(this._resizeCanvas(ee,te,se),this.painter.resize(ee,te,se),this.painter.overLimit()){let Ue=this.painter.context.gl;this._maxCanvasSize=[Ue.drawingBufferWidth,Ue.drawingBufferHeight];let tt=this._getClampedPixelRatio(ee,te);this._resizeCanvas(ee,te,tt),this.painter.resize(ee,te,tt)}this.transform.resize(ee,te),(w=this._requestedCameraState)===null||w===void 0||w.resize(ee,te);let Fe=!this._moving;return Fe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Fe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:ee}=this._maxCanvasSize,te=this.getPixelRatio(),se=ue*te,Fe=w*te;return Math.min(se>B?B/se:1,Fe>ee?ee/Fe:1)*te}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(Se.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let ee=!1;return{layers:w,listener:B,delegates:{mousemove:se=>{let Fe=w.filter(tt=>this.getLayer(tt)),Ue=Fe.length!==0?this.queryRenderedFeatures(se.point,{layers:Fe}):[];Ue.length?ee||(ee=!0,B.call(this,new ru(ue,this,se.originalEvent,{features:Ue}))):ee=!1},mouseout:()=>{ee=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let ee=!1;return{layers:w,listener:B,delegates:{mousemove:Fe=>{let Ue=w.filter(tt=>this.getLayer(tt));(Ue.length!==0?this.queryRenderedFeatures(Fe.point,{layers:Ue}):[]).length?ee=!0:ee&&(ee=!1,B.call(this,new ru(ue,this,Fe.originalEvent)))},mouseout:Fe=>{ee&&(ee=!1,B.call(this,new ru(ue,this,Fe.originalEvent)))}}}}{let ee=te=>{let se=w.filter(Ue=>this.getLayer(Ue)),Fe=se.length!==0?this.queryRenderedFeatures(te.point,{layers:se}):[];Fe.length&&(te.features=Fe,B.call(this,te),delete te.features)};return{layers:w,listener:B,delegates:{[ue]:ee}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let ee=this._delegatedListeners[ue];for(let te=0;tew.includes(Fe))){for(let Fe in se.delegates)this.off(Fe,se.delegates[Fe]);return void ee.splice(te,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let ee=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,ee);for(let te in ee.delegates)this.on(te,ee.delegates[te]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let ee=typeof w=="string"?[w]:w,te=this._createDelegatedListener(ue,ee,B);for(let se in te.delegates){let Fe=te.delegates[se];te.delegates[se]=(...Ue)=>{this._removeDelegatedListener(ue,ee,B),Fe(...Ue)}}this._saveDelegatedListener(ue,te);for(let se in te.delegates)this.once(se,te.delegates[se]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,ee=ue instanceof a.P||Array.isArray(ue),te=ee?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(ee?{}:ue)||{},te instanceof a.P||typeof te[0]=="number")B=[a.P.convert(te)];else{let se=a.P.convert(te[0]),Fe=a.P.convert(te[1]);B=[se,new a.P(Fe.x,se.y),Fe,new a.P(se.x,Fe.y),se]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new _s(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new _s(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(ee=>{this._updateDiff(ee.data,w)}).catch(ee=>{ee&&this.fire(new a.j(ee))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let ee=this.style._layers[B];ee.type==="hillshade"&&ee.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new jo(this.painter,w,ue),this.painter.renderToTexture=new ps(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let ee in B){let te=B[ee];if(te.state!=="loaded"&&te.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:ee=1,sdf:te=!1,stretchX:se,stretchY:Fe,content:Ue,textFitWidth:tt,textFitHeight:mt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Bt,height:Ut,data:fr}=w,Ar=w;return this.style.addImage(ue,{data:new a.R({width:Bt,height:Ut},new Uint8Array(fr)),pixelRatio:ee,stretchX:se,stretchY:Fe,content:Ue,textFitWidth:tt,textFitHeight:mt,sdf:te,version:0,userImage:Ar}),Ar.onAdd&&Ar.onAdd(this,ue),this}}{let{width:Bt,height:Ut,data:fr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Bt,height:Ut},fr),pixelRatio:ee,stretchX:se,stretchY:Fe,content:Ue,textFitWidth:tt,textFitHeight:mt,sdf:te,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let ee=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:te,height:se,data:Fe}=ee;if(te===void 0||se===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(te!==B.data.width||se!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Ue=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(Fe,Ue),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,ee={}){return this.style.setPaintProperty(ue,w,B,ee),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,ee={}){return this.style.setLayoutProperty(ue,w,B,ee),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,ee=>{ee||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),ee=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],ee);let te=this._controlContainer=c.create("div","maplibregl-control-container",ue),se=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Fe=>{se[Fe]=c.create("div",`maplibregl-ctrl-${Fe} `,te)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",ee=>{w={requestedAttributes:ue},ee&&(w.statusMessage=ee.statusMessage,w.type=ee.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let ee="Failed to initialize WebGL";throw w?(w.message=ee,new Error(JSON.stringify(w))):new Error(ee)}this.painter=new Lc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let te=this.transform.zoom,se=u.now();this.style.zoomHistory.update(te,se);let Fe=new a.z(te,{now:se,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ue=Fe.crossFadingFactor();Ue===1&&Ue===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Ue),this.style.update(Fe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let ee=this._sourcesDirty||this._styleDirty||this._placementDirty;return ee||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||ee||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=ru,i.MapTouchEvent=vf,i.MapWheelEvent=md,i.Marker=ac,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),ee=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=ee,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",ee.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let ee=this._map._getUIString(`NavigationControl.${B}`);w.title=ee,w.setAttribute("aria-label",ee)},this.options=a.e({},ra,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Za(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Ue of this.options.className.split(" "))this._container.classList.add(Ue);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?Zo(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let ee=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let te=this.options.anchor,se=yc(this.options.offset);if(!te){let Ue=this._container.offsetWidth,tt=this._container.offsetHeight,mt;mt=ee.y+se.bottom.ythis._map.transform.height-tt?["bottom"]:[],ee.xthis._map.transform.width-Ue/2&&mt.push("right"),te=mt.length===0?"bottom":mt.join("-")}let Fe=ee.add(se[te]);this.options.subpixelPositioning||(Fe=Fe.round()),c.setTransform(this._container,`${nu[te]} translate(${Fe.x}px,${Fe.y}px)`),Ru(this._container,te,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Ja),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),ee;for(B.innerHTML=ue;ee=B.firstChild,ee;)w.appendChild(ee);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Jc);ue&&ue.focus()}},i.RasterDEMTileSource=Yt,i.RasterTileSource=At,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Dc(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Dc(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Du),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Vr,i.Style=_s,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=gf,i.TwoFingersTouchRotateHandler=Yc,i.TwoFingersTouchZoomHandler=iu,i.TwoFingersTouchZoomRotateHandler=Mi,i.VectorTileSource=lt,i.VideoSource=Lt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(xr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,ee)=>{Xt[B]=ee})(ue,w)}),i.clearPrewarmedResources=function(){let ue=ye;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(we),ye=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return _t().getRTLTextPluginStatus()},i.getVersion=function(){return _c},i.getWorkerCount=function(){return Ee.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return xe().broadcast("IS",ue)},i.prewarm=function(){ce().acquire(we)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return _t().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Ee.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var $Ge=_e((jxr,JGe)=>{"use strict";var iw=Mr(),jWt=Pl().sanitizeHTML,WWt=TJ(),XGe=wx();function YGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=XGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=YGe.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=u7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!u7(e)){var r=ZWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function KGe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=WWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ZWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=jWt(e.sourceattribution)),n}JGe.exports=function(t,r,n){var i=new YGe(t,r);return i.update(n),i}});var oje=_e((Wxr,aje)=>{"use strict";var CJ=ZGe(),LJ=Mr(),tje=nx(),QGe=_a(),XWt=Ka(),YWt=gv(),c7=Nc(),rje=Mg(),KWt=rje.drawMode,JWt=rje.selectMode,$Wt=wf().prepSelect,QWt=wf().clearOutline,eZt=wf().clearSelectionsCache,tZt=wf().selectOnClick,nw=wx(),rZt=$Ge();function ije(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Mh=ije.prototype;Mh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Mh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=nje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new CJ.Map({container:i.div,style:o.style,center:PJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new CJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(tje.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Mh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=nje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(tje.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Mh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&tZt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&c7.click(n,l.originalEvent)}}};Mh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=LJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),JWt(a)||KWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){$Wt(l,u,c,t.dragOptions,a)},YWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Mh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Mh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var IJ=Mr(),nZt=C_(),aZt=Zd(),sje=Ok();lje.exports=function(t,r,n){nZt(t,r,n,{type:"map",attributes:sje,handleDefaults:oZt,partition:"y"})};function oZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,aZt(e,t,{name:"layers",handleItemDefaults:sZt}),t._input=e}function sZt(e,t){function r(l,u){return IJ.coerce(e,t,sje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",IJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),IJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var h7=_e(l0=>{"use strict";var f7=Mr(),cje=f7.strTranslate,lZt=f7.strScale,uZt=kd().getSubplotCalcData,cZt=Zp(),fZt=ya(),fje=ro(),hZt=Pl(),dZt=oje(),Tx="map";l0.name=Tx;l0.attr="subplot";l0.idRoot=Tx;l0.idRegex=l0.attrRegex=f7.counterRegex(Tx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=Ok();l0.supplyLayoutDefaults=uje();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Tx],a=0;ax/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(hZt.convertToTspans,e),v=fje.bBox(d.node())}d.attr("transform",cje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>x&&(p=x/(v.width+6));var E=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",cje(E[0],E[1])+lZt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],n=0;n{"use strict";hje.exports={attributes:i7(),supplyDefaults:MGe(),colorbar:Kd(),formatLabels:wJ(),calc:vz(),plot:BGe(),hoverPoints:l7().hoverPoints,eventData:HGe(),selectPoints:jGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:h7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var pje=_e((Kxr,vje)=>{"use strict";vje.exports=dje()});var RJ=_e((Jxr,gje)=>{"use strict";var d1=J5(),vZt=Jl(),pZt=Ho().hovertemplateAttrs,gZt=vl(),Ax=to().extendFlat;gje.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:pZt({},{keys:["properties"]}),showlegend:Ax({},gZt.showlegend,{dflt:!1})},vZt("",{cLetter:"z",editTypeOverride:"calc"}))});var yje=_e(($xr,mje)=>{"use strict";var Vk=Mr(),mZt=Uh(),yZt=RJ();mje.exports=function(t,r,n,i){function a(c,f){return Vk.coerce(t,r,yZt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!Vk.isArrayOrTypedArray(o)||!o.length||!Vk.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||Vk.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),mZt(t,r,i,a,{prefix:"",cLetter:"z"}),Vk.coerceSelectionMarkerOpacity(r,a)}});var DJ=_e((Qxr,bje)=>{"use strict";var _Zt=ao(),v1=Mr(),xZt=Su(),bZt=ro(),wZt=rx().makeBlank,_je=nx();function TZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:wZt()};if(!r)return a;var o=_je.extractTraceFeature(e);if(!o)return a;var s=xZt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(E){var k=E.mo;return _Zt(k)?+v1.constrain(k,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(E){return E.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(E){return E.mlw});for(var d=0;d{"use strict";var Tje=DJ().convert,AZt=DJ().convertOnSelect,wje=wx().traceLayerPrefix;function Aje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",wje+t+"-fill"],["line",wje+t+"-line"]],this.below=null}var EA=Aje.prototype;EA.update=function(e){this._update(Tje(e)),e[0].trace._glTrace=this};EA.updateOnSelect=function(e){this._update(AZt(e))};EA._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};EA.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Mje.exports=function(t,r){var n=r[0].trace,i=new Aje(t,n.uid),a=i.sourceId,o=Tje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var kje=_e((tbr,Eje)=>{"use strict";Eje.exports={attributes:RJ(),supplyDefaults:yje(),colorbar:S_(),calc:Fz(),plot:Sje(),hoverPoints:Oz(),eventData:Bz(),selectPoints:Nz(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Cje.exports=kje()});var FJ=_e((ibr,Ije)=>{"use strict";var MZt=Jl(),SZt=Ho().hovertemplateAttrs,Pje=vl(),d7=i7(),zJ=to().extendFlat;Ije.exports=zJ({lon:d7.lon,lat:d7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:d7.text,hovertext:d7.hovertext,hoverinfo:zJ({},Pje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:SZt(),showlegend:zJ({},Pje.showlegend,{dflt:!1})},MZt("",{cLetter:"z",editTypeOverride:"calc"}))});var Dje=_e((nbr,Rje)=>{"use strict";var EZt=Mr(),kZt=Uh(),CZt=FJ();Rje.exports=function(t,r,n,i){function a(u,c){return EZt.coerce(t,r,CZt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),kZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var qje=_e((abr,Fje)=>{"use strict";var qJ=ao(),LZt=Mr().isArrayOrTypedArray,OJ=Jo().BADNUM,PZt=zv(),zje=Mr()._;Fje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=LZt(a)&&a.length,s=0;s{"use strict";var IZt=ao(),BJ=Mr(),Oje=ha(),Bje=Su(),Nje=Jo().BADNUM,RZt=rx().makeBlank;Uje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:RZt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=BJ.isArrayOrTypedArray(l)&&l.length,f=BJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Bje.extractOpts(r),p=b.reversescale?Bje.flipScale(b.colorscale):b.colorscale,E=p[0][1],k=Oje.opacity(E)<1?E:Oje.addOpacity(E,0),A=["interpolate",["linear"],["heatmap-density"],0,k];for(s=1;s{"use strict";var Hje=Vje(),DZt=wx().traceLayerPrefix;function Gje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",DZt+t+"-heatmap"]],this.below=null}var v7=Gje.prototype;v7.update=function(e){var t=this.subplot,r=this.layerList,n=Hje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};v7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};jje.exports=function(t,r){var n=r[0].trace,i=new Gje(t,n.uid),a=i.sourceId,o=Hje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Xje=_e((lbr,Zje)=>{"use strict";var zZt=Ka(),FZt=l7().hoverPoints,qZt=l7().getExtraText;Zje.exports=function(t,r,n){var i=FZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=zZt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=qZt(s,l,o[0].t.labels),[a]}}});var Kje=_e((ubr,Yje)=>{"use strict";Yje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var $je=_e((cbr,Jje)=>{"use strict";Jje.exports={attributes:FJ(),supplyDefaults:Dje(),colorbar:S_(),formatLabels:wJ(),calc:qje(),plot:Wje(),hoverPoints:Xje(),eventData:Kje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Qje.exports=$je()});var UJ=_e((dbr,nWe)=>{"use strict";var OZt=Mu(),BZt=vl(),tWe=dh(),NJ=i3(),NZt=Ju().attributes,rWe=Ho().hovertemplateAttrs,UZt=Jl(),VZt=Us().templatedArray,HZt=Oc().descriptionOnlyNumbers,iWe=to().extendFlat,GZt=Bu().overrideAll,hbr=nWe.exports=GZt({hoverinfo:iWe({},BZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:NJ.hoverlabel,domain:NZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:HZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:OZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:tWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:NJ.hoverlabel,hovertemplate:rWe({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:tWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:NJ.hoverlabel,hovertemplate:rWe({},{keys:["value","label"]}),colorscales:VZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:iWe(UZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var uWe=_e((vbr,lWe)=>{"use strict";var kA=Mr(),p7=UJ(),jZt=ha(),aWe=id(),WZt=Ju().defaults,oWe=sS(),sWe=Us(),ZZt=Zd();lWe.exports=function(t,r,n,i){function a(A,L){return kA.coerce(t,r,p7,A,L)}var o=kA.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=sWe.newContainer(r,"node");function u(A,L){return kA.coerce(s,l,p7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),oWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return jZt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=sWe.newContainer(r,"link");function v(A,L){return kA.coerce(h,d,p7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),oWe(h,d,v,o),v("hovertemplate");var x=aWe(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function E(A){var L=aWe(A);if(!L.isValid())return A;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(E):E(p)),v("customdata"),ZZt(h,d,{name:"colorscales",handleItemDefaults:XZt}),WZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var k;l.x.length&&l.y.length&&(k="freeform"),a("arrangement",k),kA.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function XZt(e,t){function r(n,i){return kA.coerce(e,t,p7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var VJ=_e((pbr,cWe)=>{"use strict";cWe.exports=YZt;function YZt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=E[E.length-1];var k=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var _=[],C=[],S=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,_.push(g),C.push(s[g]),S+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(_);for(var P=new Array(S),A=0;A{"use strict";var KZt=VJ(),CA=Mr(),JZt=Ym().wrap,Hk=CA.isArrayOrTypedArray,fWe=CA.isIndex,hWe=Su();function $Zt(e){var t=e.node,r=e.link,n=[],i=Hk(r.color),a=Hk(r.hovercolor),o=Hk(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var x=v+1;e.node._count=x;var b,p=e.node.groups,E={};for(c=0;c0&&fWe(S,x)&&fWe(g,x)&&!(E.hasOwnProperty(S)&&E.hasOwnProperty(g)&&E[S]===E[g])){E.hasOwnProperty(g)&&(g=E[g]),E.hasOwnProperty(S)&&(S=E[S]),S=+S,g=+g,s[S]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:S,target:g,value:+C}),_.source.push(S),_.target.push(g)}}var F=x+p.length,q=Hk(t.color),V=Hk(t.customdata),H=[];for(c=0;cx-1,childrenNodes:[],pointNumber:c,label:X,color:q?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var G=!1;return QZt(F,_.source,_.target)&&(G=!0),{circular:G,links:n,nodes:H,groups:p,groupLookup:E}}function QZt(e,t,r){for(var n=CA.init2dArray(e,0),i=0;i1})}dWe.exports=function(t,r){var n=$Zt(r);return JZt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var gWe=_e((g7,pWe)=>{(function(e,t){typeof g7=="object"&&typeof pWe!="undefined"?t(g7):(e=e||self,t(e.d3=e.d3||{}))})(g7,function(e){"use strict";function t(C){var S=+this._x.call(null,C),g=+this._y.call(null,C);return r(this.cover(S,g),S,g,C)}function r(C,S,g,P){if(isNaN(S)||isNaN(g))return C;var T,F=C._root,q={data:P},V=C._x0,H=C._y0,X=C._x1,G=C._y1,N,Z,ie,ae,we,Ee,ke,ye;if(!F)return C._root=q,C;for(;F.length;)if((we=S>=(N=(V+X)/2))?V=N:X=N,(Ee=g>=(Z=(H+G)/2))?H=Z:G=Z,T=F,!(F=F[ke=Ee<<1|we]))return T[ke]=q,C;if(ie=+C._x.call(null,F.data),ae=+C._y.call(null,F.data),S===ie&&g===ae)return q.next=F,T?T[ke]=q:C._root=q,C;do T=T?T[ke]=new Array(4):C._root=new Array(4),(we=S>=(N=(V+X)/2))?V=N:X=N,(Ee=g>=(Z=(H+G)/2))?H=Z:G=Z;while((ke=Ee<<1|we)===(ye=(ae>=Z)<<1|ie>=N));return T[ye]=F,T[ke]=q,C}function n(C){var S,g,P=C.length,T,F,q=new Array(P),V=new Array(P),H=1/0,X=1/0,G=-1/0,N=-1/0;for(g=0;gG&&(G=T),FN&&(N=F));if(H>G||X>N)return this;for(this.cover(H,X).cover(G,N),g=0;gC||C>=T||P>S||S>=F;)switch(X=(SG||(V=ae.y0)>N||(H=ae.x1)=ke)<<1|C>=Ee)&&(ae=Z[Z.length-1],Z[Z.length-1]=Z[Z.length-1-we],Z[Z.length-1-we]=ae)}else{var ye=C-+this._x.call(null,ie.data),K=S-+this._y.call(null,ie.data),ce=ye*ye+K*K;if(ce=(Z=(q+H)/2))?q=Z:H=Z,(we=N>=(ie=(V+X)/2))?V=ie:X=ie,S=g,!(g=g[Ee=we<<1|ae]))return this;if(!g.length)break;(S[Ee+1&3]||S[Ee+2&3]||S[Ee+3&3])&&(P=S,ke=Ee)}for(;g.data!==C;)if(T=g,!(g=g.next))return this;return(F=g.next)&&delete g.next,T?(F?T.next=F:delete T.next,this):S?(F?S[Ee]=F:delete S[Ee],(g=S[0]||S[1]||S[2]||S[3])&&g===(S[3]||S[2]||S[1]||S[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=F,this)}function c(C){for(var S=0,g=C.length;S{(function(e,t){t(typeof m7=="object"&&typeof mWe!="undefined"?m7:e.d3=e.d3||{})})(m7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var p=new r;if(x instanceof r)x.each(function(_,C){p.set(C,_)});else if(Array.isArray(x)){var E=-1,k=x.length,A;if(b==null)for(;++E=x.length)return p!=null&&_.sort(p),E!=null?E(_):_;for(var P=-1,T=_.length,F=x[C++],q,V,H=n(),X,G=S();++Px.length)return _;var S,g=b[C-1];return E!=null&&C>=x.length?S=_.entries():(S=[],_.each(function(P,T){S.push({key:T,values:L(P,C)})})),g!=null?S.sort(function(P,T){return g(P.key,T.key)}):S}return k={object:function(_){return A(_,0,a,o)},map:function(_){return A(_,0,s,l)},entries:function(_){return L(A(_,0,s,l),0)},key:function(_){return x.push(_),k},sortKeys:function(_){return b[x.length-1]=_,k},sortValues:function(_){return p=_,k},rollup:function(_){return E=_,k}}}function a(){return{}}function o(x,b,p){x[b]=p}function s(){return n()}function l(x,b,p){x.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(x){return x+="",this[t+x]=x,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(x,b){var p=new u;if(x instanceof u)x.each(function(A){p.add(A)});else if(x){var E=-1,k=x.length;if(b==null)for(;++E{(function(e,t){typeof _7=="object"&&typeof yWe!="undefined"?t(_7):(e=e||self,t(e.d3=e.d3||{}))})(_7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof x7=="object"&&typeof xWe!="undefined"?t(x7):(e=e||self,t(e.d3=e.d3||{}))})(x7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=x.prototype={constructor:v,restart:function(C,S,g){if(typeof C!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function x(C,S,g){var P=new v;return P.restart(C,S,g),P}function b(){h(),++t;for(var C=a,S;C;)(S=l-C._time)>=0&&C._call.call(null,S),C=C._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,k(),l=0}}function E(){var C=c.now(),S=C-s;S>i&&(u-=S,s=C)}function k(){for(var C,S=a,g,P=1/0;S;)S._call?(P>S._time&&(P=S._time),C=S,S=S._next):(g=S._next,S._next=null,S=C?C._next=g:a=g);o=C,A(P)}function A(C){if(!t){r&&(r=clearTimeout(r));var S=C-l;S>24?(C<1/0&&(r=setTimeout(p,C-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(E,i)),t=1,f(p))}}function L(C,S,g){var P=new v;return S=S==null?0:+S,P.restart(function(T){P.stop(),C(T+S)},S,g),P}function _(C,S,g){var P=new v,T=S;return S==null?(P.restart(C,S,g),P):(S=+S,g=g==null?h():+g,P.restart(function F(q){q+=T,P.restart(F,T+=S,g),C(q)},S,g),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var TWe=_e((b7,wWe)=>{(function(e,t){typeof b7=="object"&&typeof wWe!="undefined"?t(b7,gWe(),y7(),_We(),bWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(b7,function(e,t,r,n,i){"use strict";function a(C,S){var g;C==null&&(C=0),S==null&&(S=0);function P(){var T,F=g.length,q,V=0,H=0;for(T=0;TN.index){var je=Z-Ce.x-Ce.vx,Se=ie-Ce.y-Ce.vy,Xe=je*je+Se*Se;XeZ+Le||peie+Le||xeH.r&&(H.r=H[X].r)}function V(){if(S){var H,X=S.length,G;for(g=new Array(X),H=0;H1?(we==null?V.remove(ae):V.set(ae,ie(we)),S):V.get(ae)},find:function(ae,we,Ee){var ke=0,ye=C.length,K,ce,pe,xe,Ce;for(Ee==null?Ee=1/0:Ee*=Ee,ke=0;ke1?(X.on(ae,we),S):X.on(ae)}}}function k(){var C,S,g,P=o(-30),T,F=1,q=1/0,V=.81;function H(Z){var ie,ae=C.length,we=t.quadtree(C,v,x).visitAfter(G);for(g=Z,ie=0;ie=q)return;(Z.data!==S||Z.next)&&(Ee===0&&(Ee=s(),K+=Ee*Ee),ke===0&&(ke=s(),K+=ke*ke),K{(function(e,t){typeof w7=="object"&&typeof AWe!="undefined"?t(w7):(e=e||self,t(e.d3=e.d3||{}))})(w7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,x=c-l,b=h-s,p=d-l,E=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(E>n)if(!(Math.abs(p*v-x*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var k=u-h,A=c-d,L=v*v+x*x,_=k*k+A*A,C=Math.sqrt(L),S=Math.sqrt(E),g=f*Math.tan((t-Math.acos((L+E-_)/(2*C*S)))/2),P=g/S,T=g/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*k>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*x)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),x=s+d,b=l+v,p=1^h,E=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),u&&(E<0&&(E=E%r+r),E>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=x)+","+(this._y1=b):E>n&&(this._+="A"+u+","+u+",0,"+ +(E>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var HJ=_e((T7,SWe)=>{(function(e,t){typeof T7=="object"&&typeof SWe!="undefined"?t(T7,MWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(T7,function(e,t){"use strict";function r(wt){return function(){return wt}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(wt){return wt>1?0:wt<-1?f:Math.acos(wt)}function x(wt){return wt>=1?h:wt<=-1?-h:Math.asin(wt)}function b(wt){return wt.innerRadius}function p(wt){return wt.outerRadius}function E(wt){return wt.startAngle}function k(wt){return wt.endAngle}function A(wt){return wt&&wt.padAngle}function L(wt,Lr,Pr,Xr,bi,ai,Wi,ii){var Ui=Pr-wt,Vn=Xr-Lr,Tn=Wi-bi,xa=ii-ai,fo=xa*Ui-Tn*Vn;if(!(fo*foQl*Ql+Hu*Hu&&(ks=Ys,ml=Hs),{cx:ks,cy:ml,x01:-Tn,y01:-xa,x11:ks*(bi/wl-1),y11:ml*(bi/wl-1)}}function C(){var wt=b,Lr=p,Pr=r(0),Xr=null,bi=E,ai=k,Wi=A,ii=null;function Ui(){var Vn,Tn,xa=+wt.apply(this,arguments),fo=+Lr.apply(this,arguments),zo=bi.apply(this,arguments)-h,lo=ai.apply(this,arguments)-h,To=n(lo-zo),mo=lo>zo;if(ii||(ii=Vn=t.path()),foc))ii.moveTo(0,0);else if(To>d-c)ii.moveTo(fo*a(zo),fo*l(zo)),ii.arc(0,0,fo,zo,lo,!mo),xa>c&&(ii.moveTo(xa*a(lo),xa*l(lo)),ii.arc(0,0,xa,lo,zo,mo));else{var Ds=zo,Es=lo,Zs=zo,Xs=lo,wl=To,is=To,cl=Wi.apply(this,arguments)/2,ks=cl>c&&(Xr?+Xr.apply(this,arguments):u(xa*xa+fo*fo)),ml=s(n(fo-xa)/2,+Pr.apply(this,arguments)),Ys=ml,Hs=ml,Ao,ls;if(ks>c){var Ql=x(ks/xa*l(cl)),Hu=x(ks/fo*l(cl));(wl-=Ql*2)>c?(Ql*=mo?1:-1,Zs+=Ql,Xs-=Ql):(wl=0,Zs=Xs=(zo+lo)/2),(is-=Hu*2)>c?(Hu*=mo?1:-1,Ds+=Hu,Es-=Hu):(is=0,Ds=Es=(zo+lo)/2)}var fc=fo*a(Ds),vs=fo*l(Ds),on=xa*a(Xs),ua=xa*l(Xs);if(ml>c){var Qu=fo*a(Es),Rl=fo*l(Es),uo=xa*a(Zs),Zl=xa*l(Zs),Ks;if(Toc?Hs>c?(Ao=_(uo,Zl,fc,vs,fo,Hs,mo),ls=_(Qu,Rl,on,ua,fo,Hs,mo),ii.moveTo(Ao.cx+Ao.x01,Ao.cy+Ao.y01),Hsc)||!(wl>c)?ii.lineTo(on,ua):Ys>c?(Ao=_(on,ua,Qu,Rl,xa,-Ys,mo),ls=_(fc,vs,uo,Zl,xa,-Ys,mo),ii.lineTo(Ao.cx+Ao.x01,Ao.cy+Ao.y01),Ys=fo;--zo)ii.point(Es[zo],Zs[zo]);ii.lineEnd(),ii.areaEnd()}mo&&(Es[xa]=+wt(To,xa,Tn),Zs[xa]=+Pr(To,xa,Tn),ii.point(Lr?+Lr(To,xa,Tn):Es[xa],Xr?+Xr(To,xa,Tn):Zs[xa]))}if(Ds)return ii=null,Ds+""||null}function Vn(){return F().defined(bi).curve(Wi).context(ai)}return Ui.x=function(Tn){return arguments.length?(wt=typeof Tn=="function"?Tn:r(+Tn),Lr=null,Ui):wt},Ui.x0=function(Tn){return arguments.length?(wt=typeof Tn=="function"?Tn:r(+Tn),Ui):wt},Ui.x1=function(Tn){return arguments.length?(Lr=Tn==null?null:typeof Tn=="function"?Tn:r(+Tn),Ui):Lr},Ui.y=function(Tn){return arguments.length?(Pr=typeof Tn=="function"?Tn:r(+Tn),Xr=null,Ui):Pr},Ui.y0=function(Tn){return arguments.length?(Pr=typeof Tn=="function"?Tn:r(+Tn),Ui):Pr},Ui.y1=function(Tn){return arguments.length?(Xr=Tn==null?null:typeof Tn=="function"?Tn:r(+Tn),Ui):Xr},Ui.lineX0=Ui.lineY0=function(){return Vn().x(wt).y(Pr)},Ui.lineY1=function(){return Vn().x(wt).y(Xr)},Ui.lineX1=function(){return Vn().x(Lr).y(Pr)},Ui.defined=function(Tn){return arguments.length?(bi=typeof Tn=="function"?Tn:r(!!Tn),Ui):bi},Ui.curve=function(Tn){return arguments.length?(Wi=Tn,ai!=null&&(ii=Wi(ai)),Ui):Wi},Ui.context=function(Tn){return arguments.length?(Tn==null?ai=ii=null:ii=Wi(ai=Tn),Ui):ai},Ui}function V(wt,Lr){return Lrwt?1:Lr>=wt?0:NaN}function H(wt){return wt}function X(){var wt=H,Lr=V,Pr=null,Xr=r(0),bi=r(d),ai=r(0);function Wi(ii){var Ui,Vn=ii.length,Tn,xa,fo=0,zo=new Array(Vn),lo=new Array(Vn),To=+Xr.apply(this,arguments),mo=Math.min(d,Math.max(-d,bi.apply(this,arguments)-To)),Ds,Es=Math.min(Math.abs(mo)/Vn,ai.apply(this,arguments)),Zs=Es*(mo<0?-1:1),Xs;for(Ui=0;Ui0&&(fo+=Xs);for(Lr!=null?zo.sort(function(wl,is){return Lr(lo[wl],lo[is])}):Pr!=null&&zo.sort(function(wl,is){return Pr(ii[wl],ii[is])}),Ui=0,xa=fo?(mo-Vn*Zs)/fo:0;Ui0?Xs*xa:0)+Zs,lo[Tn]={data:ii[Tn],index:Ui,value:Xs,startAngle:To,endAngle:Ds,padAngle:Es};return lo}return Wi.value=function(ii){return arguments.length?(wt=typeof ii=="function"?ii:r(+ii),Wi):wt},Wi.sortValues=function(ii){return arguments.length?(Lr=ii,Pr=null,Wi):Lr},Wi.sort=function(ii){return arguments.length?(Pr=ii,Lr=null,Wi):Pr},Wi.startAngle=function(ii){return arguments.length?(Xr=typeof ii=="function"?ii:r(+ii),Wi):Xr},Wi.endAngle=function(ii){return arguments.length?(bi=typeof ii=="function"?ii:r(+ii),Wi):bi},Wi.padAngle=function(ii){return arguments.length?(ai=typeof ii=="function"?ii:r(+ii),Wi):ai},Wi}var G=Z(g);function N(wt){this._curve=wt}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(wt,Lr){this._curve.point(Lr*Math.sin(wt),Lr*-Math.cos(wt))}};function Z(wt){function Lr(Pr){return new N(wt(Pr))}return Lr._curve=wt,Lr}function ie(wt){var Lr=wt.curve;return wt.angle=wt.x,delete wt.x,wt.radius=wt.y,delete wt.y,wt.curve=function(Pr){return arguments.length?Lr(Z(Pr)):Lr()._curve},wt}function ae(){return ie(F().curve(G))}function we(){var wt=q().curve(G),Lr=wt.curve,Pr=wt.lineX0,Xr=wt.lineX1,bi=wt.lineY0,ai=wt.lineY1;return wt.angle=wt.x,delete wt.x,wt.startAngle=wt.x0,delete wt.x0,wt.endAngle=wt.x1,delete wt.x1,wt.radius=wt.y,delete wt.y,wt.innerRadius=wt.y0,delete wt.y0,wt.outerRadius=wt.y1,delete wt.y1,wt.lineStartAngle=function(){return ie(Pr())},delete wt.lineX0,wt.lineEndAngle=function(){return ie(Xr())},delete wt.lineX1,wt.lineInnerRadius=function(){return ie(bi())},delete wt.lineY0,wt.lineOuterRadius=function(){return ie(ai())},delete wt.lineY1,wt.curve=function(Wi){return arguments.length?Lr(Z(Wi)):Lr()._curve},wt}function Ee(wt,Lr){return[(Lr=+Lr)*Math.cos(wt-=Math.PI/2),Lr*Math.sin(wt)]}var ke=Array.prototype.slice;function ye(wt){return wt.source}function K(wt){return wt.target}function ce(wt){var Lr=ye,Pr=K,Xr=P,bi=T,ai=null;function Wi(){var ii,Ui=ke.call(arguments),Vn=Lr.apply(this,Ui),Tn=Pr.apply(this,Ui);if(ai||(ai=ii=t.path()),wt(ai,+Xr.apply(this,(Ui[0]=Vn,Ui)),+bi.apply(this,Ui),+Xr.apply(this,(Ui[0]=Tn,Ui)),+bi.apply(this,Ui)),ii)return ai=null,ii+""||null}return Wi.source=function(ii){return arguments.length?(Lr=ii,Wi):Lr},Wi.target=function(ii){return arguments.length?(Pr=ii,Wi):Pr},Wi.x=function(ii){return arguments.length?(Xr=typeof ii=="function"?ii:r(+ii),Wi):Xr},Wi.y=function(ii){return arguments.length?(bi=typeof ii=="function"?ii:r(+ii),Wi):bi},Wi.context=function(ii){return arguments.length?(ai=ii==null?null:ii,Wi):ai},Wi}function pe(wt,Lr,Pr,Xr,bi){wt.moveTo(Lr,Pr),wt.bezierCurveTo(Lr=(Lr+Xr)/2,Pr,Lr,bi,Xr,bi)}function xe(wt,Lr,Pr,Xr,bi){wt.moveTo(Lr,Pr),wt.bezierCurveTo(Lr,Pr=(Pr+bi)/2,Xr,Pr,Xr,bi)}function Ce(wt,Lr,Pr,Xr,bi){var ai=Ee(Lr,Pr),Wi=Ee(Lr,Pr=(Pr+bi)/2),ii=Ee(Xr,Pr),Ui=Ee(Xr,bi);wt.moveTo(ai[0],ai[1]),wt.bezierCurveTo(Wi[0],Wi[1],ii[0],ii[1],Ui[0],Ui[1])}function Me(){return ce(pe)}function Le(){return ce(xe)}function je(){var wt=ce(Ce);return wt.angle=wt.x,delete wt.x,wt.radius=wt.y,delete wt.y,wt}var Se={draw:function(wt,Lr){var Pr=Math.sqrt(Lr/f);wt.moveTo(Pr,0),wt.arc(0,0,Pr,0,d)}},Xe={draw:function(wt,Lr){var Pr=Math.sqrt(Lr/5)/2;wt.moveTo(-3*Pr,-Pr),wt.lineTo(-Pr,-Pr),wt.lineTo(-Pr,-3*Pr),wt.lineTo(Pr,-3*Pr),wt.lineTo(Pr,-Pr),wt.lineTo(3*Pr,-Pr),wt.lineTo(3*Pr,Pr),wt.lineTo(Pr,Pr),wt.lineTo(Pr,3*Pr),wt.lineTo(-Pr,3*Pr),wt.lineTo(-Pr,Pr),wt.lineTo(-3*Pr,Pr),wt.closePath()}},lt=Math.sqrt(1/3),At=lt*2,Yt={draw:function(wt,Lr){var Pr=Math.sqrt(Lr/At),Xr=Pr*lt;wt.moveTo(0,-Pr),wt.lineTo(Xr,0),wt.lineTo(0,Pr),wt.lineTo(-Xr,0),wt.closePath()}},nt=.8908130915292852,ot=Math.sin(f/10)/Math.sin(7*f/10),Ft=Math.sin(d/10)*ot,Lt=-Math.cos(d/10)*ot,Rt={draw:function(wt,Lr){var Pr=Math.sqrt(Lr*nt),Xr=Ft*Pr,bi=Lt*Pr;wt.moveTo(0,-Pr),wt.lineTo(Xr,bi);for(var ai=1;ai<5;++ai){var Wi=d*ai/5,ii=Math.cos(Wi),Ui=Math.sin(Wi);wt.lineTo(Ui*Pr,-ii*Pr),wt.lineTo(ii*Xr-Ui*bi,Ui*Xr+ii*bi)}wt.closePath()}},Xt={draw:function(wt,Lr){var Pr=Math.sqrt(Lr),Xr=-Pr/2;wt.rect(Xr,Xr,Pr,Pr)}},xr=Math.sqrt(3),er={draw:function(wt,Lr){var Pr=-Math.sqrt(Lr/(xr*3));wt.moveTo(0,Pr*2),wt.lineTo(-xr*Pr,-Pr),wt.lineTo(xr*Pr,-Pr),wt.closePath()}},Ge=-.5,yt=Math.sqrt(3)/2,_t=1/Math.sqrt(12),Ct=(_t/2+1)*3,St={draw:function(wt,Lr){var Pr=Math.sqrt(Lr/Ct),Xr=Pr/2,bi=Pr*_t,ai=Xr,Wi=Pr*_t+Pr,ii=-ai,Ui=Wi;wt.moveTo(Xr,bi),wt.lineTo(ai,Wi),wt.lineTo(ii,Ui),wt.lineTo(Ge*Xr-yt*bi,yt*Xr+Ge*bi),wt.lineTo(Ge*ai-yt*Wi,yt*ai+Ge*Wi),wt.lineTo(Ge*ii-yt*Ui,yt*ii+Ge*Ui),wt.lineTo(Ge*Xr+yt*bi,Ge*bi-yt*Xr),wt.lineTo(Ge*ai+yt*Wi,Ge*Wi-yt*ai),wt.lineTo(Ge*ii+yt*Ui,Ge*Ui-yt*ii),wt.closePath()}},kt=[Se,Xe,Yt,Xt,Rt,er,St];function ft(){var wt=r(Se),Lr=r(64),Pr=null;function Xr(){var bi;if(Pr||(Pr=bi=t.path()),wt.apply(this,arguments).draw(Pr,+Lr.apply(this,arguments)),bi)return Pr=null,bi+""||null}return Xr.type=function(bi){return arguments.length?(wt=typeof bi=="function"?bi:r(bi),Xr):wt},Xr.size=function(bi){return arguments.length?(Lr=typeof bi=="function"?bi:r(+bi),Xr):Lr},Xr.context=function(bi){return arguments.length?(Pr=bi==null?null:bi,Xr):Pr},Xr}function Gt(){}function $t(wt,Lr,Pr){wt._context.bezierCurveTo((2*wt._x0+wt._x1)/3,(2*wt._y0+wt._y1)/3,(wt._x0+2*wt._x1)/3,(wt._y0+2*wt._y1)/3,(wt._x0+4*wt._x1+Lr)/6,(wt._y0+4*wt._y1+Pr)/6)}function hr(wt){this._context=wt}hr.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:$t(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(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1,this._line?this._context.lineTo(wt,Lr):this._context.moveTo(wt,Lr);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:$t(this,wt,Lr);break}this._x0=this._x1,this._x1=wt,this._y0=this._y1,this._y1=Lr}};function _r(wt){return new hr(wt)}function Nr(wt){this._context=wt}Nr.prototype={areaStart:Gt,areaEnd:Gt,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(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1,this._x2=wt,this._y2=Lr;break;case 1:this._point=2,this._x3=wt,this._y3=Lr;break;case 2:this._point=3,this._x4=wt,this._y4=Lr,this._context.moveTo((this._x0+4*this._x1+wt)/6,(this._y0+4*this._y1+Lr)/6);break;default:$t(this,wt,Lr);break}this._x0=this._x1,this._x1=wt,this._y0=this._y1,this._y1=Lr}};function Br(wt){return new Nr(wt)}function Ur(wt){this._context=wt}Ur.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(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Pr=(this._x0+4*this._x1+wt)/6,Xr=(this._y0+4*this._y1+Lr)/6;this._line?this._context.lineTo(Pr,Xr):this._context.moveTo(Pr,Xr);break;case 3:this._point=4;default:$t(this,wt,Lr);break}this._x0=this._x1,this._x1=wt,this._y0=this._y1,this._y1=Lr}};function ut(wt){return new Ur(wt)}function rt(wt,Lr){this._basis=new hr(wt),this._beta=Lr}rt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var wt=this._x,Lr=this._y,Pr=wt.length-1;if(Pr>0)for(var Xr=wt[0],bi=Lr[0],ai=wt[Pr]-Xr,Wi=Lr[Pr]-bi,ii=-1,Ui;++ii<=Pr;)Ui=ii/Pr,this._basis.point(this._beta*wt[ii]+(1-this._beta)*(Xr+Ui*ai),this._beta*Lr[ii]+(1-this._beta)*(bi+Ui*Wi));this._x=this._y=null,this._basis.lineEnd()},point:function(wt,Lr){this._x.push(+wt),this._y.push(+Lr)}};var it=function wt(Lr){function Pr(Xr){return Lr===1?new hr(Xr):new rt(Xr,Lr)}return Pr.beta=function(Xr){return wt(+Xr)},Pr}(.85);function Ze(wt,Lr,Pr){wt._context.bezierCurveTo(wt._x1+wt._k*(wt._x2-wt._x0),wt._y1+wt._k*(wt._y2-wt._y0),wt._x2+wt._k*(wt._x1-Lr),wt._y2+wt._k*(wt._y1-Pr),wt._x2,wt._y2)}function Je(wt,Lr){this._context=wt,this._k=(1-Lr)/6}Je.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:Ze(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1,this._line?this._context.lineTo(wt,Lr):this._context.moveTo(wt,Lr);break;case 1:this._point=2,this._x1=wt,this._y1=Lr;break;case 2:this._point=3;default:Ze(this,wt,Lr);break}this._x0=this._x1,this._x1=this._x2,this._x2=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var ht=function wt(Lr){function Pr(Xr){return new Je(Xr,Lr)}return Pr.tension=function(Xr){return wt(+Xr)},Pr}(0);function Ie(wt,Lr){this._context=wt,this._k=(1-Lr)/6}Ie.prototype={areaStart:Gt,areaEnd:Gt,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(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1,this._x3=wt,this._y3=Lr;break;case 1:this._point=2,this._context.moveTo(this._x4=wt,this._y4=Lr);break;case 2:this._point=3,this._x5=wt,this._y5=Lr;break;default:Ze(this,wt,Lr);break}this._x0=this._x1,this._x1=this._x2,this._x2=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var le=function wt(Lr){function Pr(Xr){return new Ie(Xr,Lr)}return Pr.tension=function(Xr){return wt(+Xr)},Pr}(0);function be(wt,Lr){this._context=wt,this._k=(1-Lr)/6}be.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(wt,Lr){switch(wt=+wt,Lr=+Lr,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:Ze(this,wt,Lr);break}this._x0=this._x1,this._x1=this._x2,this._x2=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var Qe=function wt(Lr){function Pr(Xr){return new be(Xr,Lr)}return Pr.tension=function(Xr){return wt(+Xr)},Pr}(0);function xt(wt,Lr,Pr){var Xr=wt._x1,bi=wt._y1,ai=wt._x2,Wi=wt._y2;if(wt._l01_a>c){var ii=2*wt._l01_2a+3*wt._l01_a*wt._l12_a+wt._l12_2a,Ui=3*wt._l01_a*(wt._l01_a+wt._l12_a);Xr=(Xr*ii-wt._x0*wt._l12_2a+wt._x2*wt._l01_2a)/Ui,bi=(bi*ii-wt._y0*wt._l12_2a+wt._y2*wt._l01_2a)/Ui}if(wt._l23_a>c){var Vn=2*wt._l23_2a+3*wt._l23_a*wt._l12_a+wt._l12_2a,Tn=3*wt._l23_a*(wt._l23_a+wt._l12_a);ai=(ai*Vn+wt._x1*wt._l23_2a-Lr*wt._l12_2a)/Tn,Wi=(Wi*Vn+wt._y1*wt._l23_2a-Pr*wt._l12_2a)/Tn}wt._context.bezierCurveTo(Xr,bi,ai,Wi,wt._x2,wt._y2)}function Ot(wt,Lr){this._context=wt,this._alpha=Lr}Ot.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(wt,Lr){if(wt=+wt,Lr=+Lr,this._point){var Pr=this._x2-wt,Xr=this._y2-Lr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Pr*Pr+Xr*Xr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(wt,Lr):this._context.moveTo(wt,Lr);break;case 1:this._point=2;break;case 2:this._point=3;default:xt(this,wt,Lr);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=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var rr=function wt(Lr){function Pr(Xr){return Lr?new Ot(Xr,Lr):new Je(Xr,0)}return Pr.alpha=function(Xr){return wt(+Xr)},Pr}(.5);function Jr(wt,Lr){this._context=wt,this._alpha=Lr}Jr.prototype={areaStart:Gt,areaEnd:Gt,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(wt,Lr){if(wt=+wt,Lr=+Lr,this._point){var Pr=this._x2-wt,Xr=this._y2-Lr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Pr*Pr+Xr*Xr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=wt,this._y3=Lr;break;case 1:this._point=2,this._context.moveTo(this._x4=wt,this._y4=Lr);break;case 2:this._point=3,this._x5=wt,this._y5=Lr;break;default:xt(this,wt,Lr);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=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var ni=function wt(Lr){function Pr(Xr){return Lr?new Jr(Xr,Lr):new Ie(Xr,0)}return Pr.alpha=function(Xr){return wt(+Xr)},Pr}(.5);function Gr(wt,Lr){this._context=wt,this._alpha=Lr}Gr.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(wt,Lr){if(wt=+wt,Lr=+Lr,this._point){var Pr=this._x2-wt,Xr=this._y2-Lr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Pr*Pr+Xr*Xr,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:xt(this,wt,Lr);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=wt,this._y0=this._y1,this._y1=this._y2,this._y2=Lr}};var ri=function wt(Lr){function Pr(Xr){return Lr?new Gr(Xr,Lr):new be(Xr,0)}return Pr.alpha=function(Xr){return wt(+Xr)},Pr}(.5);function Ti(wt){this._context=wt}Ti.prototype={areaStart:Gt,areaEnd:Gt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(wt,Lr){wt=+wt,Lr=+Lr,this._point?this._context.lineTo(wt,Lr):(this._point=1,this._context.moveTo(wt,Lr))}};function an(wt){return new Ti(wt)}function Yi(wt){return wt<0?-1:1}function Xi(wt,Lr,Pr){var Xr=wt._x1-wt._x0,bi=Lr-wt._x1,ai=(wt._y1-wt._y0)/(Xr||bi<0&&-0),Wi=(Pr-wt._y1)/(bi||Xr<0&&-0),ii=(ai*bi+Wi*Xr)/(Xr+bi);return(Yi(ai)+Yi(Wi))*Math.min(Math.abs(ai),Math.abs(Wi),.5*Math.abs(ii))||0}function An(wt,Lr){var Pr=wt._x1-wt._x0;return Pr?(3*(wt._y1-wt._y0)/Pr-Lr)/2:Lr}function Qi(wt,Lr,Pr){var Xr=wt._x0,bi=wt._y0,ai=wt._x1,Wi=wt._y1,ii=(ai-Xr)/3;wt._context.bezierCurveTo(Xr+ii,bi+ii*Lr,ai-ii,Wi-ii*Pr,ai,Wi)}function Un(wt){this._context=wt}Un.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:Qi(this,this._t0,An(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(wt,Lr){var Pr=NaN;if(wt=+wt,Lr=+Lr,!(wt===this._x1&&Lr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(wt,Lr):this._context.moveTo(wt,Lr);break;case 1:this._point=2;break;case 2:this._point=3,Qi(this,An(this,Pr=Xi(this,wt,Lr)),Pr);break;default:Qi(this,this._t0,Pr=Xi(this,wt,Lr));break}this._x0=this._x1,this._x1=wt,this._y0=this._y1,this._y1=Lr,this._t0=Pr}}};function Xn(wt){this._context=new It(wt)}(Xn.prototype=Object.create(Un.prototype)).point=function(wt,Lr){Un.prototype.point.call(this,Lr,wt)};function It(wt){this._context=wt}It.prototype={moveTo:function(wt,Lr){this._context.moveTo(Lr,wt)},closePath:function(){this._context.closePath()},lineTo:function(wt,Lr){this._context.lineTo(Lr,wt)},bezierCurveTo:function(wt,Lr,Pr,Xr,bi,ai){this._context.bezierCurveTo(Lr,wt,Xr,Pr,ai,bi)}};function ct(wt){return new Un(wt)}function Vt(wt){return new Xn(wt)}function Wt(wt){this._context=wt}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var wt=this._x,Lr=this._y,Pr=wt.length;if(Pr)if(this._line?this._context.lineTo(wt[0],Lr[0]):this._context.moveTo(wt[0],Lr[0]),Pr===2)this._context.lineTo(wt[1],Lr[1]);else for(var Xr=gr(wt),bi=gr(Lr),ai=0,Wi=1;Wi=0;--Lr)bi[Lr]=(Wi[Lr]-bi[Lr+1])/ai[Lr];for(ai[Pr-1]=(wt[Pr]+bi[Pr-1])/2,Lr=0;Lr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(wt,Lr){switch(wt=+wt,Lr=+Lr,this._point){case 0:this._point=1,this._line?this._context.lineTo(wt,Lr):this._context.moveTo(wt,Lr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Lr),this._context.lineTo(wt,Lr);else{var Pr=this._x*(1-this._t)+wt*this._t;this._context.lineTo(Pr,this._y),this._context.lineTo(Pr,Lr)}break}}this._x=wt,this._y=Lr}};function Hr(wt){return new Zr(wt,.5)}function mi(wt){return new Zr(wt,0)}function Ei(wt){return new Zr(wt,1)}function ki(wt,Lr){if((Wi=wt.length)>1)for(var Pr=1,Xr,bi,ai=wt[Lr[0]],Wi,ii=ai.length;Pr=0;)Pr[Lr]=Lr;return Pr}function ji(wt,Lr){return wt[Lr]}function $i(){var wt=r([]),Lr=Ri,Pr=ki,Xr=ji;function bi(ai){var Wi=wt.apply(this,arguments),ii,Ui=ai.length,Vn=Wi.length,Tn=new Array(Vn),xa;for(ii=0;ii0){for(var Pr,Xr,bi=0,ai=wt[0].length,Wi;bi0)for(var Pr,Xr=0,bi,ai,Wi,ii,Ui,Vn=wt[Lr[0]].length;Xr0?(bi[0]=Wi,bi[1]=Wi+=ai):ai<0?(bi[1]=ii,bi[0]=ii+=ai):(bi[0]=0,bi[1]=ai)}function sa(wt,Lr){if((bi=wt.length)>0){for(var Pr=0,Xr=wt[Lr[0]],bi,ai=Xr.length;Pr0)||!((ai=(bi=wt[Lr[0]]).length)>0))){for(var Pr=0,Xr=1,bi,ai,Wi;Xrai&&(ai=bi,Pr=Lr);return Pr}function aa(wt){var Lr=wt.map(go);return Ri(wt).sort(function(Pr,Xr){return Lr[Pr]-Lr[Xr]})}function go(wt){for(var Lr=0,Pr=-1,Xr=wt.length,bi;++Pr{(function(e,t){typeof A7=="object"&&typeof EWe!="undefined"?t(A7,$E(),y7(),HJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(A7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function x(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function E(g){return g.nodes}function k(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,F=1,q=24,V=8,H=p,X=s,G=E,N=k,Z=32,ie=2/3;function ae(){var ce={nodes:G.apply(null,arguments),links:N.apply(null,arguments)};return we(ce),Ee(ce),ke(ce),ye(ce,Z),K(ce),ce}ae.update=function(ce){return K(ce),ce},ae.nodeId=function(ce){return arguments.length?(H=typeof ce=="function"?ce:u(ce),ae):H},ae.nodeAlign=function(ce){return arguments.length?(X=typeof ce=="function"?ce:u(ce),ae):X},ae.nodeWidth=function(ce){return arguments.length?(q=+ce,ae):q},ae.nodePadding=function(ce){return arguments.length?(V=+ce,ae):V},ae.nodes=function(ce){return arguments.length?(G=typeof ce=="function"?ce:u(ce),ae):G},ae.links=function(ce){return arguments.length?(N=typeof ce=="function"?ce:u(ce),ae):N},ae.size=function(ce){return arguments.length?(g=P=0,T=+ce[0],F=+ce[1],ae):[T-g,F-P]},ae.extent=function(ce){return arguments.length?(g=+ce[0][0],T=+ce[1][0],P=+ce[0][1],F=+ce[1][1],ae):[[g,P],[T,F]]},ae.iterations=function(ce){return arguments.length?(Z=+ce,ae):Z};function we(ce){ce.nodes.forEach(function(xe,Ce){xe.index=Ce,xe.sourceLinks=[],xe.targetLinks=[]});var pe=r.map(ce.nodes,H);ce.links.forEach(function(xe,Ce){xe.index=Ce;var Me=xe.source,Le=xe.target;typeof Me!="object"&&(Me=xe.source=A(pe,Me)),typeof Le!="object"&&(Le=xe.target=A(pe,Le)),Me.sourceLinks.push(xe),Le.targetLinks.push(xe)})}function Ee(ce){ce.nodes.forEach(function(pe){pe.value=Math.max(t.sum(pe.sourceLinks,d),t.sum(pe.targetLinks,d))})}function ke(ce){var pe,xe,Ce;for(pe=ce.nodes,xe=[],Ce=0;pe.length;++Ce,pe=xe,xe=[])pe.forEach(function(Le){Le.depth=Ce,Le.sourceLinks.forEach(function(je){xe.indexOf(je.target)<0&&xe.push(je.target)})});for(pe=ce.nodes,xe=[],Ce=0;pe.length;++Ce,pe=xe,xe=[])pe.forEach(function(Le){Le.height=Ce,Le.targetLinks.forEach(function(je){xe.indexOf(je.source)<0&&xe.push(je.source)})});var Me=(T-g-q)/(Ce-1);ce.nodes.forEach(function(Le){Le.x1=(Le.x0=g+Math.max(0,Math.min(Ce-1,Math.floor(X.call(null,Le,Ce))))*Me)+q})}function ye(ce){var pe=r.nest().key(function(Xe){return Xe.x0}).sortKeys(t.ascending).entries(ce.nodes).map(function(Xe){return Xe.values});Me(),Se();for(var xe=1,Ce=Z;Ce>0;--Ce)je(xe*=.99),Se(),Le(xe),Se();function Me(){var Xe=t.max(pe,function(Yt){return Yt.length}),lt=ie*(F-P)/(Xe-1);V>lt&&(V=lt);var At=t.min(pe,function(Yt){return(F-P-(Yt.length-1)*V)/t.sum(Yt,d)});pe.forEach(function(Yt){Yt.forEach(function(nt,ot){nt.y1=(nt.y0=ot)+nt.value*At})}),ce.links.forEach(function(Yt){Yt.width=Yt.value*At})}function Le(Xe){pe.forEach(function(lt){lt.forEach(function(At){if(At.targetLinks.length){var Yt=(t.sum(At.targetLinks,x)/t.sum(At.targetLinks,d)-v(At))*Xe;At.y0+=Yt,At.y1+=Yt}})})}function je(Xe){pe.slice().reverse().forEach(function(lt){lt.forEach(function(At){if(At.sourceLinks.length){var Yt=(t.sum(At.sourceLinks,b)/t.sum(At.sourceLinks,d)-v(At))*Xe;At.y0+=Yt,At.y1+=Yt}})})}function Se(){pe.forEach(function(Xe){var lt,At,Yt=P,nt=Xe.length,ot;for(Xe.sort(h),ot=0;ot0&&(lt.y0+=At,lt.y1+=At),Yt=lt.y1+V;if(At=Yt-V-F,At>0)for(Yt=lt.y0-=At,lt.y1-=At,ot=nt-2;ot>=0;--ot)lt=Xe[ot],At=lt.y1+V-Yt,At>0&&(lt.y0-=At,lt.y1-=At),Yt=lt.y0})}}function K(ce){ce.nodes.forEach(function(pe){pe.sourceLinks.sort(f),pe.targetLinks.sort(c)}),ce.nodes.forEach(function(pe){var xe=pe.y0,Ce=xe;pe.sourceLinks.forEach(function(Me){Me.y0=xe+Me.width/2,xe+=Me.width}),pe.targetLinks.forEach(function(Me){Me.y1=Ce+Me.width/2,Ce+=Me.width})})}return ae};function _(g){return[g.source.x1,g.y0]}function C(g){return[g.target.x0,g.y1]}var S=function(){return n.linkHorizontal().source(_).target(C)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})})});var LWe=_e((mbr,CWe)=>{var eXt=VJ();CWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(k){a[k]=!1,o.hasOwnProperty(k)&&Object.keys(o[k]).forEach(function(A){delete o[k][A],a[A]&&u(A)})}function c(k){var A=!1;i.push(k),a[k]=!0;var L,_;for(L=0;L=k})}function d(k){h(k);for(var A=t,L=eXt(A),_=L.components.filter(function(q){return q.length>1}),C=1/0,S,g=0;g<_.length;g++)for(var P=0;P<_[g].length;P++)_[g][P]{(function(e,t){typeof M7=="object"&&typeof PWe!="undefined"?t(M7,$E(),y7(),HJ(),LWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(M7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(nt){return nt.target.depth}function o(nt){return nt.depth}function s(nt,ot){return ot-1-nt.height}function l(nt,ot){return nt.sourceLinks.length?nt.depth:ot-1}function u(nt){return nt.targetLinks.length?nt.depth:nt.sourceLinks.length?t.min(nt.sourceLinks,a)-1:0}function c(nt){return function(){return nt}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt};function h(nt,ot){return v(nt.source,ot.source)||nt.index-ot.index}function d(nt,ot){return v(nt.target,ot.target)||nt.index-ot.index}function v(nt,ot){return nt.partOfCycle===ot.partOfCycle?nt.y0-ot.y0:nt.circularLinkType==="top"||ot.circularLinkType==="bottom"?-1:1}function x(nt){return nt.value}function b(nt){return(nt.y0+nt.y1)/2}function p(nt){return b(nt.source)}function E(nt){return b(nt.target)}function k(nt){return nt.index}function A(nt){return nt.nodes}function L(nt){return nt.links}function _(nt,ot){var Ft=nt.get(ot);if(!Ft)throw new Error("missing: "+ot);return Ft}function C(nt,ot){return ot(nt)}var S=25,g=10,P=.3;function T(){var nt=0,ot=0,Ft=1,Lt=1,Rt=24,Xt,xr=k,er=l,Ge=A,yt=L,_t=32,Ct=2,St,kt=null;function ft(){var ut={nodes:Ge.apply(null,arguments),links:yt.apply(null,arguments)};Gt(ut),F(ut,xr,kt),$t(ut),Nr(ut),q(ut,xr),Br(ut,_t,xr),Ur(ut);for(var rt=4,it=0;it0?rt+S+g:rt,it=it>0?it+S+g:it,Ze=Ze>0?Ze+S+g:Ze,Je=Je>0?Je+S+g:Je,{top:rt,bottom:it,left:Je,right:Ze}}function _r(ut,rt){var it=t.max(ut.nodes,function(Qe){return Qe.column}),Ze=Ft-nt,Je=Lt-ot,ht=Ze+rt.right+rt.left,Ie=Je+rt.top+rt.bottom,le=Ze/ht,be=Je/Ie;return nt=nt*le+rt.left,Ft=rt.right==0?Ft:Ft*le,ot=ot*be+rt.top,Lt=Lt*be,ut.nodes.forEach(function(Qe){Qe.x0=nt+Qe.column*((Ft-nt-Rt)/it),Qe.x1=Qe.x0+Rt}),be}function Nr(ut){var rt,it,Ze;for(rt=ut.nodes,it=[],Ze=0;rt.length;++Ze,rt=it,it=[])rt.forEach(function(Je){Je.depth=Ze,Je.sourceLinks.forEach(function(ht){it.indexOf(ht.target)<0&&!ht.circular&&it.push(ht.target)})});for(rt=ut.nodes,it=[],Ze=0;rt.length;++Ze,rt=it,it=[])rt.forEach(function(Je){Je.height=Ze,Je.targetLinks.forEach(function(ht){it.indexOf(ht.source)<0&&!ht.circular&&it.push(ht.source)})});ut.nodes.forEach(function(Je){Je.column=Math.floor(er.call(null,Je,Ze))})}function Br(ut,rt,it){var Ze=r.nest().key(function(Qe){return Qe.column}).sortKeys(t.ascending).entries(ut.nodes).map(function(Qe){return Qe.values});Ie(it),be();for(var Je=1,ht=rt;ht>0;--ht)le(Je*=.99,it),be();function Ie(Qe){if(St){var xt=1/0;Ze.forEach(function(ni){var Gr=Lt*St/(ni.length+1);xt=Gr0))if(ni==0&&Jr==1)ri=Gr.y1-Gr.y0,Gr.y0=Lt/2-ri/2,Gr.y1=Lt/2+ri/2;else if(ni==Ot-1&&Jr==1)ri=Gr.y1-Gr.y0,Gr.y0=Lt/2-ri/2,Gr.y1=Lt/2+ri/2;else{var Ti=0,an=t.mean(Gr.sourceLinks,E),Yi=t.mean(Gr.targetLinks,p);an&&Yi?Ti=(an+Yi)/2:Ti=an||Yi;var Xi=(Ti-b(Gr))*Qe;Gr.y0+=Xi,Gr.y1+=Xi}})})}function be(){Ze.forEach(function(Qe){var xt,Ot,rr=ot,Jr=Qe.length,ni;for(Qe.sort(v),ni=0;ni0&&(xt.y0+=Ot,xt.y1+=Ot),rr=xt.y1+Xt;if(Ot=rr-Xt-Lt,Ot>0)for(rr=xt.y0-=Ot,xt.y1-=Ot,ni=Jr-2;ni>=0;--ni)xt=Qe[ni],Ot=xt.y1+Xt-rr,Ot>0&&(xt.y0-=Ot,xt.y1-=Ot),rr=xt.y0})}}function Ur(ut){ut.nodes.forEach(function(rt){rt.sourceLinks.sort(d),rt.targetLinks.sort(h)}),ut.nodes.forEach(function(rt){var it=rt.y0,Ze=it,Je=rt.y1,ht=Je;rt.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=Je-Ie.width/2,Je=Je-Ie.width):(Ie.y0=it+Ie.width/2,it+=Ie.width)}),rt.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=ht-Ie.width/2,ht=ht-Ie.width):(Ie.y1=Ze+Ie.width/2,Ze+=Ie.width)})})}return ft}function F(nt,ot,Ft){var Lt=0;if(Ft===null){for(var Rt=[],Xt=0;Xtot.source.column)}function X(nt,ot){var Ft=0;nt.sourceLinks.forEach(function(Rt){Ft=Rt.circular&&!At(Rt,ot)?Ft+1:Ft});var Lt=0;return nt.targetLinks.forEach(function(Rt){Lt=Rt.circular&&!At(Rt,ot)?Lt+1:Lt}),Ft+Lt}function G(nt){var ot=nt.source.sourceLinks,Ft=0;ot.forEach(function(Xt){Ft=Xt.circular?Ft+1:Ft});var Lt=nt.target.targetLinks,Rt=0;return Lt.forEach(function(Xt){Rt=Xt.circular?Rt+1:Rt}),!(Ft>1||Rt>1)}function N(nt,ot,Ft){return nt.sort(ae),nt.forEach(function(Lt,Rt){var Xt=0;if(At(Lt,Ft)&&G(Lt))Lt.circularPathData.verticalBuffer=Xt+Lt.width/2;else{var xr=0;for(xr;xrXt?er:Xt}Lt.circularPathData.verticalBuffer=Xt+Lt.width/2}}),nt}function Z(nt,ot,Ft,Lt){var Rt=5,Xt=t.min(nt.links,function(Ge){return Ge.source.y0});nt.links.forEach(function(Ge){Ge.circular&&(Ge.circularPathData={})});var xr=nt.links.filter(function(Ge){return Ge.circularLinkType=="top"});N(xr,ot,Lt);var er=nt.links.filter(function(Ge){return Ge.circularLinkType=="bottom"});N(er,ot,Lt),nt.links.forEach(function(Ge){if(Ge.circular){if(Ge.circularPathData.arcRadius=Ge.width+g,Ge.circularPathData.leftNodeBuffer=Rt,Ge.circularPathData.rightNodeBuffer=Rt,Ge.circularPathData.sourceWidth=Ge.source.x1-Ge.source.x0,Ge.circularPathData.sourceX=Ge.source.x0+Ge.circularPathData.sourceWidth,Ge.circularPathData.targetX=Ge.target.x0,Ge.circularPathData.sourceY=Ge.y0,Ge.circularPathData.targetY=Ge.y1,At(Ge,Lt)&&G(Ge))Ge.circularPathData.leftSmallArcRadius=g+Ge.width/2,Ge.circularPathData.leftLargeArcRadius=g+Ge.width/2,Ge.circularPathData.rightSmallArcRadius=g+Ge.width/2,Ge.circularPathData.rightLargeArcRadius=g+Ge.width/2,Ge.circularLinkType=="bottom"?(Ge.circularPathData.verticalFullExtent=Ge.source.y1+S+Ge.circularPathData.verticalBuffer,Ge.circularPathData.verticalLeftInnerExtent=Ge.circularPathData.verticalFullExtent-Ge.circularPathData.leftLargeArcRadius,Ge.circularPathData.verticalRightInnerExtent=Ge.circularPathData.verticalFullExtent-Ge.circularPathData.rightLargeArcRadius):(Ge.circularPathData.verticalFullExtent=Ge.source.y0-S-Ge.circularPathData.verticalBuffer,Ge.circularPathData.verticalLeftInnerExtent=Ge.circularPathData.verticalFullExtent+Ge.circularPathData.leftLargeArcRadius,Ge.circularPathData.verticalRightInnerExtent=Ge.circularPathData.verticalFullExtent+Ge.circularPathData.rightLargeArcRadius);else{var yt=Ge.source.column,_t=Ge.circularLinkType,Ct=nt.links.filter(function(ft){return ft.source.column==yt&&ft.circularLinkType==_t});Ge.circularLinkType=="bottom"?Ct.sort(Ee):Ct.sort(we);var St=0;Ct.forEach(function(ft,Gt){ft.circularLinkID==Ge.circularLinkID&&(Ge.circularPathData.leftSmallArcRadius=g+Ge.width/2+St,Ge.circularPathData.leftLargeArcRadius=g+Ge.width/2+Gt*ot+St),St=St+ft.width}),yt=Ge.target.column,Ct=nt.links.filter(function(ft){return ft.target.column==yt&&ft.circularLinkType==_t}),Ge.circularLinkType=="bottom"?Ct.sort(ye):Ct.sort(ke),St=0,Ct.forEach(function(ft,Gt){ft.circularLinkID==Ge.circularLinkID&&(Ge.circularPathData.rightSmallArcRadius=g+Ge.width/2+St,Ge.circularPathData.rightLargeArcRadius=g+Ge.width/2+Gt*ot+St),St=St+ft.width}),Ge.circularLinkType=="bottom"?(Ge.circularPathData.verticalFullExtent=Math.max(Ft,Ge.source.y1,Ge.target.y1)+S+Ge.circularPathData.verticalBuffer,Ge.circularPathData.verticalLeftInnerExtent=Ge.circularPathData.verticalFullExtent-Ge.circularPathData.leftLargeArcRadius,Ge.circularPathData.verticalRightInnerExtent=Ge.circularPathData.verticalFullExtent-Ge.circularPathData.rightLargeArcRadius):(Ge.circularPathData.verticalFullExtent=Xt-S-Ge.circularPathData.verticalBuffer,Ge.circularPathData.verticalLeftInnerExtent=Ge.circularPathData.verticalFullExtent+Ge.circularPathData.leftLargeArcRadius,Ge.circularPathData.verticalRightInnerExtent=Ge.circularPathData.verticalFullExtent+Ge.circularPathData.rightLargeArcRadius)}Ge.circularPathData.leftInnerExtent=Ge.circularPathData.sourceX+Ge.circularPathData.leftNodeBuffer,Ge.circularPathData.rightInnerExtent=Ge.circularPathData.targetX-Ge.circularPathData.rightNodeBuffer,Ge.circularPathData.leftFullExtent=Ge.circularPathData.sourceX+Ge.circularPathData.leftLargeArcRadius+Ge.circularPathData.leftNodeBuffer,Ge.circularPathData.rightFullExtent=Ge.circularPathData.targetX-Ge.circularPathData.rightLargeArcRadius-Ge.circularPathData.rightNodeBuffer}if(Ge.circular)Ge.path=ie(Ge);else{var kt=n.linkHorizontal().source(function(ft){var Gt=ft.source.x0+(ft.source.x1-ft.source.x0),$t=ft.y0;return[Gt,$t]}).target(function(ft){var Gt=ft.target.x0,$t=ft.y1;return[Gt,$t]});Ge.path=kt(Ge)}})}function ie(nt){var ot="";return nt.circularLinkType=="top"?ot="M"+nt.circularPathData.sourceX+" "+nt.circularPathData.sourceY+" L"+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.sourceY+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftSmallArcRadius+" 0 0 0 "+nt.circularPathData.leftFullExtent+" "+(nt.circularPathData.sourceY-nt.circularPathData.leftSmallArcRadius)+" L"+nt.circularPathData.leftFullExtent+" "+nt.circularPathData.verticalLeftInnerExtent+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftLargeArcRadius+" 0 0 0 "+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.verticalFullExtent+" L"+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.verticalFullExtent+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightLargeArcRadius+" 0 0 0 "+nt.circularPathData.rightFullExtent+" "+nt.circularPathData.verticalRightInnerExtent+" L"+nt.circularPathData.rightFullExtent+" "+(nt.circularPathData.targetY-nt.circularPathData.rightSmallArcRadius)+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightSmallArcRadius+" 0 0 0 "+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.targetY+" L"+nt.circularPathData.targetX+" "+nt.circularPathData.targetY:ot="M"+nt.circularPathData.sourceX+" "+nt.circularPathData.sourceY+" L"+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.sourceY+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftSmallArcRadius+" 0 0 1 "+nt.circularPathData.leftFullExtent+" "+(nt.circularPathData.sourceY+nt.circularPathData.leftSmallArcRadius)+" L"+nt.circularPathData.leftFullExtent+" "+nt.circularPathData.verticalLeftInnerExtent+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftLargeArcRadius+" 0 0 1 "+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.verticalFullExtent+" L"+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.verticalFullExtent+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightLargeArcRadius+" 0 0 1 "+nt.circularPathData.rightFullExtent+" "+nt.circularPathData.verticalRightInnerExtent+" L"+nt.circularPathData.rightFullExtent+" "+(nt.circularPathData.targetY+nt.circularPathData.rightSmallArcRadius)+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightSmallArcRadius+" 0 0 1 "+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.targetY+" L"+nt.circularPathData.targetX+" "+nt.circularPathData.targetY,ot}function ae(nt,ot){return K(nt)==K(ot)?nt.circularLinkType=="bottom"?Ee(nt,ot):we(nt,ot):K(ot)-K(nt)}function we(nt,ot){return nt.y0-ot.y0}function Ee(nt,ot){return ot.y0-nt.y0}function ke(nt,ot){return nt.y1-ot.y1}function ye(nt,ot){return ot.y1-nt.y1}function K(nt){return nt.target.column-nt.source.column}function ce(nt){return nt.target.x0-nt.source.x1}function pe(nt,ot){var Ft=V(nt),Lt=ce(ot)/Math.tan(Ft),Rt=lt(nt)=="up"?nt.y1+Lt:nt.y1-Lt;return Rt}function xe(nt,ot){var Ft=V(nt),Lt=ce(ot)/Math.tan(Ft),Rt=lt(nt)=="up"?nt.y1-Lt:nt.y1+Lt;return Rt}function Ce(nt,ot,Ft,Lt){nt.links.forEach(function(Rt){if(!Rt.circular&&Rt.target.column-Rt.source.column>1){var Xt=Rt.source.column+1,xr=Rt.target.column-1,er=1,Ge=xr-Xt+1;for(er=1;Xt<=xr;Xt++,er++)nt.nodes.forEach(function(yt){if(yt.column==Xt){var _t=er/(Ge+1),Ct=Math.pow(1-_t,3),St=3*_t*Math.pow(1-_t,2),kt=3*Math.pow(_t,2)*(1-_t),ft=Math.pow(_t,3),Gt=Ct*Rt.y0+St*Rt.y0+kt*Rt.y1+ft*Rt.y1,$t=Gt-Rt.width/2,hr=Gt+Rt.width/2,_r;$t>yt.y0&&$tyt.y0&&hryt.y1&&Le(Nr,_r,ot,Ft)})):$tyt.y1&&(_r=hr-yt.y0+10,yt=Le(yt,_r,ot,Ft),nt.nodes.forEach(function(Nr){C(Nr,Lt)==C(yt,Lt)||Nr.column!=yt.column||Nr.y0yt.y1&&Le(Nr,_r,ot,Ft)}))}})}})}function Me(nt,ot){return nt.y0>ot.y0&&nt.y0ot.y0&&nt.y1ot.y1}function Le(nt,ot,Ft,Lt){return nt.y0+ot>=Ft&&nt.y1+ot<=Lt&&(nt.y0=nt.y0+ot,nt.y1=nt.y1+ot,nt.targetLinks.forEach(function(Rt){Rt.y1=Rt.y1+ot}),nt.sourceLinks.forEach(function(Rt){Rt.y0=Rt.y0+ot})),nt}function je(nt,ot,Ft,Lt){nt.nodes.forEach(function(Rt){Lt&&Rt.y+(Rt.y1-Rt.y0)>ot&&(Rt.y=Rt.y-(Rt.y+(Rt.y1-Rt.y0)-ot));var Xt=nt.links.filter(function(Ge){return C(Ge.source,Ft)==C(Rt,Ft)}),xr=Xt.length;xr>1&&Xt.sort(function(Ge,yt){if(!Ge.circular&&!yt.circular){if(Ge.target.column==yt.target.column)return Ge.y1-yt.y1;if(Xe(Ge,yt)){if(Ge.target.column>yt.target.column){var _t=xe(yt,Ge);return Ge.y1-_t}if(yt.target.column>Ge.target.column){var Ct=xe(Ge,yt);return Ct-yt.y1}}else return Ge.y1-yt.y1}if(Ge.circular&&!yt.circular)return Ge.circularLinkType=="top"?-1:1;if(yt.circular&&!Ge.circular)return yt.circularLinkType=="top"?1:-1;if(Ge.circular&&yt.circular)return Ge.circularLinkType===yt.circularLinkType&&Ge.circularLinkType=="top"?Ge.target.column===yt.target.column?Ge.target.y1-yt.target.y1:yt.target.column-Ge.target.column:Ge.circularLinkType===yt.circularLinkType&&Ge.circularLinkType=="bottom"?Ge.target.column===yt.target.column?yt.target.y1-Ge.target.y1:Ge.target.column-yt.target.column:Ge.circularLinkType=="top"?-1:1});var er=Rt.y0;Xt.forEach(function(Ge){Ge.y0=er+Ge.width/2,er=er+Ge.width}),Xt.forEach(function(Ge,yt){if(Ge.circularLinkType=="bottom"){var _t=yt+1,Ct=0;for(_t;_t1&&Rt.sort(function(er,Ge){if(!er.circular&&!Ge.circular){if(er.source.column==Ge.source.column)return er.y0-Ge.y0;if(Xe(er,Ge)){if(Ge.source.column0?"up":"down"}function At(nt,ot){return C(nt.source,ot)==C(nt.target,ot)}function Yt(nt,ot,Ft){var Lt=nt.nodes,Rt=nt.links,Xt=!1,xr=!1;if(Rt.forEach(function(St){St.circularLinkType=="top"?Xt=!0:St.circularLinkType=="bottom"&&(xr=!0)}),Xt==!1||xr==!1){var er=t.min(Lt,function(St){return St.y0}),Ge=t.max(Lt,function(St){return St.y1}),yt=Ge-er,_t=Ft-ot,Ct=_t/yt;Lt.forEach(function(St){var kt=(St.y1-St.y0)*Ct;St.y0=(St.y0-er)*Ct,St.y1=St.y0+kt}),Rt.forEach(function(St){St.y0=(St.y0-er)*Ct,St.y1=(St.y1-er)*Ct,St.width=St.width*Ct})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var GJ=_e((ybr,RWe)=>{"use strict";RWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var WWe=_e((_br,jWe)=>{"use strict";var DWe=TWe(),tXt=(R2(),B1(I2)).interpolateNumber,LA=ya(),Gk=kWe(),rXt=IWe(),pu=GJ(),PA=id(),aw=ha(),iXt=ro(),p1=Mr(),ZJ=p1.strTranslate,nXt=p1.strRotate,XJ=Ym(),jk=XJ.keyFun,S7=XJ.repeat,NWe=XJ.unwrap,zWe=Pl(),aXt=_a(),UWe=Nh(),oXt=UWe.CAP_SHIFT,sXt=UWe.LINE_SPACING,lXt=3;function uXt(e,t,r){var n=NWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:Gk.sankeyJustify,left:Gk.sankeyLeft,right:Gk.sankeyRight,center:Gk.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,x;v?x=rXt.sankeyCircular().circularLinkGap(0):x=Gk.sankey(),x.iterations(pu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=x();x.nodePadding()=N||(G=N-X.y0,G>1e-6&&(X.y0+=G,X.y1+=G)),N=X.y1+s})}function P(V){var H=V.map(function(we,Ee){return{x0:we.x0,index:Ee}}).sort(function(we,Ee){return we.x0-Ee.x0}),X=[],G=-1,N,Z=-1/0,ie;for(p=0;pZ+l&&(G+=1,N=ae.x0),Z=ae.x0,X[G]||(X[G]=[]),X[G].push(ae),ie=N-ae.x0,ae.x0+=ie,ae.x1+=ie}return X}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function YJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return fXt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=tXt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,x="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+x+p+b+"Z"}return t}function hXt(e,t){var r=PA(t.color),n=pu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function WJ(e){e.attr("transform",function(t){return ZJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function dXt(e){e.call(WJ)}function VWe(e,t){e.call(dXt),t.attr("d",YJ())}function FWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function jJ(e){return e.link.width>1||e.linkLineWidth>0}function qWe(e){var t=ZJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function OWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function vXt(e,t,r,n){var i=LA.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,BWe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):pXt(e,o,a,n),gXt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=LA.event.x,s=LA.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),BWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),VWe(e.filter(GWe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,HWe(r,i)}})}function mXt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function HWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=ya(),JJ=Mr(),E7=JJ.numberFormat,bXt=WWe(),IA=Nc(),wXt=ha(),Mx=GJ().cn,Wk=JJ._;function ZWe(e){return e!==""}function RA(e,t){return e.filter(function(r){return r.key===t.traceId})}function XWe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function YWe(e){Zv.select(e).select("text.name").style("fill","black")}function KWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function JWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function $We(e,t,r){t&&r&&RA(r,t).selectAll("."+Mx.sankeyLink).filter(KWe(t)).call(QWe.bind(0,t,r,!1))}function KJ(e,t,r){t&&r&&RA(r,t).selectAll("."+Mx.sankeyLink).filter(KWe(t)).call(eZe.bind(0,t,r,!1))}function QWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&RA(t,e).selectAll("."+Mx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&RA(t,e).selectAll("."+Mx.sankeyNode).filter(JWe(e)).call($We)}function eZe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&RA(t,e).selectAll("."+Mx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&RA(t,e).selectAll(Mx.sankeyNode).filter(JWe(e)).call(KJ)}function lf(e,t){var r=e.hoverlabel||{},n=JJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}tZe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:lf(C,"bgcolor")||wXt.addOpacity(F.color,1),borderColor:lf(C,"bordercolor"),fontFamily:lf(C,"font.family"),fontSize:lf(C,"font.size"),fontColor:lf(C,"font.color"),fontWeight:lf(C,"font.weight"),fontStyle:lf(C,"font.style"),fontVariant:lf(C,"font.variant"),fontTextcase:lf(C,"font.textcase"),fontLineposition:lf(C,"font.lineposition"),fontShadow:lf(C,"font.shadow"),nameLength:lf(C,"namelength"),textAlign:lf(C,"align"),idealAlign:Zv.event.x"),color:lf(C,"bgcolor")||_.tinyColorHue,borderColor:lf(C,"bordercolor"),fontFamily:lf(C,"font.family"),fontSize:lf(C,"font.size"),fontColor:lf(C,"font.color"),fontWeight:lf(C,"font.weight"),fontStyle:lf(C,"font.style"),fontVariant:lf(C,"font.variant"),fontTextcase:lf(C,"font.textcase"),fontLineposition:lf(C,"font.lineposition"),fontShadow:lf(C,"font.shadow"),nameLength:lf(C,"namelength"),textAlign:lf(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:V,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});XWe(G,.85),YWe(G)}}},A=function(L,_,C){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(KJ,_,C),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[_.node]})),IA.loneUnhover(n._hoverlayer.node()))};bXt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:x,unhover:b,select:l},nodeEvents:{hover:E,follow:k,unhover:A,select:p}})}});var rZe=_e(ow=>{"use strict";var TXt=Bu().overrideAll,AXt=kd().getModuleCalcData,MXt=$J(),SXt=N1(),EXt=Tg(),kXt=gv(),CXt=wf().prepSelect,QJ=Mr(),LXt=_a(),k7="sankey";ow.name=k7;ow.baseLayoutAttrOverrides=TXt({hoverlabel:SXt.hoverlabel},"plot","nested");ow.plot=function(e){var t=AXt(e.calcdata,k7)[0];MXt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(k7),a=t._has&&t._has(k7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";iZe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";aZe.exports={attributes:UJ(),supplyDefaults:uWe(),calc:vWe(),plot:$J(),moduleType:"trace",name:"sankey",basePlotModule:rZe(),selectPoints:nZe(),categories:["noOpacity"],meta:{}}});var lZe=_e((Abr,sZe)=>{"use strict";sZe.exports=oZe()});var cZe=_e(DA=>{"use strict";var uZe=Xu();DA.name="indicator";DA.plot=function(e,t,r,n){uZe.plotBasePlot(DA.name,e,t,r,n)};DA.clean=function(e,t,r,n){uZe.cleanBasePlot(DA.name,e,t,r,n)}});var t$=_e((Sbr,gZe)=>{"use strict";var Sx=to().extendFlat,hZe=to().extendDeep,IXt=Bu().overrideAll,dZe=Mu(),vZe=dh(),RXt=Ju().attributes,Mf=Cd(),DXt=Us().templatedArray,C7=HT(),fZe=Oc().descriptionOnlyNumbers,e$=dZe({editType:"plot",colorEditType:"plot"}),Zk={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:vZe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},pZe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},zXt=DXt("step",hZe({},Zk,{range:pZe}));gZe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:RXt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},e$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:fZe("value")},font:Sx({},e$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:fZe("value")},increasing:{symbol:{valType:"string",dflt:C7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:C7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:C7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:C7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},e$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:hZe({},Zk,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:vZe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:IXt({range:pZe,visible:Sx({},Mf.visible,{dflt:!0}),tickmode:Mf.minor.tickmode,nticks:Mf.nticks,tick0:Mf.tick0,dtick:Mf.dtick,tickvals:Mf.tickvals,ticktext:Mf.ticktext,ticks:Sx({},Mf.ticks,{dflt:"outside"}),ticklen:Mf.ticklen,tickwidth:Mf.tickwidth,tickcolor:Mf.tickcolor,ticklabelstep:Mf.ticklabelstep,showticklabels:Mf.showticklabels,labelalias:Mf.labelalias,tickfont:dZe({}),tickangle:Mf.tickangle,tickformat:Mf.tickformat,tickformatstops:Mf.tickformatstops,tickprefix:Mf.tickprefix,showtickprefix:Mf.showtickprefix,ticksuffix:Mf.ticksuffix,showticksuffix:Mf.showticksuffix,separatethousands:Mf.separatethousands,exponentformat:Mf.exponentformat,minexponent:Mf.minexponent,showexponent:Mf.showexponent,editType:"plot"},"plot"),steps:zXt,threshold:{line:{color:Sx({},Zk.line.color,{}),width:Sx({},Zk.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},Zk.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var r$=_e((Ebr,mZe)=>{"use strict";mZe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var xZe=_e((kbr,_Ze)=>{"use strict";var Qm=Mr(),P7=t$(),FXt=Ju().defaults,yZe=Us(),qXt=Zd(),L7=r$(),OXt=xb(),BXt=T3(),NXt=t_(),UXt=r_();function VXt(e,t,r,n){function i(_,C){return Qm.coerce(e,t,P7,_,C)}FXt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=Qm.extendFlat({},n.font);l.size=void 0,Qm.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=L7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=Qm.extendFlat({},n.font);c.size=void 0,Qm.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||L7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=Qm.extendFlat({},n.font);f.size=.25*(s||u||L7.defaultNumberFontSize),Qm.coerceFont(i,"title.font",f),i("title.text");var h,d,v,x;function b(_,C){return Qm.coerce(h,d,P7.gauge,_,C)}function p(_,C){return Qm.coerce(v,x,P7.gauge.axis,_,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=yZe.newContainer(t,"gauge"),b("shape");var E=t._isBullet=t.gauge.shape==="bullet";E||i("title.align","center");var k=t._isAngular=t.gauge.shape==="angular";k||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=L7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),qXt(h,d,{name:"steps",handleItemDefaults:HXt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),x=yZe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};OXt(v,x,p,"linear"),UXt(v,x,p,"linear",L),NXt(v,x,p,"linear",L),BXt(v,x,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function HXt(e,t){function r(n,i){return Qm.coerce(e,t,P7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}_Ze.exports={supplyDefaults:VXt}});var wZe=_e((Cbr,bZe)=>{"use strict";function GXt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}bZe.exports={calc:GXt}});var kZe=_e((Lbr,EZe)=>{"use strict";var fw=ya(),jXt=(R2(),B1(I2)).interpolate,TZe=(R2(),B1(I2)).interpolateNumber,Ex=Mr(),WXt=Ex.strScale,Yk=Ex.strTranslate,ZXt=Ex.rad2deg,XXt=Nh().MID_SHIFT,cw=ro(),sw=r$(),R7=Pl(),av=Ka(),YXt=$S(),KXt=rI(),JXt=Cd(),zA=ha(),i$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},AZe=/[yzafpnµmkMGTPEZY]/;function Kk(e){return e&&e.duration>0}EZe.exports=function(t,r,n,i){var a=t._fullLayout,o;Kk(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,x={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=x.l+x.w/2,p=x.t+x.h/2,E=Math.min(x.w/2,x.h),k=sw.innerRadius*E,A,L,_,C=u.align||"center";if(L=p,!f)A=x.l+lw[C]*x.w,_=function(G){return MZe(G,x.w,x.h)};else if(h&&(A=b,L=p+E/2,_=function(G){return rYt(G,.9*k)}),d){var S=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+S;A=x.l+(g+(1-g)*lw[C])*x.w,_=function(G){return MZe(G,(sw.bulletNumberDomainSize-S)*x.w,x.h)}}eYt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var F=c.selectAll("g.angular").data(h?s:[]);F.exit().remove();var q=c.selectAll("g.angularaxis").data(h?s:[]);q.exit().remove(),h&&QXt(t,c,s,{radius:E,innerRadius:k,gauge:F,layer:q,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var H=c.selectAll("g.bulletaxis").data(d?s:[]);H.exit().remove(),d&&$Xt(t,c,s,{gauge:V,layer:H,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var X=c.selectAll("text.title").data(s);X.exit().remove(),X.enter().append("text").classed("title",!0),X.attr("text-anchor",function(){return d?i$.right:i$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(R7.convertToTspans,t),X.attr("transform",function(){var G=x.l+x.w*lw[u.title.align],N,Z=sw.titlePadding,ie=cw.bBox(X.node());if(f){if(h)if(u.gauge.axis.visible){var ae=cw.bBox(q.node());N=ae.top-Z-ie.bottom}else N=x.t+x.h/2-E/2-ie.bottom-Z;d&&(N=L-(ie.top+ie.bottom)/2,G=x.l-sw.bulletPadding*x.w)}else N=u._numbersTop-Z-ie.bottom;return Yk(G,N)})})};function $Xt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,x,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",Yk(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var E=u.h,k=i.gauge.bar.thickness*E,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=Xk(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=av.calcTicks(d),x=av.makeTransTickFn(d),b=av.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(av.drawTicks(e,d,{vals:d.ticks==="inside"?av.clipEnds(d,v):v,layer:o,path:av.makeTickPath(d,p,b),transFn:x}),av.drawLabels(e,d,{vals:v,layer:o,transFn:x,labelFns:av.makeLabelFns(d,p)}));function _(q){q.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*E}).attr("height",function(V){return V.thickness*E})}var C=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(C);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(_).call(uw),S.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",k).attr("y",(E-k)/2).call(uw),Kk(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*E).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*E).call(zA.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var F=a.selectAll("g.gauge-outline").data([l]);F.enter().append("g").classed("gauge-outline",!0).append("rect"),F.select("rect").call(_).call(uw),F.exit().remove()}function QXt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,x=Math.PI/2;function b(we){var Ee=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],ye=(we-Ee)/(ke-Ee)*Math.PI-x;return ye<-x?-x:ye>x?x:ye}function p(we){return fw.svg.arc().innerRadius((s+o)/2-we/2*(o-s)).outerRadius((s+o)/2+we/2*(o-s)).startAngle(-x)}function E(we){we.attr("d",function(Ee){return p(Ee.thickness).startAngle(b(Ee.range[0])).endAngle(b(Ee.range[1]))()})}var k,A,L,_;f.enter().append("g").classed("angular",!0),f.attr("transform",Yk(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),k=Xk(e,i.gauge.axis),k.type="linear",k.range=i.gauge.axis.range,k._id="xangularaxis",k.ticklabeloverflow="allow",k.setScale();var C=function(we){return(k.range[0]-we.x)/(k.range[1]-k.range[0])*Math.PI+Math.PI},S={},g=av.makeLabelFns(k,0),P=g.labelStandoff;S.xFn=function(we){var Ee=C(we);return Math.cos(Ee)*P},S.yFn=function(we){var Ee=C(we),ke=Math.sin(Ee)>0?.2:1;return-Math.sin(Ee)*(P+we.fontSize*ke)+Math.abs(Math.cos(Ee))*(we.fontSize*XXt)},S.anchorFn=function(we){var Ee=C(we),ke=Math.cos(Ee);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},S.heightFn=function(we,Ee,ke){var ye=C(we);return-.5*(1+Math.sin(ye))*ke};var T=function(we){return Yk(c[0]+o*Math.cos(we),c[1]-o*Math.sin(we))};L=function(we){return T(C(we))};var F=function(we){var Ee=C(we);return T(Ee)+"rotate("+-ZXt(Ee)+")"};if(A=av.calcTicks(k),_=av.getTickSigns(k)[2],k.visible){_=k.ticks==="inside"?-1:1;var q=(k.linewidth||1)/2;av.drawTicks(e,k,{vals:A,layer:h,path:"M"+_*q+",0h"+_*k.ticklen,transFn:F}),av.drawLabels(e,k,{vals:A,layer:h,transFn:L,labelFns:S})}var V=[l].concat(i.gauge.steps),H=f.selectAll("g.bg-arc").data(V);H.enter().append("g").classed("bg-arc",!0).append("path"),H.select("path").call(E).call(uw),H.exit().remove();var X=p(i.gauge.bar.thickness),G=f.selectAll("g.value-arc").data([i.gauge.bar]);G.enter().append("g").classed("value-arc",!0).append("path");var N=G.select("path");Kk(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",tYt(X,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?X.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),G.exit().remove(),V=[];var Z=i.gauge.threshold.value;(Z||Z===0)&&V.push({range:[Z,Z],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var ie=f.selectAll("g.threshold-arc").data(V);ie.enter().append("g").classed("threshold-arc",!0).append("path"),ie.select("path").call(E).call(uw),ie.exit().remove();var ae=f.selectAll("g.gauge-outline").data([u]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(E).call(uw),ae.exit().remove()}function eYt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=i$[s],u=n.transitionOpts,c=n.onComplete,f=Ex.ensureSingle(t,"g","numbers"),h,d,v,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=f.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,F,q,V){if(T.match("s")&&q>=0!=V>=0&&!F(q).slice(-1).match(AZe)&&!F(V).slice(-1).match(AZe)){var H=T.slice().replace("s","f").replace(/\d+/,function(G){return parseInt(G)-1}),X=Xk(e,{tickformat:H});return function(G){return Math.abs(G)<1?av.tickText(X,G).text:F(G)}}else return F}function E(){var T=Xk(e,{tickformat:i.number.valueformat},i._range);T.setScale(),av.prepTicks(T);var F=function(G){return av.tickText(T,G).text},q=i.number.suffix,V=i.number.prefix,H=f.select("text.number");function X(){var G=typeof r[0].y=="number"?V+F(r[0].y)+q:"-";H.text(G).call(cw.font,i.number.font).call(R7.convertToTspans,e)}return Kk(u)?H.transition().duration(u.duration).ease(u.easing).each("end",function(){X(),c&&c()}).each("interrupt",function(){X(),c&&c()}).attrTween("text",function(){var G=fw.select(this),N=TZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var Z=p(i.number.valueformat,F,r[0].lastY,r[0].y);return function(ie){G.text(V+Z(N(ie))+q)}}):X(),h=SZe(V+F(r[0].y)+q,i.number.font,l,e),H}function k(){var T=Xk(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),av.prepTicks(T);var F=function(ie){return av.tickText(T,ie).text},q=i.delta.suffix,V=i.delta.prefix,H=function(ie){var ae=i.delta.relative?ie.relativeDelta:ie.delta;return ae},X=function(ie,ae){return ie===0||typeof ie!="number"||isNaN(ie)?"-":(ie>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+ae(ie)+q},G=function(ie){return ie.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=H(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(zA.fill,G({delta:i._deltaLastValue}));function Z(){N.text(X(H(r[0]),F)).call(zA.fill,G(r[0])).call(R7.convertToTspans,e)}return Kk(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var ie=fw.select(this),ae=H(r[0]),we=i._deltaLastValue,Ee=p(i.delta.valueformat,F,we,ae),ke=TZe(we,ae);return i._deltaLastValue=ae,function(ye){ie.text(X(ke(ye),Ee)),ie.call(zA.fill,G({delta:ke(ye)}))}}).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}):Z(),d=SZe(X(H(r[0]),F),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=k(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(E(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=I7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=_[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(S=I7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=_[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(S=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var F=I7(i,"numbersScale",1,T[0],A,Math.min),q;i._scaleNumbers||(F=1),i._isAngular?q=o-F*v.bottom:q=o-F*(v.top+v.bottom)/2,i._numbersTop=F*v.top+q;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var H=a-F*V;return H=I7(i,"numbersTranslate",0,H,A,Math.max),Yk(H,q)+WXt(F)})}function uw(e){e.each(function(t){zA.stroke(fw.select(this),t.line.color)}).each(function(t){zA.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function tYt(e,t,r){return function(){var n=jXt(t,r);return function(i){return e.endAngle(n(i))()}}}function Xk(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ex.coerce(i,a,JXt,l,u)}return YXt(i,a,s,o,n),KXt(i,a,s,o),a}function MZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function rYt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function SZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(R7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function I7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var LZe=_e((Pbr,CZe)=>{"use strict";CZe.exports={moduleType:"trace",name:"indicator",basePlotModule:cZe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:t$(),supplyDefaults:xZe().supplyDefaults,calc:wZe().calc,plot:kZe(),meta:{}}});var IZe=_e((Ibr,PZe)=>{"use strict";PZe.exports=LZe()});var n$=_e((Dbr,FZe)=>{"use strict";var RZe=Nb(),D7=to().extendFlat,iYt=Bu().overrideAll,DZe=Mu(),nYt=Ju().attributes,zZe=Oc().descriptionOnlyNumbers,Rbr=FZe.exports=iYt({domain:nYt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:zZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:D7({},RZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:D7({},DZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:zZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:D7({},RZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:D7({},DZe({arrayOk:!0}))}},"calc","from-root")});var OZe=_e((zbr,qZe)=>{"use strict";var a$=Mr(),aYt=n$(),oYt=Ju().defaults;function sYt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var lYt=Ym().wrap;BZe.exports=function(){return lYt({})}});var o$=_e((qbr,UZe)=>{"use strict";UZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var KZe=_e((Obr,YZe)=>{"use strict";var VZe=o$(),l$=to().extendFlat,uYt=ao(),cYt=vv().isTypedArray,z7=vv().isArrayOrTypedArray;YZe.exports=function(t,r){var n=s$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=s$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=s$(a));var o=a.concat(i(n).map(function(){return XZe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[VZe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(HZe,0),d=u-h,v=d+VZe.uplift,x=WZe(f,v),b=WZe(c,h),p=jZe(b,[]),E=jZe(x,p),k={},A=r._fullInput.columnorder;z7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=z7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return uYt(T)?Number(T):1}),_=L.reduce(HZe,0);L=L.map(function(g){return g/_*l});var C=Math.max(u$(r.header.line.width),u$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:C,height:u,columnOrder:A,groupHeight:u,rowBlocks:E,headerRowBlocks:p,scrollY:0,cells:l$({},r.cells,{values:n}),headerCells:l$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var T=k[g];k[g]=(T||0)+1;var F=g+"__"+k[g];return{key:F,label:g,specIndex:P,xIndex:A[P],xScale:GZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(g){g.calcdata=S,g.x=GZe(g)}),S};function u$(e){if(z7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=ZZe(),i+=a,s=u+1,a=0);return r}function ZZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var JZe=_e(c$=>{"use strict";var F7=to().extendFlat;c$.splitToPanels=function(e){var t=[0,0],r=F7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:F7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=F7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=F7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};c$.splitToCells=function(e){var t=fYt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function fYt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var x$=_e((Nbr,lXe)=>{"use strict";var La=o$(),Sc=ya(),f$=Mr(),hYt=f$.numberFormat,gu=Ym(),h$=ro(),dYt=Pl(),vYt=Mr().raiseToTop,og=Mr().strTranslate,pYt=Mr().cancelTransition,gYt=KZe(),nXe=JZe(),$Ze=ha();lXe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+La.cn.table).data(r.map(function(E){var k=gu.unwrap(E),A=k.trace;return gYt(t,A)}),gu.keyFun);i.exit().remove(),i.enter().append("g").classed(La.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(E){return E.width+E.size.l+E.size.r}).attr("height",function(E){return E.height+E.size.t+E.size.b}).attr("transform",function(E){return og(E.translateX,E.translateY)});var a=i.selectAll("."+La.cn.tableControlView).data(gu.repeat,gu.keyFun),o=a.enter().append("g").classed(La.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(E){a.filter(function(k){return E===k}).call(Jk,t)}).on(s,function(E){if(!E.scrollbarState.wheeling){E.scrollbarState.wheeling=!0;var k=E.scrollY+Sc.event.deltaY,A=O7(t,a,null,k)(E);A||(Sc.event.stopPropagation(),Sc.event.preventDefault()),E.scrollbarState.wheeling=!1}}).call(Jk,t,!0)}a.attr("transform",function(E){return og(E.size.l,E.size.t)});var l=a.selectAll("."+La.cn.scrollBackground).data(gu.repeat,gu.keyFun);l.enter().append("rect").classed(La.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(E){return E.width}).attr("height",function(E){return E.height}),a.each(function(E){h$.setClipUrl(Sc.select(this),QZe(t,E),t)});var u=a.selectAll("."+La.cn.yColumn).data(function(E){return E.columns},gu.keyFun);u.enter().append("g").classed(La.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(E){return og(E.x,0)}),n&&u.call(Sc.behavior.drag().origin(function(E){var k=Sc.select(this);return rXe(k,E,-La.uplift),vYt(this),E.calcdata.columnDragInProgress=!0,Jk(a.filter(function(A){return E.calcdata.key===A.key}),t),E}).on("drag",function(E){var k=Sc.select(this),A=function(C){return(E===C?Sc.event.x:C.x)+C.columnWidth/2};E.x=Math.max(-La.overdrag,Math.min(E.calcdata.width+La.overdrag-E.columnWidth,Sc.event.x));var L=aXe(u).filter(function(C){return C.calcdata.key===E.calcdata.key}),_=L.sort(function(C,S){return A(C)-A(S)});_.forEach(function(C,S){C.xIndex=S,C.x=E===C?C.x:C.xScale(C)}),u.filter(function(C){return E!==C}).transition().ease(La.transitionEase).duration(La.transitionDuration).attr("transform",function(C){return og(C.x,0)}),k.call(pYt).attr("transform",og(E.x,-La.uplift))}).on("dragend",function(E){var k=Sc.select(this),A=E.calcdata;E.x=E.xScale(E),E.calcdata.columnDragInProgress=!1,rXe(k,E,0),SYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(E){h$.setClipUrl(Sc.select(this),eXe(t,E),t)});var c=u.selectAll("."+La.cn.columnBlock).data(nXe.splitToPanels,gu.keyFun);c.enter().append("g").classed(La.cn.columnBlock,!0).attr("id",function(E){return E.key}),c.style("cursor",function(E){return E.dragHandle?"ew-resize":E.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(EYt),h=c.filter(m$);n&&h.call(Sc.behavior.drag().origin(function(E){return Sc.event.stopPropagation(),E}).on("drag",O7(t,a,-1)).on("dragend",function(){})),d$(t,a,f,c),d$(t,a,h,c);var d=a.selectAll("."+La.cn.scrollAreaClip).data(gu.repeat,gu.keyFun);d.enter().append("clipPath").classed(La.cn.scrollAreaClip,!0).attr("id",function(E){return QZe(t,E)});var v=d.selectAll("."+La.cn.scrollAreaClipRect).data(gu.repeat,gu.keyFun);v.enter().append("rect").classed(La.cn.scrollAreaClipRect,!0).attr("x",-La.overdrag).attr("y",-La.uplift).attr("fill","none"),v.attr("width",function(E){return E.width+2*La.overdrag}).attr("height",function(E){return E.height+La.uplift});var x=u.selectAll("."+La.cn.columnBoundary).data(gu.repeat,gu.keyFun);x.enter().append("g").classed(La.cn.columnBoundary,!0);var b=u.selectAll("."+La.cn.columnBoundaryClippath).data(gu.repeat,gu.keyFun);b.enter().append("clipPath").classed(La.cn.columnBoundaryClippath,!0),b.attr("id",function(E){return eXe(t,E)});var p=b.selectAll("."+La.cn.columnBoundaryRect).data(gu.repeat,gu.keyFun);p.enter().append("rect").classed(La.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(E){return E.columnWidth+2*q7(E)}).attr("height",function(E){return E.calcdata.height+2*q7(E)+La.uplift}).attr("x",function(E){return-q7(E)}).attr("y",function(E){return-q7(E)}),y$(null,h,a)};function q7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function QZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function eXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function aXe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function Jk(e,t,r){function n(u){var c=u.rowBlocks;return p$(c,c.length-1)+(c.length?B7(c[c.length-1],1/0):1)}var i=e.selectAll("."+La.cn.scrollbarKit).data(gu.repeat,gu.keyFun);i.enter().append("g").classed(La.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-v$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,La.goldenRatio*La.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+La.scrollbarWidth/2+La.scrollbarOffset;return og(c,v$(u))});var a=i.selectAll("."+La.cn.scrollbar).data(gu.repeat,gu.keyFun);a.enter().append("g").classed(La.cn.scrollbar,!0);var o=a.selectAll("."+La.cn.scrollbarSlider).data(gu.repeat,gu.keyFun);o.enter().append("g").classed(La.cn.scrollbarSlider,!0),o.attr("transform",function(u){return og(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+La.cn.scrollbarGlyph).data(gu.repeat,gu.keyFun);s.enter().append("line").classed(La.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",La.scrollbarWidth).attr("stroke-linecap","round").attr("y1",La.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-La.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(La.scrollbarHideDelay).duration(La.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+La.cn.scrollbarCaptureZone).data(gu.repeat,gu.keyFun);l.enter().append("line").classed(La.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",La.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=Sc.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=Sc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||O7(t,e,null,v(d-h.barLength/2))(u)}).call(Sc.behavior.drag().origin(function(u){return Sc.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",O7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function d$(e,t,r,n){var i=mYt(r),a=yYt(i);wYt(a);var o=_Yt(a);AYt(o);var s=bYt(a),l=xYt(s);TYt(l),oXe(l,t,n,e),_$(a)}function mYt(e){var t=e.selectAll("."+La.cn.columnCells).data(gu.repeat,gu.keyFun);return t.enter().append("g").classed(La.cn.columnCells,!0),t.exit().remove(),t}function yYt(e){var t=e.selectAll("."+La.cn.columnCell).data(nXe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(La.cn.columnCell,!0),t.exit().remove(),t}function _Yt(e){var t=e.selectAll("."+La.cn.cellRect).data(gu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(La.cn.cellRect,!0),t}function xYt(e){var t=e.selectAll("."+La.cn.cellText).data(gu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(La.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Sc.event.stopPropagation()}),t}function bYt(e){var t=e.selectAll("."+La.cn.cellTextHolder).data(gu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(La.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function wYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Xv(n.size,i,r),color:Xv(n.color,i,r),family:Xv(n.family,i,r),weight:Xv(n.weight,i,r),style:Xv(n.style,i,r),variant:Xv(n.variant,i,r),textcase:Xv(n.textcase,i,r),lineposition:Xv(n.lineposition,i,r),shadow:Xv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Xv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Xv(t.calcdata.cells.line.width,i,r),t.font=a})}function TYt(e){e.each(function(t){h$.font(Sc.select(this),t.font)})}function AYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Sc.select(this);$Ze.stroke(r,Xv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),$Ze.fill(r,Xv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function oXe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=MYt(s);i.latex=f;var h=f?"":Xv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Xv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Xv(i.calcdata.cells.format,a,o)||null,x=h+(v?hYt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=tXe(x)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?tXe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var E=La.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=l}return n}function y$(e,t,r){var n=aXe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=p$(i,i.length),s=n.calcdata.groupHeight-v$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=kYt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=p$(c.rowBlocks,c.page)-c.scrollY;return og(0,f)}),e&&(iXe(e,r,t,u,n.prevPages,n,0),iXe(e,r,t,u,n.prevPages,n,1),Jk(r,e))}}function O7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*Sc.event.dy:n;var c=s.selectAll("."+La.cn.yColumn).selectAll("."+La.cn.columnBlock).filter(m$);return y$(e,c,s),o.scrollY===u}}function iXe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});d$(e,t,l,r),i[o]=n[o]}))}function CYt(e,t,r,n){return function(){var a=Sc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*La.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(La.wrapSpacer)+La.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(La.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),oXe(a.select("."+La.cn.cellText),r,e,n),Sc.select(t.parentNode.parentNode).call(_$)}}function LYt(e,t,r,n,i){return function(){if(!i.settledY){var o=Sc.select(t.parentNode),s=g$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*La.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+La.cn.columnCell).call(_$),y$(null,e.filter(m$),0),Jk(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,x=v.getBoundingClientRect(),b=Sc.select(d.parentNode).select("."+La.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),E=b.top-x.top+(p?p.matrix.f:La.cellPad);return og(sXe(i,Sc.select(d.parentNode).select("."+La.cn.cellTextHolder).node().getBoundingClientRect().width),E)}),i.settledY=!0}}}function sXe(e,t){switch(e.align){case"left":return La.cellPad;case"right":return e.column.columnWidth-(t||0)-La.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return La.cellPad}}function _$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+B7(s,1/0)},0),n=g$(t),i=B7(n,t.key),a=i+r;return og(0,a)}).selectAll("."+La.cn.cellRect).attr("height",function(t){return IYt(g$(t),t.key).rowHeight})}function p$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=PYt(e[n]);return r}function B7(e,t){for(var r=0,n=0;n{"use strict";var RYt=kd().getModuleCalcData,DYt=x$(),N7="table";U7.name=N7;U7.plot=function(e){var t=RYt(e.calcdata,N7)[0];t.length&&DYt(e,t)};U7.clean=function(e,t,r,n){var i=n._has&&n._has(N7),a=t._has&&t._has(N7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var fXe=_e((Vbr,cXe)=>{"use strict";cXe.exports={attributes:n$(),supplyDefaults:OZe(),calc:NZe(),plot:x$(),moduleType:"trace",name:"table",basePlotModule:uXe(),categories:["noOpacity"],meta:{}}});var dXe=_e((Hbr,hXe)=>{"use strict";hXe.exports=fXe()});var yXe=_e((Gbr,mXe)=>{"use strict";var vXe=Mu(),pXe=dh(),b$=Cd(),zYt=Oc().descriptionWithDates,FYt=Bu().overrideAll,gXe=Ed().dash,w$=to().extendFlat;mXe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:vXe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:b$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:w$({},b$.labelalias,{editType:"calc"}),tickfont:vXe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:zYt("tick label")},tickformatstops:FYt(b$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:pXe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:w$({},gXe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:w$({},gXe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:pXe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var H7=_e((jbr,bXe)=>{"use strict";var qYt=Mu(),_Xe=yXe(),xXe=dh(),V7=qYt({editType:"calc"}),OYt=Uc().zorder;V7.family.dflt='"Open Sans", verdana, arial, sans-serif';V7.size.dflt=12;V7.color.dflt=xXe.defaultLine;bXe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:_Xe,baxis:_Xe,font:V7,color:{valType:"color",dflt:xXe.defaultLine,editType:"plot"},zorder:OYt}});var AXe=_e((Wbr,TXe)=>{"use strict";var wXe=Mr().isArray1D;TXe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||wXe(i))&&(!s||wXe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var EXe=_e((Zbr,SXe)=>{"use strict";var BYt=H7(),MXe=ha().addOpacity,NYt=_a(),$k=Mr(),UYt=xb(),VYt=t_(),HYt=r_(),GYt=QP(),jYt=ym(),WYt=L3();SXe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=BYt[i+"axis"];function s(g,P){return $k.coerce(t,r,o,g,P)}function l(g,P){return $k.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&ZYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=NYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}jYt(r,n.fullLayout),r.c2p=$k.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&($k.coerceFont(s,"title.font",a,{overrideDflt:{size:$k.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),UYt(t,r,s,u),HYt(t,r,s,u,n),VYt(t,r,s,u,n),GYt(t,r,s,{data:n.data,dataAttr:i});var x=l("gridcolor",MXe(f,.3)),b=l("gridwidth"),p=l("griddash"),E=s("showgrid");E||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var k=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!k||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var _=l("endlinecolor",f),C=l("endlinewidth",b),S=s("endline",r.showgrid||!!_||!!C);return S||(delete r.endlinecolor,delete r.endlinewidth),E?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",MXe(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function ZYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=WYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var CXe=_e((Xbr,kXe)=>{"use strict";var XYt=EXe(),YYt=Us();kXe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),KYt(t,r,n,a)};function KYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=YYt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};XYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var IXe=_e((Ybr,PXe)=>{"use strict";var LXe=Mr(),JYt=AXe(),$Yt=CXe(),QYt=H7(),eKt=dh();PXe.exports=function(t,r,n,i){function a(l,u){return LXe.coerce(t,r,QYt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",eKt.defaultLine);if(LXe.coerceFont(a,"font",i.font),a("carpet"),$Yt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=JYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var T$=_e((Kbr,RXe)=>{"use strict";var tKt=Mr().isArrayOrTypedArray;RXe.exports=function(t,r,n){var i;for(tKt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";DXe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";zXe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var GXe=_e((Qbr,HXe)=>{"use strict";var Z7=ya(),G7=ro(),j7=T$(),BXe=A$(),Qk=FXe(),M$=Pl(),Up=Mr(),NXe=Up.strRotate,W7=Up.strTranslate,UXe=Nh();HXe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Up.makeTraceGroups(i,n,"trace").each(function(c){var f=Z7.select(this),h=c[0],d=h.trace,v=d.aaxis,x=d.baxis,b=Up.ensureSingle(f,"g","minorlayer"),p=Up.ensureSingle(f,"g","majorlayer"),E=Up.ensureSingle(f,"g","boundarylayer"),k=Up.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),FA(o,s,p,v,"a",v._gridlines,!0,a),FA(o,s,p,x,"b",x._gridlines,!0,a),FA(o,s,b,v,"a",v._minorgridlines,!0,a),FA(o,s,b,x,"b",x._minorgridlines,!0,a),FA(o,s,E,v,"a-boundary",v._boundarylines,a),FA(o,s,E,x,"b-boundary",x._boundarylines,a);var A=qXe(t,o,s,d,h,k,v._labels,"a-label"),L=qXe(t,o,s,d,h,k,x._labels,"b-label");iKt(t,k,d,h,o,s,A,L),rKt(d,h,u,o,s)})};function rKt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Up.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(G7.font,f.font).text(f.text).call(M$.convertToTspans,e),p=G7.bBox(this);b.attr("transform",W7(d.p[0],d.p[1])+NXe(d.angle)+W7(f.axis.labelpadding*x,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function iKt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Up.aggNums(Math.min,null,r.a),d=Up.aggNums(Math.max,null,r.a),v=Up.aggNums(Math.min,null,r.b),x=Up.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Up.extendFlat(o,Qk(r,i,a,c,r.dxydb_rough(l,u))),OXe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+x),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Up.extendFlat(s,Qk(r,i,a,c,r.dxyda_rough(l,u))),OXe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var VXe=UXe.LINE_SPACING,nKt=(1-UXe.MID_SHIFT)/VXe+1;function OXe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=Qk(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,E=p>90&&p<270,k=Z7.select(this);k.text(o.title.text).call(M$.convertToTspans,e),E&&(d=(-M$.lineCount(k)+nKt)*VXe*x-d),k.attr("transform",W7(v.p[0],v.p[1])+NXe(v.angle)+W7(0,d)).attr("text-anchor","middle").call(G7.font,o.title.font)}),h.exit().remove()}});var WXe=_e((e2r,jXe)=>{"use strict";var X7=Mr().isArrayOrTypedArray;jXe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=X7(e)?e.length:e,f=X7(t)?t.length:t,h=X7(e)?e:null,d=X7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,x=1/0,b=-1/0;for(i=0;i{"use strict";var ZXe=Mr().isArrayOrTypedArray;YXe.exports=function(e){return XXe(e,0)};function XXe(e,t){if(!ZXe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var aKt=Ka(),kx=to().extendFlat;JXe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p,E=t["_"+r],k=t[r+"axis"],A=k._gridlines=[],L=k._minorgridlines=[],_=k._boundarylines=[],C=t["_"+n],S=t[n+"axis"];k.tickmode==="array"&&(k.tickvals=E.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,F=g.length,q=t._a.length,V=t._b.length;aKt.prepTicks(k),k.tickmode==="array"&&delete k.tickvals;var H=k.smoothing?3:1;function X(N){var Z,ie,ae,we,Ee,ke,ye,K,ce,pe,xe,Ce,Me=[],Le=[],je={};if(r==="b")for(ie=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(V-2,ie))),we=ie-ae,je.length=V,je.crossLength=q,je.xy=function(Se){return t.evalxy([],Se,ie)},je.dxy=function(Se,Xe){return t.dxydi([],Se,ae,Xe,we)},Z=0;Z0&&(ce=t.dxydi([],Z-1,ae,0,we),Me.push(Ee[0]+ce[0]/3),Le.push(Ee[1]+ce[1]/3),pe=t.dxydi([],Z-1,ae,1,we),Me.push(K[0]-pe[0]/3),Le.push(K[1]-pe[1]/3)),Me.push(K[0]),Le.push(K[1]),Ee=K;else for(Z=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(q-2,Z))),ye=Z-ke,je.length=q,je.crossLength=V,je.xy=function(Se){return t.evalxy([],Z,Se)},je.dxy=function(Se,Xe){return t.dxydj([],ke,Se,ye,Xe)},ie=0;ie0&&(xe=t.dxydj([],ke,ie-1,ye,0),Me.push(Ee[0]+xe[0]/3),Le.push(Ee[1]+xe[1]/3),Ce=t.dxydj([],ke,ie-1,ye,1),Me.push(K[0]-Ce[0]/3),Le.push(K[1]-Ce[1]/3)),Me.push(K[0]),Le.push(K[1]),Ee=K;return je.axisLetter=r,je.axis=k,je.crossAxis=S,je.value=N,je.constvar=n,je.index=f,je.x=Me,je.y=Le,je.smoothing=S.smoothing,je}function G(N){var Z,ie,ae,we,Ee,ke=[],ye=[],K={};if(K.length=E.length,K.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(V-2,N)),Ee=Math.min(1,Math.max(0,N-ae)),K.xy=function(ce){return t.evalxy([],ce,N)},K.dxy=function(ce,pe){return t.dxydi([],ce,ae,pe,Ee)},Z=0;ZE.length-1)&&A.push(kx(G(a),{color:k.gridcolor,width:k.gridwidth,dash:k.griddash}));for(f=u;fE.length-1)&&!(v<0||v>E.length-1))for(x=E[o],b=E[v],i=0;iE[E.length-1])&&L.push(kx(X(d),{color:k.minorgridcolor,width:k.minorgridwidth,dash:k.minorgriddash})));k.startline&&_.push(kx(G(0),{color:k.startlinecolor,width:k.startlinewidth})),k.endline&&_.push(kx(G(E.length-1),{color:k.endlinecolor,width:k.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((E[E.length-1]-k.tick0)/k.dtick*(1+s)),Math.ceil((E[0]-k.tick0)/k.dtick/(1+s))].sort(function(N,Z){return N-Z}),u=l[0],c=l[1],f=u;f<=c;f++)h=k.tick0+k.dtick*f,A.push(kx(X(h),{color:k.gridcolor,width:k.gridwidth,dash:k.griddash}));for(f=u-1;fE[E.length-1])&&L.push(kx(X(d),{color:k.minorgridcolor,width:k.minorgridwidth,dash:k.minorgriddash}));k.startline&&_.push(kx(X(E[0]),{color:k.startlinecolor,width:k.startlinewidth})),k.endline&&_.push(kx(X(E[E.length-1]),{color:k.endlinecolor,width:k.endlinewidth}))}}});var rYe=_e((i2r,tYe)=>{"use strict";var QXe=Ka(),eYe=to().extendFlat;tYe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";iYe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var oYe=_e((a2r,aYe)=>{"use strict";var oKt=Mr();aYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(ae,we){var Ee=0,ke,ye=0;return ae>0&&(ke=t[we][ae-1])!==void 0&&(ye++,Ee+=ke),ae0&&(ke=t[we-1][ae])!==void 0&&(ye++,Ee+=ke),we0&&a0&&iS);return oKt.log("Smoother converged to",g,"after",T,"iterations"),t}});var lYe=_e((o2r,sYe)=>{"use strict";sYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var fYe=_e((s2r,cYe)=>{"use strict";var uYe=.5;cYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,uYe/2),c=Math.pow(s*s+l*l,uYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var dYe=_e((l2r,hYe)=>{"use strict";var S$=fYe(),Y7=Mr().ensureArray;function qA(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}hYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,x,b,p=n[0].length,E=n.length,k=a?3*p-2:p,A=o?3*E-2:E;for(t=Y7(t,A),r=Y7(r,A),u=0;u{"use strict";vYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,x,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),E=Math.max(0,Math.min(1,l-b)),k=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=E*E,L=A*E,_=1-E,C=_*_,S=C*_,g=k*k,P=g*k,T=1-k,F=T*T,q=F*T;for(x=0;x{"use strict";gYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=1-o,b=x*x,p=x*o*2,E=-3*b,k=3*(b-p),A=3*(p-v),L=3*v,_=s*s,C=_*s,S=1-s,g=S*S,P=g*S;for(d=0;d{"use strict";yYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=v*o,b=1-o,p=b*b,E=p*b,k=s*s,A=1-s,L=A*A,_=A*s*2,C=-3*L,S=3*(L-_),g=3*(_-k),P=3*k;for(d=0;d{"use strict";var xYe=lYe(),bYe=E6().findBin,sKt=dYe(),lKt=pYe(),uKt=mYe(),cKt=_Ye();wYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*xYe.RELATIVE_CULL_TOLERANCE,x=d*xYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=x,f+=x,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,E=sKt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=E[0],t._yctrl=E[1],t.evalxy=lKt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=uKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=cKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),E=b[0]-p;return(1-E)*r[p]+E*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),E=b[1]-p;return(1-E)*n[p]+E*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(bYe(b,r),i-2)),E=r[p],k=r[p+1];return Math.max(0,Math.min(i-1,p+(b-E)/(k-E)))},t.b2j=function(b){var p=Math.max(0,Math.min(bYe(b,n),a-2)),E=n[p],k=n[p+1];return Math.max(0,Math.min(a-1,p+(b-E)/(k-E)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,E){if(!E&&(br[i-1]|pn[a-1]))return[!1,!1];var k=t.a2i(b),A=t.b2j(p),L=t.evalxy([],k,A);if(E){var _=0,C=0,S=[],g,P,T,F;br[i-1]?(g=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(k))),P=k-g),pn[a-1]?(T=a-2,F=1,C=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),F=A-T),_&&(t.dxydi(S,g,T,P,F),L[0]+=S[0]*_,L[1]+=S[1]*_),C&&(t.dxydj(S,g,T,P,F),L[0]+=S[0]*C,L[1]+=S[1]*C)}return L},t.c2p=function(b,p,E){return[p.c2p(b[0]),E.c2p(b[1])]},t.p2x=function(b,p,E){return[p.p2c(b[0]),E.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,E,k){var A=t.dxydi(null,b,p,E,k),L=t.dadi(b,E);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,E,k){var A=t.dxydj(null,b,p,E,k),L=t.dbdj(p,k);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,E){var k=h*(E||.1),A=t.ab2xy(b+k,p,!0),L=t.ab2xy(b-k,p,!0);return[(A[0]-L[0])*.5/k,(A[1]-L[1])*.5/k]},t.dxydb_rough=function(b,p,E){var k=d*(E||.1),A=t.ab2xy(b,p+k,!0),L=t.ab2xy(b,p-k,!0);return[(A[0]-L[0])*.5/k,(A[1]-L[1])*.5/k]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var PYe=_e((d2r,LYe)=>{"use strict";var K7=Ka(),AYe=Mr().isArray1D,fKt=WXe(),MYe=KXe(),SYe=$Xe(),EYe=rYe(),hKt=nYe(),kYe=$I(),CYe=oYe(),dKt=KI(),vKt=TYe();LYe.exports=function(t,r){var n=K7.getFromId(t,r.xaxis),i=K7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&AYe(s)&&u.push("x"),l&&AYe(l)&&u.push("y"),u.length&&dKt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=fKt(d,v,r.cheaterslope)}r._x=s=kYe(s),r._y=l=kYe(l),CYe(s,c,f),CYe(l,c,f),vKt(r),r.setScale();var x=MYe(s),b=MYe(l),p=.5*(x[1]-x[0]),E=.5*(x[1]+x[0]),k=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return x=[E-p*L,E+p*L],b=[A-k*L,A+k*L],r._extremes[n._id]=K7.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=K7.findExtremes(i,b,{padded:!0}),SYe(r,"a","b"),SYe(r,"b","a"),EYe(r,a),EYe(r,o),h.clipsegments=hKt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var RYe=_e((v2r,IYe)=>{"use strict";IYe.exports={attributes:H7(),supplyDefaults:IXe(),plot:GXe(),calc:PYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Jf(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var zYe=_e((p2r,DYe)=>{"use strict";DYe.exports=RYe()});var E$=_e((g2r,qYe)=>{"use strict";var pKt=Eg(),u0=Uc(),gKt=vl(),mKt=Ho().hovertemplateAttrs,yKt=Ho().texttemplateAttrs,FYe=Jl(),Cx=to().extendFlat,sg=u0.marker,OA=u0.line,_Kt=sg.line;qYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},u0.mode,{dflt:"markers"}),text:Cx({},u0.text,{}),texttemplate:yKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:Cx({},u0.hovertext,{}),line:{color:OA.color,width:OA.width,dash:OA.dash,backoff:OA.backoff,shape:Cx({},OA.shape,{values:["linear","spline"]}),smoothing:OA.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:Cx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:pKt(),marker:Cx({symbol:sg.symbol,opacity:sg.opacity,maxdisplayed:sg.maxdisplayed,angle:sg.angle,angleref:sg.angleref,standoff:sg.standoff,size:sg.size,sizeref:sg.sizeref,sizemin:sg.sizemin,sizemode:sg.sizemode,line:Cx({width:_Kt.width,editType:"calc"},FYe("marker.line")),gradient:sg.gradient,editType:"calc"},FYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:Cx({},gKt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:mKt(),zorder:u0.zorder}});var UYe=_e((m2r,NYe)=>{"use strict";var OYe=Mr(),xKt=Mm(),BA=lu(),bKt=$p(),wKt=R0(),BYe=J3(),TKt=D0(),AKt=Ig(),MKt=E$();NYe.exports=function(t,r,n,i){function a(h,d){return OYe.coerce(t,r,MKt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("hovertext");var u=l{"use strict";VYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var J7=_e((_2r,GYe)=>{"use strict";GYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var jYe=ao(),SKt=z0(),EKt=km(),kKt=F0(),CKt=q0().calcMarkerSize,LKt=J7();WYe.exports=function(t,r){var n=r._carpetTrace=LKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var PKt=iT(),XYe=Ka(),IKt=ro();YYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=XYe.getFromId(t,l.xaxis||"x"),c=XYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var RKt=sT(),DKt=Mr().fillText;JYe.exports=function(t,r,n,i){var a=RKt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var x=[];function b(k,A){var L;k.labelprefix&&k.labelprefix.length>0?L=k.labelprefix.replace(/ = $/,""):L=k._hovertitle,x.push(L+": "+A.toFixed(3)+k.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,E=p.split("+");E.indexOf("all")!==-1&&(E=["a","b","text"]),E.indexOf("a")!==-1&&b(d.aaxis,f.a),E.indexOf("b")!==-1&&b(d.baxis,f.b),x.push("y: "+o.yLabel),E.indexOf("text")!==-1&&DKt(f,h,x),o.extraText=x.join("
")}return a}});var eKe=_e((T2r,QYe)=>{"use strict";QYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var rKe=_e((A2r,tKe)=>{"use strict";tKe.exports={attributes:E$(),supplyDefaults:UYe(),colorbar:Kd(),formatLabels:HYe(),calc:ZYe(),plot:KYe(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:$Ye(),selectPoints:lT(),eventData:eKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Jf(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var nKe=_e((M2r,iKe)=>{"use strict";iKe.exports=rKe()});var k$=_e((S2r,aKe)=>{"use strict";var lg=ET(),g1=A4(),zKt=Jl(),FKt=to().extendFlat,ey=g1.contours;aKe.exports=FKt({carpet:{valType:"string",editType:"calc"},z:lg.z,a:lg.x,a0:lg.x0,da:lg.dx,b:lg.y,b0:lg.y0,db:lg.dy,text:lg.text,hovertext:lg.hovertext,transpose:lg.transpose,atype:lg.xtype,btype:lg.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ey.type,start:ey.start,end:ey.end,size:ey.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ey.showlines,showlabels:ey.showlabels,labelfont:ey.labelfont,labelformat:ey.labelformat,operation:ey.operation,value:ey.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},zKt("",{cLetter:"z",autoColorDflt:!1}))});var C$=_e((E2r,lKe)=>{"use strict";var oKe=Mr(),qKt=ZI(),sKe=k$(),OKt=MH(),BKt=m8(),NKt=y8();lKe.exports=function(t,r,n,i){function a(u,c){return oKe.coerce(t,r,sKe,u,c)}function o(u){return oKe.coerce2(t,r,sKe,u)}if(a("carpet"),t.a&&t.b){var s=qKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?OKt(t,r,a,i,n,{hasHover:!1}):(BKt(t,r,a,o),NKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var hKe=_e((k2r,fKe)=>{"use strict";var UKt=zv(),uKe=Mr(),VKt=KI(),HKt=$I(),GKt=QI(),jKt=e8(),cKe=YV(),WKt=C$(),ZKt=J7(),XKt=dH();fKe.exports=function(t,r){var n=r._carpetTrace=ZKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),WKt(a,r,r._defaultColor,t._fullLayout)}var o=YKt(t,r);return XKt(r,r._z),o}};function YKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,uKe.isArray1D(t.z)&&VKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=HKt(t._z||t.z,t.transpose),t._emptypoints=jKt(f),GKt(f,t._emptypoints);var h=uKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=cKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":l,b=cKe(t,x,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&UKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var vKe=_e((C2r,dKe)=>{"use strict";var KKt=Mr().isArrayOrTypedArray;dKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p=KKt(r)?"a":"b",E=p==="a"?e.aaxis:e.baxis,k=E.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,_=p==="a"?n:r,C=p==="a"?t.a.length:t.b.length,S=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(_):e.a2i(_)),P=p==="a"?function(we){return e.evalxy([],we,g)}:function(we){return e.evalxy([],g,we)};k&&(o=Math.max(0,Math.min(S-2,g)),s=g-o,a=p==="a"?function(we,Ee){return e.dxydi([],we,o,Ee,s)}:function(we,Ee){return e.dxydj([],o,we,s,Ee)});var T=A(L[0]),F=A(L[1]),q=T0?Math.floor:Math.ceil,X=q>0?Math.ceil:Math.floor,G=q>0?Math.min:Math.max,N=q>0?Math.max:Math.min,Z=H(T+V),ie=X(F-V);c=P(T);var ae=[[c]];for(i=Z;i*q{"use strict";var Q7=ya(),e9=T$(),_Ke=A$(),eC=ro(),m1=Mr(),JKt=pH(),$Kt=gH(),hw=b8(),$7=S4(),QKt=xH(),eJt=_H(),tJt=bH(),rJt=J7(),pKe=vKe();xKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=Q7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=rJt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,x=c.contours,b=eJt(x,r,u),p=x.type==="constraint",E=x._operation,k=p?E==="="?"lines":"fill":x.coloring;function A(H){var X=f.ab2xy(H[0],H[1],!0);return[a.c2p(X[0]),o.c2p(X[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];JKt(b);var _=(d[d.length-1]-d[0])*1e-8,C=(v[v.length-1]-v[0])*1e-8;$Kt(b,_,C);var S=b;x.type==="constraint"&&(S=QKt(b,E)),iJt(b,A);var g,P,T,F,q=[];for(F=h.clipsegments.length-1;F>=0;F--)g=h.clipsegments[F],P=e9([],g.x,a.c2p),T=e9([],g.y,o.c2p),P.reverse(),T.reverse(),q.push(_Ke(P,T,g.bicubic));var V="M"+q.join("L")+"Z";oJt(l,h.clipsegments,a,o,p,k),sJt(c,l,a,o,S,L,A,f,h,k,V),nJt(l,b,t,u,x,r,f),eC.setClipUrl(l,f._clipPathId,t)})};function iJt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function gKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function mKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function yKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function oJt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;u+=S(h,d),h=d}if(x===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=x,f=c.indexOf(l)===-1,f&&(l=c[0],u+=S(h,d)+"Z",h=null)}for(l=0;l{"use strict";wKe.exports={attributes:k$(),supplyDefaults:C$(),colorbar:A8(),calc:hKe(),plot:bKe(),style:T8(),moduleType:"trace",name:"contourcarpet",basePlotModule:Jf(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var MKe=_e((I2r,AKe)=>{"use strict";AKe.exports=TKe()});var r9=_e((R2r,LKe)=>{"use strict";var t9=Mr().extendFlat,tC=Uc(),SKe=Oc().axisHoverFormat,kKe=Ed().dash,uJt=i3(),CKe=HT(),cJt=CKe.INCREASING.COLOR,fJt=CKe.DECREASING.COLOR,L$=tC.line;function EKe(e){return{line:{color:t9({},L$.color,{dflt:e}),width:L$.width,dash:kKe,editType:"style"},editType:"style"}}LKe.exports={xperiod:tC.xperiod,xperiod0:tC.xperiod0,xperiodalignment:tC.xperiodalignment,xhoverformat:SKe("x"),yhoverformat:SKe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:t9({},L$.width,{}),dash:t9({},kKe,{}),editType:"style"},increasing:EKe(cJt),decreasing:EKe(fJt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:t9({},uJt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:tC.zorder}});var P$=_e((D2r,PKe)=>{"use strict";var hJt=_a(),dJt=Mr();PKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=hJt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,dJt.minRowLength(a))),r._length=f,f}}});var DKe=_e((z2r,RKe)=>{"use strict";var vJt=Mr(),pJt=P$(),gJt=Pg(),mJt=r9();RKe.exports=function(t,r,n,i){function a(s,l){return vJt.coerce(t,r,mJt,s,l)}var o=pJt(t,r,a,i);if(!o){r.visible=!1;return}gJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),IKe(t,r,a,"increasing"),IKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function IKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var I$=_e((F2r,FKe)=>{"use strict";var NA=Mr(),i9=NA._,n9=Ka(),yJt=Rg(),rC=Jo().BADNUM;function _Jt(e,t){var r=n9.getFromId(e,t.xaxis),n=n9.getFromId(e,t.yaxis),i=bJt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=zKe(e,t,o,s,n,xJt);return t._extremes[r._id]=n9.findExtremes(r,s,{vpad:a/2}),l.length?(NA.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function xJt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function zKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=NA.isArrayOrTypedArray(t.text),f=NA.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,x=[],b=0;bd):h=L>E,d=L;var _=a(E,k,A,L);_.pos=p,_.yc=(E+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[A,k],v&&(_.orig_p=r[b]),c&&(_.tx=t.text[b]),f&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:p,empty:!0})}return t._extremes[i._id]=n9.findExtremes(i,NA.concat(l,s),{padded:!0}),x.length&&(x[0].t={labels:{open:i9(e,"open:")+" ",high:i9(e,"high:")+" ",low:i9(e,"low:")+" ",close:i9(e,"close:")+" "}}),x}function bJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var wJt=ya(),qKe=Mr();OKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;qKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=wJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(qKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),p=o.c2p(x.pos+d,!0),E=s?(b+p)/2:o.c2p(x.pos,!0),k=a.c2p(x.o,!0),A=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+k+"H"+E+"M"+E+","+A+"V"+L+"M"+p+","+_+"H"+E})})}});var UKe=_e((O2r,NKe)=>{"use strict";var R$=ya(),TJt=ro(),AJt=ha();NKe.exports=function(t,r,n){var i=n||R$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;R$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;R$.select(this).style("fill","none").call(AJt.stroke,l.color).call(TJt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var z$=_e((B2r,WKe)=>{"use strict";var D$=Ka(),MJt=Mr(),a9=Nc(),SJt=ha(),EJt=Mr().fillText,VKe=HT(),kJt={increasing:VKe.INCREASING.SYMBOL,decreasing:VKe.DECREASING.SYMBOL};function CJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?GKe(e,t,r,n):jKe(e,t,r,n)}function HKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function E(P){var T=v(P);return a9.inbox(T-b,T+b,f)}function k(P){var T=P[u],F=P[c];return T===F||a9.inbox(T-r,F-r,f)}function A(P){return(E(P)+k(P))/2}var L=a9.getDistanceFunction(n,E,k,A);if(a9.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var C=_.dir,S=o[C],g=S.line.color;return SJt.opacity(g)&&S.line.width?e.color=g:e.color=S.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=A(_)*h/f,e.xSpike=a.c2p(_.pos,!0),e}function GKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=HKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",x=v||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],p={},E=0;E"+s.labels[k]+D$.hoverLabelText(a,A,o.yhoverformat)):(_=MJt.extendFlat({},u),_.y0=_.y1=L,_.yLabelVal=A,_.yLabel=s.labels[k]+D$.hoverLabelText(a,A,o.yhoverformat),_.name="",l.push(_),p[A]=_)}return l}function jKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=HKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+D$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,x=v.split("+"),b=v==="all",p=b||x.indexOf("y")!==-1,E=b||x.indexOf("text")!==-1,k=p?[d("open"),d("high"),d("low"),d("close")+" "+kJt[h]]:[];return E&&EJt(c,o,k),l.extraText=k.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}WKe.exports={hoverPoints:CJt,hoverSplit:GKe,hoverOnPoints:jKe}});var F$=_e((N2r,ZKe)=>{"use strict";ZKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";XKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:Jf(),categories:["cartesian","svg","showLegend"],meta:{},attributes:r9(),supplyDefaults:DKe(),calc:I$().calc,plot:BKe(),style:UKe(),hoverPoints:z$().hoverPoints,selectPoints:F$()}});var JKe=_e((V2r,KKe)=>{"use strict";KKe.exports=YKe()});var O$=_e((H2r,eJe)=>{"use strict";var q$=Mr().extendFlat,$Ke=Oc().axisHoverFormat,c0=r9(),UA=p4();function QKe(e){return{line:{color:q$({},UA.line.color,{dflt:e}),width:UA.line.width,editType:"style"},fillcolor:UA.fillcolor,editType:"style"}}eJe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:$Ke("x"),yhoverformat:$Ke("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:q$({},UA.line.width,{}),editType:"style"},increasing:QKe(c0.increasing.line.color.dflt),decreasing:QKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:q$({},UA.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:UA.zorder}});var iJe=_e((G2r,rJe)=>{"use strict";var LJt=Mr(),PJt=ha(),IJt=P$(),RJt=Pg(),DJt=O$();rJe.exports=function(t,r,n,i){function a(s,l){return LJt.coerce(t,r,DJt,s,l)}var o=IJt(t,r,a,i);if(!o){r.visible=!1;return}RJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),tJe(t,r,a,"increasing"),tJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function tJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",PJt.addOpacity(i,.5))}});var sJe=_e((j2r,oJe)=>{"use strict";var nJe=Mr(),aJe=Ka(),zJt=Rg(),FJt=I$().calcCommon;oJe.exports=function(e,t){var r=e._fullLayout,n=aJe.getFromId(e,t.xaxis),i=aJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=zJt(t,n,"x",a).vals,s=FJt(e,t,a,o,i,qJt);return s.length?(nJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:nJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function qJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var uJe=_e((W2r,lJe)=>{"use strict";lJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:Jf(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:O$(),layoutAttributes:g4(),supplyLayoutDefaults:UI().supplyLayoutDefaults,crossTraceCalc:HI().crossTraceCalc,supplyDefaults:iJe(),calc:sJe(),plot:GI().plot,layerName:"boxlayer",style:jI().style,hoverPoints:z$().hoverPoints,selectPoints:F$()}});var fJe=_e((Z2r,cJe)=>{"use strict";cJe.exports=uJe()});var N$=_e((X2r,hJe)=>{"use strict";var s9=Mr(),OJt=ym(),o9=s9.deg2rad,B$=s9.rad2deg;hJe.exports=function(t,r,n){switch(OJt(t,n),t._id){case"x":case"radialaxis":BJt(t,r);break;case"angularaxis":VJt(t,r);break}};function BJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function NJt(e,t){return t==="degrees"?o9(e):e}function UJt(e,t){return t==="degrees"?B$(e):e}function VJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return NJt(n(a),o)},e.c2d=function(a,o){return i(UJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";dJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var c9=_e((K2r,yJe)=>{"use strict";var dw=Mr(),vJe=TS().tester,U$=dw.findIndexOfMin,gJe=dw.isAngleInsideSector,HJt=dw.angleDelta,pJe=dw.angleDist;function GJt(e,t,r,n,i){if(!gJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=U$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function u9(e){return Math.abs(e)>1e-10?e:0}function V$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function _Je(e){return e<0?-1:e>0?1:0}function HA(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function GA(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function xJe(e,t){return t*e.radius}function $Jt(e,t,r,n){var i=GA(e,HA([r,t])),a=i[0],o=i[1],s=GA(e,HA([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=xJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function QJt(e,t,r,n){var i=xJe(e,1/(t+1)),a=GA(e,HA([t,r])),o=a[0],s=a[1],l=GA(e,HA([t,n])),u=l[0],c=l[1];if(_Je(r)!==_Je(n)){var f=GA(e,HA([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=ya(),e$t=id(),gw=_a(),cc=Mr(),ty=cc.strRotate,dd=cc.strTranslate,G$=ha(),iC=ro(),t$t=Xu(),dp=Ka(),r$t=ym(),i$t=N$(),n$t=wg().doAutoRange,y1=UN(),d9=gv(),wJe=Nc(),a$t=Sb(),o$t=wf().prepSelect,s$t=wf().selectOnClick,j$=wf().clearOutline,TJe=Tg(),AJe=uS(),MJe=mS().redrawReglTraces,l$t=Nh().MID_SHIFT,Lx=l9(),_1=c9(),v9=H$(),f9=v9.smith,u$t=v9.reactanceArc,c$t=v9.resistanceArc,h9=v9.smithTransform,f$t=cc._,SJe=cc.mod,Px=cc.deg2rad,pw=cc.rad2deg;function EJe(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Fd=EJe.prototype;LJe.exports=function(t,r,n){return new EJe(t,r,n)};Fd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,E=u*b,L=(c-E)/i.h/2,k=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,E=c,L=(u-p)/i.w/2,k=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=E,r.xDomain2=k,r.yDomain2=A;var _=r.xOffset2=i.l+i.w*k[0],C=r.yOffset2=i.t+i.h*(1-A[1]),S=r.radius=p/d,g=r.innerRadius=r.getHole(t)*S,P=r.cx=_-S*h[0],T=r.cy=C+S*h[3],F=r.cxx=P-_,q=r.cyy=T-C,V=a.side,H;V==="counterclockwise"?(H=V,V="top"):V==="clockwise"&&(H=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:H,domain:[g/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:k}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var X=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",X).attr("transform",dd(F,q)),n.frontplot.attr("transform",dd(_,C)).call(iC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",X).attr("transform",dd(P,T)).call(G$.fill,t.bgcolor)};Fd.mockAxis=function(e,t,r,n){var i=cc.extendFlat({},r,n);return i$t(i,t,e),i};Fd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=cc.extendFlat({type:"linear"},r);r$t(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Fd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);n$t(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(S){var g=h9(r,f9([S.x,0]));return dd(g[0]-s,g[1]-l)}:function(S){return dd(f.l2p(S.x)+o,0)},x=d?function(S){return c$t(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(f.r2p(S.x)+o)},b=kJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,E=d?(f.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return dp.tickText(f,S,!0,!1)}):dp.calcTicks(f),k=d?E:dp.clipEnds(f,E),A=dp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),dp.drawTicks(n,f,{vals:E,layer:i["radial-axis"],path:dp.makeTickPath(f,0,A),transFn:v,crisp:!1}),dp.drawGrid(n,f,{vals:k,layer:i["radial-grid"],path:x,transFn:cc.noop,crisp:!1}),dp.drawLabels(n,f,{vals:E,layer:i["radial-axis"],transFn:v,labelFns:dp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(CJe(Px(u.angle),r.vangles)):u.angle,_=dd(s,l),C=_+ty(-L);nC(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:C}),nC(i["radial-grid"],h&&u.showgrid,{transform:d?"":_}),nC(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Fd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=iC.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,x=Px(v),b=Math.cos(x),p=Math.sin(x),E=o+a/2*b+c*p,k=s-a/2*p+c*b;n.layers["radial-axis-title"]=a$t.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:f$t(i,"Click to enter radial axis title"),attributes:{x:E,y:k,"text-anchor":"middle"},transform:{rotate:-v}})}};Fd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=h9(r,f9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return dd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=h9(r,f9([0,g.x]));return dd(P[0],P[1])}:function(g){return d(h(g))},x=f?function(g){var P=h9(r,f9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return dd(P[0],P[1])+ty(-pw(T))}:function(g){var P=h(g);return d(P)+ty(-pw(P))},b=f?function(g){return u$t(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),F=Math.sin(P);return"M"+[s+o*T,l-o*F]+"L"+[s+a*T,l-a*F]},p=dp.makeLabelFns(c,0),E=p.labelStandoff,k={};k.xFn=function(g){var P=h(g);return Math.cos(P)*E},k.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(E+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*l$t)},k.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},k.heightFn=function(g,P,T){var F=h(g);return-.5*(1+Math.sin(F))*T};var A=kJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return dp.tickText(c,g,!0,!1)}):dp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),cc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,c.type==="category"&&(L=L.filter(function(g){return cc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var C=c.ticks==="inside"?-1:1,S=(c.linewidth||1)/2;dp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+C*S+",0h"+C*c.ticklen,transFn:x,crisp:!1}),dp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:cc.noop,crisp:!1}),dp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:k})}nC(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:dd(s,l)}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Fd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Fd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,x=t.vangles,b=t.radialAxis,p=_1.clampTiny,E=_1.findXYatLength,k=_1.findEnclosingVertexAngles,A=Lx.cornerHalfWidth,L=Lx.cornerLen/2,_,C,S=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(S).attr("d",t.pathSubplot()).attr("transform",dd(c,f)),S.onmousemove=function(Se){wJe.hover(n,Se,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(Se){n._dragging||d9.unhover(n,Se)};var g={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,F,q,V,H,X,G,N;function Z(Se,Xe){return Math.sqrt(Se*Se+Xe*Xe)}function ie(Se,Xe){return Z(Se-h,Xe-d)}function ae(Se,Xe){return Math.atan2(d-Xe,Se-h)}function we(Se,Xe){return[Se*Math.cos(Xe),Se*Math.sin(-Xe)]}function Ee(Se,Xe){if(Se===0)return t.pathSector(2*A);var lt=L/Se,At=Xe-lt,Yt=Xe+lt,nt=Math.max(0,Math.min(Se,l)),ot=nt-A,Ft=nt+A;return"M"+we(ot,At)+"A"+[ot,ot]+" 0,0,0 "+we(ot,Yt)+"L"+we(Ft,Yt)+"A"+[Ft,Ft]+" 0,0,1 "+we(Ft,At)+"Z"}function ke(Se,Xe,lt){if(Se===0)return t.pathSector(2*A);var At=we(Se,Xe),Yt=we(Se,lt),nt=p((At[0]+Yt[0])/2),ot=p((At[1]+Yt[1])/2),Ft,Lt;if(nt&&ot){var Rt=ot/nt,Xt=-1/Rt,xr=E(A,Rt,nt,ot);Ft=E(L,Xt,xr[0][0],xr[0][1]),Lt=E(L,Xt,xr[1][0],xr[1][1])}else{var er,Ge;ot?(er=L,Ge=A):(er=A,Ge=L),Ft=[[nt-er,ot-Ge],[nt+er,ot-Ge]],Lt=[[nt-er,ot+Ge],[nt+er,ot+Ge]]}return"M"+Ft.join("L")+"L"+Lt.reverse().join("L")+"Z"}function ye(){F=null,q=null,V=t.pathSubplot(),H=!1;var Se=n._fullLayout[t.id];X=e$t(Se.bgcolor).getLuminance(),G=y1.makeZoombox(a,X,c,f,V),G.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),j$(n)}function K(Se,Xe){return Xe=Math.max(Math.min(Xe,l),u),Seo?(Se-1&&Se===1&&s$t(Xe,n,[t.xaxis],[t.yaxis],t.id,g),lt.indexOf("event")>-1&&wJe.click(n,Xe,t.id)}g.prepFn=function(Se,Xe,lt){var At=n._fullLayout.dragmode,Yt=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var nt=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var ot=cc.apply3DTransform(nt)(Xe-Yt.left,lt-Yt.top);if(P=ot[0],T=ot[1],x){var Ft=_1.findPolygonOffset(l,v[0],v[1],x);P+=h+Ft[0],T+=d+Ft[1]}switch(At){case"zoom":g.clickFn=je,r||(x?g.moveFn=Ce:g.moveFn=pe,g.doneFn=Me,ye(Se,Xe,lt));break;case"select":case"lasso":o$t(Se,Xe,lt,g,At);break}},d9.init(g)};Fd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Lx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Px(n.radialAxisAngle),v=c._rl,x=v[0],b=v[1],p=v[r],E=.75*(v[1]-v[0])/(1-n.getHole(t))/o,k,A,L;r?(k=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(k=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var _=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),C={element:_,gd:i};e.dragmode===!1&&(C.dragmode=!1),nC(vw.select(_),c.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function CJe(e,t){var r=function(i){return cc.angleDist(e,i)},n=cc.findIndexOfMin(t,r);return t[n]}function nC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var Z$=_e((Q2r,FJe)=>{"use strict";var d$t=dh(),Wo=Cd(),v$t=Ju().attributes,f0=Mr().extendFlat,PJe=Bu().overrideAll,IJe=PJe({color:Wo.color,showline:f0({},Wo.showline,{dflt:!0}),linecolor:Wo.linecolor,linewidth:Wo.linewidth,showgrid:f0({},Wo.showgrid,{dflt:!0}),gridcolor:Wo.gridcolor,gridwidth:Wo.gridwidth,griddash:Wo.griddash},"plot","from-root"),RJe=PJe({tickmode:Wo.minor.tickmode,nticks:Wo.nticks,tick0:Wo.tick0,dtick:Wo.dtick,tickvals:Wo.tickvals,ticktext:Wo.ticktext,ticks:Wo.ticks,ticklen:Wo.ticklen,tickwidth:Wo.tickwidth,tickcolor:Wo.tickcolor,ticklabelstep:Wo.ticklabelstep,showticklabels:Wo.showticklabels,labelalias:Wo.labelalias,showtickprefix:Wo.showtickprefix,tickprefix:Wo.tickprefix,showticksuffix:Wo.showticksuffix,ticksuffix:Wo.ticksuffix,showexponent:Wo.showexponent,exponentformat:Wo.exponentformat,minexponent:Wo.minexponent,separatethousands:Wo.separatethousands,tickfont:Wo.tickfont,tickangle:Wo.tickangle,tickformat:Wo.tickformat,tickformatstops:Wo.tickformatstops,layer:Wo.layer},"plot","from-root"),DJe={visible:f0({},Wo.visible,{dflt:!0}),type:f0({},Wo.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Wo.autotypenumbers,autorangeoptions:{minallowed:Wo.autorangeoptions.minallowed,maxallowed:Wo.autorangeoptions.maxallowed,clipmin:Wo.autorangeoptions.clipmin,clipmax:Wo.autorangeoptions.clipmax,include:Wo.autorangeoptions.include,editType:"plot"},autorange:f0({},Wo.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},Wo.minallowed,{editType:"plot"}),maxallowed:f0({},Wo.maxallowed,{editType:"plot"}),range:f0({},Wo.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Wo.categoryorder,categoryarray:Wo.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Wo.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},Wo.title.text,{editType:"plot",dflt:""}),font:f0({},Wo.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Wo.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(DJe,IJe,RJe);var zJe={visible:f0({},Wo.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Wo.autotypenumbers,categoryorder:Wo.categoryorder,categoryarray:Wo.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Wo.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(zJe,IJe,RJe);FJe.exports={domain:v$t({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:d$t.background},radialaxis:DJe,angularaxis:zJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var NJe=_e((ewr,BJe)=>{"use strict";var p9=Mr(),p$t=ha(),g$t=Us(),m$t=C_(),y$t=kd().getSubplotData,_$t=xb(),x$t=T3(),b$t=t_(),w$t=r_(),T$t=QP(),A$t=KS(),M$t=_B(),S$t=L3(),OJe=Z$(),E$t=N$(),g9=l9(),qJe=g9.axisNames;function k$t(e,t,r,n){var i=r("bgcolor");n.bgColor=p$t.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=y$t(n.fullData,g9.name,n.id),s=n.layoutOut,l;function u(G,N){return r(l+"."+G,N)}for(var c=0;c{"use strict";var L$t=kd().getSubplotCalcData,P$t=Mr().counterRegex,I$t=W$(),VJe=l9(),HJe=VJe.attr,mw=VJe.name,UJe=P$t(mw),GJe={};GJe[HJe]={valType:"subplotid",dflt:mw,editType:"calc"};function R$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var z$t=Ho().hovertemplateAttrs,F$t=Ho().texttemplateAttrs,y9=to().extendFlat,q$t=Eg(),h0=Uc(),O$t=vl(),jA=h0.line;WJe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:F$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:jA.color,width:jA.width,dash:jA.dash,backoff:jA.backoff,shape:y9({},jA.shape,{values:["linear","spline"]}),smoothing:jA.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:y9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:y9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:q$t(),hoverinfo:y9({},O$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:z$t(),selected:h0.selected,unselected:h0.unselected}});var x9=_e((iwr,YJe)=>{"use strict";var _9=Mr(),WA=lu(),B$t=$p(),N$t=R0(),ZJe=J3(),U$t=D0(),V$t=Ig(),H$t=Mm().PTS_LINESONLY,G$t=aC();function j$t(e,t,r,n){function i(s,l){return _9.coerce(e,t,G$t,s,l)}var a=XJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var W$t=Mr(),KJe=Ka();JJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=KJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?W$t.rad2deg(t.theta):t.theta;return i.thetaLabel=KJe.tickText(s,u,!0).text,i}});var e$e=_e((awr,QJe)=>{"use strict";var $Je=ao(),Z$t=Jo().BADNUM,X$t=Ka(),Y$t=z0(),K$t=km(),J$t=F0(),$$t=q0().calcMarkerSize;QJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var Q$t=iT(),t$e=Jo().BADNUM;r$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var eQt=sT();function tQt(e,t,r,n){var i=eQt(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,n$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function n$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}a$e.exports={hoverPoints:tQt,makeHoverPointText:n$e}});var s$e=_e((lwr,o$e)=>{"use strict";o$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:m9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:aC(),supplyDefaults:x9().supplyDefaults,colorbar:Kd(),formatLabels:b9(),calc:e$e(),plot:i$e(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:w9().hoverPoints,selectPoints:lT(),meta:{}}});var u$e=_e((uwr,l$e)=>{"use strict";l$e.exports=s$e()});var X$=_e((cwr,c$e)=>{"use strict";var Vp=aC(),x1=tk(),rQt=Ho().texttemplateAttrs;c$e.exports={mode:Vp.mode,r:Vp.r,theta:Vp.theta,r0:Vp.r0,dr:Vp.dr,theta0:Vp.theta0,dtheta:Vp.dtheta,thetaunit:Vp.thetaunit,text:Vp.text,texttemplate:rQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Vp.hovertext,hovertemplate:Vp.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Vp.hoverinfo,selected:Vp.selected,unselected:Vp.unselected}});var d$e=_e((fwr,h$e)=>{"use strict";var f$e=Mr(),Y$=lu(),iQt=x9().handleRThetaDefaults,nQt=$p(),aQt=R0(),oQt=D0(),sQt=Ig(),lQt=Mm().PTS_LINESONLY,uQt=X$();h$e.exports=function(t,r,n,i){function a(s,l){return f$e.coerce(t,r,uQt,s,l)}var o=iQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var cQt=b9();v$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),cQt(t,r,n)}});var m$e=_e((dwr,g$e)=>{"use strict";var fQt=z0(),hQt=q0().calcMarkerSize,dQt=Y2(),vQt=Ka(),pQt=sx().TOO_MANY_POINTS;g$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var gQt=Uz(),mQt=w9().makeHoverPointText;function yQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=gQt.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,mQt(f,h,c,u),l}}y$e.exports={hoverPoints:yQt}});var b$e=_e((pwr,x$e)=>{"use strict";x$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:m9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:X$(),supplyDefaults:d$e(),colorbar:Kd(),formatLabels:p$e(),calc:m$e(),hoverPoints:_$e().hoverPoints,selectPoints:sY(),meta:{}}});var w$e=_e((gwr,K$)=>{"use strict";var _Qt=Gz(),xQt=ao(),bQt=fK(),wQt=nY(),T9=Y2(),A9=Mr(),TQt=sx().TOO_MANY_POINTS,AQt={};K$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=wQt(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,x,b=h.slice(),p=d.slice();for(x=0;x=TQt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=E),v.line&&E.length>1&&A9.extendFlat(v.line,T9.linePositions(t,u,E)),v.text&&(A9.extendFlat(v.text,{positions:E},T9.textPosition(t,u,v.text,v.marker)),A9.extendFlat(v.textSel,{positions:E},T9.textPosition(t,u,v.text,v.markerSel)),A9.extendFlat(v.textUnsel,{positions:E},T9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=k,c.y=A,c.rawx=k,c.rawy=A,c.r=h,c.theta=d,c.positions=E,c._scene=o,c.index=o.count,o.count++}}),bQt(t,r,n)}};K$.exports.reglPrecompiled=AQt});var M$e=_e((mwr,A$e)=>{"use strict";var T$e=b$e();T$e.plot=w$e();A$e.exports=T$e});var E$e=_e((ywr,S$e)=>{"use strict";S$e.exports=M$e()});var J$=_e((_wr,k$e)=>{"use strict";var MQt=Ho().hovertemplateAttrs,ZA=to().extendFlat,Ix=aC(),Rx=Lm();k$e.exports={r:Ix.r,theta:Ix.theta,r0:Ix.r0,dr:Ix.dr,theta0:Ix.theta0,dtheta:Ix.dtheta,thetaunit:Ix.thetaunit,base:ZA({},Rx.base,{}),offset:ZA({},Rx.offset,{}),width:ZA({},Rx.width,{}),text:ZA({},Rx.text,{}),hovertext:ZA({},Rx.hovertext,{}),marker:SQt(),hoverinfo:Ix.hoverinfo,hovertemplate:MQt(),selected:Rx.selected,unselected:Rx.unselected};function SQt(){var e=ZA({},Rx.marker);return delete e.cornerradius,e}});var $$=_e((xwr,C$e)=>{"use strict";C$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var I$e=_e((bwr,P$e)=>{"use strict";var L$e=Mr(),EQt=x9().handleRThetaDefaults,kQt=zI(),CQt=J$();P$e.exports=function(t,r,n,i){function a(s,l){return L$e.coerce(t,r,CQt,s,l)}var o=EQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),kQt(t,r,a,n,i),L$e.coerceSelectionMarkerOpacity(r,a)}});var D$e=_e((wwr,R$e)=>{"use strict";var LQt=Mr(),PQt=$$();R$e.exports=function(e,t,r){var n={},i;function a(l,u){return LQt.coerce(e[i]||{},t[i],PQt,l,u)}for(var o=0;o{"use strict";var z$e=Dv().hasColorscale,F$e=zv(),IQt=Mr().isArrayOrTypedArray,RQt=f4(),DQt=Gb().setGroupPositions,zQt=F0(),FQt=_a().traceIs,qQt=Mr().extendFlat;function OQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var O$e=ya(),M9=ao(),XA=Mr(),NQt=ro(),eQ=c9();B$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=UQt(r),c=r.layers.frontplot.select("g.barlayer");XA.makeTraceGroups(c,n,"trace bars").each(function(){var f=O$e.select(this),h=XA.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(XA.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var x=O$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),E=v.thetag0=l.c2g(v.p0),k=v.thetag1=l.c2g(v.p1),A;if(!M9(b)||!M9(p)||!M9(E)||!M9(k)||b===p||E===k)A="M0,0Z";else{var L=s.c2g(v.s1),_=(E+k)/2;v.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],A=u(b,p,E,k)}XA.ensureSingle(x,"path").attr("d",A)}),NQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function UQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;XA.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=eQ.findEnclosingVertexAngles(s,e.vangles)[0],c=eQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return eQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return XA.pathAnnulus(n,i,a,o,t,r)}}});var V$e=_e((Mwr,U$e)=>{"use strict";var VQt=Nc(),tQ=Mr(),HQt=TT().getTraceColor,GQt=tQ.fillText,jQt=w9().makeHoverPointText,WQt=c9().isPtInsidePolygon;U$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?WQt:tQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var x=function(k){return c(d,v,[k.rp0,k.rp1],[k.thetag0,k.thetag1],u)?f+Math.min(1,Math.abs(k.thetag1-k.thetag0)/h)-1+(k.rp1-d)/(k.rp1-k.rp0)-1:1/0};if(VQt.getClosest(i,x,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var E=tQ.extendFlat({},p,{r:p.s,theta:p.p});return GQt(p,a,t),jQt(E,a,o,t),t.hovertemplate=a.hovertemplate,t.color=HQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var G$e=_e((Swr,H$e)=>{"use strict";H$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:m9(),categories:["polar","bar","showLegend"],attributes:J$(),layoutAttributes:$$(),supplyDefaults:I$e(),supplyLayoutDefaults:D$e(),calc:Q$().calc,crossTraceCalc:Q$().crossTraceCalc,plot:N$e(),colorbar:Kd(),formatLabels:b9(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:V$e(),selectPoints:AT(),meta:{}}});var W$e=_e((Ewr,j$e)=>{"use strict";j$e.exports=G$e()});var rQ=_e((kwr,Z$e)=>{"use strict";Z$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var iQ=_e((Cwr,J$e)=>{"use strict";var ZQt=dh(),Sf=Cd(),XQt=Ju().attributes,Dx=Mr().extendFlat,X$e=Bu().overrideAll,Y$e=X$e({color:Sf.color,showline:Dx({},Sf.showline,{dflt:!0}),linecolor:Sf.linecolor,linewidth:Sf.linewidth,showgrid:Dx({},Sf.showgrid,{dflt:!0}),gridcolor:Sf.gridcolor,gridwidth:Sf.gridwidth,griddash:Sf.griddash},"plot","from-root"),K$e=X$e({ticklen:Sf.ticklen,tickwidth:Dx({},Sf.tickwidth,{dflt:2}),tickcolor:Sf.tickcolor,showticklabels:Sf.showticklabels,labelalias:Sf.labelalias,showtickprefix:Sf.showtickprefix,tickprefix:Sf.tickprefix,showticksuffix:Sf.showticksuffix,ticksuffix:Sf.ticksuffix,tickfont:Sf.tickfont,tickformat:Sf.tickformat,hoverformat:Sf.hoverformat,layer:Sf.layer},"plot","from-root"),YQt=Dx({visible:Dx({},Sf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Dx({},Sf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},Y$e,K$e),KQt=Dx({visible:Dx({},Sf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Sf.ticks,editType:"calc"},Y$e,K$e);J$e.exports={domain:XQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:ZQt.background},realaxis:YQt,imaginaryaxis:KQt,editType:"calc"}});var eQe=_e((Lwr,Q$e)=>{"use strict";var YA=Mr(),JQt=ha(),$Qt=Us(),QQt=C_(),eer=kd().getSubplotData,ter=r_(),rer=t_(),ier=KS(),ner=ym(),KA=iQ(),nQ=rQ(),$$e=nQ.axisNames,aer=ser(function(e){return YA.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function oer(e,t,r,n){var i=r("bgcolor");n.bgColor=JQt.combine(i,n.paper_bgcolor);var a=eer(n.fullData,nQ.name,n.id),o=n.layoutOut,s;function l(L,_){return r(s+"."+L,_)}for(var u=0;u<$$e.length;u++){s=$$e[u],YA.isPlainObject(e[s])||(e[s]={});var c=e[s],f=$Qt.newContainer(t,s);f._id=f._name=s,f._attr=n.id+"."+s,f._traceIndices=a.map(function(L){return L.index});var h=l("visible");if(f.type="linear",ner(f,o),ter(c,f,l,f.type),h){var d=s==="realaxis";if(d&&l("side"),d)l("tickvals");else{var v=aer(t.realaxis.tickvals||KA.realaxis.tickvals.dflt);l("tickvals",v)}YA.isTypedArray(f.tickvals)&&(f.tickvals=Array.from(f.tickvals));var x,b,p,E,k=n.font||{};h&&(x=l("color"),b=x===c.color?x:k.color,p=k.size,E=k.family),rer(c,f,l,f.type,{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noAng:!d,noExp:!0,font:{color:b,size:p,family:E}}),YA.coerce2(e,t,KA,s+".ticklen"),YA.coerce2(e,t,KA,s+".tickwidth"),YA.coerce2(e,t,KA,s+".tickcolor",t.color);var A=l("ticks");A||(delete t[s].ticklen,delete t[s].tickwidth,delete t[s].tickcolor),ier(c,f,l,{dfltColor:x,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:KA[s]}),l("layer")}l("hoverformat"),delete f.type,f._input=c}}Q$e.exports=function(t,r,n){QQt(t,r,n,{noUirevision:!0,type:nQ.name,attributes:KA,handleDefaults:oer,font:r.font,paper_bgcolor:r.paper_bgcolor,fullData:n,layoutOut:r})};function ser(e,t){var r={};return function(n){var i=t?t(n):n;if(i in r)return r[i];var a=e(n);return r[i]=a,a}}});var oQe=_e((Pwr,aQe)=>{"use strict";var ler=kd().getSubplotCalcData,uer=Mr().counterRegex,cer=W$(),rQe=rQ(),iQe=rQe.attr,yw=rQe.name,tQe=uer(yw),nQe={};nQe[iQe]={valType:"subplotid",dflt:yw,editType:"calc"};function fer(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var der=Ho().hovertemplateAttrs,ver=Ho().texttemplateAttrs,S9=to().extendFlat,per=Eg(),d0=Uc(),ger=vl(),JA=d0.line;sQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:ver({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:JA.color,width:JA.width,dash:JA.dash,backoff:JA.backoff,shape:S9({},JA.shape,{values:["linear","spline"]}),smoothing:JA.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:S9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:S9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:per(),hoverinfo:S9({},ger.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:der(),selected:d0.selected,unselected:d0.unselected}});var cQe=_e((Rwr,uQe)=>{"use strict";var E9=Mr(),$A=lu(),mer=$p(),yer=R0(),lQe=J3(),_er=D0(),xer=Ig(),ber=Mm().PTS_LINESONLY,wer=aQ();uQe.exports=function(t,r,n,i){function a(l,u){return E9.coerce(t,r,wer,l,u)}var o=Ter(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var fQe=Ka();hQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=fQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=fQe.tickText(a.angularAxis,t.imag,!0).text,i}});var gQe=_e((zwr,pQe)=>{"use strict";var vQe=ao(),Aer=Jo().BADNUM,Mer=z0(),Ser=km(),Eer=F0(),ker=q0().calcMarkerSize;pQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var Cer=iT(),mQe=Jo().BADNUM,Ler=H$(),Per=Ler.smith;yQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var Ier=sT();function Rer(e,t,r,n){var i=Ier(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,xQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function xQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}bQe.exports={hoverPoints:Rer,makeHoverPointText:xQe}});var AQe=_e((Owr,TQe)=>{"use strict";TQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:oQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:aQ(),supplyDefaults:cQe(),colorbar:Kd(),formatLabels:dQe(),calc:gQe(),plot:_Qe(),style:op().style,styleOnSelect:op().styleOnSelect,hoverPoints:wQe().hoverPoints,selectPoints:lT(),meta:{}}});var SQe=_e((Bwr,MQe)=>{"use strict";MQe.exports=AQe()});var Mv=_e((Nwr,kQe)=>{var C9=bh();function EQe(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}C9(EQe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function oQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function k9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}C9(oQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ss.local.differentCalendars||Ss.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+k9(Math.abs(this.year()),4)+"-"+k9(this.month(),2)+"-"+k9(this.day(),2)}});function sQ(){this.shortYearCutoff="+10"}C9(sQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new oQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ss.local.invalidYear||Ss.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ss.local.invalidYear||Ss.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+k9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ss.local.invalidYear||Ss.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Ss.local.invalidMonth||Ss.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Ss.local.invalidMonth||Ss.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ss.local.invalidYear||Ss.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Ss.local.invalidDate||Ss.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ss=kQe.exports=new EQe;Ss.cdate=oQ;Ss.baseCalendar=sQ;Ss.calendars.gregorian=lQ});var CQe=_e(()=>{var uQ=bh(),qd=Mv();uQ(qd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});qd.local=qd.regionalOptions[""];uQ(qd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});uQ(qd.baseCalendar.prototype,{UNIX_EPOCH:qd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:qd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw qd.local.invalidFormat||qd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(A,L){for(var _=1;k+_1},c=function(A,L,_,C){var S=""+L;if(u(A,C))for(;S.length<_;)S="0"+S;return S},f=function(A,L,_,C){return u(A)?C[L]:_[L]},h=this,d=function(A){return typeof a=="function"?a.call(h,A,u("m")):b(c("m",A.month(),2))},v=function(A,L){return L?typeof s=="function"?s.call(h,A):s[A.month()-h.minMonth]:typeof o=="function"?o.call(h,A):o[A.month()-h.minMonth]},x=this.local.digits,b=function(A){return r.localNumbers&&x?x(A):A},p="",E=!1,k=0;k1},E=function(F,q){var V=p(F,q),H=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],X=new RegExp("^-?\\d{1,"+H+"}"),G=t.substring(S).match(X);if(!G)throw(qd.local.missingNumberAt||qd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[0],10)},k=this,A=function(){if(typeof s=="function"){p("m");var F=s.call(k,t.substring(S));return S+=F.length,F}return E("m")},L=function(F,q,V,H){for(var X=p(F,H)?V:q,G=0;G-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var LQe=_e(()=>{var zx=Mv(),Der=bh(),cQ=zx.instance();function L9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L9.prototype=new zx.baseCalendar;Der(L9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Fer);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(qer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Oer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw zx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw zx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,zx.local.invalidyear),i=qx[n-qx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=cQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Fx[e-Fx[0]],n=r>>13,i=n?12:11;if(t>i)throw zx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,zx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Ner(e,a,r,i);return cQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=cQ.fromJD(e),r=Ber(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(zer),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(L9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var zer=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Fer=/^\d?\d[iI]?/m,qer=/^闰?十?[一二三四五六七八九]?月/m,Oer=/^闰?十?[一二三四五六七八九]?/m;zx.calendars.chinese=L9;var Fx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],qx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Ber(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=qx[i.year-qx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=qx[a.year-qx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,x=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-x)/(24*3600*1e3));var p=Fx[a.year-Fx[0]],E;for(E=0;E<13;E++){var k=p&1<<12-E?30:29;if(v>13;return!A||E=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Fx[o.year-Fx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var x=0;x>9&4095,k=p>>5&15,A=p&31,L=new Date(E,k-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var PQe=_e(()=>{var _w=Mv(),Uer=bh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new _w.baseCalendar;Uer(fQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=fQ});var IQe=_e(()=>{var b1=Mv(),Ver=bh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new b1.baseCalendar;Ver(hQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Her[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Her={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=hQ});var RQe=_e(()=>{var xw=Mv(),Ger=bh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new xw.baseCalendar;Ger(dQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=dQ});var DQe=_e(()=>{var Ox=Mv(),jer=bh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new Ox.baseCalendar;jer(vQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,P9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&P9(this.daysInYear(e),10)===5?30:t===9&&P9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function P9(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=vQ});var zQe=_e(()=>{var oC=Mv(),Wer=bh();function pQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pQ.prototype=new oC.baseCalendar;Wer(pQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,oC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,oC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,oC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});oC.calendars.islamic=pQ});var FQe=_e(()=>{var sC=Mv(),Zer=bh();function gQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gQ.prototype=new sC.baseCalendar;Zer(gQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,sC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,sC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,sC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});sC.calendars.julian=gQ});var OQe=_e(()=>{var ug=Mv(),Xer=bh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new ug.baseCalendar;Xer(yQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,ug.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=mQ(e+8+17*20,365);return[Math.floor(t/20)+1,mQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[qQe(e+20,20),qQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function mQ(e,t){return e-t*Math.floor(e/t)}function qQe(e,t){return mQ(e-1,t)+1}ug.calendars.mayan=yQ});var NQe=_e(()=>{var bw=Mv(),Yer=bh();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new bw.baseCalendar;var BQe=bw.instance("gregorian");Yer(_Q.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return BQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=_Q});var UQe=_e(()=>{var ww=Mv(),Ker=bh();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new ww.baseCalendar;Ker(xQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var QA=Mv(),Jer=bh();function I9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I9.prototype=new QA.baseCalendar;Jer(I9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Ch\xE6harshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Ch\xE6","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,QA.local.invalidYear);return((t.year()-(t.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,QA.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,QA.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e-(e>=0?474:473),a=474+bQ(i,2820);return r+(t<=7?(t-1)*31:(t-1)*30+6)+Math.floor((a*682-110)/2816)+(a-1)*365+Math.floor(i/2820)*1029983+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=e-this.toJD(475,1,1),r=Math.floor(t/1029983),n=bQ(t,1029983),i=2820;if(n!==1029982){var a=Math.floor(n/366),o=bQ(n,366);i=Math.floor((2134*a+2816*o+2815)/1028522)+a+1}var s=i+2820*r+474;s=s<=0?s-1:s;var l=e-this.toJD(s,1,1)+1,u=l<=186?Math.ceil(l/31):Math.ceil((l-6)/30),c=e-this.toJD(s,u,1)+1;return this.newDate(s,u,c)}});function bQ(e,t){return e-t*Math.floor(e/t)}QA.calendars.persian=I9;QA.calendars.jalali=I9});var HQe=_e(()=>{var Tw=Mv(),$er=bh(),R9=Tw.instance();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Tw.baseCalendar;$er(wQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return R9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return R9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return R9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=R9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tw.calendars.taiwan=wQ});var GQe=_e(()=>{var Aw=Mv(),Qer=bh(),D9=Aw.instance();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Aw.baseCalendar;Qer(TQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return D9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return D9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return D9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=D9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Aw.calendars.thai=TQ});var jQe=_e(()=>{var Mw=Mv(),etr=bh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new Mw.baseCalendar;etr(AQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Mw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Mw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Bx[i]-Bx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Mw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Bx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Bx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Mw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Mw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Mw.calendars.ummalqura=AQ;var Bx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var ZQe=_e((m3r,WQe)=>{"use strict";WQe.exports=Mv();CQe();LQe();PQe();IQe();RQe();DQe();zQe();FQe();OQe();NQe();UQe();VQe();HQe();GQe();jQe()});var eet=_e((y3r,QQe)=>{"use strict";var YQe=ZQe(),lC=Mr(),KQe=Jo(),ttr=KQe.EPOCHJD,rtr=KQe.ONEDAY,EQ={valType:"enumerated",values:lC.sortObjectKeys(YQe.calendars),editType:"calc",dflt:"gregorian"},JQe=function(e,t,r,n){var i={};return i[r]=EQ,lC.coerce(e,t,i,r,n)},itr=function(e,t,r,n){for(var i=0;i{"use strict";tet.exports=eet()});var utr=_e((x3r,net)=>{var iet=nye();iet.register([o1e(),Z1e(),axe(),Mxe(),Oxe(),Dbe(),Zbe(),R2e(),lwe(),Hwe(),C3e(),XEe(),Fke(),S6e(),dLe(),HLe(),hPe(),FIe(),t8e(),_8e(),P8e(),j8e(),oRe(),wRe(),YDe(),pze(),CBe(),CNe(),BUe(),cVe(),_He(),DHe(),nGe(),pje(),Lje(),eWe(),lZe(),IZe(),dXe(),zYe(),nKe(),MKe(),JKe(),fJe(),u$e(),E$e(),W$e(),SQe(),ret()]);net.exports=iet});return utr();})(); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -"use strict";var e=t("base64-js"),n=t("ieee754");r.Buffer=a,r.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t>2147483647)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(i)return n?-1:D(t).length;e=(""+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return w(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),N(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var f=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;ne&&(t+=" ... "),""},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return v(this,t,e,r);case"ascii":return y(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return b(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,i,a){return e=+e,r>>>=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r>>>=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":75,buffer:80,ieee754:225}],81:[function(t,e,r){e.exports=function(t,e,r){return er?r:t:te?e:t}},{}],82:[function(t,e,r){"use strict";var n=t("clamp");function i(t,e){null==e&&(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&n(r,0,255))+((i=255&n(i,0,255))<<16)+((a=255&n(a,0,255))<<8)+(o=255&n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:81}],83:[function(t,e,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],84:[function(t,e,r){"use strict";var n=t("color-rgba"),i=t("clamp"),a=t("dtype");e.exports=function(t,e){"float"!==e&&e||(e="array"),"uint"===e&&(e="uint8"),"uint_clamped"===e&&(e="uint8_clamped");var r=new(a(e))(4),o="uint8"!==e&&"uint8_clamped"!==e;return t.length&&"string"!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&&(t[0]>1||0===t[0])&&(t[1]>1||0===t[1])&&(t[2]>1||0===t[2])&&(!t[3]||t[3]>1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:81,"color-rgba":86,dtype:121}],85:[function(t,e,r){(function(r){(function(){"use strict";var n=t("color-name"),i=t("is-plain-obj"),a=t("defined");e.exports=function(t){var e,s,l=[],c=1;if("string"==typeof t)if(n[t])l=n[t].slice(),s="rgb";else if("transparent"===t)c=0,s="rgb",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u<=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&&(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&&(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h="rgb"===f,p=f.replace(/a$/,"");s=p;u="cmyk"===p?4:"gray"===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:"rgb"===p?255*parseFloat(t)/100:parseFloat(t);if("h"===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&&l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s="rgb",l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s="hsl",l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&&(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(l=[t[0],t[1],t[2]],s="rgb",c=4===t.length?t[3]:1);else s="rgb",l=[t>>>16,(65280&t)>>>8,255&t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"color-name":83,defined:118,"is-plain-obj":231}],86:[function(t,e,r){"use strict";var n=t("color-parse"),i=t("color-space/hsl"),a=t("clamp");e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),"h"===r.space[0]&&(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:81,"color-parse":85,"color-space/hsl":87}],87:[function(t,e,r){"use strict";var n=t("./rgb");e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&&(e=4+(n-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+s)/2,[e,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}},{"./rgb":88}],88:[function(t,e,r){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},{}],89:[function(t,e,r){e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xe7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xe9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xe9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xe3)o.?tom(e|\xe9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},{}],90:[function(t,e,r){e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]},{}],91:[function(t,e,r){e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]},{}],92:[function(t,e,r){e.exports=["normal","italic","oblique"]},{}],93:[function(t,e,r){e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]},{}],94:[function(t,e,r){"use strict";e.exports={parse:t("./parse"),stringify:t("./stringify")}},{"./parse":96,"./stringify":97}],95:[function(t,e,r){"use strict";var n=t("css-font-size-keywords");e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf("/")||-1!==n.indexOf(t)}}},{"css-font-size-keywords":90}],96:[function(t,e,r){"use strict";var n=t("unquote"),i=t("css-global-keywords"),a=t("css-system-font-keywords"),o=t("css-font-weight-keywords"),s=t("css-font-style-keywords"),l=t("css-font-stretch-keywords"),c=t("string-split-by"),u=t("./lib/util").isSize;e.exports=h;var f=h.cache={};function h(t){if("string"!=typeof t)throw new Error("Font argument must be a string.");if(f[t])return f[t];if(""===t)throw new Error("Cannot parse an empty string.");if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return["style","variant","weight","stretch"].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if("normal"!==e&&"small-caps"!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,"/");if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):"/"===h[0]&&(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error("Missing required font-family.");return r.family=c(h.join(" "),/\s*,\s*/).map(n),f[t]=r}throw new Error("Unknown or unsupported font token: "+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error("Missing required font-size.")}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{"./lib/util":95,"css-font-stretch-keywords":91,"css-font-style-keywords":92,"css-font-weight-keywords":93,"css-global-keywords":98,"css-system-font-keywords":99,"string-split-by":299,unquote:323}],97:[function(t,e,r){"use strict";var n=t("pick-by-alias"),i=t("./lib/util").isSize,a=m(t("css-global-keywords")),o=m(t("css-system-font-keywords")),s=m(t("css-font-weight-keywords")),l=m(t("css-font-style-keywords")),c=m(t("css-font-stretch-keywords")),u={normal:1,"small-caps":1},f={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="1rem",p="serif";function d(t,e){if(t&&!e[t]&&!a[t])throw Error("Unknown keyword `"+t+"`");return t}function m(t){for(var e={},r=0;re?1:t>=e?0:NaN}function r(t){var r;return 1===t.length&&(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o=r)for(n=i=r;++or&&(n=r),i=r)for(n=i=r;++or&&(n=r),i=0?(a>=v?10:a>=y?5:a>=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=v?10:a>=y?5:a>=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=v?i*=10:a>=y?i*=5:a>=x&&(i*=2),e=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a=r)for(n=r;++ar&&(n=r)}else for(;++a=r)for(n=r;++ar&&(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,M),n=new Array(r);++et?1:e>=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=m,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;af;)h.pop(),--p;var d,m=new Array(p+1);for(a=0;a<=p;++a)(d=m[a]=[]).x0=a>0?h[a-1]:u,d.x1=a=r)for(n=r;++an&&(n=r)}else for(;++a=r)for(n=r;++an&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&&(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r0)return[t];if((n=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=l.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],m=r(),g=a();++hl.length)return r;var i,a=c[n-1];return null!=e&&n>=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,"__esModule",{value:!0})}))},{}],104:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),c=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),u=new RegExp("^rgba\\("+[i,i,i,a]+"\\)$"),f=new RegExp("^rgba\\("+[o,o,o,a]+"\\)$"),h=new RegExp("^hsl\\("+[a,o,o]+"\\)$"),p=new RegExp("^hsla\\("+[a,o,o,a]+"\\)$"),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t>>16&255,t>>8&255,255&t,1)}function x(t,e,r,n){return n<=0&&(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return"#"+A(this.r)+A(this.g)+A(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function M(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new L(t,e,r,n)}function S(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r0&&c<1?0:s,new L(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new L(t,e,r,null==n?1:n)}function L(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function C(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return S(this).formatHsl()},formatRgb:g,toString:g}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(L,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new w(C(t>=240?t-240:t+120,i,n),C(t,i,n),C(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var P=Math.PI/180,I=180/Math.PI,O=6/29,z=3*O*O;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof q)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&&i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t>.008856451679035631?Math.pow(t,1/3):t/z+4/29}function N(t){return t>O?t*t*t:z*(t-4/29)}function j(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof q)return new q(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&&0===t.b)return new q(NaN,0=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n0)for(var r,n,i=new Array(r),a=0;ah+c||np+c||au.index){var f=h-s.x-s.vx,g=p-s.y-s.vy,v=f*f+g*g;vt.r&&(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e=c)){(t.data!==r||t.next)&&(0===f&&(d+=(f=o())*f),0===h&&(d+=(h=o())*h),d1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a1?n[0]+n.slice(2):n,+t.slice(r+1)]}function r(t){return(t=e(Math.abs(t)))?t[1]:NaN}var n,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(e=i.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function s(t,r){var n=e(t,r);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,r){var i=e(t,r);if(!i)return t+"";var a=i[0],o=i[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=a.length;return s===l?a:s>l?a+new Array(s-l+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+e(t,Math.max(0,r+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,f=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function p(t){var e,i,o=void 0===t.grouping||void 0===t.thousands?c:(e=f.call(t.grouping,Number),i=t.thousands+"",function(t,r){for(var n=t.length,a=[],o=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(t.substring(n-=s,n+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(i)}),s=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",p=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(f.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=a(t)).fill,r=t.align,i=t.sign,c=t.symbol,f=t.zero,y=t.width,x=t.comma,b=t.precision,_=t.trim,w=t.type;"n"===w?(x=!0,w="g"):l[w]||(void 0===b&&(b=12),_=!0,w="g"),(f||"0"===e&&"="===r)&&(f=!0,e="0",r="=");var T="$"===c?s:"#"===c&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===c?u:/[%p]/.test(w)?m:"",A=l[w],M=/[defgprs%]/.test(w);function S(t){var a,s,l,c=T,u=k;if("c"===w)u=A(t)+u,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),b),_&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0==+t&&"+"!==i&&(m=!1),c=(m?"("===i?i:g:"-"===i||"("===i?"":i)+c,u=("s"===w?h[8+n/3]:"")+u+(m&&"("===i?")":""),M)for(a=-1,s=t.length;++a(l=t.charCodeAt(a))||l>57){u=(46===l?p+t.slice(a+1):t.slice(a))+u,t=t.slice(0,a);break}}x&&!f&&(t=o(t,1/0));var S=c.length+t.length+u.length,E=S>1)+c+t+u+E.slice(S);break;default:t=E+c+t+u}return d(t)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+""},S}return{format:y,formatPrefix:function(t,e){var n=y(((t=a(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),s=h[8+i/3];return function(t){return n(o*t)+s}}}}function d(e){return u=p(e),t.format=u.format,t.formatPrefix=u.formatPrefix,u}d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),t.FormatSpecifier=o,t.formatDefaultLocale=d,t.formatLocale=p,t.formatSpecifier=a,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,"__esModule",{value:!0})}))},{}],108:[function(t,e,r){!function(n,i){"object"==typeof r&&void 0!==e?i(r,t("d3-geo"),t("d3-array")):i(n.d3=n.d3||{},n.d3,n.d3)}(this,(function(t,e,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(t){return t>0?1:t<0?-1:0},m=Math.sin,g=Math.tan,v=1e-6,y=Math.PI,x=y/2,b=y/4,_=Math.SQRT1_2,w=L(2),T=L(y),k=2*y,A=180/y,M=y/180;function S(t){return t>1?x:t<-1?-x:Math.asin(t)}function E(t){return t>1?0:t<-1?y:Math.acos(t)}function L(t){return t>0?Math.sqrt(t):0}function C(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function I(t){var e=g(t/2),r=2*c(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=m(e),s=i*n,l=-((1-s?c((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*m(t),l*a]}return i.invert=function(e,i){var s,l=L(e*e+i*i),u=-t/2,f=50;if(!l)return[0,0];do{var h=u/2,p=o(h),d=m(h),g=d/p,y=-c(n(p));u-=s=(2/g*y-r*g-l)/(-y/(d*d)+1-r/(2*p*p))*(p<0?.7:1)}while(n(s)>v&&--f>0);var x=m(u);return[a(e*x,l*o(u)),S(i*x/l)]},i}function O(t,e){var r=o(e),n=function(t){return t?t/Math.sin(t):1}(E(r*o(t/=2)));return[2*r*m(t)*n,m(e)*n]}function z(t){var e=m(t),r=o(t),i=t>=0?1:-1,s=g(i*t),l=(1+e-r)/2;function c(t,n){var c=o(n),u=o(t/=2);return[(1+c)*m(t),(i*n>-a(u,s)-.001?0:10*-i)+l+m(n)*r-(1+c)*e*u]}return c.invert=function(t,c){var u=0,f=0,h=50;do{var p=o(u),d=m(u),g=o(f),y=m(f),x=1+g,b=x*d-t,_=l+y*r-x*e*p-c,w=x*p/2,T=-d*y,k=e*x*d/2,A=r*g+e*p*y,M=T*k-A*w,S=(_*T-b*A)/M/2,E=(b*k-_*w)/M;n(E)>2&&(E/=2),u-=S,f-=E}while((n(S)>v||n(E)>v)&&--h>0);return i*f>-a(o(u),s)-.001?[2*u,f]:null},c}function D(t,e){var r=g(e/2),n=L(1-r*r),i=1+n*o(t/=2),a=m(t)*n/i,s=r/i,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}O.invert=function(t,e){if(!(t*t+4*e*e>y*y+v)){var r=t,i=e,a=25;do{var s,l=m(r),c=m(r/2),u=o(r/2),f=m(i),h=o(i),p=m(2*i),d=f*f,g=h*h,x=c*c,b=1-g*u*u,_=b?E(h*u)*L(s=1/b):s=0,w=2*_*h*c-t,T=_*f-e,k=s*(g*x+_*h*u*d),A=s*(.5*l*p-2*_*f*c),M=.25*s*(p*c-_*f*g*l),S=s*(d*u+_*x*h),C=A*M-S*k;if(!C)break;var P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)>v||n(I)>v)&&--a>0);return[r,i]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&n(e)>1)return null;var r=1+t*t+e*e,i=L((r-L(r*r-4*e*e))/2),s=S(i)/3,l=i?function(t){return c(t+L(t*t-1))}(n(e/i))/3:function(t){return c(t+L(t*t+1))}(n(t))/3,u=o(s),f=P(l),h=f*f-u*u;return[2*d(t)*a(C(l)*u,.25-h),2*d(e)*a(f*m(s),.25+h)]};var R=L(8),F=c(1+w);function B(t,e){var r=n(e);return rx){var l=a(s[1],s[0]),c=L(s[0]*s[0]+s[1]*s[1]),u=r*p((l-x)/r)+x,f=a(m(l-=u),2-o(l));l=u+S(y/c*m(f))-f,s[0]=c*o(l),s[1]=c*m(l)}return s}return s.invert=function(t,n){var s=L(t*t+n*n);if(s>x){var l=a(n,t),c=r*p((l-x)/r)+x,u=l>c?-1:1,f=s*o(c-l),h=1/g(u*E((f-y)/L(y*(y-2*f)+s*s)));l=c+2*i((h+u*L(h*h-3))/3),t=s*o(l),n=s*m(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function j(t,r){if(arguments.length<2&&(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return U;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function U(t,e){return[t*o(e)/o(e/=2),2*m(e)]}function V(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+v))&&(o=a+v),r-=i=-1*v*(a-e)/(a-o)}while(s-- >0&&n(i)>v);return s<0?NaN:r}function H(t,e,r){return void 0===e&&(e=40),void 0===r&&(r=1e-12),function(i,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var f=0;fl)o-=c/=2,s-=u/=2;else{l=m;var g=(o>0?-1:1)*r,v=(s>0?-1:1)*r,y=t(o+g,s),x=t(o,s+v),b=(y[0]-h[0])/g,_=(y[1]-h[1])/g,w=(x[0]-h[0])/v,T=(x[1]-h[1])/v,k=T*b-_*w,A=(n(k)<.5?.5:1)/k;if(o+=c=(d*w-p*T)*A,s+=u=(p*_-d*b)*A,n(c)0&&(i[1]*=1+a/1.5*i[0]*i[0]),i}return e.invert=H(e),e}function G(t,e){var r,i=t*m(e),a=30;do{e-=r=(e+m(e)-i)/(1+o(e))}while(n(r)>v&&--a>0);return e/2}function Y(t,e,r){function n(n,i){return[t*n*o(i=G(r,i)),e*m(i)]}return n.invert=function(n,i){return i=S(i/e),[n/(t*o(i)),S((2*i+m(2*i))/r)]},n}B.invert=function(t,e){if((a=n(e))1e-12&&--u>0);return[t/(o(l)*(R-1/m(l))),d(e)*l]},U.invert=function(t,e){var r=2*S(e/2);return[t*o(r/2)/o(r),r]};var W=Y(w/x,w,y);var X=2.00276,Z=1.11072;function J(t,e){var r=G(y,e);return[X*t/(1/o(e)+Z/o(r)),(e+w*m(r))/X]}function K(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*M):r*A},i}function Q(t,e){return[t*o(e),e]}function $(t){if(!t)return Q;var e=1/g(t);function r(r,n){var i=e+t-n,a=i?r*o(n)/i:i;return[i*m(a),e-i*o(a)]}return r.invert=function(r,n){var i=L(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function tt(t){function e(e,r){var n=x-r,i=n?e*t*m(n)/n:n;return[n*m(i)/t,x-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=x-r,o=L(n*n+i*i),s=a(n,i);return[(o?o/m(o):1)*s/t,x-o]},e}J.invert=function(t,e){var r,i,a=X*e,s=e<0?-b:b,l=25;do{i=a-w*m(s),s-=r=(m(2*s)+2*s-y*m(i))/(2*o(2*s)+2+y*o(i)*w*o(s))}while(n(r)>v&&--l>0);return i=a-w*m(s),[t*(1/o(i)+Z/o(s))/X,i]},Q.invert=function(t,e){return[t/o(e),e]};var et=Y(1,4/y,y);function rt(t,e,r,i,s,l){var c,u=o(l);if(n(t)>1||n(l)>1)c=E(r*s+e*i*u);else{var f=m(t/2),h=m(l/2);c=2*S(L(f*f+e*i*h*h))}return n(c)>v?[c,a(i*m(l),e*s-r*i*u)]:[0,0]}function nt(t,e,r){return E((t*t+e*e-r*r)/(2*t*e))}function it(t){return t-2*y*l((t+y)/(2*y))}function at(t,e,r){for(var n,i=[[t[0],t[1],m(t[1]),o(t[1])],[e[0],e[1],m(e[1]),o(e[1])],[r[0],r[1],m(r[1]),o(r[1])]],a=i[2],s=0;s<3;++s,a=n)n=i[s],a.v=rt(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=nt(i[0].v[0],i[2].v[0],i[1].v[0]),c=nt(i[0].v[0],i[1].v[0],i[2].v[0]),u=y-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*m(l))];return function(t,e){var r,n=m(e),a=o(e),s=new Array(3);for(r=0;r<3;++r){var l=i[r];if(s[r]=rt(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=it(s[r][1]-l.v[1])}var h=f.slice();for(r=0;r<3;++r){var p=2==r?0:r+1,d=nt(i[r].v[0],s[r][0],s[p][0]);s[r][1]<0&&(d=-d),r?1==r?(d=c-d,h[0]-=s[r][0]*o(d),h[1]-=s[r][0]*m(d)):(d=u-d,h[0]+=s[r][0]*o(d),h[1]+=s[r][0]*m(d)):(h[0]+=s[r][0]*o(d),h[1]-=s[r][0]*m(d))}return h[0]/=3,h[1]/=3,h}}function ot(t){return t[0]*=M,t[1]*=M,t}function st(t,r,n){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=at(ot(o(t)),ot(o(r)),ot(o(n)));s.invert=H(s);var l=e.geoProjection(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(t){return arguments.length?c(o(t)):o.invert(c())},l.clipAngle(90)}function lt(t,e){var r=L(1-m(e));return[2/T*t*r,T*(1-r)]}function ct(t){var e=g(t);function r(t,r){return[t,(t?t/m(t):1)*(m(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&&(r*=m(t)/t);var n=o(t);return[t,2*a(L(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,S(t?e*g(t)/t:e)]},r}lt.invert=function(t,e){var r=(r=e/T-1)*r;return[r>0?t*L(y/r)/2:0,S(1-r)]};var ut=L(3);function ft(t,e){return[ut*t*(2*o(2*e/3)-1)/T,ut*T*m(e/3)]}function ht(t){var e=o(t);function r(t,r){return[t*e,m(r)/e]}return r.invert=function(t,r){return[t/e,S(r*e)]},r}function pt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*g(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function dt(t,e){var r=L(8/(3*y));return[r*t*(1-n(e)/y),r*e]}function mt(t,e){var r=L(4-3*m(n(e)));return[2/L(6*y)*t*r,d(e)*L(2*y/3)*(2-r)]}function gt(t,e){var r=L(y*(4+y));return[2/r*t*(1+L(1-4*e*e/(y*y))),4/r*e]}function vt(t,e){var r=(2+x)*m(e);e/=2;for(var i=0,a=1/0;i<10&&n(a)>v;i++){var s=o(e);e-=a=(e+m(e)*(s+2)-r)/(2*s*(1+s))}return[2/L(y*(4+y))*t*(1+o(e)),2*L(y/(4+y))*m(e)]}function yt(t,e){return[t*(1+o(e))/L(2+y),2*e/L(2+y)]}function xt(t,e){for(var r=(1+x)*m(e),i=0,a=1/0;i<10&&n(a)>v;i++)e-=a=(e+m(e)-r)/(1+o(e));return r=L(2+y),[t*(1+o(e))/r,2*e/r]}ft.invert=function(t,e){var r=3*S(e/(ut*T));return[T*t/(ut*(2*o(2*r/3)-1)),r]},dt.invert=function(t,e){var r=L(8/(3*y)),i=e/r;return[t/(r*(1-n(i)/y)),i]},mt.invert=function(t,e){var r=2-n(e)/L(2*y/3);return[t*L(6*y)/(2*r),d(e)*S((4-r*r)/3)]},gt.invert=function(t,e){var r=L(y*(4+y))/2;return[t*r/(1+L(1-e*e*(4+y)/(4*y))),e*r/2]},vt.invert=function(t,e){var r=e*L((4+y)/y)/2,n=S(r),i=o(n);return[t/(2/L(y*(4+y))*(1+i)),S((n+r*(i+2))/(2+x))]},yt.invert=function(t,e){var r=L(2+y),n=e*r/2;return[r*t/(1+o(n)),n]},xt.invert=function(t,e){var r=1+x,n=L(r/2);return[2*t*n/(1+o(e*=n)),S((e+m(e))/r)]};var bt=3+2*w;function _t(t,e){var r=m(t/=2),n=o(t),a=L(o(e)),s=o(e/=2),l=m(e)/(s+w*n*a),u=L(2/(1+l*l)),f=L((w*s+(n+r)*a)/(w*s+(n-r)*a));return[bt*(u*(f-1/f)-2*c(f)),bt*(u*l*(f+1/f)-2*i(l))]}_t.invert=function(t,e){if(!(r=D.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=bt,e/=bt;do{var h=a/2,p=s/2,d=m(h),g=o(h),y=m(p),b=o(p),T=o(s),k=L(T),A=y/(b+w*g*k),M=A*A,S=L(2/(1+M)),E=(w*b+(g+d)*k)/(w*b+(g-d)*k),C=L(E),P=C-1/C,I=C+1/C,O=S*P-2*c(C)-t,z=S*A*I-2*i(A)-e,R=y&&_*k*d*M/y,F=(w*g*b+k)/(2*(b+w*g*k)*(b+w*g*k)*k),B=-.5*A*S*S*S,N=B*R,j=B*F,U=(U=2*b+w*k*(g-d))*U*C,V=(w*g*b*k+T)/U,H=-w*d*y/(k*U),q=P*N-2*V/C+S*(V+V/E),G=P*j-2*H/C+S*(H+H/E),Y=A*I*N-2*R/(1+M)+S*I*R+S*A*(V-V/E),W=A*I*j-2*F/(1+M)+S*I*F+S*A*(H-H/E),X=G*Y-W*q;if(!X)break;var Z=(z*G-O*W)/X,J=(O*Y-z*q)/X;a-=Z,s=u(-x,f(x,s-J))}while((n(Z)>v||n(J)>v)&&--l>0);return n(n(s)-x)s){var d=L(h),g=a(f,u),b=i*p(g/i),_=g-b,w=t*o(_),T=(t*m(_)-_*m(w))/(x-w),k=Lt(_,T),A=(y-t)/Ct(k,w,y);u=d;var M,S=50;do{u-=M=(t+Ct(k,w,u)*A-d)/(k(u)*A)}while(n(M)>v&&--S>0);f=_*m(u),us){var u=L(c),f=a(l,r),h=i*p(f/i),d=f-h;r=u*o(d),l=u*m(d);for(var g=r-x,v=m(r),b=l/v,_=rv||n(p)>v)&&--x>0);return[d,g]},u}Tt.invert=function(t,e){var r=e/(1+wt);return[t&&t/(wt*L(1-r*r)),2*i(r)]},kt.invert=function(t,e){var r=i(e/T),n=o(r),a=2*r;return[t*T/2/(o(a)*n*n),a]};var It=Pt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);var Ot=Pt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);var zt=Pt(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Dt(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}Dt.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)>v&&--o>0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)>v&&--o>0);return[i,a]};var Rt=Pt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ft(t){var e=t(x,0)[0]-t(-x,0)[0];function r(r,n){var i=r>0?-.5:.5,a=t(r+i*y,n);return a[0]-=i*e,a}return t.invert&&(r.invert=function(r,n){var i=r>0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*y;return o<-y?o+=2*y:o>y&&(o-=2*y),a[0]=o,a}),r}function Bt(t,e){var r=d(t),i=d(e),s=o(e),l=o(t)*s,c=m(t)*s,u=m(i*e);t=n(a(c,u)),e=S(l),n(t-x)>v&&(t%=x);var f=function(t,e){if(e===x)return[0,0];var r,i,a=m(e),s=a*a,l=s*s,c=1+l,u=1+3*l,f=1-l,h=S(1/L(c)),p=f+s*c*h,d=(1-a)/p,g=L(d),b=d*c,_=L(b),w=g*f;if(0===t)return[0,-(w+s*_)];var T,k=o(e),A=1/k,M=2*a*k,E=(-p*k-(-3*s+h*u)*M*(1-a))/(p*p),C=-A*M,P=-A*(s*c*E+d*u*M),I=-2*A*(f*(.5*E/g)-2*s*g*M),O=4*t/y;if(t>.222*y||e.175*y){if(r=(w+s*L(b*(1+l)-w*w))/(1+l),t>y/4)return[r,r];var z=r,D=.5*r;r=.5*(D+z),i=50;do{var R=L(b-r*r),F=r*(I+C*R)+P*S(r/_)-O;if(!F)break;F<0?D=r:z=r,r=.5*(D+z)}while(n(z-D)>v&&--i>0)}else{r=v,i=25;do{var B=r*r,N=L(b-B),j=I+C*N,U=r*j+P*S(r/_)-O,V=j+(P-C*B)/N;r-=T=N?U/V:0}while(n(T)>v&&--i>0)}return[r,-w-s*L(b-r*r)]}(t>y/4?x-t:t,e);return t>y/4&&(u=f[0],f[0]=-f[1],f[1]=-u),f[0]*=r,f[1]*=-i,f}function Nt(t,e){var r,a,l,c,u,f;if(e=1-v)return r=(1-e)/4,l=1/(a=P(t)),[(c=((f=s(2*(f=t)))-1)/(f+1))+r*((u=a*C(t))-t)/(a*a),l-r*c*l*(u-t),l+r*c*l*(u+t),2*i(s(t))-x+r*(u-t)/a];var h=[1,0,0,0,0,0,0,0,0],p=[L(e),0,0,0,0,0,0,0,0],d=0;for(a=L(1-e),u=1;n(p[d]/h[d])>v&&d<8;)r=h[d++],p[d]=(r-a)/2,h[d]=(r+a)/2,a=L(r*a),u*=2;l=u*h[d]*t;do{l=(S(c=p[d]*m(a=l)/h[d])+l)/2}while(--d);return[m(l),c=o(l),c/o(l-a),l]}function jt(t,e){if(!e)return t;if(1===e)return c(g(t/2+b));for(var r=1,a=L(1-e),o=L(e),s=0;n(o)>v;s++){if(t%y){var l=i(a*g(t)/r);l<0&&(l+=y),t+=l+~~(t/y)*y}else t+=t;o=(r+a)/2,a=L(r*a),o=((r=o)-a)/2}return t/(h(2,s)*r)}function Ut(t,e){var r=(w-1)/(w+1),l=L(1-r*r),u=jt(x,l*l),f=c(g(y/4+n(e)/2)),h=s(-1*f)/L(r),p=function(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t>=0?x:-x)-a(i,2*t)),-.25*c(i*i+4*r)+.5*c(n*n+r)]}(h*o(-1*t),h*m(-1*t)),v=function(t,e,r){var a=n(t),o=C(n(e));if(a){var s=1/m(a),l=1/(g(a)*g(a)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+L(c*c-4*((r-1)*l)))/2;return[jt(i(1/L(u)),r)*d(t),jt(i(L((u/l-1)/r)),1-r)*d(e)]}return[0,jt(i(o),1-r)*d(e)]}(p[0],p[1],l*l);return[-v[1],(e>=0?1:-1)*(.5*u-v[0])]}function Vt(t){var e=m(t),r=o(t),i=Ht(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=m(a),c=o(a),u=o(t),f=E(e*l+r*c*u),h=m(f),p=n(h)>v?f/h:1;return[p*r*m(t),(n(t)>x?p:-p)*(e*c-r*l*u)]}return i.invert=Ht(-t),s.invert=function(t,r){var n=L(t*t+r*r),s=-m(n),l=o(n),c=n*l,u=-r*s,f=n*e,h=L(c*c+u*u-f*f),p=a(c*f+u*h,u*f-c*h),d=(n>x?-1:1)*a(t*s,n*o(p)*l+r*m(p)*s);return i.invert(d,p)},s}function Ht(t){var e=m(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=m(t)*i,c=m(n);return[a(l,s*r-c*e),S(c*r+s*e)]}}Bt.invert=function(t,e){n(t)>1&&(t=2*d(t)-t),n(e)>1&&(e=2*d(e)-e);var r=d(t),i=d(e),s=-r*t,l=-i*e,c=l/s<1,u=function(t,e){var r=0,i=1,a=.5,s=50;for(;;){var l=a*a,c=L(a),u=S(1/L(1+l)),f=1-l+a*(1+l)*u,h=(1-c)/f,p=L(h),d=h*(1+l),m=p*(1-l),g=L(d-t*t),v=e+m+a*g;if(n(i-r)<1e-12||0==--s||0===v)break;v>0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var x=S(c),b=o(x),_=1/b,w=2*c*b,T=(-f*b-(-3*a+u*(1+3*l))*w*(1-c))/(f*f);return[y/4*(t*(-2*_*(.5*T/p*(1-l)-2*a*p*w)+-_*w*g)+-_*(a*(1+l)*T+h*(1+3*l)*w)*S(t/L(d))),x]}(c?l:s,c?s:l),f=u[0],h=u[1],p=o(h);return c&&(f=-x-f),[r*(a(m(f)*p,-m(h))+y),i*S(o(f)*p)]},Ut.invert=function(t,e){var r,n,o,l,u,f,h=(w-1)/(w+1),p=L(1-h*h),d=jt(x,p*p),m=(n=-t,o=p*p,(r=.5*d-e)?(l=Nt(r,o),n?(f=(u=Nt(n,1-o))[1]*u[1]+o*l[0]*l[0]*u[0]*u[0],[[l[0]*u[2]/f,l[1]*l[2]*u[0]*u[1]/f],[l[1]*u[1]/f,-l[0]*l[2]*u[0]*u[2]/f],[l[2]*u[1]*u[2]/f,-o*l[0]*l[1]*u[0]/f]]):[[l[0],0],[l[1],0],[l[2],0]]):[[0,(u=Nt(n,1-o))[0]/u[1]],[1/u[1],0],[u[2]/u[1],0]]),g=function(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}(m[0],m[1]);return[a(g[1],g[0])/-1,2*i(s(-.5*c(h*g[0]*g[0]+h*g[1]*g[1])))-x]};var qt=S(1-1/3)*A,Gt=ht(0);function Yt(t){var e=qt*M,r=lt(y,e)[0]-lt(-y,e)[0],i=Gt(0,e)[1],a=lt(0,e)[1],o=T-a,s=k/t,c=4/k,h=i+o*o*4/k;function p(p,d){var m,g=n(d);if(g>e){var v=f(t-1,u(0,l((p+y)/s)));(m=lt(p+=y*(t-1)/t-v*s,g))[0]=m[0]*k/r-k*(t-1)/(2*t)+v*k/t,m[1]=i+4*(m[1]-a)*o/k,d<0&&(m[1]=-m[1])}else m=Gt(p,d);return m[0]*=c,m[1]/=h,m}return p.invert=function(e,p){e/=c;var d=n(p*=h);if(d>i){var m=f(t-1,u(0,l((e+y)/s)));e=(e+y*(t-1)/t-m*s)*r/k;var g=lt.invert(e,.25*(d-i)*k/o+a);return g[0]-=y*(t-1)/t-m*s,p<0&&(g[1]=-g[1]),g}return Gt.invert(e,p)},p}function Wt(t,e){return[t,1&e?90-v:qt]}function Xt(t,e){return[t,1&e?-90+v:-qt]}function Zt(t){return[t[0]*(1-v),t[1]]}function Jt(t){var e,r=1+t,i=S(m(1/r)),s=2*L(y/(e=y+4*i*r)),l=.5*s*(r+L(t*(2+t))),c=t*t,u=r*r;function f(f,h){var p,d,g=1-m(h);if(g&&g<2){var v,b=x-h,_=25;do{var w=m(b),T=o(b),k=i+a(w,r-T),A=1+u-2*r*T;b-=v=(b-c*i-r*w+A*k-.5*g*e)/(2*r*w*k)}while(n(v)>1e-12&&--_>0);p=s*L(A),d=f*k/y}else p=s*(t+g),d=f*i/y;return[p*m(d),l-p*o(d)]}return f.invert=function(t,n){var o=t*t+(n-=l)*n,f=(1+u-o/(s*s))/(2*r),h=E(f),p=m(h),d=i+a(p,r-f);return[S(t/L(o))*y/d,S(1-2*(h-c*i-r*p+(1+u-2*r*f)*d)/e)]},f}function Kt(t,e){return e>-.7109889596207567?((t=W(t,e))[1]+=.0528035274542,t):Q(t,e)}function Qt(t,e){return n(e)>.7109889596207567?((t=W(t,e))[1]-=e>0?.0528035274542:-.0528035274542,t):Q(t,e)}function $t(t,e,r,n){var i=L(4*y/(2*r+(1+t-e/2)*m(2*r)+(t+e)/2*m(4*r)+e/2*m(6*r))),a=L(n*m(r)*L((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*c(1);function l(r){return L(1+t*o(2*r)+e*o(4*r))}function c(n){var i=n*r;return(2*i+(1+t-e/2)*m(2*i)+(t+e)/2*m(4*i)+e/2*m(6*i))/r}function u(t){return l(t)*m(t)}var f=function(t,e){var n=r*V(c,s*m(e)/r,e/y);isNaN(n)&&(n=r*d(e));var u=i*l(n);return[u*a*t/y*o(n),u/a*m(n)]};return f.invert=function(t,e){var n=V(u,e*a/i);return[t*y/(o(n)*i*a*l(n)),S(r*c(n/r)/s)]},0===r&&(i=L(n/y),(f=function(t,e){return[t*i,m(e)/i]}).invert=function(t,e){return[t/i,S(e*i)]}),f}function te(t,e,r,n,i){void 0===n&&(n=1e-8),void 0===i&&(i=20);var a=t(e),o=t(.5*(e+r)),s=t(r);return function t(e,r,n,i,a,o,s,l,c,u,f){if(f.nanEncountered)return NaN;var h,p,d,m,g,v,y,x,b,_;if(p=e(r+.25*(h=n-r)),d=e(n-.25*h),isNaN(p))f.nanEncountered=!0;else{if(!isNaN(d))return _=((v=(m=h*(i+4*p+a)/12)+(g=h*(a+4*d+o)/12))-s)/15,u>c?(f.maxDepthCount++,v+_):Math.abs(_)t?r=n:e=n,n=e+r>>1}while(n>e);var i=c[n+1]-c[n];return i&&(i=(t-c[n+1])/i),(n+1+i)/s}var p=2*f(1)/y*o/r,g=function(t,e){var r=f(n(m(e))),a=i(r)*t;return r/=p,[a,e>=0?r:-r]};return g.invert=function(t,e){var r;return n(e*=p)<1&&(r=d(e)*S(a(n(e))*o)),[t/i(n(e)),r]},g}function re(t,e){return n(t[0]-e[0])=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[o-v,s-v],[o-v,a+v],[n+v,a+v],[n+v,i-v]],30));return{type:"Polygon",coordinates:[r.merge(c)]}}function ae(t,r,n){var i,a;function o(e,n){for(var i=n<0?-1:1,a=r[+(n<0)],o=0,s=a.length-1;oa[o][2][0];++o);var l=t(e-a[o][1][0],n);return l[0]+=t(a[o][1][0],i*n>i*a[o][0][1]?a[o][0][1]:n)[0],l}n?o.invert=n(o):t.invert&&(o.invert=function(e,n){for(var i=a[+(n<0)],s=r[+(n<0)],l=0,c=i.length;lo&&(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):r.map((function(t){return t.map((function(t){return[[t[0][0]*A,t[0][1]*A],[t[1][0]*A,t[1][1]*A],[t[2][0]*A,t[2][1]*A]]}))}))},null!=r&&s.lobes(r),s}Kt.invert=function(t,e){return e>-.7109889596207567?W.invert(t,e-.0528035274542):Q.invert(t,e)},Qt.invert=function(t,e){return n(e)>.7109889596207567?W.invert(t,e+(e>0?.0528035274542:-.0528035274542)):Q.invert(t,e)};var oe=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var se=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var le=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var ce=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];var ue=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];var fe=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function he(t,e){return[3/k*t*L(y*y/3-e*e),e]}function pe(t){function e(e,r){if(n(n(r)-x)2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=h((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,S((l-1)/(l+1))]},e}he.invert=function(t,e){return[k/3*t/L(y*y/3-e*e),e]};var de=y/w;function me(t,e){return[t*(1+L(o(e)))/2,e/(o(e/2)*o(t/6))]}function ge(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function ve(t,e){return[m(t)/o(e),g(e)*o(t)]}function ye(t){var e=o(t),r=g(b+t/2);function i(i,a){var o=a-t,s=n(o)=0;)h=(f=t[u])[0]+l*(i=h)-c*p,p=f[1]+l*p+c*i;return[h=l*(i=h)-c*p,p=l*p+c*i]}return r.invert=function(r,s){var l=20,c=r,u=s;do{for(var f,h=e,p=t[h],d=p[0],g=p[1],v=0,y=0;--h>=0;)v=d+c*(f=v)-u*y,y=g+c*y+u*f,d=(p=t[h])[0]+c*(f=d)-u*g,g=p[1]+c*g+u*f;var x,b,_=(v=d+c*(f=v)-u*y)*v+(y=g+c*y+u*f)*y;c-=x=((d=c*(f=d)-u*g-r)*v+(g=c*g+u*f-s)*y)/_,u-=b=(g*v-d*y)/_}while(n(x)+n(b)>1e-12&&--l>0);if(l){var w=L(c*c+u*u),T=2*i(.5*w),k=m(T);return[a(c*k,w*o(T)),w?S(u*k/w):0]}},r}me.invert=function(t,e){var r=n(t),i=n(e),a=v,s=x;iv||n(b)>v)&&--a>0);return a&&[r,i]},ve.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?_*L((i-L(i*i-4*r))/r):1/L(n);return[S(t*a),d(e)*E(a)]},xe.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var _e=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],we=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Te=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ke=[[.9245,0],[0,0],[.01943,0]],Ae=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Me(t,r){var n=e.geoProjection(be(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var Se=L(6),Ee=L(7);function Le(t,e){var r=S(7*m(e)/(3*Se));return[Se*t*(2*o(2*r/3)-1)/Ee,9*m(r/3)/Ee]}function Ce(t,e){for(var r,i=(1+_)*m(e),a=e,s=0;s<25&&(a-=r=(m(a/2)+m(a)-i)/(.5*o(a/2)+o(a)),!(n(r)1e-12&&--l>0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},Oe.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i<10&&n(a)>v;++i){var s=o(e/2);e-=a=(e-g(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var ze=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function De(t,e){var r=m(e),i=o(e),a=d(t);if(0===t||n(e)===x)return[0,e];if(0===e)return[t,0];if(n(t)===x)return[t*i,x*r];var s=y/(2*t)-2*t/y,l=2*e/y,c=(1-l*l)/(r-l),u=s*s,f=c*c,h=1+u/f,p=1+f/u,g=(s*r/c-s/2)/h,v=(f*r/u+c/2)/p,b=v*v-(f*r*r/u+c*r-1)/p;return[x*(g+L(g*g+i*i/h)*a),x*(v+L(b<0?0:b)*d(-e*s)*a)]}De.invert=function(t,e){var r=(t/=x)*t,n=r+(e/=x)*e,i=y*y;return[t?(n-1+L((1-n)*(1-n)+4*r))/(2*t)*x:0,V((function(t){return n*(y*m(t)-2*t)*y+4*t*t*(e-m(t))+2*y*t-i*e}),0)]};function Re(t,e){var r=e*e;return[t,e*(1.0148+r*r*(.23185+r*(.02406*r-.14499)))]}function Fe(t,e){if(n(e)=0;)if(n=e[s],r[0]===n[0]&&r[1]===n[1]){if(a)return[a,r];a=r}}}(e.face,r.face),i=Be(n.map(r.project),n.map(e.project));e.transform=r.transform?Ne(r.transform,i):i;for(var a=r.edges,o=0,s=a.length;o1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var r,i=e;do{var a=i*i;i-=r=(i*(1.0148+a*a*(.23185+a*(.02406*a-.14499)))-e)/(1.0148+a*a*(5*.23185+a*(.21654*a-1.01493)))}while(n(r)>v);return[t,i]},Fe.invert=function(t,e){if(n(e)v&&--s>0);return l=g(a),[(n(e)n^p>n&&r<(h-c)*(n-u)/(p-u)+c&&(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),nr=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}};function sr(t){var r=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=n(e)0?e-y:e+y,i),s=(o[0]-o[1])*_,l=(o[0]+o[1])*_;if(a)return[s,l];var c=r*_,u=s>0^l>0?-1:1;return[u*s-d(l)*c,u*l-d(s)*c]}return t.invert&&(i.invert=function(e,i){var a=(e+i)*_,o=(i-e)*_,s=n(a)<.5*r&&n(o)<.5*r;if(!s){var l=r*_,c=a>0^o>0?-1:1,u=-c*e+(o>0?1:-1)*l,f=-c*i+(a>0?1:-1)*l;a=(-u-f)*_,o=(u-f)*_}var h=t.invert(a,o);return s||(h[0]+=a>0?y:-y),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function lr(){return sr(Ut).scale(111.48)}function cr(t){var e=m(t);function r(r,n){var a=e?g(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*m(n)),l=1/g(n);return[m(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)v&&--u>0);var d=r*(f=g(c)),x=g(n(a)0?x:-x)*(h+o*(d-c)/2+o*o*(d-2*h+c)/2)]}function hr(t,e){var r=function(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*m(e),i*m(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=L(n),o=(t-L(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*L(1-o*o)),i?S(r*o/i):0]},e}(t);if(!e)return r;var n=o(e),i=m(e);function s(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return s.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},s}ur.forEach((function(t){t[1]*=1.0144})),fr.invert=function(t,e){var r=e/x,i=90*r,a=f(18,n(i/5)),o=u(0,l(a));do{var s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],p=h-s,d=h-2*c+s,m=2*(n(r)-c)/p,g=d/p,v=m*(1-g*m*(1-2*g*m));if(v>=0||1===o){i=(e>=0?5:-5)*(v+a);var y,b=50;do{v=(a=f(18,n(i)/5))-(o=l(a)),s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],i-=(y=(e>=0?x:-x)*(c+v*(h-s)/2+v*v*(h-2*c+s)/2)-e)*A}while(n(y)>1e-12&&--b>0);break}}while(--o>=0);var _=ur[o][0],w=ur[o+1][0],T=ur[f(19,o+2)][0];return[t/(w+v*(T-_)/2+v*v*(T-2*w+_)/2),i*M]};var pr=-179.9999,dr=179.9999,mr=-89.9999;function gr(t){return t.length>0}function vr(t){return-90===t||90===t?[0,t]:[-180,(e=t,Math.floor(1e4*e)/1e4)];var e}function yr(t){var e=t[0],r=t[1],n=!1;return e<=pr?(e=-180,n=!0):e>=dr&&(e=180,n=!0),r<=mr?(r=-90,n=!0):r>=89.9999&&(r=90,n=!0),n?[e,r]:t}function xr(t){return t.map(yr)}function br(t,e,r){for(var n=0,i=t.length;n=dr||u<=mr||u>=89.9999){a[o]=yr(l);for(var f=o+1;fpr&&pmr&&d<89.9999)break}if(f===o+1)continue;if(o){var m={index:-1,polygon:e,ring:a.slice(0,o+1)};m.ring[m.ring.length-1]=vr(u),r[r.length-1]=m}else r.pop();if(f>=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=vr(a[0][1]),o=-1,s=a.length}}}}function _r(t){var e,r,n,i,a,o,s=t.length,l={},c={};for(e=0;e0?y-l:l)*A],u=e.geoProjection(t(s)).rotate(c),f=e.geoRotation(c),h=u.center;return delete u.rotate,u.center=function(t){return arguments.length?h(f(t)):f.invert(h())},u.clipAngle(90)}function Mr(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function Sr(t,e){return Ar(Mr,t,e)}function Er(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=g(n),l=.5/m(n);function c(e,a){var s=E(o(a)*o(e-r)),l=E(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a<0?-1:1)*L(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return c.invert=function(t,e){var i,c,u=e*e,f=o(L(u+(i=t+r)*i)),h=o(L(u+(i=t+n)*i));return[a(c=f-h,i=(f+h)*s),(e<0?-1:1)*E(L(i*i+c*c)*l)]},c}function Lr(t,e){return Ar(Er,t,e)}function Cr(t,e){if(n(e)v&&--l>0);return[d(t)*(L(a*a+4)+a)*y/4,x*s]};var Rr=4*y+3*L(3),Fr=2*L(2*y*L(3)/Rr),Br=Y(Fr*L(3)/y,Fr,Rr/6);function Nr(t,e){return[t*L(1-3*e*e/(y*y)),e]}function jr(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(m(t)*r,-m(e))),l=m(t);return[l*(r=L(1-n*n))-s*i,-s*r-l*i]}function Ur(t,e){var r=O(t,e);return[(r[0]+t/x)/2,(r[1]+e)/2]}Nr.invert=function(t,e){return[t/L(1-3*e*e/(y*y)),e]},jr.invert=function(t,e){var r=(t*t+e*e)/-2,n=L(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=L(o*o+i*i);return[a(n*i,s*(1+r)),s?-S(n*o/s):0]},Ur.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),c=m(i),u=m(2*i),f=c*c,h=l*l,p=m(r),d=o(r/2),g=m(r/2),y=g*g,b=1-h*d*d,_=b?E(l*d)*L(s=1/b):s=0,w=.5*(2*_*l*g+r/x)-t,T=.5*(_*c+i)-e,k=.5*s*(h*y+_*l*d*f)+.5/x,A=s*(p*u/4-_*c*g),M=.125*s*(u*g-_*c*h*p),S=.5*s*(f*d+_*y*l)+.5,C=A*M-S*k,P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)>v||n(I)>v)&&--a>0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=function(){var t=x,r=e.geoProjectionMutator(I),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*M):t*A},n.scale(179.976).clipAngle(147)},t.geoAiryRaw=I,t.geoAitoff=function(){return e.geoProjection(O).scale(152.63)},t.geoAitoffRaw=O,t.geoArmadillo=function(){var t=20*M,r=t>=0?1:-1,n=g(r*t),i=e.geoProjectionMutator(z),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=g((r=(t=e*M)>=0?1:-1)*t),i(t)):t*A},s.stream=function(e){var i=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e)),f=s.precision();return s.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*r;r*e<180;e+=90*r)u.point(e,90*r);if(t)for(;r*(e-=3*r*f)>=-180;)u.point(e,r*-a(o(e*M/2),n)*A);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=z,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,r=e.geoProjectionMutator(N),n=r(t),i=n.stream,s=-o(.01*M),l=m(.01*M);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),c=i(e),u=(n.rotate([0,0]),i(e));return n.rotate(r),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,r=360/t,n=2*y/t,i=90-180/t,c=x;e=0;)t.point((e=r[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Vt,t.geoHealpix=function(){var t=4,n=e.geoProjectionMutator(Yt),i=n(t),a=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),s=a(n),l=(i.rotate([0,0]),a(n));return i.rotate(o),s.sphere=function(){var n,i;e.geoStream((n=180/t,i=[].concat(r.range(-180,180+n/2,n).map(Wt),r.range(180,-180-n/2,-n).map(Xt)),{type:"Polygon",coordinates:[180===n?i.map(Zt):i]}),l)},s},i.scale(239.75)},t.geoHealpixRaw=Yt,t.geoHill=function(){var t=1,r=e.geoProjectionMutator(Jt),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])},t.geoHillRaw=Jt,t.geoHomolosine=function(){return e.geoProjection(Qt).scale(152.63)},t.geoHomolosineRaw=Qt,t.geoHufnagel=function(){var t=1,r=0,n=45*M,i=2,a=e.geoProjectionMutator($t),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*M,i):n*A},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)},t.geoHufnagelRaw=$t,t.geoHyperelliptical=function(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(ee),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)},t.geoHyperellipticalRaw=ee,t.geoInterrupt=ae,t.geoInterruptedBoggs=function(){return ae(J,oe).scale(160.857)},t.geoInterruptedHomolosine=function(){return ae(Qt,se).scale(152.63)},t.geoInterruptedMollweide=function(){return ae(W,le).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return ae(W,ce).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return ae(Kt,ue,H).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return ae(Q,fe).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(he).scale(158.837)},t.geoKavrayskiy7Raw=he,t.geoLagrange=function(){var t=.5,r=e.geoProjectionMutator(pe),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)},t.geoLagrangeRaw=pe,t.geoLarrivee=function(){return e.geoProjection(me).scale(97.2672)},t.geoLarriveeRaw=me,t.geoLaskowski=function(){return e.geoProjection(ge).scale(139.98)},t.geoLaskowskiRaw=ge,t.geoLittrow=function(){return e.geoProjection(ve).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=ve,t.geoLoximuthal=function(){return K(ye).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ye,t.geoMiller=function(){return e.geoProjection(xe).scale(108.318)},t.geoMillerRaw=xe,t.geoModifiedStereographic=Me,t.geoModifiedStereographicRaw=be,t.geoModifiedStereographicAlaska=function(){return Me(_e,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},t.geoModifiedStereographicGs48=function(){return Me(we,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return Me(Te,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return Me(ke,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return Me(Ae,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(W).scale(169.529)},t.geoMollweideRaw=W,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(Le).scale(164.859)},t.geoMtFlatPolarParabolicRaw=Le,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(Ce).scale(188.209)},t.geoMtFlatPolarQuarticRaw=Ce,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(Pe).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=Pe,t.geoNaturalEarth2=function(){return e.geoProjection(Ie).scale(175.295)},t.geoNaturalEarth2Raw=Ie,t.geoNellHammer=function(){return e.geoProjection(Oe).scale(152.63)},t.geoNellHammerRaw=Oe,t.geoInterruptedQuarticAuthalic=function(){return ae(j(1/0),ze).rotate([20,0]).scale(152.63)},t.geoNicolosi=function(){return e.geoProjection(De).scale(127.267)},t.geoNicolosiRaw=De,t.geoPatterson=function(){return e.geoProjection(Re).scale(139.319)},t.geoPattersonRaw=Re,t.geoPolyconic=function(){return e.geoProjection(Fe).scale(103.74)},t.geoPolyconicRaw=Fe,t.geoPolyhedral=Ve,t.geoPolyhedralButterfly=function(t){t=t||function(t){var r=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t<-y/2?e<0?6:4:t<0?e<0?2:0:t0?[-r[0],0]:[180-r[0],180])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t<-y/2?e<0?6:4:t<0?e<0?2:0:t2||a[0]!=e[0]||a[1]!=e[1])&&(n.push(a),e=a)}return 1===n.length&&t.length>1&&n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:r(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:a(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function s(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return s(t);case"FeatureCollection":var l={type:"FeatureCollection",features:t.features.map(s)};return null!=t.bbox&&(l.bbox=t.bbox),l;default:return o(t)}return t},t.geoQuincuncial=sr,t.geoRectangularPolyconic=function(){return K(cr).scale(131.215)},t.geoRectangularPolyconicRaw=cr,t.geoRobinson=function(){return e.geoProjection(fr).scale(152.63)},t.geoRobinsonRaw=fr,t.geoSatellite=function(){var t=2,r=0,n=e.geoProjectionMutator(hr),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*M):r*A},i.scale(432.147).clipAngle(E(1/t)*A-1e-6)},t.geoSatelliteRaw=hr,t.geoSinuMollweide=function(){return e.geoProjection(Kt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoSinuMollweideRaw=Kt,t.geoSinusoidal=function(){return e.geoProjection(Q).scale(152.63)},t.geoSinusoidalRaw=Q,t.geoStitch=function(t){if(null==t)return t;switch(t.type){case"Feature":return wr(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(wr)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return Tr(t)}},t.geoTimes=function(){return e.geoProjection(kr).scale(146.153)},t.geoTimesRaw=kr,t.geoTwoPointAzimuthal=Sr,t.geoTwoPointAzimuthalRaw=Mr,t.geoTwoPointAzimuthalUsa=function(){return Sr([-158,21.5],[-77,39]).clipAngle(60).scale(400)},t.geoTwoPointEquidistant=Lr,t.geoTwoPointEquidistantRaw=Er,t.geoTwoPointEquidistantUsa=function(){return Lr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},t.geoVanDerGrinten=function(){return e.geoProjection(Cr).scale(79.4183)},t.geoVanDerGrintenRaw=Cr,t.geoVanDerGrinten2=function(){return e.geoProjection(Pr).scale(79.4183)},t.geoVanDerGrinten2Raw=Pr,t.geoVanDerGrinten3=function(){return e.geoProjection(Ir).scale(79.4183)},t.geoVanDerGrinten3Raw=Ir,t.geoVanDerGrinten4=function(){return e.geoProjection(Or).scale(127.16)},t.geoVanDerGrinten4Raw=Or,t.geoWagner=Dr,t.geoWagner7=function(){return Dr().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},t.geoWagnerRaw=zr,t.geoWagner4=function(){return e.geoProjection(Br).scale(176.84)},t.geoWagner4Raw=Br,t.geoWagner6=function(){return e.geoProjection(Nr).scale(152.63)},t.geoWagner6Raw=Nr,t.geoWiechel=function(){return e.geoProjection(jr).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},t.geoWiechelRaw=jr,t.geoWinkel3=function(){return e.geoProjection(Ur).scale(158.837)},t.geoWinkel3Raw=Ur,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":102,"d3-geo":109}],109:[function(t,e,r){!function(n,i){"object"==typeof r&&void 0!==e?i(r,t("d3-array")):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=Math.PI,l=s/2,c=s/4,u=2*s,f=180/s,h=s/180,p=Math.abs,d=Math.atan,m=Math.atan2,g=Math.cos,v=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,_=Math.sin,w=Math.sign||function(t){return t>0?1:t<0?-1:0},T=Math.sqrt,k=Math.tan;function A(t){return t>1?0:t<-1?s:Math.acos(t)}function M(t){return t>1?l:t<-1?-l:Math.asin(t)}function S(t){return(t=_(t/2))*t}function E(){}function L(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var C={Feature:function(t,e){L(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n=0?1:-1,i=n*r,a=g(e=(e*=h)/2+c),o=_(e),s=N*o,l=B*a+s*g(i),u=s*n*_(i);j.add(m(u,l)),F=t,B=a,N=o}function W(t){return[m(t[1],t[0]),M(t[2])]}function X(t){var e=t[0],r=t[1],n=g(r);return[n*g(e),n*_(e),_(r)]}function Z(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function K(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function $(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,mt,gt,vt,yt,xt,bt,_t,wt,Tt,kt,At,Mt=r(),St={point:Et,lineStart:Ct,lineEnd:Pt,polygonStart:function(){St.point=It,St.lineStart=Ot,St.lineEnd=zt,Mt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),St.point=Et,St.lineStart=Ct,St.lineEnd=Pt,j<0?(tt=-(rt=180),et=-(nt=90)):Mt>o?nt=90:Mt<-o&&(et=-90),ct[0]=tt,ct[1]=rt},sphere:function(){tt=-(rt=180),et=-(nt=90)}};function Et(t,e){lt.push(ct=[tt=t,rt=t]),ent&&(nt=e)}function Lt(t,e){var r=X([t*h,e*h]);if(st){var n=J(st,r),i=J([n[1],-n[0],0],n);$(i),i=W(i);var a,o=t-it,s=o>0?1:-1,l=i[0]*f*s,c=p(o)>180;c^(s*itnt&&(nt=a):c^(s*it<(l=(l+360)%360-180)&&lnt&&(nt=e)),c?tDt(tt,rt)&&(rt=t):Dt(t,rt)>Dt(tt,rt)&&(tt=t):rt>=tt?(trt&&(rt=t)):t>it?Dt(tt,t)>Dt(tt,rt)&&(rt=t):Dt(t,rt)>Dt(tt,rt)&&(tt=t)}else lt.push(ct=[tt=t,rt=t]);ent&&(nt=e),st=r,it=t}function Ct(){St.point=Lt}function Pt(){ct[0]=tt,ct[1]=rt,St.point=Et,st=null}function It(t,e){if(st){var r=t-it;Mt.add(p(r)>180?r+(r>0?360:-360):r)}else at=t,ot=e;V.point(t,e),Lt(t,e)}function Ot(){V.lineStart()}function zt(){It(at,ot),V.lineEnd(),p(Mt)>o&&(tt=-(rt=180)),ct[0]=tt,ct[1]=rt,st=null}function Dt(t,e){return(e-=t)<0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:es?t+Math.round(-t/u)*u:t,e]}function Qt(t,e,r){return(t%=u)?e||r?Jt(te(t),ee(e,r)):te(t):e||r?ee(e,r):Kt}function $t(t){return function(e,r){return[(e+=t)>s?e-u:e<-s?e+u:e,r]}}function te(t){var e=$t(t);return e.invert=$t(-t),e}function ee(t,e){var r=g(t),n=_(t),i=g(e),a=_(e);function o(t,e){var o=g(e),s=g(t)*o,l=_(t)*o,c=_(e),u=c*r+s*n;return[m(l*i-u*a,s*r-c*n),M(u*i+l*a)]}return o.invert=function(t,e){var o=g(e),s=g(t)*o,l=_(t)*o,c=_(e),u=c*i-l*a;return[m(l*i+c*a,s*r+u*n),M(u*r-s*n)]},o}function re(t){function e(e){return(e=t(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*h,t[1]*h,t.length>2?t[2]*h:0),e.invert=function(e){return(e=t.invert(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e},e}function ne(t,e,r,n,i,a){if(r){var o=g(e),s=_(e),l=n*r;null==i?(i=e+n*u,a=e-l/2):(i=ie(o,i),a=ie(o,a),(n>0?ia)&&(i+=n*u));for(var c,f=i;n>0?f>a:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function oe(t,e){return p(t[0]-e[0])=0;--a)i.point((f=u[a])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function ce(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n=0?1:-1,z=O*I,D=z>s,R=T*C;if(ue.add(m(R*O*_(z),k*P+R*g(z))),f+=D?I+O*u:I,D^b>=r^E>=r){var F=J(X(x),X(S));$(F);var B=J(a,F);$(B);var N=(D^I>=0?-1:1)*M(B[2]);(n>N||n===N&&(F[0]||F[1]))&&(h+=D^I>=0?1:-1)}}return(f<-o||f0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t1&&2&i&&c.push(c.pop().concat(c.shift())),s.push(c.filter(de))}return p}}function de(t){return t.length>1}function me(t,e){return((t=t.x)[0]<0?t[1]-l-o:l-t[1])-((e=e.x)[0]<0?e[1]-l-o:l-e[1])}var ge=pe((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,c){var u=a>0?s:-s,f=p(a-r);p(f-s)0?l:-l),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(a,n),e=0):i!==u&&f>=s&&(p(r-i)o?d((_(e)*(a=g(n))*_(r)-_(n)*(i=g(e))*_(t))/(i*a*s)):(e+n)/2}(r,n,a,c),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),e=0),t.point(r=a,n=c),i=u},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*l,n.point(-s,i),n.point(0,i),n.point(s,i),n.point(s,0),n.point(s,-i),n.point(0,-i),n.point(-s,-i),n.point(-s,0),n.point(-s,i);else if(p(t[0]-e[0])>o){var a=t[0]0,i=p(e)>o;function a(t,r){return g(t)*g(r)>e}function l(t,r,n){var i=[1,0,0],a=J(X(t),X(r)),l=Z(a,a),c=a[0],u=l-c*c;if(!u)return!n&&t;var f=e*l/u,h=-e*c/u,d=J(i,a),m=Q(i,f);K(m,Q(a,h));var g=d,v=Z(m,g),y=Z(g,g),x=v*v-y*(Z(m,m)-1);if(!(x<0)){var b=T(x),_=Q(g,(-v-b)/y);if(K(_,m),_=W(_),!n)return _;var w,k=t[0],A=r[0],M=t[1],S=r[1];A0^_[1]<(p(_[0]-k)s^(k<=_[0]&&_[0]<=A)){var C=Q(g,(-v+b)/y);return K(C,m),[_,W(C)]}}}function c(e,r){var i=n?t:s-t,a=0;return e<-i?a|=1:e>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}return pe(a,(function(t){var e,r,o,u,f;return{lineStart:function(){u=o=!1,f=1},point:function(h,p){var d,m=[h,p],g=a(h,p),v=n?g?0:c(h,p):g?c(h+(h<0?s:-s),p):0;if(!e&&(u=o=g)&&t.lineStart(),g!==o&&(!(d=l(e,m))||oe(e,d)||oe(m,d))&&(m[2]=1),g!==o)f=0,g?(t.lineStart(),d=l(m,e),t.point(d[0],d[1])):(d=l(e,m),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&n^g){var y;v&r||!(y=l(m,e,!0))||(f=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&&oe(e,m)||t.point(m[0],m[1]),e=m,o=g,r=v},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return f|(u&&o)<<1}}}),(function(e,n,i,a){ne(a,t,r,i,e,n)}),n?[0,-t]:[-s,t-s])}function ye(t,r,n,i){function a(e,a){return t<=e&&e<=n&&r<=a&&a<=i}function s(e,a,o,s){var c=0,f=0;if(null==e||(c=l(e,o))!==(f=l(a,o))||u(e,a)<0^o>0)do{s.point(0===c||3===c?t:n,c>1?i:r)}while((c=(c+o+4)%4)!==f);else s.point(a[0],a[1])}function l(e,i){return p(e[0]-t)0?0:3:p(e[0]-n)0?2:1:p(e[1]-r)0?1:0:i>0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,f,h,p,d,m,g,v,y,x,b=o,_=ae(),w={point:T,lineStart:function(){w.point=k,u&&u.push(f=[]);y=!0,v=!1,m=g=NaN},lineEnd:function(){l&&(k(h,p),d&&v&&_.rejoin(),l.push(_.result()));w.point=T,v&&b.lineEnd()},polygonStart:function(){b=_,l=[],u=[],x=!0},polygonEnd:function(){var r=function(){for(var e=0,r=0,n=u.length;ri&&(h-a)*(i-o)>(p-o)*(t-a)&&++e:p<=i&&(h-a)*(i-o)<(p-o)*(t-a)&&--e;return e}(),n=x&&r,a=(l=e.merge(l)).length;(n||a)&&(o.polygonStart(),n&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),a&&le(l,c,r,s,o),o.polygonEnd());b=o,l=u=f=null}};function T(t,e){a(t,e)&&b.point(t,e)}function k(e,o){var s=a(e,o);if(u&&f.push([e,o]),y)h=e,p=o,d=s,y=!1,s&&(b.lineStart(),b.point(e,o));else if(s&&v)b.point(e,o);else{var l=[m=Math.max(-1e9,Math.min(1e9,m)),g=Math.max(-1e9,Math.min(1e9,g))],c=[e=Math.max(-1e9,Math.min(1e9,e)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,r,n,i,a){var o,s=t[0],l=t[1],c=0,u=1,f=e[0]-s,h=e[1]-l;if(o=r-s,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=i-s,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=h,h<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=a-l,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=s+c*f,t[1]=l+c*h),u<1&&(e[0]=s+u*f,e[1]=l+u*h),!0}}}}}(l,c,t,r,n,i)?s&&(b.lineStart(),b.point(e,o),x=!1):(v||(b.lineStart(),b.point(l[0],l[1])),b.point(c[0],c[1]),s||b.lineEnd(),x=!1)}m=e,g=o,v=s}return w}}var xe,be,_e,we=r(),Te={sphere:E,point:E,lineStart:function(){Te.point=Ae,Te.lineEnd=ke},lineEnd:E,polygonStart:E,polygonEnd:E};function ke(){Te.point=Te.lineEnd=E}function Ae(t,e){xe=t*=h,be=_(e*=h),_e=g(e),Te.point=Me}function Me(t,e){t*=h;var r=_(e*=h),n=g(e),i=p(t-xe),a=g(i),o=n*_(i),s=_e*r-be*n*a,l=be*r+_e*n*a;we.add(m(T(o*o+s*s),l)),xe=t,be=r,_e=n}function Se(t){return we.reset(),z(t,Te),+we}var Ee=[null,null],Le={type:"LineString",coordinates:Ee};function Ce(t,e){return Ee[0]=t,Ee[1]=e,Se(Le)}var Pe={Feature:function(t,e){return Oe(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n0&&(i=Ce(t[a],t[a-1]))>0&&r<=i&&n<=i&&(r+n-i)*(1-Math.pow((r-n)/i,2))<1e-12*i)return!0;r=n}return!1}function Re(t,e){return!!he(t.map(Fe),Be(e))}function Fe(t){return(t=t.map(Be)).pop(),t}function Be(t){return[t[0]*h,t[1]*h]}function Ne(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function je(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Ue(){var t,r,n,i,a,s,l,c,u,f,h,d,m=10,g=m,y=90,x=360,b=2.5;function _(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(v(i/y)*y,n,y).map(h).concat(e.range(v(c/x)*x,l,x).map(d)).concat(e.range(v(r/m)*m,t,m).filter((function(t){return p(t%y)>o})).map(u)).concat(e.range(v(s/g)*g,a,g).filter((function(t){return p(t%x)>o})).map(f))}return _.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},_.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(d(l).slice(1),h(n).reverse().slice(1),d(c).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],l=+t[1][1],i>n&&(t=i,i=n,n=t),c>l&&(t=c,c=l,l=t),_.precision(b)):[[i,c],[n,l]]},_.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r>t&&(e=r,r=t,t=e),s>a&&(e=s,s=a,a=e),_.precision(b)):[[r,s],[t,a]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(y=+t[0],x=+t[1],_):[y,x]},_.stepMinor=function(t){return arguments.length?(m=+t[0],g=+t[1],_):[m,g]},_.precision=function(e){return arguments.length?(b=+e,u=Ne(s,a,90),f=je(r,t,b),h=Ne(c,l,90),d=je(i,n,b),_):b},_.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ve(t){return t}var He,qe,Ge,Ye,We=r(),Xe=r(),Ze={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ze.lineStart=Je,Ze.lineEnd=$e},polygonEnd:function(){Ze.lineStart=Ze.lineEnd=Ze.point=E,We.add(p(Xe)),Xe.reset()},result:function(){var t=We/2;return We.reset(),t}};function Je(){Ze.point=Ke}function Ke(t,e){Ze.point=Qe,He=Ge=t,qe=Ye=e}function Qe(t,e){Xe.add(Ye*t-Ge*e),Ge=t,Ye=e}function $e(){Qe(He,qe)}var tr=1/0,er=tr,rr=-tr,nr=rr,ir={point:function(t,e){trr&&(rr=t);enr&&(nr=e)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[tr,er],[rr,nr]];return rr=nr=-(er=tr=1/0),t}};var ar,or,sr,lr,cr=0,ur=0,fr=0,hr=0,pr=0,dr=0,mr=0,gr=0,vr=0,yr={point:xr,lineStart:br,lineEnd:Tr,polygonStart:function(){yr.lineStart=kr,yr.lineEnd=Ar},polygonEnd:function(){yr.point=xr,yr.lineStart=br,yr.lineEnd=Tr},result:function(){var t=vr?[mr/vr,gr/vr]:dr?[hr/dr,pr/dr]:fr?[cr/fr,ur/fr]:[NaN,NaN];return cr=ur=fr=hr=pr=dr=mr=gr=vr=0,t}};function xr(t,e){cr+=t,ur+=e,++fr}function br(){yr.point=_r}function _r(t,e){yr.point=wr,xr(sr=t,lr=e)}function wr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,xr(sr=t,lr=e)}function Tr(){yr.point=xr}function kr(){yr.point=Mr}function Ar(){Sr(ar,or)}function Mr(t,e){yr.point=Sr,xr(ar=sr=t,or=lr=e)}function Sr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,mr+=(i=lr*t-sr*e)*(sr+t),gr+=i*(lr+e),vr+=3*i,xr(sr=t,lr=e)}function Er(t){this._context=t}Er.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,u)}},result:E};var Lr,Cr,Pr,Ir,Or,zr=r(),Dr={point:E,lineStart:function(){Dr.point=Rr},lineEnd:function(){Lr&&Fr(Cr,Pr),Dr.point=E},polygonStart:function(){Lr=!0},polygonEnd:function(){Lr=null},result:function(){var t=+zr;return zr.reset(),t}};function Rr(t,e){Dr.point=Fr,Cr=Ir=t,Pr=Or=e}function Fr(t,e){Ir-=t,Or-=e,zr.add(T(Ir*Ir+Or*Or)),Ir=t,Or=e}function Br(){this._string=[]}function Nr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function jr(t){return function(e){var r=new Ur;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ur(){}function Vr(t,e,r){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),z(r,t.stream(ir)),e(ir.result()),null!=n&&t.clipExtent(n),t}function Hr(t,e,r){return Vr(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function qr(t,e,r){return Hr(t,[[0,0],e],r)}function Gr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function Yr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}Br.prototype={_radius:4.5,_circle:Nr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Nr(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ur.prototype={constructor:Ur,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Wr=g(30*h);function Xr(t,e){return+e?function(t,e){function r(n,i,a,s,l,c,u,f,h,d,g,v,y,x){var b=u-n,_=f-i,w=b*b+_*_;if(w>4*e&&y--){var k=s+d,A=l+g,S=c+v,E=T(k*k+A*A+S*S),L=M(S/=E),C=p(p(S)-1)e||p((b*z+_*D)/w-.5)>.3||s*d+l*g+c*v2?t[2]%360*h:0,I()):[y*f,x*f,b*f]},C.angle=function(t){return arguments.length?(_=t%360*h,I()):_*f},C.reflectX=function(t){return arguments.length?(w=t?-1:1,I()):w<0},C.reflectY=function(t){return arguments.length?(k=t?-1:1,I()):k<0},C.precision=function(t){return arguments.length?(o=Xr(s,L=t*t),O()):T(L)},C.fitExtent=function(t,e){return Hr(C,t,e)},C.fitSize=function(t,e){return qr(C,t,e)},C.fitWidth=function(t,e){return Gr(C,t,e)},C.fitHeight=function(t,e){return Yr(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&&P,I()}}function tn(t){var e=0,r=s/3,n=$r(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*h,r=t[1]*h):[e*f,r*f]},i}function en(t,e){var r=_(t),n=(r+_(e))/2;if(p(n)0?e<-l+o&&(e=-l+o):e>l-o&&(e=l-o);var r=i/b(fn(e),n);return[r*_(n*t),i-r*g(n*t)]}return a.invert=function(t,e){var r=i-e,a=w(n)*T(t*t+r*r),o=m(t,p(r))*w(r);return r*n<0&&(o-=s*w(t)*w(r)),[o/n,2*d(b(i/a,1/n))-l]},a}function pn(t,e){return[t,e]}function dn(t,e){var r=g(t),n=t===e?_(t):(r-g(e))/(e-t),i=r/n+t;if(p(n)o&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},Tn.invert=on(M),kn.invert=on((function(t){return 2*d(t)})),An.invert=function(t,e){return[-e,2*d(y(t))-l]},t.geoAlbers=nn,t.geoAlbersUsa=function(){var t,e,r,n,i,a,s=nn(),l=rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?l:i>=.166&&i<.234&&n>=-.214&&n<-.115?c:s).invert(t)},f.stream=function(r){return t&&e===r?t:(n=[s.stream(e=r),l.stream(r),c.stream(r)],i=n.length,t={point:function(t,e){for(var r=-1;++rDt(n[0],n[1])&&(n[1]=i[1]),Dt(i[0],n[1])>Dt(n[0],n[1])&&(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e<=r;n=i,++e)i=a[e],(s=Dt(n[1],i[0]))>o&&(o=s,tt=i[0],rt=n[1])}return lt=ct=null,tt===1/0||et===1/0?[[NaN,NaN],[NaN,NaN]]:[[tt,et],[rt,nt]]},t.geoCentroid=function(t){ut=ft=ht=pt=dt=mt=gt=vt=yt=xt=bt=0,z(t,Bt);var e=yt,r=xt,n=bt,i=e*e+r*r+n*n;return i<1e-12&&(e=mt,r=gt,n=vt,ft2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=An,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":102}],110:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&&(u.value=t.value),h=[u];for(null==e&&(e=o);r=h.pop();)if(f&&(r.value=+r.data.value),(i=e(r.data))&&(s=i.length))for(r.children=new Array(s),a=s-1;a>=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&&e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n0&&r*r>n*n+i*i}function m(t,e){for(var r=0;r(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r>0&&r*r>n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i>2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;sh&&(h=s),g=u*u*m,(p=Math.max(h/g,g/f))>d){u-=s;break}d=p}v.push(o={value:u,dice:l1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=M;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(L(t)).eachAfter(C(n,.5)).eachBefore(P(1)):i.eachBefore(L(E)).eachAfter(C(M,1)).eachAfter(C(n,i.r/Math.min(e,r))).eachBefore(P(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&&O(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=A(e),r):t},r.parentId=function(t){return arguments.length?(e=A(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new H(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i>=0;--i)s.push(r=e.children[i]=new H(n[i],i)),r.parent=e;return(o.parent=new H(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.xu.x&&(u=t),t.depth>f.depth&&(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),m=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*m}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&&a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))>0&&(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&&!j(o)&&(o.t=s,o.m+=f-u),a&&!N(l)&&(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=M,o=M,s=M,l=M,c=M;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&&t.eachBefore(I),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p>>1;c[m]l-a){var y=(i*v+o*g)/n;t(e,p,g,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*g)/n;t(e,p,g,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=O,t.treemapResquarify=X,t.treemapSlice=q,t.treemapSliceDice=function(t,e,r,n,i){(1&t.depth?q:O)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],111:[function(t,e,r){!function(n,i){"object"==typeof r&&void 0!==e?i(r,t("d3-color")):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){"use strict";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i180||r<-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+"rotate(",null,n)-2,x:y(t,e)})):e&&r.push(i(r)+"rotate("+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+"skewX(",null,n)-2,x:y(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&&1===n||a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r1e-6)if(Math.abs(f*l-c*u)>1e-6&&a){var p=n-o,d=i-s,m=l*l+c*c,g=p*p+d*d,v=Math.sqrt(m),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((m+h-g)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(r+b*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>u*d)+","+(this._x1=t+_*l)+","+(this._y1=r+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),a&&(d<0&&(d=d%r+r),d>n?this._+="A"+a+","+a+",0,1,"+p+","+(t-c)+","+(i-u)+"A"+a+","+a+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+a+","+a+",0,"+ +(d>=e)+","+p+","+(this._x1=t+a*Math.cos(s))+","+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.path=a,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],113:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},m=t._x0,g=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e>=(a=(m+v)/2))?m=a:v=a,(u=r>=(o=(g+y)/2))?g=o:y=o,i=p,!(p=p[f=u<<1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(m+v)/2))?m=a:v=a,(u=r>=(o=(g+y)/2))?g=o:y=o}while((f=u<<1|c)==(h=(l>=o)<<1|s>=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;nf&&(f=i),ah&&(h=a));if(c>f||u>h)return this;for(this.cover(c,u).cover(f,h),n=0;nt||t>=i||n>e||e>=a;)switch(s=(ep||(o=c.y0)>d||(s=c.x1)=y)<<1|t>=v)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var x=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=x*x+b*b;if(_=(s=(d+g)/2))?d=s:g=s,(u=o>=(l=(m+v)/2))?m=l:v=l,e=p,!(p=p[f=u<<1|c]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e1?0:t<-1?u:Math.acos(t)}function d(t){return t>=1?f:t<=-1?-f:Math.asin(t)}function m(t){return t.innerRadius}function g(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&&t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h<1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,m=e+p,g=r+h,v=n+p,y=(d+g)/2,x=(m+v)/2,b=g-d,_=v-m,w=b*b+_*_,T=i-a,k=d*v-g*m,A=(_<0?-1:1)*c(o(0,T*T*w-k*k)),M=(k*_-b*A)/w,S=(-k*b-_*A)/w,E=(k*_+b*A)/w,L=(-k*b+_*A)/w,C=M-y,P=S-x,I=E-y,O=L-x;return C*C+P*P>I*I+O*O&&(M=E,S=L),{cx:M,cy:S,x01:-h,y01:-p,x11:M*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function A(t){return t[1]}function M(){var t=k,n=A,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&&(s=o(u=e.path())),l=0;l<=f;++l)!(l=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}g&&(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+""||null}function f(){return M().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:"function"==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o="function"==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&&(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return et?1:e>=t?0:NaN}function L(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=I(T);function P(t){this._curve=t}function I(t){function e(e){return new P(t(e))}return e._curve=t,e}function O(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function z(){return O(M().curve(C))}function D(){var t=S().curve(C),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return O(r())},delete t.lineX0,t.lineEndAngle=function(){return O(n())},delete t.lineX1,t.lineInnerRadius=function(){return O(i())},delete t.lineY0,t.lineOuterRadius=function(){return O(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=A,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+""||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a="function"==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o="function"==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function H(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var q={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a<5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[q,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){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+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.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:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function mt(t,e,r){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-r),t._x2,t._y2)}function gt(t,e){this._context=t,this._k=(1-e)/6}gt.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:mt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new gt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new gt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function At(t,e){this._context=t,this._alpha=e}At.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function r(t){return e?new At(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Lt(t){this._context=t}function Ct(t){return t<0?-1:1}function Pt(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ct(a)+Ct(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function It(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ot(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zt(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function Ht(t){var e=t.map(qt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function qt(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++ra&&(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n=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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=m,o=g,w=r(0),T=null,k=v,A=y,M=x,S=null;function E(){var r,m,g=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=A.apply(this,arguments)-f,E=n(x-y),L=x>y;if(S||(S=r=e.path()),v1e-12)if(E>h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!L),g>1e-12&&(S.moveTo(g*a(x),g*l(x)),S.arc(0,0,g,x,y,L));else{var C,P,I=y,O=x,z=y,D=x,R=E,F=E,B=M.apply(this,arguments)/2,N=B>1e-12&&(T?+T.apply(this,arguments):c(g*g+v*v)),j=s(n(v-g)/2,+w.apply(this,arguments)),U=j,V=j;if(N>1e-12){var H=d(N/g*l(B)),q=d(N/v*l(B));(R-=2*H)>1e-12?(z+=H*=L?1:-1,D-=H):(R=0,z=D=(y+x)/2),(F-=2*q)>1e-12?(I+=q*=L?1:-1,O-=q):(F=0,I=O=(y+x)/2)}var G=v*a(I),Y=v*l(I),W=g*a(D),X=g*l(D);if(j>1e-12){var Z,J=v*a(O),K=v*l(O),Q=g*a(z),$=g*l(z);if(E1e-12?V>1e-12?(C=_(Q,$,G,Y,v,V,L),P=_(J,K,W,X,v,V,L),S.moveTo(C.cx+C.x01,C.cy+C.y01),V1e-12&&R>1e-12?U>1e-12?(C=_(W,X,J,K,g,-U,L),P=_(G,Y,Q,$,g,-U,L),S.lineTo(C.cx+C.x01,C.cy+C.y01),U0&&(d+=f);for(null!=e?m.sort((function(t,r){return e(g[t],g[r])})):null!=n&&m.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s0?f*c:0)+b,g[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=z,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l0?(n[0]=a,n[1]=a+=i):i<0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)>0){for(var r,n,i,a=0,o=t[0].length;a0){for(var r,n=0,i=t[e[0]],a=i.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,a=0,o=1;o=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:wt,s:Tt,S:H,u:q,U:G,V:W,w:X,W:Z,x:null,X:null,y:J,Y:Q,Z:tt,"%":_t},zt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return Y[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:et,e:et,f:ot,g:vt,G:xt,H:rt,I:nt,j:it,L:at,m:st,M:lt,p:function(t){return c[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:wt,s:Tt,S:ct,u:ut,U:ft,V:pt,w:dt,W:mt,x:null,X:null,y:gt,Y:yt,Z:bt,"%":_t},Dt={a:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.w=Et[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=At.exec(e.slice(r));return n?(t.w=Mt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=Pt.exec(e.slice(r));return n?(t.m=It[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Lt.exec(e.slice(r));return n?(t.m=Ct[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Bt(t,a,e,r)},d:A,e:A,f:P,g:_,G:b,H:S,I:S,j:M,L:C,m:k,M:E,p:function(t,e,r){var n=ht.exec(e.slice(r));return n?(t.p=kt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:O,s:z,S:L,u:g,U:v,V:y,w:m,W:x,x:function(t,e,r){return Bt(t,o,e,r)},X:function(t,e,r){return Bt(t,l,e,r)},y:_,Y:b,Z:w,"%":I};function Rt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l53)return null;"w"in c||(c.w=1),"Z"in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l>4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l>4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),l="Z"in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Bt(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Dt[i in s?e.charAt(o++):i])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ot.x=Rt(o,Ot),Ot.X=Rt(l,Ot),Ot.c=Rt(a,Ot),zt.x=Rt(o,zt),zt.X=Rt(l,zt),zt.c=Rt(a,zt),{format:function(t){var e=Rt(t+="",Ot);return e.toString=function(){return t},e},parse:function(t){var e=Ft(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Rt(t+="",zt);return e.toString=function(){return t},e},utcParse:function(t){var e=Ft(t+="",!0);return e.toString=function(){return t},e}}}var o,s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function P(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function I(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+"000"}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function H(t,e){return f(t.getSeconds(),e,2)}function q(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t){var r=t.getDay();return r>=4||0===r?e.timeThursday(t):e.timeThursday.ceil(t)}function W(t,r){return t=Y(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function X(t){return t.getDay()}function Z(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function J(t,e){return f(t.getFullYear()%100,e,2)}function K(t,e){return f((t=Y(t)).getFullYear()%100,e,2)}function Q(t,e){return f(t.getFullYear()%1e4,e,4)}function $(t,r){var n=t.getDay();return f((t=n>=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t)).getFullYear()%1e4,r,4)}function tt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+f(e/60|0,"0",2)+f(e%60,"0",2)}function et(t,e){return f(t.getUTCDate(),e,2)}function rt(t,e){return f(t.getUTCHours(),e,2)}function nt(t,e){return f(t.getUTCHours()%12||12,e,2)}function it(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function at(t,e){return f(t.getUTCMilliseconds(),e,3)}function ot(t,e){return at(t,e)+"000"}function st(t,e){return f(t.getUTCMonth()+1,e,2)}function lt(t,e){return f(t.getUTCMinutes(),e,2)}function ct(t,e){return f(t.getUTCSeconds(),e,2)}function ut(t){var e=t.getUTCDay();return 0===e?7:e}function ft(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ht(t){var r=t.getUTCDay();return r>=4||0===r?e.utcThursday(t):e.utcThursday.ceil(t)}function pt(t,r){return t=ht(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function dt(t){return t.getUTCDay()}function mt(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function gt(t,e){return f(t.getUTCFullYear()%100,e,2)}function vt(t,e){return f((t=ht(t)).getUTCFullYear()%100,e,2)}function yt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function xt(t,r){var n=t.getUTCDay();return f((t=n>=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t)).getUTCFullYear()%1e4,r,4)}function bt(){return"+0000"}function _t(){return"%"}function wt(t){return+t}function Tt(t){return Math.floor(+t/1e3)}function kt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}kt({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"]});var At=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");var Mt=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse("%Y-%m-%dT%H:%M:%S.%LZ");t.isoFormat=At,t.isoParse=Mt,t.timeFormatDefaultLocale=kt,t.timeFormatLocale=a,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-time":116}],116:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;i(t,-1),!e(t););else for(;--r>=0;)for(;i(t,1),!e(t););}))},a&&(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var m=d(0),g=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=m.range,T=g.range,k=v.range,A=y.range,M=x.range,S=b.range,E=_.range,L=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),C=L.range,P=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));P.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var I=P.range,O=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),z=O.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),H=N(3),q=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=H.range,K=q.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=g,t.timeMondays=T,t.timeMonth=L,t.timeMonths=C,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=m,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=M,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=A,t.timeWeek=m,t.timeWeeks=w,t.timeYear=P,t.timeYears=I,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=O,t.utcMinutes=z,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=q,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=H,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],117:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function m(){f(),++n;for(var t,r=e;r;)(t=s-r._time)>=0&&r._call.call(null,t),r=r._next;--n}function g(){s=(o=c.now())+l,n=i=0;try{m()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e>1e3&&(l-=e,o=t)}function y(t){n||(i&&(i=clearTimeout(i)),t-s>24?(t<1/0&&(i=setTimeout(g,t-c.now()-l)),a&&(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(g)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&&(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=m,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],118:[function(t,e,r){e.exports=function(){for(var t=0;ts*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r<=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i0)return function(t,e){var r,n;for(r=new Array(t),n=0;n80*r){n=l=t[0],s=c=t[1];for(var b=r;bl&&(l=u),p>c&&(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)>0)for(a=e;a=e;a-=n)o=A(a,t[a],t[a+1],o);return o&&x(o,o.next)&&(M(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&&0!==y(n.prev,n,n.next))n=n.next;else{if(M(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&&f&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,f);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(m.i/r),M(t),t=m.next,g=m.next;else if((t=m)===g){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&&u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(g(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&y(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,m=t.nextZ;p&&p.z>=f&&m&&m.z<=h;){if(p!==t.prev&&p!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,m!==t.prev&&m!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&y(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;m&&m.z<=h;){if(m!==t.prev&&m!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&y(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&&b(i,n,n.next,o)&&T(i,o)&&T(o,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),M(n),M(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){var r=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=u&&i!==n.x&&g(ar.x||n.x===r.x&&p(r,n)))&&(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e);if(!r)return e;var n=k(r,t),i=a(r,r.next);return a(n,n.next),e===r?i:e}function p(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function d(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function m(t){var e=t,r=t;do{(e.x=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&&o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function w(t){return t>0?1:t<0?-1:0}function T(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function A(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function M(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],124:[function(t,e,r){var n=t("strongly-connected-components");e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length>1})),a=1/0,o=0;o=55296&&y<=56319&&(w+=t[++r]),w=T?h.call(T,k,w,m):w,e?(p.value=w,d(g,m,p)):g[m]=w,++m;v=m}if(void 0===v)for(v=o(t.length),e&&(g=new e(v)),r=0;r0?1:-1}},{}],135:[function(t,e,r){"use strict";var n=t("../math/sign"),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?n(t)*a(i(t)):t}},{"../math/sign":132}],136:[function(t,e,r){"use strict";var n=t("./to-integer"),i=Math.max;e.exports=function(t){return i(0,n(t))}},{"./to-integer":135}],137:[function(t,e,r){"use strict";var n=t("./valid-callable"),i=t("./valid-value"),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&&u.sort("function"==typeof h?a.call(h,r):void 0),"function"!=typeof t&&(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{"./valid-callable":154,"./valid-value":156}],138:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Object.assign:t("./shim")},{"./is-implemented":139,"./shim":140}],139:[function(t,e,r){"use strict";e.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},{}],140:[function(t,e,r){"use strict";var n=t("../keys"),i=t("../valid-value"),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o-1}},{}],160:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=n.call("");e.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||n.call(t)===i)||!1}},{}],161:[function(t,e,r){"use strict";var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],162:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),a=t("es5-ext/string/#/contains"),o=t("d"),s=t("es6-symbol"),l=t("./"),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");l.call(this,t),e=e?a.call(e,"key+value")?"key+value":a.call(e,"key")?"key":"value":"value",c(this,"__kind__",o("",e))},i&&i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o("c","Array Iterator"))},{"./":165,d:101,"es5-ext/object/set-prototype-of":151,"es5-ext/string/#/contains":157,"es6-symbol":169}],163:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/valid-callable"),a=t("es5-ext/string/is-string"),o=t("./get"),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,m,g,v=arguments[2];if(s(t)||n(t)?r="array":a(t)?r="string":t=o(t),i(e),f=function(){h=!0},"array"!==r)if("string"!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p=55296&&g<=56319&&(m+=t[++p]),l.call(e,v,m,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{"./get":164,"es5-ext/function/is-arguments":129,"es5-ext/object/valid-callable":154,"es5-ext/string/is-string":160}],164:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/string/is-string"),a=t("./array"),o=t("./string"),s=t("./valid-iterable"),l=t("es6-symbol").iterator;e.exports=function(t){return"function"==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{"./array":162,"./string":167,"./valid-iterable":168,"es5-ext/function/is-arguments":129,"es5-ext/string/is-string":160,"es6-symbol":169}],165:[function(t,e,r){"use strict";var n,i=t("es5-ext/array/#/clear"),a=t("es5-ext/object/assign"),o=t("es5-ext/object/valid-callable"),s=t("es5-ext/object/valid-value"),l=t("d"),c=t("d/auto-bind"),u=t("es6-symbol"),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");h(this,{__list__:l("w",s(t)),__context__:l("w",e),__nextIndex__:l("w",0)}),e&&(o(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,"__redo__",l("c",[t])))})),_onDelete:l((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:101,"d/auto-bind":100,"es5-ext/array/#/clear":125,"es5-ext/object/assign":138,"es5-ext/object/valid-callable":154,"es5-ext/object/valid-value":156,"es6-symbol":169}],166:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/is-value"),a=t("es5-ext/string/is-string"),o=t("es6-symbol").iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&&(!!s(t)||(!!a(t)||(!!n(t)||"function"==typeof t[o])))}},{"es5-ext/function/is-arguments":129,"es5-ext/object/is-value":145,"es5-ext/string/is-string":160,"es6-symbol":169}],167:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),a=t("d"),o=t("es6-symbol"),s=t("./"),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");t=String(t),s.call(this,t),l(this,"__length__",a("",t.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a("c","String Iterator"))},{"./":165,d:101,"es5-ext/object/set-prototype-of":151,"es6-symbol":169}],168:[function(t,e,r){"use strict";var n=t("./is-iterable");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not iterable");return t}},{"./is-iterable":166}],169:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?t("ext/global-this").Symbol:t("./polyfill")},{"./is-implemented":170,"./polyfill":175,"ext/global-this":183}],170:[function(t,e,r){"use strict";var n=t("ext/global-this"),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if("function"!=typeof e)return!1;t=e("test symbol");try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&&(!!i[typeof e.toPrimitive]&&!!i[typeof e.toStringTag])}},{"ext/global-this":183}],171:[function(t,e,r){"use strict";e.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},{}],172:[function(t,e,r){"use strict";var n=t("d"),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||"")];)++i;return s[t+=i||""]=!0,a(o,e="@@"+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:101}],173:[function(t,e,r){"use strict";var n=t("d"),i=t("ext/global-this").Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n("",i&&i.hasInstance||t("hasInstance")),isConcatSpreadable:n("",i&&i.isConcatSpreadable||t("isConcatSpreadable")),iterator:n("",i&&i.iterator||t("iterator")),match:n("",i&&i.match||t("match")),replace:n("",i&&i.replace||t("replace")),search:n("",i&&i.search||t("search")),species:n("",i&&i.species||t("species")),split:n("",i&&i.split||t("split")),toPrimitive:n("",i&&i.toPrimitive||t("toPrimitive")),toStringTag:n("",i&&i.toStringTag||t("toStringTag")),unscopables:n("",i&&i.unscopables||t("unscopables"))})}},{d:101,"ext/global-this":183}],174:[function(t,e,r){"use strict";var n=t("d"),i=t("../../../validate-symbol"),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{"../../../validate-symbol":176,d:101}],175:[function(t,e,r){"use strict";var n,i,a,o=t("d"),s=t("./validate-symbol"),l=t("ext/global-this").Symbol,c=t("./lib/private/generate-name"),u=t("./lib/private/setup/standard-symbols"),f=t("./lib/private/setup/symbol-registry"),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if("function"==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return a?l(e):(r=h(i.prototype),e=void 0===e?"":String(e),p(r,{__description__:o("",e),__name__:o("",c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o("",(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o("",(function(){var t=s(this);return"symbol"==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o("c","Symbol")),d(i.prototype,n.toStringTag,o("c",n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o("c",n.prototype[n.toPrimitive]))},{"./lib/private/generate-name":172,"./lib/private/setup/standard-symbols":173,"./lib/private/setup/symbol-registry":174,"./validate-symbol":176,d:101,"ext/global-this":183}],176:[function(t,e,r){"use strict";var n=t("./is-symbol");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not a symbol");return t}},{"./is-symbol":171}],177:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?WeakMap:t("./polyfill")},{"./is-implemented":178,"./polyfill":180}],178:[function(t,e,r){"use strict";e.exports=function(){var t,e;if("function"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return"[object WeakMap]"===String(t)&&("function"==typeof t.set&&(t.set({},1)===t&&("function"==typeof t.delete&&("function"==typeof t.has&&"one"===t.get(e)))))}},{}],179:[function(t,e,r){"use strict";e.exports="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)},{}],180:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/is-value"),a=t("es5-ext/object/set-prototype-of"),o=t("es5-ext/object/valid-object"),s=t("es5-ext/object/valid-value"),l=t("es5-ext/string/random-uniq"),c=t("d"),u=t("es6-iterator/get"),f=t("es6-iterator/for-of"),h=t("es6-symbol").toStringTag,p=t("./is-native-implemented"),d=Array.isArray,m=Object.defineProperty,g=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return t=p&&a&&WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&&(d(e)||(e=u(e))),m(t,"__weakMapData__",c("c","$weakMap$"+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&&(a&&a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!g.call(o(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(g.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return g.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return m(o(t),this.__weakMapData__,c("c",e)),this})),toString:c((function(){return"[object WeakMap]"}))}),m(n.prototype,h,c("c","WeakMap"))},{"./is-native-implemented":179,d:101,"es5-ext/object/is-value":145,"es5-ext/object/set-prototype-of":151,"es5-ext/object/valid-object":155,"es5-ext/object/valid-value":156,"es5-ext/string/random-uniq":161,"es6-iterator/for-of":163,"es6-iterator/get":164,"es6-symbol":169}],181:[function(t,e,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,a),n(r)}function a(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}v(t,e,a,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&v(t,"error",e,r)}(t,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if("function"==typeof l)a(l,this,e);else{var c=l.length,u=g(l,c);for(r=0;r=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],182:[function(t,e,r){var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],183:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?globalThis:t("./implementation")},{"./implementation":182,"./is-implemented":184}],184:[function(t,e,r){"use strict";e.exports=function(){return"object"==typeof globalThis&&(!!globalThis&&globalThis.Array===Array)}},{}],185:[function(t,e,r){"use strict";var n=t("is-string-blank");e.exports=function(t){var e=typeof t;if("string"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if("number"!==e)return!1;return t-t<1}},{"is-string-blank":232}],186:[function(t,e,r){var n=t("dtype");e.exports=function(t,e,r){if(!t)throw new TypeError("must specify data as first parameter");if(r=0|+(r||0),Array.isArray(t)&&t[0]&&"number"==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&&"string"!=typeof e||(e=new(n(e||"float32"))(c+r));var u=e.length-r;if(c!==u)throw new Error("source length "+c+" ("+l+"x"+t.length+") does not match destination length "+u);for(i=0,o=r;ie[0]-o[0]/2&&(h=o[0]/2,p+=o[1]);return r}},{"css-font/stringify":97}],188:[function(t,e,r){"use strict";function n(t,e){e||(e={}),("string"==typeof t||Array.isArray(t))&&(e.family=t);var r=Array.isArray(e.family)?e.family.join(", "):e.family;if(!r)throw Error("`family` must be defined");var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||"",c=(t=[e.style||e.fontStyle||"",l,s].join(" ")+"px "+r,e.origin||"top");if(n.cache[r]&&s<=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext("2d"),h={upper:void 0!==e.upper?e.upper:"H",lower:void 0!==e.lower?e.lower:"x",descent:void 0!==e.descent?e.descent:"p",ascent:void 0!==e.ascent?e.ascent:"h",tittle:void 0!==e.tittle?e.tittle:"i",overshoot:void 0!==e.overshoot?e.overshoot:"O"},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline="top",f.fillStyle="black",f.fillText("H",0,0);var m=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline="bottom",f.fillText("H",0,p);var g=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-g+m,f.clearRect(0,0,p,p),f.textBaseline="alphabetic",f.fillText("H",0,p);var v=p-a(f.getImageData(0,0,p,p))-1+m;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline="middle",f.fillText("H",0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+m-.5*p,f.clearRect(0,0,p,p),f.textBaseline="hanging",f.fillText("H",0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+m-.5*p,f.clearRect(0,0,p,p),f.textBaseline="ideographic",f.fillText("H",0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+m,h.upper&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in"string"==typeof e&&(e=t[e]),t)"em"!==n&&(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement("canvas"),n.cache={}},{}],189:[function(t,e,r){e.exports=function(t,e){if("string"!=typeof t)throw new TypeError("must specify type string");if(e=e||{},"undefined"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement("canvas");"number"==typeof e.width&&(r.width=e.width);"number"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf("webgl")&&a.push("experimental-"+t);for(var o=0;o halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if("string"==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&&(this.viewport=f(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&&(this.kerning=t.kerning),null!=t.offset&&("number"==typeof t.offset&&(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+"px sans-serif");var r,a=!1,o=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if("string"==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+"px "+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&&(o=!0,e.fontSize[r]=l),!(e.font[r]&&i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(", "),u=[t.style];t.style!=t.variant&&u.push(t.variant),t.variant!=t.weight&&u.push(t.weight),_&&t.weight!=t.stretch&&u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:"top",fontSize:T.baseFontSize,fontStyle:u.join(" ")})},T.fonts[i]=e.font[r]}})),(a||o)&&this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&&(t.text=e.text)})),"string"==typeof t.text&&t.position&&t.position.length>2){for(var s=Array(.5*t.position.length),h=0;h2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A1?e.align[r]:e.align[0]:e.align;if("number"==typeof n)return n;switch(n){case"right":case"end":return-t;case"center":case"centre":case"middle":return.5*-t}return 0}))),null==this.baseline&&null==t.baseline&&(t.baseline=0),null!=t.baseline&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+="number"==typeof t?t-n.baseline:-n[t],i*=-1}))),null!=t.color)if(t.color||(t.color="transparent"),"string"!=typeof t.color&&isNaN(t.color)){var q;if("number"==typeof t.color[0]&&t.color.length>this.counts.length){var G=t.color.length;q=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K1?this.counts[K]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text="",T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.maxAtlasSize=1024,T.atlasCanvas=document.createElement("canvas"),T.atlasContext=T.atlasCanvas.getContext("2d",{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{"bit-twiddle":77,"color-normalize":84,"css-font":94,"detect-kerning":119,"es6-weak-map":177,"flatten-vertex-data":186,"font-atlas":187,"font-measure":188,"gl-util/context":221,"is-plain-obj":231,"object-assign":242,"parse-rect":244,"parse-unit":246,"pick-by-alias":248,regl:278,"to-px":309,"typedarray-pool":322}],221:[function(t,e,r){(function(r){(function(){"use strict";var n=t("pick-by-alias");function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return"function"==typeof t.getContext&&"width"in t&&"height"in t}function o(){var t=document.createElement("canvas");return t.style.position="absolute",t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?"string"==typeof t&&(t={container:t}):t={},a(t)?t={container:t}:t="string"==typeof(e=t).nodeName&&"function"==typeof e.appendChild&&"function"==typeof e.getBoundingClientRect?{container:t}:function(t){return"function"==typeof t.drawArrays||"function"==typeof t.drawElements}(t)?{gl:t}:n(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if("string"==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error("Element "+t.container+" is not found");t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if("undefined"==typeof document)throw Error("Not DOM environment. Use headless-gl.");t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}return t.gl||["webgl","experimental-webgl","webgl-experimental"].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(t){}return t.gl})),t.gl}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"pick-by-alias":248}],222:[function(t,e,r){e.exports=function(t){"string"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n */ -r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},{}],226:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],227:[function(t,e,r){e.exports=!0},{}],228:[function(t,e,r){"use strict";e.exports="undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],229:[function(t,e,r){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||"undefined"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(r=!0),r}},{}],230:[function(t,e,r){"use strict";e.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},{}],231:[function(t,e,r){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e;return"[object Object]"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],232:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=t.length,n=0;n13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],233:[function(t,e,r){"use strict";e.exports=function(t){return"string"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},{}],234:[function(t,e,r){!function(t,n){"object"==typeof r&&void 0!==e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){"use strict";var t,e,r;function n(n,i){if(t)if(e){var a="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:"text/javascript"}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&&(e=1e-6),i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)(n=1))return n;for(;ra?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function m(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function g(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?v(t,x):t}var b={};function _(t){b[t]||("undefined"!=typeof console&&console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),""})),e["max-age"]){var r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}var M=null;function S(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return M}function E(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var L,C,P,I,O=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),z=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:O,frame:function(t){var e=z(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var r=self.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return L||(L=self.document.createElement("a")),L.href=t,L.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==C&&(C=self.matchMedia("(prefers-reduced-motion: reduce)")),C.matches)}},F={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){if(N||!I)return;j?U(t):P=t}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,I),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&&((I=self.document.createElement("img")).onload=function(){P&&U(P),P=null,j=!0},I.onerror=function(){N=!0,P=null},I.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var V="01";var H=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function q(t){return 0===t.indexOf("mapbox:")}H.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",V,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},H.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},H.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},H.prototype.normalizeStyleURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeGlyphsURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeSourceURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return q(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=""+e+r,Z(i))},H.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!q(t))return t;var r=X(t),n=R.devicePixelRatio>=2||512===e?"@2x":"",i=B.supported?".webp":"$1";r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+n+i),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path;var a=this._customAccessToken||function(t){for(var e=0,r=t;e=1&&self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_("Unable to write to LocalStorage")}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push("access_token="+(n||F.ACCESS_TOKEN||""));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.10.1",skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=bt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&&n||F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return q(t)||Y(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&&this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&&(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&&F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return q(t)||Y(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&&!Q&&(Q=self.caches.open("mapbox-tiles"))}function lt(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=A(e.headers.get("Cache-Control")||"");if(!i["no-store"])i["max-age"]&&n.headers.set("Expires",new Date(r+1e3*i["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-r<42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&&Q.then((function(e){return e.put(ct(t.url),r)})).catch((function(t){return _(t.message)}))}))}}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function ut(t,e){if(st(),!Q)return e(null);var r=ct(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),r=A(t.headers.get("Cache-Control")||"");return e>Date.now()&&!r["no-cache"]}(n);t.delete(r),i&&t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}var ft,ht=1/0;function pt(){return null==ft&&(ft=self.OffscreenCanvas&&new self.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),ft}var dt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(dt);var mt=function(t){function e(e,r,n){401===r&&Y(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),gt=k()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function vt(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:gt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf("sku=")>0&&Y(r);"json"===t.type&&i.headers.set("Accept","application/json");var l=function(r,n,a){if(!o){if(r&&"SecurityError"!==r.message&&_(r),n&&a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new mt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(r,n,s){("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((function(t){o||(n&&s&<(i,n,s),a=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((function(t){o||e(new Error(t.message))}))};return s?ut(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}var yt=function(t,e){if(r=t.url,!(/^file:/.test(r)||/^file:/.test(gt())&&!/^\w+:/.test(r))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return vt(t,e);if(k()&&self.worker&&self.worker.actor){return self.worker.actor.send("getResource",t,e,void 0,!0)}}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(n,t.headers[n]);return"json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){var n=r.response;if("json"===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new mt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},xt=function(t,e){return yt(u(t,{type:"arrayBuffer"}),e)},bt=function(t,e){return yt(u(t,{method:"POST"}),e)};var _t,wt;_t=[],wt=0;var Tt=function(t,e){if(B.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),wt>=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return _t.push(r),r}wt++;var n=!1,i=function(){if(!n)for(n=!0,wt--;_t.length&&wt0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Et.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Lt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Ct=function(t,e,r,n){this.message=(t?t+": ":"")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function Pt(t){var e=t.key,r=t.value;return r?[new Ct(e,r,"constants have been deprecated as of v8")]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Zt=[Ft,Bt,Nt,jt,Ut,Gt,Vt,Wt(Ht),Yt];function Jt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Jt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=Zt;r255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),c=i.indexOf(")");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(","),h=1;switch(u){case"rgba":if(4!==f.length)return null;h=o(f.pop());case"rgb":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case"hsla":if(4!==f.length)return null;h=o(f.pop());case"hsl":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),m=o(f[2]),g=m<=.5?m*(d+1):m+d-m*d,v=2*m-g;return[n(255*s(v,g,p+1/3)),n(255*s(v,g,p)),n(255*s(v,g,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};te.parse=function(t){if(t){if(t instanceof te)return t;if("string"==typeof t){var e=$t(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},te.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var re=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ne=function(t){this.sections=t};ne.fromString=function(t){return new ne([new re(t,null,null,null,null)])},ne.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},ne.factory=function(t){return t instanceof ne?t:ne.fromString(t)},ne.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},ne.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function oe(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof ne)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,r=t;e2){var s=t[1];if("string"!=typeof s||!(s in fe)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);a=fe[s],n++}else a=Ht;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);o=t[2],n++}r=Wt(a,o)}else r=fe[i];for(var l=[];n1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var pe=function(t){this.type=Gt,this.sections=t};pe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,a=1;a<=t.length-1;++a){var o=t[a];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;var s=null;if(o["font-scale"]&&!(s=e.parse(o["font-scale"],1,Bt)))return null;var l=null;if(o["text-font"]&&!(l=e.parse(o["text-font"],1,Wt(Nt))))return null;var c=null;if(o["text-color"]&&!(c=e.parse(o["text-color"],1,Ut)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,Ht);if(!f)return null;var h=f.type.kind;if("string"!==h&&"value"!==h&&"null"!==h&&"resolvedImage"!==h)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new pe(n)},pe.prototype.evaluate=function(t){return new ne(this.sections.map((function(e){var r=e.content.evaluate(t);return se(r)===Yt?new re("",r,null,null,null):new re(le(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},pe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e-1),r},de.prototype.eachChild=function(t){t(this.input)},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){return["image",this.input.serialize()]};var me={"to-boolean":jt,"to-color":Ut,"to-number":Bt,"to-string":Nt},ge=function(t,e){this.type=t,this.args=e};ge.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=me[r],i=[],a=1;a4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ae(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ue(r||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var o=null,s=0,l=this.args;s=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function Te(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),a=Math.pow(2,e.z);return[Math.round(n*a*8192),Math.round(i*a*8192)]}function ke(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Ae(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u0&&f<0||u<0&&f>0}function Ee(t,e,r){for(var n=0,i=r;nr[2]){var i=.5*n,a=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===a&&(a=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=a}_e(e,t)}function ze(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Ne(t,e)&&(r=!1)})),r}Re.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(oe(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;ne))throw new ue("Input is not a number.");o=s-1}return 0}Ue.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Ue.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new he(e,[t]):"coerce"===r?new ge(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==s.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||"coerce");else a=r(a,o,e.typeAnnotation||"assert")}if(!(a instanceof ce)&&"resolvedImage"!==a.type.kind&&function t(e){if(e instanceof je)return t(e.boundExpression);if(e instanceof xe&&"error"===e.name)return!1;if(e instanceof be)return!1;if(e instanceof Re)return!1;var r=e instanceof ge||e instanceof he,n=!0;if(e.eachChild((function(e){n=r?n&&t(e):n&&e instanceof ce})),!n)return!1;return Fe(e)&&Ne(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(a)){var l=new ye;try{a=new ce(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},Ue.prototype.concat=function(t,e,r){var n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Ue(this.registry,n,e||null,i,this.errors)},Ue.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Dt(n,t))},Ue.prototype.checkSubtype=function(t,e){var r=Jt(t,e);return r&&this.error(r),r};var He=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n=o)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new He(i,r,n)},He.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[Ve(e,n)].evaluate(t)},He.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ge=Object.freeze({__proto__:null,number:qe,color:function(t,e,r){return new te(qe(t.r,e.r,r),qe(t.g,e.g,r),qe(t.b,e.b,r),qe(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return qe(t,e[n],r)}))}}),Ye=6/29,We=3*Ye*Ye,Xe=Math.PI/180,Ze=180/Math.PI;function Je(t){return t>.008856451679035631?Math.pow(t,1/3):t/We+4/29}function Ke(t){return t>Ye?t*t*t:We*(t-4/29)}function Qe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $e(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tr(t){var e=$e(t.r),r=$e(t.g),n=$e(t.b),i=Je((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Je((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Je((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function er(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Ke(e),r=.95047*Ke(r),n=1.08883*Ke(n),new te(Qe(3.2404542*r-1.5371385*e-.4985314*n),Qe(-.969266*r+1.8760108*e+.041556*n),Qe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function rr(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var nr={forward:tr,reverse:er,interpolate:function(t,e,r){return{l:qe(t.l,e.l,r),a:qe(t.a,e.a,r),b:qe(t.b,e.b,r),alpha:qe(t.alpha,e.alpha,r)}}},ir={forward:function(t){var e=tr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ze;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*Xe,r=t.c;return er({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:rr(t.h,e.h,r),c:qe(t.c,e.c,r),l:qe(t.l,e.l,r),alpha:qe(t.alpha,e.alpha,r)}}},ar=Object.freeze({__proto__:null,lab:nr,hcl:ir}),or=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Bt)))return null;var l=[],c=null;"interpolate-hcl"===r||"interpolate-lab"===r?c=Ut:e.expectedType&&"value"!==e.expectedType.kind&&(c=e.expectedType);for(var u=0;u=f)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var m=e.parse(h,d,c);if(!m)return null;c=c||m.type,l.push([f,m])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"==typeof c.N?new or(c,r,n,i,l):e.error("Type "+Xt(c)+" is not interpolatable.")},or.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var a=Ve(e,n),o=e[a],s=e[a+1],l=or.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return"interpolate"===this.operator?Ge[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?ir.reverse(ir.interpolate(ir.forward(c),ir.forward(u),l)):nr.reverse(nr.interpolate(nr.forward(c),nr.forward(u),l))},or.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e=r.length)throw new ue("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new ue("Array index must be an integer, but found "+e+" instead.");return r[e]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fr=function(t,e){this.type=jt,this.needle=t,this.haystack=e};fr.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Ht);return r&&n?Kt(r.type,[jt,Nt,Bt,Ft,Ht])?new fr(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(r.type)+" instead"):null},fr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Qt(e,["boolean","string","number","null"]))throw new ue("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Qt(r,["string","array"]))throw new ue("Expected second argument to be of type array or string, but found "+Xt(se(r))+" instead.");return r.indexOf(e)>=0},fr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fr.prototype.outputDefined=function(){return!0},fr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var hr=function(t,e,r){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=r};hr.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Ht);if(!r||!n)return null;if(!Kt(r.type,[jt,Nt,Bt,Ft,Ht]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new hr(r,n,i):null}return new hr(r,n)},hr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Qt(e,["boolean","string","number","null"]))throw new ue("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Qt(r,["string","array"]))throw new ue("Expected second argument to be of type array or string, but found "+Xt(se(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},hr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},hr.prototype.outputDefined=function(){return!1},hr.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var pr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};pr.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},a=[],o=2;oNumber.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&&Math.floor(h)!==h)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,se(h)))return null}else r=se(h);if(void 0!==i[String(h)])return c.error("Branch labels must be unique.");i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,Ht);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,n);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new pr(r,n,d,i,a,m):null},pr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},pr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},pr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},pr.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Bt);if(!r||!n)return null;if(!Kt(r.type,[Wt(Ht),Nt,Ht]))return e.error("Expected first argument to be of type array or string, but found "+Xt(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new mr(r.type,r,n,i):null}return new mr(r.type,r,n)},mr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Qt(e,["string","array"]))throw new ue("Expected first argument to be of type array or string, but found "+Xt(se(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},mr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},mr.prototype.outputDefined=function(){return!1},mr.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var xr=yr("==",(function(t,e,r){return e===r}),vr),br=yr("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!vr(0,e,r,n)})),_r=yr("<",(function(t,e,r){return e",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),Tr=yr("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),kr=yr(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0})),Ar=function(t,e,r,n,i){this.type=Nt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Ar.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,Bt);if(!r)return null;var n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=e.parse(n.locale,1,Nt)))return null;var a=null;if(n.currency&&!(a=e.parse(n.currency,1,Nt)))return null;var o=null;if(n["min-fraction-digits"]&&!(o=e.parse(n["min-fraction-digits"],1,Bt)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,Bt))?null:new Ar(r,i,a,o,s)},Ar.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Ar.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Ar.prototype.outputDefined=function(){return!1},Ar.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Mr=function(t){this.type=Bt,this.input=t};Mr.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Xt(r.type)+" instead."):new Mr(r):null},Mr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ue("Expected value to be of type string or array, but found "+Xt(se(e))+" instead.")},Mr.prototype.eachChild=function(t){t(this.input)},Mr.prototype.outputDefined=function(){return!1},Mr.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Sr={"==":xr,"!=":br,">":wr,"<":_r,">=":kr,"<=":Tr,array:he,at:ur,boolean:he,case:dr,coalesce:lr,collator:be,format:pe,image:de,in:fr,"index-of":hr,interpolate:or,"interpolate-hcl":or,"interpolate-lab":or,length:Mr,let:cr,literal:ce,match:pr,number:he,"number-format":Ar,object:he,slice:mr,step:He,string:he,"to-boolean":ge,"to-color":ge,"to-number":ge,"to-string":ge,var:je,within:Re};function Er(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=ae(r,n,i,o);if(s)throw new ue(s);return new te(r/255*o,n/255*o,i/255*o,o)}function Lr(t,e){return t in e}function Cr(t,e){var r=e[t];return void 0===r?null:r}function Pr(t){return{type:t}}function Ir(t){return{result:"success",value:t}}function Or(t){return{result:"error",value:t}}function zr(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Dr(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Rr(t){return!!t.expression&&t.expression.interpolated}function Fr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Br(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Nr(t){return t}function jr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Ur(t,e,r,n,i){return jr(typeof r===i?n[r]:void 0,t.default,e.default)}function Vr(t,e,r){if("number"!==Fr(r))return jr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var i=Ve(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Hr(t,e,r){var n=void 0!==t.base?t.base:1;if("number"!==Fr(r))return jr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var a=Ve(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ge[e.type]||Nr;if(t.colorSpace&&"rgb"!==t.colorSpace){var u=ar[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return c(r,n,o)}}:c(s,l,o)}function qr(t,e,r){return"color"===e.type?r=te.parse(r):"formatted"===e.type?r=ne.fromString(r.toString()):"resolvedImage"===e.type?r=ie.fromString(r.toString()):Fr(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),jr(r,t.default,e.default)}xe.register(Sr,{error:[{kind:"error"},[Nt],function(t,e){var r=e[0];throw new ue(r.evaluate(t))}],typeof:[Nt,[Ht],function(t,e){return Xt(se(e[0].evaluate(t)))}],"to-rgba":[Wt(Bt,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Bt,Bt,Bt],Er],rgba:[Ut,[Bt,Bt,Bt,Bt],Er],has:{type:jt,overloads:[[[Nt],function(t,e){return Lr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:Ht,overloads:[[[Nt],function(t,e){return Cr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Cr(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[Ht,[Nt],function(t,e){return Cr(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],"geometry-type":[Nt,[],function(t){return t.geometryType()}],id:[Ht,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],"heatmap-density":[Bt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[Ht,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Bt,Pr(Bt),function(t,e){for(var r=0,n=0,i=e;n":[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>a}],"filter-id->":[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],"filter-<=":[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<=a}],"filter-id-<=":[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],"filter->=":[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>=a}],"filter-id->=":[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],"filter-has":[jt,[Ht],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[jt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[jt,[Wt(Nt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[jt,[Wt(Ht)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[jt,[Nt,Wt(Ht)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[jt,[Nt,Wt(Ht)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r0&&"string"==typeof t[0]&&t[0]in Sr}function Wr(t,e){var r=new Ue(Sr,[],e?function(t){var e={color:Ut,string:Nt,number:Bt,enum:Nt,boolean:jt,formatted:Gt,resolvedImage:Yt};if("array"===t.type)return Wt(e[t.value]||Ht,t.length);return e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Ir(new Gr(n,e)):Or(r.errors)}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Gr.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||"number"==typeof o&&o!=o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new ue("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Xr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Be(e.expression)};Xr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Xr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Zr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Be(e.expression),this.interpolationType=n};function Jr(t,e){if("error"===(t=Wr(t,e)).result)return t;var r=t.value.expression,n=Fe(r);if(!n&&!zr(e))return Or([new Dt("","data expressions not supported")]);var i=Ne(r,["zoom"]);if(!i&&!Dr(e))return Or([new Dt("","zoom expressions not supported")]);var a=function t(e){var r=null;if(e instanceof cr)r=t(e.result);else if(e instanceof lr)for(var n=0,i=e.args;nn.maximum?[new Ct(e,r,r+" is greater than the maximum value "+n.maximum)]:[]}function en(t){var e,r,n,i=t.valueSpec,a=Ot(t.value.type),o={},s="categorical"!==a&&void 0===t.value.property,l=!s,c="array"===Fr(t.value.stops)&&"array"===Fr(t.value.stops[0])&&"object"===Fr(t.value.stops[0][0]),u=Qr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===a)return[new Ct(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;e=e.concat($r({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),"array"===Fr(r)&&0===r.length&&e.push(new Ct(t.key,r,"array must have at least one stop"));return e},default:function(t){return kn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===a&&s&&u.push(new Ct(t.key,t.value,'missing required property "property"')),"identity"===a||t.value.stops||u.push(new Ct(t.key,t.value,'missing required property "stops"')),"exponential"===a&&t.valueSpec.expression&&!Rr(t.valueSpec)&&u.push(new Ct(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!zr(t.valueSpec)?u.push(new Ct(t.key,t.value,"property functions not supported")):s&&!Dr(t.valueSpec)&&u.push(new Ct(t.key,t.value,"zoom functions not supported"))),"categorical"!==a&&!c||void 0!==t.value.property||u.push(new Ct(t.key,t.value,'"property" property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if("array"!==Fr(a))return[new Ct(s,a,"array expected, "+Fr(a)+" found")];if(2!==a.length)return[new Ct(s,a,"array length 2 expected, length "+a.length+" found")];if(c){if("object"!==Fr(a[0]))return[new Ct(s,a,"object expected, "+Fr(a[0])+" found")];if(void 0===a[0].zoom)return[new Ct(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new Ct(s,a,"object stop key must have value")];if(n&&n>Ot(a[0].zoom))return[new Ct(s,a[0].zoom,"stop zoom values must appear in ascending order")];Ot(a[0].zoom)!==n&&(n=Ot(a[0].zoom),r=void 0,o={}),e=e.concat(Qr({key:s+"[0]",value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tn,value:h}}))}else e=e.concat(h({key:s+"[0]",value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Yr(zt(a[1]))?e.concat([new Ct(s+"[1]",a[1],"expressions are not allowed in function stops.")]):e.concat(kn({key:s+"[1]",value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=Fr(t.value),l=Ot(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new Ct(t.key,c,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Ct(t.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==a){var u="number expected, "+s+" found";return zr(i)&&void 0===a&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ct(t.key,c,u)]}return"categorical"!==a||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==a&&"number"===s&&void 0!==r&&l=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);ee?1:0}function cn(t){if(!t)return!0;var e,r=t[0];return t.length<=1?"any"!==r:"=="===r?un(t[1],t[2],"=="):"!="===r?pn(un(t[1],t[2],"==")):"<"===r||">"===r||"<="===r||">="===r?un(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(cn))):"all"===r?["all"].concat(t.slice(1).map(cn)):"none"===r?["all"].concat(t.slice(1).map(cn).map(pn)):"in"===r?fn(t[1],t.slice(2)):"!in"===r?pn(fn(t[1],t.slice(2))):"has"===r?hn(t[1]):"!has"===r?pn(hn(t[1])):"within"!==r||t}function un(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function fn(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(ln)]]:["filter-in-small",t,["literal",e]]}}function hn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function pn(t){return["!",t]}function dn(t){return an(zt(t.value))?rn(It({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var r=e.value,n=e.key;if("array"!==Fr(r))return[new Ct(n,r,"array expected, "+Fr(r)+" found")];var i,a=e.styleSpec,o=[];if(r.length<1)return[new Ct(n,r,"filter array must have at least 1 element")];switch(o=o.concat(nn({key:n+"[0]",value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Ot(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===Ot(r[1])&&o.push(new Ct(n,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&&o.push(new Ct(n,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length>=2&&"string"!==(i=Fr(r[1]))&&o.push(new Ct(n+"[1]",r[1],"string expected, "+i+" found"));for(var s=2;s=u[p+0]&&n>=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},Dn.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h<=u;h++)for(var p=c;p<=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&&i.call(this,t,e,r,n,d,a,o,s))return}},Dn.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Dn.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Dn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n=0)){var f=t[u];c[u]=Bn[l].shallow.indexOf(u)>=0?f:Hn(f,e)}t instanceof Error&&(c.message=t.message)}if(c.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(c.$name=l),c}throw new Error("can't serialize object of type "+typeof t)}function qn(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Un(t)||Vn(t)||ArrayBuffer.isView(t)||t instanceof Rn)return t;if(Array.isArray(t))return t.map(qn);if("object"==typeof t){var e=t.$name||"Object",r=Bn[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i=0?s:qn(s)}}return n}throw new Error("can't deserialize object of type "+typeof t)}var Gn=function(){this.first=!0};Gn.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Wn(t){for(var e=0,r=t;e=65097&&t<=65103)||(!!Yn["CJK Compatibility Ideographs"](t)||(!!Yn["CJK Compatibility"](t)||(!!Yn["CJK Radicals Supplement"](t)||(!!Yn["CJK Strokes"](t)||(!(!Yn["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||(!!Yn["CJK Unified Ideographs Extension A"](t)||(!!Yn["CJK Unified Ideographs"](t)||(!!Yn["Enclosed CJK Letters and Months"](t)||(!!Yn["Hangul Compatibility Jamo"](t)||(!!Yn["Hangul Jamo Extended-A"](t)||(!!Yn["Hangul Jamo Extended-B"](t)||(!!Yn["Hangul Jamo"](t)||(!!Yn["Hangul Syllables"](t)||(!!Yn.Hiragana(t)||(!!Yn["Ideographic Description Characters"](t)||(!!Yn.Kanbun(t)||(!!Yn["Kangxi Radicals"](t)||(!!Yn["Katakana Phonetic Extensions"](t)||(!(!Yn.Katakana(t)||12540===t)||(!(!Yn["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||(!(!Yn["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||(!!Yn["Unified Canadian Aboriginal Syllabics"](t)||(!!Yn["Unified Canadian Aboriginal Syllabics Extended"](t)||(!!Yn["Vertical Forms"](t)||(!!Yn["Yijing Hexagram Symbols"](t)||(!!Yn["Yi Syllables"](t)||!!Yn["Yi Radicals"](t))))))))))))))))))))))))))))))}function Jn(t){return!(Zn(t)||function(t){return!(!Yn["Latin-1 Supplement"](t)||167!==t&&169!==t&&174!==t&&177!==t&&188!==t&&189!==t&&190!==t&&215!==t&&247!==t)||(!(!Yn["General Punctuation"](t)||8214!==t&&8224!==t&&8225!==t&&8240!==t&&8241!==t&&8251!==t&&8252!==t&&8258!==t&&8263!==t&&8264!==t&&8265!==t&&8273!==t)||(!!Yn["Letterlike Symbols"](t)||(!!Yn["Number Forms"](t)||(!(!Yn["Miscellaneous Technical"](t)||!(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215))||(!(!Yn["Control Pictures"](t)||9251===t)||(!!Yn["Optical Character Recognition"](t)||(!!Yn["Enclosed Alphanumerics"](t)||(!!Yn["Geometric Shapes"](t)||(!(!Yn["Miscellaneous Symbols"](t)||t>=9754&&t<=9759)||(!(!Yn["Miscellaneous Symbols and Arrows"](t)||!(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243))||(!!Yn["CJK Symbols and Punctuation"](t)||(!!Yn.Katakana(t)||(!!Yn["Private Use Area"](t)||(!!Yn["CJK Compatibility Forms"](t)||(!!Yn["Small Form Variants"](t)||(!!Yn["Halfwidth and Fullwidth Forms"](t)||(8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)))))))))))))))))}(t))}function Kn(t){return t>=1424&&t<=2303||Yn["Arabic Presentation Forms-A"](t)||Yn["Arabic Presentation Forms-B"](t)}function Qn(t,e){return!(!e&&Kn(t))&&!(t>=2304&&t<=3583||t>=3840&&t<=4255||Yn.Khmer(t))}function $n(t){for(var e=0,r=t;e-1&&(ai=ni),ii&&ii(t)};function li(){ci.fire(new Mt("pluginStateChange",{pluginStatus:ai,pluginURL:oi}))}var ci=new Et,ui=function(){return ai},fi=function(){if(ai!==ti||!oi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ai=ei,li(),oi&&xt({url:oi},(function(t){t?si(t):(ai=ri,li())}))},hi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ai===ri||null!=hi.applyArabicShaping},isLoading:function(){return ai===ei},setState:function(t){ai=t.pluginStatus,oi=t.pluginURL},isParsed:function(){return null!=hi.applyArabicShaping&&null!=hi.processBidirectionalText&&null!=hi.processStyledBidirectionalText},getPluginURL:function(){return oi}},pi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gn,this.transition={})};pi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;rthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var di=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Br(t))return new Kr(t,e);if(Yr(t)){var r=Jr(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}var n=t;return"string"==typeof t&&"color"===e.type&&(n=te.parse(t)),{kind:"constant",evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};di.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},di.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var mi=function(t){this.property=t,this.value=new di(t,void 0)};mi.prototype.transitioned=function(t,e){return new vi(this.property,this.value,e,u({},t.transition,this.transition),t.now)},mi.prototype.untransitioned=function(){return new vi(this.property,this.value,null,{},0)};var gi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};gi.prototype.getValue=function(t){return x(this._values[t].value.value)},gi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new mi(this._values[t].property)),this._values[t].value=new di(this._values[t].property,null===e?void 0:x(e))},gi.prototype.getTransition=function(t){return x(this._values[t].transition)},gi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new mi(this._values[t].property)),this._values[t].transition=x(e)||void 0},gi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);ethis.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}(o))}return i};var yi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};yi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);in.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Ti),Ai=function(t){this.specification=t};Ai.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new pi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new pi(Math.floor(e.zoom),e)),t.expression.evaluate(new pi(Math.floor(e.zoom+1),e)),e)}},Ai.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Ai.prototype.interpolate=function(t){return t};var Mi=function(t){this.specification=t};Mi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},Mi.prototype.interpolate=function(){return!1};var Si=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&&this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new di(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new mi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Nn("DataDrivenProperty",Ti),Nn("DataConstantProperty",wi),Nn("CrossFadedDataDrivenProperty",ki),Nn("CrossFadedProperty",Ai),Nn("ColorRampProperty",Mi);var Ei=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new xi(r.layout)),r.paint)){for(var n in this._transitionablePaint=new gi(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _i(r.paint)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var n="layers."+this.id+".layout."+t;if(this._validate(In,n,t,e,r))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return g(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var n="layers."+this.id+".paint."+t;if(this._validate(Pn,n,t,e,r))return!1}if(g(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var i=this._transitionablePaint._values[t],a="cross-faded-data-driven"===i.property.specification["property-type"],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility)},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&On(this,t.call(Ln,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Lt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof bi&&zr(e.property.specification)&&(("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent))return!0}return!1},e}(Et),Li={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ci=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Pi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ii(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map((function(t){var i,a=(i=t.type,Li[i].BYTES_PER_ELEMENT),o=r=Oi(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}})),size:Oi(r,Math.max(n,e)),alignment:e}}function Oi(t,e){return Math.ceil(t/e)*e}Pi.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Pi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Pi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Pi.prototype.clear=function(){this.length=0},Pi.prototype.resize=function(t){this.reserve(t),this.length=t},Pi.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Pi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(Pi);zi.prototype.bytesPerElement=4,Nn("StructArrayLayout2i4",zi);var Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(Pi);Di.prototype.bytesPerElement=8,Nn("StructArrayLayout4i8",Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Ri.prototype.bytesPerElement=12,Nn("StructArrayLayout2i4i12",Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(Pi);Fi.prototype.bytesPerElement=8,Nn("StructArrayLayout2i4ub8",Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(Pi);Bi.prototype.bytesPerElement=18,Nn("StructArrayLayout8ui2ub18",Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(Pi);Ni.prototype.bytesPerElement=24,Nn("StructArrayLayout4i4ui4i24",Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(Pi);ji.prototype.bytesPerElement=12,Nn("StructArrayLayout3f12",ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Pi);Ui.prototype.bytesPerElement=4,Nn("StructArrayLayout1ul4",Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(Pi);Vi.prototype.bytesPerElement=20,Nn("StructArrayLayout6i1ul2ui20",Vi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Hi.prototype.bytesPerElement=12,Nn("StructArrayLayout2i2i2i12",Hi);var qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(Pi);qi.prototype.bytesPerElement=16,Nn("StructArrayLayout2f1f2i16",qi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(Pi);Gi.prototype.bytesPerElement=12,Nn("StructArrayLayout2ub2f12",Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(Pi);Yi.prototype.bytesPerElement=6,Nn("StructArrayLayout3ui6",Yi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=m,this.uint32[x+10]=g,this.int16[y+22]=v,t},e}(Pi);Wi.prototype.bytesPerElement=48,Nn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Wi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S,E){var L=34*t,C=17*t;return this.int16[L+0]=e,this.int16[L+1]=r,this.int16[L+2]=n,this.int16[L+3]=i,this.int16[L+4]=a,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=c,this.uint16[L+9]=u,this.uint16[L+10]=f,this.uint16[L+11]=h,this.uint16[L+12]=p,this.uint16[L+13]=d,this.uint16[L+14]=m,this.uint16[L+15]=g,this.uint16[L+16]=v,this.uint16[L+17]=y,this.uint16[L+18]=x,this.uint16[L+19]=b,this.uint16[L+20]=_,this.uint16[L+21]=w,this.uint16[L+22]=T,this.uint32[C+12]=k,this.float32[C+13]=A,this.float32[C+14]=M,this.float32[C+15]=S,this.float32[C+16]=E,t},e}(Pi);Xi.prototype.bytesPerElement=68,Nn("StructArrayLayout8i15ui1ul4f68",Xi);var Zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Pi);Zi.prototype.bytesPerElement=4,Nn("StructArrayLayout1f4",Zi);var Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(Pi);Ji.prototype.bytesPerElement=6,Nn("StructArrayLayout3i6",Ji);var Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(Pi);Ki.prototype.bytesPerElement=8,Nn("StructArrayLayout1ul2ui8",Ki);var Qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(Pi);Qi.prototype.bytesPerElement=4,Nn("StructArrayLayout2ui4",Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Pi);$i.prototype.bytesPerElement=2,Nn("StructArrayLayout1ui2",$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(Pi);ta.prototype.bytesPerElement=8,Nn("StructArrayLayout2f8",ta);var ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(Pi);ea.prototype.bytesPerElement=16,Nn("StructArrayLayout4f16",ea);var ra=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Ci);ra.prototype.size=20;var na=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ra(this,t)},e}(Vi);Nn("CollisionBoxArray",na);var ia=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Ci);ia.prototype.size=48;var aa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ia(this,t)},e}(Wi);Nn("PlacedSymbolArray",aa);var oa=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Ci);oa.prototype.size=68;var sa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new oa(this,t)},e}(Xi);Nn("SymbolInstanceArray",sa);var la=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Zi);Nn("GlyphOffsetArray",la);var ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ji);Nn("SymbolLineVertexArray",ca);var ua=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Ci);ua.prototype.size=8;var fa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ua(this,t)},e}(Ki);Nn("FeatureIndexArray",fa);var ha=Ii([{name:"a_pos",components:2,type:"Int16"}],4).members,pa=function(t){void 0===t&&(t=[]),this.segments=t};function da(t,e){return 256*(t=l(Math.floor(t),0,255))+(e=l(Math.floor(e),0,255))}pa.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t>pa.MAX_VERTEX_ARRAY_LENGTH&&_("Max vertices per segment is "+pa.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>pa.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i},pa.prototype.get=function(){return this.segments},pa.prototype.destroy=function(){for(var t=0,e=this.segments;t>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),va=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),ya=ga,xa=ga,ba=va;ya.murmur3=xa,ya.murmur2=ba;var _a=function(){this.ids=[],this.positions=[],this.indexed=!1};_a.prototype.add=function(t,e,r,n){this.ids.push(Ta(t)),this.positions.push(e,r,n)},_a.prototype.getPositions=function(t){for(var e=Ta(t),r=0,n=this.ids.length-1;r>1;this.ids[i]>=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},_a.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n>1],o=n-1,s=i+1;;){do{o++}while(e[o]a);if(o>=s)break;ka(e,o,s),ka(r,3*o,3*s),ka(r,3*o+1,3*s+1),ka(r,3*o+2,3*s+2)}s-nGa.max||o.yGa.max)&&(_("Geometry exceeds allowed extent, reduce your vector tile buffer size"),o.x=l(o.x,Ga.min,Ga.max),o.y=l(o.y,Ga.min,Ga.max))}return r}function Wa(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Xa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new zi,this.indexArray=new Yi,this.segments=new pa,this.programConfigurations=new Ua(ha,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Za(t,e){for(var r=0;r1){if($a(t,e))return!0;for(var n=0;n1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function no(t,e){for(var r,n,i,a=!1,o=0;oe.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function io(t,e){for(var r=!1,n=0,i=t.length-1;ne.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function ao(t,e,r){var n=r[0],i=r[2];if(t.xi.x&&e.x>i.x||t.yi.y&&e.y>i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function oo(t,e,r){var n=e.paint.get(t).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function so(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function lo(t,e,r,n,a){if(!e[0]&&!e[1])return t;var o=i.convert(e)._mult(a);"viewport"===r&&o._rotate(-n);for(var s=[],l=0;l=8192||u<0||u>=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Wa(this.layoutVertexArray,c,u,-1,-1),Wa(this.layoutVertexArray,c,u,1,-1),Wa(this.layoutVertexArray,c,u,1,1),Wa(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Nn("CircleBucket",Xa,{omit:["layers"]});var co=new Si({"circle-sort-key":new Ti(Lt.layout_circle["circle-sort-key"])}),uo={paint:new Si({"circle-radius":new Ti(Lt.paint_circle["circle-radius"]),"circle-color":new Ti(Lt.paint_circle["circle-color"]),"circle-blur":new Ti(Lt.paint_circle["circle-blur"]),"circle-opacity":new Ti(Lt.paint_circle["circle-opacity"]),"circle-translate":new wi(Lt.paint_circle["circle-translate"]),"circle-translate-anchor":new wi(Lt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new wi(Lt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new wi(Lt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ti(Lt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ti(Lt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ti(Lt.paint_circle["circle-stroke-opacity"])}),layout:co},fo="undefined"!=typeof Float32Array?Float32Array:Array;function ho(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function po(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],m=e[12],g=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*m,t[1]=x*i+b*l+_*h+w*g,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*m,t[5]=x*i+b*l+_*h+w*g,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*m,t[9]=x*i+b*l+_*h+w*g,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*m,t[13]=x*i+b*l+_*h+w*g,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var mo=po;var go,vo,yo=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t};go=new fo(3),fo!=Float32Array&&(go[0]=0,go[1]=0,go[2]=0),vo=go;function xo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}!function(){var t=function(){var t=new fo(4);return fo!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}();var bo=function(t){var e=t[0],r=t[1];return e*e+r*r},_o=(function(){var t=function(){var t=new fo(2);return fo!=Float32Array&&(t[0]=0,t[1]=0),t}()}(),function(t){function e(e){t.call(this,e,uo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Xa(t)},e.prototype.queryRadius=function(t){var e=t;return oo("circle-radius",this,e)+oo("circle-stroke-width",this,e)+so(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=lo(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),a.angle,o),c=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),u="map"===this.paint.get("circle-pitch-alignment"),f=u?l:function(t,e){return t.map((function(t){return wo(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;pt.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=t.data,s=e.data,l=0;l80*r){n=a=t[0],i=o=t[1];for(var d=r;da&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return jo(h,p,r,n,i,c),p}function Bo(t,e,r,n,i){var a,o;if(i===ls(t,e,r,n)>0)for(a=e;a=e;a-=n)o=as(a,t[a],t[a+1],o);return o&&$o(o,o.next)&&(os(o),o=o.next),o}function No(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!$o(n,n.next)&&0!==Qo(n.prev,n,n.next))n=n.next;else{if(os(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function jo(t,e,r,n,i,a,o){if(t){!o&&a&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=Xo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Vo(t,n,i,a):Uo(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),os(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?jo(t=Ho(No(t),e,r),e,r,n,i,a,2):2===o&&qo(t,e,r,n,i,a):jo(No(t),e,r,n,i,a,1);break}}}function Uo(t){var e=t.prev,r=t,n=t.next;if(Qo(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Jo(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Qo(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Vo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Qo(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Xo(s,l,e,r,n),h=Xo(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&&p.z>=f&&d&&d.z<=h;){if(p!==t.prev&&p!==t.next&&Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Qo(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==t.prev&&d!==t.next&&Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Qo(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Qo(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Qo(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Ho(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!$o(i,a)&&ts(i,n,n.next,a)&&ns(i,a)&&ns(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),os(n),os(n.next),n=t=a),n=n.next}while(n!==t);return No(n)}function qo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Ko(o,s)){var l=is(o,s);return o=No(o,o.next),l=No(l,l.next),jo(o,e,r,n,i,a),void jo(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Go(t,e){return t.x-e.x}function Yo(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=u&&i!==n.x&&Jo(ar.x||n.x===r.x&&Wo(r,n)))&&(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=is(e,t);No(e,e.next),No(r,r.next)}}function Wo(t,e){return Qo(t.prev,t,e.prev)<0&&Qo(e.next,t,t.next)<0}function Xo(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Zo(t){var e=t,r=t;do{(e.x=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function Ko(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ts(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(ns(t,e)&&ns(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(Qo(t.prev,t,e.prev)||Qo(t,e.prev,e))||$o(t,e)&&Qo(t.prev,t,t.next)>0&&Qo(e.prev,e,e.next)>0)}function Qo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function $o(t,e){return t.x===e.x&&t.y===e.y}function ts(t,e,r,n){var i=rs(Qo(t,e,r)),a=rs(Qo(t,e,n)),o=rs(Qo(r,n,t)),s=rs(Qo(r,n,e));return i!==a&&o!==s||(!(0!==i||!es(t,r,e))||(!(0!==a||!es(t,n,e))||(!(0!==o||!es(r,t,n))||!(0!==s||!es(r,e,n)))))}function es(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function rs(t){return t>0?1:t<0?-1:0}function ns(t,e){return Qo(t.prev,t,t.next)<0?Qo(t,e,t.next)>=0&&Qo(t,t.prev,e)>=0:Qo(t,e,t.prev)<0||Qo(t,t.next,e)<0}function is(t,e){var r=new ss(t.i,t.x,t.y),n=new ss(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function as(t,e,r,n){var i=new ss(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function os(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ss(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ls(t,e,r,n){for(var i=0,a=e,o=r-n;an;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(r-s*c/o+u)),h=Math.min(i,Math.floor(r+(o-s)*c/o+u));t(e,r,f,h,a)}var p=e[r],d=n,m=i;for(us(e,n,r),a(e[i],p)>0&&us(e,n,i);d0;)m--}0===a(e[n],p)?us(e,n,m):(m++,us(e,m,i)),m<=r&&(n=m+1),r<=m&&(i=m-1)}}(t,e,r||0,n||t.length-1,i||fs)}function us(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function fs(t,e){return te?1:0}function hs(t,e){var r=t.length;if(r<=1)return[t];for(var n,i,a=[],o=0;o1)for(var l=0;l0&&(n+=t[i-1].length,r.holes.push(n))}return r},Do.default=Ro;var gs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new zi,this.indexArray=new Yi,this.indexArray2=new Qi,this.programConfigurations=new Ua(zo,t.layers,t.zoom),this.segments=new pa,this.segments2=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};gs.prototype.populate=function(t,e,r){this.hasPattern=ds("fill",this.layers,e);for(var n=this.layers[0].layout.get("fill-sort-key"),i=[],a=0,o=t;a>3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&l.push(e),l},ws.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos>3}if(n--,1===r||2===r)(i+=t.readSVarint())s&&(s=i),(a+=t.readSVarint())c&&(c=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,c]},ws.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ws.types[this.type];function u(t){for(var e=0;e>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function Es(t,e,r){if(3===t){var n=new As(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}Ms.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new _s(this._pbf,e,this.extent,this._keys,this._values)};var Ls={VectorTile:function(t,e){this.layers=t.readFields(Es,{},e)},VectorTileFeature:_s,VectorTileLayer:As},Cs=Ls.VectorTileFeature.types,Ps=Math.pow(2,13);function Is(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Ps)+o,i*Ps*2,a*Ps*2,Math.round(s))}var Os=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new Yi,this.programConfigurations=new Ua(bs,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function zs(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function Ds(t){return t.every((function(t){return t.x<0}))||t.every((function(t){return t.x>8192}))||t.every((function(t){return t.y<0}))||t.every((function(t){return t.y>8192}))}Os.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ds("fill-extrusion",this.layers,e);for(var n=0,i=t;n=1){var y=d[g-1];if(!zs(v,y)){f.vertexLength+4>pa.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);m+b>32768&&(m=0),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,m),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,m),m+=b,Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,m),Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,m);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l>pa.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===Cs[t.type]){for(var w=[],T=[],k=f.vertexLength,A=0,M=s;A=2&&t[l-1].equals(t[l-2]);)l--;for(var c=0;c0;if(T&&v>c){var A=u.dist(p);if(A>2*f){var M=u.sub(u.sub(p)._mult(f/A)._round());this.updateDistance(p,M),this.addCurrentVertex(M,m,0,0,h),p=M}}var S=p&&d,E=S?r:s?"butt":n;if(S&&"round"===E&&(_i&&(E="bevel"),"bevel"===E&&(_>2&&(E="flipbevel"),_100)y=g.mult(-1);else{var L=_*m.add(g).mag()/m.sub(g).mag();y._perp()._mult(L*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if("bevel"===E||"fakeround"===E){var C=-Math.sqrt(_*_-1),P=k?C:0,I=k?0:C;if(p&&this.addCurrentVertex(u,m,P,I,h),"fakeround"===E)for(var O=Math.round(180*w/Math.PI/20),z=1;z2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,g,0,0,h),u=j}}}}},qs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&&(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,c=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,c,a,!0,-n,i),this.distance>Hs/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},qs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,c=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s<<1)+(n?1:0),(l<<1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a<0?-1:1)|(63&c)<<2,c>>6);var u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},qs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Hs-1):this.distance},qs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Nn("LineBucket",qs,{omit:["layers","patternFeatures"]});var Gs=new Si({"line-cap":new wi(Lt.layout_line["line-cap"]),"line-join":new Ti(Lt.layout_line["line-join"]),"line-miter-limit":new wi(Lt.layout_line["line-miter-limit"]),"line-round-limit":new wi(Lt.layout_line["line-round-limit"]),"line-sort-key":new Ti(Lt.layout_line["line-sort-key"])}),Ys={paint:new Si({"line-opacity":new Ti(Lt.paint_line["line-opacity"]),"line-color":new Ti(Lt.paint_line["line-color"]),"line-translate":new wi(Lt.paint_line["line-translate"]),"line-translate-anchor":new wi(Lt.paint_line["line-translate-anchor"]),"line-width":new Ti(Lt.paint_line["line-width"]),"line-gap-width":new Ti(Lt.paint_line["line-gap-width"]),"line-offset":new Ti(Lt.paint_line["line-offset"]),"line-blur":new Ti(Lt.paint_line["line-blur"]),"line-dasharray":new Ai(Lt.paint_line["line-dasharray"]),"line-pattern":new ki(Lt.paint_line["line-pattern"]),"line-gradient":new Mi(Lt.paint_line["line-gradient"])}),layout:Gs},Ws=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new pi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(Ti))(Ys.paint.properties["line-width"].specification);Ws.useIntegerZoom=!0;var Xs=function(t){function e(e){t.call(this,e,Ys)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Co(t,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values["line-floorwidth"]=Ws.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new qs(t)},e.prototype.queryRadius=function(t){var e=t,r=Zs(oo("line-width",this,e),oo("line-gap-width",this,e)),n=oo("line-offset",this,e);return r/2+Math.abs(n)+so(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=lo(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,s),c=s/2*Zs(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),u=this.paint.get("line-offset").evaluate(e,r);return u&&(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a=3)for(var a=0;a0?e+2*t:t}var Js=Ii([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Ks=Ii([{name:"a_projected_pos",components:3,type:"Float32"}],4),Qs=(Ii([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ii([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),$s=(Ii([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Ii([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),tl=Ii([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Ii([{name:"triangle",components:3,type:"Uint16"}]),Ii([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ii([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ii([{type:"Float32",name:"offsetX"}]),Ii([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);function el(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),hi.applyArabicShaping&&(t=hi.applyArabicShaping(t)),t}(t.text,e,r)})),t}var rl={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};var nl=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},il=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m},al=ol;function ol(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}ol.Varint=0,ol.Fixed64=1,ol.Bytes=2,ol.Fixed32=5;var sl="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ll(t){return t.type===ol.Bytes?t.readVarint()+t.pos:t.pos+1}function cl(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function ul(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function fl(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function wl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}ol.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=bl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=wl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*bl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*wl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=nl(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=nl(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,a=r.buf;if(i=a[r.pos++],n=(112&i)>>4,i<128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&i)<<3,i<128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&i)<<10,i<128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&i)<<17,i<128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&i)<<24,i<128)return cl(t,n,e);if(i=a[r.pos++],n|=(1&i)<<31,i<128)return cl(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&sl?function(t,e,r){return sl.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){var n="",i=e;for(;i239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128==(192&(a=t[i+1]))&&(c=(31&l)<<6|63&a)<=127&&(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&((c=(15&l)<<12|(63&a)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==ol.Bytes)return t.push(this.readVarint(e));var r=ll(this);for(t=t||[];this.pos127;);else if(e===ol.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ol.Fixed32)this.pos+=4;else{if(e!==ol.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var r,n;t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0));if(t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;if(e.buf[e.pos++]|=r|((t>>>=3)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;e.buf[e.pos++]=127&t}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&ul(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),il(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),il(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&ul(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ol.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,fl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,hl,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ml,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,pl,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,dl,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,gl,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,vl,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,yl,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,xl,e)},writeBytesField:function(t,e){this.writeTag(t,ol.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ol.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ol.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};function Tl(t,e,r){1===t&&r.readMessage(kl,e)}function kl(t,e,r){if(3===t){var n=r.readMessage(Al,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new So({width:o+6,height:s+6},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Al(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}function Ml(t){for(var e=0,r=0,n=0,i=t;n=0;h--){var p=o[h];if(!(f.w>p.w||f.h>p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&&f.h===p.h){var d=o.pop();h0&&N>A&&(A=N)}else{var j=r[S.fontStack],U=j&&j[L];if(U&&U.rect)I=U.rect,P=U.metrics;else{var V=e[S.fontStack],H=V&&V[L];if(!H)continue;P=H.metrics}C=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=z*S.scale+c):(k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=P.advance*S.scale+c)}if(0!==k.length){var q=h-c;d=Math.max(q,d),Vl(k,0,k.length-1,g,A)}h=0;var G=a*_+A;T.lineOffset=Math.max(A,w),p+=G,m=Math.max(G,m),++v}else p+=a,++v}var Y;var W=p- -17,X=Ul(o),Z=X.horizontalAlign,J=X.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c=(e-r)*i,u=0;u=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f=0&&n>=t&&zl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Il.prototype.substring=function(t,e){var r=new Il;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Il.prototype.toString=function(){return this.text},Il.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Il.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Pl.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var zl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Dl={};function Rl(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+i:0}function Fl(t,e,r,n){var i=Math.pow(t-e,2);return n?t=0,f=0,h=0;h-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;sn;)c-=l.shift().angleDelta;if(c>i)return!1;o++,s+=f.dist(h)}return!0}function Jl(t){for(var e=0,r=0;rc){var d=(c-l)/p,m=qe(f.x,h.x,d),g=qe(f.y,h.y,d),v=new ql(m,g,h.angleTo(f),u);return v._round(),!o||Zl(t,v,s,o,e)?v:void 0}l+=p}}function tc(t,e,r,n,i,a,o,s,l){var c=Kl(n,a,o),u=Ql(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f=0&&_=0&&w=0&&p+u<=f){var T=new ql(_,w,x,m);T._round(),i&&!Zl(e,T,o,i,a)||d.push(T)}}h+=y}l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c));return d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function ec(t,e,r,n,a){for(var o=[],s=0;s=n&&h.x>=n||(f.x>=n?f=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round():h.x>=n&&(h=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round()),f.y>=a&&h.y>=a||(f.y>=a?f=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y>=a&&(h=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&&f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}function rc(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},m=h.reduce(d,0),g=p.reduce(d,0),v=l-m,y=c-g,x=0,b=m,_=0,w=g,T=0,k=v,A=0,M=y;if(o.content&&n){var S=o.content;x=nc(h,0,S[0]),_=nc(p,0,S[1]),b=nc(h,S[0],S[2]),w=nc(p,S[1],S[3]),T=S[0]-x,A=S[1]-_,k=S[2]-S[0]-b,M=S[3]-S[1]-w}var E=function(n,a,l,c){var h=ac(n.stretch-x,b,u,t.left),p=oc(n.fixed-T,k,n.stretch,m),d=ac(a.stretch-_,w,f,t.top),v=oc(a.fixed-A,M,a.stretch,g),y=ac(l.stretch-x,b,u,t.left),S=oc(l.fixed-T,k,l.stretch,m),E=ac(c.stretch-_,w,f,t.top),L=oc(c.fixed-A,M,c.stretch,g),C=new i(h,d),P=new i(y,d),I=new i(y,E),O=new i(h,E),z=new i(p/s,v/s),D=new i(S/s,L/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];C._matMult(N),P._matMult(N),O._matMult(N),I._matMult(N)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=a.stretch+a.fixed,H=c.stretch+c.fixed;return{tl:C,tr:P,bl:O,br:I,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+V,w:U-j,h:H-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:z,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:M/s/f,isSDF:r}};if(n&&(o.stretchX||o.stretchY))for(var L=ic(h,v,m),C=ic(p,y,g),P=0;P0&&(d=Math.max(10,d),this.circleDiameter=d)}else{var m=o.top*s-l,g=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&&(v-=x[0]*s,m-=x[1]*s,y+=x[2]*s,g+=x[3]*s),u){var b=new i(v,m),_=new i(y,m),w=new i(v,g),T=new i(y,g),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),m=Math.min(b.y,_.y,w.y,T.y),g=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,m,y,g,r,n,a)}this.boxEndIndex=t.length},lc=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=cc),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)};function cc(t,e){return te?1:0}function uc(t,e,r){void 0===e&&(e=1),void 0===r&&(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;co)&&(o=u.x),(!c||u.y>s)&&(s=u.y)}var f=o-n,h=s-a,p=Math.min(f,h),d=p/2,m=new lc([],fc);if(0===p)return new i(n,a);for(var g=n;gy.d||!y.d)&&(y=b,r&&console.log("found best %d after %d probes",Math.round(1e4*b.d)/1e4,x)),b.max-y.d<=e||(d=b.h/2,m.push(new hc(b.p.x-d,b.p.y-d,d,t)),m.push(new hc(b.p.x+d,b.p.y-d,d,t)),m.push(new hc(b.p.x-d,b.p.y+d,d,t)),m.push(new hc(b.p.x+d,b.p.y+d,d,t)),x+=4)}return r&&(console.log("num probes: "+x),console.log("best distance: "+y.d)),y.p}function fc(t,e){return e.max-t.max}function hc(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;it.y!=u.y>t.y&&t.x<(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&&(r=!r),n=Math.min(n,ro(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}lc.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},lc.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},lc.prototype.peek=function(){return this.data[0]},lc.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n},lc.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];t=0)break;e[t]=o,t=a}e[t]=i};var pc=Number.POSITIVE_INFINITY;function dc(t,e){return e[1]!==pc?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":i=r-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-r}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":n=i-7;break;case"bottom-right":case"bottom-left":n=7-i;break;case"bottom":n=7-e;break;case"top":n=e-7}switch(t){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=e;break;case"right":r=-e}return[r,n]}(t,e[0])}function mc(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function gc(t,e,r,n,a,o,s,l,c,u,f,h,p,d,m){var g=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f32640&&_(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===v.kind&&((y=[128*d.compositeTextSizes[0].evaluate(s,{},m),128*d.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||y[1]>32640)&&_(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,g,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,m);for(var x=0,b=f;x=0;o--)if(n.dist(a[o])0)&&("constant"!==a.value.kind||a.value.value.length>0),c="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,u=i.get("symbol-sort-key");if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new pi(this.zoom),m=0,g=t;m=0;for(var O=0,z=k.sections;O=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l0},Mc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Mc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Mc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Mc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Mc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r=0&&n.indexOf(t)===r&&e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Nn("SymbolBucket",Mc,{omit:["layers","collisionBoxArray","features","compareText"]}),Mc.MAX_GLYPHS=65535,Mc.addDynamicAttributes=wc;var Sc=new Si({"symbol-placement":new wi(Lt.layout_symbol["symbol-placement"]),"symbol-spacing":new wi(Lt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new wi(Lt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ti(Lt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new wi(Lt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new wi(Lt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new wi(Lt.layout_symbol["icon-ignore-placement"]),"icon-optional":new wi(Lt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new wi(Lt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ti(Lt.layout_symbol["icon-size"]),"icon-text-fit":new wi(Lt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new wi(Lt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ti(Lt.layout_symbol["icon-image"]),"icon-rotate":new Ti(Lt.layout_symbol["icon-rotate"]),"icon-padding":new wi(Lt.layout_symbol["icon-padding"]),"icon-keep-upright":new wi(Lt.layout_symbol["icon-keep-upright"]),"icon-offset":new Ti(Lt.layout_symbol["icon-offset"]),"icon-anchor":new Ti(Lt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new wi(Lt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new wi(Lt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new wi(Lt.layout_symbol["text-rotation-alignment"]),"text-field":new Ti(Lt.layout_symbol["text-field"]),"text-font":new Ti(Lt.layout_symbol["text-font"]),"text-size":new Ti(Lt.layout_symbol["text-size"]),"text-max-width":new Ti(Lt.layout_symbol["text-max-width"]),"text-line-height":new wi(Lt.layout_symbol["text-line-height"]),"text-letter-spacing":new Ti(Lt.layout_symbol["text-letter-spacing"]),"text-justify":new Ti(Lt.layout_symbol["text-justify"]),"text-radial-offset":new Ti(Lt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new wi(Lt.layout_symbol["text-variable-anchor"]),"text-anchor":new Ti(Lt.layout_symbol["text-anchor"]),"text-max-angle":new wi(Lt.layout_symbol["text-max-angle"]),"text-writing-mode":new wi(Lt.layout_symbol["text-writing-mode"]),"text-rotate":new Ti(Lt.layout_symbol["text-rotate"]),"text-padding":new wi(Lt.layout_symbol["text-padding"]),"text-keep-upright":new wi(Lt.layout_symbol["text-keep-upright"]),"text-transform":new Ti(Lt.layout_symbol["text-transform"]),"text-offset":new Ti(Lt.layout_symbol["text-offset"]),"text-allow-overlap":new wi(Lt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new wi(Lt.layout_symbol["text-ignore-placement"]),"text-optional":new wi(Lt.layout_symbol["text-optional"])}),Ec={paint:new Si({"icon-opacity":new Ti(Lt.paint_symbol["icon-opacity"]),"icon-color":new Ti(Lt.paint_symbol["icon-color"]),"icon-halo-color":new Ti(Lt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ti(Lt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ti(Lt.paint_symbol["icon-halo-blur"]),"icon-translate":new wi(Lt.paint_symbol["icon-translate"]),"icon-translate-anchor":new wi(Lt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ti(Lt.paint_symbol["text-opacity"]),"text-color":new Ti(Lt.paint_symbol["text-color"],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new Ti(Lt.paint_symbol["text-halo-color"]),"text-halo-width":new Ti(Lt.paint_symbol["text-halo-width"]),"text-halo-blur":new Ti(Lt.paint_symbol["text-halo-blur"]),"text-translate":new wi(Lt.paint_symbol["text-translate"]),"text-translate-anchor":new wi(Lt.paint_symbol["text-translate-anchor"])}),layout:Sc},Lc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ft,this.defaultValue=t};Lc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Lc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return null},Nn("FormatSectionOverride",Lc,{omit:["defaultValue"]});var Cc=function(t){function e(e){t.call(this,e,Ec)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var i=[],a=0,o=n;a",targetMapId:n,sourceMapId:a.mapId})}}},qc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&&n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},qc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},qc.prototype.processTask=function(t,e){var r=this;if(""===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n(qn(e.error)):n(null,qn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:"",sourceMapId:r.mapId,error:e?Hn(e):null,data:Hn(n,a)},a)}:function(t){i=!0},s=null,l=qn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},qc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Yc=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Yc.prototype.setNorthEast=function(t){return this._ne=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.setSouthWest=function(t){return this._sw=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Wc)e=t,r=t;else{if(!(t instanceof Yc)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(Yc.convert(a))}var o=t;return this.extend(Wc.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wc(e.lng,e.lat),this._ne=new Wc(r.lng,r.lat)),this},Yc.prototype.getCenter=function(){return new Wc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Yc.prototype.getSouthWest=function(){return this._sw},Yc.prototype.getNorthEast=function(){return this._ne},Yc.prototype.getNorthWest=function(){return new Wc(this.getWest(),this.getNorth())},Yc.prototype.getSouthEast=function(){return new Wc(this.getEast(),this.getSouth())},Yc.prototype.getWest=function(){return this._sw.lng},Yc.prototype.getSouth=function(){return this._sw.lat},Yc.prototype.getEast=function(){return this._ne.lng},Yc.prototype.getNorth=function(){return this._ne.lat},Yc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Yc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Yc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Yc.prototype.contains=function(t){var e=Wc.convert(t),r=e.lng,n=e.lat,i=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),i&&a},Yc.convert=function(t){return!t||t instanceof Yc?t:new Yc(t)};var Wc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Wc.prototype.wrap=function(){return new Wc(c(this.lng,-180,180),this.lat)},Wc.prototype.toArray=function(){return[this.lng,this.lat]},Wc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Wc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Wc.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Yc(new Wc(this.lng-r,this.lat-e),new Wc(this.lng+r,this.lat+e))},Wc.convert=function(t){if(t instanceof Wc)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Wc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Wc(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Xc=2*Math.PI*6371008.8;function Zc(t){return Xc*Math.cos(t*Math.PI/180)}function Jc(t){return(180+t)/360}function Kc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Qc(t,e){return t/Zc(e)}function $c(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var tu=function(t,e,r){void 0===r&&(r=0),this.x=+t,this.y=+e,this.z=+r};tu.fromLngLat=function(t,e){void 0===e&&(e=0);var r=Wc.convert(t);return new tu(Jc(r.lng),Kc(r.lat),Qc(e,r.lat))},tu.prototype.toLngLat=function(){return new Wc(360*this.x-180,$c(this.y))},tu.prototype.toAltitude=function(){return t=this.z,e=this.y,t*Zc($c(e));var t,e},tu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Xc*(t=$c(this.y),1/Math.cos(t*Math.PI/180));var t};var eu=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=iu(0,t,t,e,r)};eu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},eu.prototype.url=function(t,e){var r,n,i,a,o,s=(r=this.x,n=this.y,i=this.z,a=Gc(256*r,256*(n=Math.pow(2,i)-n-1),i),o=Gc(256*(r+1),256*(n+1),i),a[0]+","+a[1]+","+o[0]+","+o[1]),l=function(t,e,r){for(var n,i="",a=t;a>0;a--)i+=(e&(n=1<this.canonical.z?new nu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new nu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},nu.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t>this.canonical.z?iu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):iu(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)},nu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e},nu.prototype.children=function(t){if(this.overscaledZ>=t)return[new nu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new nu(e,this.wrap,e,r,n),new nu(e,this.wrap,e,r+1,n),new nu(e,this.wrap,e,r,n+1),new nu(e,this.wrap,e,r+1,n+1)]},nu.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},au.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},au.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},au.prototype.getPixels=function(){return new Eo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},au.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}},uu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ls.VectorTile(new al(this.rawTileData)).layers,this.sourceLayerCoder=new ou(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uu.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=sn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=hu(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=hu(t.cameraQueryGeometry),d=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o=l.x&&a>=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length>2)for(var u=0,f=c;u=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new pi(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),m=0;mn)i=!1;else if(e)if(this.expirationTimeot&&(t.getActor().send("enforceCacheSizeLimit",at),ht=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=ec,t.clone=function(t){var e=new fo(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new fo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=tl,t.config=F,t.create=function(){var t=new fo(16);return fo!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new fo(9);return fo!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new fo(4);return fo!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Wr,t.createLayout=Ii,t.createStyleLayer=function(t){return"custom"===t.type?new Dc(t):new Rc[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=qe,t.offscreenCanvasSupported=pt,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new al(t).readFields(Tl,[])},t.pbf=al,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=8192/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var f=t.textSizeData,h=f.minZoom,p=f.maxZoom;u.compositeTextSizes=[c["text-size"].possiblyEvaluate(new pi(h),o),c["text-size"].possiblyEvaluate(new pi(p),o)]}if("composite"===t.iconSizeData.kind){var d=t.iconSizeData,m=d.minZoom,g=d.maxZoom;u.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new pi(m),o),c["icon-size"].possiblyEvaluate(new pi(g),o)]}u.layoutTextSize=c["text-size"].possiblyEvaluate(new pi(t.zoom+1),o),u.layoutIconSize=c["icon-size"].possiblyEvaluate(new pi(t.zoom+1),o),u.textMaxSize=c["text-size"].possiblyEvaluate(new pi(18));for(var v=24*l.get("text-line-height"),y="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),x=l.get("text-keep-upright"),b=l.get("text-size"),w=function(){var a=k[T],s=l.get("text-font").evaluate(a,{},o).join(","),c=b.evaluate(a,{},o),f=u.layoutTextSize.evaluate(a,{},o),h=u.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},d=a.text,m=[0,0];if(d){var g=d.toString(),w=24*l.get("text-letter-spacing").evaluate(a,{},o),A=function(t){for(var e=0,r=t;e=8192||f.y<0||f.y>=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,w,T,k,A){var M,S,E,L,C,P=t.addToLineVertexArray(e,r),I=0,O=0,z=0,D=0,R=-1,F=-1,B={},N=ya(""),j=0,U=0;void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(M=s.layout.get("text-offset").evaluate(b,{},k).map((function(t){return 24*t})),j=M[0],U=M[1]):(j=24*s.layout.get("text-radial-offset").evaluate(b,{},k),U=pc);if(t.allowVerticalPlacement&&n.vertical){var V=s.layout.get("text-rotate").evaluate(b,{},k)+90,H=n.vertical;L=new sc(l,e,c,u,f,H,h,p,d,V),o&&(C=new sc(l,e,c,u,f,o,g,v,d,V))}if(i){var q=s.layout.get("icon-rotate").evaluate(b,{}),G="none"!==s.layout.get("icon-text-fit"),Y=rc(i,q,T,G),W=o?rc(o,q,T,G):void 0;E=new sc(l,e,c,u,f,i,g,v,!1,q),I=4*Y.length;var X=t.iconSizeData,Z=null;"source"===X.kind?(Z=[128*s.layout.get("icon-size").evaluate(b,{})])[0]>32640&&_(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===X.kind&&((Z=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]>32640||Z[1]>32640)&&_(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,Y,Z,x,y,b,!1,e,P.lineStartIndex,P.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,W&&(O=4*W.length,t.addSymbols(t.icon,W,Z,x,y,b,Cl.vertical,e,P.lineStartIndex,P.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var J in n.horizontal){var K=n.horizontal[J];if(!S){N=ya(K.text);var Q=s.layout.get("text-rotate").evaluate(b,{},k);S=new sc(l,e,c,u,f,K,h,p,d,Q)}var $=1===K.positionedLines.length;if(z+=gc(t,e,K,a,s,d,b,m,P,n.vertical?Cl.horizontal:Cl.horizontalOnly,$?Object.keys(n.horizontal):[J],B,R,w,k),$)break}n.vertical&&(D+=gc(t,e,n.vertical,a,s,d,b,m,P,Cl.vertical,["vertical"],B,F,w,k));var tt=S?S.boxStartIndex:t.collisionBoxArray.length,et=S?S.boxEndIndex:t.collisionBoxArray.length,rt=L?L.boxStartIndex:t.collisionBoxArray.length,nt=L?L.boxEndIndex:t.collisionBoxArray.length,it=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,ot=C?C.boxStartIndex:t.collisionBoxArray.length,st=C?C.boxEndIndex:t.collisionBoxArray.length,lt=-1,ct=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ct(S,lt),lt=ct(L,lt),lt=ct(E,lt);var ut=(lt=ct(C,lt))>-1?1:0;ut&&(lt*=A/24);t.glyphOffsetArray.length>=Mc.MAX_GLYPHS&&_("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907");void 0!==b.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);t.symbolInstances.emplaceBack(e.x,e.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,R,F,N,tt,et,rt,nt,it,at,ot,st,c,z,D,I,O,ut,0,h,j,U,lt)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,A,l,x,T,M,d,e,a,c,u,o)};if("line"===S)for(var P=0,I=ec(e.geometry,0,0,8192,8192);P1){var V=$l(U,k,r.vertical||m,n,24,y);V&&C(U,V)}}else if("Polygon"===e.type)for(var H=0,q=hs(e.geometry,0);H=E.maxzoom))if("none"!==E.visibility)o(S,this.zoom,n),(m[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,g,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id})))}}}var L=t.mapObject(g.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(L).length?a.send("getGlyphs",{uid:this.uid,stacks:L},(function(t,e){f||(f=t,h=e,I.call(l))})):h={};var C=Object.keys(g.iconDependencies);C.length?a.send("getImages",{icons:C,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){f||(f=t,p=e,I.call(l))})):p={};var P=Object.keys(g.patternDependencies);function I(){if(f)return s(f);if(h&&p&&d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in m){var l=m[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(o(l.layers,this.zoom,n),l.addFeatures(g,this.tileID.canonical,r.patternPositions))}this.status="done",s(null,{buckets:t.values(m).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}P.length?a.send("getImages",{icons:P,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){f||(f=t,d=e,I.call(l))})):d={},I.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status="done",n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&&(c.expires=a.expires),a.cacheControl&&(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&&(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&&n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&&(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&&a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var f=function t(e,r){var n,i=e&&e.type;if("FeatureCollection"===i)for(n=0;n=0!=!!e&&t.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,m=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};m.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r>31}function P(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s>1;!function t(e,r,n,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),h=Math.max(i,Math.floor(n-l*u/s+f)),p=Math.min(a,Math.floor(n+(s-l)*u/s+f));t(e,r,n,h,p,o)}var d=r[2*n+o],m=i,g=a;for(z(e,r,i,n),r[2*a+o]>d&&z(e,r,i,a);md;)g--}r[2*i+o]===d?z(e,r,i,g):(g++,z(e,r,g,a)),g<=n&&(i=g+1),n<=g&&(a=g-1)}}(t,e,o,n,i,a%2),O(t,e,r,n,o-1,a+1),O(t,e,r,o+1,i,a+1)}}function z(t,e,r,n){D(t,r,n),D(e,2*r,2*n),D(e,2*r+1,2*n+1)}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function R(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}_.fromVectorTileJs=w,_.fromGeojsonVt=T,_.GeoJSONWrapper=k;var F=function(t){return t[0]},B=function(t){return t[1]},N=function(t,e,r,n,i){void 0===e&&(e=F),void 0===r&&(r=B),void 0===n&&(n=64),void 0===i&&(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length<65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l=r&&s<=i&&l>=n&&l<=a&&u.push(t[d]);else{var m=Math.floor((p+h)/2);s=e[2*m],l=e[2*m+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[m]);var g=(f+1)%2;(0===f?r<=s:n<=l)&&(c.push(p),c.push(m-1),c.push(g)),(0===f?i>=s:a>=l)&&(c.push(m+1),c.push(h),c.push(g))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},N.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f<=a)for(var h=f;h<=u;h++)R(e[2*h],e[2*h+1],r,n)<=l&&s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],m=e[2*p+1];R(d,m,r,n)<=l&&s.push(t[p]);var g=(c+1)%2;(0===c?r-i<=d:n-i<=m)&&(o.push(f),o.push(p-1),o.push(g)),(0===c?r+i>=d:n+i>=m)&&(o.push(p+1),o.push(u),o.push(g))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var j={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},U=function(t){this.options=X(Object.create(j),t),this.trees=new Array(this.options.maxZoom+1)};function V(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function H(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:Y(n),y:W(i),zoom:1/0,index:e,parentId:-1}}function q(t){return{type:"Feature",id:t.id,properties:G(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function G(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return X(X({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Y(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function X(t,e){for(var r in e)t[r]=e[r];return t}function Z(t){return t.x}function J(t){return t.y}function K(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function Q(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)$(t,e);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n0&&(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r>>1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;po)a=p,o=d;else if(d===o){var m=Math.abs(p-s);mi&&(a-r>3&&t(e,r,a,i),e[a+2]=o,n-a>3&&t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function nt(t,e,r,n){for(var i=0;i1?1:r}function ot(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o=n)return null;for(var l=[],c=0;c=r&&d=n)){var m=[];if("Point"===h||"MultiPoint"===h)st(f,m,r,n,i);else if("LineString"===h)lt(f,m,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===h)ut(f,m,r,n,i,!1);else if("Polygon"===h)ut(f,m,r,n,i,!0);else if("MultiPolygon"===h)for(var g=0;g=r&&o<=n&&(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function lt(t,e,r,n,i,a,o){for(var s,l,c=ct(t),u=0===i?ht:pt,f=t.start,h=0;hr&&(l=u(c,p,d,g,v,r),o&&(c.start=f+s*l)):y>n?x=r&&(l=u(c,p,d,g,v,r),b=!0),x>n&&y<=n&&(l=u(c,p,d,g,v,n),b=!0),!a&&b&&(o&&(c.end=f+s*l),e.push(c),c=ct(t)),o&&(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],m=t[_+2],(y=0===i?p:d)>=r&&y<=n&&ft(c,p,d,m),_=c.length-3,a&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&ft(c,c[0],c[1],c[2]),c.length&&e.push(c)}function ct(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ut(t,e,r,n,i,a){for(var o=0;oo.maxX&&(o.maxX=u),f>o.maxY&&(o.maxY=f)}return o}function xt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if("Point"===a||"MultiPoint"===a)for(var s=0;s0&&e.size<(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;lo)&&(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&&function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n0===e)for(n=0,i=t.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=function(t,e){var r=[];if("FeatureCollection"===t.type)for(var n=0;n=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new N(s,Z,J,a,Float32Array),r&&console.log("z%d: %d clusters in %dms",c,s.length,+Date.now()-u)}return r&&console.timeEnd("total time"),this},U.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(Y(r),W(a),Y(i),W(n));u1?this._map(c,!0):null,g=(l<<5)+(e+1)+this.points.length,v=0,y=f;v>5},U.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},U.prototype._map=function(t,e){if(t.numPoints)return e?X({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?X({},n):n},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1<1&&console.time("creation"),h=this.tiles[f]=yt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd("creation"));var p="z"+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1<1&&console.time("clipping");var m,g,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;m=g=v=y=null,x=ot(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=ot(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&&(m=ot(x,u,n-_,n+T,1,h.minY,h.maxY,l),g=ot(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&&(v=ot(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=ot(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c>1&&console.timeEnd("clipping"),s.push(m||[],e+1,2*r,2*n),s.push(g||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},_t.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t<0||t>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var l,c=t,u=e,f=r;!l&&c>0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[wt(c,u,f)];return l&&l.source?(a>1&&console.log("found parent tile z%d-%d-%d",c,u,f),a>1&&console.time("drilling down"),this.splitTile(l.source,c,u,f,t,e,r),a>1&&console.timeEnd("drilling down"),this.tiles[s]?gt(this.tiles[s],i):null):null};var kt=function(e){function r(t,r,n,i){e.call(this,t,r,n,Tt),i&&(this.loadGeoJSON=i)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&&n.request&&n.request.collectResourceTiming)&&new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if("object"!=typeof o)return r(new Error("Input data given to '"+n.source+"' is not a valid GeoJSON object."));f(o,!0);try{e._geoJSONIndex=n.cluster?new U(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c=0?0:e.button},r.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s65535)e(new Error("glyphs > 65535 not supported"));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i1&&(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=void 0,d=i/r*(n+1);if(l.isDash){var m=n-Math.abs(d);p=Math.sqrt(h*h+m*m)}else p=n-Math.sqrt(h*h+d*d);this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&&n.isDash===r.isDash&&(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&&(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c1&&(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=l.isDash?h:-h;this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var a=0,o=0;o=n&&e.x=i&&e.y0&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+10&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event("data",n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+".loadData",n,(function(t,i){r._removed||i&&i.abandoned||(r._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[r.id]&&(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,"reloadTile"===i),r(null))}))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),P=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),I=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&&(n.image=a,e&&(n.coordinates=e),r&&r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;or.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(I),z=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];tthis.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ<=e||a.tileID.overscaledZ>r)){for(var o=a.tileID;a&&a.tileID.overscaledZ>e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&&a.hasData()&&(o=s)}for(var l=o;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&&r.tileID.overscaledZ>=e?r:null}for(var n=t.overscaledZ-1;n>=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(It(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);fthis._source.maxzoom){var g=d.children(this._source.maxzoom)[0],v=this.getTile(g);if(v&&v.hasData()){n[g.key]=g;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&&n[y[1].key]&&n[y[2].key]&&n[y[3].key])continue}for(var x=m.wasRequested(),b=d.overscaledZ-1;b>=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(m=this.getTile(_))&&x&&(m=this._addTile(_)),m&&(n[_.key]=_,x=m.wasRequested(),m.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,m=0,g=c;m=0&&v[1].y+g>=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:m})}}},x=0;x=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&&n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles){this._tiles[r].hasDependency(t,e)&&this._reloadTile(r,"reloading")}this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Pt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function It(t){return"raster"===t||"image"===t||"video"===t}function Ot(){return new t.window.Worker(Zi.workerUrl)}Ct.maxOverzooming=10,Ct.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Kt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function ne(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=n.transform.width/n.transform.height,g=!1,v=0;vMath.abs(n.x-r.x)*i)return{useVertical:!0};return(e===t.WritingMode.vertical?r.yn.x)?{needsFlipping:!0}:null}function oe(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var m,g=r/24,v=e.lineOffsetX*g,y=e.lineOffsetY*g;if(e.numGlyphs>1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ie(g,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=te(w.first.point,s).point,k=te(w.last.point,s).point;if(i&&!n){var A=ae(e.writingMode,T,k,d);if(A)return A}m=[w.first];for(var M=e.glyphStartIndex+1;M0?C.point:se(h,L,S,1,a),I=ae(e.writingMode,S,P,d);if(I)return I}var O=le(g*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!O)return{notEnoughRoom:!0};m=[O]}for(var z=0,D=m;z0?1:-1,m=0;i&&(d*=-1,m=Math.PI),d<0&&(m+=Math.PI);for(var g=d>0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b<=_;){if((g+=d)=c)return null;if(y=v,w.push(v),void 0===(v=h[g])){var T=new t.Point(u.getx(g),u.gety(g)),k=te(T,f);if(k.signedDistanceFromCamera>0)v=h[g]=k.point;else{var A=g-d;v=se(0===x?o:new t.Point(u.getx(A),u.gety(A)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var M=(_-x)/b,S=v.sub(y),E=S.mult(M)._add(y);E._add(S._unit()._perp()._mult(n*d));var L=m+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:L,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Kt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Kt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Kt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Kt.prototype._query=function(t,e,r,n,i,a){if(r<0||t>this.width||n<0||e>this.height)return!i&&[];var o=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var s=0;s0:o},Kt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o<0||a>this.width||l<0||s>this.height)return!n&&[];var c=[],u={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length>0:c},Kt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Kt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Kt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Kt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f=u[d+0]&&n>=u[d+1]&&(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var m=this.circleCells[i];if(null!==m)for(var g=this.circles,v=0,y=m;vo*o+s*s},Kt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;var f=l-s,h=u-c;return f*f+h*h<=r*r};var ce=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var r=0;r=1;P--)C.push(E.path[P]);for(var I=1;I0){for(var R=C[0].clone(),F=C[0].clone(),B=1;B=A.x&&F.x<=M.x&&R.y>=A.y&&F.y<=M.y?[C]:F.xM.x||F.yM.y?[]:t.clipLine([C],A.x,A.y,M.x,M.y)}for(var N=0,j=D;N=this.screenRightBoundary||n<100||e>this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,r,n){return r>=0&&t=0&&e0)return this.prevPlacement&&this.prevPlacement.variableOffsets[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID].text&&(m=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:g,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:m},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&&(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}},we.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,m=a.collisionGroup,g=s.get("text-optional"),v=s.get("icon-optional"),y=s.get("text-allow-overlap"),x=s.get("icon-allow-overlap"),b="map"===s.get("text-rotation-alignment"),_="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order"),k=y&&(x||!o.hasIconData()||v),A=x&&(y||!o.hasTextData()||g);!o.collisionArrays&&p&&o.deserializeCollisionBoxes(p);var M=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,M=!1,S=!0,E=null,L={box:null,offscreen:null},C={box:null,offscreen:null},P=null,I=null,O=0,z=0,D=0;a.textFeatureIndex?O=a.textFeatureIndex:e.useRuntimeCollisionCircles&&(O=e.featureIndex),a.verticalTextFeatureIndex&&(z=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&&!r&&i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&&(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&a.verticalTextBox)for(var i=0,s=o.writingModes;i0&&(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&&!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d=N.length,k=i.attemptAnchorPlacement(g,t,a,s,c,b,_,f,l,m,v,e,o,n,u);if(k&&(h=k.placedGlyphBoxes)&&h.box&&h.box.length){T=!0,E=k.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=L&&L.box&&L.box.length;return o.allowVerticalPlacement&&!n&&e.numVerticalGlyphVertices>0&&r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),L&&(T=L.box,S=L.offscreen);var V=F(L&&L.box);if(!T&&i.prevPlacement){var H=i.prevPlacement.variableOffsets[e.crossTileID];H&&(i.variableOffsets[e.crossTileID]=H,i.markUsedJustification(o,H.anchor,e,V))}}else{var q=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,m.predicate);return n&&n.box&&n.box.length&&(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return q(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&r?q(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(L&&L.box&&L.box.length)}}if(T=(p=L)&&p.box&&p.box.length>0,S=p&&p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get("text-padding"),X=e.collisionCircleDiameter;P=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,m.predicate,X,W),T=y||P.circles.length>0&&!P.collisionDetected,S=S&&P.offscreen}if(a.iconFeatureIndex&&(D=a.iconFeatureIndex),a.iconBox){var Z=function(t){var e=w&&E?_e(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,m.predicate)};M=C&&C.box&&C.box.length&&a.verticalIconBox?(I=Z(a.verticalIconBox)).box.length>0:(I=Z(a.iconBox)).box.length>0,S=S&&I.offscreen}var J=g||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,K=v||0===e.numIconVertices;if(J||K?K?J||(M=M&&T):T=M&&T:M=T=M&&T,T&&p&&p.box&&(C&&C.box&&z?i.collisionIndex.insertCollisionBox(p.box,s.get("text-ignore-placement"),o.bucketInstanceId,z,m.ID):i.collisionIndex.insertCollisionBox(p.box,s.get("text-ignore-placement"),o.bucketInstanceId,O,m.ID)),M&&I&&i.collisionIndex.insertCollisionBox(I.box,s.get("icon-ignore-placement"),o.bucketInstanceId,D,m.ID),P&&(T&&i.collisionIndex.insertCollisionCircles(P.circles,s.get("text-ignore-placement"),o.bucketInstanceId,O,m.ID),n)){var Q=o.bucketInstanceId,$=i.collisionCircleArrays[Q];void 0===$&&($=i.collisionCircleArrays[Q]=new ve);for(var tt=0;tt=0;--E){var L=S[E];M(o.symbolInstances.get(L),o.collisionArrays[L])}else for(var C=e.symbolInstanceStart;C=0&&(e.text.placedSymbolArray.get(c).crossTileID=a>=0&&c!==a?0:n.crossTileID)}},we.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o0||l>0,x=a.numIconVertices>0,b=i.placedOrientations[a.crossTileID],_=b===t.WritingMode.vertical,w=b===t.WritingMode.horizontal||b===t.WritingMode.horizontalOnly;if(y){var T=Pe(v.text),k=_?Ie:T;d(e.text,s,k);var A=w?Ie:T;d(e.text,l,A);var M=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=M||_?1:0)})),a.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&&i.markUsedJustification(e,S.anchor,a,b);var E=i.placedOrientations[a.crossTileID];E&&(i.markUsedJustification(e,"left",a,E),i.markUsedOrientation(e,E,a))}if(x){var L=Pe(v.icon),C=!(h&&a.verticalPlacedIconSymbolIndex&&_);if(a.placedIconSymbolIndex>=0){var P=C?L:Ie;d(e.icon,a.numIconVertices,P),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex>=0){var I=C?Ie:L;d(e.icon,a.numVerticalIconVertices,I),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var O=e.collisionArrays[n];if(O){var z=new t.Point(0,0);if(O.textBox||O.verticalTextBox){var D=!0;if(c){var R=i.variableOffsets[m];R?(z=be(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),u&&z._rotate(f?i.transform.angle:-i.transform.angle)):D=!1}O.textBox&&Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||_,z.x,z.y),O.verticalTextBox&&Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||w,z.x,z.y)}var F=Boolean(!w&&O.verticalIconBox);O.iconBox&&Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,F,h?z.x:0,h?z.y:0),O.verticalIconBox&&Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!F,h?z.x:0,h?z.y:0)}}},g=0;gt},we.prototype.setStale=function(){this.stale=!0};var ke=Math.pow(2,25),Ae=Math.pow(2,24),Me=Math.pow(2,17),Se=Math.pow(2,16),Ee=Math.pow(2,9),Le=Math.pow(2,8),Ce=Math.pow(2,1);function Pe(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*ke+e*Ae+r*Me+e*Se+r*Ee+e*Le+r*Ce+e}var Ie=0,Oe=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new Oe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var De=512/t.EXTENT/2,Re=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;nt.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&&c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u1?"@2x":"",l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&&a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,m=l.stretchX,g=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:m,stretchY:g,content:v}}n(null,r)}}return{cancel:function(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast("setImages",r._availableImages),r.fire(new t.Event("data",{dataType:"style"}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return n.forEach((function(t){"setTransition"!==t.command&&r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)>=0)||!this._validate(t.validateStyle.source,"sources."+e,r,null,n)){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Ct(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+r+'" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var a;if("custom"===e.type){if(je(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&"custom"!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&&r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,"layers."+i.id+".filter",r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;"geojson"===o&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o="vector"===a?e.sourceLayer:void 0;"vector"!==a||o?r&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if("vector"!==i.getSource().type||n)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return"fill-extrusion"===e._layers[t].type},n={},i=[],a=this._order.length-1;a>=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s=0;d--){var m=this._order[d];if(r(m))for(var g=i.length-1;g>=0;g--){var v=i[g].feature;if(n[v.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),tr=yr("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),er=yr("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),rr=yr("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nr=yr("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ir=yr("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ar=yr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),or=yr("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sr=yr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),lr=yr("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),cr=yr("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),ur=yr("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fr=yr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),hr=yr("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),pr=yr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),dr=yr("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),mr=yr("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),gr=yr("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),vr=yr("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o="float"===i?"vec2":"vec4",s=a.match(/color/)?"color":o;return n[a]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"}))}}var xr=Object.freeze({__proto__:null,prelude:Ye,background:We,backgroundPattern:Xe,circle:Ze,clippingMask:Je,heatmap:Ke,heatmapTexture:Qe,collisionBox:$e,collisionCircle:tr,debug:er,fill:rr,fillOutline:nr,fillOutlinePattern:ir,fillPattern:ar,fillExtrusion:or,fillExtrusionPattern:sr,hillshadePrepare:lr,hillshade:cr,line:ur,lineGradient:fr,linePattern:hr,lineSDF:pr,raster:dr,symbolIcon:mr,symbolSDF:gr,symbolTextAndIcon:vr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};br.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&&c>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}_r.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m){var g,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&&p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(g={},g[v.LINES]=2,g[v.TRIANGLES]=3,g[v.LINE_STRIP]=1,g)[e],b=0,_=u.get();b<_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new br)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,m),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var Tr=function(e,r,n,i){var a=r.style.light,o=a.properties.get("position"),s=[o.x,o.y,o.z],l=t.create$1();"viewport"===a.properties.get("anchor")&&t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},kr=function(e,r,n,i,a,o,s){return t.extend(Tr(e,r,n,i),wr(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Ar=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(Ar(e),wr(n,r,i))},Sr=function(t,e){return{u_matrix:t,u_world:e}},Er=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Lr=function(e,r,n,i){var a,o,s=e.transform;if("map"===i.paint.get("circle-pitch-alignment")){var l=pe(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=pe(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Pr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&&(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Or=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:pe(e,1,r),u_intensity:n}};function Dr(e,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new t.MercatorCoordinate(0,i/n).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var Rr=function(e,r,n){var i=e.transform;return{u_matrix:Ur(e,r,n),u_ratio:1/pe(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Fr=function(e,r,n){return t.extend(Rr(e,r,n),{u_image:0})},Br=function(e,r,n,i){var a=e.transform,o=jr(r,a);return{u_matrix:Ur(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/pe(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Nr=function(e,r,n,i,a){var o=e.transform,s=e.lineAtlas,l=jr(r,o),c="round"===n.layout.get("line-cap"),u=s.getDash(i.from,c),f=s.getDash(i.to,c),h=u.width*a.fromScale,p=f.width*a.toScale;return t.extend(Rr(e,r,n),{u_patternscale_a:[l/h,-u.height/2],u_patternscale_b:[l/p,-f.height/2],u_sdfgamma:s.width/(256*Math.min(h,p)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:f.y,u_mix:a.t})};function jr(t,e){return 1/pe(t,1,e.tileZoom)}function Ur(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}var Vr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(o=i.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get("raster-contrast"),a>0?1/(1-a):1+a),u_spin_weights:Hr(i.paint.get("raster-hue-rotate"))};var a,o};function Hr(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var qr,Gr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Yr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(Gr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Wr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Yr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Xr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Zr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/pe(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f>>16,h>>16],u_pixel_coord_lower:[65535&f,65535&h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Jr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Kr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram("collisionBox"),f=[],h=0,p=0,d=0;d0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&&u.draw(l,c.LINES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,g),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&&f.length){var T=e.useProgram("collisionCircle"),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var A=0,M=0,S=f;M=0&&(m[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ue(v.numGlyphs,p)}if(f){d.clear();for(var C=e.icon.placedSymbolArray,P=0;P0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)>Math.abs(e.tileID.overscaledZ-f),p=h&&e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var un=new t.Color(1,0,0,1),fn=new t.Color(0,1,0,1),hn=new t.Color(0,0,1,1),pn=new t.Color(1,0,1,1),dn=new t.Color(0,1,1,1);function mn(t){var e=t.transform.padding;gn(t,t.transform.height-(e.top||0),3,un),gn(t,e.bottom||0,3,fn),vn(t,e.left||0,3,hn),vn(t,t.transform.width-(e.right||0),3,pn);var r=t.transform.centerPoint;!function(t,e,r,n){yn(t,e-1,r-10,2,20,n),yn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,dn)}function gn(t,e,r,n){yn(t,0,e+r/2,t.transform.width,r,n)}function vn(t,e,r,n){yn(t,e-r/2,0,r,t.transform.height,n)}function yn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function xn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram("debug"),l=At.disabled,c=Mt.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=f&&f.byteLength||0,p=Math.floor(h/1024),d=r.getTile(n).tileSize,m=512/Math.min(d,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(g+=" => "+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+" "+p+"kb"),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,m),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var bn={symbol:function(e,r,n,i,a){if("translucent"===e.renderPass){var o=Mt.disabled,s=e.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(e,r,n,i,a,o,s){for(var l=r.transform,c="map"===a,u="map"===o,f=0,h=e;f256&&this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(At.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var a=0,o=e;a256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Mt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Mt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();for(var o={},s=0;s=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=u[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?e.pop():null},_n.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},_n.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new _r(this.context,xr[t],e,Jr[t],this._showOverdrawInspector)),this.cache[r]},_n.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},_n.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},_n.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},_n.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var wn=function(t,e){this.points=t,this.planes=e};wn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new wn(a,o)};var Tn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};Tn.prototype.quadrant=function(e){for(var r=[e%2==0,e<2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a=0;if(0===o)return 0;o!==r.length&&(n=!1)}if(n)return 2;for(var l=0;l<3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;fthis.max[l]-this.min[l])return 0}return 1};var kn=function(t,e,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=r,this.right=n};kn.prototype.interpolate=function(e,r,n){return null!=r.top&&null!=e.top&&(this.top=t.number(e.top,r.top,n)),null!=r.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&&null!=e.left&&(this.left=t.number(e.left,r.left,n)),null!=r.right&&null!=e.right&&(this.right=t.number(e.right,r.right,n)),this},kn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},kn.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},kn.prototype.clone=function(){return new kn(this.top,this.bottom,this.left,this.right)},kn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var An=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new kn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Mn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};An.prototype.clone=function(){var t=new An(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Mn.minZoom.get=function(){return this._minZoom},Mn.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Mn.maxZoom.get=function(){return this._maxZoom},Mn.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Mn.minPitch.get=function(){return this._minPitch},Mn.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Mn.maxPitch.get=function(){return this._maxPitch},Mn.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Mn.renderWorldCopies.get=function(){return this._renderWorldCopies},Mn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Mn.worldSize.get=function(){return this.tileSize*this.scale},Mn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Mn.size.get=function(){return new t.Point(this.width,this.height)},Mn.bearing.get=function(){return-this.angle/Math.PI*180},Mn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Mn.pitch.get=function(){return this._pitch/Math.PI*180},Mn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Mn.fov.get=function(){return this._fov/Math.PI*180},Mn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Mn.zoom.get=function(){return this._zoom},Mn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Mn.center.get=function(){return this._center},Mn.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Mn.padding.get=function(){return this._edgeInsets.toJSON()},Mn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Mn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},An.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},An.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},An.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},An.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c<=l+1;c++)0!==c&&r.push(new t.UnwrappedTileID(c,e));return r},An.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&re.maxzoom&&(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=wn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=r);var c=function(t){return{aabb:new Tn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d<=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length>0;){var m=u.pop(),g=m.x,v=m.y,y=m.fullyVisible;if(!y){var x=m.aabb.intersects(s);if(0===x)continue;y=2===x}var b=m.aabb.distanceX(o),_=m.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_)),T=3+(1<T&&m.zoom>=l)f.push({tileID:new t.OverscaledTileID(m.zoom===h?p:m.zoom,m.wrap,m.zoom,g,v),distanceSq:t.sqrLen([o[0]-.5-g,o[1]-.5-v])});else for(var k=0;k<4;k++){var A=(g<<1)+k%2,M=(v<<1)+(k>>1);u.push({aabb:m.aabb.quadrant(k),zoom:m.zoom+1,x:A,y:M,wrap:m.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},An.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Mn.unmodified.get=function(){return this._unmodified},An.prototype.zoomScale=function(t){return Math.pow(2,t)},An.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},An.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},An.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Mn.point.get=function(){return this.project(this.center)},An.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},An.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},An.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},An.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},An.prototype.coordinateLocation=function(t){return t.toLngLat()},An.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[0]/i,s=n[0]/a,l=r[1]/i,c=n[1]/a,u=r[2]/i,f=n[2]/a,h=u===f?0:(0-u)/(f-u);return new t.MercatorCoordinate(t.number(o,s,h)/this.worldSize,t.number(l,c,h)/this.worldSize)},An.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},An.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},An.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},An.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},An.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},An.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},An.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-ao&&(i=o-g)}if(this.lngRange){var v=p.x,y=c.x/2;v-yl&&(n=l-y)}void 0===n&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},An.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,f=new Float64Array(16);t.perspective(f,this._fov,this.width/this.height,u,c),f[8]=2*-r.x/this.width,f[9]=2*r.y/this.height,t.scale(f,f,[1,-1,1]),t.translate(f,f,[0,0,-this.cameraToCenterDistance]),t.rotateX(f,f,this._pitch),t.rotateZ(f,f,this.angle),t.translate(f,f,[-s,-l,0]),this.mercatorMatrix=t.scale([],f,[this.worldSize,this.worldSize,this.worldSize]),t.scale(f,f,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=f,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),m=Math.sin(this.angle),g=s-Math.round(s)+d*h+m*p,v=l-Math.round(l)+d*p+m*h,y=new Float64Array(f);if(t.translate(y,y,[g>.5?g-1:g,v>.5?v-1:v,0]),this.alignedProjMatrix=y,f=t.create(),t.scale(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create(),t.scale(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(f=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=f,this._posMatrixCache={},this._alignedPosMatrixCache={}}},An.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},An.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},An.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,"",e)}catch(t){}};var En={linearity:.3,easing:t.bezier(0,0,.3,1)},Ln=t.extend({deceleration:2500,maxSpeed:1400},En),Cn=t.extend({deceleration:20,maxSpeed:1400},En),Pn=t.extend({deceleration:1e3,maxSpeed:360},En),In=t.extend({deceleration:1e3,maxSpeed:90},En),On=function(t){this._map=t,this.clear()};function zn(t,e){(!t.duration||t.duration0&&r-e[0].time>160;)e.shift()},On.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n=this._clickTolerance||this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.dblclick=function(t){return this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseover=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.mouseout=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.touchstart=function(t){return this._firePreventable(new Fn(t.type,this._map,t))},Nn.prototype.touchmove=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchend=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchcancel=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nn.prototype.isEnabled=function(){return!0},Nn.prototype.isActive=function(){return!1},Nn.prototype.enable=function(){},Nn.prototype.disable=function(){};var jn=function(t){this._map=t};jn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},jn.prototype.mousemove=function(t){this._map.fire(new Rn(t.type,this._map,t))},jn.prototype.mousedown=function(){this._delayContextMenu=!0},jn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},jn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Rn(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},jn.prototype.isEnabled=function(){return!0},jn.prototype.isActive=function(){return!1},jn.prototype.enable=function(){},jn.prototype.disable=function(){};var Un=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Vn(t,e){for(var r={},n=0;nthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n30)&&(this.aborted=!0)}}},Hn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){var n=!this.aborted&&this.centroid;if(this.reset(),n)return n}};var qn=function(t){this.singleTap=new Hn(t),this.numTaps=t.numTaps,this.reset()};qn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},qn.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},qn.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},qn.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(n)<30;if(i&&a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Gn=function(){this._zoomIn=new qn({numTouches:1,numTaps:2}),this._zoomOut=new qn({numTouches:2,numTaps:1}),this.reset()};Gn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Gn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Gn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Gn.prototype.touchcancel=function(){this.reset()},Gn.prototype.enable=function(){this._enabled=!0},Gn.prototype.disable=function(){this._enabled=!1,this.reset()},Gn.prototype.isEnabled=function(){return this._enabled},Gn.prototype.isActive=function(){return this._active};var Yn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Yn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yn.prototype._correctButton=function(t,e){return!1},Yn.prototype._move=function(t,e){return{}},Yn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}},Yn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&&(t.preventDefault(),this._moved||!(e.dist(r)0&&(this._active=!0);var i=Vn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&&(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(sMath.abs(t.x)}var ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid){this._lastPoints=t,this._active=!0;return{pitchDelta:-.5*((n.y+i.y)/2)}}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()>=2,i=e.mag()>=2;if(n||i){if(!n||!i)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;var a=t.y>0==e.y>0;return ni(t)&&ni(e)&&a}},e}(Kn),ai={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ai;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function si(t){return t*(2-t)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:si,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active};var li=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};li.prototype.setZoomRate=function(t){this._defaultZoomRate=t},li.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},li.prototype.isEnabled=function(){return!!this._enabled},li.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},li.prototype.isZooming=function(){return!!this._zooming},li.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},li.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},li.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%4.000244140625==0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},li.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},li.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},li.prototype.renderFrame=function(){return this._onScrollFrame()},li.prototype._onScrollFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var a="number"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),"wheel"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s="number"==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if("wheel"===this._type&&l&&c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f<1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},li.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},li.prototype.reset=function(){this._active=!1};var ci=function(t,e){this._clickZoom=t,this._tapZoom=e};ci.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ci.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ci.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ci.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.prototype.isActive=function(){return this._active};var fi=function(){this._tap=new qn({numTouches:1,numTaps:1}),this.reset()};fi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},fi.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},fi.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},fi.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(t,e,r)&&(this._tapTime=t.timeStamp)},fi.prototype.touchcancel=function(){this.reset()},fi.prototype.enable=function(){this._enabled=!0},fi.prototype.disable=function(){this._enabled=!1,this.reset()},fi.prototype.isEnabled=function(){return this._enabled},fi.prototype.isActive=function(){return this._active};var hi=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var pi=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};pi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},pi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},pi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},pi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t.Event);function vi(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var yi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new On(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!1}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var a=0,o=this._listeners;aa?Math.min(2,_):Math.max(.5,_),w=Math.pow(g,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(m));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&&(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!n.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new t.Event("pitchstart",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),a&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u="zoom"in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f="bearing"in e?this._normalizeBearing(e.bearing,s):s,h="pitch"in e?+e.pitch:l,p="padding"in e?e.padding:a.padding,d=a.zoomScale(u-o),m=t.Point.convert(e.offset),g=a.centerPoint.add(m),v=a.pointLocation(g),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if("minZoom"in e){var A=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);_=Math.sqrt(M/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function L(t){return(Math.exp(t)-Math.exp(-t))/2}function C(t){return(Math.exp(t)+Math.exp(-t))/2}var P=E(0),I=function(t){return C(P)/C(P+_*t)},O=function(t){return w*((C(P)*(L(e=P+_*t)/C(e))-L(P))/S)/k;var e},z=(E(1)-P)/_;if(Math.abs(k)<1e-6||!isFinite(z)){if(Math.abs(w-T)<1e-6)return this.easeTo(e,r);var D=Te.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*z,d=1/I(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&&(a.bearing=t.number(s,f,e)),n._pitching&&(a.pitch=t.number(l,h,e)),n._padding&&(a.interpolatePadding(c,p,e),g=a.centerPoint.add(m));var v=1===e?y:a.unproject(x.add(b.mult(O(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,g),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&&n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)180?-360:r<-180?360:0}},r}(t.Evented),bi=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&&(t+=e.key+"="+e.value+(n=0)return!1;return!0}))).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var _i=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=r.create("div","mapboxgl-ctrl");var e=r.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_i.prototype.getDefaultPosition=function(){return"bottom-left"},_i.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t){if(t[e].getSource().mapbox_logo)return!0}return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var wi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;re.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new An(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Ti,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Ai))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return r._update(!1)})),this.on("moveend",(function(){return r._update(!1)})),this.on("zoom",(function(){return r._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1)),this.handlers=new yi(this,e);var a="string"==typeof e.hash&&e.hash||void 0;this._hash=e.hash&&new Sn(a).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on("style.load",(function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)})),this.on("data",(function(e){r._update("style"===e.dataType),r.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){r.fire(new t.Event(e.dataType+"dataloading",e))}))}n&&(i.__proto__=n),i.prototype=Object.create(n&&n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&&e.getDefaultPosition&&(r=e.getDefaultPosition()),void 0===r&&(r="top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(e);return r>-1&&this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),a&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if("mouseenter"===t||"mouseover"===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Rn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if("mouseleave"===t||"mouseout"===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&&(o=!1,r.call(i,new Rn(t,i,n.originalEvent)))},mouseout:function(e){o&&(o=!1,r.call(i,new Rn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&&(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;if(void 0===r)return n.prototype.off.call(this,t,e);return this._delegatedListeners&&this._delegatedListeners[t]&&function(n){for(var a=n[t],o=0;o180;){var s=n.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=n.width&&s.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e}Ii.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),r.disableDrag()},Ii.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&&n.bearingDelta&&r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&r.setPitch(r.getPitch()+i.pitchDelta)}},Ii.prototype.off=function(){var t=this.element;r.removeEventListener(t,"mousedown",this.mousedown),r.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(t,"touchmove",this.touchmove),r.removeEventListener(t,"touchend",this.touchend),r.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Ii.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,"mousemove",this.mousemove),r.removeEventListener(t.window,"mouseup",this.mouseup)},Ii.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,"mousemove",this.mousemove),r.addEventListener(t.window,"mouseup",this.mouseup)},Ii.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ii.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Ii.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ii.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ii.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)e.getEast()||r.latitudee.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},n.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&ji)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var a=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Fi(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Fi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){var r=e.originalEvent&&"resize"===e.originalEvent.type;e.geolocateSource||"ACTIVE_LOCK"!==n._watchState||r||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new t.Event("trackuserlocationend")))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ni--,ji=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Ni>1?(e={maximumAge:6e5,timeout:0},ji=!0):(e=this.options.positionOptions,ji=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},n}(t.Evented),Vi={maxWidth:100,unit:"metric"},Hi=function(e){this.options=t.extend({},Vi,e),t.bindAll(["_onMove","setUnit"],this)};function qi(t,e,r){var n=r&&r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&&"imperial"===r.unit){var l=3.2808*s;if(l>5280)Gi(e,n,l/5280,t._getUIString("ScaleControl.Miles"));else Gi(e,n,l,t._getUIString("ScaleControl.Feet"))}else if(r&&"nautical"===r.unit){Gi(e,n,s/1852,t._getUIString("ScaleControl.NauticalMiles"))}else s>=1e3?Gi(e,n,s/1e3,t._getUIString("ScaleControl.Kilometers")):Gi(e,n,s,t._getUIString("ScaleControl.Meters"))}function Gi(t,e,r,n){var i,a,o,s=(i=r,a=Math.pow(10,(""+Math.floor(i)).length-1),o=(o=i/a)>=10?10:o>=5?5:o>=3?3:o>=2?2:o>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o),a*o),l=s/r;t.style.width=e*l+"px",t.innerHTML=s+" "+n}Hi.prototype.getDefaultPosition=function(){return"bottom-left"},Hi.prototype._onMove=function(){qi(this._map,this._container,this.options)},Hi.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Hi.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Hi.prototype.setUnit=function(t){this.options.unit=t,qi(this._map,this._container,this.options)};var Yi=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Yi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Yi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Yi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Yi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Yi.prototype._isFullscreen=function(){return this._fullscreen},Yi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Yi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Wi={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Xi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Wi),r),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&&r.remove(this._content),this._content=r.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this,i=this._lngLat||this._trackPointer;if(this._map&&i&&this._content&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var a=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),o=this.options.anchor,s=function e(r){if(r){if("number"==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),"top-left":new t.Point(n,n),"top-right":new t.Point(-n,n),bottom:new t.Point(0,-r),"bottom-left":new t.Point(n,-n),"bottom-right":new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),"top-left":t.Point.convert(r["top-left"]||[0,0]),"top-right":t.Point.convert(r["top-right"]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),"bottom-left":t.Point.convert(r["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(r["bottom-right"]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var l,c=this._container.offsetWidth,u=this._container.offsetHeight;l=a.y+s.bottom.ythis._map.transform.height-u?["bottom"]:[],a.xthis._map.transform.width-c/2&&l.push("right"),o=0===l.length?"bottom":l.join("-")}var f=a.add(s[o]).round();r.setTransform(this._container,zi[o]+" translate("+f.x+"px,"+f.y+"px)"),Di(this._container,o,"popup")}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);var Zi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ei,NavigationControl:Pi,GeolocateControl:Ui,AttributionControl:bi,ScaleControl:Hi,FullscreenControl:Yi,Popup:Xi,Marker:Fi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(zt)},clearPrewarmedResources:function(){var t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(zt),Rt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return Zi})),r}))},{}],235:[function(t,e,r){"use strict";e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],236:[function(t,e,r){"use strict";e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return"altKey"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),"shiftKey"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),"ctrlKey"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),"metaKey"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);"buttons"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function h(t){l(t)&&e&&e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function m(t){c(r&~n.buttons(t),t)}function g(){s||(s=!0,t.addEventListener("mousemove",p),t.addEventListener("mousedown",d),t.addEventListener("mouseup",m),t.addEventListener("mouseleave",u),t.addEventListener("mouseenter",u),t.addEventListener("mouseout",u),t.addEventListener("mouseover",u),t.addEventListener("blur",f),t.addEventListener("keyup",h),t.addEventListener("keydown",h),t.addEventListener("keypress",h),t!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",h),window.addEventListener("keydown",h),window.addEventListener("keypress",h)))}g();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?g():function(){if(!s)return;s=!1,t.removeEventListener("mousemove",p),t.removeEventListener("mousedown",d),t.removeEventListener("mouseup",m),t.removeEventListener("mouseleave",u),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseout",u),t.removeEventListener("mouseover",u),t.removeEventListener("blur",f),t.removeEventListener("keyup",h),t.removeEventListener("keydown",h),t.removeEventListener("keypress",h),t!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",h),window.removeEventListener("keydown",h),window.removeEventListener("keypress",h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t("mouse-event")},{"mouse-event":238}],237:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],238:[function(t,e,r){"use strict";function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if("object"==typeof t){if("buttons"in t)return t.buttons;if("which"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<=0)return 1<0&&o(l,r))}catch(t){f.call(new p(r),t)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(l,e))}function h(t,e,r,n){for(var i=0;i1&&(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*g*g-x*m*m)/(y*g*g+x*m*m)));b==1/0&&(b=1);var _=b*r*g/a+(t+f)/2,w=b*-a*m/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t<_?n-T:T)<0&&(T=2*n+T),(k=f<_?n-k:k)<0&&(k=2*n+k),u&&T>k&&(T-=2*n),!u&&k>T&&(k-=2*n)}if(Math.abs(k-T)>i){var A=k,M=f,S=h;k=T+i*(u&&k>T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,M,S,[k,A,_,w])}var L=Math.tan((k-T)/4),C=4/3*r*L,P=4/3*a*L,I=[2*t-(t+C*Math.sin(T)),2*e-(e-P*Math.cos(T)),f+C*Math.sin(k),h-P*Math.cos(k),f,h];if(p)return I;E&&(I=I.concat(E));for(var O=0;O7&&(r.push(v.splice(0,7)),v.unshift("C"));break;case"S":var x=p,b=d;"C"!=e&&"S"!=e||(x+=x-n,b+=b-i),v=["C",x,b,v[1],v[2],v[3],v[4]];break;case"T":"Q"==e||"T"==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case"Q":f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case"L":v=a(p,d,v[1],v[2]);break;case"H":v=a(p,d,v[1],d);break;case"V":v=a(p,d,p,v[1]);break;case"Z":v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length>4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],242:[function(t,e,r){ -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ -"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c1e4)throw Error("References have circular dependency. Please, check them.");r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp("(\\"+i+r+"\\"+i+")","g"),t[0]+"$1"+t[1])})),e}))}));var o=new RegExp("\\"+i+"([0-9]+)\\"+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++>1e4)throw Error("Circular references in parenthesis");a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&&e.flat){var r,n=e&&e.escape||"___",i=t[0];if(!i)return"";for(var a=new RegExp("\\"+n+"([0-9]+)\\"+n),o=0;i!=r;){if(o++>1e4)throw Error("Circular references in "+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&&(r=r.reduce(t,"")),e+r}),"");function s(e,r){if(null==t[r])throw Error("Reference "+r+"is undefined");return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],244:[function(t,e,r){"use strict";var n=t("pick-by-alias");e.exports=function(t){var e;arguments.length>1&&(t=arguments);"string"==typeof t?t=t.split(/\s/).map(parseFloat):"number"==typeof t&&(t=[t]);t.length&&"number"==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(t=n(t,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{"pick-by-alias":248}],245:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),"m"==o&&i.length>2&&(e.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])t!=o-i>t&&(a-c)*(i-u)/(o-u)+c-n>t&&(s=!s),a=c,o=u}return s}};return e}},{}],252:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&&r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&&p)return n;var d=!h&&e.pointBetween(o,c,u),m=!p&&e.pointBetween(s,c,u);if(h)return m?l(n,s):l(t,u),n;d&&(p||(m?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&&(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&&l(t,u)),0===f.alongB&&(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&&l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&&r.vert(h.pt[0]),h.isStart){r&&r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,m=p.after?p.after.ev:null;function g(){if(d){var t=u(h,d);if(t)return t}return!!m&&u(h,m)}r&&r.tempStatus(h.seg,!!d&&d.seg,!!m&&m.seg);var v,y=g();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&&r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&&r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=m?m.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=m?h.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&&r.status(h.seg,!!d&&d.seg,!!m&&m.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(b.prev)&&s.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&&r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,t)}},a.prototype.read_uint16=function(t){var e=this.input;if(t+2>e.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},a.prototype.read_uint32=function(t){var e=this.input;if(t+4>e.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},a.prototype.is_subifd_link=function(t,e){return 0===t&&34665===e||0===t&&34853===e||34665===t&&40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));case 5:case 10:case 11:case 12:case 7:default:return null}},a.prototype.scan_ifd=function(t,e,r){var a=this.read_uint16(e);e+=2;for(var o=0;othis.input.length)throw n("unexpected EOF","EBADDATA");for(var d=[],m=h,g=0;g0&&(this.ifds_to_read.push({id:s,offset:d[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:c,entry_offset:e+this.start,data_length:f,data_offset:h+this.start,value:d,is_subifd_link:p}))return void(this.aborted=!0);e+=12}0===t&&this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=a,e.exports.get_orientation=function(t){var e=0;try{return new a(t,0,t.length).each((function(t){if(0===t.ifd&&274===t.tag&&Array.isArray(t.value))return e=t.value[0],!1})),e}catch(t){return-1}}},{}],259:[function(t,e,r){"use strict";var n=t("./common").readUInt16BE,i=t("./common").readUInt32BE;function a(t,e){if(t.length<4+e)return null;var r=i(t,e);return t.length>4&15,i=15&t[4],a=t[5]>>4&15,o=n(t,6),l=8,c=0;ce.width||t.width===e.width&&t.height>e.height?t:e})),i=r.reduce((function(t,e){return t.height>e.height||t.height===e.height&&t.width>e.width?t:e})),n.width>i.height||n.width===i.height&&n.height>i.width?n:i),s=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===t.type&&(s=0===t.value?r[s]:e[s=e[s=r[s]]]),"irot"===t.type)for(var n=0;n1&&(h.variants=f.variants),f.orientation&&(h.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=t.length){var p=a(t,f.exif_location.offset),d=t.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),m=s.get_orientation(d);m>0&&(h.orientation=m)}return h}}}}}}},{"../common":257,"../exif_utils":258,"../miaf_utils":259}],261:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=n("BM");e.exports=function(t){if(!(t.length<26)&&i(t,0,o))return{width:a(t,18),height:a(t,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},{"../common":257}],262:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=n("GIF87a"),s=n("GIF89a");e.exports=function(t){if(!(t.length<10)&&(i(t,0,o)||i(t,0,s)))return{width:a(t,6),height:a(t,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},{"../common":257}],263:[function(t,e,r){"use strict";var n=t("../common").readUInt16LE;e.exports=function(t){var e=n(t,0),r=n(t,2),i=n(t,4);if(0===e&&1===r&&i){for(var a=[],o={width:0,height:0},s=0;so.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:a,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},{"../common":257}],264:[function(t,e,r){"use strict";var n=t("../common").readUInt16BE,i=t("../common").str2arr,a=t("../common").sliceEq,o=t("../exif_utils"),s=i("Exif\0\0");e.exports=function(t){if(!(t.length<2)&&255===t[0]&&216===t[1]&&255===t[2])for(var e=2;;){for(;;){if(t.length-e<2)return;if(255===t[e++])break}for(var r,i,l=t[e++];255===l;)l=t[e++];if(208<=l&&l<=217||1===l)r=0;else{if(!(192<=l&&l<=254))return;if(t.length-e<2)return;r=n(t,e)-2,e+=2}if(217===l||218===l)return;if(225===l&&r>=10&&a(t,e,s)&&(i=o.get_orientation(t.slice(e+6,e+r))),r>=5&&192<=l&&l<=207&&196!==l&&200!==l&&204!==l){if(t.length-e0&&(c.orientation=i),c}e+=r}}},{"../common":257,"../exif_utils":258}],265:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt32BE,o=n("\x89PNG\r\n\x1a\n"),s=n("IHDR");e.exports=function(t){if(!(t.length<24)&&i(t,0,o)&&i(t,12,s))return{width:a(t,16),height:a(t,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},{"../common":257}],266:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt32BE,o=n("8BPS\0\x01");e.exports=function(t){if(!(t.length<22)&&i(t,0,o))return{width:a(t,18),height:a(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},{"../common":257}],267:[function(t,e,r){"use strict";function n(t){return"number"==typeof t&&isFinite(t)&&t>0}var i=/<[-_.:a-zA-Z0-9][^>]*>/,a=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,l=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(t){return c.test(t)?t.match(c)[0]:"px"}e.exports=function(t){if(function(t){var e,r=0,n=t.length;for(239===t[0]&&187===t[1]&&191===t[2]&&(r=3);r>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function h(t,e){return{width:1+(t[e+6]<<16|t[e+5]<<8|t[e+4]),height:1+(t[e+9]<t.length)){for(;e+8=10?r=r||u(t,e+8):"VP8L"===p&&d>=9?r=r||f(t,e+8):"VP8X"===p&&d>=10?r=r||h(t,e+8):"EXIF"===p&&(n=s.get_orientation(t.slice(e+8,e+8+d)),e=1/0),e+=8+d}else e++;if(r)return n>0&&(r.orientation=n),r}}}},{"../common":257,"../exif_utils":258}],270:[function(t,e,r){"use strict";e.exports={avif:t("./parse_sync/avif"),bmp:t("./parse_sync/bmp"),gif:t("./parse_sync/gif"),ico:t("./parse_sync/ico"),jpeg:t("./parse_sync/jpeg"),png:t("./parse_sync/png"),psd:t("./parse_sync/psd"),svg:t("./parse_sync/svg"),tiff:t("./parse_sync/tiff"),webp:t("./parse_sync/webp")}},{"./parse_sync/avif":260,"./parse_sync/bmp":261,"./parse_sync/gif":262,"./parse_sync/ico":263,"./parse_sync/jpeg":264,"./parse_sync/png":265,"./parse_sync/psd":266,"./parse_sync/svg":267,"./parse_sync/tiff":268,"./parse_sync/webp":269}],271:[function(t,e,r){"use strict";var n=t("./lib/parsers_sync");e.exports=function(t){return function(t){for(var e=Object.keys(n),r=0;r1)for(var r=1;r1&&(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&&t.after(t))}function T(t){if(t){null!=t.length?"number"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?("function"==typeof t?t={after:t}:"number"==typeof t[0]&&(t={positions:t}),t=o(t,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,"float64"),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t="transparent"),!Array.isArray(t)||"number"==typeof t[0]){var n=t;t=Array(r);for(var a=0;a 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n"]),frag:o(["precision highp float;\n#define GLSLIFY 1\n\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:"triangle",elements:function(t,e){return e.triangles},offset:0,vert:o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n"]),frag:o(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n"]),uniforms:{scale:t.prop("scale"),color:t.prop("fill"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),translate:t.prop("translate"),opacity:t.prop("opacity"),pixelRatio:t.context("pixelRatio"),id:t.prop("id"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&&(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&&Array.isArray(e))return(n=t).draw.apply(n,e);"number"==typeof e&&(e=t.passes[e]),e&&e.count>1&&e.opacity&&(t.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&t.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>v.precisionThreshold||e.scale[1]*e.viewport.height>v.precisionThreshold||"rect"===e.join||!e.join&&(e.thickness<=2||e.count>=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?"number"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if("number"==typeof t[0]&&(t={positions:t}),t=s(t,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&&(d.thickness=parseFloat(t.thickness)),null!=t.opacity&&(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&&(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&&(d.overlay=!!t.overlay,f=D}));(I=I.slice(0,R)).push(D)}for(var F=function(t){var e=k.slice(2*z,2*I[t]).concat(D?k.slice(2*D):[]),r=(d.hole||[]).map((function(e){return e-D+(I[t]-z)})),n=c(e,r);n=n.map((function(e){return e+z+(e+zt.length)&&(e=t.length);for(var r=0,n=new Array(e);r 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),l.vert=h(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),g&&(l.frag=l.frag.replace("smoothstep","smoothStep"),s.frag=s.frag.replace("smoothstep","smoothStep")),this.drawCircle=t(l)}b.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;nn)?e.tree=u(t,{bounds:f}):n&&n.length&&(e.tree=n),e.tree){var h={primitive:"points",usage:"static",data:e.tree,type:"uint32"};e.elements?e.elements(h):e.elements=o.elements(h)}var p=v.float32(t);return i({data:p,usage:"dynamic"}),a({data:v.fract32(t,p),usage:"dynamic"}),s({data:new Uint8Array(c),type:"uint8",usage:"stream"}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&&t.destroy&&t.destroy()})),i.length=0,e&&"number"!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n>1)for(var i=.25*(t=t.slice()).length%e;i2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length>2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if("number"==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&&(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;nk))&&(s.lower||!(T>>=e))<<3,(e|=r=(15<(t>>>=r))<<2)|(r=(3<(t>>>=r))<<1)|t>>>r>>1}function s(){function t(t){t:{for(var e=16;268435456>=e;e*=16)if(t<=e){t=e;break t}t=0}return 0<(e=r[o(t)>>2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)>>2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&&"object"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||J(t.data))}function c(t,e,r,n,i,a){for(var o=0;o(i=s)&&(i=n.buffer.byteLength,5123===f?i>>=1:5125===f&&(i>>=2)),n.vertCount=i,i=o,0>o&&(i=4,1===(o=n.buffer.dimension)&&(i=0),2===o&&(i=1),3===o&&(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&&(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if("number"==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||J(t)||l(t)?e=t:("data"in t&&(e=t.data),"usage"in t&&(r=et[t.usage]),"primitive"in t&&(n=at[t.primitive]),"count"in t&&(i=0|t.count),"type"in t&&(h=u[t.type]),"length"in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&&5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType="elements",s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){K(s).forEach(o)}}}function m(t){for(var e=X.allocType(5123,t.length),r=0;r>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;e[r]=-24>i?n:-14>i?n+(a+1024>>-14-i):15>=i,r.height>>=i,p(r,n[i]),t.mipmask|=1<e;++e)t.images[e]=null;return t}function C(t){for(var e=t.images,r=0;re){for(var r=0;r=--this.refCount&&F(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;P.call(r);var a=L();return"number"==typeof t?M(a,0|t,"number"==typeof e?0|e:0|t):t?(I(r,t),S(a,t)):M(a,1,1),r.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),O(r,3553),R(),C(a),o.profile&&(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new z(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width>>a)-e,o.height=o.height||(i.height>>a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&&s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask>>l;++l){var c=a>>l,u=s>>l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&&(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType="texture2d",n._texture=i,o.profile&&(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(P.call(l),s=0;6>s;++s)m[s]=L();if("number"!=typeof t&&t){if("object"==typeof t)if(e)S(m[0],t),S(m[1],e),S(m[2],r),S(m[3],n),S(m[4],i),S(m[5],a);else if(I(l,t),u(h,t),"faces"in t)for(t=t.faces,s=0;6>s;++s)c(m[s],h),S(m[s],t[s]);else for(s=0;6>s;++s)S(m[s],t)}else for(t=0|t||1,s=0;6>s;++s)M(m[s],t,t);for(c(h,m[0]),h.mipmask=l.genMipmaps?(m[0].width<<1)-1:m[0].mipmask,h.internalformat=m[0].internalformat,f.width=m[0].width,f.height=m[0].height,D(h),s=0;6>s;++s)E(m[s],34069+s);for(O(l,34067),R(),o.profile&&(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6>s;++s)C(m[s]);return f}var h=new z(34067);yt[h.id]=h,a.cubeCount++;var m=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width>>i)-r,a.height=a.height||(h.height>>i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6>r;++r)for(var n=0;h.mipmask>>n;++n)t.texImage2D(34069+r,n,h.format,e>>n,e>>n,0,h.format,h.type,null);return R(),o.profile&&(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType="textureCube",f._texture=h,o.profile&&(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;er;++r)if(0!=(e.mipmask&1<>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;6>n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);O(e.texInfo,e.target)}))},refresh:function(){for(var e=0;ei;++i){for(c=0;ct;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:"framebufferCube",destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){K(k).forEach(g)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,K(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function M(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i,a,o){function s(){this.id=++f,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,h[this.id]=this,this.buffers=[]}var c=r.maxAttributes,u=Array(c);for(r=0;r=h.byteLength?c.subdata(h):(c.destroy(),r.buffers[s]=null)),r.buffers[s]||(c=r.buffers[s]=i.create(u,34962,!1,!0)),f.buffer=i.getBuffer(c),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1,t[s]=1;else i.getBuffer(u)?(f.buffer=i.getBuffer(u),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1):i.getBuffer(u.buffer)?(f.buffer=i.getBuffer(u.buffer),f.size=0|(+u.size||f.buffer.dimension),f.normalized=!!u.normalized||!1,f.type="type"in u?tt[u.type]:f.buffer.dtype,f.offset=0|(u.offset||0),f.stride=0|(u.stride||0),f.divisor=0|(u.divisor||0),f.state=1):"x"in u&&(f.x=+u.x||0,f.y=+u.y||0,f.z=+u.z||0,f.w=+u.w||0,f.state=2)}for(c=0;ct&&(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);K(c).forEach(e),c={},K(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(e,n,i,a){var o=f[n];o||(o=f[n]={});var p=o[e];if(p&&(p.refCount++,!a))return p;var d=new s(n,e);return r.shaderCount++,l(d,i,a),p||(o[e]=d),h.push(d),H(d,{destroy:function(){if(d.refCount--,0>=d.refCount){t.deleteProgram(d.program);var e=h.indexOf(d);h.splice(e,1),r.shaderCount--}0>=o[d.vertId].refCount&&(t.deleteShader(u[d.vertId]),delete u[d.vertId],delete f[d.fragId][d.vertId]),Object.keys(f[d.fragId]).length||(t.deleteShader(c[d.fragId]),delete c[d.fragId],delete f[d.fragId])}})},restore:function(){c={},u={};for(var t=0;t>>e|t<<32-e}function P(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function I(t){return Array.prototype.slice.call(t)}function O(t){return I(t).join("")}function z(t){function e(){var t=[],e=[];return H((function(){t.push.apply(t,I(arguments))}),{def:function(){var r="v"+i++;return e.push(r),0>>4&15)+"0123456789abcdef".charAt(15&e);return r}(function(t){for(var e=Array(t.length>>2),r=0;r>5]|=(255&t.charCodeAt(r/8))<<24-r%32;var n,i,a,o,s,l,c,u,f,h,p,d=8*t.length;for(t=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],r=Array(64),e[d>>5]|=128<<24-d%32,e[15+(d+64>>9<<4)]=d,u=0;uf;f++){var m;if(16>f)r[f]=e[f+u];else h=f,p=P(p=C(p=r[f-2],17)^C(p,19)^p>>>10,r[f-7]),m=C(m=r[f-15],7)^C(m,18)^m>>>3,r[h]=P(P(p,m),r[f-16]);h=P(P(P(P(c,h=C(h=o,6)^C(h,11)^C(h,25)),o&s^~o&l),kt[f]),r[f]),p=P(c=C(c=d,2)^C(c,13)^C(c,22),d&n^d&i^n&i),c=l,l=s,s=o,o=P(a,h),a=i,i=n,n=d,d=P(h,p)}t[0]=P(d,t[0]),t[1]=P(n,t[1]),t[2]=P(i,t[2]),t[3]=P(a,t[3]),t[4]=P(o,t[4]),t[5]=P(s,t[5]),t[6]=P(l,t[6]),t[7]=P(c,t[7])}for(e="",r=0;r<32*t.length;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}(function(t){for(var e,r,n="",i=-1;++i=e&&56320<=r&&57343>=r&&(e=65536+((1023&e)<<10)+(1023&r),i++),127>=e?n+=String.fromCharCode(e):2047>=e?n+=String.fromCharCode(192|e>>>6&31,128|63&e):65535>=e?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):2097151>=e&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}(r))),n[e])?n[e].apply(null,o):(r=Function.apply(null,a.concat(r)),n&&(n[e]=r),r.apply(null,o))}}}function D(t){return Array.isArray(t)||J(t)||l(t)}function R(t){return t.sort((function(t,e){return"viewport"===t?-1:"viewport"===e?1:t"+e+"?"+i+".constant["+e+"]:0;"})).join(""),"}}else{","if(",s,"(",i,".buffer)){",u,"=",a,".createStream(",34962,",",i,".buffer);","}else{",u,"=",a,".getBuffer(",i,".buffer);","}",f,'="type" in ',i,"?",o.glTypes,"[",i,".type]:",u,".dtype;",l.normalized,"=!!",i,".normalized;"),n("size"),n("offset"),n("stride"),n("divisor"),r("}}"),r.exit("if(",l.isStream,"){",a,".destroyStream(",u,");","}"),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&&(h[t]=e)}var l=function(t,e){if("string"==typeof(r=t.static).frag&&"string"==typeof r.vert){if(0>1)",s],");")}function e(){r(l,".drawArraysInstancedANGLE(",[d,m,g,s],");")}p&&"null"!==p?y?t():(r("if(",p,"){"),t(),r("}else{"),e(),r("}")):e()}function o(){function t(){r(u+".drawElements("+[d,g,v,m+"<<(("+v+"-5121)>>1)"]+");")}function e(){r(u+".drawArrays("+[d,m,g]+");")}p&&"null"!==p?y?t():(r("if(",p,"){"),t(),r("}else{"),e(),r("}")):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a),h.elementsActive&&a("if("+i+")"+u+".bindBuffer(34963,"+i+".buffer.buffer);")):(i=a.def(),a(i,"=",f,".","elements",";","if(",i,"){",u,".bindBuffer(",34963,",",i,".buffer.buffer);}","else if(",c.vao,".currentVAO){",i,"=",t.shared.elements+".getElements("+c.vao,".currentVAO.elements);",rt?"":"if("+i+")"+u+".bindBuffer(34963,"+i+".buffer.buffer);","}")),i}(),d=i("primitive"),m=i("offset"),g=function(){var i=h.count,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,".","count"),i}();if("number"==typeof g){if(0===g)return}else r("if(",g,"){"),r.exit("}");$&&(s=i("instances"),l=t.instancing);var v=p+".type",y=h.elements&&B(h.elements)&&!h.vaoActive;$&&("number"!=typeof s||0<=s)?"string"==typeof s?(r("if(",s,">0){"),a(),r("}else if(",s,"<0){"),o(),r("}")):a():o()}function q(t,e,r,n,i){return i=(e=_()).proc("body",i),$&&(e.instancing=i.def(e.shared.extensions,".angle_instanced_arrays")),t(e,i,r,n),e.compile().body}function Y(t,e,r,n){P(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,".setVAO(",r.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),O(t,e,r,n.attributes,(function(){return!0}))),U(t,e,r,n.uniforms,(function(){return!0}),!1),V(t,e,e,r)}function W(t,e,r,n){function i(){return!0}t.batchId="a1",P(t,e),O(t,e,r,n.attributes,i),U(t,e,r,n.uniforms,i,!1),V(t,e,e,r)}function X(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}P(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,"for(",s,"=0;",s,"<","a1",";++",s,"){",l,"=","a0","[",s,"];",u,"}",c.exit),r.needsContext&&S(t,u,r.context),r.needsFramebuffer&&E(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&&i(r.profile)&&I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,".setVAO(",r.drawVAO.append(t,u),");"):c(t.shared.vao,".setVAO(",r.drawVAO.append(t,c),");"):c(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(c(t.shared.vao,".setVAO(null);"),O(t,c,r,n.attributes,a),O(t,u,r,n.attributes,i)),U(t,c,r,n.uniforms,a,!1),U(t,u,r,n.uniforms,i,!0),V(t,c,u,r)):(e=t.global.def("{}"),n=r.shader.progVar.append(t,u),l=u.def(n,".id"),c=u.def(e,"[",l,"]"),u(t.shared.gl,".useProgram(",n,".program);","if(!",c,"){",c,"=",e,"[",l,"]=",t.link((function(e){return q(W,t,r,e,2)})),"(",n,");}",c,".call(this,a0[",s,"],",s,");"))}function Z(t,r){function n(e){var n=r.shader[e];n&&(n=n.append(t,i),isNaN(n)?i.set(a.shader,"."+e,n):i.set(a.shader,"."+e,t.link(n,{stable:!0})))}var i=t.proc("scope",3);t.batchId="a2";var a=t.shared,o=a.current;if(S(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),R(Object.keys(r.state)).forEach((function(e){var n=r.state[e],o=n.append(t,i);g(o)?o.forEach((function(r,n){isNaN(r)?i.set(t.next[e],"["+n+"]",r):i.set(t.next[e],"["+n+"]",t.link(r,{stable:!0}))})):B(n)?i.set(a.next,"."+e,t.link(o,{stable:!0})):i.set(a.next,"."+e,o)})),I(t,i,r,!0,!0),["elements","offset","count","instances","primitive"].forEach((function(e){var n=r.draw[e];n&&(n=n.append(t,i),isNaN(n)?i.set(a.draw,"."+e,n):i.set(a.draw,"."+e,t.link(n),{stable:!0}))})),Object.keys(r.uniforms).forEach((function(n){var o=r.uniforms[n].append(t,i);Array.isArray(o)&&(o="["+o.map((function(e){return isNaN(e)?e:t.link(e,{stable:!0})}))+"]"),i.set(a.uniforms,"["+t.link(e.id(n),{stable:!0})+"]",o)})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new K).forEach((function(t){i.set(a,"."+t,n[t])}))})),r.scopeVAO){var s=r.scopeVAO.append(t,i);isNaN(s)?i.set(a.vao,".targetVAO",s):i.set(a.vao,".targetVAO",t.link(s,{stable:!0}))}n("vert"),n("frag"),0=--this.refCount&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if("object"==typeof e&&e?("shape"in e?(n=0|(a=e.shape)[0],a=0|a[1]):("radius"in e&&(n=a=0|e.radius),"width"in e&&(n=0|e.width),"height"in e&&(a=0|e.height)),"format"in e&&(u=s[e.format])):"number"==typeof e?(n=0|e,a="number"==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&&(c.stats.size=bt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&&a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&&(c.stats.size=bt[c.format]*c.width*c.height)),o},o._reglType="renderbuffer",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){K(u).forEach(o)},restore:function(){K(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},wt=[];wt[6408]=4,wt[6407]=3;var Tt=[];Tt[5121]=1,Tt[5126]=4,Tt[36193]=2;var kt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],At=["x","y","z","w"],Mt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),St={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Et={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Lt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ct={cw:2304,ccw:2305},Pt=new F(!1,!1,!1,(function(){}));return function(t){function e(){if(0===K.length)T&&T.update(),et=null;else{et=Y.next(e),f();for(var t=K.length-1;0<=t;--t){var r=K[t];r&&r(I,null,0)}g.flush(),T&&T.update()}}function r(){!et&&0=K.length&&n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=g.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=g.drawingBufferHeight}function f(){I.tick+=1,I.time=m(),u(),q.procs.poll()}function h(){B.refresh(),u(),q.procs.refresh(),T&&T.update()}function m(){return(W()-M)/1e3}if(!(t=i(t)))return null;var g=t.gl,v=g.getContextAttributes();g.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;ie;++e)rt(H({framebuffer:t.framebuffer.faces[e]},t),l);else rt(t,l);else l(0,t)},prop:G.define.bind(null,1),context:G.define.bind(null,2),this:G.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:B.create2D,cube:B.createCube,renderbuffer:N.create,framebuffer:j.create,framebufferCube:j.createCube,vao:R.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case"frame":return c(e);case"lost":r=Q;break;case"restore":r=$;break;case"destroy":r=tt}return r.push(e),{cancel:function(){for(var t=0;t */ -var n=t("buffer"),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:80}],280:[function(t,e,r){e.exports=i;var n=t("events").EventEmitter;function i(){n.call(this)}t("inherits")(i,n),i.Readable=t("readable-stream/lib/_stream_readable.js"),i.Writable=t("readable-stream/lib/_stream_writable.js"),i.Duplex=t("readable-stream/lib/_stream_duplex.js"),i.Transform=t("readable-stream/lib/_stream_transform.js"),i.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),i.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),i.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(u(),0===n.listenerCount(this,"error"))throw t}function u(){r.removeListener("data",i),t.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",c),t.on("error",c),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},{events:181,inherits:226,"readable-stream/lib/_stream_duplex.js":282,"readable-stream/lib/_stream_passthrough.js":283,"readable-stream/lib/_stream_readable.js":284,"readable-stream/lib/_stream_transform.js":285,"readable-stream/lib/_stream_writable.js":286,"readable-stream/lib/internal/streams/end-of-stream.js":290,"readable-stream/lib/internal/streams/pipeline.js":292}],281:[function(t,e,r){"use strict";var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i,o,s;if("string"==typeof e&&(i="not ",e.substr(!o||o<0?0:+o,i.length)===i)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(a(e,"type"));else{var l=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(l," ").concat(n," ").concat(a(e,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],282:[function(t,e,r){(function(r){(function(){"use strict";var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var i=t("./_stream_readable"),a=t("./_stream_writable");t("inherits")(c,i);for(var o=n(a.prototype),s=0;s0)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)o.endEmitted?w(t,new _):S(t,o,e,!0);else if(o.ended)w(t,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?S(t,o,e,!1):P(t,o)):S(t,o,e,!1)}else n||(o.reading=!1,P(t,o));return!o.ended&&(o.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,R(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){c("readable nexttick read 0"),t.read(0)}function D(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),R(t),e.flowing&&!e.reading&&t.read(0)}function R(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(N,e,t))}function N(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function j(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):L(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&B(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&B(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){w(this,new b("_read()"))},A.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var o=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?l:g;function s(e,r){c("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),t.removeListener("close",d),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",h),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function l(){c("onend"),t.end()}i.endEmitted?r.nextTick(o):n.once("end",o),t.on("unpipe",s);var u=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,R(t))}}(n);t.on("drain",u);var f=!1;function h(e){c("ondata");var r=t.write(e);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==j(i.pipes,t))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(e){c("onerror",e),g(),t.removeListener("error",p),0===a(t,"error")&&w(t,e)}function d(){t.removeListener("finish",m),g()}function m(){c("onfinish"),t.removeListener("close",d),g()}function g(){c("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",p),t.once("close",d),t.once("finish",m),t.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?L(this):i.reading||r.nextTick(z,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(O,this),n},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(O,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":281,"./_stream_duplex":282,"./internal/streams/destroy":289,"./internal/streams/state":293,"./internal/streams/stream":294,_process:272,buffer:80,inherits:226,"util-deprecate":325}],287:[function(t,e,r){(function(r){(function(){"use strict";var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=t("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function d(t){var e=t[o];if(null!==e){var r=t[h].read();null!==r&&(t[u]=null,t[o]=null,t[s]=null,e(p(r,!1)))}}function m(t){r.nextTick(d,t)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[l]?n(t[l]):e(p(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),g);e.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[h].read();n?(r[u]=null,r[o]=null,r[s]=null,t(p(n,!1))):(r[o]=t,r[s]=e)},writable:!0}),e));return r[u]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[u]=null,r[o]=null,r[s]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&&(r[u]=null,r[o]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),t.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":290,_process:272}],288:[function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){n||(n=t),t&&o.forEach(c),a||(o.forEach(c),i(n))}))}));return e.reduce(u)}},{"../../../errors":281,"./end-of-stream":290}],293:[function(t,e,r){"use strict";var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}}},{"../../../errors":281}],294:[function(t,e,r){e.exports=t("events").EventEmitter},{events:181}],295:[function(t,e,r){(function(r,n){(function(){var r=t("assert"),i=t("debug")("stream-parser");e.exports=function(t){var e=t&&"function"==typeof t._transform,r=t&&"function"==typeof t._write;if(!e&&!r)throw new Error("must pass a Writable or Transform stream in");i("extending Parser into stream"),t._bytes=o,t._skipBytes=s,e&&(t._passthrough=l);e?t._transform=u:t._write=c};function a(t){i("initializing parser stream"),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=-1,t._parserCallback=null,"function"==typeof t.push&&(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function o(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(isFinite(t)&&t>0,'can only buffer a finite number of bytes > 0, got "'+t+'"'),this._parserInit||a(this),i("buffering %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=0}function s(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(t>0,'can only skip > 0 bytes, got "'+t+'"'),this._parserInit||a(this),i("skipping %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=1}function l(t,e){r(!this._parserCallback,'There is already a "callback" set!'),r(t>0,'can only pass through > 0 bytes, got "'+t+'"'),this._parserInit||a(this),i("passing through %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=2}function c(t,e,r){this._parserInit||a(this),i("write(%o bytes)",t.length),"function"==typeof e&&(r=e),h(this,t,null,r)}function u(t,e,r){this._parserInit||a(this),i("transform(%o bytes)",t.length),"function"!=typeof e&&(e=this._parserOutput),h(this,t,e,r)}function f(t,e,r,a){if(t._parserBytesLeft-=e.length,i("%o bytes left for stream piece",t._parserBytesLeft),0===t._parserState?(t._parserBuffers.push(e),t._parserBuffered+=e.length):2===t._parserState&&r(e),0!==t._parserBytesLeft)return a;var o=t._parserCallback;if(o&&0===t._parserState&&t._parserBuffers.length>1&&(e=n.concat(t._parserBuffers,t._parserBuffered)),0!==t._parserState&&(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=-1,t._parserBuffers.splice(0),o){var s=[];e&&s.push(e),r&&s.push(r);var l=o.length>s.length;l&&s.push(p(a));var c=o.apply(t,s);if(!l||a===c)return a}}var h=p((function t(e,r,n,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return f(e,r,n,i)}:function(){var a=r.slice(0,e._parserBytesLeft);return f(e,a,n,(function(o){return o?i(o):r.length>a.length?function(){return t(e,r.slice(a.length),n,i)}:void 0}))}}));function p(t){return function(){for(var e=t.apply(this,arguments);"function"==typeof e;)e=e();return e}}}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:272,assert:71,buffer:80,debug:296}],296:[function(t,e,r){(function(n){(function(){function i(){var t;try{t=r.storage.debug}catch(t){}return!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG),t}(r=e.exports=t("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+r.humanize(this.diff),!e)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(a=i))})),t.splice(a,0,n)},r.save=function(t){try{null==t?r.storage.removeItem("debug"):r.storage.debug=t}catch(t){}},r.load=i,r.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(i())}).call(this)}).call(this,t("_process"))},{"./debug":297,_process:272}],297:[function(t,e,r){var n;function i(t){function e(){if(e.enabled){var t=e,i=+new Date,a=i-(n||i);t.diff=a,t.prev=n,t.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*a;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(t);if("number"===l&&!1===isNaN(t))return e.long?s(r=t,o,"day")||s(r,a,"hour")||s(r,i,"minute")||s(r,n,"second")||r+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=a)return Math.round(t/a)+"h";if(t>=i)return Math.round(t/i)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},{}],299:[function(t,e,r){"use strict";var n=t("parenthesis");e.exports=function(t,e,r){if(null==t)throw Error("First argument should be a string");if(null==e)throw Error("Separator should be a string or a RegExp");r?("string"==typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=["[]","()","{}","<>",'""',"''","``","\u201c\u201d","\xab\xbb"]:("string"==typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&&(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}r.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(t.lastNeed=i-1),i;if(--n=0)return i>0&&(t.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":279}],301:[function(t,e,r){"use strict";e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l0;){e=c[c.length-1];var p=t[e];if(a[e]=0&&s[e].push(o[m])}a[e]=d}else{if(n[e]===r[e]){var g=[],v=[],y=0;for(d=l.length-1;d>=0;--d){var x=l[d];if(i[x]=!1,g.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(g);var b=new Array(y);for(d=0;d1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,m=void 0===d?0:d,g=t.sweepFlag,v=void 0===g?0:g,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&&0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T>1&&(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),m=Math.pow(o,2),g=Math.pow(h,2),v=Math.pow(p,2),y=d*m-d*v-m*g;y<0&&(y=0),y/=d*v+m*g;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,A=(-h-x)/a,M=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,A,M);return 0===c&&E>0&&(E-=i),1===c&&E<0&&(E+=i),[_,w,S,E]}(e,r,l,c,u,f,m,v,x,b,_,w),A=n(k,4),M=A[0],S=A[1],E=A[2],L=A[3],C=Math.abs(L)/(i/4);Math.abs(1-C)<1e-7&&(C=1);var P=Math.max(Math.ceil(C),1);L/=P;for(var I=0;Ie[2]&&(e[2]=l[c+0]),l[c+1]>e[3]&&(e[3]=l[c+1]);return e}},{"abs-svg-path":66,"is-svg-path":233,"normalize-svg-path":304,"parse-svg-path":245}],304:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,m=t.length;d4?(o=g[g.length-4],s=g[g.length-3]):(o=h,s=p),r.push(g)}return r};var n=t("svg-arc-to-cubic-bezier");function i(t,e,r,n){return["C",t,e,r,n,r,n]}function a(t,e,r,n,i,a){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{"svg-arc-to-cubic-bezier":302}],305:[function(t,e,r){"use strict";var n,i=t("svg-path-bounds"),a=t("parse-svg-path"),o=t("draw-svg-path"),s=t("is-svg-path"),l=t("bitmap-sdf"),c=document.createElement("canvas"),u=c.getContext("2d");e.exports=function(t,e){if(!s(t))throw Error("Argument should be valid svg path string");e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),m=[r/(d[2]-d[0]),f/(d[3]-d[1])],g=Math.min(m[0]||0,m[1]||0)/2;u.fillStyle="black",u.fillRect(0,0,r,f),u.fillStyle="white",p&&("number"!=typeof p&&(p=1),u.strokeStyle=p>0?"white":"black",u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(g,g),function(){if(null!=n)return n;var t=document.createElement("canvas").getContext("2d");if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D("M0,0h1v1h-1v-1Z");t.fillStyle="black",t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&&r.data&&255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&&u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&&u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{"bitmap-sdf":78,"draw-svg-path":120,"is-svg-path":233,"parse-svg-path":245,"svg-path-bounds":303}],306:[function(t,e,r){(function(e,n){(function(){var i=t("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r.setImmediate="function"==typeof e?e:function(t){var e=l++,n=!(arguments.length<2)&&o.call(arguments,1);return s[e]=!0,i((function(){s[e]&&(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate="function"==typeof n?n:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":272,timers:306}],307:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;"string"==typeof e&&(e=function(t){t=t.replace(r,"").replace(n,"").toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),a:R(e[4]),format:i?"name":"hex8"};if(e=j.hex6.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),format:i?"name":"hex"};if(e=j.hex4.exec(t))return{r:I(e[1]+""+e[1]),g:I(e[2]+""+e[2]),b:I(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:i?"name":"hex8"};if(e=j.hex3.exec(t))return{r:I(e[1]+""+e[1]),g:I(e[2]+""+e[2]),b:I(e[3]+""+e[3]),format:i?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(p=e.r,d=e.g,m=e.b,i={r:255*C(p,255),g:255*C(d,255),b:255*C(m,255)},f=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(l=z(e.s),c=z(e.v),i=function(e,r,n){e=6*C(e,360),r=C(r,100),n=C(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(l=z(e.s),u=z(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(a=e.a));var p,d,m;return a=L(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c>.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16)),O(D(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*C(this._r,255))+"%",g:a(100*C(this._g,255))+"%",b:a(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*C(this._r,255))+"%, "+a(100*C(this._g,255))+"%, "+a(100*C(this._b,255))+"%)":"rgba("+a(100*C(this._r,255))+"%, "+a(100*C(this._g,255))+"%, "+a(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=c(t);r="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:z(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;ul&&(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],r))};var S=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function L(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function C(e,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(e)&&(e="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(e);return e=o(r,s(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function P(t){return o(1,s(0,t))}function I(t){return parseInt(t,16)}function O(t){return 1==t.length?"0"+t:""+t}function z(t){return t<=1&&(t=100*t+"%"),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return I(t)/255}var F,B,N,j=(B="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",N="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}void 0!==e&&e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],308:[function(t,e,r){"use strict";e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=i(t));for(var r=0,n=e.length;ro&&(o=t[0]),t[1]s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":l(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++ro&&(o=e[0]),e[1]s&&(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&&null==n?{type:"Feature",properties:i,geometry:o}:null==n?{type:"Feature",id:r,properties:i,geometry:o}:{type:"Feature",id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&&e.pop();for(var r=i[t<0?~t:t],a=0,o=r.length;a1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i1)for(var a,s,c=1,u=l(i[0]);cu&&(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length>0}))}}function u(t,e){for(var r=0,n=t.length;r>>1;t[i]=2))throw new Error("n must be \u22652");var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function m(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(m)};break;case"Point":e={type:"Point",coordinates:d(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}for(c in h)p[c]=m(h[c]);return{type:"Topology",bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r":(e.length>100&&(e=e.slice(0,99)+"\u2026"),e=e.replace(i,(function(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},{"./safe-to-string":313}],315:[function(t,e,r){"use strict";var n=t("../value/is"),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&&hasOwnProperty.call(i,typeof t)}},{"../value/is":321}],316:[function(t,e,r){"use strict";var n=t("../lib/resolve-exception"),i=t("./is");e.exports=function(t){return i(t)?t:n(t,"%v is not a plain function",arguments[1])}},{"../lib/resolve-exception":312,"./is":317}],317:[function(t,e,r){"use strict";var n=t("../function/is"),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&&!i.test(a.call(t))}},{"../function/is":311}],318:[function(t,e,r){"use strict";var n=t("../object/is");e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}},{"../object/is":315}],319:[function(t,e,r){"use strict";var n=t("../value/is"),i=t("../object/is"),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if("function"!=typeof e)return null;if(e===a)return null}try{return""+t}catch(t){return null}}},{"../object/is":315,"../value/is":321}],320:[function(t,e,r){"use strict";var n=t("../lib/resolve-exception"),i=t("./is");e.exports=function(t){return i(t)?t:n(t,"Cannot use %v",arguments[1])}},{"../lib/resolve-exception":312,"./is":321}],321:[function(t,e,r){"use strict";e.exports=function(t){return null!=t}},{}],322:[function(t,e,r){(function(e){(function(){"use strict";var n=t("bit-twiddle"),i=t("dup"),a=t("buffer").Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o="undefined"!=typeof Uint8ClampedArray,s="undefined"!=typeof BigUint64Array,l="undefined"!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length>0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function m(t){return new Uint16Array(p(2*t),0,t)}function g(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length>0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return p(t);switch(e){case"uint8":return d(t);case"uint16":return m(t);case"uint32":return g(t);case"int8":return v(t);case"int16":return y(t);case"int32":return x(t);case"float":case"float32":return b(t);case"double":case"float64":return _(t);case"uint8_clamped":return w(t);case"bigint64":return k(t);case"biguint64":return T(t);case"buffer":return M(t);case"data":case"dataview":return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=m,r.mallocUint32=g,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t<32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"bit-twiddle":77,buffer:80,dup:122}],323:[function(t,e,r){var n=/[\'\"]/;e.exports=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}},{}],324:[function(t,e,r){"use strict";e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&&e!==i||e<1||e>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&&e<=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e<0||e>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e>13},isIntercalaryMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s>>9&4095,c=s>>5&15,u=31&s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),"d");var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if("object"==typeof t)o=t,a=e||{};else{var l;if(!("number"==typeof t&&t>=1888&&t<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof e&&e>=1&&e<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u>>13;c=p&&(o.month>p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d>9&4095,(m>>5&15)-1,(31&m)+s);return a.year=g.getFullYear(),a.month=1+g.getMonth(),a.day=g.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if("object"==typeof t)i=t,a=e||{};else{if(!("number"==typeof t&&t>=1888&&t<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof e&&e>=1&&e<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year<<9|i.month<<5|i.day;a.year=s>=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o>>9&4095,(o>>5&15)-1,31&o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p<13;p++){var m=d&1<<12-p?30:29;if(l>13;!g||p=2&&n<=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()<0?1:0),e=i.month(),(r=i.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=a},{"../main":341,"object-assign":242}],330:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{"../main":341,"object-assign":242}],331:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t<0?t+1:t)+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&&this.leapYear(t)||8===e&&5===o(this.daysInYear(t),10)?30:9===e&&3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t<=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=tthis.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{"../main":341,"object-assign":242}],332:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t<=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{"../main":341,"object-assign":242}],333:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()<0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=e-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{"../main":341,"object-assign":242}],334:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+"."+Math.floor(t/20)+"."+t%20},forYear:function(t){if((t=t.split(".")).length<3)throw"Invalid Mayan year";for(var e=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{"../main":341,"object-assign":242}],335:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar;var o=n.instance("gregorian");i(a.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())<0&&t++;for(var a=i.day(),s=1;s=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{"../main":341,"object-assign":242}],336:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t>=0?474:473),s=474+o(a,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l<=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{"../main":341,"object-assign":242}],338:[function(t,e,r){var n=t("../main"),i=t("object-assign"),a=n.instance();function o(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{"../main":341,"object-assign":242}],339:[function(t,e,r){var n=t("../main"),i=t("object-assign"),a=n.instance();function o(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),n.calendars.thai=o},{"../main":341,"object-assign":242}],340:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;ar)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;ne);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(t=null!=t.year?t.year:t)>=1276&&t<=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{"../main":341,"object-assign":242}],341:[function(t,e,r){var n=t("object-assign");function i(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return"000000".substring(0,e-(t=""+t).length)+t}function s(){this.shortYearCutoff="+10"}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[""]}n(i.prototype,{instance:function(t,e){t=(t||"gregorian").toLowerCase(),e=e||"";var r=this._localCals[t+"-"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+"-"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&&t.year?t.calendar():"string"==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+"").replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(0===a?"":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,"y")},month:function(t){return 0===arguments.length?this._month:this.set(t,"m")},day:function(t){return 0===arguments.length?this._day:this.set(t,"d")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(e.year()<0?"-":"")+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,"d"===r||"w"===r){var n=t.toJD()+e*("w"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+("y"===r?e:0),o=t.monthOfYear()+("m"===r?e:0);i=t.day();"y"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):"m"===r&&(!function(t){for(;oe-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?e:t.year(),i="m"===r?e:t.month(),a="d"===r?e:t.day();return"y"!==r&&"m"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),c=i-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{"object-assign":242}],342:[function(t,e,r){var n=t("object-assign"),i=t("./main");n(i.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),i.local=i.regionalOptions[""],n(i.cdate.prototype,{formatDate:function(t,e){return"string"!=typeof t&&(e=t,t=""),this._calendar.formatDate(t||"",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(t,e,r){if("string"!=typeof t&&(r=e,e=t,t=""),!e)return"";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[""].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n1}),d=function(t,e,r,n){var i=""+e;if(p(t,n))for(;i.length1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(t)+1],o=new RegExp("^-?\\d{1,"+a+"}"),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[""].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if("function"==typeof l){y("m");var t=l.call(b,e.substring(A));return A+=t.length,t}return x("m")},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s-1){p=1,d=m;for(var E=this.daysInMonth(h,p);d>E;E=this.daysInMonth(h,p))p++,d-=E}return f>-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&&"object"!=typeof r&&(i=n,n=r,r=null),"string"!=typeof n&&(i=n,n="");var a=this;return e=e?e.newDate():null,t=null==t?e:"string"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||"d"),s=o.exec(t);return e}(t):"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,"d"):a.newDate(t)}})},{"./main":341,"object-assign":242}],343:[function(t,e,r){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],344:[function(t,e,r){"use strict";var n=t("./arrow_paths"),i=t("../../plots/font_attributes"),a=t("../../plots/cartesian/constants"),o=t("../../plot_api/plot_template").templatedArray;t("../../constants/axis_placeable_objects");e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:i({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:i({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":467,"../../plot_api/plot_template":538,"../../plots/cartesian/constants":556,"../../plots/font_attributes":580,"./arrow_paths":343}],345:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("./draw").draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},"range"===a&&s(e,r),"range"===o&&s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t["a"+a],l=t[a+"ref"],c=t["a"+a+"ref"],u=t["_"+a+"padplus"],f=t["_"+a+"padminus"],h={x:1,y:-1}[a]*t[a+"shift"],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,m=p-h,g=3*t.startarrowsize*t.arrowwidth||0,v=g+h,y=g-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:m}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,m,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&&t._fullData.length)return n.syncOrAsync([a,o],t)}},{"../../lib":498,"../../plots/cartesian/axes":549,"./draw":350}],346:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("../../plot_api/plot_template").arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=["x","y"],Z=0;Z1)&&(nt===rt?((pt=it.r2fraction(e["a"+et]))<0||pt>1)&&(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt="domain"===ht;"x"===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var mt=e["a"+et];if(tt=ot*q(.5,e.xanchor)-st*q(.5,e.yanchor),nt===rt){var gt=l.getRefType(nt);"domain"===gt?("y"===et&&(mt=1-mt),ft.tail=it._offset+it._length*mt):"paper"===gt?"y"===et?(mt=1-mt,ft.tail=T.t+T.h*mt):ft.tail=T.l+T.w*mt:ft.tail=it._offset+it.r2p(mt),K=tt}else ft.tail=J+mt,K=tt+mt;ft.text=ft.tail+tt;var vt=w["x"===et?"width":"height"];if("paper"===rt&&(ft.head=o.constrain(ft.head,1,vt-1)),"pixel"===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt>0?(ft.tail+=yt,ft.text+=yt):xt>0&&(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*q($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e["_"+et+"padplus"]=lt/2+K,e["_"+et+"padminus"]=lt/2-K,e["_"+et+"size"]=lt,e["_"+et+"shift"]=tt}if(W)R.remove();else{var bt=0,_t=0;if("left"!==e.align&&(bt=(A-b)*("center"===e.align?.5:1)),"top"!==e.valign&&(_t=(D-_)*("middle"===e.valign?.5:1)),f)n.select("svg").attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?L:null,t);else{var wt=N+_t-m.top,Tt=N+bt-m.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?L:null,t)}V.select("rect").call(u.setRect,N,N,A,D),j.call(u.setRect,F/2,F/2,B-F,H-F),R.call(u.setTranslate,Math.round(C.x.text-B/2),Math.round(C.y.text-H/2)),O.attr({transform:"rotate("+P+","+C.x.text+","+C.y.text+")"});var kt,At=function(r,n){I.selectAll(".annotation-arrow-g").remove();var l=C.x.head,f=C.y.head,h=C.x.tail+r,p=C.y.tail+n,m=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(P,m,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),L=+j.attr("width"),z=+j.attr("height"),D=m-.5*L,F=D+L,B=b-.5*z,N=B+z,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(A);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&&(h=e.x,p=e.y)}));var V=e.arrowwidth,H=e.arrowcolor,q=e.arrowside,G=I.append("g").style({opacity:c.opacity(H)}).classed("annotation-arrow-g",!0),Y=G.append("path").attr("d","M"+h+","+p+"L"+l+","+f).style("stroke-width",V+"px").call(c.stroke,c.rgb(H));if(g(Y,q,e),k.annotationPosition&&Y.node().parentNode&&!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(h-W)+","+(p-X),transform:s(W,X)}).style("stroke-width",V+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&&v.autorange&&M(v._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S("x",y(v,t,"x",T,e)),S("y",y(x,r,"y",T,e)),e.axref===e.xref&&S("ax",y(v,t,"ax",T,e)),e.ayref===e.yref&&S("ay",y(x,r,"ay",T,e)),G.attr("transform",s(t,r)),O.attr({transform:"rotate("+P+","+i+","+a+")"})},doneFn:function(){i.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}};if(e.showarrow&&At(0,0),z)d.init({element:R.node(),gd:t,prepFn:function(){kt=O.attr("transform")},moveFn:function(t,r){var n="pointer";if(e.showarrow)e.axref===e.xref?S("ax",y(v,t,"ax",T,e)):S("ax",e.ax+t),e.ayref===e.yref?S("ay",y(x,r,"ay",T.w,e)):S("ay",e.ay+r),At(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,"x",T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,"y",T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S("x",i),S("y",o),v&&x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}O.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&&t.emit("plotly_clickannotation",Y(n))},doneFn:function(){p(R),i.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(".annotation").remove();for(var r=0;r=0,x=e.indexOf("end")>=0,b=d.backoff*g+r.standoff,_=m.backoff*v+r.startstandoff;if("line"===p.nodeName){o={x:+t.attr("x1"),y:+t.attr("y1")},u={x:+t.attr("x2"),y:+t.attr("y2")};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+T*T))return void z();if(b){if(b*b>w*w+T*T)return void z();var k=b*Math.cos(f),A=b*Math.sin(f);u.x+=k,u.y+=A,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+T*T)return void z();var M=_*Math.cos(f),S=_*Math.sin(f);o.x-=M,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if("path"===p.nodeName){var E=p.getTotalLength(),L="";if(E1){c=!0;break}}c?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{"../../plots/gl3d/project":602,"../annotations/draw":350}],357:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:t("./attributes")}}},layoutAttributes:t("./attributes"),handleDefaults:t("./defaults"),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return a?"rgba("+s+", "+n[3]+")":"rgb("+s+")"}o.tinyRGB=function(t){var e=t.toRgb();return"rgb("+Math.round(e.r)+", "+Math.round(e.g)+", "+Math.round(e.b)+")"},o.rgb=function(t){return o.tinyRGB(n(t))},o.opacity=function(t){return t?n(t).getAlpha():0},o.addOpacity=function(t,e){var r=n(t).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+e+")"},o.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&&(i=n(o.combine(t,c))),(i.isDark()?e?i.lighten(e):c:r?i.darken(r):l).toString()},o.stroke=function(t,e){var r=n(e);t.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(t,e){var r=n(e);t.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(t){if(t&&"object"==typeof t){var e,r,n,i,s=Object.keys(t);for(e=0;e0?n>=l:n<=l));i++)n>u&&n0?n>=l:n<=l));i++)n>r[0]&&n1){var ct=Math.pow(10,Math.floor(Math.log(lt)/Math.LN10));ot*=ct*c.roundUp(lt/ct,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(it.tick0=0)}it.dtick=ot}it.domain=o?[rt+I/R.h,rt+K-I/R.h]:[rt+P/R.w,rt+K-P/R.w],it.setScale(),t.attr("transform",u(Math.round(R.l),Math.round(R.t)));var ut,ft=t.select("."+A.cbtitleunshift).attr("transform",u(-Math.round(R.l),-Math.round(R.t))),ht=it.ticklabelposition,pt=it.title.font.size,dt=t.select("."+A.cbaxis),mt=0,gt=0;function vt(n,i){var a={propContainer:it,propName:e._propPrefix+"title",traceIndex:e._traceIndex,_meta:e._meta,placeholder:D._dfltTitle.colorbar,containerGroup:t.select("."+A.cbtitle)},o="h"===n.charAt(0)?n.substr(1):"h"+n;t.selectAll("."+o+",."+o+"-math-group").remove(),m.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){var t,e;(o&&at||!o&&!at)&&("top"===j&&(t=P+R.l+R.w*O,e=I+R.t+R.h*(1-rt-K)+3+.75*pt),"bottom"===j&&(t=P+R.l+R.w*O,e=I+R.t+R.h*(1-rt)-3-.25*pt),"right"===j&&(e=I+R.t+R.h*z+3+.75*pt,t=P+R.l+R.w*rt),vt(it._id+"title",{attributes:{x:t,y:e,"text-anchor":o?"start":"middle"}}))},function(){if(!o&&!at||o&&at){var a,l=t.select("."+A.cbtitle),f=l.select("text"),h=[-M/2,M/2],d=l.select(".h"+it._id+"title-math-group").node(),m=15.6;if(f.node()&&(m=parseInt(f.node().style.fontSize,10)*w),d?(a=p.bBox(d),gt=a.width,(mt=a.height)>m&&(h[1]-=(mt-m)/2)):f.node()&&!f.classed(A.jsPlaceholder)&&(a=p.bBox(f.node()),gt=a.width,mt=a.height),o){if(mt){if(mt+=5,"top"===j)it.domain[1]-=mt/R.h,h[1]*=-1;else{it.domain[0]+=mt/R.h;var v=g.lineCount(f);h[1]+=(1-v)*m}l.attr("transform",u(h[0],h[1])),it.setScale()}}else gt&&("right"===j&&(it.domain[0]+=(gt+pt/2)/R.w),l.attr("transform",u(h[0],h[1])),it.setScale())}t.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",o?u(0,Math.round(R.h*(1-it.domain[1]))):u(Math.round(R.w*it.domain[0]),0)),dt.attr("transform",o?u(0,Math.round(-R.t)):u(Math.round(-R.l),0));var y=t.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(Y);y.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),y.exit().remove();var x=U.map(it.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var s=[0===a?U[0]:(Y[a]+Y[a-1])/2,a===Y.length-1?U[1]:(Y[a]+Y[a+1])/2].map(it.c2p).map(Math.round);o&&(s[1]=c.constrain(s[1]+(s[1]>s[0])?1:-1,x[0],x[1]));var l=n.select(this).attr(o?"x":"y",Q).attr(o?"y":"x",n.min(s)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(n.max(s)-n.min(s),2));if(e._fillgradient)p.gradient(l,r,e._id,o?"vertical":"horizontalreversed",e._fillgradient,"fill");else{var u=H(t).replace("e-","");l.attr("fill",i(u).toHexString())}}));var b=t.select("."+A.cblines).selectAll("path."+A.cbline).data(B.color&&B.width?W:[]);b.enter().append("path").classed(A.cbline,!0),b.exit().remove(),b.each((function(t){var e=Q,r=Math.round(it.c2p(t))+B.width/2%1;n.select(this).attr("d","M"+(o?e+","+r:r+","+e)+(o?"h":"v")+X).call(p.lineGroupStyle,B.width,V(t),B.dash)})),dt.selectAll("g."+it._id+"tick,path").remove();var _=Q+X+(M||0)/2-("outside"===e.ticks?1:0),T=s.calcTicks(it),k=s.getTickSigns(it)[2];return s.drawTicks(r,it,{vals:"inside"===it.ticks?s.clipEnds(it,T):T,layer:dt,path:s.makeTickPath(it,_,k),transFn:s.makeTransTickFn(it)}),s.drawLabels(r,it,{vals:T,layer:dt,transFn:s.makeTransTickLabelFn(it),labelFns:s.makeLabelFns(it,_)})},function(){if(o&&!at||!o&&at){var t,i,a=it.position||0,s=it._offset+it._length/2;if("right"===j)i=s,t=R.l+R.w*a+10+pt*(it.showticklabels?1:.5);else if(t=s,"bottom"===j&&(i=R.t+R.h*a+10+(-1===ht.indexOf("inside")?it.tickfont.size:0)+("intside"!==it.ticks&&e.ticklen||0)),"top"===j){var l=N.text.split("
").length;i=R.t+R.h*a+10-X-w*pt*l}vt((o?"h":"v")+it._id+"title",{avoid:{selection:n.select(r).selectAll("g."+it._id+"tick"),side:j,offsetTop:o?0:R.t,offsetLeft:o?R.l:0,maxShift:o?D.width:D.height},attributes:{x:t,y:i,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}},a.previousPromises,function(){var n,s=X+M/2;-1===ht.indexOf("inside")&&(n=p.bBox(dt.node()),s+=o?n.width:n.height),ut=ft.select("text");var c=0,f=o&&"top"===j,m=!o&&"right"===j,g=0;if(ut.node()&&!ut.classed(A.jsPlaceholder)){var y,x=ft.select(".h"+it._id+"title-math-group").node();x&&(o&&at||!o&&!at)?(c=(n=p.bBox(x)).width,y=n.height):(c=(n=p.bBox(ft.node())).right-R.l-(o?Q:nt),y=n.bottom-R.t-(o?nt:Q),o||"top"!==j||(s+=n.height,g=n.height)),m&&(ut.attr("transform",u(c/2+pt/2,0)),c*=2),s=Math.max(s,o?c:y)}var b=2*(o?P:I)+s+S+M/2,w=0;!o&&N.text&&"bottom"===C&&z<=0&&(b+=w=b/2,g+=w),D._hColorbarMoveTitle=w,D._hColorbarMoveCBTitle=g;var F=S+M;t.select("."+A.cbbg).attr("x",(o?Q:nt)-F/2-(o?P:0)).attr("y",(o?nt:Q)-(o?J:I+g-w)).attr(o?"width":"height",Math.max(b-w,2)).attr(o?"height":"width",Math.max(J+F,2)).call(d.fill,E).call(d.stroke,e.bordercolor).style("stroke-width",S);var B=m?Math.max(c-10,0):0;if(t.selectAll("."+A.cboutline).attr("x",(o?Q:nt+P)+B).attr("y",(o?nt+I-J:Q)+(f?mt:0)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(J-(o?2*I+mt:2*P+B),2)).call(d.stroke,e.outlinecolor).style({fill:"none","stroke-width":M}),t.attr("transform",u(R.l-(o?$*b:0),R.t-(o?0:(1-tt)*b-g))),!o&&(S||i(E).getAlpha()&&!i.equals(D.paper_bgcolor,E))){var U=dt.selectAll("text"),V=U[0].length,H=t.select("."+A.cbbg).node(),q=p.bBox(H),G=p.getTranslate(t);U.each((function(t,e){var r=V-1;if(0===e||e===r){var n,i=p.bBox(this),a=p.getTranslate(this);if(e===r){var o=i.right+a.x;(n=q.right+G.x+nt-S-2+O-o)>0&&(n=0)}else if(0===e){var s=i.left+a.x;(n=q.left+G.x+nt+S+2-s)<0&&(n=0)}n&&(V<3?this.setAttribute("transform","translate("+n+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var Y={},W=T[L],Z=k[L],K=T[C],et=k[C],rt=b-X;o?("pixels"===h?(Y.y=z,Y.t=J*K,Y.b=J*et):(Y.t=Y.b=0,Y.yt=z+l*K,Y.yb=z-l*et),"pixels"===_?(Y.x=O,Y.l=b*W,Y.r=b*Z):(Y.l=rt*W,Y.r=rt*Z,Y.xl=O-v*W,Y.xr=O+v*Z)):("pixels"===h?(Y.x=O,Y.l=J*W,Y.r=J*Z):(Y.l=Y.r=0,Y.xl=O+l*W,Y.xr=O-l*Z),"pixels"===_?(Y.y=1-z,Y.t=b*K,Y.b=b*et):(Y.t=rt*K,Y.b=rt*et,Y.yt=z-v*K,Y.yb=z+v*et)),a.autoMargin(r,e._id,Y)}],r)}(r,e,t);v&&v.then&&(t._promises||[]).push(v),t._context.edits.colorbarPosition&&function(t,e,r){var n,i,a,s="v"===e.orientation,c=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr("transform"),h(t)},moveFn:function(r,o){t.attr("transform",n+u(r,o)),i=l.align((s?e._uFrac:e._vFrac)+r/c.w,s?e._thickFrac:e._lenFrac,0,1,e.xanchor),a=l.align((s?e._vFrac:1-e._uFrac)-o/c.h,s?e._lenFrac:e._thickFrac,0,1,e.yanchor);var f=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,f)},doneFn:function(){if(h(t),void 0!==i&&void 0!==a){var n={};n[e._propPrefix+"x"]=i,n[e._propPrefix+"y"]=a,void 0!==e._traceIndex?o.call("_guiRestyle",r,n,e._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{"../../constants/alignment":466,"../../lib":498,"../../lib/extend":488,"../../lib/setcursor":519,"../../lib/svg_text_utils":524,"../../plots/cartesian/axes":549,"../../plots/cartesian/axis_defaults":551,"../../plots/cartesian/layout_attributes":564,"../../plots/cartesian/position_defaults":567,"../../plots/plots":614,"../../registry":633,"../color":361,"../colorscale/helpers":372,"../dragelement":380,"../drawing":383,"../titles":459,"./constants":363,"@plotly/d3":58,tinycolor2:307}],366:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{"../../lib":498}],367:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:t("./attributes"),supplyDefaults:t("./defaults"),draw:t("./draw").draw,hasColorbar:t("./has_colorbar")}},{"./attributes":362,"./defaults":364,"./draw":365,"./has_colorbar":366}],368:[function(t,e,r){"use strict";var n=t("../colorbar/attributes"),i=t("../../lib/regex").counter,a=t("../../lib/sort_object_keys"),o=t("./scales.js").scales;a(o);function s(t){return"`"+t+"`"}e.exports=function(t,e){t=t||"";var r,a=(e=e||{}).cLetter||"c",l=("onlyIfNumerical"in e?e.onlyIfNumerical:Boolean(t),"noScale"in e?e.noScale:"marker.line"===t),c="showScaleDflt"in e?e.showScaleDflt:"z"===a,u="string"==typeof e.colorscaleDflt?o[e.colorscaleDflt]:null,f=e.editTypeOverride||"",h=t?t+".":"";"colorAttr"in e?(r=e.colorAttr,e.colorAttr):s(h+(r={z:"z",c:"color"}[a]));var p=a+"auto",d=a+"min",m=a+"max",g=a+"mid",v=(s(h+p),s(h+d),s(h+m),{});v[d]=v[m]=void 0;var y={};y[p]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},e.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:v},x[d]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[m]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:v},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==e.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:"subplotid",regex:i("coloraxis"),dflt:null,editType:"calc"}),x}},{"../../lib/regex":515,"../../lib/sort_object_keys":521,"../colorbar/attributes":362,"./scales.js":376}],369:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("./helpers").extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,m=f.mid,g=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=g():h&&(p=u._colorAx&&n(p)?Math.min(p,g()):g()),void 0===d?d=v():h&&(d=u._colorAx&&n(d)?Math.max(d,v()):v()),h&&void 0!==m&&(d-m>m-p?p=m-(d-m):d-m=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":498,"./helpers":372,"fast-isnumeric":185}],370:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./helpers").hasColorscale,a=t("./helpers").extractOpts;e.exports=function(t,e){function r(t,e){var r=t["_"+e];void 0!==r&&(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&&r(o,i.min),(l||void 0===s.max)&&r(o,i.max),s.autocolorscale&&r(o,"colorscale")}}for(var s=0;s=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u4/3-s?o:s}},{}],378:[function(t,e,r){"use strict";var n=t("../../lib"),i=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(t,e,r,a){return t="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*t),0,2),e="bottom"===a?0:"middle"===a?1:"top"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{"../../lib":498}],379:[function(t,e,r){"use strict";r.selectMode=function(t){return"lasso"===t||"select"===t},r.drawMode=function(t){return"drawclosedpath"===t||"drawopenpath"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},r.openMode=function(t){return"drawline"===t||"drawopenpath"===t},r.rectMode=function(t){return"select"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},r.freeMode=function(t){return"lasso"===t||"drawclosedpath"===t||"drawopenpath"===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],380:[function(t,e,r){"use strict";var n=t("mouse-event-offset"),i=t("has-hover"),a=t("has-passive-events"),o=t("../../lib").removeElement,s=t("../../plots/cartesian/constants"),l=e.exports={};l.align=t("./align"),l.getCursor=t("./cursor");var c=t("./unhover");function u(){var t=document.createElement("div");t.className="dragcover";var e=t.style;return e.position="fixed",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background="none",document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,m,g=t.gd,v=1,y=g._context.doubleClickDelay,x=t.element;g._mouseDownTime||(g._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,a?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)y&&(v=Math.max(v-1,1)),g._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(v,p),!m){var r;try{r=new MouseEvent("click",e)}catch(t){var n=f(e);(r=document.createEvent("MouseEvents")).initMouseEvent("click",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}g._dragging=!1,g._dragged=!1}else g._dragged=!1}},l.coverSlip=u},{"../../lib":498,"../../plots/cartesian/constants":556,"./align":377,"./cursor":378,"./unhover":381,"has-hover":223,"has-passive-events":224,"mouse-event-offset":237}],381:[function(t,e,r){"use strict";var n=t("../../lib/events"),i=t("../../lib/throttle"),a=t("../../lib/dom").getGraphDiv,o=t("../fx/constants"),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&&i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!t._dragged&&!1===n.triggerHandler(t,"plotly_beforehover",e)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,e.target&&i&&t.emit("plotly_unhover",{event:e,points:i}))}},{"../../lib/dom":486,"../../lib/events":487,"../../lib/throttle":525,"../fx/constants":395}],382:[function(t,e,r){"use strict";r.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},r.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},{}],383:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.numberFormat,o=t("fast-isnumeric"),s=t("tinycolor2"),l=t("../../registry"),c=t("../color"),u=t("../colorscale"),f=i.strTranslate,h=t("../../lib/svg_text_utils"),p=t("../../constants/xmlns_namespaces"),d=t("../../constants/alignment").LINE_SPACING,m=t("../../constants/interactions").DESELECTDIM,g=t("../../traces/scatter/subtypes"),v=t("../../traces/scatter/make_bubble_size_func"),y=t("../../components/fx/helpers").appendArrayPointValue,x=e.exports={};function b(t,e,r){var n=e.fillpattern,i=n&&x.getPatternAttr(n.shape,0,"");if(i){var a=x.getPatternAttr(n.bgcolor,0,null),o=x.getPatternAttr(n.fgcolor,0,null),s=n.fgopacity,l=x.getPatternAttr(n.size,0,8),u=x.getPatternAttr(n.solidity,0,.3),f=e.uid;x.pattern(t,"point",r,f,i,l,u,void 0,n.fillmode,a,o,s)}else e.fillcolor&&t.call(c.fill,e.fillcolor)}x.font=function(t,e,r,n){i.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style("font-family",e),r+1&&t.style("font-size",r+"px"),n&&t.call(c.fill,n)},x.setPosition=function(t,e,r){t.attr("x",e).attr("y",r)},x.setSize=function(t,e,r){t.attr("width",e).attr("height",r)},x.setRect=function(t,e,r,n,i){t.call(x.setPosition,e,r).call(x.setSize,n,i)},x.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(o(i)&&o(a)&&e.node())&&("text"===e.node().nodeName?e.attr("x",i).attr("y",a):e.attr("transform",f(i,a)),!0)},x.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);x.translatePoint(t,i,e,r)}))},x.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr("display",r.isPtWithinRange(t,i)&&n.isPtWithinRange(t,a)?null:"none")},x.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,c=l.traceIs(a,"bar-like")?".bartext":".point,.textpoint";t.selectAll(c).each((function(t){x.hideOutsideRangePoint(t,n.select(this),r,i,o,s)}))}))}},x.crispRound=function(t,e,r){return e&&o(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},x.singleLineStyle=function(t,e,r,n,i){e.style("fill","none");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";c.stroke(e,n||a.color),x.dashLine(e,s,o)},x.lineGroupStyle=function(t,e,r,i){t.style("fill","none").each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||"";n.select(this).call(c.stroke,r||a.color).call(x.dashLine,s,o)}))},x.dashLine=function(t,e,r){r=+r||0,e=x.dashStyle(e,r),t.style({"stroke-dasharray":e,"stroke-width":r+"px"})},x.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return"solid"===t?t="":"dot"===t?t=r+"px,"+r+"px":"dash"===t?t=3*r+"px,"+3*r+"px":"longdash"===t?t=5*r+"px,"+5*r+"px":"dashdot"===t?t=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===t&&(t=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),t},x.singleFillStyle=function(t,e){var r=n.select(t.node());b(t,((r.data()[0]||[])[0]||{}).trace||{},e)},x.fillGroupStyle=function(t,e){t.style("stroke-width",0).each((function(t){var r=n.select(this);t[0].trace&&b(r,t[0].trace,e)}))};var _=t("./symbol_defs");x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(_).forEach((function(t){var e=_[t],r=e.n;x.symbolList.push(r,String(r),t,r+100,String(r+100),t+"-open"),x.symbolNames[r]=t,x.symbolFuncs[r]=e.f,e.needLine&&(x.symbolNeedLines[r]=!0),e.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),t+"-dot",r+300,String(r+300),t+"-open-dot"),e.noFill&&(x.symbolNoFill[r]=!0)}));var w=x.symbolNames.length;function T(t,e){var r=t%100;return x.symbolFuncs[r](e)+(t>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(t){if(o(t))t=+t;else if("string"==typeof t){var e=0;t.indexOf("-open")>0&&(e=100,t=t.replace("-open","")),t.indexOf("-dot")>0&&(e+=200,t=t.replace("-dot","")),(t=x.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=w||t>=400?0:Math.floor(Math.max(t,0))};var k={x1:1,x2:0,y1:0,y2:0},A={x1:0,x2:0,y1:1,y2:0},M=a("~f"),S={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:k},horizontalreversed:{node:"linearGradient",attrs:k,reversed:!0},vertical:{node:"linearGradient",attrs:A},verticalreversed:{node:"linearGradient",attrs:A,reversed:!0}};x.gradient=function(t,e,r,a,o,l){for(var u=o.length,f=S[a],h=new Array(u),p=0;p=100,e.attr("d",T(u,l))}var f,h,p,d=!1;if(t.so)p=s.outlierwidth,h=s.outliercolor,f=o.outliercolor;else{var m=(s||{}).width;p=(t.mlw+1||m+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h="mlc"in t?t.mlcc=n.lineScale(t.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&&(f=c.defaultLine,d=!0),f="mc"in t?t.mcc=n.markerScale(t.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(f=n.selectedColorFn(t))}if(t.om)e.call(c.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{e.style("stroke-width",(t.isBlank?0:p)+"px");var g=o.gradient,v=t.mgt;v?d=!0:v=g&&g.type,i.isArrayOrTypedArray(v)&&(v=v[0],S[v]||(v=0));var y=o.pattern,b=y&&x.getPatternAttr(y.shape,t.i,"");if(v&&"none"!==v){var _=t.mgc;_?d=!0:_=g.color;var w=r.uid;d&&(w+="-"+t.i),x.gradient(e,a,w,v,[[0,_],[1,f]],"fill")}else if(b){var k=x.getPatternAttr(y.bgcolor,t.i,null),A=x.getPatternAttr(y.fgcolor,t.i,null),M=y.fgopacity,E=x.getPatternAttr(y.size,t.i,8),L=x.getPatternAttr(y.solidity,t.i,.3),C=t.mcc||i.isArrayOrTypedArray(y.shape)||i.isArrayOrTypedArray(y.bgcolor)||i.isArrayOrTypedArray(y.size)||i.isArrayOrTypedArray(y.solidity),P=r.uid;C&&(P+="-"+t.i),x.pattern(e,"point",a,P,b,E,L,t.mcc,y.fillmode,k,A,M)}else c.fill(e,f);p&&c.stroke(e,h)}},x.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=x.tryColorscale(r,""),e.lineScale=x.tryColorscale(r,"line"),l.traceIs(t,"symbols")&&(e.ms2mrc=g.isBubble(t)?v(t):function(){return(r.size||6)/2}),t.selectedpoints&&i.extendFlat(e,x.makeSelectedPointStyleFns(t)),e},x.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(i.isArrayOrTypedArray(c)||h||p)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?h?u:e:p?f:m*e});var d=a.color,g=o.color,v=s.color;(g||v)&&(e.selectedColorFn=function(t){var e=t.mcc||d;return t.selected?g||e:v||e});var y=a.size,x=o.size,b=s.size,_=void 0!==x,w=void 0!==b;return l.traceIs(t,"symbols")&&(_||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},x.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?l||e:u||(l?e:c.addOpacity(e,m))},e},x.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=x.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&&a.push((function(t,e){t.style("opacity",r.selectedOpacityFn(e))})),r.selectedColorFn&&a.push((function(t,e){c.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&&a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr("d",T(x.symbolNumber(n),a)),e.mrc2=a})),a.length&&t.each((function(t){for(var e=n.select(this),r=0;r0?r:0}x.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var o=x.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=r._fullLayout;t.each((function(t){var o=n.select(this),c=s?i.extractOption(t,e,"txt","texttemplate"):i.extractOption(t,e,"tx","text");if(c||0===c){if(s){var u=e._module.formatLabels,f=u?u(t,e,l):{},p={};y(p,e,t.i);var d=e._meta||{};c=i.texttemplateString(c,f,l._d3locale,p,t,d)}var m=t.tp||e.textposition,g=C(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(x.font,t.tf||e.textfont.family,g,v).text(c).call(h.convertToTspans,r).call(L,m,g,t.mrc)}else o.remove()}))}},x.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=x.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=C(t,e);c.fill(i,a);var u=l.traceIs(e,"bar-like");L(i,o,s,t.mrc2||t.mrc,u)}))}};function P(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&&f/p),2),n.round(e[1]+(p&&h/p),2)],[n.round(e[0]-(d&&f/d),2),n.round(e[1]-(d&&h/d),2)]]}x.smoothopen=function(t,e){if(t.length<3)return"M"+t.join("L");var r,n="M"+t[0],i=[];for(r=1;r=1e4&&(x.savedBBoxes={},z=0),r&&(x.savedBBoxes[r]=g),z++,i.extendFlat({},g)},x.setClipUrl=function(t,e,r){t.attr("clip-path",R(e,r))},x.getTranslate=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+e[0]||0,y:+e[1]||0}},x.setTranslate=function(t,e,r){var n=t.attr?"attr":"getAttribute",i=t.attr?"attr":"setAttribute",a=t[n]("transform")||"";return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=f(e,r)).trim(),t[i]("transform",a),a},x.getScale=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+e[0]||1,y:+e[1]||1}},x.setScale=function(t,e,r){var n=t.attr?"attr":"getAttribute",i=t.attr?"attr":"setAttribute",a=t[n]("transform")||"";return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+="scale("+e+","+r+")").trim(),t[i]("transform",a),a};var F=/\s*sc.*/;x.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?"":"scale("+e+","+r+")";t.each((function(){var t=(this.getAttribute("transform")||"").replace(F,"");t=(t+=n).trim(),this.setAttribute("transform",t)}))}};var B=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(t,e,r){t&&t.each((function(){var t,i=n.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(B);t=1===e&&1===r?[]:[f(o,s),"scale("+e+","+r+")",f(-o,-s)],l&&t.push(l),i.attr("transform",t.join(""))}}))}},{"../../components/fx/helpers":397,"../../constants/alignment":466,"../../constants/interactions":473,"../../constants/xmlns_namespaces":475,"../../lib":498,"../../lib/svg_text_utils":524,"../../registry":633,"../../traces/scatter/make_bubble_size_func":939,"../../traces/scatter/subtypes":947,"../color":361,"../colorscale":373,"./symbol_defs":384,"@plotly/d3":58,"fast-isnumeric":185,tinycolor2:307}],384:[function(t,e,r){"use strict";var n=t("@plotly/d3");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"}},square:{n:1,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"Z"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return"M"+r+","+e+"H"+e+"V"+r+"H-"+e+"V"+e+"H-"+r+"V-"+e+"H-"+e+"V-"+r+"H"+e+"V-"+e+"H"+r+"Z"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r="l"+e+","+e,i="l"+e+",-"+e,a="l-"+e+",-"+e,o="l-"+e+","+e;return"M0,"+e+r+i+a+i+a+o+a+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+e+","+n.round(t/2,2)+"H"+e+"L0,-"+n.round(t,2)+"Z"}},"triangle-down":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+e+",-"+n.round(t/2,2)+"H"+e+"L0,"+n.round(t,2)+"Z"}},"triangle-left":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M"+n.round(t/2,2)+",-"+e+"V"+e+"L-"+n.round(t,2)+",0Z"}},"triangle-right":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+n.round(t/2,2)+",-"+e+"V"+e+"L"+n.round(t,2)+",0Z"}},"triangle-ne":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M-"+r+",-"+e+"H"+e+"V"+r+"Z"}},"triangle-se":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M"+e+",-"+r+"V"+e+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M"+r+","+e+"H-"+e+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M-"+e+","+r+"V-"+e+"H"+r+"Z"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return"M"+e+","+a+"L"+r+","+n.round(.809*t,2)+"H-"+r+"L-"+e+","+a+"L0,"+i+"Z"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return"M"+i+",-"+r+"V"+r+"L0,"+e+"L-"+i+","+r+"V-"+r+"L0,-"+e+"Z"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return"M-"+r+","+i+"H"+r+"L"+e+",0L"+r+",-"+i+"H-"+r+"L-"+e+",0Z"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return"M-"+r+",-"+e+"H"+r+"L"+e+",-"+r+"V"+r+"L"+r+","+e+"H-"+r+"L-"+e+","+r+"V-"+r+"Z"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return"M"+r+","+l+"H"+i+"L"+a+","+c+"L"+o+","+u+"L0,"+n.round(.382*e,2)+"L-"+o+","+u+"L-"+a+","+c+"L-"+i+","+l+"H-"+r+"L0,"+s+"Z"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return"M-"+i+",0l-"+r+",-"+e+"h"+i+"l"+r+",-"+e+"l"+r+","+e+"h"+i+"l-"+r+","+e+"l"+r+","+e+"h-"+i+"l-"+r+","+e+"l-"+r+",-"+e+"h-"+i+"Z"}},"star-triangle-up":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o="A "+a+","+a+" 0 0 1 ";return"M-"+e+","+r+o+e+","+r+o+"0,-"+i+o+"-"+e+","+r+"Z"}},"star-triangle-down":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o="A "+a+","+a+" 0 0 1 ";return"M"+e+",-"+r+o+"-"+e+",-"+r+o+"0,"+i+o+e+",-"+r+"Z"}},"star-square":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i="A "+r+","+r+" 0 0 1 ";return"M-"+e+",-"+e+i+"-"+e+","+e+i+e+","+e+i+e+",-"+e+i+"-"+e+",-"+e+"Z"}},"star-diamond":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i="A "+r+","+r+" 0 0 1 ";return"M-"+e+",0"+i+"0,"+e+i+e+",0"+i+"0,-"+e+i+"-"+e+",0Z"}},"diamond-tall":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return"M0,"+r+"L"+e+",0L0,-"+r+"L-"+e+",0Z"}},"diamond-wide":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return"M0,"+r+"L"+e+",0L0,-"+r+"L-"+e+",0Z"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"H-"+e+"L"+e+",-"+e+"H-"+e+"Z"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"V-"+e+"L-"+e+","+e+"V-"+e+"Z"},noDot:!0},"circle-cross":{n:27,f:function(t){var e=n.round(t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(t){var e=n.round(t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e+"M"+e+",-"+e+"L-"+e+","+e+"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(t){var e=n.round(1.3*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"ZM0,-"+e+"V"+e+"M-"+e+",0H"+e},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(t){var e=n.round(1.4*t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e+"M"+e+",-"+e+"L-"+e+","+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return"M"+e+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+e+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return"M-"+e+","+i+"L0,0M"+e+","+i+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return"M-"+e+",-"+i+"L0,0M"+e+",-"+i+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return"M"+i+","+e+"L0,0M"+i+",-"+e+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return"M-"+i+","+e+"L0,0M-"+i+",-"+e+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(t){var e=n.round(1.4*t,2);return"M"+e+",0H-"+e},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(t){var e=n.round(1.4*t,2);return"M0,"+e+"V-"+e},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(t){var e=n.round(t,2);return"M"+e+",-"+e+"L-"+e+","+e},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(t){var e=n.round(t,2);return"M0,0L-"+e+","+n.round(2*t,2)+"H"+e+"Z"},noDot:!0},"arrow-down":{n:46,f:function(t){var e=n.round(t,2);return"M0,0L-"+e+",-"+n.round(2*t,2)+"H"+e+"Z"},noDot:!0},"arrow-left":{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return"M0,0L"+e+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return"M0,0L-"+e+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(t){var e=n.round(t,2);return"M-"+e+",0H"+e+"M0,0L-"+e+","+n.round(2*t,2)+"H"+e+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(t){var e=n.round(t,2);return"M-"+e+",0H"+e+"M0,0L-"+e+",-"+n.round(2*t,2)+"H"+e+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return"M0,-"+r+"V"+r+"M0,0L"+e+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return"M0,-"+r+"V"+r+"M0,0L-"+e+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},{"@plotly/d3":58}],385:[function(t,e,r){"use strict";e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],386:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../registry"),a=t("../../plots/cartesian/axes"),o=t("../../lib"),s=t("./compute_error");function l(t,e,r,i){var l=e["error_"+i]||{},c=[];if(l.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=s(l),f=0;f0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&&(f=function(t){return t.id});var m=o.hasMarkers(h)&&h.marker.maxdisplayed>0;d.visible||p.visible||(e=[]);var g=n.select(this).selectAll("g.errorbar").data(e,f);if(g.exit().remove(),e.length){p.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var v=g.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(s.duration).style("opacity",1),a.setClipUrl(g,r.layerClipId,t),g.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!m||t.vis){var a,o=e.select("path.yerror");if(d.visible&&i(r.x)&&i(r.yh)&&i(r.ys)){var f=d.width;a="M"+(r.x-f)+","+r.yh+"h"+2*f+"m-"+f+",0V"+r.ys,r.noYS||(a+="m-"+f+",0h"+2*f),!o.size()?o=e.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(s.duration).ease(s.easing)),o.attr("d",a)}else o.remove();var h=e.select("path.xerror");if(p.visible&&i(r.y)&&i(r.xh)&&i(r.xs)){var g=(p.copy_ystyle?d:p).width;a="M"+r.xh+","+(r.y-g)+"v"+2*g+"m0,-"+g+"H"+r.xs,r.noXS||(a+="m0,-"+g+"v"+2*g),!h.size()?h=e.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(h=h.transition().duration(s.duration).ease(s.easing)),h.attr("d",a)}else h.remove()}}))}}))}},{"../../traces/scatter/subtypes":947,"../drawing":383,"@plotly/d3":58,"fast-isnumeric":185}],391:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../color");e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(i.stroke,a.color)}))}},{"../color":361,"@plotly/d3":58}],392:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("./layout_attributes").hoverlabel,a=t("../../lib/extend").extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":488,"../../plots/font_attributes":580,"./layout_attributes":402}],393:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry");function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&&(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s=0&&r.index_[0]._length||ot<0||ot>w[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=at+_[0]._offset,e.pointerY=ot+w[0]._offset,V="xval"in e?v.flat(l,e.xval):v.p2c(_,at),H="yval"in e?v.flat(l,e.yval):v.p2c(w,ot),!i(V[0])||!i(H[0]))return o.warn("Fx.hover failed",e,t),d.unhoverRaw(t,e)}var ct=1/0;function ut(t,r){for(G=0;Gtt&&(et.splice(0,tt),ct=et[0].distance),y&&0!==B&&0===et.length){$.distance=B,$.index=!1;var f=W._module.hoverPoints($,K,Q,"closest",{hoverLayer:u._hoverlayer});if(f&&(f=f.filter((function(t){return t.spikeDistance<=B}))),f&&f.length){var h,d=f.filter((function(t){return t.xa.showspikes&&"hovered data"!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&&i(m.y0)&&(h=ht(m),(!nt.vLinePoint||nt.vLinePoint.spikeDistance>h.spikeDistance)&&(nt.vLinePoint=h))}var g=f.filter((function(t){return t.ya.showspikes&&"hovered data"!==t.ya.spikesnap}));if(g.length){var x=g[0];i(x.x0)&&i(x.y0)&&(h=ht(x),(!nt.hLinePoint||nt.hLinePoint.spikeDistance>h.spikeDistance)&&(nt.hLinePoint=h))}}}}}function ft(t,e,r){for(var n,i=null,a=1/0,o=0;o0&&Math.abs(t.distance)Tt-1;Mt--)Ct(et[Mt]);et=St,gt()}var Pt=t._hoverdata,It=[],Ot=j(t),zt=U(t);for(q=0;q1||et.length>1)||"closest"===P&&it&&et.length>1,Wt=p.combine(u.plot_bgcolor||p.background,u.paper_bgcolor),Xt=I(et,{gd:t,hovermode:P,rotateLabels:Yt,bgColor:Wt,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance});v.isUnifiedHover(P)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function m(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;oe.pmax&&c++;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos>e.pmax-1&&(l.del=!0,c--);for(o=0;o=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos+l.dp+l.size>e.pmax&&(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i="x"===n._id.charAt(0),a=n.range;0===d&&a&&a[0]>a[1]!==i&&(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&&u<=h;){for(u++,n=!0,o=0;o.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(s=v.length-1;s>=0;s--)v[s].dp+=i;for(g.push.apply(g,v),p.splice(o+1,1),c=0,s=g.length-1;s>=0;s--)c+=g[s].dp;for(a=c/g.length,s=g.length-1;s>=0;s--)g[s].dp-=a;n=!1}else o++}p.forEach(m)}for(o=p.length-1;o>=0;o--){var b=p[o];for(s=b.length-1;s>=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Xt,Yt?"xa":"ya",u),z(Xt,Yt,u._invScaleX,u._invScaleY));if(s&&s.tagName){var Zt=g.getComponentMethod("annotations","hasClickToShow")(t,It);f(n.select(s),Zt?"pointer":"")}if(!s||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,Pt))return;Pt&&t.emit("plotly_unhover",{event:e,points:Pt});t.emit("plotly_hover",{event:e,points:t._hoverdata,xaxes:_,yaxes:w,xvals:V,yvals:H})}(t,e,r,a,s)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=e.gd,a=j(i),o=U(i),s=I(t.map((function(t){var r=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,c=t.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),h=Math.min(s,l),d=Math.max(s,l),m=t.trace;if(g.traceIs(m,"gl3d")){var v=i._fullLayout[m.scene]._scene.container,y=v.offsetLeft,x=v.offsetTop;u+=y,f+=y,h+=x,d+=x}c.bbox={x0:u+o,x1:f+o,y0:h+a,y1:d+a},e.inOut_bbox&&e.inOut_bbox.push(c.bbox)}else c=!1;return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:"closest",rotateLabels:!1,bgColor:e.bgColor||p.background,container:n.select(e.container),outerContainer:e.outerContainer||e.container}),l=0,c=0;return s.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5([\s\S]*)<\/extra>/;function I(t,e){var r=e.gd,i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,m=e.outerContainer,w=e.commonLabelOpts||{};if(0===t.length)return[[]];var T=e.fontFamily||y.HOVERFONT,k=e.fontSize||y.HOVERFONTSIZE,A=t[0],E=A.xa,L=A.ya,P=a.charAt(0),I=A[P+"Label"],z=V(r,m),D=z.top,R=z.width,F=z.height,B=void 0!==I&&A.distance<=e.hoverdistance&&("x"===a||"y"===a);if(B){var N,j,U=!0;for(N=0;Ni.width-b?(g=i.width-b,e.attr("d","M"+(b-M)+",0L"+b+","+x+M+"v"+x+(2*S+y.height)+"H-"+b+"V"+x+M+"H"+(b-2*M)+"Z")):e.attr("d","M0,0L"+M+","+x+M+"H"+(S+y.width/2)+"v"+x+(2*S+y.height)+"H-"+(S+y.width/2)+"V"+x+M+"H-"+M+"Z")}else{var _,C,P;"right"===L.side?(_="start",C=1,P="",g=E._offset+E._length):(_="end",C=-1,P="-",g=E._offset),v=L._offset+(A.y0+A.y1)/2,l.attr("text-anchor",_),e.attr("d","M0,0L"+P+M+","+M+"V"+(S+y.height/2)+"h"+P+(2*S+y.width)+"V-"+(S+y.height/2)+"H"+P+M+"V-"+M+"Z");var O,z=y.height/2,R=D-y.top-z,F="clip"+i._uid+"commonlabel"+L._id;if(g=0?at:ot+ct=0?ot:vt+ct=0?nt:it+ut=0?it:yt+ut=0,"top"!==t.idealAlign&&G||!Y?G?(z+=j/2,t.anchor="start"):t.anchor="middle":(z-=j/2,t.anchor="end");else if(t.pos=z,G=P+N/2+W<=R,Y=P-N/2-W>=0,"left"!==t.idealAlign&&G||!Y)if(G)P+=N/2,t.anchor="start";else{t.anchor="middle";var X=W/2,Z=P+X-R,J=P-X;Z>0&&(P-=Z),J<0&&(P+=-J)}else P-=N/2,t.anchor="end";w.attr("text-anchor",t.anchor),E&&A.attr("text-anchor",t.anchor),e.attr("transform",s(P,z)+(c?l(_):""))})),xt}function O(t,e,r,n,i,a){var s="",l="";void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name&&(t.trace._meta&&(t.name=o.templateString(t.name,t.trace._meta)),s=B(t.name,t.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==t.zLabel?(void 0!==t.xLabel&&(l+="x: "+t.xLabel+"
"),void 0!==t.yLabel&&(l+="y: "+t.yLabel+"
"),"choropleth"!==t.trace.type&&"choroplethmapbox"!==t.trace.type&&(l+=(l?"z: ":"")+t.zLabel)):e&&t[c+"Label"]===i?l=t[u+"Label"]||"":void 0===t.xLabel?void 0!==t.yLabel&&"scattercarpet"!==t.trace.type&&(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:"("+t.xLabel+", "+t.yLabel+")",!t.text&&0!==t.text||Array.isArray(t.text)||(l+=(l?"
":"")+t.text),void 0!==t.extraText&&(l+=(l?"
":"")+t.extraText),a&&""===l&&!t.hovertemplate&&(""===s&&a.remove(),l=s);var f=t.hovertemplate||!1;if(f){var h=t.hovertemplateLabels||t;t[c+"Label"]!==i&&(h[c+"other"]=h[c+"Val"],h[c+"otherLabel"]=h[c+"Label"]),l=(l=o.hovertemplateString(f,h,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(P,(function(e,r){return s=B(r,t.nameLength),""}))}return[l,s]}function z(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select("text.nums"),s=t.anchor,l="end"===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(M+S),p=f+c*(t.txwidth+S),d=0,m=t.offset,g="middle"===s;g&&(f-=t.tx2width/2,p+=t.txwidth/2+S),e&&(m*=-A,d=t.offset*k),r.select("path").attr("d",g?"M-"+a(t.bx/2+t.tx2width/2)+","+o(m-t.by/2)+"h"+a(t.bx)+"v"+o(t.by)+"h-"+a(t.bx)+"Z":"M0,0L"+a(l*M+d)+","+o(M+m)+"v"+o(t.by/2-M)+"h"+a(l*t.bx)+"v-"+o(t.by)+"H"+a(l*M+d)+"V"+o(m-M)+"Z");var v=d+f,y=m+t.ty0-t.by/2+S,x=t.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==s?(i.attr("text-anchor","start"),v=g?-t.bx/2-t.tx2width/2+S:-t.bx-S):"right"===x&&"end"!==s&&(i.attr("text-anchor","end"),v=g?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&&(r.select("text.name").call(u.positionText,a(p+c*S+d),o(m+t.ty0-t.by/2+S)),r.select("rect").call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(m-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function D(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&&0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,"",e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&&(t[e]=i)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),t.posref="y"===e||"closest"===e&&"h"===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel="xLabel"in t?t.xLabel:m.hoverLabelText(t.xa,t.xLabelVal,n.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel="yLabel"in t?t.yLabel:m.hoverLabelText(t.ya,t.yLabelVal,n.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||"log"===t.xa.type&&t.xerr<=0)){var f=m.tickText(t.xa,t.xa.c2l(t.xerr),"hover").text;void 0!==t.xerrneg?t.xLabel+=" +"+f+" / -"+m.tickText(t.xa,t.xa.c2l(t.xerrneg),"hover").text:t.xLabel+=" \xb1 "+f,"x"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||"log"===t.ya.type&&t.yerr<=0)){var h=m.tickText(t.ya,t.ya.c2l(t.yerr),"hover").text;void 0!==t.yerrneg?t.yLabel+=" +"+h+" / -"+m.tickText(t.ya,t.ya.c2l(t.yerrneg),"hover").text:t.yLabel+=" \xb1 "+h,"y"===e&&(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(t.xLabel=void 0),-1===p.indexOf("y")&&(t.yLabel=void 0),-1===p.indexOf("z")&&(t.zLabel=void 0),-1===p.indexOf("text")&&(t.text=void 0),-1===p.indexOf("name")&&(t.name=void 0)),t}function R(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var g,v,y=e.hLinePoint;n=y&&y.xa,"cursor"===(i=y&&y.ya).spikesnap?(g=c.pointerX,v=c.pointerY):(g=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)<1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,A=m.getPxPosition(t,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,b=g),-1!==w.indexOf("across")){var M=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=l.l+M*l.w,b=l.l+S*l.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":T,stroke:k,"stroke-dasharray":h.dashStyle(i.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":T+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==i.side?T:-T),cy:v,r:T,fill:k}).classed("spikeline",!0)}if(f){var E,L,C=e.vLinePoint;n=C&&C.xa,i=C&&C.ya,"cursor"===n.spikesnap?(E=c.pointerX,L=c.pointerY):(E=n._offset+C.x,L=i._offset+C.y);var P,I,O=a.readability(C.color,d)<1.5?p.contrast(d):C.color,z=n.spikemode,D=n.spikethickness,R=n.spikecolor||O,F=m.getPxPosition(t,n);if(-1!==z.indexOf("toaxis")||-1!==z.indexOf("across")){if(-1!==z.indexOf("toaxis")&&(P=F,I=L),-1!==z.indexOf("across")){var B=n._counterDomainMin,N=n._counterDomainMax;"free"===n.anchor&&(B=Math.min(B,n.position),N=Math.max(N,n.position)),P=l.t+(1-N)*l.h,I=l.t+(1-B)*l.h}o.insert("line",":first-child").attr({x1:E,x2:E,y1:P,y2:I,"stroke-width":D,stroke:R,"stroke-dasharray":h.dashStyle(n.spikedash,D)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:E,x2:E,y1:P,y2:I,"stroke-width":D+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}-1!==z.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:E,cy:F-("top"!==n.side?D:-D),r:D,fill:R}).classed("spikeline",!0)}}}function F(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function B(t,e){return u.plainText(t||"",{len:e,allowedTags:["br","sub","sup","b","i","em"]})}function N(t,e,r){var n=e[t+"a"],i=e[t+"Val"],a=e.cd[0];if("category"===n.type)i=n._categoriesMap[i];else if("date"===n.type){var o=e.trace[t+"periodalignment"];if(o){var s=e.cd[e.index],l=s[t+"Start"];void 0===l&&(l=s[t]);var c=s[t+"End"];void 0===c&&(c=s[t]);var u=c-l;"end"===o?i+=u:"middle"===o&&(i+=u/2)}i=n.d2c(i)}return a&&a.t&&a.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(i+=a.t.dPos)),i}function j(t){return t.offsetTop+t.clientTop}function U(t){return t.offsetLeft+t.clientLeft}function V(t,e){var r=t._fullLayout,n=e.getBoundingClientRect(),i=n.x,a=n.y,s=i+n.width,l=a+n.height,c=o.apply3DTransform(r._invTransform)(i,a),u=o.apply3DTransform(r._invTransform)(s,l),f=c[0],h=c[1],p=u[0],d=u[1];return{x:f,y:h,width:p-f,height:d-h,top:Math.min(h,d),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,d)}}},{"../../lib":498,"../../lib/events":487,"../../lib/override_cursor":509,"../../lib/svg_text_utils":524,"../../plots/cartesian/axes":549,"../../registry":633,"../color":361,"../dragelement":380,"../drawing":383,"../legend/defaults":413,"../legend/draw":414,"./constants":395,"./helpers":397,"@plotly/d3":58,"fast-isnumeric":185,tinycolor2:307}],399:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../color"),a=t("./helpers").isUnifiedHover;e.exports=function(t,e,r,o){o=o||{};var s=e.legend;function l(t){o.font[t]||(o.font[t]=s?e.legend.font[t]:e.font[t])}e&&a(e.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),s?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},{"../../lib":498,"../color":361,"./helpers":397}],400:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}return r("clickmode"),r("hovermode")}},{"../../lib":498,"./layout_attributes":402}],401:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../dragelement"),o=t("./helpers"),s=t("./layout_attributes"),l=t("./hover");e.exports={moduleType:"component",name:"fx",constants:t("./constants"),schema:{layout:s},attributes:t("./attributes"),layoutAttributes:s,supplyLayoutGlobalDefaults:t("./layout_global_defaults"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,"hoverlabel."+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,"hoverinfo",(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll("g.hovertext").remove(),e.selectAll(".spikeline").remove()},click:t("./click")}},{"../../lib":498,"../dragelement":380,"./attributes":392,"./calc":393,"./click":394,"./constants":395,"./defaults":396,"./helpers":397,"./hover":398,"./layout_attributes":402,"./layout_defaults":403,"./layout_global_defaults":404,"@plotly/d3":58}],402:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../plots/font_attributes"),a=i({editType:"none"});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,grouptitlefont:i({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":580,"./constants":395}],403:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes"),a=t("./hovermode_defaults"),o=t("./hoverlabel_defaults");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}a(t,e)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var s=e._has("mapbox"),l=e._has("geo"),c=e._basePlotModules.length;"zoom"===e.dragmode&&((s||l)&&1===c||s&&l&&2===c)&&(e.dragmode="pan"),o(t,e,r),n.coerceFont(r,"hoverlabel.grouptitlefont",e.hoverlabel.font)}},{"../../lib":498,"./hoverlabel_defaults":399,"./hovermode_defaults":400,"./layout_attributes":402}],404:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./hoverlabel_defaults"),a=t("./layout_attributes");e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{"../../lib":498,"./hoverlabel_defaults":399,"./layout_attributes":402}],405:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../lib/regex").counter,a=t("../../plots/domain").attributes,o=t("../../plots/cartesian/constants").idRegex,s=t("../../plot_api/plot_template"),l={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[i("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:a({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(t,e,r){var n=e[r+"axes"],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+"gap",r),s=e("domain."+t);e(t+"side",n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h1){if(!h&&!p&&!d)"independent"===k("pattern")&&(h=!0);g._hasSubplotGrid=h;var x,b,_="top to bottom"===k("roworder"),w=h?.2:.1,T=h?.3:.1;m&&e._splomGridDflt&&(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),g._domains={x:u("x",k,w,x,y),y:u("y",k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,g,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&&r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,m=r.rows,g=r.columns,v="independent"===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(m);var b=1;for(n=0;n1);if(!1===_&&(e.legend=void 0),(!1!==_||f.uirevision)&&(p("uirevision",e.uirevision),!1!==_)){p("bgcolor",e.paper_bgcolor),p("bordercolor"),p("borderwidth");var w,T,k,A=i.coerceFont(p,"font",e.font),M="h"===p("orientation");if(M?(w=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?(T=1.1,k="bottom"):(T=-.1,k="top")):(w=1.02,T=1,k="auto"),p("traceorder",x),c.isGrouped(e.legend)&&p("tracegroupgap"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("x",w),p("xanchor"),p("y",T),p("yanchor",k),p("valign"),i.noneOrAll(f,h,["x","y"]),p("title.text")){p("title.side",M?"left":"top");var S=i.extendFlat({},A,{size:i.bigFont(A.size)});i.coerceFont(p,"title.font",S)}}}},{"../../lib":498,"../../plot_api/plot_template":538,"../../plots/attributes":545,"../../plots/layout_attributes":605,"../../registry":633,"./attributes":411,"./helpers":417}],414:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../lib/events"),l=t("../dragelement"),c=t("../drawing"),u=t("../color"),f=t("../../lib/svg_text_utils"),h=t("./handle_click"),p=t("./constants"),d=t("../../constants/alignment"),m=d.LINE_SPACING,g=d.FROM_TL,v=d.FROM_BR,y=t("./get_legend_data"),x=t("./style"),b=t("./helpers");function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&&(l.group=a._group),o.traceIs(a,"pie-like")&&(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,"plotly_legendclick",l))if(1===n)e._clickTimeout=setTimeout((function(){t._fullLayout&&h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,"plotly_legenddoubleclick",l)&&h(r,t,n)}}function w(t,e,r){var n,a,s=t.data()[0][0],l=s.trace,u=o.traceIs(l,"pie-like"),h=!r._inHover&&e._context.edits.legendText&&!u,d=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&&(n=i.templateString(n,l._meta))));var m=i.ensureSingle(t,"text","legendtext");m.attr("text-anchor","start").call(c.font,a).text(h?T(n,d):n);var g=r.itemwidth+2*p.itemGap;f.positionText(m,g,0),h?m.call(f.makeEditable,{gd:e,text:n}).call(A,t,e,r).on("edit",(function(n){this.text(T(n,d)).call(A,t,e,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,"groupby")){var u=o.getTransformIndices(a,"groupby"),f=u[u.length-1],h=i.keyedContainer(a,"transforms["+f+"].styles","target","value.name");h.set(s.trace._group,n),c=h.constructUpdate()}else c.name=n;return o.call("_guiRestyle",e,c,l.index)})):A(m,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||"").length;n>0;n--)t+=" ";return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,"rect","legendtoggle",(function(t){e._context.staticPlot||t.style("cursor","pointer").attr("pointer-events","all"),t.call(u.fill,"rgba(0,0,0,0)")}));e._context.staticPlot||(s.on("mousedown",(function(){(r=(new Date).getTime())-e._legendMouseDownTimea&&(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function A(t,e,r,n,i){n._inHover&&t.attr("data-notex",!0),f.convertToTspans(t,r,(function(){!function(t,e,r,n){var i=t.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend)return void t.remove();var a=t.select("g[class*=math-group]"),o=a.node();r||(r=e._fullLayout.legend);var s,l=r.borderwidth;s=1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font;var u,h,d=s.size*m;if(o){var g=c.bBox(o);u=g.height,h=g.width,1===n?c.setTranslate(a,l,l+.75*u):c.setTranslate(a,0,.25*u)}else{var v=t.select(1===n?".legendtitletext":".legendtext"),y=f.lineCount(v),x=v.node();if(u=d*y,h=x?c.bBox(x).width:0,1===n)"left"===r.title.side&&(h+=2*p.itemGap),f.positionText(v,l+p.titlePad,l+d);else{var b=2*p.itemGap+r.itemwidth;i.groupTitle&&(b=p.itemGap,h-=r.itemwidth),f.positionText(v,b,-d*((y-1)/2-.3))}}1===n?(r._titleWidth=h,r._titleHeight=u):(i.lineHeight=d,i.height=Math.max(u,16)+3,i.width=h)}(e,r,n,i)}))}function M(t){return i.isRightAnchor(t)?"right":i.isCenterAnchor(t)?"center":"left"}function S(t){return i.isBottomAnchor(t)?"bottom":i.isMiddleAnchor(t)?"middle":"top"}e.exports=function(t,e){return e||(e=t._fullLayout.legend||{}),function(t,e){var r,s,f=t._fullLayout,h="legend"+f._uid,d=e._inHover;d?(r=e.layer,h+="-hover"):r=f._infolayer;if(!r)return;t._legendMouseDownTime||(t._legendMouseDownTime=0);if(d){if(!e.entries)return;s=y(e.entries,e)}else{if(!t.calcdata)return;s=f.showlegend&&y(t.calcdata,e)}var m=f.hiddenlabels||[];if(!(d||f.showlegend&&s.length))return r.selectAll(".legend").remove(),f._topdefs.select("#"+h).remove(),a.autoMargin(t,"legend");var T=i.ensureSingle(r,"g","legend",(function(t){d||t.attr("pointer-events","all")})),E=i.ensureSingleById(f._topdefs,"clipPath",h,(function(t){t.append("rect")})),L=i.ensureSingle(T,"rect","bg",(function(t){t.attr("shape-rendering","crispEdges")}));L.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px");var C=i.ensureSingle(T,"g","scrollbox"),P=e.title;if(e._titleWidth=0,e._titleHeight=0,P.text){var I=i.ensureSingle(C,"text","legendtitletext");I.attr("text-anchor","start").call(c.font,P.font).text(P.text),A(I,C,t,e,1)}else C.selectAll(".legendtitletext").remove();var O=i.ensureSingle(T,"rect","scrollbar",(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll("g.groups").data(s);z.enter().append("g").attr("class","groups"),z.exit().remove();var D=z.selectAll("g.traces").data(i.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.style("opacity",(function(t){var e=t[0].trace;return o.traceIs(e,"pie-like")?-1!==m.indexOf(t[0].label)?.5:1:"legendonly"===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){d||n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,m=2*(u+h),g=S(i),v=i.y<0||0===i.y&&"top"===g,y=i.y>1||1===i.y&&"bottom"===g,x=i.tracegroupgap;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var _=0;i._width=0,i._height=0;var w=function(t){var e=0,r=0,n=t.title.side;n&&(-1!==n.indexOf("left")&&(e=t._titleWidth),-1!==n.indexOf("top")&&(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+w[0],u+w[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),_=d+i._width,i._width+=h+d+f,i._height+=m,l&&(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var T=M(i),k=i.x<0||0===i.x&&"right"===T,A=i.x>1||1===i.x&&"left"===T,E=y||v,L=a.width/2;i._maxWidth=Math.max(k?E&&"left"===T?o.l+o.w:L:A?E&&"right"===T?o.r+o.w:L:o.w,2*d);var C=0,P=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),P+=e})),_=null;var I=0;if(l){var O=0,z=0,D=0;e.each((function(){var t=0,e=0;n.select(this).selectAll("g.traces").each((function(r){var n=r[0].width,i=r[0].height;c.setTranslate(this,w[0],w[1]+u+h+i/2+e),e+=i,t=Math.max(t,d+n)}));var r=t+h;z>0&&r+u+z>i._maxWidth?(I=Math.max(I,z),z=0,D+=O+x,O=e):O=Math.max(O,e),c.setTranslate(this,z,D),z+=r})),i._width=Math.max(I,z)+u,i._height=D+O+m}else{var R=r.size(),F=P+f+(R-1)*h=i._maxWidth&&(I=Math.max(I,U),N=0,j+=B,i._height+=B,B=0),c.setTranslate(this,w[0]+u+N,w[1]+u+j+e/2+h),U=N+r+h,N+=n,B=Math.max(B,e)})),F?(i._width=N+f,i._height=B+m):(i._width=Math.max(I,U)+f,i._height+=B+m)}}i._width=Math.ceil(Math.max(i._width+w[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+w[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=t._context.edits,H=V.legendText||V.legendPosition;r.each((function(t){var e=n.select(this).select(".legendtoggle"),r=t[0].height,i=H?d:_||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,D,e)},function(){var s,u,m,y,x=f._size,b=e.borderwidth;if(!d){if(function(t){var e=t._fullLayout.legend,r=M(e),n=S(e);return a.autoMargin(t,"legend",{x:e.x,y:e.y,l:e._width*g[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*g[n]})}(t))return;var w=x.l+x.w*e.x-g[M(e)]*e._width,k=x.t+x.h*(1-e.y)-g[S(e)]*e._effHeight;if(f.margin.autoexpand){var A=w,P=k;w=i.constrain(w,0,f.width-e._width),k=i.constrain(k,0,f.height-e._effHeight),w!==A&&i.log("Constrain legend.x to make legend fit inside graph"),k!==P&&i.log("Constrain legend.y to make legend fit inside graph")}c.setTranslate(T,w,k)}if(O.on(".drag",null),T.on("wheel",null),d||e._height<=e._maxHeight||t._context.staticPlot){var I=e._effHeight;d&&(I=e._height),L.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),E.select("rect").attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,h,t),c.setRect(O,0,0,0,0),delete e._scrollY}else{var z,D,R,F=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),B=e._effHeight-F-2*p.scrollBarMargin,N=e._height-e._effHeight,j=B/N,U=Math.min(e._scrollY||0,N);L.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),E.select("rect").attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+U}),c.setClipUrl(C,h,t),q(U,F,j),T.on("wheel",(function(){q(U=i.constrain(e._scrollY+n.event.deltaY/B*N,0,N),F,j),0!==U&&U!==N&&n.event.preventDefault()}));var V=n.behavior.drag().on("dragstart",(function(){var t=n.event.sourceEvent;z="touchstart"===t.type?t.changedTouches[0].clientY:t.clientY,R=U})).on("drag",(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(D="touchmove"===t.type?t.changedTouches[0].clientY:t.clientY,q(U=function(t,e,r){var n=(r-e)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));O.call(V);var H=n.behavior.drag().on("dragstart",(function(){var t=n.event.sourceEvent;"touchstart"===t.type&&(z=t.changedTouches[0].clientY,R=U)})).on("drag",(function(){var t=n.event.sourceEvent;"touchmove"===t.type&&(D=t.changedTouches[0].clientY,q(U=function(t,e,r){var n=(e-r)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));C.call(H)}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(O,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),E.select("rect").attr("y",b+r)}t._context.edits.legendPosition&&(T.classed("cursor-move",!0),l.init({element:T.node(),gd:t,prepFn:function(){var t=c.getTranslate(T);m=t.x,y=t.y},moveFn:function(t,r){var n=m+t,i=y+r;c.setTranslate(T,n,i),s=l.align(n,0,x.l,x.l+x.w,e.xanchor),u=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==s&&void 0!==u&&o.call("_guiRelayout",t,{"legend.x":s,"legend.y":u})},clickFn:function(e,n){var i=r.selectAll("g.traces").filter((function(){var t=this.getBoundingClientRect();return n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom}));i.size()>0&&_(t,T,i,e,n)}}))}],t)}(t,e)}},{"../../constants/alignment":466,"../../lib":498,"../../lib/events":487,"../../lib/svg_text_utils":524,"../../plots/plots":614,"../../registry":633,"../color":361,"../dragelement":380,"../drawing":383,"./constants":412,"./get_legend_data":415,"./handle_click":416,"./helpers":417,"./style":419,"@plotly/d3":58}],415:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("./helpers");e.exports=function(t,e){var r,a,o=e._inHover,s=i.isGrouped(e),l=i.isReversed(e),c={},u=[],f=!1,h={},p=0,d=0;function m(t,r){if(""!==t&&i.isGrouped(e))-1===u.indexOf(t)?(u.push(t),f=!0,c[t]=[r]):c[t].push(r);else{var n="~~i"+p;u.push(n),c[n]=[r],p++}}for(r=0;rA&&(k=A)}w[r][0]._groupMinRank=k,w[r][0]._preGroupSort=r}var M=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(w.forEach((function(t,e){t[0]._preGroupSort=e})),w.sort((function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort})),r=0;rr?r:t}e.exports=function(t,e,r){var v=e._fullLayout;r||(r=v.legend);var y="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&&e.width>0))return 0;i=e.width}return y?n:Math.min(i,r)};function T(t,a,o){var u=t[0].trace,f=u.marker||{},h=f.line||{},p=o?u.visible&&u.type===o:i.traceIs(u,"bar"),d=n.select(a).select("g.legendpoints").selectAll("path.legend"+o).data(p?[t]:[]);d.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),d.exit().remove(),d.each((function(t){var i=n.select(this),a=t[0],o=w(a.mlw,f.line,5,2);i.style("stroke-width",o+"px");var p=a.mcc;if(!r._inHover&&"mc"in a){var d=c(f),m=d.mid;void 0===m&&(m=(d.max+d.min)/2),p=s.tryColorscale(f,"")(m)}var v=p||a.mc||f.color,y=f.pattern,x=y&&s.getPatternAttr(y.shape,0,"");if(x){var b=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),T=y.fgopacity,k=g(y.size,8,10),A=g(y.solidity,.5,1),M="legend-"+u.uid;i.call(s.pattern,"legend",e,M,x,k,A,p,y.fillmode,b,_,T)}else i.call(l.fill,v);o&&l.stroke(i,a.mlc||h.color)}))}function k(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&&s.type===r:i.traceIs(s,r),c=n.select(e).select("g.legendpoints").selectAll("path.legend"+r).data(l?[t]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=w(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var m=a.minExtend(o,{trace:d});f(c,m,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,"g","layers");i.style("opacity",t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if("middle"!==s&&l&&c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr("transform",o(0,u))}else i.attr("transform",null);i.selectAll("g.legendfill").data([t]).enter().append("g").classed("legendfill",!0),i.selectAll("g.legendlines").data([t]).enter().append("g").classed("legendlines",!0);var f=i.selectAll("g.legendsymbols").data([t]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([t]).enter().append("g").classed("legendpoints",!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,m=h.reversescale;if(p){if(!r){var g=p.length;u=0===o?p[m?g-1:0][1]:1===o?p[m?0:g-1][1]:p[Math.floor((g-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr("d",t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n="legendfill-"+i.uid;s.gradient(t,e,n,d(m,"radial"===r),p,"fill")}}))}))})).each((function(t){var e=t[0].trace,r="waterfall"===e.type;if(t[0]._distinct&&r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,T(t,this,"waterfall")}var a=[];e.visible&&r&&(a=t[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(a);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=w(void 0,i.line,5,2);r.attr("d",t[1]).style("stroke-width",a+"px").call(l.fill,i.color),a&&r.call(l.stroke,i.line.color)}))})).each((function(t){T(t,this,"funnel")})).each((function(t){T(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&i.traceIs(r,"box-violin")?[t]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var t=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=w(void 0,r.line,5,2);t.style("stroke-width",i+"px").call(l.fill,r.fillcolor),i&&l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:y?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(s.pointStyle,c,e)}}))})).each((function(t){k(t,this,"funnelarea")})).each((function(t){k(t,this,"pie")})).each((function(t){var r,i,o=m(t),l=o.showFill,f=o.showLine,h=o.showGradientLine,p=o.showGradientFill,g=o.anyFill,v=o.anyLine,y=t[0],b=y.trace,_=c(b),T=_.colorscale,k=_.reversescale,A=u.hasMarkers(b)||!g?"M5,0":v?"M5,-2":"M5,-3",M=n.select(this),S=M.select(".legendfill").selectAll("path").data(l||p?[t]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",A+"h"+x+"v6h-"+x+"z").call((function(t){if(t.size())if(l)s.fillGroupStyle(t,e);else{var r="legendfill-"+b.uid;s.gradient(t,e,r,d(k),T,"fill")}})),f||h){var E=w(void 0,b.line,10,5);i=a.minExtend(b,{line:{width:E}}),r=[a.minExtend(y,{trace:i})]}var L=M.select(".legendlines").selectAll("path").data(f||h?[r]:[]);L.enter().append("path").classed("js-line",!0),L.exit().remove(),L.attr("d",A+(h?"l"+x+",0.0001":"h"+x)).call(f?s.lineGroupStyle:function(t){if(t.size()){var r="legendline-"+b.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(k),T,"stroke")}})})).each((function(t){var r,i,o=m(t),l=o.anyFill,c=o.anyLine,f=o.showLine,h=o.showMarker,p=t[0],d=p.trace,g=!h&&!c&&!l&&u.hasText(d);function v(t,e,r,n){var i=a.nestedProperty(d,t).get(),o=a.isArrayOrTypedArray(i)&&e?e(i):i;if(y&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function x(t){return p._distinct&&p.index&&t[p.index]?t[p.index]:t[0]}if(h||g||f){var b={},w={};if(h){b.mc=v("marker.color",x),b.mx=v("marker.symbol",x),b.mo=v("marker.opacity",a.mean,[.2,1]),b.mlc=v("marker.line.color",x),b.mlw=v("marker.line.width",a.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var T=v("marker.size",a.mean,[2,16],12);b.ms=T,w.marker.size=T}f&&(w.line={width:v("line.width",x,[0,10],5)}),g&&(b.tx="Aa",b.tp=v("textposition",x),b.ts=10,b.tc=v("textfont.color",x),b.tf=v("textfont.family",x)),r=[a.minExtend(p,b)],(i=a.minExtend(d,w)).selectedpoints=null,i.texttemplate=null}var k=n.select(this).select("g.legendpoints"),A=k.selectAll("path.scatterpts").data(h?r:[]);A.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),A.exit().remove(),A.call(s.pointStyle,i,e),h&&(r[0].mrc=3);var M=k.selectAll("g.pointtext").data(g?r:[]);M.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),M.exit().remove(),M.selectAll("text").call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(e.visible&&"candlestick"===e.type?[t,t]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(t,e){return e?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?"increasing":"decreasing"],o=w(void 0,a.line,5,2);i.style("stroke-width",o+"px").call(l.fill,a.fillcolor),o&&l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(e.visible&&"ohlc"===e.type?[t,t]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(t,e){return e?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?"increasing":"decreasing"],o=w(void 0,a.line,5,2);i.style("fill","none").call(s.dashLine,a.line.dash,o),o&&l.stroke(i,a.line.color)}))}))}},{"../../lib":498,"../../registry":633,"../../traces/pie/helpers":901,"../../traces/pie/style_one":907,"../../traces/scatter/subtypes":947,"../color":361,"../colorscale/helpers":372,"../drawing":383,"./constants":412,"@plotly/d3":58}],420:[function(t,e,r){"use strict";t("./constants");e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},{"./constants":422}],421:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../plots/plots"),a=t("../../plots/cartesian/axis_ids"),o=t("../../fonts/ploticon"),s=t("../shapes/draw").eraseActiveShape,l=t("../../lib"),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if("zoom"===s){var p,d="in"===l?.5:2,m=(1+d)/2,g=(1-d)/2;for(i=0;i1?(I=["toggleHover"],O=["resetViews"]):v?(P=["zoomInGeo","zoomOutGeo"],I=["hoverClosestGeo"],O=["resetGeo"]):g?(I=["hoverClosest3d"],O=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(P=["zoomInMapbox","zoomOutMapbox"],I=["toggleHover"],O=["resetViewMapbox"]):b?I=["hoverClosestGl2d"]:y?I=["hoverClosestPie"]:A?(I=["hoverClosestCartesian","hoverCompareCartesian"],O=["resetViewSankey"]):I=["toggleHover"];m&&(I=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(t){for(var e=0;e0)){var m=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a=n.max)e=F[r+1];else if(t=n.pmax)e=F[r+1];else if(t0?h+c:c;return{ppad:c,ppadplus:u?d:m,ppadminus:u?m:d}}return{ppad:c}}function u(t,e,r,n,i){var s="category"===t.type||"multicategory"===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for("date"===t.type&&(s=o.decodeDate(s)),l=0;lp&&(p=f)));return p>=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var o=0;oy?(k=f,E="y0",A=y,L="y1"):(k=y,E="y1",A=f,L="y0");Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l="";"paper"===n||o.autorange||(l+=n);"paper"===i||s.autorange||(l+=i);u.setClipUrl(t,l?"clip"+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn="move"===O?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call("_guiRelayout",t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))O=null;else if(R)O="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&&i>10&&a>10&&!r.shiftKey?h.getCursor(o/i,1-s/a):"move";p(e,l),O=l.split("-")[0]}}function J(n,i){if("path"===r.type){var a=function(t){return t},o=a,l=a;z?B("xanchor",r.xanchor=G(x+n)):(o=function(t){return G(H(t)+n)},N&&"date"===N.type&&(o=m.encodeDate(o))),D?B("yanchor",r.yanchor=Y(T+i)):(l=function(t){return Y(q(t)+i)},U&&"date"===U.type&&(l=m.encodeDate(l))),B("path",r.path=w(I,o,l))}else z?B("xanchor",r.xanchor=G(x+n)):(B("x0",r.x0=G(c+n)),B("x1",r.x1=G(g+n))),D?B("yanchor",r.yanchor=Y(T+i)):(B("y0",r.y0=Y(f+i)),B("y1",r.y1=Y(y+i)));e.attr("d",_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;z?B("xanchor",r.xanchor=G(x+n)):(o=function(t){return G(H(t)+n)},N&&"date"===N.type&&(o=m.encodeDate(o))),D?B("yanchor",r.yanchor=Y(T+i)):(l=function(t){return Y(q(t)+i)},U&&"date"===U.type&&(l=m.encodeDate(l))),B("path",r.path=w(I,o,l))}else if(R){if("resize-over-start-point"===O){var u=c+n,h=D?f-i:f+i;B("x0",r.x0=z?u:G(u)),B("y0",r.y0=D?h:Y(h))}else if("resize-over-end-point"===O){var p=g+n,d=D?y-i:y+i;B("x1",r.x1=z?p:G(p)),B("y1",r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==O.indexOf(t)},b=v("n"),j=v("s"),V=v("w"),W=v("e"),X=b?k+i:k,Z=j?A+i:A,J=V?M+n:M,K=W?S+n:S;D&&(b&&(X=k-i),j&&(Z=A-i)),(!D&&Z-X>10||D&&X-Z>10)&&(B(E,r[E]=D?X:Y(X)),B(L,r[L]=D?Z:Y(Z))),K-J>10&&(B(C,r[C]=z?J:G(J)),B(P,r[P]=z?K:G(K)))}e.attr("d",_(t,r)),Q(s,r)}function Q(t,e){(z||D)&&function(){var r="path"!==e.type,n=t.selectAll(".visual-cue").data([0]);n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var a=H(z?e.xanchor:i.midRange(r?[e.x0,e.x1]:m.extractPathCoords(e.path,d.paramIsX))),o=q(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:m.extractPathCoords(e.path,d.paramIsY)));if(a=m.roundPositionForSharpStrokeRendering(a,1),o=m.roundPositionForSharpStrokeRendering(o,1),z&&D){var s="M"+(a-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(z){var l="M"+(a-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";n.attr("d",l)}else{var c="M"+(a-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";n.attr("d",c)}}()}function $(t){t.selectAll(".visual-cue").remove()}h.init(X),W.node().onmousemove=Z}(t,z,l,e,r,O):!0===l.editable&&z.style("pointer-events",P||c.opacity(S)*M<=.5?"stroke":"all");z.node().addEventListener("click",(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute("data-index");if(r>=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,g(t)}}(t,z)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(t,n?"clip"+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),g=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?"domain"===p?n=function(t){return v._offset+v._length*t}:(r=m.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?"domain"===g?s=function(t){return y._offset+y._length*(1-t)}:(o=m.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},"path"===h)return v&&"date"===v.type&&(n=m.decodeDate(n)),y&&"date"===y.type&&(s=m.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t="pixel"===a?e(s)+Number(t):e(t):f[n]&&(t="pixel"===o?r(l)-Number(t):r(t)),++n>h&&(t="X"),t}));return n>h&&(p=p.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+t)),c+p}))}(e,n,s);if("pixel"===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if("pixel"===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if("line"===h)return"M"+l+","+u+"L"+c+","+f;if("rect"===h)return"M"+l+","+u+"H"+c+"V"+f+"H"+l+"Z";var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),A=Math.abs(T-u),M="A"+k+","+A,S=w+k+","+T;return"M"+S+M+" 0 1,1 "+(w+","+(T-A))+M+" 0 0,1 "+S+"Z"}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n>=s||(a[n]?t=e(t):o[n]&&(t=r(t)),n++),t}))}))}function T(t){y(t)&&(t._fullLayout._activeShapeIndex>=0&&(l(t),delete t._fullLayout._activeShapeIndex,g(t)))}e.exports={draw:g,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e=0&&f(v),r.attr("d",m(e)),A&&!h)&&(k=function(t,e){for(var r=0;r1&&(2!==t.length||"Z"!==t[1][0])&&(0===T&&(t[0][0]="M"),e[w]=t,y(),x())}}()}}function I(t,r){!function(t,r){if(e.length)for(var n=0;n0&&l0&&(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr("transform",l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function L(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(t,e,r){var n=r._dims,i=s.ensureSingle(t,"rect",f.railTouchRectClass,(function(n){n.call(A,e,t,r).style("pointer-events","all")}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr("opacity",0),o.setTranslate(i,0,n.currentValueTotalHeight)}function P(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,"rect",f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px"),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i0?[0]:[]);function s(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,g(e))}if(a.enter().append("g").classed(f.containerClassName,!0).style("cursor","ew-resize"),a.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll("g."+f.groupClassName).data(r,v);l.enter().append("g").classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c0||h<0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr("transform",l(v[0],v[1]))}}}return R.call(F),O&&(E?R.on(".opacity",null):(A=0,M=!0,R.text(y).on("mouseover.opacity",(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)}))),R.call(f.makeEditable,{gd:t}).on("edit",(function(e){void 0!==x?o.call("_guiRestyle",t,v,e,x):o.call("_guiRelayout",t,v,e)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(F)})).on("input",(function(t){this.text(t||" ").call(f.positionText,_.x,_.y)}))),R.classed("js-placeholder",M),T}}},{"../../constants/alignment":466,"../../constants/interactions":473,"../../lib":498,"../../lib/svg_text_utils":524,"../../plots/plots":614,"../../registry":633,"../color":361,"../drawing":383,"@plotly/d3":58,"fast-isnumeric":185}],460:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../color/attributes"),a=t("../../lib/extend").extendFlat,o=t("../../plot_api/edit_types").overrideAll,s=t("../../plots/pad_attributes"),l=t("../../plot_api/plot_template").templatedArray,c=l("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});e.exports=o(l("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:a(s({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:i.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":488,"../../plot_api/edit_types":531,"../../plot_api/plot_template":538,"../../plots/font_attributes":580,"../../plots/pad_attributes":613,"../color/attributes":360}],461:[function(t,e,r){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25c4",right:"\u25ba",up:"\u25b2",down:"\u25bc"}}},{}],462:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/array_container_defaults"),a=t("./attributes"),o=t("./constants").name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o("visible",i(t,e,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(t,e,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r("visible","skip"===t.method||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{"../../lib":498,"../../plots/array_container_defaults":544,"./attributes":460,"./constants":461}],463:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../plots/plots"),a=t("../color"),o=t("../drawing"),s=t("../../lib"),l=t("../../lib/svg_text_utils"),c=t("../../plot_api/plot_template").arrayEditor,u=t("../../constants/alignment").LINE_SPACING,f=t("./constants"),h=t("./scrollbox");function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function m(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate("active",o),"buttons"===e.type?v(t,n,null,null,e):"dropdown"===e.type&&(i.attr(f.menuIndexAttrName,"-1"),g(t,n,i,a,e),s||v(t,n,i,a,e))}function g(t,e,r,n,i){var a=s.ensureSingle(e,"g",f.headerClassName,(function(t){t.style("pointer-events","all")})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(M,i,h,p),s.ensureSingle(e,"text",f.headerArrowClassName,(function(t){t.attr("text-anchor","end").call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on("click",(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on("mouseover",(function(){a.call(w)})),a.on("mouseout",(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr("pointer-events","all");var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(s.filterVisible(l)),h=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(h.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var d=0,g=0,v=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?g=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(g=-f.gapButtonHeader+f.gapButton-v.openHeight),"dropdown"===o.type&&"left"===o.direction&&(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+g+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(M,o,b),c.on("click",(function(){n.event.defaultPrevented||(s.execute&&(s.args2&&o.active===l?(m(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(m(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit("plotly_buttonclicked",{menu:o,button:s,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&&(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u="up"===c||"down"===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll("g."+f.headerGroupClassName).data(r,p);l.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(t){t.style("pointer-events","all")})),u=0;uw,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,S=d,E=g+v;E+M>c&&(E=c-M);var L=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,s.barColor),k?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=v>T,P=s.barWidth+2*s.barPad,I=s.barLength+2*s.barPad,O=d+m,z=g;O+P>l&&(O=l-P);var D=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,s.barColor),C?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:O,y:z,width:P,height:I}),this._vbarYMin=z+I/2,this._vbarTranslateMax=T-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=C?f+P+.5:f+.5,N=h-.5,j=k?p+M+.5:p+.5,U=o._topdefs.selectAll("#"+R).data(k||C?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",R).append("rect"),k||C?(this._clipRect=U.select("rect").attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:g,width:m,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),k||C){var V=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var H=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(H),C&&this.vbar.on(".drag",null).call(H)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=n.event.dx),this.vbar&&(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=n.event.deltaY),this.vbar&&(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{"../../lib":498,"../color":361,"../drawing":383,"@plotly/d3":58}],466:[function(t,e,r){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],467:[function(t,e,r){"use strict";e.exports={axisRefDescription:function(t,e,r){return["If set to a",t,"axis id (e.g. *"+t+"* or","*"+t+"2*), the `"+t+"` position refers to a",t,"coordinate. If set to *paper*, the `"+t+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+r+"). If set to a",t,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+t+"2 domain* refers to the domain of the second",t," axis and a",t,"position of 0.5 refers to the","point between the",e,"and the",r,"of the domain of the","second",t,"axis."].join(" ")}}},{}],468:[function(t,e,r){"use strict";e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25b2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25bc"}}},{}],469:[function(t,e,r){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},{}],470:[function(t,e,r){"use strict";e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],471:[function(t,e,r){"use strict";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],472:[function(t,e,r){"use strict";e.exports={circle:"\u25cf","circle-open":"\u25cb",square:"\u25a0","square-open":"\u25a1",diamond:"\u25c6","diamond-open":"\u25c7",cross:"+",x:"\u274c"}},{}],473:[function(t,e,r){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],474:[function(t,e,r){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},{}],475:[function(t,e,r){"use strict";r.xmlns="http://www.w3.org/2000/xmlns/",r.svg="http://www.w3.org/2000/svg",r.xlink="http://www.w3.org/1999/xlink",r.svgAttrs={xmlns:r.svg,"xmlns:xlink":r.xlink}},{}],476:[function(t,e,r){"use strict";r.version=t("./version").version,t("native-promise-only"),t("../build/plotcss");for(var n=t("./registry"),i=r.register=n.register,a=t("./plot_api"),o=Object.keys(a),s=0;splotly-logomark"}}},{}],478:[function(t,e,r){"use strict";r.isLeftAnchor=function(t){return"left"===t.xanchor||"auto"===t.xanchor&&t.x<=1/3},r.isCenterAnchor=function(t){return"center"===t.xanchor||"auto"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isRightAnchor=function(t){return"right"===t.xanchor||"auto"===t.xanchor&&t.x>=2/3},r.isTopAnchor=function(t){return"top"===t.yanchor||"auto"===t.yanchor&&t.y>=2/3},r.isMiddleAnchor=function(t){return"middle"===t.yanchor||"auto"===t.yanchor&&t.y>1/3&&t.y<2/3},r.isBottomAnchor=function(t){return"bottom"===t.yanchor||"auto"===t.yanchor&&t.y<=1/3}},{}],479:[function(t,e,r){"use strict";var n=t("./mod"),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])>s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0](n=i(n,s))&&(n+=s);var a=i(t,s),o=a+s;return a>=r&&a<=n||o>=r&&o<=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,m=l([r,n]);function g(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}m?(u=0,f=o,h=s):r=i&&t<=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{"./mod":505}],480:[function(t,e,r){"use strict";var n=Array.isArray,i="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a="undefined"==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&&!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;ii.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&ti.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if("string"!=typeof t){var i="number"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&&t.length&&t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){"auto"===t?e.set("auto"):n(t)?e.set(f(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);"string"==typeof t&&i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||"string"==typeof t&&!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if("string"==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split("+"),a=0;a=n&&t<=i?t:u}if("string"!=typeof t&&"number"!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||"G"!==v&&"g"!==v||(t=t.substr(1),e="");var w=c&&"chinese"===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],A=T[3]||"1",M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),L=Number(T[11]||0);if(c){if(2===k.length)return u;var C;k=Number(k);try{var P=g.getComponentMethod("calendars","getCal")(e);if(w){var I="i"===A.charAt(A.length-1);A=parseInt(A,10),C=P.newDate(k,P.toMonthIndex(k,A,I),M)}else C=P.newDate(k,Number(A),M)}catch(t){return u}return C?(C.toJD()-m)*f+S*h+E*p+L*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),A-=1;var O=new Date(Date.UTC(2e3,A,M,S,E));return O.setUTCFullYear(k),O.getUTCMonth()!==A||O.getUTCDate()!==M?u:O.getTime()+L*d},n=r.MIN_MS=r.dateTime2ms("-9999"),i=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,A=5*p;function M(t,e,r,n,i){if((e||r||n||i)&&(t+=" "+w(e,2)+":"+w(r,2),(n||i)&&(t+=":"+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+="."+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if("number"!=typeof t||!(t>=n&&t<=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+m,E=Math.floor(l(t,f));try{a=g.getComponentMethod("calendars","getCal")(r).fromJD(S).formatDate("yyyy-mm-dd")}catch(t){a=v("G%Y-%m-%d")(new Date(w))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=e=n+f&&t<=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return M(a("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||"number"==typeof t&&isFinite(t)){if(_(n))return s.error("JS Dates and milliseconds are incompatible with world calendars",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error("unrecognized date",t),e;return t};var S=/%\d?f/g,E=/%h/g,L={1:"1",2:"1",3:"2",4:"2"};function C(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(e+.05));if(t=t.replace(E,(function(){return L[r("%q")(i)]})),_(n))try{t=g.getComponentMethod("calendars","worldCalFmt")(t,e,n)}catch(t){return"Invalid"}return r(t)(i)}var P=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&&i,!e)if("y"===r)e=a.year;else if("m"===r)e=a.month;else{if("d"!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+":"+w(l(Math.floor(r/p),60),2);if("M"!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),P[e])).toFixed(e).substr(1);e>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}(t,r)+"\n"+C(a.dayMonthYear,t,n,i);e=a.dayMonth+"\n"+a.year}return C(e,t,n,i)};var I=3*f;r.incrementMonth=function(t,e,r){r=_(r)&&r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+m,a=g.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return e%12?a.add(o,e,"m"):a.add(o,e/12,"y"),(o.toJD()-m)*f+n}catch(e){s.error("invalid ms "+t+" in calendar "+r)}var c=new Date(t+I);return c.setUTCMonth(c.getUTCMonth()+e)+n-I},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&&g.getComponentMethod("calendars","getCal")(e),u=0;u0&&t[e+1][0]<0)return e;return null}switch(e="RUS"===s||"FJI"===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;ie?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case"MultiPolygon":for(r=0;ri&&(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log(["Location",n.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[r]}switch(r.type){case"FeatureCollection":var h=r.features;for(n=0;n100?(clearInterval(a),n("Unexpected error while fetching from "+t)):void i++}),50)}))}for(var o=0;o0&&(r.push(i),i=[])}return i.length>0&&r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:"Polygon",coordinates:t};for(var e=new Array(t.length),r=0;r1||m<0||m>1?null:{x:t+l*m,y:e+f*m}}function l(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,m=h*h+p*p,g=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,m,t-i,e-a),l(h,p,m,r-i,n-a));return Math.sqrt(g)},r.getTextLocation=function(t,e,r,s){if(t===i&&s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&&(i=r);var c=r.xo?r.x-o:0,f=r.yl?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)>f)return;p=h(c)}for(p=h(f);p;){if(c>(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]>t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f0?p=i:h=i,f++}return a}},{"./mod":505}],494:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("tinycolor2"),a=t("color-normalize"),o=t("../components/colorscale"),s=t("../components/color/attributes").defaultLine,l=t("./array").isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,m=t.color,g=l(m),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=g?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,g||v)for(var b=0;b1?(r*t+r*e)/r:t+e,i=String(n).length;if(i>16){var a=String(e).length;if(i>=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},{}],498:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-time-format").utcFormat,a=t("d3-format").format,o=t("fast-isnumeric"),s=t("../constants/numerical"),l=s.FP_SAFE,c=-l,u=s.BADNUM,f=e.exports={};f.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:"0.f"===t?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var h={};f.warnBadFormat=function(t){var e=String(t);h[e]||(h[e]=1,f.warn('encountered bad format: "'+e+'"'))},f.noFormat=function(t){return String(t)},f.numberFormat=function(t){var e;try{e=a(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return e},f.nestedProperty=t("./nested_property"),f.keyedContainer=t("./keyed_container"),f.relativeAttr=t("./relative_attr"),f.isPlainObject=t("./is_plain_object"),f.toLogRange=t("./to_log_range"),f.relinkPrivateKeys=t("./relink_private");var p=t("./array");f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var d=t("./mod");f.mod=d.mod,f.modHalf=d.modHalf;var m=t("./coerce");f.valObjectMeta=m.valObjectMeta,f.coerce=m.coerce,f.coerce2=m.coerce2,f.coerceFont=m.coerceFont,f.coercePattern=m.coercePattern,f.coerceHoverinfo=m.coerceHoverinfo,f.coerceSelectionMarkerOpacity=m.coerceSelectionMarkerOpacity,f.validate=m.validate;var g=t("./dates");f.dateTime2ms=g.dateTime2ms,f.isDateTime=g.isDateTime,f.ms2DateTime=g.ms2DateTime,f.ms2DateTimeLocal=g.ms2DateTimeLocal,f.cleanDate=g.cleanDate,f.isJSDate=g.isJSDate,f.formatDate=g.formatDate,f.incrementMonth=g.incrementMonth,f.dateTick0=g.dateTick0,f.dfltRange=g.dfltRange,f.findExactDates=g.findExactDates,f.MIN_MS=g.MIN_MS,f.MAX_MS=g.MAX_MS;var v=t("./search");f.findBin=v.findBin,f.sorterAsc=v.sorterAsc,f.sorterDes=v.sorterDes,f.distinctVals=v.distinctVals,f.roundUp=v.roundUp,f.sort=v.sort,f.findIndexOfMin=v.findIndexOfMin,f.sortObjectKeys=t("./sort_object_keys");var y=t("./stats");f.aggNums=y.aggNums,f.len=y.len,f.mean=y.mean,f.median=y.median,f.midRange=y.midRange,f.variance=y.variance,f.stdev=y.stdev,f.interp=y.interp;var x=t("./matrix");f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=t("./angles");f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=t("./anchor_utils");f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=t("./geometry2d");f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=t("./extend");f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var k=t("./loggers");f.log=k.log,f.warn=k.warn,f.error=k.error;var A=t("./regex");f.counterRegex=A.counter;var M=t("./throttle");f.throttle=M.throttle,f.throttleDone=M.done,f.clearThrottle=M.clear;var S=t("./dom");function E(t){var e={};for(var r in t)for(var n=t[r],i=0;il||t=e)&&(o(t)&&t>=0&&t%1==0)},f.noop=t("./noop"),f.identity=t("./identity"),f.repeat=function(t,e){for(var r=new Array(e),n=0;nr?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},f.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},f.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(f.warn("randstr failed uniqueness"),l):t(e,r,n,(i||0)+1):l},f.OptionControl=function(t,e){t||(t={}),e||(e="opt");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r["_"+e]=t,r},f.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},f.syncOrAsync=function(t,e,r){var n;function i(){return f.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(i);return r&&r(e)},f.stripTrailingSlash=function(t){return"/"===t.substr(-1)?t.substr(0,t.length-1):t},f.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n0?e:0}))},f.fillArray=function(t,e,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(t))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var z=/^\w*$/;f.templateString=function(t,e){var r={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,n){var i;return z.test(n)?i=e[n]:(r[n]=r[n]||f.nestedProperty(e,n).get,i=r[n]()),f.isValidTextValue(i)?i:""}))};var D={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return B.apply(D,arguments)};var R={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return B.apply(R,arguments)};var F=/^[:|\|]/;function B(t,e,r){var n=this,a=arguments;e||(e={});var o={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,s,l){var c,u,h,p="_xother"===s||"_yother"===s,d="_xother_"===s||"_yother_"===s,m="xother_"===s||"yother_"===s,g="xother"===s||"yother"===s||p||m||d,v=s;if((p||d)&&(v=v.substring(1)),(m||d)&&(v=v.substring(0,v.length-1)),g){if(void 0===(c=e[v]))return""}else for(h=3;h=48&&o<=57,c=s>=48&&s<=57;if(l&&(n=10*n+o-48),c&&(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var N=2e9;f.seedPseudoRandom=function(){N=2e9},f.pseudoRandom=function(){var t=N;return N=(69069*N+1)%4294967296,Math.abs(N-t)<429496729?f.pseudoRandom():N/4294967296},f.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=f.extractOption(t,e,"htx","hovertext");if(f.isValidTextValue(i))return n(i);var a=f.extractOption(t,e,"tx","text");return f.isValidTextValue(a)?n(a):void 0},f.isValidTextValue=function(t){return t||0===t},f.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+"%",n=0;n1&&(c=1):c=0,f.strTranslate(i-c*(r+o),a-c*(n+s))+f.strScale(c)+(l?"rotate("+l+(e?"":" "+r+" "+n)+")":"")},f.ensureUniformFontSize=function(t,e){var r=f.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},f.join2=function(t,e,r){var n=t.length;return n>1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},f.bigFont=function(t){return Math.round(1.2*t)};var j=f.getFirefoxVersion(),U=null!==j&&j<86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{"../constants/numerical":474,"./anchor_utils":478,"./angles":479,"./array":480,"./clean_number":481,"./clear_responsive":483,"./coerce":484,"./dates":485,"./dom":486,"./extend":488,"./filter_unique":489,"./filter_visible":490,"./geometry2d":493,"./identity":496,"./increment":497,"./is_plain_object":499,"./keyed_container":500,"./localize":501,"./loggers":502,"./make_trace_groups":503,"./matrix":504,"./mod":505,"./nested_property":506,"./noop":507,"./notifier":508,"./preserve_drawing_buffer":512,"./push_unique":513,"./regex":515,"./relative_attr":516,"./relink_private":517,"./search":518,"./sort_object_keys":521,"./stats":522,"./throttle":525,"./to_log_range":526,"@plotly/d3":58,"d3-format":107,"d3-time-format":115,"fast-isnumeric":185}],499:[function(t,e,r){"use strict";e.exports=function(t){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(t):"[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}},{}],500:[function(t,e,r){"use strict";var n=t("./nested_property"),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||"name",a=a||"value";var c={};e&&e.length?(l=n(t,e),s=l.get()):s=t,e=e||"";var u={};if(s)for(o=0;o2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o1){var e=["LOG:"];for(t=0;t1){var r=[];for(t=0;t"),"long")}},a.warn=function(){var t;if(n.logging>0){var e=["WARN:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}},a.error=function(){var t;if(n.logging>0){var e=["ERROR:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}}},{"../plot_api/plot_config":536,"./notifier":508}],503:[function(t,e,r){"use strict";var n=t("@plotly/d3");e.exports=function(t,e,r){var i=t.selectAll("g."+r.replace(/\s/g,".")).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append("g").attr("class",r),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each((function(t){t[0][a]=n.select(this)})),i}},{"@plotly/d3":58}],504:[function(t,e,r){"use strict";var n=t("gl-mat4");r.init2dArray=function(t,e){for(var r=new Array(t),n=0;ne/2?t-Math.round(t/e)*e:t}}},{}],506:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./array").isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s/g),l=0;la||c===i||cs)&&(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||la||c===i||cs)return!1;var u,f,h,p,d,m=r.length,g=r[0][0],v=r[0][1],y=0;for(u=1;uMath.max(f,g)||c>Math.max(h,v)))if(cu||Math.abs(n(o,h))>i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c1&&o(t.pop());return{addPt:o,raw:t,filtered:r}}},{"../constants/numerical":474,"./matrix":504}],511:[function(t,e,r){(function(r){(function(){"use strict";var n=t("./show_no_webgl_msg"),i=t("regl");e.exports=function(t,e,a){var o=t._fullLayout,s=!0;return o._glcanvas.each((function(n){if(n.regl)n.regl.preloadCachedCode(a);else if(!n.pick||o._has("parcoords")){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[],cachedCode:a||{}})}catch(t){s=!1}n.regl||(s=!1),s&&this.addEventListener("webglcontextlost",(function(e){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:e,layer:n.key})}),!1)}})),s||n({container:o._glcontainer.node()}),s}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./show_no_webgl_msg":520,regl:278}],512:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("is-mobile");e.exports=function(t){var e;if("string"!=typeof(e=t&&t.hasOwnProperty("userAgent")?t.userAgent:function(){var t;"undefined"!=typeof navigator&&(t=navigator.userAgent);t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]);return t}()))return!0;var r=i({ua:{headers:{"user-agent":e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(" "),o=1;o-1;s--){var l=a[s];if("Version/"===l.substr(0,8)){var c=l.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}}return r}},{"fast-isnumeric":185,"is-mobile":229}],513:[function(t,e,r){"use strict";e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;ni.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;re}function u(t,e){return t>=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h>1?(e[h-1]-e[0])/(h-1):1;for(o=d>=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d>=0?1:-1);f90&&i.log("Long binary search..."),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e,n=t.slice();for(n.sort(r.sorterAsc),e=n.length-1;e>-1&&n[e]===o;e--);for(var i,a=n[e]-n[0]||1,s=a/(e||1)/1e4,l=[],c=0;c<=e;c++){var u=n[c],f=u-i;void 0===i?(l.push(u),i=u):f>s&&(a=Math.min(a,f),l.push(u),i=u)}return{vals:l,minDiff:a}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;ia.length)&&(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;st.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{"./array":480,"fast-isnumeric":185}],523:[function(t,e,r){"use strict";var n=t("color-normalize");e.exports=function(t){return t?n(t):[0,0,0,1]}},{"color-normalize":84}],524:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../lib"),a=i.strTranslate,o=t("../constants/xmlns_namespaces"),s=t("../constants/alignment").LINE_SPACING,l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,m){var M=t.text(),S=!t.attr("data-notex")&&e&&e._context.typesetMath&&"undefined"!=typeof MathJax&&M.match(l),C=n.select(t.node().parentNode);if(!C.empty()){var P=t.attr("class")?t.attr("class").split(" ")[0]:"text";return P+="-math",C.selectAll("svg."+P).remove(),C.selectAll("g."+P+"-group").remove(),t.style("display",null).attr({"data-unformatted":M,"data-math":"N"}),S?(e&&e._promises||[]).push(new Promise((function(e){t.style("display","none");var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l,h=parseInt((MathJax.version||"").split(".")[0]);if(2!==h&&3!==h)return void i.warn("No MathJax version:",MathJax.version);var p=function(){var r="math-output-"+i.randstr({},64),a=(l=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute","font-size":e.fontSize+"px"}).text(t.replace(c,"\\lt ").replace(u,"\\gt "))).node();return 2===h?MathJax.Hub.Typeset(a):MathJax.typeset([a])},d=function(){var e=l.select(2===h?".MathJax_SVG":".MathJax"),a=!e.empty()&&l.select("svg").node();if(a){var o,s=a.getBoundingClientRect();o=2===h?n.select("body").select("#MathJax_SVG_glyphs"):e.select("defs"),r(e,o,s)}else i.log("There was an error in the tex syntax.",t),r();l.remove()};2===h?MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:f},displayAlign:"left"})}),(function(){if("SVG"!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),p,d,(function(){if("SVG"!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)})):3===h&&(o=i.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=f,"svg"!==(a=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){p(),d(),"svg"!==a&&(MathJax.config.startup.output=a),MathJax.config=o})))}(S[2],o,(function(n,i,o){C.selectAll("svg."+P).remove(),C.selectAll("g."+P+"-group").remove();var s=n&&n.select("svg");if(!s||!s.node())return I(),void e();var l=C.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":M,"data-math":"Y"});l.node().appendChild(s.node()),i&&i.node()&&s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild);var c=o.width,u=o.height;s.attr({class:P,height:u,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var f=t.node().style.fill||"black",h=s.select("g");h.attr({fill:f,stroke:f});var p=h.node().getBoundingClientRect(),d=p.width,g=p.height;(d>c||g>u)&&(s.style("overflow","hidden"),d=(p=s.node().getBoundingClientRect()).width,g=p.height);var v=+t.attr("x"),y=+t.attr("y"),x=-(r||t.node().getBoundingClientRect().height)/4;if("y"===P[0])l.attr({transform:"rotate("+[-90,v,y]+")"+a(-d/2,x-g/2)});else if("l"===P[0])y=x-g/2;else if("a"===P[0]&&0!==P.indexOf("atitle"))v=0,y=x;else{var b=t.attr("text-anchor");v-=d*("middle"===b?.5:"end"===b?1:0),y=y+x-g/2}s.attr({x:v,y:y}),m&&m.call(t,l),e(l)}))}))):I(),t}function I(){C.empty()||(P=t.attr("class")+"-math",C.select("svg."+P).remove()),t.text("").style("white-space","pre"),function(t,e){e=e.replace(g," ");var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,"tspan");n.select(e).attr({class:"line",dy:c*s+"em"}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length>1)for(var a=1;a doesnt match end tag <"+t+">. Pretending it did match.",e),r=l[l.length-1].node}else i.log("Ignoring unexpected end tag .",e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var S=e.split(v),C=0;C|>|>)/g;var f=[["$","$"],["\\(","\\)"]];var h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},d={sub:"-0.21em",sup:"0.42em"},m=["http:","https:","mailto:","",void 0,":"],g=r.NEWLINES=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;r.BR_TAG_ALL=//gi;var b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&E(n)}var A=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&&-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:["br"],i="...".length,a=t.split(v),o=[],s="",l=0,c=0;ci?o.push(u.substr(0,d-i)+"..."):o.push(u.substr(0,d));break}s=""}}return o.join("")};var M={mu:"\u03bc",amp:"&",lt:"<",gt:">",nbsp:"\xa0",times:"\xd7",plusmn:"\xb1",deg:"\xb0"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return("#"===e.charAt(0)?function(t){if(t>1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}("x"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):M[e])||t}))}function L(t){var e=encodeURI(decodeURI(t)),r=document.createElement("a"),n=document.createElement("a");r.href=t,n.href=e;var i=r.protocol,a=n.protocol;return-1!==m.indexOf(i)&&-1!==m.indexOf(a)?e:""}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||"top",c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a="bottom"===l?function(){return c.bottom-n.height}:"middle"===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===s?function(){return c.right-n.width}:"center"===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+"px",left:t+"px","z-index":1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(g," ");for(var e=document.createElement("p"),r=e,i=[],a=t.split(v),o=0;oa.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&&e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],526:[function(t,e,r){"use strict";var n=t("fast-isnumeric");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{"fast-isnumeric":185}],527:[function(t,e,r){"use strict";var n=e.exports={},i=t("../plots/geo/constants").locationmodeToLayer,a=t("topojson-client").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,"-"),"_",t.resolution.toString(),"m"].join("")},n.getTopojsonPath=function(t,e){return t+e+".json"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{"../plots/geo/constants":582,"topojson-client":310}],528:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],529:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],530:[function(t,e,r){"use strict";var n=t("../registry");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split("[")[0],s=0;s0&&o.log("Clearing previous rejected promises from queue."),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,m=Object.keys(t);for(e=0;e3?(O.x=1.02,O.xanchor="left"):O.x<-2&&(O.x=-.02,O.xanchor="right"),O.y>3?(O.y=1.02,O.yanchor="bottom"):O.y<-2&&(O.y=-.02,O.yanchor="top")),d(t),"rotate"===t.dragmode&&(t.dragmode="orbit"),c.clean(t),t.template&&t.template.layout&&r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=["x","y","z"];r.clearAxisTypes=function(t,e,r){for(var n=0;n1&&a.warn("Full array edits are incompatible with other edits",f);var y=r[""][""];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn("Unrecognized full array edit value",f,y),!0;e.set(y)}return!m&&(h(g,v),p(t),!0)}var x,b,_,w,T,k,A,M,S=Object.keys(r).map(Number).sort(o),E=e.get(),L=E||[],C=u(v,f).get(),P=[],I=-1,O=L.length;for(x=0;xL.length-(A?0:1))a.warn("index out of range",f,_);else if(void 0!==k)T.length>1&&a.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(k)?P.push(_):A?("add"===k&&(k={}),L.splice(_,0,k),C&&C.splice(_,0,{})):a.warn("Unrecognized full object edit value",f,_,k),-1===I&&(I=_);else for(b=0;b=0;x--)L.splice(P[x],1),C&&C.splice(P[x],1);if(L.length?E||e.set(L):e.set(null),m)return!1;if(h(g,v),d!==i){var z;if(-1===I)z=S;else{for(O=Math.max(L.length,O),z=[],x=0;x=I);x++)z.push(_);for(x=I;x=t.data.length||i<-t.data.length)throw new Error(r+" must be valid indices for gd.data.");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if(void 0===e)throw new Error("currentIndices is a required argument.");if(Array.isArray(e)||(e=[e]),P(t,e,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&P(t,r,"newIndices"),void 0!==r&&e.length!==r.length)throw new Error("current and new indices must be of equal length.")}function O(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(e))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var a in P(t,r,"indices"),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=C(r,t.data.length-1),e)for(var m=0;m-1&&-1===r.indexOf("grouptitlefont")?l(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?l(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?l(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&l(r,r.replace("titleoffset","title.offset")):l(r,r.replace("title","title.text"));function l(e,r){t[r]=t[e],delete t[e]}}function U(t,e,r){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var n={};if("string"==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn("Relayout fail.",e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&&(t.changed=!0);var i=W(t,n),a=i.flags;a.calc&&(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&&(V(t,a,i)||h.supplyDefaults(t),a.legend&&s.push(w.doLegend),a.layoutstyle&&s.push(w.layoutStyles),a.axrange&&H(s,i.rangesAltered),a.ticks&&s.push(w.doTicksRelayout),a.modebar&&s.push(w.doModeBar),a.camera&&s.push(w.doCamera),a.colorbars&&s.push(w.doColorBars),s.push(M)),s.push(h.rehover,h.redrag),c.add(t,U,[t,i.undoit],U,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&&l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit("plotly_relayout",i.eventData),t}))}function V(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if("axrange"!==i&&e[i])return!1;for(var a in r.rangesAltered){var o=p.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&&(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[p.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function H(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=p.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&&(n=!1)}return p.draw(t,r,{skipTitle:n})}:function(t){return p.draw(t,"redraw")};t.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function W(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=F(l._preGUI,c),d=Object.keys(e),m=p.list(t),g=o.extendDeepAll({},e),v={};for(j(e),d=Object.keys(e),n=0;n0&&"string"!=typeof O.parts[D];)D--;var B=O.parts[D],N=O.parts[D-1]+"."+B,U=O.parts.slice(0,D).join("."),V=s(t.layout,U).get(),H=s(l,U).get(),W=O.get();if(void 0!==z){M[I]=z,S[I]="reverse"===B?z:R(W);var Z=f.getLayoutValObject(l,O.parts);if(Z&&Z.impliedEdits&&null!==z)for(var J in Z.impliedEdits)E(o.relativeAttr(I,J),Z.impliedEdits[J]);if(-1!==["width","height"].indexOf(I))if(z){E("autosize",null);var K="height"===I?"width":"height";E(K,l[K])}else l[I]=t._initialAutoSize[I];else if("autosize"===I)E("width",z?null:l.width),E("height",z?null:l.height);else if(N.match(q))P(N),s(l,U+"._inputRange").set(null);else if(N.match(G)){P(N),s(l,U+"._inputRange").set(null);var Q=s(l,U).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else N.match(Y)&&s(l,U+"._inputDomain").set(null);if("type"===B){L=V;var $="linear"===H.type&&"log"===z,tt="log"===H.type&&"linear"===z;if($||tt){if(L&&L.range)if(H.autorange)$&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var et=L.range[0],rt=L.range[1];$?(et<=0&&rt<=0&&E(U+".autorange",!0),et<=0?et=rt/1e6:rt<=0&&(rt=et/1e6),E(U+".range[0]",Math.log(et)/Math.LN10),E(U+".range[1]",Math.log(rt)/Math.LN10)):(E(U+".range[0]",Math.pow(10,et)),E(U+".range[1]",Math.pow(10,rt)))}else E(U+".autorange",!0);Array.isArray(l._subplots.polar)&&l._subplots.polar.length&&l[O.parts[0]]&&"radialaxis"===O.parts[1]&&delete l[O.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(t,H,z,E),u.getComponentMethod("images","convertCoords")(t,H,z,E)}else E(U+".autorange",!0),E(U+".range",null);s(l,U+"._inputRange").set(null)}else if(B.match(k)){var nt=s(l,I).get(),it=(z||{}).type;it&&"-"!==it||(it="linear"),u.getComponentMethod("annotations","convertCoords")(t,nt,it,E),u.getComponentMethod("images","convertCoords")(t,nt,it,E)}var at=b.containerArrayMatch(I);if(at){r=at.array,n=at.index;var ot=at.property,st=Z||{editType:"calc"};""!==n&&""===ot&&(b.isAddVal(z)?S[I]=null:b.isRemoveVal(z)?S[I]=(s(a,r).get()||[])[n]:o.warn("unrecognized full object value",e)),T.update(A,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=z,delete e[I]}else"reverse"===B?(V.range?V.range.reverse():(E(U+".autorange",!0),V.range=[1,0]),H.autorange?A.calc=!0:A.plot=!0):(l._has("scatter-like")&&l._has("regl")&&"dragmode"===I&&("lasso"===z||"select"===z)&&"lasso"!==W&&"select"!==W||l._has("gl2d")?A.plot=!0:Z?T.update(A,Z):A.calc=!0,O.set(z))}}for(r in v){b.applyContainerArrayChanges(t,h(a,r),v[r],A,h)||(A.plot=!0)}for(var ct in C){var ut=(L=p.getFromId(t,ct))&&L._constraintGroup;if(ut)for(var ft in A.calc=!0,ut)C[ft]||(p.getFromId(t,ft)._constraintShrinkable=!0)}return(X(t)||e.height||e.width)&&(A.plot=!0),(A.plot||A.calc)&&(A.layoutReplot=!0),{flags:A,rangesAltered:C,undoit:S,redoit:M,eventData:g}}function X(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&&h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function Z(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t),o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&&(t.changed=!0),Object.keys(n).length&&(t.changed=!0);var a=_.coerceTraceIndices(t,i),s=N(t,o.extendFlat({},e),a),l=s.flags,u=W(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&&(t.calcdata=void 0),l.clearAxisTypes&&_.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):l.fullReplot?p.push(r._doPlot):(p.push(h.previousPromises),V(t,f,u)||h.supplyDefaults(t),l.style&&p.push(w.doTraceStyle),(l.colorbars||f.colorbars)&&p.push(w.doColorBars),f.legend&&p.push(w.doLegend),f.layoutstyle&&p.push(w.layoutStyles),f.axrange&&H(p,u.rangesAltered),f.ticks&&p.push(w.doTicksRelayout),f.modebar&&p.push(w.doModeBar),f.camera&&p.push(w.doCamera),p.push(M)),p.push(h.rehover,h.redrag),c.add(t,Z,[t,s.undoit,u.undoit,s.traces],Z,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&&d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit("plotly_update",{data:s.eventData,layout:u.eventData}),t}))}function J(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Q=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function $(t,e){for(var r=0;r1;)if(n.pop(),void 0!==(r=s(e,n.join(".")+".uirevision").get()))return r;return e.uirevision}function et(t,e){for(var r=0;r=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t>=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,_.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&&e.onComplete()})),t.emit("plotly_animatingframe",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt>n._timeToNext&&f()};e()}var d,m,g=0;function v(t){return Array.isArray(i)?g>=i.length?t.transitionOpts=i[g]:t.transitionOpts=i[0]:t.transitionOpts=i,g++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&&!b&&o.isPlainObject(e))y.push({type:"object",data:v(o.extendFlat({},e))});else if(x||-1!==["string","number"].indexOf(typeof e))for(d=0;d0&&kk)&&A.push(m);y=A}}y.length>0?function(e){if(0!==e.length){for(var i=0;i=0;n--)if(o.isPlainObject(e[n])){var m=e[n].name,g=(u[m]||d[m]||{}).name,v=e[n].name,y=u[g]||d[g];g&&v&&"number"==typeof v&&y&&A<5&&(A++,o.warn('addFrames: overwriting frame "'+(u[g]||d[g]).name+'" with a frame whose name of type "number" also equates to "'+g+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),d[m]={name:m},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index>e.index?-1:t.index=0;n--){if("number"==typeof(i=p[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+t._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=e[r],a.push({type:"delete",index:n}),s.unshift({type:"insert",index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&&c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if(void 0===e)throw new Error("traces must be defined.");for(Array.isArray(e)||(e=[e]),n=0;n=0&&r=0&&r=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!y(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function y(t){return t===Math.round(t)&&t>=0}function x(){var t,e,r={};for(t in f(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&&r[e[2]],s=3}else{var u=t._module;if(u||(u=(n.modules[t.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(i=f.attributes[o])}i||(i=a[o])}return v(i,e,s)},r.getLayoutValObject=function(t,e){return v(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r=i&&(r._input||{})._templateitemname;o&&(a=i);var s,l=e+"["+a+"]";function c(){s={},o&&(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+"."+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&&u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{"../lib":498,"../plots/attributes":545}],539:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../registry"),a=t("../plots/plots"),o=t("../lib"),s=t("../lib/clear_gl_canvases"),l=t("../components/color"),c=t("../components/drawing"),u=t("../components/titles"),f=t("../components/modebar"),h=t("../plots/cartesian/axes"),p=t("../constants/alignment"),d=t("../plots/cartesian/constraints"),m=d.enforce,g=d.clean,v=t("../plots/cartesian/autorange").doAutoRange;function y(t,e,r){for(var n=0;n=t[1]||i[1]<=t[0])&&(a[0]e[0]))return!0}return!1}function x(t){var e,i,s,u,d,m,g=t._fullLayout,v=g._size,x=v.p,_=h.list(t,"",!0);if(g._paperdiv.style({width:t._context.responsive&&g.autosize&&!t._context._hasZeroWidth&&!t.layout.width?"100%":g.width+"px",height:t._context.responsive&&g.autosize&&!t._context._hasZeroHeight&&!t.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(c.setSize,g.width,g.height),t._context.setBackground(t,g.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!g._has("cartesian"))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return"x"===t._id.charAt(0)?e?"top"===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?"right"===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e<_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&&k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var A=[],M=[],S=[],E=1===l.opacity(g.paper_bgcolor)&&1===l.opacity(g.plot_bgcolor)&&g.paper_bgcolor===g.plot_bgcolor;for(i in g._plots)if((s=g._plots[i]).mainplot)s.bg&&s.bg.remove(),s.bg=void 0;else{var L=s.xaxis.domain,C=s.yaxis.domain,P=s.plotgroup;if(y(L,C,S)){var I=P.node(),O=s.bg=o.ensureSingle(P,"rect","bg");I.insertBefore(O.node(),I.childNodes[0]),M.push(i)}else P.select("rect.bg").remove(),S.push([L,C]),E||(A.push(i),M.push(i))}var z,D,R,F,B,N,j,U,V,H,q,G,Y,W=g._bgLayer.selectAll(".bg").data(A);for(W.enter().append("rect").classed("bg",!0),W.exit().remove(),W.each((function(t){g._plots[t].bg=n.select(this)})),e=0;eT?u.push({code:"unused",traceType:y,templateCount:w,dataCount:T}):T>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:T})}}else u.push({code:"data"});if(function t(e,r){for(var n in e)if("_"!==n.charAt(0)){var a=e[n],o=m(e,n,r);i(a)?(Array.isArray(e)&&!1===a._template&&a.templateitemname&&u.push({code:"missing",path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&&g(a)&&t(a,o)}}({data:p,layout:h},""),u.length)return u.map(v)}},{"../lib":498,"../plots/attributes":545,"../plots/plots":614,"./plot_config":536,"./plot_schema":537,"./plot_template":538}],541:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./plot_api"),a=t("../plots/plots"),o=t("../lib"),s=t("../snapshot/helpers"),l=t("../snapshot/tosvg"),c=t("../snapshot/svgtoimg"),u=t("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};e.exports=function(t,e){var r,h,p,d;function m(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!m("width")&&null!==e.width||!m("height")&&null!==e.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var g={};function v(t,r){return o.coerce(e,g,f,t,r)}var y=v("format"),x=v("width"),b=v("height"),_=v("scale"),w=v("setBackground"),T=v("imageDataOnly"),k=document.createElement("div");k.style.position="absolute",k.style.left="-5000px",document.body.appendChild(k);var A=o.extendFlat({},h);x?A.width=x:null===e.width&&n(d.width)&&(A.width=d.width),b?A.height=b:null===e.height&&n(d.height)&&(A.height=d.height);var M=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function L(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if("full-json"===y){var p=a.graphJson(k,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),"svg"===y)return t(T?r:s.encodeSVG(r));var d=document.createElement("canvas");d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.newPlot(k,r,A,M).then(S).then(E).then(L).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,""):t}(e))})).catch((function(t){e(t)}))}))}},{"../lib":498,"../plots/plots":614,"../snapshot/helpers":637,"../snapshot/svgtoimg":639,"../snapshot/tosvg":641,"../version":1118,"./plot_api":535,"fast-isnumeric":185}],542:[function(t,e,r){"use strict";var n=t("../lib"),i=t("../plots/plots"),a=t("./plot_schema"),o=t("./plot_config").dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;hx.length&&i.push(d("unused",a,v.concat(x.length)));var A,M,S,E,L,C=x.length,P=Array.isArray(k);if(P&&(C=Math.min(C,k.length)),2===b.dimensions)for(M=0;Mx[M].length&&i.push(d("unused",a,v.concat(M,x[M].length)));var I=x[M].length;for(A=0;A<(P?Math.min(I,k[M].length):I);A++)S=P?k[M][A]:k,E=y[M][A],L=x[M][A],n.validate(E,S)?L!==E&&L!==+E&&i.push(d("dynamic",a,v.concat(M,A),E,L)):i.push(d("value",a,v.concat(M,A),E))}else i.push(d("array",a,v.concat(M),y[M]));else for(M=0;M1&&p.push(d("object","layout"))),i.supplyDefaults(m);for(var g=m._fullData,v=r.length,y=0;y0&&Math.round(f)===f))return{vals:i};c=f}for(var h=e.calendar,p="start"===l,d="end"===l,m=t[r+"period0"],g=a(m,h)||0,v=[],y=[],x=[],b=i.length,_=0;_A;)k=o(k,-c,h);for(;k<=A;)k=o(k,c,h);T=o(k,-c,h)}else{for(k=g+(w=Math.round((A-g)/u))*u;k>A;)k-=u;for(;k<=A;)k+=u;T=k-u}v[_]=p?T:d?k:(T+k)/2,y[_]=T,x[_]=k}return{vals:v,starts:y,ends:x}}},{"../../constants/numerical":474,"../../lib":498,"fast-isnumeric":185}],547:[function(t,e,r){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],548:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../lib"),o=t("../../constants/numerical").FP_SAFE,s=t("../../registry"),l=t("../../components/drawing"),c=t("./axis_ids"),u=c.getFromId,f=c.isLinked;function h(t,e){var r,n,i=[],o=t._fullLayout,s=d(o,e,0),l=d(o,e,1),c=m(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return a.simpleMap(e.range,e.r2l);var h=u[0].val,g=f[0].val;for(r=1;r0&&((T=E-s(x)-l(b))>L?k/T>C&&(_=x,w=b,C=k/T):k/E>C&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},C=k/E));if(h===g){var P=h-1,I=h+1;if(M)if(0===h)i=[0,1];else{var O=(h>0?f:u).reduce((function(t,e){return Math.max(t,l(e))}),0),z=h/(1-Math.min(.5,O/E));i=h>0?[0,z]:[z,0]}else i=S?[Math.max(0,P),Math.max(1,I)]:[P,I]}else M?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-C*s(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),C=(w.val-_.val-p(e,x.val,b.val))/(E-s(_)-l(w)),i=[_.val-C*s(_),w.val+C*l(w)];return v&&i.reverse(),a.simpleMap(i,e.l2r||Number)}function p(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),L=A(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(n=0;n0&&(h=a),a>p&&a-o&&(h=a),a>p&&a=I;n--)P(n);return{min:d,max:m,opts:r}},concatExtremes:m};function m(t,e,r){var n,i,a,o=e._id,s=t._fullData,l=t._fullLayout,c=[],f=[];function h(t,e){for(n=0;n=r&&(c.extrapad||!o)){s=!1;break}i(e,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(t.splice(l,1),l--)}if(s){var u=a&&0===e;t.push({val:e,pad:u?0:r,extrapad:!u&&o})}}function x(t){return i(t)&&Math.abs(t)=e}},{"../../components/drawing":383,"../../constants/numerical":474,"../../lib":498,"../../registry":633,"./axis_ids":553,"@plotly/d3":58,"fast-isnumeric":185}],549:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../lib"),l=s.strTranslate,c=t("../../lib/svg_text_utils"),u=t("../../components/titles"),f=t("../../components/color"),h=t("../../components/drawing"),p=t("./layout_attributes"),d=t("./clean_ticks"),m=t("../../constants/numerical"),g=m.ONEMAXYEAR,v=m.ONEAVGYEAR,y=m.ONEMINYEAR,x=m.ONEMAXQUARTER,b=m.ONEAVGQUARTER,_=m.ONEMINQUARTER,w=m.ONEMAXMONTH,T=m.ONEAVGMONTH,k=m.ONEMINMONTH,A=m.ONEWEEK,M=m.ONEDAY,S=M/2,E=m.ONEHOUR,L=m.ONEMIN,C=m.ONESEC,P=m.MINUS_SIGN,I=m.BADNUM,O={K:"zeroline"},z={K:"gridline",L:"path"},D={K:"tick",L:"path"},R={K:"tick",L:"text"},F=t("../../constants/alignment"),B=F.MID_SHIFT,N=F.CAP_SHIFT,j=F.LINE_SPACING,U=F.OPPOSITE_SIDE,V=e.exports={};V.setConvert=t("./set_convert");var H=t("./axis_autotype"),q=t("./axis_ids"),G=q.idSort,Y=q.isLinked;V.id2name=q.id2name,V.name2id=q.name2id,V.cleanId=q.cleanId,V.list=q.list,V.listIds=q.listIds,V.getFromId=q.getFromId,V.getFromTrace=q.getFromTrace;var W=t("./autorange");V.getAutoRange=W.getAutoRange,V.findExtremes=W.findExtremes;function X(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}V.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return i||(i=l[0]||("string"==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+" domain"}))),u[c]={valType:"enumerated",values:l.concat(a?"string"==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},V.getRefType=function(t){return void 0===t?t:"paper"===t?"paper":"pixel"===t?"pixel":/( domain)$/.test(t)?"domain":"range"},V.coercePosition=function(t,e,r,n,i,a){var o,l;if("range"!==V.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=V.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},V.cleanPosition=function(t,e,r){return("paper"===r||"pixel"===r?s.ensureNumber:V.getFromId(e,r).cleanPos)(t)},V.redrawComponents=function(t,e){e=e||V.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},V.saveRangeInitial=function(t,e){for(var r=V.list(t,"",!0),n=!1,i=0;i.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p.8){var o=Number(r.substr(1));a.exactYears>.8&&o%12==0?t=V.tickIncrement(t,"M6","reverse")+1.5*M:a.exactMonths>.8?t=V.tickIncrement(t,"M1","reverse")+15.5*M:t-=S;var l=V.tickIncrement(t,r);if(l<=n)return l}return t}(y,t,v,c,a)),g=y,0;g<=u;)g=V.tickIncrement(g,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(g,0,a),size:v,_dataSpan:u-c}},V.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,"auto"===t.tickmode||!t.dtick){var n,a=t.nticks;a||("category"===t.type||"multicategory"===t.type?(n=t.tickfont?s.bigFont(t.tickfont.size||12):15,a=t._length/n):(n="y"===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),"radialaxis"===t._name&&(a*=2)),"array"===t.tickmode&&(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,V.autoTicks(t,t._roughDTick),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}"period"===t.ticklabelmode&&function(t){var e;function r(){return!(i(t.dtick)||"M"!==t.dtick.charAt(0))}var n=r(),a=V.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&&!n&&t.dticka&&f=o:d<=o;d=V.tickIncrement(d,t.dtick,l,t.calendar)){if(R++,t.rangebreaks&&!l){if(d=u)break}if(P.length>C||d===O)break;O=d;var F=!1;h&&d!==(0|d)&&(F=!0);var B={minor:F,value:d};L>1&&R%L&&(B.skipLabel=!0),P.push(B)}if(p&&function(t,e,r){for(var n=0;n0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f>=y?h=u>=y&&u<=g?u:v:r===b&&f>=_?h=u>=_&&u<=x?u:b:f>=k?h=u>=k&&u<=w?u:T:r===A&&f>=A?h=A:f>=M?h=M:r===S&&f>=S?h=S:r===E&&f>=E&&(h=E),h>=u&&(h=u,s=!0);var p=i+h;if(e.rangebreaks&&h>0){for(var d=0,m=0;m<84;m++){var L=(m+.5)/84;e.maskBreaks(i*(1-L)+L*p)!==I&&d++}(h*=d/84)||(t[n].drop=!0),s&&u>A&&(h=u)}(h>0||0===n)&&(t[n].periodX=i+h/2)}}(P,t,t._definedDelta),t.rangebreaks){var N="y"===t._id.charAt(0),j=1;"auto"===t.tickmode&&(j=t.tickfont?t.tickfont.size:12);var U=NaN;for(z=P.length-1;z>-1;z--)if(P[z].drop)P.splice(z,1);else{P[z].value=Mt(P[z].value,t);var H=t.c2p(P[z].value);(N?U>H-j:Uu||Gu&&(q.periodX=u),G10||"01-01"!==n.substr(5)?t._tickround="d":t._tickround=+e.substr(1)%12==0?"y":"m";else if(e>=M&&a<=10||e>=15*M)t._tickround="d";else if(e>=L&&a<=16||e>=E)t._tickround="M";else if(e>=C&&a<=19||e>=L)t._tickround="S";else{var o=t.l2r(r+e).replace(/^-/,"").length;t._tickround=Math.max(a,o)-20,t._tickround<0&&(t._tickround=4)}}else if(i(e)||"L"===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)>u&&(ut(t.exponentformat)&&!ft(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function lt(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if("date"===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a>v)e/=v,r=n(10),t.dtick="M"+12*ot(e,r,$);else if(a>T)e/=T,t.dtick="M"+ot(e,1,tt);else if(a>M){t.dtick=ot(e,M,t._hasDayOfWeekBreaks?[1,2,7,14]:rt);var o=V.getTickFormat(t),l="period"===t.ticklabelmode;l&&(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&&(t._dowTick0=t.tick0)}else a>E?t.dtick=ot(e,E,tt):a>L?t.dtick=ot(e,L,et):a>C?t.dtick=ot(e,C,et):(r=n(10),t.dtick=ot(e,r,$))}else if("log"===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick="L"+ot(e,r,$)}else t.dtick=e>.3?"D2":"D1"}else"category"===t.type||"multicategory"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):At(t)?(t.tick0=0,r=1,t.dtick=ot(e,r,at)):(t.tick0=0,r=n(10),t.dtick=ot(e,r,$));if(0===t.dtick&&(t.dtick=1),!i(t.dtick)&&"string"!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,"ax.dtick error: "+String(f)}},V.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if("M"===l)return s.incrementMonth(t,c,a);if("L"===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if("D"===l){var u="D2"===e?it:nt,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw"unrecognized dtick "+String(e)},V.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1] ")}else t._prevDateHead=l,c+="
"+l;e.text=c}(t,o,r,c):"log"===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u="string"==typeof o&&o.charAt(0);"never"===a&&(a="");n&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)e.text=ht(Math.pow(10,l),t,a,n);else if(i(o)||"D"===u&&s.mod(l+.01,1)<.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;"power"===p||ut(p)&&ft(f)?(e.text=0===f?1:1===f?"10":"10"+(f>1?"":P)+h+"",e.fontSize*=1.25):("e"===p||"E"===p)&&h>2?e.text="1"+p+(f>0?"+":P)+h:(e.text=ht(Math.pow(10,l),t,"","fakehover"),"D1"===o&&"y"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if("D1"===t.dtick){var d=String(e.text).charAt(0);"0"!==d&&"1"!==d||("y"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}(t,o,0,c,m):"category"===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r="");e.text=String(r)}(t,o):"multicategory"===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);r?e.text=o+" - "+a:(e.text=a,e.text2=o)}(t,o,r):At(t)?function(t,e,r,n,i){if("radians"!==t.thetaunit||r)e.text=ht(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text="0";else{var o=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]>=100)e.text=ht(s.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===o[1]?1===o[0]?e.text="\u03c0":e.text=o[0]+"\u03c0":e.text=["",o[0],"","\u2044","",o[1],"","\u03c0"].join(""),l&&(e.text=P+e.text)}}}}(t,o,r,c,m):function(t,e,r,n,i){"never"===i?i="":"all"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i="hide");e.text=ht(e.x,t,i,n)}(t,o,0,c,m),n||(t.tickprefix&&!d(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!d(t.showticksuffix)&&(o.text+=t.ticksuffix)),"boundaries"===t.tickson||t.showdividers){var g=function(e){var r=t.l2p(e);return r>=0&&r<=t._length?e:null};o.xbnd=[g(o.x-.5),g(o.x+t.dtick-.5)]}return o},V.hoverLabelText=function(t,e,r){r&&(t=s.extendFlat({},t,{hoverformat:r}));var n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;if(void 0!==i&&i!==n)return V.hoverLabelText(t,n,r)+" - "+V.hoverLabelText(t,i,r);var a="log"===t.type&&n<=0,o=V.tickText(t,t.c2l(a?-n:n),"hover").text;return a?0===n?"0":P+o:o};var ct=["f","p","n","\u03bc","m","","k","M","G","T"];function ut(t){return"SI"===t||"B"===t}function ft(t){return t>14||t<-15}function ht(t,e,r,n){var a=t<0,o=e._tickround,l=r||e.exponentformat||"B",c=e._tickexponent,u=V.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:"none"===e.showexponent?e.dtick:i(t)&&Math.abs(t)||1,range:"none"===e.showexponent?e.range.map(e.r2d):[0,t||1]};st(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&&(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,P);var p,d=Math.pow(10,-o)/2;if("none"===l&&(c=0),(t=Math.abs(t))"+p+"":"B"===l&&9===c?t+="B":ut(l)&&(t+=ct[c/3+5]));return a?P+t:t}function pt(t,e){for(var r=[],n={},i=0;i1&&r=i.min&&t=0,a=u(t,e[1])<=0;return(r||i)&&(n||a)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case"date":case"linear":for(e=0;e=o(i)))){r=n;break}break;case"log":for(e=0;e0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===d){if("b"===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width>0?f-r.top:0,h),p.reverse()),r.width>0){var g=r.right-(e._offset+e._length);g>0&&(n.xr=1,n.r=g);var v=e._offset-r.left;v>0&&(n.xl=0,n.l=v)}}else if("l"===l?n[l]=e._depth=Math.max(r.height>0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height>0?r.right-f:0,h),p.reverse()),r.height>0){var y=r.bottom-(e._offset+e._length);y>0&&(n.yb=0,n.b=y);var x=e._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[m]="free"===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&&(n[l]+=gt(e)+(e.title.standoff||0)),e.mirror&&"free"!==e.anchor&&((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&&!0!==e.mirror&&(i[u]+=h),!0===e.mirror||"ticks"===e.mirror?i[m]=e._anchorAxis.domain[p[1]]:"all"!==e.mirror&&"allticks"!==e.mirror||(i[m]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&&(s=o.getComponentMethod("rangeslider","autoMarginOpts")(t,e)),a.autoMargin(t,xt(e),n),a.autoMargin(t,bt(e),i),a.autoMargin(t,_t(e),s)})),r.skipTitle||K&&"bottom"===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty("standoff"))r=e._depth+e.title.standoff+gt(e);else{var s=St(e);if("multicategory"===e.type)r=e._depth;else{var l=1.5*o;s&&(l=.5*o,"outside"===e.ticks&&(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+="x"===a?"top"===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):"right"===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,m=V.getPxPosition(t,e);"x"===a?(f=e._offset+e._length/2,p="top"===e.side?m-r:m+r):(p=e._offset+e._length/2,f="right"===e.side?m+r:m-r,c={rotate:"-90",offset:0});if("multicategory"!==e.type){var g=e._selections[e._id+"tick"];if(d={selection:g,side:e.side},g&&g.node()&&g.node().parentNode){var v=h.getTranslate(g.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty("standoff")&&(d.pad=0)}return u.draw(t,i+"title",{propContainer:e,propName:e._name+".title.text",placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,"text-anchor":"middle"}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||"tick");return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=yt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},V.getTickSigns=function(t){var e=t._id.charAt(0),r={x:"top",y:"right"}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return"inside"!==t.ticks==("x"===e)&&(i=i.map((function(t){return-t}))),t.side&&i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},V.makeTransTickFn=function(t){return"x"===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},V.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||"",r=function(t){return-1!==e.indexOf(t)},n=r("top"),i=r("left"),a=r("right"),o=r("bottom"),s=r("inside"),l=o||i||n||a;if(!l&&!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&&(u+=h*N,f+=(t.linewidth||0)/2);(i||a)&&(u+=(t.linewidth||0)/2,f+=3);s&&"top"===c&&(f-=h*(1-N));(i||n)&&(u=-u);"bottom"!==c&&"right"!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return"x"===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(dt(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(dt(e)))}},V.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return"x"===i?"M0,"+(e+a*r)+"v"+n*r:"M"+(e+a*r)+",0h"+n*r},V.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||"",a=function(t){return-1!==n.indexOf(t)},o=a("top"),l=a("left"),c=a("right"),u=a("bottom")||l||o||c,f=a("inside"),h="inside"===n&&"inside"===t.ticks||!f&&"outside"===t.ticks&&"boundaries"!==t.tickson,p=0,d=0,m=h?t.ticklen:0;if(f?m*=-1:u&&(m=0),h&&(p+=m,r)){var g=s.deg2rad(r);p=m*Math.cos(g)+1,d=m*Math.sin(g)}t.showticklabels&&(h||t.showline)&&(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,A=t._id.charAt(0),M=t.tickangle;if("x"===A)b=(_=!f&&"bottom"===k||f&&"top"===k)?1:-1,f&&(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(M)&&(f?x+=B:x=-90===M&&"bottom"===k?N:90===M&&"top"===k?B:.5,T=B/2*(M/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return"end";if(c)return"start"}return i(e)&&0!==e&&180!==e?e*b<0!==f?"end":"start":"middle"},w.heightFn=function(e,r,n){return r<-60||r>60?-.5*n:"top"===t.side!==f?-n:0};else if("y"===A){if(b=(_=!f&&"left"===k||f&&"right"===k)?1:-1,f&&(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(M)||(x=-90===M&&"left"===k||90===M&&"right"===k?N:.5),f){var S=i(M)?+M:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*N*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*B},w.anchorFn=function(t,e){return i(e)&&90===Math.abs(e)?"middle":_?"end":"start"},w.heightFn=function(e,r,n){return"right"===t.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},V.drawTicks=function(t,e,r){r=r||{};var n=e._id+"tick",i=r.vals;"period"===e.ticklabelmode&&(i=i.slice()).shift();var a=r.layer.selectAll("path."+n).data(e.ticks?i:[],mt);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(f.stroke,e.tickcolor).style("stroke-width",h.crispRound(t,e.tickwidth,1)+"px").attr("d",r.path).style("display",null),Et(e,[D]),a.attr("transform",r.transFn)},V.drawGrid=function(t,e,r){r=r||{};var n=e._id+"grid",i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&&V.shouldShowZeroLine(t,e,a))for(var o="array"===e.tickmode,s=0;sp||a.leftp||a.top+(e.tickangle?0:t.fontSize/4)e["_visibleLabelMin_"+r._id]?l.style("display","none"):"tick"!==t.K||i||l.style("display",null)}))}))}))}))},x(v,g+1?g:m);var b=null;e._selections&&(e._selections[f]=v);var _=[function(){return y.length&&Promise.all(y)}];e.automargin&&a._redrawFromAutoMarginCount&&90===g?(b=90,_.push((function(){x(v,g)}))):_.push((function(){if(x(v,m),p.length&&"x"===u&&!i(m)&&("log"!==e.type||"D"!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=yt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==e.tickson&&!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||"",f=function(t){return-1!==c.indexOf(t)},d=f("top"),g=f("left"),y=f("right"),_=f("bottom")||g||d||y?(e.tickwidth||0)+6:0,w=l<2.5*n||"multicategory"===e.type||"realaxis"===e._name;for(t=0;t1)for(n=1;n2*o}(i,e))return"date";var g="strict"!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u2*i}(i,g)?"category":function(t,e){for(var r=t.length,n=0;n=2){var l,c,u="";if(2===o.length)for(l=0;l<2;l++)if(c=x(o[l])){u=m;break}var f=i("pattern",u);if(f===m)for(l=0;l<2;l++)(c=x(o[l]))&&(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l<2;l++)switch(c=o[l],f){case m:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)<0||c>24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]h[1])return void(e.enabled=!1)}else if(o[0]>h[0]&&o[1]n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&&t.split(" ")[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{"../../registry":633,"./constants":556}],554:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){if("category"===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&&a.length>0;o&&(i="array");var s,l=r("categoryorder",i);"array"===l&&(s=r("categoryarray")),o||"array"!==l||(l=e.categoryorder="trace"),"trace"===l?e._initialCategories=[]:"array"===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;nn?i.substr(n):a.substr(r))+o:i+a+t*e:o}function g(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;oc*x)||T)for(r=0;rO&&FP&&(P=F);h/=(P-C)/(2*I),C=l.l2r(C),P=l.l2r(P),l.range=l._input.range=S=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function N(t,e,r,n,i){return t.append("path").attr("class","zoombox").style({fill:e>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",i+"Z")}function j(t,e,r){return t.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(e,r)).attr("d","M0,0Z")}function U(t,e,r,n,i,a){t.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),V(t,e,i,a)}function V(t,e,r,n){r||(t.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),e.transition().style("opacity",1).duration(200))}function H(t){n.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(t){I&&t.data&&t._context.showTips&&(i.notifier(i._(t,"Double-click to zoom back out"),"long"),I=!1)}function G(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,P)/2);return"M"+(t.l-3.5)+","+(t.t-.5+e)+"h3v"+-e+"h"+e+"v-3h-"+(e+3)+"ZM"+(t.r+3.5)+","+(t.t-.5+e)+"h-3v"+-e+"h"+-e+"v-3h"+(e+3)+"ZM"+(t.r+3.5)+","+(t.b+.5-e)+"h-3v"+e+"h"+-e+"v3h"+(e+3)+"ZM"+(t.l-3.5)+","+(t.b+.5-e)+"h3v"+e+"h"+e+"v3h-"+(e+3)+"Z"}function Y(t,e,r,n,a){for(var o,s,l,c,u=!1,f={},h={},p=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(H(i),2!==t||vt||qt(),gt)o.indexOf("select")>-1&&S(r,i,J,K,e.id,Pt),o.indexOf("event")>-1&&p.click(i,r,e.id);else if(1===t&&vt){var s=m?O:I,c="s"===m||"w"===v?0:1,f=s._name+".range["+c+"]",h=function(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return"date"===t.type?n:"log"===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a("."+String(r)+"g")(n))}(s,c),d="left",g="middle";if(s.fixedrange)return;m?(g="n"===m?"top":"bottom","right"===s.side&&(d="right")):"e"===v&&(d="right"),i._context.showAxisRangeEntryBoxes&&n.select(bt).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:"#444",horizontalAlign:d,verticalAlign:g}).on("edit",(function(t){var e=s.d2r(t);void 0!==e&&l.call("_guiRelayout",i,f,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(tt,pt*e+_t)),i=Math.max(0,Math.min(et,dt*r+wt)),a=Math.abs(n-_t),o=Math.abs(i-wt);function s(){St="",Tt.r=Tt.l,Tt.t=Tt.b,Lt.attr("d","M0,0Z")}if(Tt.l=Math.min(_t,n),Tt.r=Math.max(_t,n),Tt.t=Math.min(wt,i),Tt.b=Math.max(wt,i),rt.isSubplotConstrained)a>P||o>P?(St="xy",a/tt>o/et?(o=a*et/tt,wt>i?Tt.t=wt-o:Tt.b=wt+o):(a=o*tt/et,_t>n?Tt.l=_t-a:Tt.r=_t+a),Lt.attr("d",G(Tt))):s();else if(nt.isSubplotConstrained)if(a>P||o>P){St="xy";var l=Math.min(Tt.l/tt,(et-Tt.b)/et),c=Math.max(Tt.r/tt,(et-Tt.t)/et);Tt.l=l*tt,Tt.r=c*tt,Tt.b=(1-l)*et,Tt.t=(1-c)*et,Lt.attr("d",G(Tt))}else s();else!at||o0){var u;if(nt.isSubplotConstrained||!it&&1===at.length){for(u=0;um[1]-1/4096&&(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r("layer"),e}},{"../../lib":498,"fast-isnumeric":185}],568:[function(t,e,r){"use strict";var n=t("./show_dflt");e.exports=function(t,e,r,i,a){a||(a={});var o=a.tickSuffixDflt,s=n(t);r("tickprefix")&&r("showtickprefix",s),r("ticksuffix",o)&&r("showticksuffix",s)}},{"./show_dflt":572}],569:[function(t,e,r){"use strict";var n=t("../../constants/alignment").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{"../../constants/alignment":466}],570:[function(t,e,r){"use strict";var n=t("polybooljs"),i=t("../../registry"),a=t("../../components/drawing").dashStyle,o=t("../../components/color"),s=t("../../components/fx"),l=t("../../components/fx/helpers").makeEventData,c=t("../../components/dragelement/helpers"),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,m=t("../../components/shapes/draw_newshape/display_outlines"),g=t("../../components/shapes/draw_newshape/helpers").handleEllipse,v=t("../../components/shapes/draw_newshape/newshapes"),y=t("../../lib"),x=t("../../lib/polygon"),b=t("../../lib/throttle"),_=t("./axis_ids").getFromId,w=t("../../lib/clear_gl_canvases"),T=t("../../plot_api/subroutines").redrawReglTraces,k=t("./constants"),A=k.MINSELECT,M=x.filter,S=x.tester,E=t("./handle_outline").clearSelect,L=t("./helpers"),C=L.p2r,P=L.axValue,I=L.getTransform;function O(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,g,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n0?function(t,e){var r,n,i,a=[];for(i=0;i0&&a.push(r);if(1===a.length&&a[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i1)return!1;if((i+=r.selectedpoints.length)>1)return!1}return 1===i}(s)&&(h=j(_))){for(o&&o.remove(),v=0;v=0&&n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(a&&n._fullLayout._drawing){var o=v(a,t);o&&i.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(i)>-1}function U(t,e,r){var n,a,o,s;for(n=0;n=0)L._fullLayout._deactivateShape(L);else if(!_){var r=z.clickmode;b.done(mt).then((function(){if(b.clear(mt),2===t){for(ft.remove(),$=0;$-1&&O(e,L,i.xaxes,i.yaxes,i.subplot,i,ft),"event"===r&&L.emit("plotly_selected",void 0);s.click(L,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(mt).then((function(){b.clear(mt),i.gd.emit("plotly_selected",et),Q&&i.selectionDefs&&(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&&i.doneFnCompleted(gt)})).catch(y.error),_&&B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:O}},{"../../components/color":361,"../../components/dragelement/helpers":379,"../../components/drawing":383,"../../components/fx":401,"../../components/fx/helpers":397,"../../components/shapes/draw_newshape/display_outlines":449,"../../components/shapes/draw_newshape/helpers":450,"../../components/shapes/draw_newshape/newshapes":451,"../../lib":498,"../../lib/clear_gl_canvases":482,"../../lib/polygon":510,"../../lib/throttle":525,"../../plot_api/subroutines":539,"../../registry":633,"./axis_ids":553,"./constants":556,"./handle_outline":560,"./helpers":561,polybooljs:249}],571:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-time-format").utcFormat,a=t("../../lib"),o=a.numberFormat,s=t("fast-isnumeric"),l=a.cleanNumber,c=a.ms2DateTime,u=a.dateTime2ms,f=a.ensureNumber,h=a.isArrayOrTypedArray,p=t("../../constants/numerical"),d=p.FP_SAFE,m=p.BADNUM,g=p.LOG_CLIP,v=p.ONEWEEK,y=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=t("./axis_ids"),T=t("./constants"),k=T.HOUR_PATTERN,A=T.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function S(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||"x",p=r.charAt(0);function E(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return m}function L(e,r,n,i){if((i||{}).msUTC&&s(e))return+e;var o=u(e,n||t.calendar);if(o===m){if(!s(e))return m;e=+e;var l=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-l/10);o=u(new Date(c))+l/10}return o}function C(e,r,n){return c(e,r,n||t.calendar)}function P(e){return t._categories[Math.round(e)]}function I(e){if(S(e)){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push("number"==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return m}function O(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=O(t);return void 0!==e?e:s(t)?+t:void 0}function D(t){return s(t)?+t:O(t)}function R(t,e,r){return n.round(r+e*t,2)}function F(t,e,r){return(t-r)/e}var B=function(e){return s(e)?R(e,t._m,t._b):m},N=function(e){return F(e,t._m,t._b)};if(t.rangebreaks){var j="y"===p;B=function(e){if(!s(e))return m;var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);var n=j;t.range[0]>t.range[1]&&(n=!n);for(var i=n?-1:1,a=i*e,o=0,l=0;lu)){o=a<(c+u)/2?l:l+1;break}o=l+1}var f=t._B[o]||0;return isFinite(f)?R(e,t._m2,f):0},N=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;it._rangebreaks[i].pmax&&(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l="log"===t.type?E:f,t.l2c="log"===t.type?M:f,t.l2p=B,t.p2l=N,t.c2p="log"===t.type?function(t,e){return B(E(t,e))}:B,t.p2c="log"===t.type?function(t){return M(N(t))}:N,-1!==["linear","-"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(e){return t.l2p(l(e))},t.p2d=t.p2r=N,t.cleanPos=f):"log"===t.type?(t.d2r=t.d2l=function(t,e){return E(l(t),e)},t.r2d=t.r2c=function(t){return M(l(t))},t.d2c=t.r2l=l,t.c2d=t.l2r=f,t.c2r=E,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(N(t))},t.r2p=function(e){return t.l2p(l(e))},t.p2r=N,t.cleanPos=f):"date"===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=L,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(L(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(N(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,m,t.calendar)}):"category"===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=D(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=f,t.r2l=D,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return"string"==typeof t&&""!==t?t:f(t)}):"multicategory"===t.type&&(t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=O,t.l2r=t.c2r=f,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return Array.isArray(t)||"string"==typeof t&&""!==t?t:f(t)},t.setupMultiCategory=function(n){var i,o,s=t._traceIndices,l=t._matchGroup;if(l&&0===t._categories.length)for(var c in l)if(c!==r){var u=e[w.id2name(c)];s=s.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],d=[];for(i=0;id&&(o[n]=d),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=w.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&&t._r?"_r":"range",o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f="y"===p;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&&(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;su&&(h=!h),h&&t._rangebreaks.reverse();var d=h?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;si&&(i+=7,oi&&(i+=24,o=n&&o=n&&e=s.min&&(ts.max&&(s.max=n),i=!1)}i&&c.push({min:t,max:n})}};for(n=0;nr.duration?(!function(){for(var r={},n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function g(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),m=a.simpleMap(e.xr1,i.r2l),g=d[1]-d[0],v=m[1]-m[0];p[0]=(d[0]*(1-r)+r*m[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/g),i.range[0]=i.l2r(d[0]*(1-r)+r*m[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*m[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,A=h?p[1]:0,M=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-M,L=l._offset-S;n.clipRect.call(o.setTranslate,k,A).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,L).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{"../../components/drawing":383,"../../lib":498,"../../registry":633,"./axes":549,"@plotly/d3":58}],577:[function(t,e,r){"use strict";var n=t("../../registry").traceIs,i=t("./axis_autotype");function a(t){return{v:"x",h:"y"}[t.orientation||"v"]}function o(t,e){var r=a(t),i=n(t,"box-violin"),o=n(t._fullInput||{},"candlestick");return i&&!o&&e===r&&void 0===t[r]&&void 0===t[r+"0"]}e.exports=function(t,e,r,s){r("autotypenumbers",s.autotypenumbersDflt),"-"===r("type",(s.splomStash||{}).type)&&(!function(t,e){if("-"!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf("scene")&&(s=l);var c=function(t,e,r){for(var n=0;n0&&(i["_"+r+"axes"]||{})[e])return i;if((i[r+"axis"]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}(e,s,l);if(!c)return;if("histogram"===c.type&&l==={v:"y",h:"x"}[c.orientation||"v"])return void(t.type="linear");var u=l+"calendar",f=c[u],h={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&l==={h:"x",v:"y"}[c.orientation||"v"]&&(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r0?".":"")+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&&e._commandObserver&&(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&&e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&&o&&void 0!==s.lookupTable[e.value]&&(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new M(t)},S.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in w.layerNameToAdjective)if("frame"!==s&&i["show"+s]){o=!0;break}for(var l=0;l0&&a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&&this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=o.selectAll(".point"),this.dataPoints.text=o.selectAll("text"),this.dataPaths.line=o.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this.render()}},S.updateProjection=function(t,e){var r=this.graphDiv,n=e[this.id],l=e._size,u=n.domain,f=n.projection,h=n.lonaxis,p=n.lataxis,d=h._ax,m=p._ax,v=this.projection=function(t){var e=t.projection,r=e.type,n=w.projNames[r];n="geo"+c.titleCase(n);for(var l=(i[n]||s[n])(),u=t._isSatellite?180*Math.acos(1/e.distance)/Math.PI:t._isClipped?w.lonaxisSpan[r]/2:null,f=["center","rotate","parallels","clipExtent"],h=function(t){return t?l:[]},p=0;pu*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(t){return l.getPath().bounds(t)},l.precision(w.precision),t._isSatellite&&l.tilt(e.tilt).distance(e.distance);u&&l.clipAngle(u-w.clipPad);return l}(n),y=[[l.l+l.w*u.x[0],l.t+l.h*(1-u.y[1])],[l.l+l.w*u.x[1],l.t+l.h*(1-u.y[0])]],x=n.center||{},b=f.rotation||{},_=h.range||[],T=p.range||[];if(n.fitbounds){d._length=y[1][0]-y[0][0],m._length=y[1][1]-y[0][1],d.range=g(r,d),m.range=g(r,m);var k=(d.range[0]+d.range[1])/2,A=(m.range[0]+m.range[1])/2;if(n._isScoped)x={lon:k,lat:A};else if(n._isClipped){x={lon:k,lat:A},b={lon:k,lat:A,roll:b.roll};var M=f.type,S=w.lonaxisSpan[M]/2||180,L=w.lataxisSpan[M]/2||90;_=[k-S,k+S],T=[A-L,A+L]}else x={lon:k,lat:A},b={lon:k,lat:b.lat,roll:b.roll}}v.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(f.parallels);var C=E(_,T);v.fitExtent(y,C);var P=this.bounds=v.getBounds(C),I=this.fitScale=v.scale(),O=v.translate();if(n.fitbounds){var z=v.getBounds(E(d.range,m.range)),D=Math.min((P[1][0]-P[0][0])/(z[1][0]-z[0][0]),(P[1][1]-P[0][1])/(z[1][1]-z[0][1]));isFinite(D)?v.scale(D*I):c.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(f.scale*I);var R=this.midPt=[(P[0][0]+P[1][0])/2,(P[0][1]+P[1][1])/2];if(v.translate([O[0]+(R[0]-O[0]),O[1]+(R[1]-O[1])]).clipExtent(P),n._isAlbersUsa){var F=v([x.lon,x.lat]),B=v.translate();v.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},S.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(t){return"lonaxis"===t||"lataxis"===t}function l(t){return Boolean(w.lineLayers[t])}function c(t){return Boolean(w.fillLayers[t])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||c(t)?e["show"+t]:!s(t)||e[t].showgrid})),p=r.framework.selectAll(".layer").data(u,String);p.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),p.enter().append("g").attr("class",(function(t){return"layer "+t})).each((function(t){var e=a[t]=n.select(this);"bg"===t?r.bgRect=e.append("rect").style("pointer-events","all"):s(t)?o[t]=e.append("path").style("fill","none"):"backplot"===t?e.append("g").classed("choroplethlayer",!0):"frontplot"===t?e.append("g").classed("scatterlayer",!0):l(t)?o[t]=e.append("path").style("fill","none").style("stroke-miterlimit",2):c(t)&&(o[t]=e.append("path").style("stroke","none"))})),p.order(),p.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];"frame"===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(A(i,i.objects[r])):s(r)&&n.datum(function(t,e,r){var n,i,a,o=e[t],s=w.scopeDefaults[e.scope];"lonaxis"===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):"lataxis"===t&&(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:"linear",range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};m.setConvert(l,r);var c=m.calcTicks(l);e.isScoped||"lonaxis"!==t||c.pop();for(var u=c.length,f=new Array(u),h=0;h-1&&b(n.event,i,[r.xaxis],[r.yaxis],r.id,f),s.indexOf("event")>-1&&p.click(i,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i="clip"+r._uid+t.id;t.clipDef=r._clips.append("clipPath").attr("id",i),t.clipRect=t.clipDef.append("rect"),t.framework=n.select(t.container).append("g").attr("class","geo "+t.id).call(h.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:"x",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:"y",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},m.setConvert(t.mockAxis,r)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,"projection.scale":n.scale},e=t._isScoped?{"center.lon":r.lon,"center.lat":r.lat}:t._isClipped?{"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat}:{"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":i.lon},c.extendFlat(this.viewInitial,e)},S.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr("display",i).attr("transform",n)}},{"../../components/color":361,"../../components/dragelement":380,"../../components/drawing":383,"../../components/fx":401,"../../lib":498,"../../lib/geo_location_utils":491,"../../lib/topojson_utils":527,"../../registry":633,"../cartesian/autorange":548,"../cartesian/axes":549,"../cartesian/select":570,"../plots":614,"./constants":582,"./zoom":587,"@plotly/d3":58,"d3-geo":109,"d3-geo-projection":108,"topojson-client":310}],584:[function(t,e,r){"use strict";var n=t("../../plots/get_data").getSubplotCalcData,i=t("../../lib").counterRegex,a=t("./geo"),o="geo",s=i(o),l={};l.geo={valType:"subplotid",dflt:o,editType:"calc"},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t("./layout_attributes"),supplyLayoutDefaults:t("./layout_defaults"),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s0&&P<0&&(P+=360);var I,O,z,D=(C+P)/2;if(!p){var R=d?f.projRotate:[D,0,0];I=r("projection.rotation.lon",R[0]),r("projection.rotation.lat",R[1]),r("projection.rotation.roll",R[2]),r("showcoastlines",!d&&x)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!x&&void 0)&&r("oceancolor")}(p?(O=-96.6,z=38.7):(O=d?D:I,z=(L[0]+L[1])/2),r("center.lon",O),r("center.lat",z),m&&(r("projection.tilt"),r("projection.distance")),g)&&r("projection.parallels",f.projParallels||[0,60]);r("projection.scale"),r("showland",!!x&&void 0)&&r("landcolor"),r("showlakes",!!x&&void 0)&&r("lakecolor"),r("showrivers",!!x&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",d&&"usa"!==u&&x)&&(r("countrycolor"),r("countrywidth")),("usa"===u||"north america"===u&&50===c)&&(r("showsubunits",x),r("subunitcolor"),r("subunitwidth")),d||r("showframe",x)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):v?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:"geo",attributes:s,handleDefaults:c,fullData:r,partition:"y"})}},{"../../lib":498,"../get_data":588,"../subplot_defaults":627,"./constants":582,"./layout_attributes":585}],587:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../registry"),o=Math.PI/180,s=180/Math.PI,l={cursor:"pointer"},c={cursor:"auto"};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+"."+t]=i.nestedProperty(l,t).get(),a.call("_storeDirectGUIEdit",s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&&(r.set(e),i.nestedProperty(l,t).set(e),h[n+"."+t]=e)}r(p),p("projection.scale",e.scale()/t.fitScale),p("fitbounds",!1),o.emit("plotly_relayout",h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r("center.lon",n[0]),r("center.lat",n[1])}return r.on("zoomstart",(function(){n.select(this).style(l)})).on("zoom",(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":r[0],"geo.center.lat":r[1]})})).on("zoomend",(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,m,g=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r("projection.rotation.lon",-n[0]),r("center.lon",i[0]),r("center.lat",i[1])}return g.on("zoomstart",(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on("zoom",(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])>2||Math.abs(n[1]-t[1])>2}(r))return g.scale(e.scale()),void g.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&&(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),m=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":c[0],"geo.center.lat":c[1],"geo.projection.rotation.lon":-l[0]})})).on("zoomend",(function(){n.select(this).style(c),m&&f(t,e,y)})),g}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++ed?(a=(f>0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var m=180-a-2*p,g=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,g)<=b(r[0],r[1],m,v)?[a,g,r[2]]:[m,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;nMath.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s>=0?1:-1),c.boxEnd[1]l[3]&&(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a>=0?1:-1),c.boxEnd[0]l[2]&&(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&&(g(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&&(g(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&&(c.boxInited=!1);break;case"pan":c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n).999&&(m="turntable"):m="turntable")}else m="turntable";r("dragmode",m),r("hovermode",n.getDfltFromLayout("hovermode"))}e.exports=function(t,e,r){var i=e._basePlotModules.length>1;o(t,e,r,{type:"gl3d",attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{"../../../components/color":361,"../../../lib":498,"../../../registry":633,"../../get_data":588,"../../subplot_defaults":627,"./axis_defaults":596,"./layout_attributes":599}],599:[function(t,e,r){"use strict";var n=t("./axis_attributes"),i=t("../../domain").attributes,a=t("../../../lib/extend").extendFlat,o=t("../../../lib").counterRegex;function s(t,e,r){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:e,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}e.exports={_arrayAttrRegexps:[o("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:i({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},{"../../../lib":498,"../../../lib/extend":488,"../../domain":579,"./axis_attributes":595}],600:[function(t,e,r){"use strict";var n=t("../../../lib/str2rgbarray"),i=["xaxis","yaxis","zaxis"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{"../../../lib/str2rgbarray":523}],601:[function(t,e,r){"use strict";e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c<3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&&(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if("auto"===u.tickmode){u.tickmode="linear";var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d/g," "));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c<3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d<2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;ar.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&&{passive:!1}),t.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==t.fullSceneLayout.dragmode&&0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit("plotly_relayouting",e)}})),t.staticMode||t.glplot.canvas.addEventListener("webglcontextlost",(function(r){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),b(e),e.glplot.axes.update(e.axesOptions);for(var c=Object.keys(e.traces),u=null,h=e.glplot.selection,m=0;m")):"isosurface"===t.type||"volume"===t.type?(T.valueLabel=p.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),S.push("value: "+T.valueLabel),h.textLabel&&S.push(h.textLabel),x=S.join("
")):x=h.textLabel;var E={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:w};d.appendArrayPointValue(E,_,w),t._module.eventData&&(E=_._module.eventData(E,h,_,{},w));var L={points:[E]};if(e.fullSceneLayout.hovermode){var C=[];d.loneHover({trace:_,x:(.5+.5*y[0]/y[3])*s,y:(.5-.5*y[1]/y[3])*l,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:x,name:u.name,color:d.castHoverOption(_,w,"bgcolor")||u.color,borderColor:d.castHoverOption(_,w,"bordercolor"),fontFamily:d.castHoverOption(_,w,"font.family"),fontSize:d.castHoverOption(_,w,"font.size"),fontColor:d.castHoverOption(_,w,"font.color"),nameLength:d.castHoverOption(_,w,"namelength"),textAlign:d.castHoverOption(_,w,"align"),hovertemplate:f.castOption(_,w,"hovertemplate"),hovertemplateLabels:f.extendFlat({},E,T),eventData:[E]},{container:n,gd:r,inOut_bbox:C}),E.bbox=C[0]}h.buttons&&h.distance<5?r.emit("plotly_click",L):r.emit("plotly_hover",L),this.oldEventData=L}else d.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(e)};var k=["xaxis","yaxis","zaxis"];function A(t,e,r){for(var n=t.fullSceneLayout,i=0;i<3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+"calendar"],u=e["_"+o+"length"];if(f.isArrayOrTypedArray(l))for(var h,p=0;p<(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;dg[1][a])g[0][a]=-1,g[1][a]=1;else{var L=g[1][a]-g[0][a];g[0][a]-=L/32,g[1][a]+=L/32}if("reversed"===s.autorange){var C=g[0][a];g[0][a]=g[1][a],g[1][a]=C}}else{var P=s.range;g[0][a]=s.r2l(P[0]),g[1][a]=s.r2l(P[1])}g[0][a]===g[1][a]&&(g[0][a]-=1,g[1][a]+=1),v[a]=g[1][a]-g[0][a],this.glplot.setBounds(a,{min:g[0][a]*h[a],max:g[1][a]*h[a]})}var I=c.aspectmode;if("cube"===I)d=[1,1,1];else if("manual"===I){var O=c.aspectratio;d=[O.x,O.y,O.z]}else{if("auto"!==I&&"data"!==I)throw new Error("scene.js aspectRatio was not one of the enumerated types");var z=[1,1,1];for(a=0;a<3;++a){var D=y[l=(s=c[k[a]]).type];z[a]=Math.pow(D.acc,1/D.count)/h[a]}d="data"===I||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?z:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&&F){var B=this.container.style;B.position="absolute",B.left=F.l+R.x[0]*F.w+"px",B.top=F.t+(1-R.y[1])*F.h+"px",B.width=F.w*(R.x[1]-R.x[0])+"px",B.height=F.h*(R.y[1]-R.y[0])+"px"}this.glplot.redraw()}},w.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener("wheel",this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?"orthographic":"perspective"}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),"orthographic"===r.projection.type!==this.camera._ortho&&(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+".camera").get();function n(t,e,r,n){var i=["up","center","eye"],a=["x","y","z"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a<3;a++)for(var o=0;o<3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&&e.projection.type!==r.projection.type)&&(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+".aspectratio").get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&&(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+".camera")).get(),p[this.id+".camera"]=n),c&&(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+".aspectratio")).get(),p[this.id+".aspectratio"]=o),u.call("_storeDirectGUIEdit",t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+".camera").set(e);if(c)a.set(i),f.nestedProperty(s,this.id+".aspectratio").set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if("orbit"===t)r.mode="orbit",r.keyBindingMode="rotate";else if("turntable"===t){r.up=[0,0,1],r.mode="turntable",r.keyBindingMode="rotate";var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)<.999){var c=this.id+".camera.up",h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call("_storeDirectGUIEdit",d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t="png"),this.staticMode&&this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement("canvas");o.width=r,o.height=i;var s,l=o.getContext("2d"),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case"jpeg":s=o.toDataURL("image/jpeg");break;case"webp":s=o.toDataURL("image/webp");break;default:s=o.toDataURL("image/png")}return this.staticMode&&this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},p.setConvert(this._mockAxis,t)},e.exports=_},{"../../../stackgl_modules":1119,"../../components/fx":401,"../../lib":498,"../../lib/show_no_webgl_msg":520,"../../lib/str2rgbarray":523,"../../plots/cartesian/axes":549,"../../registry":633,"./layout/convert":597,"./layout/spikes":600,"./layout/tick_marks":601,"./project":602,"has-passive-events":224,"webgl-context":326}],604:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;aOpenStreetMap
contributors',a=['\xa9 Carto',i].join(" "),o=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),s={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}]},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}]},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:a,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}]},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:a,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}]},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:o,tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}]},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:o,tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}]},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}]}},l=n(s);e.exports={requiredVersion:"1.10.1",styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@1.10.1."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",l.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}},{"../../lib/sort_object_keys":521}],607:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){var r=t.split(" "),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=["",""],u=[0,0];switch(i){case"top":c[0]="top",u[1]=-l;break;case"bottom":c[0]="bottom",u[1]=l}switch(a){case"left":c[1]="right",u[0]=-s;break;case"right":c[1]="left",u[0]=s}return{anchor:c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",offset:u}}},{"../../lib":498}],608:[function(t,e,r){"use strict";var n=t("mapbox-gl/dist/mapbox-gl-unminified"),i=t("../../lib"),a=i.strTranslate,o=i.strScale,s=t("../../plots/get_data").getSubplotCalcData,l=t("../../constants/xmlns_namespaces"),c=t("@plotly/d3"),u=t("../../components/drawing"),f=t("../../lib/svg_text_utils"),h=t("./mapbox"),p=r.constants=t("./constants");function d(t){return"string"==typeof t&&(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf("mapbox://"))}r.name="mapbox",r.attr="subplot",r.idRoot="mapbox",r.idRegex=r.attrRegex=i.counterRegex("mapbox"),r.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},r.layoutAttributes=t("./layout_attributes"),r.supplyLayoutDefaults=t("./layout_defaults"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(""===t._context.mapboxAccessToken)return"";for(var n=[],a=[],o=!1,s=!1,l=0;l1&&i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&&i.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(t,a);n.accessToken=o;for(var l=0;l_/2){var w=v.split("|").join("
");x.text(w).attr("data-unformatted",w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr("transform",a(-3,8-b.height)),y.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var T=1;b.width+6>_&&(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr("transform",a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n0){for(var r=0;r0}function u(t){var e={},r={};switch(t.type){case"circle":n.extendFlat(r,{"circle-radius":t.circle.radius,"circle-color":t.color,"circle-opacity":t.opacity});break;case"line":n.extendFlat(r,{"line-width":t.line.width,"line-color":t.color,"line-opacity":t.opacity,"line-dasharray":t.line.dash});break;case"fill":n.extendFlat(r,{"fill-color":t.color,"fill-outline-color":t.fill.outlinecolor,"fill-opacity":t.opacity});break;case"symbol":var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":i.placement}),n.extendFlat(r,{"icon-color":t.color,"text-color":i.textfont.color,"text-opacity":t.opacity});break;case"raster":n.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===t.sourcetype&&(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&&this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};"geojson"===r?e="data":"vector"===r?e="string"==typeof n?"url":"tiles":"raster"===r?(e="tiles",a.tileSize=256):"image"===r&&(e="url",a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&&(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if("traces"===t)for(var e=this.subplot.getMapLayers(),r=0;r1)for(r=0;r-1&&v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf("event")>-1&&c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off("click",e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on("zoomstart",e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on("click",e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+"px",n.height=r.h*(e.y[1]-e.y[0])+"px",n.left=r.l+e.x[0]*r.w+"px",n.top=r.t+(1-e.y[1])*r.h+"px",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e=e.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=e._paper.attr("width")-7),r.attr(a);var o=r.select(".js-link-to-tool"),s=r.select(".js-link-spacer"),l=r.select(".js-sourcelinks");t._context.showSources&&t._context.showSources(t),t._context.showLink&&function(t,e){e.text("");var r=e.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(t._context.linkText+" "+String.fromCharCode(187));if(t._context.sendData)r.on("click",(function(){b.sendDataToCloud(t)}));else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}(t,o),s.text(o.text()&&l.text()?" - ":"")}},b.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit("plotly_beforeexport");var r=n.select(t).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:e+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(t,!1,"keepdata"),i.node().submit(),r.remove(),t.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function A(t,e){var r=t._context.locale;r||(r="en-US");var n=!1,i={};function a(t){for(var r=!0,a=0;a1&&z.length>1){for(s.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o15&&z.length>15&&0===l.shapes.length&&0===l.images.length,b.linkSubplots(h,l,f,n),b.cleanPlot(h,l,f,n);var N=!(!n._has||!n._has("gl2d")),j=!(!l._has||!l._has("gl2d")),U=!(!n._has||!n._has("cartesian"))||N,V=!(!l._has||!l._has("cartesian"))||j;U&&!V?n._bgLayer.remove():V&&!U&&(l._shouldCreateBgLayer=!0),n._zoomlayer&&!t._dragging&&d({_fullLayout:n}),function(t,e){var r,n=[];e.meta&&(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n1,m=!e.height&&Math.abs(r.height-i)>1;(m||d)&&(d&&(r.width=n),m&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,c=e._basePlotModules,f=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&&o.includeBasePlot(t,e);for(var h in c.length||c.push(f),e._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(u.subplotSort);for(a=0;a1&&(r.l/=m,r.r/=m)}if(f){var g=(r.t+r.b)/f;g>1&&(r.t/=g,r.b/=g)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:x,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return b.doAutoMargin(t)}},b.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,a=e.margin,l=u.extendFlat({},i),c=a.l,f=a.r,h=a.t,d=a.b,m=e._pushmargin,g=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in m)g[v]||delete m[v];for(var y in m.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:d}},m){var x=m[y].l||{},_=m[y].b||{},w=x.val,T=x.size,k=_.val,A=_.size;for(var M in m){if(o(T)&&m[M].r){var S=m[M].r.val,E=m[M].r.size;if(S>w){var L=(T*S+(E-r)*w)/(S-w),P=(E*(1-w)+(T-r)*(1-S))/(S-w);L+P>c+f&&(c=L,f=P)}}if(o(A)&&m[M].t){var I=m[M].t.val,O=m[M].t.size;if(I>k){var z=(A*I+(O-n)*k)/(I-k),D=(O*(1-k)+(A-n)*(1-I))/(I-k);z+D>d+h&&(d=z,h=D)}}}}}var R=u.constrain(r-a.l-a.r,2,64),F=u.constrain(n-a.t-a.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(c+f)/B;j>1&&(c/=j,f/=j)}if(N){var U=(d+h)/N;U>1&&(d/=U,h/=U)}if(i.l=Math.round(c),i.r=Math.round(f),i.t=Math.round(h),i.b=Math.round(d),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&&b.didMarginChange(l,i)){"_redrawFromAutoMarginCount"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(g).length);if(e._redrawFromAutoMarginCount0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&t._transitionData._interruptCallbacks.push((function(){return s.call("redraw",t)})),t._transitionData._interruptCallbacks.push((function(){t.emit("plotly_transitioninterrupted",[])}));var a=0,o=0;function l(){return a++,function(){o++,n||o!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call("redraw",t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit("plotly_transitioned",[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=u.syncOrAsync(i,t);return a&&a.then||(a=Promise.resolve()),a.then((function(){return t}))}b.didMarginChange=function(t,e){for(var r=0;r1)return!0}return!1},b.graphJson=function(t,e,r,n,i,a){(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&b.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t,e){if("function"==typeof t)return e?"_function_":null;if(u.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===["_","["].indexOf(a.charAt(0)))if("function"!=typeof t[a]){if("keepdata"===r){if("src"===a.substr(a.length-3))return}else if("keepstream"===r){if("string"==typeof(n=t[a+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(t.stream))return}else if("keepall"!==r&&"string"==typeof(n=t[a+"src"])&&n.indexOf(":")>0)return;i[a]=c(t[a],e)}else e&&(i[a]="_function")})),i}return Array.isArray(t)?t.map((function(t){return c(t,e)})):u.isTypedArray(t)?u.simpleMap(t,u.identity):u.isJSDate(t)?u.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=c(t);return e&&delete r.fit,r}))};if(!e&&(f.layout=c(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return l&&(f.frames=c(l)),a&&(f.config=c(t._context,!0)),"object"===n?f:JSON.stringify(f)},b.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&&n.calc&&(o=n.calc(t,r))}Array.isArray(o)&&o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(o,c,f),i=0;i1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return"M"+h(u(t,e,r,n),i,a).join("L")},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t=90||s>90&&l>=450?1:u<=0&&h<=0?0:Math.max(u,h);e=s<=180&&l>=180||s>180&&l>=540?-1:c>=0&&f>=0?0:Math.min(c,f);r=s<=270&&l>=270||s>270&&l>=630?-1:u>=0&&h>=0?0:Math.min(u,h);n=l>=360?1:c<=0&&f<=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w>T?(d=f,y=(h-(m=f*T))/n.h/2,g=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(m=h,y=(f-(d=h/T))/n.w/2,g=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=m,this.xDomain2=g,this.yDomain2=v;var k,A=this.xOffset2=n.l+n.w*g[0],M=this.yOffset2=n.t+n.h*(1-v[1]),S=this.radius=d/b,E=this.innerRadius=this.getHole(e)*S,L=this.cx=A-S*x[0],C=this.cy=M+S*x[3],P=this.cxx=L-A,I=this.cyy=C-M,O=i.side;"counterclockwise"===O?(k=O,O="top"):"clockwise"===O&&(k=O,O="bottom"),this.radialAxis=this.mockAxis(t,e,i,{_id:"x",side:O,_trueSide:k,domain:[E/n.w,S/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:"right",domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:"x",domain:g}),this.yaxis=this.mockCartesianAxis(t,e,{_id:"y",domain:v});var z=this.pathSubplot();this.clipPaths.forTraces.select("path").attr("d",z).attr("transform",l(P,I)),r.frontplot.attr("transform",l(A,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr("d",z).attr("transform",l(L,C)).call(c.fill,e.bgcolor)},N.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},N.mockCartesianAxis=function(t,e,r){var n=this,i=n.isSmith,a=r._id,s=o.extendFlat({type:"linear"},r);p(s,t);var l={x:[0,2],y:[1,3]};return s.setRange=function(){var t=n.sectorBBox,r=l[a],i=n.radialAxis._rl,o=(i[1]-i[0])/(1-n.getHole(e));s.range=[t[r[0]]*o,t[r[1]]*o]},s.isPtWithinRange="x"!==a||i?function(){return!0}:function(t){return n.isPtInside(t)},s.setRange(),s.setScale(),s},N.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=this.getRadial(e);m(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,"gregorian"),n.r2l(a[1],null,"gregorian")]},N.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=r.getRadial(e),m=D(r.getSector(e)[0],360),g=r.radialAxis,v=u90&&m<=270&&(g.tickangle=180);var x=y?function(t){var e=O(r,C([t.x,0]));return l(e[0]-f,e[1]-p)}:function(t){return l(g.l2p(t.x)+u,0)},b=y?function(t){return I(r,t.x,-1/0,1/0)}:function(t){return r.pathArc(g.r2p(t.x)+u)},_=j(d);if(r.radialTickLayout!==_&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=_),v){g.setScale();var w=0,T=y?(g.tickvals||[]).filter((function(t){return t>=0})).map((function(t){return h.tickText(g,t,!0,!1)})):h.calcTicks(g),k=y?T:h.clipEnds(g,T),A=h.getTickSigns(g)[2];y&&(("top"===g.ticks&&"bottom"===g.side||"bottom"===g.ticks&&"top"===g.side)&&(A=-A),"top"===g.ticks&&"top"===g.side&&(w=-g.ticklen),"bottom"===g.ticks&&"bottom"===g.side&&(w=g.ticklen)),h.drawTicks(n,g,{vals:T,layer:i["radial-axis"],path:h.makeTickPath(g,0,A),transFn:x,crisp:!1}),h.drawGrid(n,g,{vals:k,layer:i["radial-grid"],path:b,transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:T,layer:i["radial-axis"],transFn:x,labelFns:h.makeLabelFns(g,w)})}var M=r.radialAxisAngle=r.vangles?F(U(R(d.angle),r.vangles)):d.angle,S=l(f,p),E=S+s(-M);V(i["radial-axis"],v&&(d.showticklabels||d.ticks),{transform:E}),V(i["radial-grid"],v&&d.showgrid,{transform:y?"":S}),V(i["radial-line"].select("line"),v&&d.showline,{x1:y?-a:u,y1:0,x2:a,y2:0,transform:E}).attr("stroke-width",d.linewidth).call(c.stroke,d.linecolor)},N.updateRadialAxisTitle=function(t,e,r){if(!this.isSmith){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=this.getRadial(e),l=this.id+"title",c=0;if(s.title){var f=u.bBox(this.layers["radial-axis"].node()).height,h=s.title.font.size,p=s.side;c="top"===p?h:"counterclockwise"===p?-(f+.4*h):f+.8*h}var d=void 0!==r?r:this.radialAxisAngle,m=R(d),g=Math.cos(m),v=Math.sin(m),y=a+i/2*g+c*v,b=o-i/2*v+c*g;this.layers["radial-axis-title"]=x.draw(n,l,{propContainer:s,propName:this.id+".radialaxis.title",placeholder:z(n,"Click to enter radial axis title"),attributes:{x:y,y:b,"text-anchor":"middle"},transform:{rotate:-d}})}},N.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=r.getAngular(e),m=r.angularAxis,g=r.isSmith;g||(r.fillViewInitialKey("angularaxis.rotation",d.rotation),m.setGeometry(),m.setScale());var v=g?function(t){var e=O(r,C([0,t.x]));return Math.atan2(e[0]-f,e[1]-p)-Math.PI/2}:function(t){return m.t2g(t.x)};"linear"===m.type&&"radians"===m.thetaunit&&(m.tick0=F(m.tick0),m.dtick=F(m.dtick));var y=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},x=g?function(t){var e=O(r,C([0,t.x]));return l(e[0],e[1])}:function(t){return y(v(t))},b=g?function(t){var e=O(r,C([0,t.x])),n=Math.atan2(e[0]-f,e[1]-p)-Math.PI/2;return l(e[0],e[1])+s(-F(n))}:function(t){var e=v(t);return y(e)+s(-F(e))},_=g?function(t){return P(r,t.x,0,1/0)}:function(t){var e=v(t),r=Math.cos(e),n=Math.sin(e);return"M"+[f+u*r,p-u*n]+"L"+[f+a*r,p-a*n]},w=h.makeLabelFns(m,0).labelStandoff,T={xFn:function(t){var e=v(t);return Math.cos(e)*w},yFn:function(t){var e=v(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(w+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*M)},anchorFn:function(t){var e=v(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},heightFn:function(t,e,r){var n=v(t);return-.5*(1+Math.sin(n))*r}},k=j(d);r.angularTickLayout!==k&&(i["angular-axis"].selectAll("."+m._id+"tick").remove(),r.angularTickLayout=k);var A,S=g?[1/0].concat(m.tickvals||[]).map((function(t){return h.tickText(m,t,!0,!1)})):h.calcTicks(m);if(g&&(S[0].text="\u221e",S[0].fontSize*=1.75),"linear"===e.gridshape?(A=S.map(v),o.angleDelta(A[0],A[1])<0&&(A=A.slice().reverse())):A=null,r.vangles=A,"category"===m.type&&(S=S.filter((function(t){return o.isAngleInsideSector(v(t),r.sectorInRad)}))),m.visible){var E="inside"===m.ticks?-1:1,L=(m.linewidth||1)/2;h.drawTicks(n,m,{vals:S,layer:i["angular-axis"],path:"M"+E*L+",0h"+E*m.ticklen,transFn:b,crisp:!1}),h.drawGrid(n,m,{vals:S,layer:i["angular-grid"],path:_,transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:S,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:x,labelFns:T})}V(i["angular-line"].select("path"),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr("stroke-width",d.linewidth).call(c.stroke,d.linecolor)},N.updateFx=function(t,e){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1)),this.updateHoverAndMainDrag(t))},N.updateHoverAndMainDrag=function(t){var e,r,s=this,c=s.isSmith,u=s.gd,f=s.layers,h=t._zoomlayer,p=S.MINZOOM,d=S.OFFEDGE,m=s.radius,x=s.innerRadius,T=s.cx,k=s.cy,A=s.cxx,M=s.cyy,L=s.sectorInRad,C=s.vangles,P=s.radialAxis,I=E.clampTiny,O=E.findXYatLength,z=E.findEnclosingVertexAngles,D=S.cornerHalfWidth,R=S.cornerLen/2,F=g.makeDragger(f,"path","maindrag","crosshair");n.select(F).attr("d",s.pathSubplot()).attr("transform",l(T,k)),F.onmousemove=function(t){y.hover(u,t,s.id),u._fullLayout._lasthover=F,u._fullLayout._hoversubplot=s.id},F.onmouseout=function(t){u._dragging||v.unhover(u,t)};var B,N,j,U,V,H,q,G,Y,W={element:F,gd:u,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function X(t,e){return Math.sqrt(t*t+e*e)}function Z(t,e){return X(t-A,e-M)}function J(t,e){return Math.atan2(M-e,t-A)}function K(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function Q(t,e){if(0===t)return s.pathSector(2*D);var r=R/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,m)),o=a-D,l=a+D;return"M"+K(o,n)+"A"+[o,o]+" 0,0,0 "+K(o,i)+"L"+K(l,i)+"A"+[l,l]+" 0,0,1 "+K(l,n)+"Z"}function $(t,e,r){if(0===t)return s.pathSector(2*D);var n,i,a=K(t,e),o=K(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&&c){var u=c/l,f=-1/u,h=O(D,u,l,c);n=O(R,f,h[0][0],h[0][1]),i=O(R,f,h[1][0],h[1][1])}else{var p,d;c?(p=R,d=D):(p=D,d=R),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return"M"+n.join("L")+"L"+i.reverse().join("L")+"Z"}function tt(t,e){return e=Math.max(Math.min(e,m),x),tp?(t-1&&1===t&&_(e,u,[s.xaxis],[s.yaxis],s.id,W),r.indexOf("event")>-1&&y.click(u,e,s.id)}W.prepFn=function(t,n,a){var l=u._fullLayout.dragmode,f=F.getBoundingClientRect();u._fullLayout._calcInverseTransform(u);var p=u._fullLayout._invTransform;e=u._fullLayout._invScaleX,r=u._fullLayout._invScaleY;var d=o.apply3DTransform(p)(n-f.left,a-f.top);if(B=d[0],N=d[1],C){var v=E.findPolygonOffset(m,L[0],L[1],C);B+=A+v[0],N+=M+v[1]}switch(l){case"zoom":W.clickFn=st,c||(W.moveFn=C?it:rt,W.doneFn=at,function(){j=null,U=null,V=s.pathSubplot(),H=!1;var t=u._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(G=g.makeZoombox(h,q,T,k,V)).attr("fill-rule","evenodd"),Y=g.makeCorners(h,T,k),w(u)}());break;case"select":case"lasso":b(t,n,a,W,l)}},v.init(W)},N.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,m=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(m.visible){var b,_,T,M=R(i.radialAxisAngle),E=m._rl,L=E[0],C=E[1],P=E[r],I=.75*(E[1]-E[0])/(1-i.getHole(e))/f;r?(b=p+(f+x)*Math.cos(M),_=d-(f+x)*Math.sin(M),T="radialdrag"):(b=p+(h-x)*Math.cos(M),_=d-(h-x)*Math.sin(M),T="radialdrag-inner");var O,z,D,B=g.makeRectDragger(u,T,"crosshair",-x,-x,y,y),N={element:B,gd:c};V(n.select(B),m.visible&&h0==(r?D>L:Dn?function(t){return t<=0}:function(t){return t>=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case"angularaxis":!function(t,e){var r=t.type;if("linear"===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return"degrees"===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return"degrees"===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&&"linear"===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o0?1:0}function i(t){var e=t[0],r=t[1];if(!isFinite(e)||!isFinite(r))return[1,0];var n=(e+1)*(e+1)+r*r;return[(e*e+r*r-1)/n,2*r/n]}function a(t,e){var r=e[0],n=e[1];return[r*t.radius+t.cx,-n*t.radius+t.cy]}function o(t,e){return e*t.radius}e.exports={smith:i,reactanceArc:function(t,e,r,n){var s=a(t,i([r,e])),l=s[0],c=s[1],u=a(t,i([n,e])),f=u[0],h=u[1];if(0===e)return["M"+l+","+c,"L"+f+","+h].join(" ");var p=o(t,1/Math.abs(e));return["M"+l+","+c,"A"+p+","+p+" 0 0,"+(e<0?1:0)+" "+f+","+h].join(" ")},resistanceArc:function(t,e,r,s){var l=o(t,1/(e+1)),c=a(t,i([e,r])),u=c[0],f=c[1],h=a(t,i([e,s])),p=h[0],d=h[1];if(n(r)!==n(s)){var m=a(t,i([e,0]));return["M"+u+","+f,"A"+l+","+l+" 0 0,"+(00){for(var n=[],i=0;i=u&&(h.min=0,d.min=0,g.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}function m(t,e,r,n){var i=h[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o("uirevision",n.uirevision),e.type="linear";var p=o("color"),d=p!==i.color.dflt?p:r.font.color,m=e._name.charAt(0).toUpperCase(),g="Component "+m,v=o("title.text",g);e._hovertitle=v===g?v:m,a.coerceFont(o,"title.font",{family:r.font.family,size:a.bigFont(r.font.size),color:d}),o("min"),u(t,e,o,"linear"),l(t,e,o,"linear"),s(t,e,o,"linear"),c(t,e,o,{outerTicks:!0}),o("showticklabels")&&(a.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:d}),o("tickangle"),o("tickformat")),f(t,e,o,{dfltColor:p,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o("hoverformat"),o("layer")}e.exports=function(t,e,r){o(t,e,r,{type:"ternary",attributes:h,handleDefaults:d,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{"../../components/color":361,"../../lib":498,"../../plot_api/plot_template":538,"../cartesian/line_grid_defaults":566,"../cartesian/prefix_suffix_defaults":568,"../cartesian/tick_label_defaults":573,"../cartesian/tick_mark_defaults":574,"../cartesian/tick_value_defaults":575,"../subplot_defaults":627,"./layout_attributes":630}],632:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("tinycolor2"),a=t("../../registry"),o=t("../../lib"),s=o.strTranslate,l=o._,c=t("../../components/color"),u=t("../../components/drawing"),f=t("../cartesian/set_convert"),h=t("../../lib/extend").extendFlat,p=t("../plots"),d=t("../cartesian/axes"),m=t("../../components/dragelement"),g=t("../../components/fx"),v=t("../../components/dragelement/helpers"),y=v.freeMode,x=v.rectMode,b=t("../../components/titles"),_=t("../cartesian/select").prepSelect,w=t("../cartesian/select").selectOnClick,T=t("../cartesian/select").clearSelect,k=t("../cartesian/select").clearSelectionsCache,A=t("../cartesian/constants");function M(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=M;var S=M.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;iE*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*m-i/2,n=e.t+e.h*(1-g)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:"linear",range:[w+2*k-_,_-w-2*T],domain:[m-o/2,m+o/2],_id:"x"},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a>=p.aaxis.range[0]&&t.a<=p.aaxis.range[1]&&t.b>=p.baxis.range[1]&&t.b<=p.baxis.range[0]&&t.c>=p.caxis.range[1]&&t.c<=p.caxis.range[0]},p.yaxis={type:"linear",range:[w,_-T-k],domain:[g-l/2,g+l/2],_id:"y"},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var A=p.yaxis.domain[0],M=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:"left",tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+l*E],anchor:"free",position:0,_id:"y",_length:i});f(M,p.graphDiv._fullLayout),M.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:"bottom",domain:p.xaxis.domain,anchor:"free",position:0,_id:"x",_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var L=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:"right",tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+l*E],anchor:"free",position:0,_id:"y",_length:i});f(L,p.graphDiv._fullLayout),L.setScale();var C="M"+r+","+(n+a)+"h"+i+"l-"+i/2+",-"+a+"Z";p.clipDef.select("path").attr("d",C),p.layers.plotbg.select("path").attr("d",C);var P="M0,"+a+"h"+i+"l-"+i/2+",-"+a+"Z";p.clipDefRelative.select("path").attr("d",P);var I=s(r,n);p.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",I),p.clipDefRelative.select("path").attr("transform",null);var O=s(r-S._offset,n+a);p.layers.baxis.attr("transform",O),p.layers.bgrid.attr("transform",O);var z=s(r+i/2,n)+"rotate(30)"+s(0,-M._offset);p.layers.aaxis.attr("transform",z),p.layers.agrid.attr("transform",z);var D=s(r+i/2,n)+"rotate(-30)"+s(0,-L._offset);p.layers.caxis.attr("transform",D),p.layers.cgrid.attr("transform",D),p.drawAxes(!0),p.layers.aline.select("path").attr("d",M.showline?"M"+r+","+(n+a)+"l"+i/2+",-"+a:"M0,0").call(c.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),p.layers.bline.select("path").attr("d",S.showline?"M"+r+","+(n+a)+"h"+i:"M0,0").call(c.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),p.layers.cline.select("path").attr("d",L.showline?"M"+(r+i/2)+","+n+"l"+i/2+","+a:"M0,0").call(c.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+"title",n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+("outside"===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+("outside"===a.ticks?a.ticklen:0)+3;n["a-title"]=b.draw(e,"a"+r,{propContainer:i,propName:this.id+".aaxis.title",placeholder:l(e,"Click to enter Component A title"),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=b.draw(e,"b"+r,{propContainer:a,propName:this.id+".baxis.title",placeholder:l(e,"Click to enter Component B title"),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,"text-anchor":"middle"}}),n["c-title"]=b.draw(e,"c"+r,{propContainer:o,propName:this.id+".caxis.title",placeholder:l(e,"Click to enter Component C title"),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,"text-anchor":"middle"}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+"tickLayout",c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&&(s.selectAll("."+a+"tick").remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],m=o.deg2rad(30),g=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b="b"===i?"M0,"+g+"l"+Math.sin(m)*v+","+Math.cos(m)*v:"M"+g+",0l"+Math.cos(m)*v+","+-Math.sin(m)*v,_={a:"M0,0l"+x+",-"+y/2,b:"M0,0l-"+y/2+",-"+x,c:"M0,0l-"+x+","+y/2}[i];d.drawTicks(r,t,{vals:"inside"===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+"grid"],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var L=A.MINZOOM/2+.87,C="m-0.87,.5h"+L+"v3h-"+(L+5.2)+"l"+(L/2+2.6)+",-"+(.87*L+4.5)+"l2.6,1.5l-"+L/2+","+.87*L+"Z",P="m0.87,.5h-"+L+"v3h"+(L+5.2)+"l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-2.6,1.5l"+L/2+","+.87*L+"Z",I="m0,1l"+L/2+","+.87*L+"l2.6,-1.5l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-"+(L/2+2.6)+","+(.87*L+4.5)+"l2.6,1.5l"+L/2+",-"+.87*L+"Z",O=!0;function z(t){n.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,M=this,S=M.layers.plotbg.select("path").node(),L=M.graphDiv,D=L._fullLayout._zoomlayer;function R(t){var e={};return e[M.id+".aaxis.min"]=t.a,e[M.id+".baxis.min"]=t.b,e[M.id+".caxis.min"]=t.c,e}function F(t,e){var r=L._fullLayout.clickmode;z(L),2===t&&(L.emit("plotly_doubleclick",null),a.call("_guiRelayout",L,R({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===t&&w(e,L,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf("event")>-1&&g.click(L,e,M.id)}function B(t,e){return 1-e/M.h}function N(t,e){return 1-(t+(M.h-e)/Math.sqrt(3))/M.w}function j(t,e){return(t-(M.h-e)/Math.sqrt(3))/M.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),m=(l/2+u)*M.w,g=(1-l/2-c)*M.w,y=(m+g)/2,x=g-m,_=(1-l)*M.h,w=_-x/E;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),k.transition().style("opacity",1).duration(200),b=!0),L.emit("plotly_relayouting",R(p))}function V(){z(L),p!==f&&(a.call("_guiRelayout",L,R(p)),O&&L.data&&L._context.showTips&&(o.notifier(l(L,"Double-click to zoom back out"),"long"),O=!1))}function H(t,e){var r=t/M.xaxis._m,n=e/M.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*M.yaxis._m,t=(f.c-p.c-f.b+p.b)*M.xaxis._m);var h=s(M.x0+t,M.y0+e);M.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",h);var d=s(-t,-e);M.clipDefRelative.select("path").attr("transform",d),M.aaxis.range=[p.a,M.sum-p.b-p.c],M.baxis.range=[M.sum-p.a-p.c,p.b],M.caxis.range=[M.sum-p.a-p.b,p.c],M.drawAxes(!1),M._hasClipOnAxisFalse&&M.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,M),L.emit("plotly_relayouting",R(p))}function q(){a.call("_guiRelayout",L,R(p))}this.dragOptions={element:S,gd:L,plotinfo:{id:M.id,domain:L._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(a,l,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],t=L._fullLayout._invScaleX,e=L._fullLayout._invScaleY;var m=M.dragOptions.dragmode=L._fullLayout.dragmode;y(m)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,"zoom"===m?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,L._fullLayout._calcInverseTransform(L);var u=L._fullLayout._invTransform,m=o.apply3DTransform(u)(r,n);r=m[0],n=m[1],f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,h=M.aaxis.range[1]-f.a,d=i(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v="M0,"+M.h+"L"+M.w/2+", 0L"+M.w+","+M.h+"Z",b=!1,T=D.append("path").attr("class","zoombox").attr("transform",s(M.x0,M.y0)).style({fill:d>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),k=D.append("path").attr("class","zoombox-corners").attr("transform",s(M.x0,M.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),M.clearSelect(L)}(0,l,u)):"pan"===m?(M.dragOptions.moveFn=H,M.dragOptions.clickFn=F,M.dragOptions.doneFn=q,f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,M.clearSelect(L)):(x(m)||y(m))&&_(a,l,u,M.dragOptions,m)}},S.onmousemove=function(t){g.hover(L,t,M.id),L._fullLayout._lasthover=S,L._fullLayout._hoversubplot=M.id},S.onmouseout=function(t){L._dragging||m.unhover(L,t)},m.init(this.dragOptions)}},{"../../components/color":361,"../../components/dragelement":380,"../../components/dragelement/helpers":379,"../../components/drawing":383,"../../components/fx":401,"../../components/titles":459,"../../lib":498,"../../lib/extend":488,"../../registry":633,"../cartesian/axes":549,"../cartesian/constants":556,"../cartesian/select":570,"../cartesian/set_convert":571,"../plots":614,"@plotly/d3":58,tinycolor2:307}],633:[function(t,e,r){"use strict";var n=t("./lib/loggers"),i=t("./lib/noop"),a=t("./lib/push_unique"),o=t("./lib/is_plain_object"),s=t("./lib/dom").addStyleRule,l=t("./lib/extend"),c=t("./plots/attributes"),u=t("./plots/layout_attributes"),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log("Type "+e+" already registered");else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log("Plot type "+e+" already registered.");for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l-1&&(f[p[r]].title={text:""});for(r=0;r")?"":e.html(t).text()}));return e.remove(),r}(_),_=(_=_.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),i.isIE()&&(_=(_=(_=_.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),_}},{"../components/color":361,"../components/drawing":383,"../constants/xmlns_namespaces":475,"../lib":498,"@plotly/d3":58}],642:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){for(var r=0;rf+c||!n(u))}for(var p=0;pa))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e0?e+=r:u<0&&(e-=r)}return e}function z(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,_+(i-e)/(i-r)-1)}var D=t[f+"a"],R=t[h+"a"];m=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var F=n.getDistanceFunction(i,p,d,(function(t){return(p(t)+d(t))/2}));if(n.getClosest(g,F,t),!1!==t.index&&g[t.index].p!==c){k||(L=function(t){return Math.min(A(t),t.p-y.bargroupwidth/2)},C=function(t){return Math.max(M(t),t.p+y.bargroupwidth/2)});var B=g[t.index],N=v.base?B.b+B.s:B.s;t[h+"0"]=t[h+"1"]=R.c2p(B[h],!0),t[h+"LabelVal"]=N;var j=y.extents[y.extents.round(B.p)];t[f+"0"]=D.c2p(x?L(B):j[0],!0),t[f+"1"]=D.c2p(x?C(B):j[1],!0);var U=void 0!==B.orig_p;return t[f+"LabelVal"]=U?B.orig_p:B.p,t.labelLabel=l(D,t[f+"LabelVal"],v[f+"hoverformat"]),t.valueLabel=l(R,t[h+"LabelVal"],v[h+"hoverformat"]),t.baseLabel=l(R,B.b,v[h+"hoverformat"]),t.spikeDistance=(function(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,w+(i-e)/(i-r)-1)}(B)+function(t){return P(A(t),M(t),w)}(B))/2,t[f+"Spike"]=D.c2p(B.p,!0),o(B,v,t),t.hovertemplate=v.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:function(t,e,r,n,a){var o=u(t,e,r,n,a);if(o){var s=o.cd,l=s[0].trace,c=s[o.index];return o.color=f(l,c),i.getComponentMethod("errorbars","hoverInfo")(c,l,o),[o]}},hoverOnBars:u,getTraceColor:f}},{"../../components/color":361,"../../components/fx":401,"../../constants/numerical":474,"../../lib":498,"../../plots/cartesian/axes":549,"../../registry":633,"./helpers":649}],651:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc").crossTraceCalc,colorbar:t("../scatter/marker_colorbar"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot").plot,style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"bar",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":563,"../scatter/marker_colorbar":940,"./arrays_to_calcdata":642,"./attributes":643,"./calc":644,"./cross_trace_calc":646,"./defaults":647,"./event_data":648,"./hover":650,"./layout_attributes":652,"./layout_defaults":653,"./plot":654,"./select":655,"./style":657}],652:[function(t,e,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],653:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../plots/cartesian/axes"),a=t("../../lib"),o=t("./layout_attributes");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s("barmode"),p=0;p0}function S(t){return"auto"===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function L(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||"end",u="end"===c,f="start"===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,m=i.height,g=Math.abs(e-t),v=Math.abs(n-r),y=g>2*_&&v>2*_?_:0;g-=2*y,v-=2*y;var x=S(l);"auto"!==l||d<=g&&m<=v||!(d>g||m>v)||(d>v||m>g)&&d.01?q:function(t,e,r){return r&&t===e?t:Math.abs(t-e)>=2?q(t):t>e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=A(a.ensureSingle(I,"path"),P,g,v);if(Y.style("vector-effect","non-scaling-stroke").attr("d",isNaN((N-B)*(U-j))||V&&t._context.staticPlot?"M0,0Z":"M"+B+","+j+"V"+U+"H"+N+"V"+j+"Z").call(l.setClipUrl,e.layerClipId,t),!P.uniformtext.mode&&R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,g,v){var w,T=e.xaxis,M=e.yaxis,C=t._fullLayout;function P(e,r,n){return a.ensureSingle(e,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(l.font,n).call(o.convertToTspans,t)}var I=n[0].trace,O="h"===I.orientation,z=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,"texttemplate");if(!s)return"";var l,c,f,h,p="histogram"===o.type,d="waterfall"===o.type,m="funnel"===o.type,g="h"===o.orientation;g?(l="y",c=i,f="x",h=n):(l="x",c=n,f="y",h=i);function v(t){return u(h,h.c2l(t),!0).text}var y=e[r],x={};x.label=y.p,x.labelLabel=x[l+"Label"]=(_=y.p,u(c,c.c2l(_),!0).text);var _;var w=a.castOption(o,y.i,"text");(0===w||w)&&(x.text=w);x.value=y.s,x.valueLabel=x[f+"Label"]=v(y.s);var T={};b(T,o,y.i),(p||void 0===T.x)&&(T.x=g?x.value:x.label);(p||void 0===T.y)&&(T.y=g?x.label:x.value);(p||void 0===T.xLabel)&&(T.xLabel=g?x.valueLabel:x.labelLabel);(p||void 0===T.yLabel)&&(T.yLabel=g?x.labelLabel:x.valueLabel);d&&(x.delta=+y.rawS||y.s,x.deltaLabel=v(x.delta),x.final=y.v,x.finalLabel=v(x.final),x.initial=x.final-x.delta,x.initialLabel=v(x.initial));m&&(x.value=y.s,x.valueLabel=v(x.value),x.percentInitial=y.begR,x.percentInitialLabel=a.formatPercent(y.begR),x.percentPrevious=y.difR,x.percentPreviousLabel=a.formatPercent(y.difR),x.percentTotal=y.sumR,x.percenTotalLabel=a.formatPercent(y.sumR));var k=a.castOption(o,y.i,"customdata");k&&(x.customdata=k);return a.texttemplateString(s,x,t._d3locale,T,x,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o="h"===i.orientation,s="waterfall"===i.type,l="funnel"===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split("+"),m=[],g=function(t){return-1!==d.indexOf(t)};g("label")&&m.push((v=t[e].p,u(o?n:r,v,!0).text));var v;g("text")&&(0===(f=a.castOption(i,p.i,"text"))||f)&&m.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;g("initial")&&m.push(c(b)),g("delta")&&m.push(c(y)),g("final")&&m.push(c(x))}if(l){g("value")&&m.push(c(p.s));var _=0;g("percent initial")&&_++,g("percent previous")&&_++,g("percent total")&&_++;var w=_>1;g("percent initial")&&(f=a.formatPercent(p.begR),w&&(f+=" of initial"),m.push(f)),g("percent previous")&&(f=a.formatPercent(p.difR),w&&(f+=" of previous"),m.push(f)),g("percent total")&&(f=a.formatPercent(p.sumR),w&&(f+=" of total"),m.push(f))}return m.join("
")}(e,r,n,i):m.getValue(s.text,r);return m.coerceString(y,o)}(C,n,i,T,M);w=function(t,e){var r=m.getValue(t.textposition,e);return m.coerceEnumerated(x,r)}(I,i);var D="stack"===g.mode||"relative"===g.mode,R=n[i],F=!D||R._outmost;if(!z||"none"===w||(R.isBlank||s===c||f===p)&&("auto"===w||"inside"===w))return void r.select("text").remove();var B=C.font,N=d.getBarColor(n[i],I),j=d.getInsideTextFont(I,i,B,N),U=d.getOutsideTextFont(I,i,B),V=r.datum();O?"log"===T.type&&V.s0<=0&&(s=T.range[0]=G*(Z/Y):Z>=Y*(X/G);G>0&&Y>0&&(J||K||Q)?w="inside":(w="outside",H.remove(),H=null)}else w="inside";if(!H){W=a.ensureUniformFontSize(t,"outside"===w?U:j);var $=(H=P(r,z,W)).attr("transform");if(H.attr("transform",""),q=l.bBox(H.node()),G=q.width,Y=q.height,H.attr("transform",$),G<=0||Y<=0)return void H.remove()}var tt,et,rt=I.textangle;"outside"===w?(et="both"===I.constraintext||"outside"===I.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p>2*_?_:0:h>2*_?_:0;var d=1;l&&(d=s?Math.min(1,p/f):Math.min(1,h/u));var m=S(c),g=E(i,m),v=(s?g.x:g.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,A=0,M=s?k(e,t):k(r,n);s?(b=e-M*o,T=M*v):(w=n+M*o,A=-M*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:A,scale:d,rotate:m}}(s,c,f,p,q,{isHorizontal:O,constrained:et,angle:rt})):(et="both"===I.constraintext||"inside"===I.constraintext,tt=L(s,c,f,p,q,{isHorizontal:O,constrained:et,angle:rt,anchor:I.insidetextanchor}));tt.fontSize=W.size,h("histogram"===I.type?"bar":I.type,tt,C),R.transform=tt,A(H,C,g,v).attr("transform",a.getTextTransform(tt))}(t,e,I,r,p,B,N,j,U,g,v),e.layerClipId&&l.hideOutsideRangePoint(c,I.select("text"),w,C,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod("errorbars","plot")(t,I,e,g)},toMoveInsideBar:L}},{"../../components/color":361,"../../components/drawing":383,"../../components/fx/helpers":397,"../../lib":498,"../../lib/svg_text_utils":524,"../../plots/cartesian/axes":549,"../../registry":633,"./attributes":643,"./constants":645,"./helpers":649,"./style":657,"./uniform_text":659,"@plotly/d3":58,"fast-isnumeric":185}],655:[function(t,e,r){"use strict";function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l="funnel"===s.type,c="h"===s.orientation,u=[];if(!1===e)for(r=0;r1||0===i.bargap&&0===i.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),e.selectAll("g.points").each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod("errorbars","style")(e)},styleTextPoints:m,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll("path"),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,g(s,t,e,r));var l=e.selected.textfont&&e.selected.textfont.color;l&&(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll("text"),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod("errorbars","style")(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{"../../components/color":361,"../../components/drawing":383,"../../lib":498,"../../registry":633,"./attributes":643,"./helpers":649,"./uniform_text":659,"@plotly/d3":58}],658:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults"),o=t("../../lib").coercePattern;e.exports=function(t,e,r,s,l){var c=r("marker.color",s),u=i(t,"marker");u&&a(t,e,l,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),i(t,"marker.line")&&a(t,e,l,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},{"../../components/color":361,"../../components/colorscale/defaults":371,"../../components/colorscale/helpers":372,"../../lib":498}],659:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib");function a(t){return"_"+t+"Text_minsize"}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=oh.range[1]&&(x+=Math.PI);if(n.getClosest(c,(function(t){return m(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?g+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s<0&&(t.idealAlign="left"),[t]}}},{"../../components/fx":401,"../../lib":498,"../../plots/polar/helpers":616,"../bar/hover":650,"../scatterpolar/hover":1001}],664:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"barpolar",basePlotModule:t("../../plots/polar"),categories:["polar","bar","showLegend"],attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("../scatterpolar/format_labels"),style:t("../bar/style").style,styleOnSelect:t("../bar/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../bar/select"),meta:{}}},{"../../plots/polar":617,"../bar/select":655,"../bar/style":657,"../scatter/marker_colorbar":940,"../scatterpolar/format_labels":1e3,"./attributes":660,"./calc":661,"./defaults":662,"./hover":663,"./layout_attributes":665,"./layout_defaults":666,"./plot":667}],665:[function(t,e,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},{}],666:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select("g.barlayer");a.makeTraceGroups(p,r,"trace bars").each((function(){var r=n.select(this),s=a.ensureSingle(r,"g","points").selectAll("g.point").data(a.identity);s.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&&i(s)&&i(p)&&i(d)&&o!==s&&p!==d){var m=u.c2g(t.s1),g=(p+d)/2;t.ct=[l.c2p(m*Math.cos(g)),c.c2p(m*Math.sin(g))],e=h(o,s,p,d)}else e="M0,0Z";a.ensureSingle(r,"path").attr("d",e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{"../../components/drawing":383,"../../lib":498,"../../plots/polar/helpers":616,"@plotly/d3":58,"fast-isnumeric":185}],668:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../bar/attributes"),a=t("../../components/color/attributes"),o=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../lib/extend").extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:l({},c.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:"style"}),size:l({},c.size,{arrayOk:!1,editType:"calc"}),color:l({},c.color,{arrayOk:!1,editType:"style"}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:"style"}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:n.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:"style"},unselected:{marker:n.unselected.marker,editType:"style"},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},{"../../components/color/attributes":360,"../../lib/extend":488,"../../plots/cartesian/axis_format_attributes":552,"../../plots/template_attributes":628,"../bar/attributes":643,"../scatter/attributes":922}],669:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../plots/cartesian/axes"),a=t("../../plots/cartesian/align_period"),o=t("../../lib"),s=t("../../constants/numerical").BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||"x"),A=i.getFromId(t,e.yaxis||"y"),M=[],S="violin"===e.type?"_numViolins":"_numBoxes";"h"===e.orientation?(y=k,x="x",b=A,_="y",w=!!e.yperiodalignment):(y=A,x="y",b=k,_="x",w=!!e.xperiodalignment);var E,L,C,P,I,O,z=function(t,e,r,i){var s,l=e+"0"in t,c="d"+e in t;if(e in t||l&&c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u).vals,u]}s=l?t[e+"0"]:"name"in t&&("category"===r.type||n(t.name)&&-1!==["linear","log"].indexOf(r.type)||o.isDateTime(t.name)&&"date"===r.type)?t.name:i;for(var f="multicategory"===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+"calendar"]),h=t._length,p=new Array(h),d=0;dE.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},H=1/0,q=-1/0;for(r=0;r=E.q1&&E.q3>=E.med){var Y=V("lowerfence");E.lf=Y!==s&&Y<=E.q1?Y:p(E,C,P);var W=V("upperfence");E.uf=W!==s&&W>=E.q3?W:d(E,C,P);var X=V("mean");E.mean=X!==s?X:P?o.mean(C,P):(E.q1+E.q3)/2;var Z=V("sd");E.sd=X!==s&&Z>=0?Z:P?o.stdev(C,P,E.mean):E.q3-E.q1,E.lo=m(E),E.uo=g(E);var J=V("notchspan");J=J!==s&&J>0?J:v(E,P),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&&C.length&&(K=Math.min(K,C[0]),Q=Math.max(Q,C[P-1])),e.notched&&(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+E.q1,"median = "+E.med,"q3 = "+E.q3].join("\n")),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}H=Math.min(H,E.min),q=Math.max(q,E.max),E.pts2=L.filter(j),M.push(E)}}e._extremes[y._id]=i.findExtremes(y,[H,q],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i=0&&it0){var ut,ft;if((E={}).pos=E[_]=B[r],L=E.pts=nt[r].sort(f),P=(C=E[x]=L.map(h)).length,E.min=C[0],E.max=C[P-1],E.mean=o.mean(C,P),E.sd=o.stdev(C,P,E.mean),E.med=o.interp(C,.5),P%2&&(lt||ct))lt?(ut=C.slice(0,P/2),ft=C.slice(P/2+1)):ct&&(ut=C.slice(0,P/2+1),ft=C.slice(P/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(C,.25),E.q3=o.interp(C,.75);E.lf=p(E,C,P),E.uf=d(E,C,P),E.lo=m(E),E.uo=g(E);var ht=v(E,P);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=L.filter(j),M.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r0?(M[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,"median:"),min:l(t,"min:"),q1:l(t,"q1:"),q3:l(t,"q3:"),max:l(t,"max:"),mean:"sd"===e.boxmean?l(t,"mean \xb1 \u03c3:"):l(t,"mean:"),lf:l(t,"lower fence:"),uf:l(t,"upper fence:")}},T[S]++,M):[{t:{empty:!0}}]};var c={text:"tx",hovertext:"htx"};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&&(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function m(t){return 4*t.q1-3*t.q3}function g(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{"../../constants/numerical":474,"../../lib":498,"../../plots/cartesian/align_period":546,"../../plots/cartesian/axes":549,"fast-isnumeric":185}],670:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../../lib"),a=t("../../plots/cartesian/constraints").getAxisGroup,o=["v","h"];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],m=0;for(s=0;s1,b=1-f[t+"gap"],_=1-f[t+"groupgap"];for(s=0;s0){var q=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;q+G>=0&&((W=V*(q+G))>M?(H=!0,j=Y,B=W):W>R&&(j=Y,B=M)),W<=M&&(B=M);var X=0;q-G<=0&&((X=-V*(q-G))>S?(H=!0,U=Y,N=X):X>F&&(U=Y,N=S)),X<=S&&(N=S)}else B=M,N=S;var Z=new Array(c.length);for(l=0;l0?(g="v",v=x>0?Math.min(_,b):Math.min(b)):x>0?(g="h",v=Math.min(_)):v=0;if(v){e._length=v;var S=r("orientation",g);e._hasPreCompStats?"v"===S&&0===x?(r("x0",0),r("dx",1)):"h"===S&&0===y&&(r("y0",0),r("dy",1)):"v"===S&&0===x?r("x0"):"h"===S&&0===y&&r("y0"),i.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,"marker.outliercolor"),s=r("marker.line.outliercolor"),l="outliers";e._hasPreCompStats?l="all":(o||s)&&(l="suspectedoutliers");var u=r(a+"points",l);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.color",e.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",e.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete e.marker;var f=r("hoveron");"all"!==f&&-1===f.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s),s("xhoverformat"),s("yhoverformat");var l=e._hasPreCompStats;l&&(s("lowerfence"),s("upperfence")),s("line.color",(t.marker||{}).color||r),s("line.width"),s("fillcolor",a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s("mean"),d=s("sd");p&&p.length&&(h=!0,d&&d.length&&(h="sd"))}s("boxmean",h),s("whiskerwidth"),s("width"),s("quartilemethod");var m=!1;if(l){var g=s("notchspan");g&&g.length&&(m=!0)}else n.validate(t.notchwidth,c.notchwidth)&&(m=!0);s("notched",m)&&s("notchwidth"),f(t,e,s,{prefix:"box"})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;ot.lo&&(x.so=!0)}return a}));h.enter().append("path").classed("point",!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?i.identity:[]);d.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,m=l.c2p(t.mean,!0),g=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+m+","+i+"V"+a+("sd"===p?"m0,0L"+g+","+d+"L"+m+","+i+"L"+v+","+d+"Z":"")):n.select(this).attr("d","M"+i+","+m+"H"+a+("sd"===p?"m0,0L"+d+","+g+"L"+i+","+m+"L"+d+","+v+"Z":""))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,"trace boxes").each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():("h"===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{"../../components/drawing":383,"../../lib":498,"@plotly/d3":58}],678:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s0?Math.floor:Math.ceil,I=L>0?Math.ceil:Math.floor,O=L>0?Math.min:Math.max,z=L>0?Math.max:Math.min,D=P(S+C),R=I(E-C),F=[[f=M(S)]];for(a=D;a*L=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i>=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],692:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../../lib/extend").extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,m,g,v,y,x=t["_"+e],b=t[e+"axis"],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t["_"+r],A=t[r+"axis"];"array"===b.tickmode&&(b.tickvals=x.slice());var M=t._xctrl,S=t._yctrl,E=M[0].length,L=M.length,C=t._a.length,P=t._b.length;n.prepTicks(b),"array"===b.tickmode&&delete b.tickvals;var I=b.smoothing?3:1;function O(n){var i,a,o,s,l,c,u,f,p,d,m,g,v=[],y=[],x={};if("b"===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(P-2,a))),s=a-o,x.length=P,x.crossLength=C,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i0&&(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,i))),u=i-c,x.length=C,x.crossLength=P,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a0&&(m=t.dxydj([],c,a-1,u,0),v.push(l[0]+m[0]/3),y.push(l[1]+m[1]/3),g=t.dxydj([],c,a-1,u,1),v.push(f[0]-g[0]/3),y.push(f[1]-g[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=A.smoothing,x}function z(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,"b"===e)for(o=Math.max(0,Math.min(P-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;ix.length-1||_.push(i(z(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;hx.length-1||m<0||m>x.length-1))for(g=x[s],v=x[m],a=0;ax[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&T.push(i(z(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&T.push(i(z(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h<=f;h++)p=b.tick0+b.dtick*h,_.push(i(O(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;hx[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&T.push(i(O(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&T.push(i(O(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{"../../lib/extend":488,"../../plots/cartesian/axes":549}],693:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../../lib/extend").extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;re.length&&(t=t.slice(0,e.length)):t=[],i=0;i90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],707:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("./map_1d_array"),o=t("./makepath"),s=t("./orient_text"),l=t("../../lib/svg_text_utils"),c=t("../../lib"),u=c.strRotate,f=c.strTranslate,h=t("../../constants/alignment");function p(t,e,r,i,s,l){var c="const-"+s+"-lines",u=r.selectAll("."+c).data(l);u.enter().append("path").classed(c,!0).style("vector-effect","non-scaling-stroke"),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f="M"+o(c,u,i.smoothing);n.select(this).attr("d",f).style("stroke-width",i.width).style("stroke",i.color).style("fill","none")})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll("text."+p).data(h);d.enter().append("text").classed(p,!0);var m=0,g={};return d.each((function(o,c){var h;if("auto"===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(g={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({"text-anchor":d>0?"start":"end","data-notex":1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr("transform",f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),m=Math.max(m,y.width+o.axis.labelpadding)})),d.exit().remove(),g.maxExtent=m,g}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,"trace").each((function(e){var r=n.select(this),i=e[0],h=i.trace,m=h.aaxis,g=h.baxis,y=c.ensureSingle(r,"g","minorlayer"),x=c.ensureSingle(r,"g","majorlayer"),b=c.ensureSingle(r,"g","boundarylayer"),_=c.ensureSingle(r,"g","labellayer");r.style("opacity",h.opacity),p(l,u,x,m,"a",m._gridlines),p(l,u,x,g,"b",g._gridlines),p(l,u,y,m,"a",m._minorgridlines),p(l,u,y,g,"b",g._minorgridlines),p(l,u,b,m,"a-boundary",m._boundarylines),p(l,u,b,g,"b-boundary",g._boundarylines);var w=d(t,l,u,h,i,_,m._labels,"a-label"),T=d(t,l,u,h,i,_,g._labels,"b-label");!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),m=c.aggNums(Math.max,null,r.a),g=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+m),f=g,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&&c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,"a-title"),u=d,f=.5*(g+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&&c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,"b-title")}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select("#"+t._clipPathId);h.size()||(h=r.append("clipPath").classed("carpetclip",!0));var p=c.ensureSingle(h,"path","carpetboundary"),d=e.clipsegments,m=[];for(f=0;f90&&y<270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&&(_=(-l.lineCount(b)+g)*m*a-_),b.attr("transform",f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr("text-anchor","middle").call(i.font,h.title.font)})),b.exit().remove()}},{"../../components/drawing":383,"../../constants/alignment":466,"../../lib":498,"../../lib/svg_text_utils":524,"./makepath":704,"./map_1d_array":705,"./orient_text":706,"@plotly/d3":58}],708:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../lib/search").findBin,a=t("./compute_control_points"),o=t("./create_spline_evaluator"),s=t("./create_i_derivative_evaluator"),l=t("./create_j_derivative_evaluator");e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],m=r[0],g=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,m-=b,g+=b,t.isVisible=function(t,e){return t>p&&tm&&ed||eg},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(ne[c-1]|ir[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,m=0,g=0,v=[];ne[c-1]?(f=c-2,h=1,m=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),ir[u-1]?(p=u-2,d=1,g=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),m&&(t.dxydi(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m),g&&(t.dxydj(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{"../../lib/search":518,"./compute_control_points":696,"./constants":697,"./create_i_derivative_evaluator":698,"./create_j_derivative_evaluator":699,"./create_spline_evaluator":700}],709:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r0&&a0&&i1e-5);return n.log("Smoother converged to",k,"after",A,"iterations"),t}},{"../../lib":498}],710:[function(t,e,r){"use strict";var n=t("../../lib").isArray1D;e.exports=function(t,e,r){var i=r("x"),a=i&&i.length,o=r("y"),s=o&&o.length;if(!a&&!s)return!1;if(e._cheater=!i,a&&!n(i)||s&&!n(o))e._length=null;else{var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),e.a&&e.a.length&&(l=Math.min(l,e.a.length)),e.b&&e.b.length&&(l=Math.min(l,e.b.length)),e._length=l}return!0}},{"../../lib":498}],711:[function(t,e,r){"use strict";var n=t("../../plots/template_attributes").hovertemplateAttrs,i=t("../scattergeo/attributes"),a=t("../../components/colorscale/attributes"),o=t("../../plots/attributes"),s=t("../../components/color/attributes").defaultLine,l=t("../../lib/extend").extendFlat,c=i.marker.line;e.exports=l({locations:{valType:"data_array",editType:"calc"},locationmode:i.locationmode,z:{valType:"data_array",editType:"calc"},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:i.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:l({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/color/attributes":360,"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/template_attributes":628,"../scattergeo/attributes":964}],712:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../constants/numerical").BADNUM,a=t("../../components/colorscale/calc"),o=t("../scatter/arrays_to_calcdata"),s=t("../scatter/calc_selection");function l(t){return t&&"string"==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f")}(t,f,o),[t]}},{"../../lib":498,"../../plots/cartesian/axes":549,"./attributes":711}],716:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../heatmap/colorbar"),calc:t("./calc"),calcGeoJSON:t("./plot").calcGeoJSON,plot:t("./plot").plot,style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"choropleth",basePlotModule:t("../../plots/geo"),categories:["geo","noOpacity","showLegend"],meta:{}}},{"../../plots/geo":584,"../heatmap/colorbar":790,"./attributes":711,"./calc":712,"./defaults":713,"./event_data":714,"./hover":715,"./plot":717,"./select":718,"./style":719}],717:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../lib/geo_location_utils"),o=t("../../lib/topojson_utils").getTopojsonFeatures,s=t("../../plots/cartesian/autorange").findExtremes,l=t("./style").style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u="geojson-id"===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p=0;n--){var i=r[n].id;if("string"==typeof i&&0===i.indexOf("water"))for(var a=n+1;a=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup["trace-"+r.uid];return t.map.addSource(a,{type:"geojson",data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{"../../plots/mapbox/constants":606,"./convert":721}],725:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../mesh3d/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"},{keys:["norm"]}),uhoverformat:i("u",1),vhoverformat:i("v",1),whoverformat:i("w",1),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),c.transforms=void 0,e.exports=c},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/template_attributes":628,"../mesh3d/attributes":862}],726:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;co.level||o.starts.length&&a===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r":p>c&&(n.prefixBoundary=!0);break;case"<":(pc||n.starts.length&&h===u)&&(n.prefixBoundary=!0);break;case"][":f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),fc&&(n.prefixBoundary=!0)}}}},{}],733:[function(t,e,r){"use strict";var n=t("../../components/colorscale"),i=t("./make_color_map"),a=t("./end_plus");e.exports={min:"zmin",max:"zmax",calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if("heatmap"===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{"../../components/colorscale":373,"./end_plus":741,"./make_color_map":746}],734:[function(t,e,r){"use strict";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],735:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./label_defaults"),a=t("../../components/color"),o=a.addOpacity,s=a.opacity,l=t("../../constants/filter_ops"),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,m=e.contours,g=r("contours.operation");(m._operation=c[g],function(t,e){var r;-1===u.indexOf(e.operation)?(t("contours.value",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t("contours.value",0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,m),"="===g?h=m.showlines=!0:(h=r("contours.showlines"),d=r("fillcolor",o((t.line||{}).color||l,.5))),h)&&(p=r("line.color",d&&s(d)?o(e.fillcolor,1):l),r("line.width",2),r("line.dash"));r("line.smoothing"),i(r,a,p,f)}},{"../../components/color":361,"../../constants/filter_ops":470,"./label_defaults":745,"fast-isnumeric":185}],736:[function(t,e,r){"use strict";var n=t("../../constants/filter_ops"),i=t("fast-isnumeric");function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&&(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={"[]":o("[]"),"][":o("]["),">":s(">"),"<":s("<"),"=":s("=")}},{"../../constants/filter_ops":470,"fast-isnumeric":185}],737:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){var i=n("contours.start"),a=n("contours.end"),o=!1===i||!1===a,s=r("contours.size");!(o?e.autocontour=!0:r("autocontour",!1))&&s||r("ncontours")}},{}],738:[function(t,e,r){"use strict";var n=t("../../lib");function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case"=":case"<":return t;case">":for(1!==t.length&&n.warn("Contour data invalid for the specified inequality operation."),a=t[0],r=0;r1e3){n.warn("Too many contours, clipping at 1000",t);break}return l}},{"../../lib":498,"./constraint_mapping":736,"./end_plus":741}],741:[function(t,e,r){"use strict";e.exports=function(t){return t.end+t.size/1e6}},{}],742:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./constants");function a(t,e,r,n){return Math.abs(t[0]-e[0])20&&e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,m=t.z[0].length,g=e.slice(),v=h.slice();for(c=0;c<1e4;c++){if(f>20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])<0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log("Found bad marching index:",f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(","),a(p[p.length-1],p[p.length-2],o,l)&&p.pop();var y=h[0]&&(e[0]<0||e[0]>m-2)||h[1]&&(e[1]<0||e[1]>d-2);if(e[0]===g[0]&&e[1]===g[1]&&h[0]===v[0]&&h[1]===v[1]||r&&y)break;f=t.crossings[u]}1e4===c&&n.log("Infinite loop in contour?");var x,b,_,w,T,k,A,M,S,E,L,C,P,I,O,z=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c=B;c--)if((x=F[c])=B&&x+F[b]M&&S--,t.edgepaths[S]=L.concat(p,E));break}V||(t.edgepaths[M]=p.concat(E))}for(M=0;Mt?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);return 5===r||10===r?t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,m=2===p||2===d;for(r=0;r=0&&(n=y,s=l):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-y[1])<.01&&(y[0]-r[0])*(n[0]-y[0])>=0&&(n=y,s=l):i.log("endpt to newendpt is not vert. or horz.",r,n,y)}if(r=n,s>=0)break;f+="L"+n}if(s===t.edgepaths.length){i.log("unclosed perimeter path");break}h=s,(d=-1===p.indexOf(h))&&(h=p[0],f+="Z")}for(h=0;hn.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l>n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h<1||p<1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var m=s-u,g=l-f,y=s+u,x=l+f,b=0;b2*v.MAXCOST)break;p&&(s/=2),l=(o=c-s/2)+1.5*s}if(h<=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll("text").data(e,(function(t){return t.text+","+t.x+","+t.y+","+t.theta}));if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:"rotate("+180*t.theta/Math.PI+" "+e+" "+i+")"}).call(s.convertToTspans,r)})),o){for(var c="",u=0;ur.end&&(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u>f&&(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size>0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{"../../lib":498,"../../plots/cartesian/axes":549}],750:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("../heatmap/style"),o=t("./make_color_map");e.exports=function(t){var e=n.select(t).selectAll("g.contour");e.style("opacity",(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u="constraint"===a.type,f=!u&&"lines"===a.coloring,h=!u&&"fill"===a.coloring,p=f||h?o(r):null;e.selectAll("g.contourlevel").each((function(t){n.select(this).selectAll("path").call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll("g.contourlabels text").each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(h){var m;e.selectAll("g.contourfill path").style("fill",(function(t){return void 0===m&&(m=t.level),p(t.level+.5*l)})),void 0===m&&(m=c),e.selectAll("g.contourbg path").style("fill",p(m-.5*l))}})),a(t)}},{"../../components/drawing":383,"../heatmap/style":800,"./make_color_map":746,"@plotly/d3":58}],751:[function(t,e,r){"use strict";var n=t("../../components/colorscale/defaults"),i=t("./label_defaults");e.exports=function(t,e,r,a,o){var s,l=r("contours.coloring"),c="";"fill"===l&&(s=r("contours.showlines")),!1!==s&&("lines"!==l&&(c=r("line.color","#000")),r("line.width",.5),r("line.dash")),"none"!==l&&(!0!==t.showlegend&&(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:"",cLetter:"z"})),r("line.smoothing"),i(r,a,c,o)}},{"../../components/colorscale/defaults":371,"./label_defaults":745}],752:[function(t,e,r){"use strict";var n=t("../heatmap/attributes"),i=t("../contour/attributes"),a=t("../../components/colorscale/attributes"),o=t("../../lib/extend").extendFlat,s=i.contours;e.exports=o({carpet:{valType:"string",editType:"calc"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:"plot"},transforms:void 0},a("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../contour/attributes":730,"../heatmap/attributes":787}],753:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc"),i=t("../../lib"),a=t("../heatmap/convert_column_xyz"),o=t("../heatmap/clean_2d_array"),s=t("../heatmap/interp2d"),l=t("../heatmap/find_empties"),c=t("../heatmap/make_bound_array"),u=t("./defaults"),f=t("../carpet/lookup_carpetid"),h=t("../contour/set_contours");e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&&r.visible&&"legendonly"!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var m=function(t,e){var r,u,f,h,p,d,m,g=e._carpetTrace,v=g.aaxis,y=g.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&&a(e,v,y,"a","b",["z"]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,"_a"):[],h=h?y.makeCalcdata(e,"_b"):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,m=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(m),s(m,e._emptypoints);var x=i.maxRowLength(m),b="scaled"===e.xtype?"":r,_=c(e,b,u,f,x,v),w="scaled"===e.ytype?"":h,T=c(e,w,p,d,m.length,y),k={a:_,b:T,z:m};"levels"===e.contours.type&&"none"!==e.contours.coloring&&n(t,e,{vals:m,containerStr:"",cLetter:"z"});return[k]}(t,e);return h(e,e._z),m}}},{"../../components/colorscale/calc":369,"../../lib":498,"../carpet/lookup_carpetid":703,"../contour/set_contours":749,"../heatmap/clean_2d_array":789,"../heatmap/convert_column_xyz":791,"../heatmap/find_empties":793,"../heatmap/interp2d":796,"../heatmap/make_bound_array":798,"./defaults":754}],754:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../heatmap/xyz_defaults"),a=t("./attributes"),o=t("../contour/constraint_defaults"),s=t("../contour/contours_defaults"),l=t("../contour/style_defaults");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u("carpet"),t.a&&t.b){if(!i(t,e,u,c,"a","b"))return void(e.visible=!1);u("text"),"constraint"===u("contours.type")?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{"../../lib":498,"../contour/constraint_defaults":735,"../contour/contours_defaults":737,"../contour/style_defaults":751,"../heatmap/xyz_defaults":802,"./attributes":752}],755:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../contour/colorbar"),calc:t("./calc"),plot:t("./plot"),style:t("../contour/style"),moduleType:"trace",name:"contourcarpet",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},{"../../plots/cartesian":563,"../contour/colorbar":733,"../contour/style":750,"./attributes":752,"./calc":753,"./defaults":754,"./plot":756}],756:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../carpet/map_1d_array"),a=t("../carpet/makepath"),o=t("../../components/drawing"),s=t("../../lib"),l=t("../contour/make_crossings"),c=t("../contour/find_all_paths"),u=t("../contour/plot"),f=t("../contour/constants"),h=t("../contour/convert_to_constraints"),p=t("../contour/empty_pathinfo"),d=t("../contour/close_boundaries"),m=t("../carpet/lookup_carpetid"),g=t("../carpet/axis_aligned_line");function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,"contour").each((function(r){var b=n.select(this),T=r[0],k=T.trace,A=k._carpetTrace=m(t,k),M=t.calcdata[A.index][0];if(A.visible&&"legendonly"!==A.visible){var S=T.a,E=T.b,L=k.contours,C=p(L,e,T),P="constraint"===L.type,I=L._operation,O=P?"="===I?"lines":"fill":L.coloring,z=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(C);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(C,D,R);var F,B,N,j,U=C;"constraint"===L.type&&(U=h(C,I)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r=0;j--)F=M.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var H="M"+V.join("L")+"Z";!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,"g","contourbg").selectAll("path").data("fill"!==l||o?[]:[0]);p.enter().append("path"),p.exit().remove();var d=[];for(h=0;h=0&&(h=L,d=m):Math.abs(f[1]-h[1])=0&&(h=L,d=m):s.log("endpt to newendpt is not vert. or horz.",f,h,L)}if(d>=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log("unclosed perimeter path");break}u=d,(b=-1===x.indexOf(u))&&(u=x[0],y+=S(f,h)+"Z",f=null)}for(u=0;ug&&(n.max=g);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len<(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/I),f.LABELMAX),a=0;a0?+p[u]:0),f.push({type:"Feature",geometry:{type:"Point",coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=["interpolate",["linear"],["heatmap-density"],0,a.opacity(w)<1?w:a.addOpacity(w,0)];for(u=1;u<_.length;u++)T.push(_[u][0],_[u][1]);var k=["interpolate",["linear"],["get","z"],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{"heatmap-weight":d?k:1/(b.max-b.min),"heatmap-color":T,"heatmap-radius":m?{type:"identity",property:"r"}:e.radius,"heatmap-opacity":e.opacity}),c.geojson={type:"FeatureCollection",features:f},c.heatmap.layout.visibility="visible",c}},{"../../components/color":361,"../../components/colorscale":373,"../../constants/numerical":474,"../../lib":498,"../../lib/geojson_utils":492,"fast-isnumeric":185}],760:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../components/colorscale/defaults"),a=t("./attributes");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s("lon")||[],c=s("lat")||[],u=Math.min(l.length,c.length);u?(e._length=u,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),i(t,e,o,s,{prefix:"",cLetter:"z"})):e.visible=!1}},{"../../components/colorscale/defaults":371,"../../lib":498,"./attributes":757}],761:[function(t,e,r){"use strict";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],762:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../scattermapbox/hover").hoverPoints,a=t("../scattermapbox/hover").getExtraText;e.exports=function(t,e,r){var o=i(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,"z"in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(f,f.c2l(u.z),"hover").text}return s.extraText=a(c,u,l[0].t.labels),[s]}}},{"../../plots/cartesian/axes":549,"../scattermapbox/hover":993}],763:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../heatmap/colorbar"),formatLabels:t("../scattermapbox/format_labels"),calc:t("./calc"),plot:t("./plot"),hoverPoints:t("./hover"),eventData:t("./event_data"),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup["trace-"+r.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),i}},{"../../plots/mapbox/constants":606,"./convert":759}],765:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){for(var r=0;r"),l.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&&o)return a}(u,h),[l]}}},{"../../components/color":361,"../../lib":498,"../bar/hover":650}],773:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc"),plot:t("./plot"),style:t("./style").style,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("../bar/select"),moduleType:"trace",name:"funnel",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":563,"../bar/select":655,"./attributes":766,"./calc":767,"./cross_trace_calc":769,"./defaults":770,"./event_data":771,"./hover":772,"./layout_attributes":774,"./layout_defaults":775,"./plot":776,"./style":777}],774:[function(t,e,r){"use strict";e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],775:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s path").each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style("opacity",s.selectedpoints&&!t.selected?o:1)}})),c(r,s,t),r.selectAll(".regions").each((function(){n.select(this).selectAll("path").style("stroke-width",0).call(a.fill,s.connector.fillcolor)})),r.selectAll(".lines").each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}}},{"../../components/color":361,"../../components/drawing":383,"../../constants/interactions":473,"../bar/style":657,"../bar/uniform_text":659,"@plotly/d3":58}],778:[function(t,e,r){"use strict";var n=t("../pie/attributes"),i=t("../../plots/attributes"),a=t("../../plots/domain").attributes,o=t("../../plots/template_attributes").hovertemplateAttrs,s=t("../../plots/template_attributes").texttemplateAttrs,l=t("../../lib/extend").extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:["label","text","value","percent"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:l({},i.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","text","percent"]}),textposition:l({},n.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:a({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},{"../../lib/extend":488,"../../plots/attributes":545,"../../plots/domain":579,"../../plots/template_attributes":628,"../pie/attributes":896}],779:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="funnelarea",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":614}],780:[function(t,e,r){"use strict";var n=t("../pie/calc");e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:"funnelarea"})}}},{"../pie/calc":898}],781:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../plots/domain").defaults,o=t("../bar/defaults").handleText,s=t("../pie/defaults").handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c("labels"),f=c("values"),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),p){e._length=p,c("marker.line.width")&&c("marker.line.color",l.paper_bgcolor),c("marker.colors"),c("scalegroup");var d,m=c("text"),g=c("texttemplate");if(g||(d=c("textinfo",Array.isArray(m)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),g||d&&"none"!==d){var v=c("textposition");o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c("title.text")&&(c("title.position"),n.coerceFont(c,"title.font",l.font)),c("aspectratio"),c("baseratio")}else e.visible=!1}},{"../../lib":498,"../../plots/domain":579,"../bar/defaults":647,"../pie/defaults":899,"./attributes":778}],782:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:t("./base_plot"),categories:["pie-like","funnelarea","showLegend"],attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),style:t("./style"),styleOne:t("../pie/style_one"),meta:{}}},{"../pie/style_one":907,"./attributes":778,"./base_plot":779,"./calc":780,"./defaults":781,"./layout_attributes":783,"./layout_defaults":784,"./plot":785,"./style":786}],783:[function(t,e,r){"use strict";var n=t("../pie/layout_attributes").hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{"../pie/layout_attributes":903}],784:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("hiddenlabels"),r("funnelareacolorway",e.colorway),r("extendfunnelareacolors")}},{"../../lib":498,"./layout_attributes":783}],785:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("../../lib"),o=a.strScale,s=a.strTranslate,l=t("../../lib/svg_text_utils"),c=t("../bar/plot").toMoveInsideBar,u=t("../bar/uniform_text"),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t("../pie/helpers"),d=t("../pie/plot"),m=d.attachFxHandlers,g=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return"l"+(e[0]-t[0])+","+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h("funnelarea",r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,"trace").each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f>-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var m=1/0,g=-1/0;for(f=0;f-1;f--)if(!(h=t[f]).hidden){var A=p[k+=1][0],M=p[k][1];h.TL=[-A,M],h.TR=[A,M],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll("g.slice").data(e);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll("path,g").remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll("path.surface").data([o]);x.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),y.call(m,t,e);var w="M"+(u+o.TR[0])+","+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+"Z";x.attr("d",w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll("g.slicetext").data(o.text&&"none"!==T?[0]:[]);k.enter().append("g").classed("slicetext",!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),p=a.ensureUniformFontSize(t,g(d,o,r.font));h.text(o.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(i.font,p).call(l.convertToTspans,t);var m,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(m=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=p.size,f(d.type,m,r),e[s].transform=m,h.attr("transform",a.getTextTransform(m))}))}}));var v=n.select(this).selectAll("g.titletext").data(d.title.text?[0]:[]);v.enter().append("g").classed("titletext",!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),c=d.title.text;d._meta&&(c=a.templateString(c,d._meta)),e.text(c).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr("transform",s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{"../../components/drawing":383,"../../lib":498,"../../lib/svg_text_utils":524,"../bar/plot":654,"../bar/uniform_text":659,"../pie/helpers":901,"../pie/plot":905,"@plotly/d3":58}],786:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../pie/style_one"),a=t("../bar/uniform_text").resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(".trace");a(t,e,"funnelarea"),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll("path.surface").each((function(t){n.select(this).call(i,t,e)}))}))}},{"../bar/uniform_text":659,"../pie/style_one":907,"@plotly/d3":58}],787:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../../plots/attributes"),a=t("../../plots/font_attributes"),o=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../plots/template_attributes").texttemplateAttrs,c=t("../../components/colorscale/attributes"),u=t("../../lib/extend").extendFlat;e.exports=u({z:{valType:"data_array",editType:"calc"},x:u({},n.x,{impliedEdits:{xtype:"array"}}),x0:u({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:u({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:u({},n.y,{impliedEdits:{ytype:"array"}}),y0:u({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:u({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:u({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:u({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:u({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:u({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:u({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:u({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:s(),texttemplate:l({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:a({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:u({},i.showlegend,{dflt:!1})},{transforms:void 0},c("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/font_attributes":580,"../../plots/template_attributes":628,"../scatter/attributes":922}],788:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../../plots/cartesian/axes"),o=t("../../plots/cartesian/align_period"),s=t("../histogram2d/calc"),l=t("../../components/colorscale/calc"),c=t("./convert_column_xyz"),u=t("./clean_2d_array"),f=t("./interp2d"),h=t("./find_empties"),p=t("./make_bound_array"),d=t("../../constants/numerical").BADNUM;function m(t){for(var e=[],r=t.length,n=0;nD){O("x scale is not linear");break}}if(x.length&&"fast"===P){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;kF){O("y scale is not linear");break}}}var B=i.maxRowLength(T),N="scaled"===e.xtype?"":r,j=p(e,N,g,v,B,M),U="scaled"===e.ytype?"":x,V=p(e,U,b,_,T.length,S);C||(e._extremes[M._id]=a.findExtremes(M,j),e._extremes[S._id]=a.findExtremes(S,V));var H={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&&y&&(H.orig_x=y),e.yperiodalignment&&w&&(H.orig_y=w),N&&N.length===j.length-1&&(H.xCenter=N),U&&U.length===V.length-1&&(H.yCenter=U),L&&(H.xRanges=A.xRanges,H.yRanges=A.yRanges,H.pts=A.pts),E||l(t,e,{vals:T,cLetter:"z"}),E&&e.contours&&"heatmap"===e.contours.coloring){var q={type:"contour"===e.type?"heatmap":"histogram2d",xcalendar:e.xcalendar,ycalendar:e.ycalendar};H.xfill=p(q,N,g,v,B,M),H.yfill=p(q,U,b,_,T.length,S)}return[H]}},{"../../components/colorscale/calc":369,"../../constants/numerical":474,"../../lib":498,"../../plots/cartesian/align_period":546,"../../plots/cartesian/axes":549,"../../registry":633,"../histogram2d/calc":821,"./clean_2d_array":789,"./convert_column_xyz":791,"./find_empties":793,"./interp2d":796,"./make_bound_array":798}],789:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("../../constants/numerical").BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&&e.transpose){for(s=0,f=0;f=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||m)[2]+(f[[r+1,i]]||m)[2]+(f[[r,i-1]]||m)[2]+(f[[r,i+1]]||m)[2])/20)&&(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{"../../lib":498}],794:[function(t,e,r){"use strict";var n=t("../../components/fx"),i=t("../../lib"),a=t("../../plots/cartesian/axes"),o=t("../../components/colorscale").extractOpts;e.exports=function(t,e,r,s,l){l||(l={});var c,u,f,h,p=l.isContour,d=t.cd[0],m=d.trace,g=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=m.zhoverformat,A=y,M=x;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index)}if(f<0||f>=b[0].length||h<0||h>b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)>0||n.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(p){var S;for(A=[2*y[0]-y[1]],S=1;Sm&&(v=Math.max(v,Math.abs(t[a][o]-d)/(g-m))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r.01;r++)i=o(t,e,a(i));return i>.01&&n.log("interp2d didn't converge quickly",i),t}},{"../../lib":498}],797:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){t("texttemplate");var r=n.extendFlat({},e.font,{color:"auto",size:"auto"});n.coerceFont(t,"textfont",r)}},{"../../lib":498}],798:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib").isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,"contour"),p=n.traceIs(t,"histogram"),d=n.traceIs(t,"gl2d");if(i(e)&&e.length>1&&!p&&"category"!==s.type){var m=e.length;if(!(m<=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u0;)_=w.c2p(R[S]),S--;for(_0;)M=T.c2p(F[S]),S--;if(MGt||Gt>T._length))for(E=Ut;EWt||Wt>w._length)){var Xt=u({x:Yt,y:qt},I,t._fullLayout);Xt.x=Yt,Xt.y=qt;var Zt=P.z[S][E];void 0===Zt?(Xt.z="",Xt.zLabel=""):(Xt.z=Zt,Xt.zLabel=s.tickText(Ft,Zt,"hover").text);var Jt=P.text&&P.text[S]&&P.text[S][E];void 0!==Jt&&!1!==Jt||(Jt=""),Xt.text=Jt;var Kt=l.texttemplateString(Dt,Xt,t._fullLayout._d3locale,Xt,I._meta||{});if(Kt){var Qt=Kt.split("
"),$t=Qt.length,te=0;for(L=0;L<$t;L++)te=Math.max(te,Qt[L].length);Ht.push({l:$t,c:te,t:Kt,x:Wt,y:Gt,z:Zt})}}}}var ee=I.textfont,re=ee.family,ne=ee.size,ie=t._fullLayout.font.size;if(!ne||"auto"===ne){var ae=1/0,oe=1/0,se=0,le=0;for(L=0;L0&&(a=!0);for(var l=0;la){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]c?t>o?t>1.1*i?i:t>1.1*a?a:o:t>s?s:t>l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&&t>o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)>.1}function d(t,e,r){var n=e.c2d(t,i,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],m=r[1],g=Math.min(f(d+h,d+p,n,a),f(m+h,m+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(m+c,m+h,n,a));if(g>v&&vo){var y=s===i?1:6,x=s===i?"M12":"M1";return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf("-",y);s>0&&(o=o.substr(0,s));var c=n.d2c(o,0,a);if(cr.r2l(B)&&(j=o.tickIncrement(j,b.size,!0,p)),z.start=r.l2r(j),F||i.nestedProperty(e,v+".start").set(z.start)}var U=b.end,V=r.r2l(O.end),H=void 0!==V;if((b.endFound||H)&&V!==r.r2l(U)){var q=H?V:i.aggNums(Math.max,null,d);z.end=r.l2r(q),H||i.nestedProperty(e,v+".start").set(z.end)}var G="autobin"+s;return!1===e._input[G]&&(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[z,d]}e.exports={calc:function(t,e){var r,a,p,d,m=[],g=[],v="h"===e.orientation,y=o.getFromId(t,v?e.yaxis:e.xaxis),x=v?"y":"x",b={x:"y",y:"x"}[x],_=e[x+"calendar"],w=e.cumulative,T=h(t,e,y,x),k=T[0],A=T[1],M="string"==typeof k.size,S=[],E=M?S:k,L=[],C=[],P=[],I=0,O=e.histnorm,z=e.histfunc,D=-1!==O.indexOf("density");w.enabled&&D&&(O=O.replace(/ ?density$/,""),D=!1);var R,F="max"===z||"min"===z?null:0,B=l.count,N=c[O],j=!1,U=function(t){return y.r2c(t,0,_)};for(i.isArrayOrTypedArray(e[b])&&"count"!==z&&(R=e[b],j="avg"===z,B=l[z]),r=U(k.start),p=U(k.end)+(r-o.tickIncrement(r,k.size,!1,_))/1e6;r=0&&d=0;n--)s(n);else if("increasing"===e){for(n=1;n=0;n--)t[n]+=t[n+1];"exclude"===r&&(t.push(0),t.shift())}}(g,w.direction,w.currentbin);var K=Math.min(m.length,g.length),Q=[],$=0,tt=K-1;for(r=0;r=$;r--)if(g[r]){tt=r;break}for(r=$;r<=tt;r++)if(n(m[r])&&n(g[r])){var et={p:m[r],s:g[r],b:0};w.enabled||(et.pts=P[r],Y?et.ph0=et.ph1=P[r].length?A[P[r][0]]:m[r]:(e._computePh=!0,et.ph0=q(S[r]),et.ph1=q(S[r+1],!0))),Q.push(et)}return 1===Q.length&&(Q[0].width1=o.tickIncrement(Q[0].p,k.size,!1,_)-Q[0].p),s(Q,e),i.isArrayOrTypedArray(e.selectedpoints)&&i.tagSelected(Q,e,Z),Q},calcAllAutoBins:h}},{"../../lib":498,"../../plots/cartesian/axes":549,"../../registry":633,"../bar/arrays_to_calcdata":642,"./average":808,"./bin_functions":810,"./bin_label_vals":811,"./norm_functions":819,"fast-isnumeric":185}],813:[function(t,e,r){"use strict";e.exports={eventDataKeys:["binNumber"]}},{}],814:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axis_ids"),a=t("../../registry").traceIs,o=t("../bar/defaults").handleGroupingDefaults,s=n.nestedProperty,l=t("../../plots/cartesian/constraints").getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];e.exports=function(t,e){var r,f,h,p,d,m,g,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return"v"===t.orientation?"x":"y"}function T(t,r,a){var o=t.uid+"__"+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+"calendar"]||"",c=v[r],u=!0;c&&(s===c.axType&&l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&&n.warn(["Attempted to group the bins of trace",t.index,"set on a","type:"+s,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),l!==c.calendar&&n.warn(["Attempted to group the bins of trace",t.index,"set with a",l,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+"calendar"]||""}),t["_"+a+"bingroup"]=r}for(d=0;dS&&T.splice(S,T.length-S),M.length>S&&M.splice(S,M.length-S);var E=[],L=[],C=[],P="string"==typeof w.size,I="string"==typeof A.size,O=[],z=[],D=P?O:w,R=I?z:A,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf("density"),H="max"===U||"min"===U?null:0,q=a.count,G=o[j],Y=!1,W=[],X=[],Z="z"in e?e.z:"marker"in e&&Array.isArray(e.marker.color)?e.marker.color:"";Z&&"count"!==U&&(Y="avg"===U,q=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r=0&&p=0&&d-1,flipY:E.tiling.flip.indexOf("y")>-1,orientation:E.tiling.orientation,pad:{inner:E.tiling.pad},maxDepth:E._maxDepth}).descendants(),O=1/0,z=-1/0;I.forEach((function(t){var e=t.depth;e>=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),z=Math.max(z,e))})),p=p.data(I,u.getPtId),E._maxVisibleLayers=isFinite(z)?z-O+1:0,p.enter().append("g").classed("slice",!0),T(p,!1,{},[m,g],x),p.order();var D=null;if(w&&M){var R=u.getPtId(M);p.each((function(t){null===D&&u.getPtId(t)===R&&(D={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var F=function(){return D||{x0:0,x1:m,y0:0,y1:g}},B=p;return w&&(B=B.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.tiling.pad),s._hoverY=y(P?s.y1-E.tiling.pad/2:s.y0+E.tiling.pad/2);var p=n.select(this),d=i.ensureSingle(p,"path","surface",(function(t){t.style("pointer-events","all")}));w?d.transition().attrTween("d",(function(t){var e=k(t,!1,F(),[m,g],{orientation:E.tiling.orientation,flipX:E.tiling.flip.indexOf("x")>-1,flipY:E.tiling.flip.indexOf("y")>-1});return function(t){return x(e(t))}})):d.attr("d",x),p.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),d.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=h(s,r,E,e,S)||"";var T=i.ensureSingle(p,"g","slicetext"),M=i.ensureSingle(T,"text","",(function(t){t.attr("data-notex",1)})),I=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));M.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",C?"end":L?"start":"middle").call(a.font,I).call(o.convertToTspans,t),s.textBB=a.bBox(M.node()),s.transform=b(s,{fontSize:I.size}),s.transform.fontSize=I.size,w?M.transition().attrTween("transform",(function(t){var e=A(t,!1,F(),[m,g]);return function(t){return _(e(t))}})):M.attr("transform",_(s))})),D}},{"../../components/drawing":383,"../../lib":498,"../../lib/svg_text_utils":524,"../sunburst/fx":1049,"../sunburst/helpers":1050,"../sunburst/plot":1054,"../treemap/constants":1073,"./partition":837,"./style":839,"@plotly/d3":58}],834:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"icicle",basePlotModule:t("./base_plot"),categories:[],animatable:!0,attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),style:t("./style").style,colorbar:t("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":940,"./attributes":829,"./base_plot":830,"./calc":831,"./defaults":832,"./layout_attributes":835,"./layout_defaults":836,"./plot":838,"./style":839}],835:[function(t,e,r){"use strict";e.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],836:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("iciclecolorway",e.colorway),r("extendiciclecolors")}},{"../../lib":498,"./layout_attributes":835}],837:[function(t,e,r){"use strict";var n=t("d3-hierarchy"),i=t("../treemap/flip_tree");e.exports=function(t,e,r){var a=r.flipX,o=r.flipY,s="h"===r.orientation,l=r.maxDepth,c=e[0],u=e[1];l&&(c=(t.height+1)*e[0]/Math.min(t.height+1,l),u=(t.height+1)*e[1]/Math.min(t.height+1,l));var f=n.partition().padding(r.pad.inner).size(s?[e[1],c]:[e[0],u])(t);return(s||a||o)&&i(f,e,{swapXY:s,flipX:a,flipY:o}),f}},{"../treemap/flip_tree":1078,"d3-hierarchy":110}],838:[function(t,e,r){"use strict";var n=t("../treemap/draw"),i=t("./draw_descendants");e.exports=function(t,e,r,a){return n(t,e,r,a,{type:"icicle",drawDescendants:i})}},{"../treemap/draw":1075,"./draw_descendants":833}],839:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/color"),a=t("../../lib"),o=t("../bar/uniform_text").resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,"marker.line.color")||i.defaultLine,c=a.castOption(r,s,"marker.line.width")||0;t.style("stroke-width",c).call(i.fill,n.color).call(i.stroke,l).style("opacity",o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._iciclelayer.selectAll(".trace");o(t,e,"icicle"),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style("opacity",r.opacity),e.selectAll("path.surface").each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{"../../components/color":361,"../../lib":498,"../bar/uniform_text":659,"@plotly/d3":58}],840:[function(t,e,r){"use strict";for(var n=t("../../plots/attributes"),i=t("../../plots/template_attributes").hovertemplateAttrs,a=t("../../lib/extend").extendFlat,o=t("./constants").colormodel,s=["rgb","rgba","rgba256","hsl","hsla"],l=[],c=[],u=0;u0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)>0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&&(u=s._canvas.el.getContext("2d").getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var m=d.split("+");-1!==m.indexOf("all")&&(m=["color"]),-1!==m.indexOf("color")&&(p=!0)}var g,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&&(w.push("["+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(", ")),4===x&&w.push(", "+b[3]+_[3]),w.push("]"),w=w.join(""),t.extraText=y.toUpperCase()+": "+w),Array.isArray(s.hovertext)&&Array.isArray(s.hovertext[h])?g=s.hovertext[h][f]:Array.isArray(s.text)&&Array.isArray(s.text[h])&&(g=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,A=o.y0+(h+.5)*s.dy,M="["+u.slice(0,s.colormodel.length).join(", ")+"]";return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:A,yLabelVal:A,zLabelVal:M,text:g,hovertemplateLabels:{zLabel:M,colorLabel:w,"color[0]Label":b[0]+_[0],"color[1]Label":b[1]+_[1],"color[2]Label":b[2]+_[2],"color[3]Label":b[3]+_[3]}})]}}}},{"../../components/fx":401,"../../lib":498,"./constants":842}],847:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),style:t("./style"),hoverPoints:t("./hover"),eventData:t("./event_data"),moduleType:"trace",name:"image",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":563,"./attributes":840,"./calc":841,"./defaults":843,"./event_data":844,"./hover":846,"./plot":848,"./style":849}],848:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.strTranslate,o=t("../../constants/xmlns_namespaces"),s=t("./constants"),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,"im").each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=("fast"===c.zsmooth||!1===c.zsmooth&&h)&&!c._hasZ&&c._hasSource&&"linear"===u.type&&"linear"===f.type;c._realImage=p;var d,m,g,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,A=c.dx,M=c.dy;for(x=0;void 0===d&&x0;)m=u.c2p(_+x*A),x--;for(x=0;void 0===v&&x0;)y=f.c2p(w+x*M),x--;if(mI[0];if(O||z){var D=d+S/2,R=v+E/2;C+="transform:"+a(D+"px",R+"px")+"scale("+(O?-1:1)+","+(z?-1:1)+")"+a(-D+"px",-R+"px")+";"}}L.attr("style",C);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===k&&c._canvas.source===c.source)t();else{var e=document.createElement("canvas");e.width=T,e.height=k;var r=e.getContext("2d");c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute("src",c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL("image/png");else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext("2d").getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL("image/png")}L.attr({"xlink:href":t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement("canvas");e.width=S,e.height=E;var r,n=e.getContext("2d"),a=function(t){return i.constrain(Math.round(u.c2p(_+t*A)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*M)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,m=h.fmt;for(x=0;x0}function T(t){t.each((function(t){y.stroke(n.select(this),t.line.color)})).each((function(t){y.fill(n.select(this),t.color)})).style("stroke-width",(function(t){return t.line.width}))}function k(t,e,r){var n=t._fullLayout,i=o.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},e),a={type:"linear",_id:"x"+e._id},s={letter:"x",font:n.font,noHover:!0,noTickson:!0};function l(t,e){return o.coerce(i,a,v,t,e)}return m(i,a,l,s,n),g(i,a,l,s),a}function A(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+"x"+r]}function M(t,e,r,i){var a=document.createElementNS("http://www.w3.org/2000/svg","text"),o=n.select(a);return o.text(t).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",t).call(p.convertToTspans,i).call(f.font,e),f.bBox(o.node())}function S(t,e,r,n,i,a){var s="_cache"+e;t[s]&&t[s].key===i||(t[s]={key:i,value:r});var l=o.aggNums(a,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,m){var g,v=t._fullLayout;w(r)&&m&&(g=m()),o.makeTraceGroups(v._indicatorlayer,e,"trace").each((function(e){var m,E,L,C,P,I=e[0].trace,O=n.select(this),z=I._hasGauge,D=I._isAngular,R=I._isBullet,F=I.domain,B={w:v._size.w*(F.x[1]-F.x[0]),h:v._size.h*(F.y[1]-F.y[0]),l:v._size.l+v._size.w*F.x[0],r:v._size.r+v._size.w*(1-F.x[1]),t:v._size.t+v._size.h*(1-F.y[1]),b:v._size.b+v._size.h*F.y[0]},N=B.l+B.w/2,j=B.t+B.h/2,U=Math.min(B.w/2,B.h),V=h.innerRadius*U,H=I.align||"center";if(E=j,z){if(D&&(m=N,E=j+U/2,L=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*V)}),R){var q=h.bulletPadding,G=1-h.bulletNumberDomainSize+q;m=B.l+(G+(1-G)*b[H])*B.w,L=function(t){return A(t,(h.bulletNumberDomainSize-q)*B.w,B.h)}}}else m=B.l+b[H]*B.w,L=function(t){return A(t,B.w,B.h)};!function(t,e,r,i){var c,u,h,m=r[0].trace,g=i.numbersX,v=i.numbersY,T=m.align||"center",A=x[T],E=i.transitionOpts,L=i.onComplete,C=o.ensureSingle(e,"g","numbers"),P=[];m._hasNumber&&P.push("number");m._hasDelta&&(P.push("delta"),"left"===m.delta.position&&P.reverse());var I=C.selectAll("text").data(P);function O(e,r,n,i){if(!e.match("s")||n>=0==i>=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=e.slice().replace("s","f").replace(/\d+/,(function(t){return parseInt(t)-1})),o=k(t,{tickformat:a});return function(t){return Math.abs(t)<1?d.tickText(o,t).text:r(t)}}I.enter().append("text"),I.attr("text-anchor",(function(){return A})).attr("class",(function(t){return t})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),I.exit().remove();var z,D=m.mode+m.align;m._hasDelta&&(z=function(){var e=k(t,{tickformat:m.delta.valueformat},m._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=function(t){return m.delta.relative?t.relativeDelta:t.delta},s=function(t,e){return 0===t||"number"!=typeof t||isNaN(t)?"-":(t>0?m.delta.increasing.symbol:m.delta.decreasing.symbol)+e(t)},l=function(t){return t.delta>=0?m.delta.increasing.color:m.delta.decreasing.color};void 0===m._deltaLastValue&&(m._deltaLastValue=o(r[0]));var c=C.select("text.delta");function h(){c.text(s(o(r[0]),i)).call(y.fill,l(r[0])).call(p.convertToTspans,t)}return c.call(f.font,m.delta.font).call(y.fill,l({delta:m._deltaLastValue})),w(E)?c.transition().duration(E.duration).ease(E.easing).tween("text",(function(){var t=n.select(this),e=o(r[0]),c=m._deltaLastValue,u=O(m.delta.valueformat,i,c,e),f=a(c,e);return m._deltaLastValue=e,function(e){t.text(s(f(e),u)),t.call(y.fill,l({delta:f(e)}))}})).each("end",(function(){h(),L&&L()})).each("interrupt",(function(){h(),L&&L()})):h(),u=M(s(o(r[0]),i),m.delta.font,A,t),c}(),D+=m.delta.position+m.delta.font.size+m.delta.font.family+m.delta.valueformat,D+=m.delta.increasing.symbol+m.delta.decreasing.symbol,h=u);m._hasNumber&&(!function(){var e=k(t,{tickformat:m.number.valueformat},m._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=m.number.suffix,s=m.number.prefix,l=C.select("text.number");function u(){var e="number"==typeof r[0].y?s+i(r[0].y)+o:"-";l.text(e).call(f.font,m.number.font).call(p.convertToTspans,t)}w(E)?l.transition().duration(E.duration).ease(E.easing).each("end",(function(){u(),L&&L()})).each("interrupt",(function(){u(),L&&L()})).attrTween("text",(function(){var t=n.select(this),e=a(r[0].lastY,r[0].y);m._lastValue=r[0].y;var l=O(m.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(s+l(e(r))+o)}})):u(),c=M(s+i(r[0].y)+o,m.number.font,A,t)}(),D+=m.number.font.size+m.number.font.family+m.number.valueformat+m.number.suffix+m.number.prefix,h=c);if(m._hasDelta&&m._hasNumber){var R,F,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],N=[(u.left+u.right)/2,(u.top+u.bottom)/2],j=.75*m.delta.font.size;"left"===m.delta.position&&(R=S(m,"deltaPos",0,-1*(c.width*b[m.align]+u.width*(1-b[m.align])+j),D,Math.min),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:u.left+R,right:c.right,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),"right"===m.delta.position&&(R=S(m,"deltaPos",0,c.width*(1-b[m.align])+u.width*b[m.align]+j,D,Math.max),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:c.left,right:u.right+R,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),"bottom"===m.delta.position&&(R=null,F=u.height,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),"top"===m.delta.position&&(R=null,F=c.top,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),z.attr({dx:R,dy:F})}(m._hasNumber||m._hasDelta)&&C.attr("transform",(function(){var t=i.numbersScaler(h);D+=t[2];var e,r=S(m,"numbersScale",1,t[0],D,Math.min);m._scaleNumbers||(r=1),e=m._isAngular?v-r*h.bottom:v-r*(h.top+h.bottom)/2,m._numbersTop=r*h.top+e;var n=h[T];"center"===T&&(n=(h.left+h.right)/2);var a=g-r*n;return a=S(m,"numbersTranslate",0,a,D,Math.max),l(a,e)+s(r)}))}(t,O,e,{numbersX:m,numbersY:E,numbersScaler:L,transitionOpts:r,onComplete:g}),z&&(C={range:I.gauge.axis.range,color:I.gauge.bgcolor,line:{color:I.gauge.bordercolor,width:0},thickness:1},P={range:I.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:I.gauge.bordercolor,width:I.gauge.borderwidth},thickness:1});var Y=O.selectAll("g.angular").data(D?e:[]);Y.exit().remove();var W=O.selectAll("g.angularaxis").data(D?e:[]);W.exit().remove(),D&&function(t,e,r,a){var o,s,f,h,p=r[0].trace,m=a.size,g=a.radius,v=a.innerRadius,y=a.gaugeBg,x=a.gaugeOutline,b=[m.l+m.w/2,m.t+m.h/2+g/2],_=a.gauge,A=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function L(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-E;return r<-E?-E:r>E?E:r}function C(t){return n.svg.arc().innerRadius((v+g)/2-t/2*(g-v)).outerRadius((v+g)/2+t/2*(g-v)).startAngle(-E)}function P(t){t.attr("d",(function(t){return C(t.thickness).startAngle(L(t.range[0])).endAngle(L(t.range[1]))()}))}_.enter().append("g").classed("angular",!0),_.attr("transform",l(b[0],b[1])),A.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),A.selectAll("g.xangularaxistick,path,text").remove(),(o=k(t,p.gauge.axis)).type="linear",o.range=p.gauge.axis.range,o._id="xangularaxis",o.ticklabeloverflow="allow",o.setScale();var I=function(t){return(o.range[0]-t.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},O={},z=d.makeLabelFns(o,0).labelStandoff;O.xFn=function(t){var e=I(t);return Math.cos(e)*z},O.yFn=function(t){var e=I(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},O.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},O.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var D=function(t){return l(b[0]+g*Math.cos(t),b[1]-g*Math.sin(t))};f=function(t){return D(I(t))};if(s=d.calcTicks(o),h=d.getTickSigns(o)[2],o.visible){h="inside"===o.ticks?-1:1;var R=(o.linewidth||1)/2;d.drawTicks(t,o,{vals:s,layer:A,path:"M"+h*R+",0h"+h*o.ticklen,transFn:function(t){var e=I(t);return D(e)+"rotate("+-c(e)+")"}}),d.drawLabels(t,o,{vals:s,layer:A,transFn:f,labelFns:O})}var F=[y].concat(p.gauge.steps),B=_.selectAll("g.bg-arc").data(F);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(P).call(T),B.exit().remove();var N=C(p.gauge.bar.thickness),j=_.selectAll("g.value-arc").data([p.gauge.bar]);j.enter().append("g").classed("value-arc",!0).append("path");var U=j.select("path");w(M)?(U.transition().duration(M.duration).ease(M.easing).each("end",(function(){S&&S()})).each("interrupt",(function(){S&&S()})).attrTween("d",(V=N,H=L(r[0].lastY),q=L(r[0].y),function(){var t=i(H,q);return function(e){return V.endAngle(t(e))()}})),p._lastValue=r[0].y):U.attr("d","number"==typeof r[0].y?N.endAngle(L(r[0].y)):"M0,0Z");var V,H,q;U.call(T),j.exit().remove(),F=[];var G=p.gauge.threshold.value;(G||0===G)&&F.push({range:[G,G],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var Y=_.selectAll("g.threshold-arc").data(F);Y.enter().append("g").classed("threshold-arc",!0).append("path"),Y.select("path").call(P).call(T),Y.exit().remove();var W=_.selectAll("g.gauge-outline").data([x]);W.enter().append("g").classed("gauge-outline",!0).append("path"),W.select("path").call(P).call(T),W.exit().remove()}(t,0,e,{radius:U,innerRadius:V,gauge:Y,layer:W,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:g});var X=O.selectAll("g.bullet").data(R?e:[]);X.exit().remove();var Z=O.selectAll("g.bulletaxis").data(R?e:[]);Z.exit().remove(),R&&function(t,e,r,n){var i,a,o,s,c,u=r[0].trace,f=n.gauge,p=n.layer,m=n.gaugeBg,g=n.gaugeOutline,v=n.size,x=u.domain,b=n.transitionOpts,_=n.onComplete;f.enter().append("g").classed("bullet",!0),f.attr("transform",l(v.l,v.t)),p.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),p.selectAll("g.xbulletaxistick,path,text").remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-h.bulletNumberDomainSize:1);(i=k(t,u.gauge.axis))._id="xbulletaxis",i.domain=[S,E],i.setScale(),a=d.calcTicks(i),o=d.makeTransTickFn(i),s=d.getTickSigns(i)[2],c=v.t+v.h,i.visible&&(d.drawTicks(t,i,{vals:"inside"===i.ticks?d.clipEnds(i,a):a,layer:p,path:d.makeTickPath(i,c,s),transFn:o}),d.drawLabels(t,i,{vals:a,layer:p,transFn:o,labelFns:d.makeLabelFns(i,c)}));function L(t){t.attr("width",(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr("x",(function(t){return i.c2p(t.range[0])})).attr("y",(function(t){return.5*(1-t.thickness)*A})).attr("height",(function(t){return t.thickness*A}))}var C=[m].concat(u.gauge.steps),P=f.selectAll("g.bg-bullet").data(C);P.enter().append("g").classed("bg-bullet",!0).append("rect"),P.select("rect").call(L).call(T),P.exit().remove();var I=f.selectAll("g.value-bullet").data([u.gauge.bar]);I.enter().append("g").classed("value-bullet",!0).append("rect"),I.select("rect").attr("height",M).attr("y",(A-M)/2).call(T),w(b)?I.select("rect").transition().duration(b.duration).ease(b.easing).each("end",(function(){_&&_()})).each("interrupt",(function(){_&&_()})).attr("width",Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):I.select("rect").attr("width","number"==typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);I.exit().remove();var O=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),z=f.selectAll("g.threshold-bullet").data(O);z.enter().append("g").classed("threshold-bullet",!0).append("line"),z.select("line").attr("x1",i.c2p(u.gauge.threshold.value)).attr("x2",i.c2p(u.gauge.threshold.value)).attr("y1",(1-u.gauge.threshold.thickness)/2*A).attr("y2",(1-(1-u.gauge.threshold.thickness)/2)*A).call(y.stroke,u.gauge.threshold.line.color).style("stroke-width",u.gauge.threshold.line.width),z.exit().remove();var D=f.selectAll("g.gauge-outline").data([g]);D.enter().append("g").classed("gauge-outline",!0).append("rect"),D.select("rect").call(L).call(T),D.exit().remove()}(t,0,e,{gauge:X,layer:Z,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:g});var J=O.selectAll("text.title").data(e);J.exit().remove(),J.enter().append("text").classed("title",!0),J.attr("text-anchor",(function(){return R?x.right:x[I.title.align]})).text(I.title.text).call(f.font,I.title.font).call(p.convertToTspans,t),J.attr("transform",(function(){var t,e=B.l+B.w*b[I.title.align],r=h.titlePadding,n=f.bBox(J.node());if(z){if(D)if(I.gauge.axis.visible)t=f.bBox(W.node()).top-r-n.bottom;else t=B.t+B.h/2-U/2-n.bottom-r;R&&(t=E-(n.top+n.bottom)/2,e=B.l-h.bulletPadding*B.w)}else t=I._numbersTop-r-n.bottom;return l(e,t)}))}))}},{"../../components/color":361,"../../components/drawing":383,"../../constants/alignment":466,"../../lib":498,"../../lib/svg_text_utils":524,"../../plots/cartesian/axes":549,"../../plots/cartesian/axis_defaults":551,"../../plots/cartesian/layout_attributes":564,"../../plots/cartesian/position_defaults":567,"./constants":853,"@plotly/d3":58,"d3-interpolate":111}],857:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../mesh3d/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c=t("../../plot_api/edit_types").overrideAll;var u=e.exports=c(l({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:a(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),valuehoverformat:i("value",1),showlegend:l({},s.showlegend,{dflt:!1})},n("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),"calc","nested");u.flatshading.dflt=!0,u.lighting.facenormalsepsilon.dflt=0,u.x.editType=u.y.editType=u.z.editType=u.value.editType="calc+clearAxisTypes",u.transforms=void 0},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plot_api/edit_types":531,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/template_attributes":628,"../mesh3d/attributes":862}],858:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc"),i=t("../streamtube/calc").processGrid,a=t("../streamtube/calc").filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i>n&&n-1}function R(t,e){return null===t?e:t}function F(e,r,n){C();var i,a,o,l=[r],c=[n];if(s>=1)l=[r],c=[n];else if(s>0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i-1?n[p]:L(d,m,v);h[p]=x>-1?x:I(d,m,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++g}}function B(t,e,r,n){var i=t[3];in&&(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s<4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t>=e&&t<=r}function j(t){var e=.001*(E-S);return t>=S-e&&t<=E+e}function U(e){for(var r=[],n=0;n<4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&&!s[1]&&!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&&j(e[1][3])&&j(e[2][3])?(F(t,e,r),!0):a<3&&V(t,e,r,S,E,++a)};if(s[0]&&s[1]&&s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&&s[a[1]]&&!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&&!s[a[1]]&&!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function H(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&&o[1]&&o[2]&&o[3])return m&&(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&&o[l[1]]&&o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(m)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),g=B(h,f,r,n);i=F(null,[p,d,g],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&&o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),g=B(h,u,r,n),v=B(h,c,r,n);m?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,g],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,g,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&&!o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),g=B(h,c,r,n);m?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,g],[e[l[0]],-1,-1])||i,i=F(t,[c,g,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,g],[-1,-1,-1])||i,s=!0}})),i)}function q(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&&(D(t,"A")&&(f=H(null,[e,r,n,a],c,u)||f),D(t,"B")&&(f=H(null,[r,n,i,l],c,u)||f),D(t,"C")&&(f=H(null,[r,a,o,l],c,u)||f),D(t,"D")&&(f=H(null,[n,a,s,l],c,u)||f),D(t,"E")&&(f=H(null,[r,n,a,l],c,u)||f)),m&&(f=H(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],m=o[2];return p&&(s=O(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=O(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=O(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=O(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&&(s=O(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=O(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=O(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=O(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),m&&(s=O(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],m),l=O(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],m),c=O(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],m),u=O(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],m),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&&"even"===t&&(h=null),q(h,e,r,n,i,a,o,s,l,c,u)):(d&&"odd"===t&&(h=null),q(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;sMath.abs(d-M)?[A,d]:[d,M];$(e,T[0],T[1])}}var L=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];["x","y","z"].forEach((function(e){for(var r=[],n=0;n0&&(u.push(p.id),"x"===e?f.push([p.distRatio,0,0]):"y"===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,"x"===e?b-1:"y"===e?_-1:w-1);u.length>0&&(r[i]="x"===e?tt(null,u,a,o,f,r[i]):"y"===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length>0&&(r[i]="x"===e?Z(null,c,a,o,r[i]):"y"===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&&d.fill&&(z(d.fill),r[i]="x"===e?Z(null,[0,b-1],a,o,r[i]):"y"===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===g&&P(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{"../../../stackgl_modules":1119,"../../components/colorscale":373,"../../lib/gl_format_color":494,"../../lib/str2rgbarray":523,"../../plots/gl3d/zip3":604}],860:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./attributes"),o=t("../../components/colorscale/defaults");function s(t,e,r,n,a){var s=a("isomin"),l=a("isomax");null!=l&&null!=s&&s>l&&(e.isomin=null,e.isomax=null);var c=a("x"),u=a("y"),f=a("z"),h=a("value");c&&c.length&&u&&u.length&&f&&f.length&&h&&h.length?(i.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach((function(t){a(t+"hoverformat");var e="caps."+t;a(e+".show")&&a(e+".fill");var r="slices."+t;a(r+".show")&&(a(r+".fill"),a(r+".locations"))})),a("spaceframe.show")&&a("spaceframe.fill"),a("surface.show")&&(a("surface.count"),a("surface.fill"),a("surface.pattern")),a("contour.show")&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:"",cLetter:"c"}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{"../../components/colorscale/defaults":371,"../../lib":498,"../../registry":633,"./attributes":857}],861:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults").supplyDefaults,calc:t("./calc"),colorbar:{min:"cmin",max:"cmax"},plot:t("./convert").createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:t("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":593,"./attributes":857,"./calc":858,"./convert":859,"./defaults":860}],862:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../surface/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat;e.exports=l({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"}),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},n("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:"calc"},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:"calc"},lighting:l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:"calc"}),showlegend:l({},s.showlegend,{dflt:!1})})},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/template_attributes":628,"../surface/attributes":1056}],863:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){e.intensity&&n(t,e,{vals:e.intensity,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":369}],864:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_mesh3d,i=t("../../../stackgl_modules").delaunay_triangulate,a=t("../../../stackgl_modules").alpha_shape,o=t("../../../stackgl_modules").convex_hull,s=t("../../lib/gl_format_color").parseColorScale,l=t("../../lib/str2rgbarray"),c=t("../../components/colorscale").extractOpts,u=t("../../plots/gl3d/zip3");function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&&void 0!==r[e]?t.textLabel=r[e]:r&&(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!g(t.i,f)||!g(t.j,f)||!g(t.k,f))return;n=u(m(t.i),m(t.j),m(t.k))}else n=0===t.alphahull?o(h):t.alphahull>0?a(t.alphahull,h):function(t,e){for(var r=["x","y","z"].indexOf(t),n=[],a=e.length,o=0;ov):g=A>w,v=A;var M=c(w,T,k,A);M.pos=_,M.yc=(w+A)/2,M.i=b,M.dir=g?"increasing":"decreasing",M.x=M.pos,M.y=[k,T],y&&(M.orig_p=r[b]),d&&(M.tx=e.text[b]),m&&(M.htx=e.hovertext[b]),x.push(M)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&&(x[0].t={labels:{open:i(t,"open:")+" ",high:i(t,"high:")+" ",low:i(t,"low:")+" ",close:i(t,"close:")+" "}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a"+c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat),y.name="",f.push(y),g[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,m=p.dir;function g(t){return f.labels[t]+n.hoverLabelText(o,l[t][d],l.yhoverformat)}var v=p.hi||l.hoverinfo,y=v.split("+"),x="all"===v,b=x||-1!==y.indexOf("y"),_=x||-1!==y.indexOf("text"),w=b?[g("open"),g("high"),g("low"),g("close")+" "+c[m]]:[];return _&&s(p,l,w),h.extraText=w.join("
"),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{"../../components/color":361,"../../components/fx":401,"../../constants/delta.js":468,"../../lib":498,"../../plots/cartesian/axes":549}],871:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"ohlc",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","showLegend"],meta:{},attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc").calc,plot:t("./plot"),style:t("./style"),hoverPoints:t("./hover").hoverPoints,selectPoints:t("./select")}},{"../../plots/cartesian":563,"./attributes":867,"./calc":868,"./defaults":869,"./hover":870,"./plot":873,"./select":874,"./style":875}],872:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib");e.exports=function(t,e,r,a){var o=r("x"),s=r("open"),l=r("high"),c=r("low"),u=r("close");if(r("hoverlabel.split"),n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x"],a),s&&l&&c&&u){var f=Math.min(s.length,l.length,c.length,u.length);return o&&(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{"../../lib":498,"../../registry":633}],873:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib");e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,"trace ohlc").each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll("path").data(i.identity);u.enter().append("path"),u.exit().remove(),u.attr("d",(function(t){if(t.empty)return"M0,0Z";var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return"M"+e+","+o.c2p(t.o,!0)+"H"+n+"M"+n+","+o.c2p(t.h,!0)+"V"+o.c2p(t.l,!0)+"M"+r+","+o.c2p(t.c,!0)+"H"+n}))}}))}},{"../../lib":498,"@plotly/d3":58}],874:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e0;c&&(o="array");var u=r("categoryorder",o);"array"===u?(r("categoryarray"),r("ticktext")):(delete t.categoryarray,delete t.ticktext),c||"array"!==u||(e.categoryorder="trace")}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:"dimensions",handleItemDefaults:u}),d=function(t,e,r,o,s){s("line.shape"),s("line.hovertemplate");var l=s("line.color",o.colorway[0]);if(i(t,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(t,e,o,s,{prefix:"line.",cLetter:"c"}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&&p.length||(e.visible=!1),c(e,p,"values",d),h("hoveron"),h("hovertemplate"),h("arrangement"),h("bundlecolors"),h("sortpaths"),h("counts");var m={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,"labelfont",m);var g={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,"tickfont",g)}},{"../../components/colorscale/defaults":371,"../../components/colorscale/helpers":372,"../../lib":498,"../../plots/array_container_defaults":544,"../../plots/domain":579,"../parcoords/merge_length":893,"./attributes":876}],880:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:t("./base_plot"),categories:["noOpacity"],meta:{}}},{"./attributes":876,"./base_plot":877,"./calc":878,"./defaults":879,"./plot":882}],881:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-interpolate").interpolateNumber,a=t("../../plot_api/plot_api"),o=t("../../components/fx"),s=t("../../lib"),l=s.strTranslate,c=t("../../components/drawing"),u=t("tinycolor2"),f=t("../../lib/svg_text_utils");function h(t,e,r,i){var a=t.map(F.bind(0,e,r)),o=i.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events","all");var u=o.selectAll("g.trace.parcats").data(a,p),h=u.enter().append("g").attr("class","trace parcats");u.attr("transform",(function(t){return l(t.x,t.y)})),h.append("g").attr("class","paths");var y=u.select("g.paths").selectAll("path.path").data((function(t){return t.paths}),p);y.attr("fill",(function(t){return t.model.color}));var x=y.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(t){return t.model.color})).attr("fill-opacity",0);_(x),y.attr("d",(function(t){return t.svgD})),x.empty()||y.sort(m),y.exit().remove(),y.on("mouseover",g).on("mouseout",v).on("click",b),h.append("g").attr("class","dimensions");var w=u.select("g.dimensions").selectAll("g.dimension").data((function(t){return t.dimensions}),p);w.enter().append("g").attr("class","dimension"),w.attr("transform",(function(t){return l(t.x,0)})),w.exit().remove();var A=w.selectAll("g.category").data((function(t){return t.categories}),p),M=A.enter().append("g").attr("class","category");A.attr("transform",(function(t){return l(0,t.y)})),M.append("rect").attr("class","catrect").attr("pointer-events","none"),A.select("rect.catrect").attr("fill","none").attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})),T(M);var S=A.selectAll("rect.bandrect").data((function(t){return t.bands}),p);S.each((function(){s.raiseToTop(this)})),S.attr("fill",(function(t){return t.color}));var E=S.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(t){return t.color})).attr("fill-opacity",0);S.attr("fill",(function(t){return t.color})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return t.y})).attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"perpendicular"===t.parcatsViewModel.arrangement?"ns-resize":"move"})),k(E),S.exit().remove(),M.append("text").attr("class","catlabel").attr("pointer-events","none");var z=e._fullLayout.paper_bgcolor;A.select("text.catlabel").attr("text-anchor",(function(t){return d(t)?"start":"end"})).attr("alignment-baseline","middle").style("text-shadow",f.makeTextShadow(z)).style("fill","rgb(0, 0, 0)").attr("x",(function(t){return d(t)?t.width+5:-5})).attr("y",(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){c.font(n.select(this),t.parcatsViewModel.categorylabelfont),f.convertToTspans(n.select(this),e)})),M.append("text").attr("class","dimlabel"),A.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(t){return t.width/2})).attr("y",-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){c.font(n.select(this),t.parcatsViewModel.labelfont)})),A.selectAll("rect.bandrect").on("mouseover",L).on("mouseout",C),A.exit().remove(),w.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on("dragstart",P).on("drag",I).on("dragend",O)),u.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll("g.paths").selectAll("path.path"),t.dimensionSelection=n.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),u.exit().remove()}function p(t){return t.key}function d(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function m(t,e){return t.model.rawColor>e.model.rawColor?1:t.model.rawColor"),L=n.mouse(f)[0];o.loneHover({trace:h,x:b-d.left+m.left,y:_-d.top+m.top,text:E,color:t.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:T,idealAlign:L1&&h.displayInd===f.dimensions.length-1?(i=c.left,a="left"):(i=c.left+c.width,a="right");var m=u.model.count,g=u.model.categoryLabel,v=m/u.parcatsViewModel.model.count,y={countLabel:m,categoryLabel:g,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf("count")&&x.push(["Count:",y.countLabel].join(" ")),-1!==u.parcatsViewModel.hoverinfoItems.indexOf("probability")&&x.push(["P("+y.categoryLabel+"):",y.probabilityLabel].join(" "));var b=x.join("
");return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:m,category:g,probability:v}]}}function L(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(n.mouse(this)[1]<-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if("color"===l?(!function(t){var e=n.select(t).datum(),r=A(e);w(r),r.each((function(){s.raiseToTop(this)})),n.select(t.parentNode).selectAll("rect.bandrect").filter((function(t){return t.color===e.color})).each((function(){s.raiseToTop(this),n.select(this).attr("stroke","black").attr("stroke-width",1.5)}))}(this),S(this,"plotly_hover",n.event)):(!function(t){n.select(t.parentNode).selectAll("rect.bandrect").each((function(t){var e=A(t);w(e),e.each((function(){s.raiseToTop(this)}))})),n.select(t.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(this),M(this,"plotly_hover",n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===l?e=E(r,a,this):"color"===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),f=c.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,m=l.y+l.height/2;h.dimensions.length>1&&p.displayInd===h.dimensions.length-1?(i=l.left,a="left"):(i=l.left+l.width,a="right");var g=f.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&&(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===c.color&&(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:g,probabilityLabel:_.toFixed(3)},A=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf("count")&&A.push(["Count:",k.countLabel].join(" ")),-1!==f.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(A.push("P(color \u2229 "+g+"): "+k.probabilityLabel),A.push("P("+g+" | color): "+w.toFixed(3)),A.push("P(color | "+g+"): "+T.toFixed(3)));var M=A.join("
"),S=u.mostReadable(c.color,["black","white"]);return{trace:d,x:o*(i-e.left),y:s*(m-e.top),text:M,color:c.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:g,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,a,this):"dimension"===l&&(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){i.push(E(t,e,this))})),i}(r,a,this)),e&&o.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&&(_(e.pathSelection),T(e.dimensionSelection.selectAll("g.category")),k(e.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),o.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(m),-1===e.hoverinfoItems.indexOf("skip"))){"color"===t.parcatsViewModel.hoveron?S(this,"plotly_unhover",n.event):M(this,"plotly_unhover",n.event)}}function P(t){"fixed"!==t.parcatsViewModel.arrangement&&(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll("g.category").select("rect.catrect").each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2<=r&&r<=e.width+2&&-2<=i&&i<=e.height+2&&(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll("rect.bandrect").each((function(e){e.yf.y+f.height/2&&(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||"freeform"===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&&a.model.dragXp.x&&(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}j(t.parcatsViewModel),N(t.parcatsViewModel),R(t.parcatsViewModel),D(t.parcatsViewModel)}}function O(t){if("fixed"!==t.parcatsViewModel.arrangement&&null!==t.dragDimensionDisplayInd){n.select(this).selectAll("text").attr("font-weight","normal");var e={},r=z(t.parcatsViewModel),i=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==i[e]}));o&&i.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e["dimensions["+i+"].displayindex"]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e["dimensions["+t.model.containerInd+"].categoryarray"]=[u],e["dimensions["+t.model.containerInd+"].ticktext"]=[f],e["dimensions["+t.model.containerInd+"].categoryorder"]="array"}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!t.dragHasMoved&&t.potentialClickBand&&("color"===t.parcatsViewModel.hoveron?S(t.potentialClickBand,"plotly_click",n.event.sourceEvent):M(t.potentialClickBand,"plotly_click",n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,j(t.parcatsViewModel),N(t.parcatsViewModel),n.transition().duration(300).ease("cubic-in-out").each((function(){R(t.parcatsViewModel,!0),D(t.parcatsViewModel,!0)})).each("end",(function(){(o||s)&&a.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n=0;s--)u+="C"+c[s]+","+(e[s+1]+n)+" "+l[s]+","+(e[s]+n)+" "+(t[s]+r[s])+","+(e[s]+n),u+="l-"+r[s]+",0 ";return u+="Z"}function N(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&&c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return"backward"===t.sortpaths&&(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&&(n.unshift(e.rawColor),i.unshift(r.rawColor)),ni?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),m=0;m0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),m=8*(f-h)/2,g=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(g.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:m,bands:[],parcatsViewModel:t},m=m+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){h(r,t,n,e)}},{"../../components/drawing":383,"../../components/fx":401,"../../lib":498,"../../lib/svg_text_utils":524,"../../plot_api/plot_api":535,"@plotly/d3":58,"d3-interpolate":111,tinycolor2:307}],882:[function(t,e,r){"use strict";var n=t("./parcats");e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{"./parcats":881}],883:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/layout_attributes"),a=t("../../plots/font_attributes"),o=t("../../plots/domain").attributes,s=t("../../lib/extend").extendFlat,l=t("../../plot_api/plot_template").templatedArray;e.exports={domain:o({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:a({editType:"plot"}),tickfont:a({editType:"plot"}),rangefont:a({editType:"plot"}),dimensions:l("dimension",{label:{valType:"string",editType:"plot"},tickvals:s({},i.tickvals,{editType:"plot"}),ticktext:s({},i.ticktext,{editType:"plot"}),tickformat:s({},i.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:s({editType:"calc"},n("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"}))}},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plot_api/plot_template":538,"../../plots/cartesian/layout_attributes":564,"../../plots/domain":579,"../../plots/font_attributes":580}],884:[function(t,e,r){"use strict";var n=t("./constants"),i=t("@plotly/d3"),a=t("../../lib/gup").keyFun,o=t("../../lib/gup").repeat,s=t("../../lib").sorterAsc,l=t("../../lib").strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r=e[r][0]&&t<=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i<0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*fe){h=r;break}}if(a=u,isNaN(a)&&(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]t[1]+r||e=.9*t[1]+.1*t[0]?"n":e<=.9*t[0]+.1*t[1]?"s":"ns"}(d,e);m&&(o.interval=l[a],o.intervalPix=d,o.region=m)}}if(t.ordinal&&!o.region){var g=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r=x[0]&&y<=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a="crosshair";r.clickableOrdinalRange?a="pointer":r.region&&(a=r.region+"-resize"),i.select(document.body).style("cursor",a)}function k(t){t.on("mousemove",(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on("mouseleave",(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on("dragstart",(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar="ns"===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&&o.filterSpecified?o.filter.getConsolidated():[],l&&(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&&t[1]!==l[1]}))),c.startExtent=s.region?l["s"===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on("drag",(function(t){w(this,t)})).on("dragend",(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&&e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&&M(r)):M(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function A(t,e){return t[0]-e[0]}function M(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&&i[0]<=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&&n[0][0]>n[0][1]&&(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(A)).length&&r[0][0]===-1/0&&r[0][1]===1/0&&(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t,e){var r=t.selectAll("."+n.cn.axisBrush).data(o,a);r.enter().append("g").classed(n.cn.axisBrush,!0),function(t,e){var r=t.selectAll(".background").data(o);r.enter().append("rect").classed("background",!0).call(d).call(m).style("pointer-events","auto").attr("transform",l(0,n.verticalPadding)),r.call(k).attr("height",(function(t){return t.height-n.verticalPadding}));var i=t.selectAll(".highlight-shadow").data(o);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width+n.bar.strokeWidth).attr("stroke",e).attr("opacity",n.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",(function(t){return t.height})).call(x);var a=t.selectAll(".highlight").data(o);a.enter().append("line").classed("highlight",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width-n.bar.strokeWidth).attr("stroke",n.bar.fillColor).attr("opacity",n.bar.fillOpacity).attr("stroke-linecap","butt"),a.attr("y1",(function(t){return t.height})).call(x)}(r,e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(A)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]>e[0])return e})).filter((function(t){return t}))).length)return}return t.length>1?t:t[0]}}},{"../../lib":498,"../../lib/gup":495,"./constants":888,"@plotly/d3":58}],885:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:t("./base_plot"),categories:["gl","regl","noOpacity","noHover"],meta:{}}},{"./attributes":883,"./base_plot":886,"./calc":887,"./defaults":889}],886:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../plots/get_data").getModuleCalcData,a=t("./plot"),o=t("../../constants/xmlns_namespaces");r.name="parcoords",r.plot=function(t){var e=i(t.calcdata,"parcoords")[0];e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has("parcoords"),a=e._has&&e._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(".svg-container");r.filter((function(t,e){return e===r.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var t=this.toDataURL("image/png");e.append("svg:image").attr({xmlns:o.svg,"xlink:href":t,preserveAspectRatio:"none",x:0,y:0,width:this.style.width,height:this.style.height})})),window.setTimeout((function(){n.selectAll("#filterBarPattern").attr("id","filterBarPattern")}),60)}},{"../../constants/xmlns_namespaces":475,"../../plots/get_data":588,"./plot":895,"@plotly/d3":58}],887:[function(t,e,r){"use strict";var n=t("../../lib").isArrayOrTypedArray,i=t("../../components/colorscale"),a=t("../../lib/gup").wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,"line")&&n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:"line",cLetter:"c"})):(r=function(t){for(var e=new Array(t),r=0;rf&&(n.log("parcoords traces support up to "+f+" dimensions at the moment"),d.splice(f));var m=s(t,e,{name:"dimensions",layout:l,handleItemDefaults:p}),g=function(t,e,r,o,s){var l=s("line.color",r);if(i(t,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(t,e,o,s,{prefix:"line.",cLetter:"c"}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(m)&&m.length||(e.visible=!1),h(e,m,"values",g);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,"labelfont",v),n.coerceFont(u,"tickfont",v),n.coerceFont(u,"rangefont",v),u("labelangle"),u("labelside")}},{"../../components/colorscale/defaults":371,"../../components/colorscale/helpers":372,"../../lib":498,"../../plots/array_container_defaults":544,"../../plots/cartesian/axes":549,"../../plots/domain":579,"./attributes":883,"./axisbrush":884,"./constants":888,"./merge_length":893}],890:[function(t,e,r){"use strict";var n=t("../../lib").isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!("visible"in t)}},{"../../lib":498}],891:[function(t,e,r){"use strict";var n=t("./base_index");n.plot=t("./plot"),e.exports=n},{"./base_index":885,"./plot":895}],892:[function(t,e,r){"use strict";var n=t("glslify"),i=n(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n p17_20, p21_24, p25_28, p29_32,\n p33_36, p37_40, p41_44, p45_48,\n p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\nuniform sampler2D maskTexture, palette;\n\nbool isPick = (drwLayer > 1.5);\nbool isContext = (drwLayer < 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n return (lo < hi) && (lo > p || p > hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n return (\n fOutside(p[0], lo[0], hi[0]) ||\n fOutside(p[1], lo[1], hi[1]) ||\n fOutside(p[2], lo[2], hi[2]) ||\n fOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n return (\n vOutside(p[0], lo[0], hi[0]) ||\n vOutside(p[1], lo[1], hi[1]) ||\n vOutside(p[2], lo[2], hi[2]) ||\n vOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n return mOutside(A, loA, hiA) ||\n mOutside(B, loB, hiB) ||\n mOutside(C, loC, hiC) ||\n mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n mat4 pnts[4];\n pnts[0] = A;\n pnts[1] = B;\n pnts[2] = C;\n pnts[3] = D;\n\n for(int i = 0; i < 4; ++i) {\n for(int j = 0; j < 4; ++j) {\n for(int k = 0; k < 4; ++k) {\n if(0 == iMod(\n int(255.0 * texture2D(maskTexture,\n vec2(\n (float(i * 2 + j / 2) + 0.5) / 8.0,\n (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n ))[3]\n ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n 2\n )) return true;\n }\n }\n }\n return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n float x = 0.5 * sign(v) + 0.5;\n float y = axisY(x, A, B, C, D);\n float z = 1.0 - abs(v);\n\n z += isContext ? 0.0 : 2.0 * float(\n outsideBoundingBox(A, B, C, D) ||\n outsideRasterMask(A, B, C, D)\n );\n\n return vec4(\n 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n z,\n 1.0\n );\n}\n\nvoid main() {\n mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n float v = colors[3];\n\n gl_Position = position(isContext, v, A, B, C, D);\n\n fragColor =\n isContext ? vec4(contextColor) :\n isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n"]),a=n(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}\n"]),o=t("./constants").maxDimensionCount,s=t("../../lib"),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c>>8*e)%256/255}function m(t,e,r){for(var n=new Array(8*e),i=0,a=0;au&&(u=t[i].dim1.canvasX,o=i);0===s&&f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n<64;n++){var a=!t&&no._length&&(S=S.slice(0,o._length));var L,C=o.tickvals;function P(t,e){return{val:t,text:L[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&&C.length){L=o.ticktext,Array.isArray(L)&&L.length?L.length>C.length?L=L.slice(0,C.length):C.length>L.length&&(C=C.slice(0,L.length)):L=C.map(a(o.tickformat));for(var O=1;O=r||l>=i)return;var c=t.lineLayer.readPixel(s,i-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==B&&(u?a.hover(h):a.unhover&&a.unhover(h),B=f)}})),F.style("opacity",(function(t){return t.pick?0:1})),h.style("background","rgba(255, 255, 255, 0)");var N=h.selectAll("."+y.cn.parcoords).data(R,d);N.exit().remove(),N.enter().append("g").classed(y.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),N.attr("transform",(function(t){return c(t.model.translateX,t.model.translateY)}));var j=N.selectAll("."+y.cn.parcoordsControlView).data(m,d);j.enter().append("g").classed(y.cn.parcoordsControlView,!0),j.attr("transform",(function(t){return c(t.model.pad.l,t.model.pad.t)}));var U=j.selectAll("."+y.cn.yAxis).data((function(t){return t.dimensions}),d);U.enter().append("g").classed(y.cn.yAxis,!0),j.each((function(t){O(U,t,_)})),F.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=b(this,t):t.lineLayer.update(t),(t.key||0===t.key)&&(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),U.attr("transform",(function(t){return c(t.xScale(t.xIndex),0)})),U.call(n.behavior.drag().origin((function(t){return t})).on("drag",(function(t){var e=t.parent;S.linePickActive(!1),t.x=Math.max(-y.overdrag,Math.min(t.model.width+y.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,U.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),O(U,e,_),U.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr("transform",(function(t){return c(t.xScale(t.xIndex),0)})),n.select(this).attr("transform",c(t.x,0)),U.each((function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer.render&&e.focusLayer.render(e.panels)})).on("dragend",(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,O(U,e,_),n.select(this).attr("transform",(function(t){return c(t.x,0)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer&&e.focusLayer.render(e.panels),e.pickLayer&&e.pickLayer.render(e.panels,!0),S.linePickActive(!0),a&&a.axesMoved&&a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),U.exit().remove();var V=U.selectAll("."+y.cn.axisOverlays).data(m,d);V.enter().append("g").classed(y.cn.axisOverlays,!0),V.selectAll("."+y.cn.axis).remove();var H=V.selectAll("."+y.cn.axis).data(m,d);H.enter().append("g").classed(y.cn.axis,!0),H.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return v.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),f.font(H.selectAll("text"),t.model.tickFont)})),H.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),H.selectAll("text").style("text-shadow",u.makeTextShadow(T)).style("cursor","default");var q=V.selectAll("."+y.cn.axisHeading).data(m,d);q.enter().append("g").classed(y.cn.axisHeading,!0);var G=q.selectAll("."+y.cn.axisTitle).data(m,d);G.enter().append("text").classed(y.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events","auto"),G.text((function(t){return t.label})).each((function(e){var r=n.select(this);f.font(r,e.model.labelFont),u.convertToTspans(r,t)})).attr("transform",(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=y.axisTitleOffset;return(e.dir>0?"":c(0,2*r+t.model.height))+l(e.degrees)+c(-r*e.dx,-r*e.dy)})).attr("text-anchor",(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)>Math.abs(e.dy)?e.dir*e.dx<0?"start":"end":"middle"}));var Y=V.selectAll("."+y.cn.axisExtent).data(m,d);Y.enter().append("g").classed(y.cn.axisExtent,!0);var W=Y.selectAll("."+y.cn.axisExtentTop).data(m,d);W.enter().append("g").classed(y.cn.axisExtentTop,!0),W.attr("transform",c(0,-y.axisExtentOffset));var X=W.selectAll("."+y.cn.axisExtentTopText).data(m,d);X.enter().append("text").classed(y.cn.axisExtentTopText,!0).call(P),X.text((function(t){return D(t,!0)})).each((function(t){f.font(n.select(this),t.model.rangeFont)}));var Z=Y.selectAll("."+y.cn.axisExtentBottom).data(m,d);Z.enter().append("g").classed(y.cn.axisExtentBottom,!0),Z.attr("transform",(function(t){return c(0,t.model.height+y.axisExtentOffset)}));var J=Z.selectAll("."+y.cn.axisExtentBottomText).data(m,d);J.enter().append("text").classed(y.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(P),J.text((function(t){return D(t,!1)})).each((function(t){f.font(n.select(this),t.model.rangeFont)})),x.ensureAxisBrush(V,T)}},{"../../components/colorscale":373,"../../components/drawing":383,"../../lib":498,"../../lib/gup":495,"../../lib/svg_text_utils":524,"../../plots/cartesian/axes":549,"./axisbrush":884,"./constants":888,"./helpers":890,"./lines":892,"@plotly/d3":58,"color-rgba":86}],895:[function(t,e,r){"use strict";var n=t("./parcoords"),i=t("../../lib/prepare_regl"),a=t("./helpers").isVisible,o={};function s(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}(e.exports=function(t,e){var r=t._fullLayout;if(i(t,[],o)){var l={},c={},u={},f={},h=r._size;e.forEach((function(e,r){var n=e[0].trace;u[r]=n.index;var i=f[r]=n._fullInput.index;l[r]=t.data[i].dimensions,c[r]=t.data[i].dimensions.slice()}));n(t,e,{width:h.w,height:h.h,margin:{t:h.t,r:h.r,b:h.b,l:h.l}},{filterChanged:function(e,n,i){var a=c[e][n],o=i.map((function(t){return t.slice()})),s="dimensions["+n+"].constraintrange",l=r._tracePreGUI[t._fullData[u[e]]._fullInput.uid];if(void 0===l[s]){var h=a.constraintrange;l[s]=h||null}var p=t._fullData[u[e]].dimensions[n];o.length?(1===o.length&&(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit("plotly_restyle",[d,[f[e]]])},hover:function(e){t.emit("plotly_hover",e)},unhover:function(e){t.emit("plotly_unhover",e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return s(t,e,r)-s(t,e,n)}}(r,c[e].filter(a));l[e].sort(n),c[e].filter((function(t){return!a(t)})).sort((function(t){return c[e].indexOf(t)})).forEach((function(t){l[e].splice(l[e].indexOf(t),1),l[e].splice(c[e].indexOf(t),0,t)})),t.emit("plotly_restyle",[{dimensions:[l[e]]},[f[e]]])}})}}).reglPrecompiled=o},{"../../lib/prepare_regl":511,"./helpers":890,"./parcoords":894}],896:[function(t,e,r){"use strict";var n=t("../../plots/attributes"),i=t("../../plots/domain").attributes,a=t("../../plots/font_attributes"),o=t("../../components/color/attributes"),s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../plots/template_attributes").texttemplateAttrs,c=t("../../lib/extend").extendFlat,u=a({editType:"plot",arrayOk:!0,colorEditType:"plot"});e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:s({},{keys:["label","color","value","percent","text"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c({},u,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c({},u,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:i({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"number",min:-360,max:360,dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:c({},u,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},{"../../components/color/attributes":360,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/domain":579,"../../plots/font_attributes":580,"../../plots/template_attributes":628}],897:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="pie",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":614}],898:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("tinycolor2"),a=t("../../components/color"),o={};function s(t){return function(e,r){return!!e&&(!!(e=i(e)).isValid()&&(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r=0})),("funnelarea"===e.type?v:e.sort)&&a.sort((function(t,e){return e.v-t.v})),a[0]&&(a[0].vTotal=g),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r="pie");var n=t._fullLayout,i=t.calcdata,a=n[r+"colorway"],s=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=l(a,o));for(var c=0,u=0;u0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c("labels"),c("values")),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),f){e._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var h,p=c("text"),d=c("texttemplate");if(d||(h=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),d||h&&"none"!==h){var m=c("textposition");s(t,e,n,c,m,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(m)||"auto"===m||"outside"===m)&&c("automargin"),("inside"===m||"auto"===m||Array.isArray(m))&&c("insidetextorientation")}o(e,n,c);var g=c("hole");if(c("title.text")){var v=c("title.position",g?"middle center":"top center");g||"middle center"!==v||(e.title.position="top center"),i.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else e.visible=!1}}},{"../../lib":498,"../../plots/domain":579,"../bar/defaults":647,"./attributes":896,"fast-isnumeric":185}],900:[function(t,e,r){"use strict";var n=t("../../components/fx/helpers").appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&&(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),"funnelarea"===e.type&&(delete r.v,delete r.i),r}},{"../../components/fx/helpers":397}],901:[function(t,e,r){"use strict";var n=t("../../lib");function i(t){return-1!==t.indexOf("e")?t.replace(/[.]?0+e/,"e"):-1!==t.indexOf(".")?t.replace(/[.]?0+$/,""):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+"%"},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r"),name:f.hovertemplate||-1!==h.indexOf("name")?f.name:void 0,idealAlign:t.pxmid[0]<0?"left":"right",color:g.castOption(_.bgcolor,t.pts)||t.color,borderColor:g.castOption(_.bordercolor,t.pts),fontFamily:g.castOption(w.family,t.pts),fontSize:g.castOption(w.size,t.pts),fontColor:g.castOption(w.color,t.pts),nameLength:g.castOption(_.namelength,t.pts),textAlign:g.castOption(_.align,t.pts),hovertemplate:g.castOption(f.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,inOut_bbox:T}),t.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,e.emit("plotly_hover",{points:[v(t,f)],event:n.event})}})),t.on("mouseout",(function(t){var r=e._fullLayout,i=e._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(t.originalEvent=n.event,e.emit("plotly_unhover",{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),t.on("click",(function(t){var r=e._fullLayout,i=e._fullData[c.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=g.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=g.castOption(t._input.textfont.color,e.pts));var i=g.castOption(t.insidetextfont.family,e.pts)||g.castOption(t.textfont.family,e.pts)||r.family,a=g.castOption(t.insidetextfont.size,e.pts)||g.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;ie&&e>n||r=-4;g-=2)v(Math.PI*g,"tan");for(g=4;g>=-4;g-=2)v(Math.PI*(g+1),"tan")}if(f||p){for(g=4;g>=-4;g-=2)v(Math.PI*(g+1.5),"rad");for(g=4;g>=-4;g-=2)v(Math.PI*(g+.5),"rad")}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale>=1)return a;m.push(a)}(d||p)&&((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a)),(d||h)&&((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a));for(var x=0,b=0,_=0;_=1)break}return m[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*m);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:A(a,o/e),rotate:M(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*m);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:A(a,o/e),rotate:M(i+Math.PI/2)}}function A(t,e){return Math.cos(e)-t*e}function M(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function L(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function C(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=I(a),-1!==a.title.position.indexOf("top")?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf("bottom")&&(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf("left")?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf("center")?f*=2:-1!==a.title.position.indexOf("right")&&(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=P(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function P(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function I(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;er&&(r=t.pull[e]);return r}function O(t,e){for(var r=[],n=0;n1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n")}if(a){var x=l.castOption(i,e.i,"texttemplate");if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:g.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:g.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,"customdata")}}(e),_=g.getFirstFilled(i.text,e.pts);(y(_)||""===_)&&(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=""}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d("pie",r),_(e,t),O(e,a);var h=l.makeTraceGroups(r._pielayer,e,"trace").each((function(e){var h=n.select(this),d=e[0],m=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=g.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(e=0;ei.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr("stroke-linejoin","round"),h.each((function(){var v=n.select(this).selectAll("g.slice").data(e);v.enter().append("g").classed("slice",!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll("path,g").remove();else{i.pointNumber=i.i,i.curveNumber=m.index,y[i.pxmid[1]<0?0:1][i.pxmid[0]<0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll("path.surface").data([i]);if(h.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),u.call(x,t,e),m.pull){var v=+g.castOption(m.pull,i.pts)||0;v>0&&(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=m.hole;if(i.v===d.vTotal){var k="M"+(o+i.px0[0])+","+(c+i.px0[1])+C(i.px0,i.pxmid,!0,1)+C(i.pxmid,i.px0,!0,1)+"Z";T?h.attr("d","M"+(o+T*i.px0[0])+","+(c+T*i.px0[1])+C(i.px0,i.pxmid,!1,T)+C(i.pxmid,i.px0,!1,T)+"Z"+k):h.attr("d",k)}else{var A=C(i.px0,i.px1,!0,1);if(T){var M=1-T;h.attr("d","M"+(o+T*i.px1[0])+","+(c+T*i.px1[1])+C(i.px1,i.px0,!1,T)+"l"+M*i.px0[0]+","+M*i.px0[1]+A+"Z")}else h.attr("d","M"+o+","+c+"l"+i.px0[0]+","+i.px0[1]+A+"Z")}D(t,i,d);var S=g.castOption(m.textposition,i.pts),E=u.selectAll("g.slicetext").data(i.text&&"none"!==S?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),h=l.ensureUniformFontSize(t,"outside"===S?function(t,e,r){var n=g.castOption(t.outsidetextfont.color,e.pts)||g.castOption(t.textfont.color,e.pts)||r.color,i=g.castOption(t.outsidetextfont.family,e.pts)||g.castOption(t.textfont.family,e.pts)||r.family,a=g.castOption(t.outsidetextfont.size,e.pts)||g.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(m,i,r.font):b(m,i,r.font));u.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if("outside"===S)v=L(y,i);else if(v=w(y,i,d),"auto"===S&&v.scale<1){var x=l.ensureUniformFontSize(t,m.outsidetextfont);u.call(s.font,x),v=L(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:z(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var A=v.targetY;i.yLabelMin=A-y.height/2,i.yLabelMid=A,i.yLabelMax=A+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(m.type,v,r),e[a].transform=v,u.attr("transform",l.getTextTransform(v))}))}function C(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return"a"+n*d.r+","+n*d.r+" 0 "+i.largeArc+(r?" 1 ":" 0 ")+a+","+o}}));var T=n.select(this).selectAll("g.titletext").data(m.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),i=m.title.text;m._meta&&(i=l.templateString(i,m._meta)),r.text(i).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(s.font,m.title.font).call(f.convertToTspans,t),e="middle center"===m.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):C(d,a),r.attr("transform",u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&&function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function m(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,m=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l>0&&(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c=(g.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l>0&&(t.labelExtraY+=y):(m+t.labelExtraY-v)*l>0&&(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s>0&&(t.labelExtraX+=h)))}for(n=0;n<2;n++)for(i=n?m:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;hMath.abs(f)?s+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(a+t.labelExtraX+c):s+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+c}else s+="V"+(t.yLabelMid+t.labelExtraY)+"h"+c;l.ensureSingle(r,"path","textline").call(o.stroke,e.outsidetextfont.color).attr({"stroke-width":Math.min(2,e.outsidetextfont.size/8),d:s,fill:"none"})}else r.select("path.textline").remove()}))}(v,m),_&&m.automargin){var k=s.bBox(h.node()),A=m.domain,M=a.w*(A.x[1]-A.x[0]),S=a.h*(A.y[1]-A.y[0]),E=(.5*M-d.r)/a.w,P=(.5*S-d.r)/a.h;i.autoMargin(t,"pie."+m.uid+".automargin",{xl:A.x[0]-E,xr:A.x[1]+E,yb:A.y[0]-P,yt:A.y[1]+P,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll("tspan").each((function(){var t=n.select(this);t.attr("dy")&&t.attr("dy",t.attr("dy"))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:O,attachFxHandlers:x,computeTransform:R}},{"../../components/color":361,"../../components/drawing":383,"../../components/fx":401,"../../lib":498,"../../lib/svg_text_utils":524,"../../plots/plots":614,"../bar/constants":645,"../bar/uniform_text":659,"./event_data":900,"./helpers":901,"@plotly/d3":58}],906:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("./style_one"),a=t("../bar/uniform_text").resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(".trace");a(t,e,"pie"),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll("path.surface").each((function(t){n.select(this).call(i,t,e)}))}))}},{"../bar/uniform_text":659,"./style_one":907,"@plotly/d3":58}],907:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("./helpers").castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style("stroke-width",s).call(n.fill,e.color).call(n.stroke,o)}},{"../../components/color":361,"./helpers":901}],908:[function(t,e,r){"use strict";var n=t("../scatter/attributes");e.exports={x:n.x,y:n.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:n.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},{"../scatter/attributes":922}],909:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_pointcloud2d,i=t("../../lib/str2rgbarray"),a=t("../../plots/cartesian/autorange").findExtremes,o=t("../scatter/get_trace_color");function s(t,e){this.scene=t,this.uid=e,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&&t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length>>>1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;ld[2]&&(d[2]=o),sd[3]&&(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;ld[2]&&(d[2]=o),sd[3]&&(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var m=i(t.marker.color),g=i(t.marker.border.color),v=t.opacity*t.marker.opacity;m[3]*=v,this.pointcloudOptions.color=m;var y=t.marker.blend;if(null===y){y=c.length<100||u.length<100}this.pointcloudOptions.blend=y,g[3]*=v,this.pointcloudOptions.borderColor=g;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{"../../../stackgl_modules":1119,"../../lib/str2rgbarray":523,"../../plots/cartesian/autorange":548,"../scatter/get_trace_color":932}],910:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a("x"),a("y"),a("xbounds"),a("ybounds"),t.xy&&t.xy instanceof Float32Array&&(e.xy=t.xy),t.indices&&t.indices instanceof Int32Array&&(e.indices=t.indices),a("text"),a("marker.color",r),a("marker.opacity"),a("marker.blend"),a("marker.sizemin"),a("marker.sizemax"),a("marker.border.color",r),a("marker.border.arearatio"),e._length=null}},{"../../lib":498,"./attributes":908}],911:[function(t,e,r){"use strict";["*pointcloud* trace is deprecated!","Please consider switching to the *scattergl* trace type."].join(" ");e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("../scatter3d/calc"),plot:t("./convert"),moduleType:"trace",name:"pointcloud",basePlotModule:t("../../plots/gl2d"),categories:["gl","gl2d","showLegend"],meta:{}}},{"../../plots/gl2d":591,"../scatter3d/calc":951,"./attributes":908,"./convert":909,"./defaults":910}],912:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../../plots/attributes"),a=t("../../components/color/attributes"),o=t("../../components/fx/attributes"),s=t("../../plots/domain").attributes,l=t("../../plots/template_attributes").hovertemplateAttrs,c=t("../../components/colorscale/attributes"),u=t("../../plot_api/plot_template").templatedArray,f=t("../../plots/cartesian/axis_format_attributes").descriptionOnlyNumbers,h=t("../../lib/extend").extendFlat,p=t("../../plot_api/edit_types").overrideAll;(e.exports=p({hoverinfo:h({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:f("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:n({}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:a.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:["value","label"]})},link:{label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:a.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:["value","label"]}),colorscales:u("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:h(c().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")).transforms=void 0},{"../../components/color/attributes":360,"../../components/colorscale/attributes":368,"../../components/fx/attributes":392,"../../lib/extend":488,"../../plot_api/edit_types":531,"../../plot_api/plot_template":538,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/domain":579,"../../plots/font_attributes":580,"../../plots/template_attributes":628}],913:[function(t,e,r){"use strict";var n=t("../../plot_api/edit_types").overrideAll,i=t("../../plots/get_data").getModuleCalcData,a=t("./plot"),o=t("../../components/fx/layout_attributes"),s=t("../../lib/setcursor"),l=t("../../components/dragelement"),c=t("../../plots/cartesian/select").prepSelect,u=t("../../lib"),f=t("../../registry");function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a="pan"===n.dragmode?"move":"crosshair",o=r._bgRect;if("pan"!==i&&"zoom"!==i){s(o,a);var h={_id:"x",c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:"y",c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;ry&&(y=a.source[e]),a.target[e]>y&&(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e<_.length;e++){var T=_[e];for(x=0;x0&&s(E,b)&&s(L,b)&&(!w.hasOwnProperty(E)||!w.hasOwnProperty(L)||w[E]!==w[L])){w.hasOwnProperty(L)&&(L=w[L]),w.hasOwnProperty(E)&&(E=w[E]),L=+L,h[E=+E]=h[L]=!0;var C="";a.label&&a.label[e]&&(C=a.label[e]);var P=null;C&&p.hasOwnProperty(C)&&(P=p[C]),c.push({pointNumber:e,label:C,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:P,source:E,target:L,value:+S}),M.source.push(E),M.target.push(L)}}var I=b+_.length,O=o(r.color),z=o(r.customdata),D=[];for(e=0;eb-1,childrenNodes:[],pointNumber:e,label:R,color:O?r.color[e]:r.color,customdata:z?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o1}))}(I,M.source,M.target)&&(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{"../../components/colorscale":373,"../../lib":498,"../../lib/gup":495,"strongly-connected-components":301}],915:[function(t,e,r){"use strict";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},{}],916:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../components/color"),o=t("tinycolor2"),s=t("../../plots/domain").defaults,l=t("../../components/fx/hoverlabel_defaults"),c=t("../../plot_api/plot_template"),u=t("../../plots/array_container_defaults");function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r("label"),r("cmin"),r("cmax"),r("colorscale")}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),m=t.node,g=c.newContainer(e,"node");function v(t,e){return n.coerce(m,g,i.node,t,e)}v("label"),v("groups"),v("x"),v("y"),v("pad"),v("thickness"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),l(m,g,v,d),v("hovertemplate");var y=h.colorway;v("color",g.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v("customdata");var x=t.link||{},b=c.newContainer(e,"link");function _(t,e){return n.coerce(x,b,i.link,t,e)}_("label"),_("source"),_("target"),_("value"),_("line.color"),_("line.width"),_("hoverinfo",t.hoverinfo),l(x,b,_,d),_("hovertemplate");var w,T=o(h.paper_bgcolor).getLuminance()<.333?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)";_("color",n.repeat(T,b.value.length)),_("customdata"),u(x,b,{name:"colorscales",handleItemDefaults:f}),s(e,h,p),p("orientation"),p("valueformat"),p("valuesuffix"),g.x.length&&g.y.length&&(w="freeform"),p("arrangement",w),n.coerceFont(p,"textfont",n.extendFlat({},h.font)),e._length=null}},{"../../components/color":361,"../../components/fx/hoverlabel_defaults":399,"../../lib":498,"../../plot_api/plot_template":538,"../../plots/array_container_defaults":544,"../../plots/domain":579,"./attributes":912,tinycolor2:307}],917:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),moduleType:"trace",name:"sankey",basePlotModule:t("./base_plot"),selectPoints:t("./select.js"),categories:["noOpacity"],meta:{}}},{"./attributes":912,"./base_plot":913,"./calc":914,"./defaults":916,"./plot":918,"./select.js":920}],918:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.numberFormat,o=t("./render"),s=t("../../components/fx"),l=t("../../components/color"),c=t("./constants").cn,u=i._;function f(t){return""!==t}function h(t,e){return t.filter((function(t){return t.key===e.traceId}))}function p(t,e){n.select(t).select("path").style("fill-opacity",e),n.select(t).select("rect").style("fill-opacity",e)}function d(t){n.select(t).select("text.name").style("fill","black")}function m(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&&r&&h(r,e).selectAll("."+c.sankeyLink).filter(m(e)).call(x.bind(0,e,r,!1))}function y(t,e,r){e&&r&&h(r,e).selectAll("."+c.sankeyLink).filter(m(e)).call(b.bind(0,e,r,!1))}function x(t,e,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(t){if(!t.link.concentrationscale)return.4})),i&&h(e,t).selectAll("."+c.sankeyLink).filter((function(t){return t.link.label===i})).style("fill-opacity",(function(t){if(!t.link.concentrationscale)return.4})),r&&h(e,t).selectAll("."+c.sankeyNode).filter(g(t)).call(v)}function b(t,e,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(t){return t.tinyColorAlpha})),i&&h(e,t).selectAll("."+c.sankeyLink).filter((function(t){return t.link.label===i})).style("fill-opacity",(function(t){return t.tinyColorAlpha})),r&&h(e,t).selectAll(c.sankeyNode).filter(g(t)).call(y)}function _(t,e){var r=t.hoverlabel||{},n=i.nestedProperty(r,e).get();return!Array.isArray(n)&&n}e.exports=function(t,e){for(var r=t._fullLayout,i=r._paper,h=r._size,m=0;m"),color:_(o,"bgcolor")||l.addOpacity(m.color,1),borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:n.event.x"),color:_(o,"bgcolor")||i.tinyColorHue,borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:"left",hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});p(w,.85),d(w)}}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&&(n.select(e).call(y,i,a),"skip"!==i.node.trace.node.hoverinfo&&(i.node.fullData=i.node.trace,t.emit("plotly_unhover",{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var a=r.node;a.originalEvent=n.event,t._hoverdata=[a],n.select(e).call(y,r,i),s.click(t,{target:!0})}}})}},{"../../components/color":361,"../../components/fx":401,"../../lib":498,"./constants":915,"./render":919,"@plotly/d3":58}],919:[function(t,e,r){"use strict";var n=t("d3-force"),i=t("d3-interpolate").interpolateNumber,a=t("@plotly/d3"),o=t("@plotly/d3-sankey"),s=t("@plotly/d3-sankey-circular"),l=t("./constants"),c=t("tinycolor2"),u=t("../../components/color"),f=t("../../components/drawing"),h=t("../../lib"),p=h.strTranslate,d=h.strRotate,m=t("../../lib/gup"),g=m.keyFun,v=m.repeat,y=m.unwrap,x=t("../../lib/svg_text_utils"),b=t("../../registry"),_=t("../../constants/alignment"),w=_.CAP_SHIFT,T=_.LINE_SPACING;function k(t,e,r){var n,i=y(e),a=i.trace,u=a.domain,f="h"===a.orientation,p=a.node.pad,d=a.node.thickness,m=t.width*(u.x[1]-u.x[0]),g=t.height*(u.y[1]-u.y[0]),v=i._nodes,x=i._links,b=i.circular;(n=b?s.sankeyCircular().circularLinkGap(0):o.sankey()).iterations(l.sankeyIterations).size(f?[m,g]:[g,m]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(v).links(x);var _,w,T,k=n();for(var A in n.nodePadding()=i||(r=i-e.y0)>1e-6&&(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_o+d&&(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(v=k.nodes));n.update(k)}return{circular:b,key:r,trace:a,guid:h.randstr(),horizontal:f,width:m,height:g,nodePad:a.node.pad,nodeLineColor:a.node.line.color,nodeLineWidth:a.node.line.width,linkLineColor:a.link.line.color,linkLineWidth:a.link.line.width,valueFormat:a.valueformat,valueSuffix:a.valuesuffix,textFont:a.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:f?g:m,dragPerpendicular:f?m:g,arrangement:a.arrangement,sankey:n,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(t,e,r){var n=c(e.color),i=e.source.label+"|"+e.target.label+"__"+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:M,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function M(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,"top"===e.circularLinkType?"M "+n.targetX+" "+(n.targetY+r)+" L"+n.rightInnerExtent+" "+(n.targetY+r)+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightSmallArcRadius+r)+" 0 0 1 "+(n.rightFullExtent-r)+" "+(n.targetY-n.rightSmallArcRadius)+"L"+(n.rightFullExtent-r)+" "+n.verticalRightInnerExtent+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightLargeArcRadius+r)+" 0 0 1 "+n.rightInnerExtent+" "+(n.verticalFullExtent-r)+"L"+n.leftInnerExtent+" "+(n.verticalFullExtent-r)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftLargeArcRadius+r)+" 0 0 1 "+(n.leftFullExtent+r)+" "+n.verticalLeftInnerExtent+"L"+(n.leftFullExtent+r)+" "+(n.sourceY-n.leftSmallArcRadius)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftSmallArcRadius+r)+" 0 0 1 "+n.leftInnerExtent+" "+(n.sourceY+r)+"L"+n.sourceX+" "+(n.sourceY+r)+"L"+n.sourceX+" "+(n.sourceY-r)+"L"+n.leftInnerExtent+" "+(n.sourceY-r)+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftSmallArcRadius-r)+" 0 0 0 "+(n.leftFullExtent-r)+" "+(n.sourceY-n.leftSmallArcRadius)+"L"+(n.leftFullExtent-r)+" "+n.verticalLeftInnerExtent+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftLargeArcRadius-r)+" 0 0 0 "+n.leftInnerExtent+" "+(n.verticalFullExtent+r)+"L"+n.rightInnerExtent+" "+(n.verticalFullExtent+r)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightLargeArcRadius-r)+" 0 0 0 "+(n.rightFullExtent+r)+" "+n.verticalRightInnerExtent+"L"+(n.rightFullExtent+r)+" "+(n.targetY-n.rightSmallArcRadius)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightSmallArcRadius-r)+" 0 0 0 "+n.rightInnerExtent+" "+(n.targetY-r)+"L"+n.targetX+" "+(n.targetY-r)+"Z":"M "+n.targetX+" "+(n.targetY-r)+" L"+n.rightInnerExtent+" "+(n.targetY-r)+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightSmallArcRadius+r)+" 0 0 0 "+(n.rightFullExtent-r)+" "+(n.targetY+n.rightSmallArcRadius)+"L"+(n.rightFullExtent-r)+" "+n.verticalRightInnerExtent+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightLargeArcRadius+r)+" 0 0 0 "+n.rightInnerExtent+" "+(n.verticalFullExtent+r)+"L"+n.leftInnerExtent+" "+(n.verticalFullExtent+r)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftLargeArcRadius+r)+" 0 0 0 "+(n.leftFullExtent+r)+" "+n.verticalLeftInnerExtent+"L"+(n.leftFullExtent+r)+" "+(n.sourceY+n.leftSmallArcRadius)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftSmallArcRadius+r)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-r)+"L"+n.sourceX+" "+(n.sourceY-r)+"L"+n.sourceX+" "+(n.sourceY+r)+"L"+n.leftInnerExtent+" "+(n.sourceY+r)+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftSmallArcRadius-r)+" 0 0 1 "+(n.leftFullExtent-r)+" "+(n.sourceY+n.leftSmallArcRadius)+"L"+(n.leftFullExtent-r)+" "+n.verticalLeftInnerExtent+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftLargeArcRadius-r)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-r)+"L"+n.rightInnerExtent+" "+(n.verticalFullExtent-r)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightLargeArcRadius-r)+" 0 0 1 "+(n.rightFullExtent+r)+" "+n.verticalRightInnerExtent+"L"+(n.rightFullExtent+r)+" "+(n.targetY+n.rightSmallArcRadius)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightSmallArcRadius-r)+" 0 0 1 "+n.rightInnerExtent+" "+(n.targetY+r)+"L"+n.targetX+" "+(n.targetY+r)+"Z";var e,r,n,a=t.link.source.x1,o=t.link.target.x0,s=i(a,o),l=s(.5),c=s(.5),u=t.link.y0-t.link.width/2,f=t.link.y0+t.link.width/2,h=t.link.y1-t.link.width/2,p=t.link.y1+t.link.width/2;return"M"+a+","+u+"C"+l+","+u+" "+c+","+h+" "+o+","+h+"L"+o+","+p+"C"+c+","+p+" "+l+","+f+" "+a+","+f+"Z"}}function S(t,e){var r=c(e.color),n=l.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),s="node_"+e.pointNumber;return e.group&&(s=h.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:s,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,s].join("_"),interactionState:t.interactionState,figure:t}}function E(t){t.attr("transform",(function(t){return p(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function L(t){t.call(E)}function C(t,e){t.call(L),e.attr("d",M())}function P(t){t.attr("width",(function(t){return t.node.x1-t.node.x0})).attr("height",(function(t){return t.visibleHeight}))}function I(t){return t.link.width>1||t.linkLineWidth>0}function O(t){return p(t.translateX,t.translateY)+(t.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function z(t,e,r){t.on(".basic",null).on("mouseover.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on("mousemove.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on("mouseout.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on("click.basic",(function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function D(t,e,r,i){var o=a.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on("dragstart",(function(a){if("fixed"!==a.arrangement&&(h.ensureSingle(i._fullLayout._infolayer,"g","dragcover",(function(t){i._fullLayout._dragCover=t})),h.raiseToTop(this),a.interactionState.dragInProgress=a.node,F(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),"snap"===a.arrangement)){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e0&&n.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,a),function(t,e,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,R(r,i)}}))}(t,e,a,o,i)}})).on("drag",(function(r){if("fixed"!==r.arrangement){var n=a.event.x,i=a.event.y;"snap"===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):("freeform"===r.arrangement&&(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),F(r.node),"snap"!==r.arrangement&&(r.sankey.update(r.graph),C(t.filter(B(r)),e))}})).on("dragend",(function(t){if("fixed"!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;el&&C[v].gap;)v--;for(x=C[v].s,m=C.length-1;m>v;m--)C[m].s=x;for(;lM[u]&&u=0;i--){var a=t[i];if("scatter"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],929:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./attributes"),o=t("./constants"),s=t("./subtypes"),l=t("./xy_defaults"),c=t("./period_defaults"),u=t("./stack_defaults"),f=t("./marker_defaults"),h=t("./line_defaults"),p=t("./line_shape_defaults"),d=t("./text_defaults"),m=t("./fillcolor_defaults"),g=t("../../lib").coercePattern;e.exports=function(t,e,r,v){function y(r,i){return n.coerce(t,e,a,r,i)}var x=l(t,e,v,y);if(x||(e.visible=!1),e.visible){c(t,e,v,y),y("xhoverformat"),y("yhoverformat");var b=u(t,e,v,y),_=!b&&x=Math.min(e,r)&&d<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(h.c2p(t.x)-d);return a=Math.min(e,r)&&m<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.y)-m);return aW!=(N=z[I][1])>=W&&(R=z[I-1][0],F=z[I][0],N-B&&(D=R+(F-R)*(W-B)/(N-B),H=Math.min(H,D),q=Math.max(q,D)));H=Math.max(H,0),q=Math.min(q,h._length);var X=s.defaultLine;return s.opacity(f.fillcolor)?X=f.fillcolor:s.opacity((f.line||{}).color)&&(X=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:H,x1:q,y0:W,y1:W,color:X,hovertemplate:!1}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{"../../components/color":361,"../../components/fx":401,"../../lib":498,"../../registry":633,"./get_trace_color":932}],934:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t("./attributes"),supplyDefaults:t("./defaults"),crossTraceDefaults:t("./cross_trace_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./cross_trace_calc"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot"),colorbar:t("./marker_colorbar"),formatLabels:t("./format_labels"),style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":563,"./arrays_to_calcdata":921,"./attributes":922,"./calc":923,"./cross_trace_calc":927,"./cross_trace_defaults":928,"./defaults":929,"./format_labels":931,"./hover":933,"./marker_colorbar":940,"./plot":943,"./select":944,"./style":946,"./subtypes":947}],935:[function(t,e,r){"use strict";var n=t("../../lib").isArrayOrTypedArray,i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults");e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s("line.color",r),i(t,"line"))?a(t,e,o,s,{prefix:"line.",cLetter:"c"}):s("line.color",!n(c)&&c||r);s("line.width"),(l||{}).noDash||s("line.dash")}},{"../../components/colorscale/defaults":371,"../../components/colorscale/helpers":372,"../../lib":498}],936:[function(t,e,r){"use strict";var n=t("../../constants/numerical"),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t("../../lib"),c=l.segmentsIntersect,u=l.constrain,f=t("./constants");e.exports=function(t,e){var r,n,a,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S=e.xaxis,E=e.yaxis,L="log"===S.type,C="log"===E.type,P=S._length,I=E._length,O=e.connectGaps,z=e.baseTolerance,D=e.shape,R="linear"===D,F=e.fill&&"none"!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function H(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(L&&(a=S.c2p(n.x,!0)),a===i)return!1;C&&l===i&&(a*=Math.abs(S._m*I*(S._m>0?o:s)/(E._m*P*(E._m>0?o:s)))),a*=1e3}if(l===i){if(C&&(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function q(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c>0&&crt||t[1]it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&&(t[0]===et||t[0]===rt)||(t[1]===e[1]&&(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&&o&&st(a,o))return s;a&&s.push(a),o&&s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&&((a&&o?c>0==a[t]>o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V>1){var a=e===U[V-2][0],o=r===U[V-2][1];n&&(e===et||e===rt)&&a?o?V--:U[V-1]=t:i&&(r===nt||r===it)&&o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&&U[V-1][1]!==t[1]&&ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(A=t[0]/P,M=t[1]/I,W=t[0]rt?rt:0,X=t[1]it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length>1&&(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&&X&&(r[0]!==W||r[1]!==X)?(K&&(Z!==W&&J!==X?ct(Z&&J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a>0?[o>0?et:rt,it]:[o>0?rt:et,nt]):[Z||W,J||X]):Z&&J&&ct([Z,J])),ct([W,X])):Z-W&&J-X&&ct([W||Z,X||J]),K=t,Z=W,J=X}else K&&ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for("linear"===D||"spline"===D?$=function(t,e){for(var r=[],n=0,i=0;i<4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&Y(o,t)G(d,ht))break;a=d,(_=v[0]*g[0]+v[1]*g[1])>x?(x=_,h=d,m=!1):_=t.length||!d)break;ft(d),n=d}}else ft(h)}K&&ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{"../../constants/numerical":474,"../../lib":498,"./constants":926}],937:[function(t,e,r){"use strict";e.exports=function(t,e,r){"spline"===r("line.shape")&&r("line.smoothing")}},{}],938:[function(t,e,r){"use strict";var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a=0?l=p:(l=p=h,h++),l0?Math.max(r,a):0}}},{"fast-isnumeric":185}],940:[function(t,e,r){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},{}],941:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults"),o=t("./subtypes");e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&&(r=f),l("marker.symbol"),l("marker.opacity",u?.7:1),l("marker.size"),l("marker.color",r),i(t,"marker")&&a(t,e,s,l,{prefix:"marker.",cLetter:"c"}),c.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),c.noLine||(l("marker.line.color",f&&!Array.isArray(f)&&e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,"marker.line")&&a(t,e,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",u?1:0)),u&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),c.gradient)&&("none"!==l("marker.gradient.type")&&l("marker.gradient.color"))}},{"../../components/color":361,"../../components/colorscale/defaults":371,"../../components/colorscale/helpers":372,"./subtypes":947}],942:[function(t,e,r){"use strict";var n=t("../../lib").dateTick0,i=t("../../constants/numerical").ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",a(o,e.xcalendar)),n("xperiodalignment"))}if(i.y){var s=n("yperiod");s&&(n("yperiod0",a(s,e.ycalendar)),n("yperiodalignment"))}}},{"../../constants/numerical":474,"../../lib":498}],943:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../lib"),o=a.ensureSingle,s=a.identity,l=t("../../components/drawing"),c=t("./subtypes"),u=t("./line_points"),f=t("./link_traces"),h=t("../../lib/polygon").tester;function p(t,e,r,f,p,d,m){var g;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=f[0]&&t.y<=f[1]})),m=Math.ceil(d.length/p),g=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,"g","errorbars"),A=o(T,"g","lines"),M=o(T,"g","points"),S=o(T,"g","text");if(i.getComponentMethod("errorbars","plot")(t,k,r,m),!0===_.visible){var E,L;y(T).style("opacity",_.opacity);var C=_.fill.charAt(_.fill.length-1);"x"!==C&&"y"!==C&&(C=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var P,I,O="",z=[],D=_._prevtrace;D&&(O=D._prevRevpath||"",L=D._nextFill,z=D._polygons);var R,F,B,N,j,U,V,H="",q="",G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(L&&L.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split("").reverse().join(""))):R=F="spline"===w.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return"M"+t.join("L")},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),g=0;g1){var r=n.select(this);if(r.datum(f),t)y(r.style("opacity",0).attr("d",P).call(l.lineGroupStyle)).style("opacity",1);else{var i=y(r);i.attr("d",P),l.singleLineStyle(f,i)}}}}}var W=A.selectAll(".js-line").data(G);y(W.exit()).style("opacity",0).remove(),W.each(Y(!1)),W.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&&U&&(C?("y"===C?N[1]=U[1]=b.c2p(0,!0):"x"===C&&(N[0]=U[0]=x.c2p(0,!0)),y(E).attr("d","M"+U+"L"+N+"L"+H.substr(1)).call(l.singleFillStyle,t)):y(E).attr("d",H+"Z").call(l.singleFillStyle,t))):L&&("tonext"===_.fill.substr(0,6)&&H&&O?("tonext"===_.fill?y(L).attr("d",H+"Z"+O+"Z").call(l.singleFillStyle,t):y(L).attr("d",H+"L"+O.substr(1)+"Z").call(l.singleFillStyle,t),_._polygons=_._polygons.concat(z)):(Z(L),_._polygons=null)),_._prevRevpath=q,_._prevPolygons=V):(E?Z(E):L&&Z(L),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,m=et;if(f||h){var g=s,_=u.stackgroup,w=_&&"infer zero"===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?g=w?K:J:_&&!w&&(g=Q),f&&(d=g),h&&(m=g)}var T,k=(o=e.selectAll("path.point").data(d,p)).enter().append("path").classed("point",!0);v&&k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),f&&(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&&l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&&i.classed("plotly-customdata",null!==e.data&&void 0!==e.data)):a.remove()})),v?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=i.selectAll("g").data(m,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select("text"));l.translatePoint(t,i,x,b)?r.layerClipId&&l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll("text").call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll("tspan.line").each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(M,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(M,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr("d","M0,0Z")}function J(t){return t.filter((function(t){return!t.gap&&t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,m=!!a&&a.duration>0,g=f(t,e,r);((u=i.selectAll("g.trace").data(g,(function(t){return t[0].trace.uid}))).enter().append("g").attr("class",(function(t){return"trace scatter trace"+t[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),"g","fills");l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&&c.push("_ownFill"),a._nexttrace&&c.push("_nextFill");var u=i.selectAll("g").data(c,s);u.enter().append("g"),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),"path","js-fill")}))}))}(t,u,e),m)?(c&&(h=c()),n.transition().duration(a.duration).ease(a.easing).each("end",(function(){h&&h()})).each("interrupt",(function(){h&&h()})).each((function(){i.selectAll("g.trace").each((function(r,n){p(t,n,e,r,g,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,g,this,a)}));d&&u.exit().remove(),i.selectAll("path:not([d])").remove()}},{"../../components/drawing":383,"../../lib":498,"../../lib/polygon":510,"../../registry":633,"./line_points":936,"./link_traces":938,"./subtypes":947,"@plotly/d3":58}],944:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===e)for(r=0;r0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e-1?-1:t.indexOf("right")>-1?1:0}function b(t){return null==t?0:t.indexOf("top")>-1?-1:t.indexOf("bottom")>-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o=0){var m=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n=0&&f("surfacecolor",h||p);for(var d=["x","y","z"],m=0;m<3;++m){var g="projection."+d[m];f(g+".show")&&(f(g+".opacity"),f(g+".scale"))}var v=n.getComponentMethod("errorbars","supplyDefaults");v(t,e,h||p||r,{axis:"z"}),v(t,e,h||p||r,{axis:"y",inherit:"z"}),v(t,e,h||p||r,{axis:"x",inherit:"z"})}else e.visible=!1}},{"../../lib":498,"../../registry":633,"../scatter/line_defaults":935,"../scatter/marker_defaults":941,"../scatter/subtypes":947,"../scatter/text_defaults":948,"./attributes":950}],955:[function(t,e,r){"use strict";e.exports={plot:t("./convert"),attributes:t("./attributes"),markerSymbols:t("../../constants/gl3d_markers"),supplyDefaults:t("./defaults"),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:t("./calc"),moduleType:"trace",name:"scatter3d",basePlotModule:t("../../plots/gl3d"),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},{"../../constants/gl3d_markers":472,"../../plots/gl3d":593,"./attributes":950,"./calc":951,"./convert":953,"./defaults":954}],956:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../../plots/attributes"),a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../../plots/template_attributes").texttemplateAttrs,s=t("../../components/colorscale/attributes"),l=t("../../lib/extend").extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:l({},n.mode,{dflt:"markers"}),text:l({},n.text,{}),texttemplate:o({editType:"plot"},{keys:["a","b","text"]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:["linear","spline"]}),smoothing:u.smoothing,editType:"calc"},connectgaps:n.connectgaps,fill:l({},n.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:"calc"},s("marker.line")),gradient:c.gradient,editType:"calc"},s("marker")),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:n.hoveron,hovertemplate:a()}},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/attributes":545,"../../plots/template_attributes":628,"../scatter/attributes":922}],957:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../scatter/colorscale_calc"),a=t("../scatter/arrays_to_calcdata"),o=t("../scatter/calc_selection"),s=t("../scatter/calc").calcMarkerSize,l=t("../carpet/lookup_carpetid");e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&&r.visible&&"legendonly"!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c")}return o}function y(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,""):t._hovertitle,g.push(r+": "+e.toFixed(3)+t.labelsuffix)}}},{"../../lib":498,"../scatter/hover":933}],962:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../scatter/select"),eventData:t("./event_data"),moduleType:"trace",name:"scattercarpet",basePlotModule:t("../../plots/cartesian"),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},{"../../plots/cartesian":563,"../scatter/marker_colorbar":940,"../scatter/select":944,"../scatter/style":946,"./attributes":956,"./calc":957,"./defaults":958,"./event_data":959,"./format_labels":960,"./hover":961,"./plot":963}],963:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../plots/cartesian/axes"),a=t("../../components/drawing");e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||"x"),yaxis:i.getFromId(t,u.yaxis||"y"),plot:e.plot};for(n(t,f,r,o),s=0;s")}(c,m,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{"../../components/fx":401,"../../constants/numerical":474,"../../lib":498,"../scatter/get_trace_color":932,"./attributes":964}],970:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),calcGeoJSON:t("./plot").calcGeoJSON,plot:t("./plot").plot,style:t("./style"),styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"scattergeo",basePlotModule:t("../../plots/geo"),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/geo":584,"../scatter/marker_colorbar":940,"../scatter/style":946,"./attributes":964,"./calc":965,"./defaults":966,"./event_data":967,"./format_labels":968,"./hover":969,"./plot":971,"./select":972,"./style":973}],971:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../lib/topojson_utils").getTopojsonFeatures,o=t("../../lib/geojson_utils"),s=t("../../lib/geo_location_utils"),l=t("../../plots/cartesian/autorange").findExtremes,c=t("../../constants/numerical").BADNUM,u=t("../scatter/calc").calcMarkerSize,f=t("../scatter/subtypes"),h=t("./style");e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d="geojson-id"===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r=g,w=2*b,T={},k=l.makeCalcdata(e,"x"),A=y.makeCalcdata(e,"y"),M=s(e,l,"x",k),S=s(e,y,"y",A),E=M.vals,L=S.vals;e._x=E,e._y=L,e.xperiodalignment&&(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&&(e._origY=A,e._yStarts=S.starts,e._yEnds=S.ends);var C=new Array(w),P=new Array(b);for(r=0;r1&&i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&&i.extendFlat(s.errorX,l.x),s.errorY&&i.extendFlat(s.errorY,l.y)}s.text&&(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,C,E,L),z=d(t,x);return f(o,e),_?O.marker&&(I=O.marker.sizeAvg||Math.max(O.marker.size,3)):I=c(e,b),u(t,e,l,y,E,L,I),O.errorX&&v(e,l,O.errorX),O.errorY&&v(e,y,O.errorY),O.fill&&!z.fill2d&&(z.fill2d=!0),O.marker&&!z.scatter2d&&(z.scatter2d=!0),O.line&&!z.line2d&&(z.line2d=!0),!O.errorX&&!O.errorY||z.error2d||(z.error2d=!0),O.text&&!z.glText&&(z.glText=!0),O.marker&&(O.marker.snap=b),z.lineOptions.push(O.line),z.errorXOptions.push(O.errorX),z.errorYOptions.push(O.errorY),z.fillOptions.push(O.fill),z.markerOptions.push(O.marker),z.markerSelectedOptions.push(O.markerSel),z.markerUnselectedOptions.push(O.markerUnsel),z.textOptions.push(O.text),z.textSelectedOptions.push(O.textSel),z.textUnselectedOptions.push(O.textUnsel),z.selectBatch.push([]),z.unselectBatch.push([]),T._scene=z,T.index=z.count,T.x=E,T.y=L,T.positions=C,z.count++,[{x:!1,y:!1,t:T,trace:e}]}},{"../../constants/numerical":474,"../../lib":498,"../../plots/cartesian/align_period":546,"../../plots/cartesian/autorange":548,"../../plots/cartesian/axis_ids":553,"../scatter/calc":923,"../scatter/colorscale_calc":925,"./constants":977,"./convert":978,"./scene_update":986,"@plotly/point-cluster":59}],977:[function(t,e,r){"use strict";e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],978:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("svg-path-sdf"),a=t("color-normalize"),o=t("../../registry"),s=t("../../lib"),l=t("../../components/drawing"),c=t("../../plots/cartesian/axis_ids"),u=t("../../lib/gl_format_color").formatColor,f=t("../scatter/subtypes"),h=t("../scatter/make_bubble_size_func"),p=t("./helpers"),d=t("./constants"),m=t("../../constants/interactions").DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t("../../components/fx/helpers").appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=t._context.plotGlPixelRatio,m=e.texttemplate;if(m){p.text=[];var g=i._d3locale,y=Array.isArray(m),x=y?Math.min(m.length,a):a,b=y?function(t){return m[t]}:function(){return m};for(r=0;rd.TOO_MANY_POINTS||f.hasMarkers(e)?"rect":"round";if(c&&e.connectgaps){var h=n[0],p=n[1];for(i=0;i1?l[i]:l[0]:l,d=Array.isArray(c)?c.length>1?c[i]:c[0]:c,m=g[p],v=g[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[m*y/h,x/h]}}return o}}},{"../../components/drawing":383,"../../components/fx/helpers":397,"../../constants/interactions":473,"../../lib":498,"../../lib/gl_format_color":494,"../../plots/cartesian/axis_ids":553,"../../registry":633,"../scatter/make_bubble_size_func":939,"../scatter/subtypes":947,"./constants":977,"./helpers":982,"color-normalize":84,"fast-isnumeric":185,"svg-path-sdf":305}],979:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./helpers"),o=t("./attributes"),s=t("../scatter/constants"),l=t("../scatter/subtypes"),c=t("../scatter/xy_defaults"),u=t("../scatter/period_defaults"),f=t("../scatter/marker_defaults"),h=t("../scatter/line_defaults"),p=t("../scatter/fillcolor_defaults"),d=t("../scatter/text_defaults");e.exports=function(t,e,r,m){function g(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&&a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,m,g);if(x){u(t,e,m,g),g("xhoverformat"),g("yhoverformat");var b=x100},r.isDotSymbol=function(t){return"string"==typeof t?n.DOT_RE.test(t):t>200}},{"./constants":977}],983:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../scatter/get_trace_color");function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&&(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&&(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var m=d&&d.line;m&&(h.mlc=Array.isArray(m.color)?m.color[f]:m.color,h.mlw=i.isArrayOrTypedArray(m.width)?m.width[f]:m.width);var g=d&&d.gradient;g&&"none"!==g.type&&(h.mgt=Array.isArray(g.type)?g.type[f]:g.type,h.mgc=Array.isArray(g.color)?g.color[f]:g.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&&(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&&(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&&(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,A=o._origY,M=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:A?A[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?M.text=h.htx:h.tx?M.text=h.tx:o.text&&(M.text=o.text),i.fillText(h,o,M),n.getComponentMethod("errorbars","hoverInfo")(h,o,M),M}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d,m=t.cd,g=m[0].t,v=m[0].trace,y=t.xa,x=t.ya,b=g.x,_=g.y,w=y.c2p(e),T=x.c2p(r),k=t.distance;if(g.tree){var A=y.p2c(w-k),M=y.p2c(w+k),S=x.p2c(T-k),E=x.p2c(T+k);i="x"===n?g.tree.range(Math.min(A,M),Math.min(x._rl[0],x._rl[1]),Math.max(A,M),Math.max(x._rl[0],x._rl[1])):g.tree.range(Math.min(A,M),Math.min(S,E),Math.max(A,M),Math.max(S,E))}else i=g.ids;var L=k;if("x"===n){var C=!!v.xperiodalignment,P=!!v.yperiodalignment;for(u=0;u=Math.min(I,O)&&w<=Math.max(I,O)?0:1/0}if(f=Math.min(z,D)&&T<=Math.max(z,D)?0:1/0}d=Math.sqrt(f*f+h*h),s=i[u]}}}else for(u=i.length-1;u>-1;u--)l=b[a=i[u]],c=_[a],f=y.c2p(l)-w,h=x.c2p(c)-T,(p=Math.sqrt(f*f+h*h))y.glText.length){var T=_-y.glText.length;for(m=0;mr&&(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),y.line2d.update(y.lineOptions)),y.error2d){var A=(y.errorXOptions||[]).concat(y.errorYOptions||[]);y.error2d.update(A)}y.scatter2d&&y.scatter2d.update(y.markerOptions),y.fillOrder=s.repeat(null,_),y.fill2d&&(y.fillOptions=y.fillOptions.map((function(t,e){var n=r[e];if(t&&n&&n[0]&&n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=y.lineOptions[e],u=[];s._ownfill&&u.push(e),s._nexttrace&&u.push(e+1),u.length&&(y.fillOrder[e]=u);var f,h,p=[],d=c&&c.positions||l.positions;if("tozeroy"===s.fill){for(f=0;ff&&isNaN(d[h+1]);)h-=2;0!==d[f+1]&&(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&&(p=p.concat([d[h],0]))}else if("tozerox"===s.fill){for(f=0;ff&&isNaN(d[h]);)h-=2;0!==d[f]&&(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&&(p=p.concat([0,d[h+1]]))}else if("toself"===s.fill||"tonext"===s.fill){for(p=[],i=0,t.splitNull=!0,a=0;a-1;for(m=0;m<_;m++){var L=r[m][0],C=L.trace,P=L.t,I=P.index,O=C._length,z=P.x,D=P.y;if(C.selectedpoints||S||E){if(S||(S=!0),C.selectedpoints){var R=y.selectBatch[I]=s.selIndices2selPoints(C),F={};for(g=0;g")}function u(t){return t+"\xb0"}}e.exports={hoverPoints:function(t,e,r){var o=t.cd,c=o[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(o,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var m=o[t.index],g=m.lonlat,v=[i.modHalf(g[0],360)+p,g[1]],y=u.c2p(v),x=f.c2p(v),b=m.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(m,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,m),t.extraText=l(c,m,o[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}},{"../../components/fx":401,"../../constants/numerical":474,"../../lib":498,"../scatter/get_trace_color":932}],994:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("../scattergeo/calc"),plot:t("./plot"),hoverPoints:t("./hover").hoverPoints,eventData:t("./event_data"),selectPoints:t("./select"),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.update(e)},moduleType:"trace",name:"scattermapbox",basePlotModule:t("../../plots/mapbox"),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/mapbox":608,"../scatter/marker_colorbar":940,"../scattergeo/calc":965,"./attributes":988,"./defaults":990,"./event_data":991,"./format_labels":992,"./hover":993,"./plot":995,"./select":996}],995:[function(t,e,r){"use strict";var n=t("./convert"),i=t("../../plots/mapbox/constants").traceLayerPrefix,a=["fill","line","circle","symbol"];function o(t,e){this.type="scattermapbox",this.subplot=t,this.uid=e,this.sourceIds={fill:"source-"+e+"-fill",line:"source-"+e+"-line",circle:"source-"+e+"-circle",symbol:"source-"+e+"-symbol"},this.layerIds={fill:i+e+"-fill",line:i+e+"-line",circle:i+e+"-circle",symbol:i+e+"-symbol"},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:"geojson",data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup["trace-"+this.uid];if(c!==this.below){for(e=a.length-1;e>=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup["trace-"+r.uid],c=0;c")}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{"../scatter/hover":933}],1002:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:t("../../plots/polar"),categories:["polar","symbols","showLegend","scatter-like"],attributes:t("./attributes"),supplyDefaults:t("./defaults").supplyDefaults,colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,selectPoints:t("../scatter/select"),meta:{}}},{"../../plots/polar":617,"../scatter/marker_colorbar":940,"../scatter/select":944,"../scatter/style":946,"./attributes":997,"./calc":998,"./defaults":999,"./format_labels":1e3,"./hover":1001,"./plot":1003}],1003:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../constants/numerical").BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select("g.scatterlayer"),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c=c&&(y.marker.cluster=d.tree),y.marker&&(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&&_.length>1&&l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&&(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&&!h.fill2d&&(h.fill2d=!0),y.marker&&!h.scatter2d&&(h.scatter2d=!0),y.line&&!h.line2d&&(h.line2d=!0),y.text&&!h.glText&&(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=g,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}},e.exports.reglPrecompiled={}},{"../../lib":498,"../scattergl/constants":977,"../scattergl/convert":978,"../scattergl/plot":985,"../scattergl/scene_update":986,"@plotly/point-cluster":59,"fast-isnumeric":185}],1012:[function(t,e,r){"use strict";var n=t("../../plots/template_attributes").hovertemplateAttrs,i=t("../../plots/template_attributes").texttemplateAttrs,a=t("../../lib/extend").extendFlat,o=t("../scatter/attributes"),s=t("../../plots/attributes"),l=o.line;e.exports={mode:o.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:o.text,texttemplate:i({editType:"plot"},{keys:["real","imag","text"]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:["linear","spline"]}),smoothing:l.smoothing,editType:"calc"},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{"../../lib/extend":488,"../../plots/attributes":545,"../../plots/template_attributes":628,"../scatter/attributes":922}],1013:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../constants/numerical").BADNUM,a=t("../scatter/colorscale_calc"),o=t("../scatter/arrays_to_calcdata"),s=t("../scatter/calc_selection"),l=t("../scatter/calc").calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,c=e.subplot,u=r[c].realaxis,f=r[c].imaginaryaxis,h=u.makeCalcdata(e,"real"),p=f.makeCalcdata(e,"imag"),d=e._length,m=new Array(d),g=0;g")}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{"../scatter/hover":933}],1017:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"scattersmith",basePlotModule:t("../../plots/smith"),categories:["smith","symbols","showLegend","scatter-like"],attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,selectPoints:t("../scatter/select"),meta:{}}},{"../../plots/smith":624,"../scatter/marker_colorbar":940,"../scatter/select":944,"../scatter/style":946,"./attributes":1012,"./calc":1013,"./defaults":1014,"./format_labels":1015,"./hover":1016,"./plot":1018}],1018:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../constants/numerical").BADNUM,a=t("../../plots/smith/helpers").smith;e.exports=function(t,e,r){for(var o=e.layers.frontplot.select("g.scatterlayer"),s={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},l=0;l"),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+": "+e)}}},{"../scatter/hover":933}],1025:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../scatter/select"),eventData:t("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:t("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":629,"../scatter/marker_colorbar":940,"../scatter/select":944,"../scatter/style":946,"./attributes":1019,"./calc":1020,"./defaults":1021,"./event_data":1022,"./format_labels":1023,"./hover":1024,"./plot":1026}],1026:[function(t,e,r){"use strict";var n=t("../scatter/plot");e.exports=function(t,e,r){var i=e.plotContainer;i.select(".scatterlayer").selectAll("*").remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select("g.scatterlayer");n(t,a,r,o)}},{"../scatter/plot":943}],1027:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../../components/colorscale/attributes"),a=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=t("../../plots/template_attributes").hovertemplateAttrs,s=t("../scattergl/attributes"),l=t("../../plots/cartesian/constants").idRegex,c=t("../../plot_api/plot_template").templatedArray,u=t("../../lib/extend").extendFlat,f=n.marker,h=f.line,p=u(i("marker.line",{editTypeOverride:"calc"}),{width:u({},h.width,{editType:"calc"}),editType:"calc"}),d=u(i("marker"),{symbol:f.symbol,size:u({},f.size,{editType:"markerSize"}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:f.opacity,colorbar:f.colorbar,line:p,editType:"calc"});function m(t){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:l[t],editType:"plot"}}}d.color.editType=d.cmin.editType=d.cmax.editType="style",e.exports={dimensions:c("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u({},s.text,{}),hovertext:u({},s.hovertext,{}),hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),marker:d,xaxes:m("x"),yaxes:m("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:s.selected.marker,editType:"calc"},unselected:{marker:s.unselected.marker,editType:"calc"},opacity:s.opacity}},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plot_api/plot_template":538,"../../plots/cartesian/axis_format_attributes":552,"../../plots/cartesian/constants":556,"../../plots/template_attributes":628,"../scatter/attributes":922,"../scattergl/attributes":974}],1028:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../components/grid");e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),calc:t("./calc"),plot:t("./plot"),hoverPoints:t("./hover").hoverPoints,selectPoints:t("./select"),editStyle:t("./edit_style"),meta:{}},n.register(i)},{"../../components/grid":405,"../../registry":633,"../scatter/marker_colorbar":940,"./attributes":1027,"./calc":1030,"./defaults":1031,"./edit_style":1032,"./hover":1034,"./plot":1036,"./select":1038}],1029:[function(t,e,r){"use strict";var n=t("regl-line2d"),i=t("../../registry"),a=t("../../lib/prepare_regl"),o=t("../../plots/get_data").getModuleCalcData,s=t("../../plots/cartesian"),l=t("../../plots/cartesian/axis_ids").getFromId,c=t("../../plots/cartesian/axes").shouldShowZeroLine,u={};function f(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;oh?b.sizeAvg||Math.max(b.size,3):a(e,x),p=0;pa&&l||i-1,P=!0;if(o(x)||!!p.selectedpoints||C){var I=p._length;if(p.selectedpoints){m.selectBatch=p.selectedpoints;var O=p.selectedpoints,z={};for(l=0;l1&&(u=m[y-1],h=g[y-1],d=v[y-1]),e=0;eu?"-":"+")+"x")).replace("y",(f>h?"-":"+")+"y")).replace("z",(p>d?"-":"+")+"z");var L=function(){y=0,M=[],S=[],E=[]};(!y||y2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,"xaxis"),d(e._v,"yaxis"),d(e._w,"zaxis"),u),!u)return{positions:[],cells:[]};var m=d(e._Xs,"xaxis"),g=d(e._Ys,"yaxis"),v=d(e._Zs,"zaxis");if(f.meshgrid=[m,g,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,"xaxis"),d(e._startsY,"yaxis"),d(e._startsZ,"zaxis"));else{for(var y=g[0],x=h(m),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T=0};v?(r=Math.min(g.length,x.length),l=function(t){return A(g[t])&&M(t)},f=function(t){return String(g[t])}):(r=Math.min(y.length,x.length),l=function(t){return A(y[t])&&M(t)},f=function(t){return String(y[t])}),_&&(r=Math.min(r,b.length));for(var S=0;S1){for(var P=a.randstr(),I=0;I"),name:A||z("name")?y.name:void 0,color:k("hoverlabel.bgcolor")||x.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:P,eventData:l};g&&(F.x0=E-i.rInscribed*i.rpx1,F.x1=E+i.rInscribed*i.rpx1,F.idealAlign=i.pxmid[0]<0?"left":"right"),v&&(F.x=E,F.idealAlign=E<0?"left":"right");var B=[];o.loneHover(F,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:B}),l[0].bbox=B[0],d._hasHoverLabel=!0}if(v){var N=t.select("path.surface");h.styleOne(N,i,y,{hovered:!0})}d._hasHoverEvent=!0,r.emit("plotly_hover",{points:l||[f(i,y,h.eventDataKeys)],event:n.event})}})),t.on("mouseout",(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&&(e.originalEvent=n.event,r.emit("plotly_unhover",{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&&(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select("path.surface");h.styleOne(l,s,a,{hovered:!1})}})),t.on("click",(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=g&&(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(m,u):c.findEntryWithLevel(m,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,"plotly_"+d.type+"click",y);if(!1!==x&&e.hovermode&&(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&&!1!==x&&!r._dragging&&!r._transitioning){i.call("_storeDirectGUIEdit",a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call("animate",r,b,_)}}))}},{"../../components/fx":401,"../../components/fx/helpers":397,"../../lib":498,"../../lib/events":487,"../../registry":633,"../pie/helpers":901,"./helpers":1050,"@plotly/d3":58}],1050:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../components/color"),a=t("../../lib/setcursor"),o=t("../pie/helpers");function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&&t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a0)},r.getMaxDepth=function(t){return t.maxdepth>=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,"label").join("/")+"/"},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return"0%"===r&&(r=o.formatPiePercent(t,e)),r}},{"../../components/color":361,"../../lib":498,"../../lib/setcursor":519,"../pie/helpers":901}],1051:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"sunburst",basePlotModule:t("./base_plot"),categories:[],animatable:!0,attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot").plot,style:t("./style").style,colorbar:t("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":940,"./attributes":1044,"./base_plot":1045,"./calc":1046,"./defaults":1048,"./layout_attributes":1052,"./layout_defaults":1053,"./plot":1054,"./style":1055}],1052:[function(t,e,r){"use strict";e.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],1053:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("sunburstcolorway",e.colorway),r("extendsunburstcolors")}},{"../../lib":498,"./layout_attributes":1052}],1054:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-hierarchy"),a=t("d3-interpolate").interpolate,o=t("../../components/drawing"),s=t("../../lib"),l=t("../../lib/svg_text_utils"),c=t("../bar/uniform_text"),u=c.recordMinTextSize,f=c.clearMinTextSize,h=t("../pie/plot"),p=t("../pie/helpers").getRotationAngle,d=h.computeTransform,m=h.transformInsideText,g=t("./style").styleOne,v=t("../bar/style").resizeText,y=t("./fx"),x=t("./constants"),b=t("./helpers");function _(t,e,c,f){var h=t._fullLayout,v=!h.uniformtext.mode&&b.hasTransition(f),_=n.select(c).selectAll("g.slice"),T=e[0],k=T.trace,A=T.hierarchy,M=b.findEntryWithLevel(A,k.level),S=b.getMaxDepth(k),E=h._size,L=k.domain,C=E.w*(L.x[1]-L.x[0]),P=E.h*(L.y[1]-L.y[0]),I=.5*Math.min(C,P),O=T.cx=E.l+E.w*(L.x[1]+L.x[0])/2,z=T.cy=E.t+E.h*(1-L.y[0])-P/2;if(!M)return _.remove();var D=null,R={};v&&_.each((function(t){R[b.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!D&&b.isEntry(t)&&(D=t)}));var F=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),B=M.height+1,N=0,j=S;T.hasMultipleRoots&&b.isHierarchyRoot(M)&&(F=F.slice(1),B-=1,N=1,j+=1),F=F.filter((function(t){return t.y1<=j}));var U=p(k.rotation);U&&F.forEach((function(t){t.x0+=U,t.x1+=U}));var V=Math.min(B,S),H=function(t){return(t-N)/V*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},G=function(t){return s.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,O,z)},Y=function(t){return O+w(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},W=function(t){return z+w(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(_=_.data(F,b.getPtId)).enter().append("g").classed("slice",!0),v?_.exit().transition().each((function(){var t=n.select(this);t.select("path.surface").transition().attrTween("d",(function(t){var e=function(t){var e,r=b.getPtId(t),n=R[r],i=R[b.getPtId(M)];if(i){var o=(t.x1>i.x1?2*Math.PI:0)+U;e=t.rpx1X?2*Math.PI:0)+U;e={x0:i,x1:i}}else e={rpx0:I,rpx1:I},s.extendFlat(e,K(t));else e={rpx0:0,rpx1:0};else e={x0:U,x1:U};return a(e,n)}(t);return function(t){return G(e(t))}})):f.attr("d",G),c.call(y,M,t,e,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),f.call(g,i,k);var p=s.ensureSingle(c,"g","slicetext"),_=s.ensureSingle(p,"text","",(function(t){t.attr("data-notex",1)})),w=s.ensureUniformFontSize(t,b.determineTextFont(k,i,h.font));_.text(r.formatSliceLabel(i,M,k,e,h)).classed("slicetext",!0).attr("text-anchor","middle").call(o.font,w).call(l.convertToTspans,t);var A=o.bBox(_.node());i.transform=m(A,i,T),i.transform.targetX=Y(i),i.transform.targetY=W(i);var S=function(t,e){var r=t.transform;return d(r,e),r.fontSize=w.size,u(k.type,r,h),s.getTextTransform(r)};v?_.transition().attrTween("transform",(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},D)if(t.parent)if(X){var i=t.x1>X?2*Math.PI:0;e.x0=e.x1=i}else s.extendFlat(e,K(t));else e.x0=e.x1=U;else e.x0=e.x1=U;var o=a(e.transform.textPosAngle,t.transform.textPosAngle),l=a(e.rpx1,t.rpx1),c=a(e.x0,t.x0),f=a(e.x1,t.x1),p=a(e.transform.scale,n.scale),d=a(e.transform.rotate,n.rotate),m=0===n.rCenter?3:0===e.transform.rCenter?1/3:1,g=a(e.transform.rCenter,n.rCenter);return function(t){var e=l(t),r=c(t),i=f(t),a=function(t){return g(Math.pow(t,m))}(t),s={pxmid:q(e,(r+i)/2),rpx1:e,transform:{textPosAngle:o(t),rCenter:a,x:n.x,y:n.y}};return u(k.type,n,h),{transform:{targetX:Y(s),targetY:W(s),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return S(e(t),A)}})):_.attr("transform",S(i,A))}))}function w(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&&b.hasTransition(r);(f("sunburst",s),(a=l.selectAll("g.trace.sunburst").data(e,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),a.order(),u)?(i&&(o=i()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){l.selectAll("g.trace").each((function(e){_(t,e,this,r)}))}))):(a.each((function(e){_(t,e,this,r)})),s.uniformtext.mode&&v(t,s._sunburstlayer.selectAll(".trace"),"sunburst"));c&&a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!(a||o&&"none"!==o))return"";var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=b.isHierarchyRoot(t),p=b.getParent(f,t),d=b.getValue(t);if(!a){var m,g=o.split("+"),v=function(t){return-1!==g.indexOf(t)},y=[];if(v("label")&&u.label&&y.push(u.label),u.hasOwnProperty("v")&&v("value")&&y.push(b.formatValue(u.v,l)),!h){v("current path")&&y.push(b.getPath(t.data));var x=0;v("percent parent")&&x++,v("percent entry")&&x++,v("percent root")&&x++;var _=x>1;if(x){var w,T=function(t){m=b.formatPercent(w,l),_&&(m+=" of "+t),y.push(m)};v("percent parent")&&!h&&(w=d/b.getValue(p),T("parent")),v("percent entry")&&(w=d/b.getValue(e),T("entry")),v("percent root")&&(w=d/b.getValue(f),T("root"))}}return v("text")&&(m=s.castOption(r,u.i,"text"),s.isValidTextValue(m)&&y.push(m)),y.join("
")}var k=s.castOption(r,u.i,"texttemplate");if(!k)return"";var A={};u.label&&(A.label=u.label),u.hasOwnProperty("v")&&(A.value=u.v,A.valueLabel=b.formatValue(u.v,l)),A.currentPath=b.getPath(t.data),h||(A.percentParent=d/b.getValue(p),A.percentParentLabel=b.formatPercent(A.percentParent,l),A.parent=b.getPtLabel(p)),A.percentEntry=d/b.getValue(e),A.percentEntryLabel=b.formatPercent(A.percentEntry,l),A.entry=b.getPtLabel(e),A.percentRoot=d/b.getValue(f),A.percentRootLabel=b.formatPercent(A.percentRoot,l),A.root=b.getPtLabel(f),u.hasOwnProperty("color")&&(A.color=u.color);var M=s.castOption(r,u.i,"text");return(s.isValidTextValue(M)||""===M)&&(A.text=M),A.customdata=s.castOption(r,u.i,"customdata"),s.texttemplateString(k,A,i._d3locale,A,r._meta||{})}},{"../../components/drawing":383,"../../lib":498,"../../lib/svg_text_utils":524,"../bar/style":657,"../bar/uniform_text":659,"../pie/helpers":901,"../pie/plot":905,"./constants":1047,"./fx":1049,"./helpers":1050,"./style":1055,"@plotly/d3":58,"d3-hierarchy":110,"d3-interpolate":111}],1055:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/color"),a=t("../../lib"),o=t("../bar/uniform_text").resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,"marker.line.color")||i.defaultLine,c=a.castOption(r,s,"marker.line.width")||0;t.style("stroke-width",c).call(i.fill,n.color).call(i.stroke,l).style("opacity",o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(".trace");o(t,e,"sunburst"),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style("opacity",r.opacity),e.selectAll("path.surface").each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{"../../components/color":361,"../../lib":498,"../bar/uniform_text":659,"@plotly/d3":58}],1056:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/attributes"),a=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=t("../../plots/template_attributes").hovertemplateAttrs,s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c=t("../../plot_api/edit_types").overrideAll;function u(t){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:{valType:"boolean",dflt:!1},y:{valType:"boolean",dflt:!1},z:{valType:"boolean",dflt:!1}},color:{valType:"color",dflt:n.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:n.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var f=e.exports=c(l({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},i("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:u(),y:u(),z:u()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:l({},i.zauto,{}),zmin:l({},i.zmin,{}),zmax:l({},i.zmax,{})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),"calc","nested");f.x.editType=f.y.editType=f.z.editType="calc+clearAxisTypes",f.transforms=void 0},{"../../components/color":361,"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plot_api/edit_types":531,"../../plots/attributes":545,"../../plots/cartesian/axis_format_attributes":552,"../../plots/template_attributes":628}],1057:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:"",cLetter:"c"}):n(t,e,{vals:e.z,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":369}],1058:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_surface3d,i=t("../../../stackgl_modules").ndarray,a=t("../../../stackgl_modules").ndarray_linear_interpolate.d2,o=t("../heatmap/interp2d"),s=t("../heatmap/find_empties"),l=t("../../lib").isArrayOrTypedArray,c=t("../../lib/gl_format_color").parseColorScale,u=t("../../lib/str2rgbarray"),f=t("../../components/colorscale").extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=t.dataCoordinate[a];null!=o&&(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&&s[i]&&void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||"",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function m(t,e){if(t0){r=d[n];break}return r}function y(t,e){if(!(t<1||e<1)){for(var r=g(t),n=g(e),i=1,a=0;a_;)r--,r/=v(r),++r1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h0&&null!==this.contourStart[t]&&null!==this.contourEnd[t]&&this.contourEnd[t]>this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];ea&&(this.minValues[e]=a),this.maxValues[e]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},{}],1065:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../lib/extend").extendFlat,a=t("fast-isnumeric");function o(t){if(Array.isArray(t)){for(var e=0,r=0;r=e||c===t.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&&!d[0].length&&(d[0]=[""],d=l(d));var m=d.concat(p(r).map((function(){return c((d[0]||[""]).length)}))),g=e.domain,v=Math.floor(t._fullLayout._size.w*(g.x[1]-g.x[0])),y=Math.floor(t._fullLayout._size.h*(g.y[1]-g.y[0])),x=e.header.values.length?m[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),A={},M=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=m.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var L=Math.max(o(e.header.line.width),o(e.cells.line.width)),C={key:e.uid+t._context.staticPlot,translateX:g.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-g.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:L,height:y,columnOrder:M,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:m}),gdColumns:m.map((function(t){return t[0]})),gdColumnsOriginalOrder:m.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:m.map((function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+"__"+A[t],label:t,specIndex:e,xIndex:M[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return C.columns.forEach((function(t){t.calcdata=C,t.x=u(t)})),C}},{"../../lib/extend":488,"./constants":1064,"fast-isnumeric":185}],1066:[function(t,e,r){"use strict";var n=t("../../lib/extend").extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:"header",type:"header",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:"cells1",type:"cells",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:"cells2",type:"cells",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+("string"==typeof r&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{"../../lib/extend":488}],1067:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../plots/domain").defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s("columnwidth"),s("header.values"),s("header.format"),s("header.align"),s("header.prefix"),s("header.suffix"),s("header.height"),s("header.line.width"),s("header.line.color"),s("header.fill.color"),n.coerceFont(s,"header.font",n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s/i),l=!o||s;t.mayHaveMarkup=o&&i.match(/[<&>]/);var c,u="string"==typeof(c=i)&&c.match(n.latexCheck);t.latex=u;var f,h,p=u?"":T(t.calcdata.cells.prefix,e,r)||"",d=u?"":T(t.calcdata.cells.suffix,e,r)||"",m=u?null:T(t.calcdata.cells.format,e,r)||null,g=p+(m?a(m)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&&!l&&!u&&(f=w(g)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?w(g):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(" "===n.wrapSplitCharacter?g.replace(/i&&n.push(a),i+=l}return n}(i,l,s);1===c.length&&(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),e.each((function(t,e){t.page=c[e],t.scrollY=l})),e.attr("transform",(function(t){var e=D(t.rowBlocks,t.page)-t.scrollY;return u(0,e)})),t&&(C(t,r,e,c,n.prevPages,n,0),C(t,r,e,c,n.prevPages,n,1),x(r,t))}}function L(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll("."+n.cn.yColumn).selectAll("."+n.cn.columnBlock).filter(A);return E(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&&n[e]!==i[e]}));b(t,e,a,r),i[o]=n[o]})))}function P(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll("tspan.line").each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value="";s.length;)c+(i=(r=s.shift()).width+a)>u&&(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&&(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll("tspan.line").remove(),_(o.select("."+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=B(o),c=o.key-l.firstRowIndex,f=l.rows[c].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[c].rowHeight&&(l.rows[c].rowHeight=p,t.selectAll("."+n.cn.columnCell).call(z),E(null,t.filter(A),0),x(r,a,!0)),s.attr("transform",(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select("."+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return u(O(o,i.select(this.parentNode).select("."+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function O(t,e){switch(t.align){case"left":return n.cellPad;case"right":return t.column.columnWidth-(e||0)-n.cellPad;case"center":return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr("transform",(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+R(e,1/0)}),0),r=R(B(t),t.key);return u(0,r+e)})).selectAll("."+n.cn.cellRect).attr("height",(function(t){return(e=B(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function D(t,e){for(var r=0,n=e-1;n>=0;n--)r+=F(t[n]);return r}function R(t,e){for(var r=0,n=0;n","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:u({},s.textfont,{}),editType:"calc"},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:s.sort,root:l.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}},{"../../components/colorscale/attributes":368,"../../lib/extend":488,"../../plots/domain":579,"../../plots/template_attributes":628,"../pie/attributes":896,"../sunburst/attributes":1044,"./constants":1073}],1071:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="treemap",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":614}],1072:[function(t,e,r){"use strict";var n=t("../sunburst/calc");r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc("treemap",t)}},{"../sunburst/calc":1046}],1073:[function(t,e,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},{}],1074:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../components/color"),o=t("../../plots/domain").defaults,s=t("../bar/defaults").handleText,l=t("../bar/constants").TEXTPAD,c=t("../../components/colorscale"),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h("labels"),d=h("parents");if(p&&p.length&&d&&d.length){var m=h("values");m&&m.length?h("branchvalues"):h("count"),h("level"),h("maxdepth"),"squarify"===h("tiling.packing")&&h("tiling.squarifyratio"),h("tiling.flip"),h("tiling.pad");var g=h("text");h("texttemplate"),e.texttemplate||h("textinfo",Array.isArray(g)?"text+label":"label"),h("hovertext"),h("hovertemplate");var v=h("pathbar.visible");s(t,e,c,h,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("textposition");var y=-1!==e.textposition.indexOf("bottom");h("marker.line.width")&&h("marker.line.color",c.paper_bgcolor);var x=h("marker.colors");(e._hasColorscale=u(t,"marker","colors")||(t.marker||{}).coloraxis)?f(t,e,c,h,{prefix:"marker.",cLetter:"c"}):h("marker.depthfade",!(x||[]).length);var b=2*e.textfont.size;h("marker.pad.t",y?b/4:b),h("marker.pad.l",b/4),h("marker.pad.r",b/4),h("marker.pad.b",y?b:b/4),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&&(h("pathbar.thickness",e.pathbar.textfont.size+2*l),h("pathbar.side"),h("pathbar.edgeshape")),h("sort"),h("root.color"),o(e,c,h),e._length=null}else e.visible=!1}},{"../../components/color":361,"../../components/colorscale":373,"../../lib":498,"../../plots/domain":579,"../bar/constants":645,"../bar/defaults":647,"./attributes":1070}],1075:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../sunburst/helpers"),a=t("../bar/uniform_text").clearMinTextSize,o=t("../bar/style").resizeText,s=t("./plot_one");e.exports=function(t,e,r,l,c){var u,f,h=c.type,p=c.drawDescendants,d=t._fullLayout,m=d["_"+h+"layer"],g=!r;(a(h,d),(u=m.selectAll("g.trace."+h).data(e,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed(h,!0),u.order(),!d.uniformtext.mode&&i.hasTransition(r))?(l&&(f=l()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){m.selectAll("g.trace").each((function(e){s(t,e,this,r,p)}))}))):(u.each((function(e){s(t,e,this,r,p)})),d.uniformtext.mode&&o(t,m.selectAll(".trace"),h));g&&u.exit().remove()}},{"../bar/style":657,"../bar/uniform_text":659,"../sunburst/helpers":1050,"./plot_one":1084,"@plotly/d3":58}],1076:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../components/drawing"),o=t("../../lib/svg_text_utils"),s=t("./partition"),l=t("./style").styleOne,c=t("./constants"),u=t("../sunburst/helpers"),f=t("../sunburst/fx");e.exports=function(t,e,r,h,p){var d=p.barDifY,m=p.width,g=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,A=p.makeUpdateTextInterpolator,M={},S=t._fullLayout,E=e[0],L=E.trace,C=E.hierarchy,P=m/L._entryDepth,I=u.listPath(r.data,"id"),O=s(C.copy(),[m,g],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(O=O.filter((function(t){var e=I.indexOf(t.data.id);return-1!==e&&(t.x0=P*e,t.x1=P*(e+1),t.y0=d,t.y1=d+g,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(O,u.getPtId)).enter().append("g").classed("pathbar",!0),T(h,!0,M,[m,g],x),h.order();var z=h;w&&(z=z.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),z.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-Math.min(m,g)/2),s._hoverY=y(s.y1-g/2);var h=n.select(this),p=i.ensureSingle(h,"path","surface",(function(t){t.style("pointer-events","all")}));w?p.transition().attrTween("d",(function(t){var e=k(t,!0,M,[m,g]);return function(t){return x(e(t))}})):p.attr("d",x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,L,{hovered:!1}),s._text=(u.getPtLabel(s)||"").split("
").join(" ")||"";var d=i.ensureSingle(h,"g","slicetext"),T=i.ensureSingle(d,"text","",(function(t){t.attr("data-notex",1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(L,s,S.font,{onPathbar:!0}));T.text(s._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween("transform",(function(t){var e=A(t,!0,M,[m,g]);return function(t){return _(e(t))}})):T.attr("transform",_(s))}))}},{"../../components/drawing":383,"../../lib":498,"../../lib/svg_text_utils":524,"../sunburst/fx":1049,"../sunburst/helpers":1050,"./constants":1073,"./partition":1082,"./style":1085,"@plotly/d3":58}],1077:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../components/drawing"),o=t("../../lib/svg_text_utils"),s=t("./partition"),l=t("./style").styleOne,c=t("./constants"),u=t("../sunburst/helpers"),f=t("../sunburst/fx"),h=t("../sunburst/plot").formatSliceLabel;e.exports=function(t,e,r,p,d){var m=d.width,g=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf("left"),C=-1!==E.textposition.indexOf("right"),P=-1!==E.textposition.indexOf("bottom"),I=!P&&!E.marker.pad.t||P&&!E.marker.pad.b,O=s(r,[m,g],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf("x")>-1,flipY:E.tiling.flip.indexOf("y")>-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),z=1/0,D=-1/0;O.forEach((function(t){var e=t.depth;e>=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(z=Math.min(z,e),D=Math.max(D,e))})),p=p.data(O,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-z+1:0,p.enter().append("g").classed("slice",!0),T(p,!1,{},[m,g],x),p.order();var R=null;if(w&&M){var F=u.getPtId(M);p.each((function(t){null===R&&u.getPtId(t)===F&&(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:m,y0:0,y1:g}},N=p;return w&&(N=N.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(P?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,"path","surface",(function(t){t.style("pointer-events","all")}));w?T.transition().attrTween("d",(function(t){var e=k(t,!1,B(),[m,g]);return function(t){return x(e(t))}})):T.attr("d",x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=p?I?"":u.getPtLabel(s)||"":h(s,r,E,e,S)||"";var M=i.ensureSingle(d,"g","slicetext"),O=i.ensureSingle(M,"text","",(function(t){t.attr("data-notex",1)})),z=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));O.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",C?"end":L||p?"start":"middle").call(a.font,z).call(o.convertToTspans,t),s.textBB=a.bBox(O.node()),s.transform=b(s,{fontSize:z.size,isHeader:p}),s.transform.fontSize=z.size,w?O.transition().attrTween("transform",(function(t){var e=A(t,!1,B(),[m,g]);return function(t){return _(e(t))}})):O.attr("transform",_(s))})),R}},{"../../components/drawing":383,"../../lib":498,"../../lib/svg_text_utils":524,"../sunburst/fx":1049,"../sunburst/helpers":1050,"../sunburst/plot":1054,"./constants":1073,"./partition":1082,"./style":1085,"@plotly/d3":58}],1078:[function(t,e,r){"use strict";e.exports=function t(e,r,n){var i;n.swapXY&&(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&&(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&&(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o-1?C+O:-(I+O):0,D={x0:P,x1:P,y0:z,y1:z+I},R=function(t,e,r){var n=v.tiling.pad,i=function(t){return t-n<=e.x0},a=function(t){return t+n>=e.x1},o=function(t){return t-n<=e.y0},s=function(t){return t+n>=e.y1};return t.x0===e.x0&&t.x1===e.x1&&t.y0===e.y0&&t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},N={},j=null,U=function(t,e){return e?B[h(t)]:N[h(t)]},V=function(t,e,r,n){if(e)return B[h(x)]||D;var i=N[v.level]||r;return function(t){return t.data.depth-b.data.depth=(n-=(y?g:g.r)-s)){var x=(r+n)/2;r=x,n=x}var b;f?i<(b=a-(y?g:g.b))&&b"===tt?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):"/"===tt?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):"\\"===tt?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):"<"===tt&&(o.x-=a,s.x-=a),$(l),$(f),$(o),$(c),$(u),$(s),"M"+K(l.x,l.y)+"L"+K(c.x,c.y)+"L"+K(s.x,s.y)+"L"+K(u.x,u.y)+"L"+K(f.x,f.y)+"L"+K(o.x,o.y)+"Z"},toMoveInsideSlice:et,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}):w.remove()}},{"../../lib":498,"../bar/constants":645,"../bar/plot":654,"../bar/uniform_text":659,"../sunburst/helpers":1050,"./constants":1073,"./draw_ancestors":1076,"@plotly/d3":58,"d3-interpolate":111}],1085:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/color"),a=t("../../lib"),o=t("../sunburst/helpers"),s=t("../bar/uniform_text").resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&&h===r.root.color)d=100,s="rgba(0,0,0,0)",l=0;else if(s=a.castOption(r,f,"marker.line.color")||i.defaultLine,l=a.castOption(r,f,"marker.line.width")||0,!r._hasColorscale&&!e.onPathbar){var m=r.marker.depthfade;if(m){var g,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===m){var y=o.getMaxDepth(r);g=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else g=e.data.depth-r._entryDepth,r._atRootLevel||g++;if(g>0)for(var x=0;x0){var x,b,_,w,T,k=t.xa,A=t.ya;"h"===p.orientation?(T=e,x="y",_=A,b="x",w=k):(T=r,x="x",_=k,b="y",w=A);var M=h[t.index];if(T>=M.span[0]&&T<=M.span[1]){var S=n.extendFlat({},t),E=w.c2p(T,!0),L=o.getKdeValue(M,p,T),C=o.getPositionOnKdePath(M,p,E),P=_._offset,I=_._length;S[x+"0"]=C[0],S[x+"1"]=C[1],S[b+"0"]=S[b+"1"]=E,S[b+"Label"]=b+": "+i.hoverLabelText(w,T,p[b+"hoverformat"])+", "+h[0].t.labels.kde+" "+L.toFixed(3),S.spikeDistance=y[0].spikeDistance;var O=x+"Spike";S[O]=y[0][O],y[0].spikeDistance=void 0,y[0][O]=void 0,S.hovertemplate=!1,v.push(S),(u={stroke:t.color})[x+"1"]=n.constrain(P+C[0],P,P+I),u[x+"2"]=n.constrain(P+C[1],P,P+I),u[b+"1"]=u[b+"2"]=w._offset+E}}m&&(v=v.concat(y))}-1!==d.indexOf("points")&&(c=a.hoverOnPoints(t,e,r));var z=f.selectAll(".violinline-"+p.uid).data(u?[0]:[]);return z.enter().append("line").classed("violinline-"+p.uid,!0).attr("stroke-width",1.5),z.exit().remove(),z.attr(u),"closest"===s?c?[c]:v:c?(v.push(c),v):v}},{"../../lib":498,"../../plots/cartesian/axes":549,"../box/hover":673,"./helpers":1090}],1092:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),crossTraceDefaults:t("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc"),plot:t("./plot"),style:t("./style"),styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../box/select"),moduleType:"trace",name:"violin",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":563,"../box/defaults":671,"../box/select":678,"../scatter/style":946,"./attributes":1086,"./calc":1087,"./cross_trace_calc":1088,"./defaults":1089,"./hover":1091,"./layout_attributes":1093,"./layout_defaults":1094,"./plot":1095,"./style":1096}],1093:[function(t,e,r){"use strict";var n=t("../box/layout_attributes"),i=t("../../lib").extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{"../../lib":498,"../box/layout_attributes":675}],1094:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes"),a=t("../box/layout_defaults");e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),"violin")}},{"../../lib":498,"../box/layout_defaults":676,"./layout_attributes":1093}],1095:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../components/drawing"),o=t("../box/plot"),s=t("../scatter/line_points"),l=t("./helpers");e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,"trace violins").each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,m=s.bdPos,g=e[s.valLetter+"axis"],v=e[s.posLetter+"axis"],y="both"===c.side,x=y||"positive"===c.side,b=y||"negative"===c.side,_=r.selectAll("path.violin").data(i.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),A=v.l2p(k);if(c.width)e=s.maxKDE/m;else{var M=u._violinScaleGroupStats[c.scalegroup];e="count"===c.scalemode?M.maxKDE/m*(M.maxCount/t.pts.length):M.maxKDE/m}if(x){for(f=new Array(T),o=0;o")),u.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&&o)return a}(h,g),[u]}function k(t){return n(m,t,h[d+"hoverformat"])}}},{"../../components/color":361,"../../constants/delta.js":468,"../../plots/cartesian/axes":549,"../bar/hover":650}],1108:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc"),plot:t("./plot"),style:t("./style").style,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("../bar/select"),moduleType:"trace",name:"waterfall",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":563,"../bar/select":655,"./attributes":1101,"./calc":1102,"./cross_trace_calc":1104,"./defaults":1105,"./event_data":1106,"./hover":1107,"./layout_attributes":1109,"./layout_defaults":1110,"./plot":1111,"./style":1112}],1109:[function(t,e,r){"use strict";e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],1110:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s0&&(g+=h?"M"+f[0]+","+d[1]+"V"+d[0]:"M"+f[1]+","+d[0]+"H"+f[0]),"between"!==p&&(r.isSum||s path").each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style("opacity",s.selectedpoints&&!t.selected?o:1)}})),c(r,s,t),r.selectAll(".lines").each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}}},{"../../components/color":361,"../../components/drawing":383,"../../constants/interactions":473,"../bar/style":657,"../bar/uniform_text":659,"@plotly/d3":58}],1113:[function(t,e,r){"use strict";var n=t("../plots/cartesian/axes"),i=t("../lib"),a=t("../plot_api/plot_schema"),o=t("./helpers").pointsAccessorFunction,s=t("../constants/numerical").BADNUM;r.moduleType="transform",r.name="aggregate";var l=r.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case"count":return f;case"first":return h;case"last":return p;case"sum":return function(t,e){for(var r=0,i=0;ii&&(i=u,o=c)}}return i?a(o):s};case"rms":return function(t,e){for(var r=0,i=0,o=0;o":return function(t){return h(t)>s};case">=":return function(t){return h(t)>=s};case"[]":return function(t){var e=h(t);return e>=s[0]&&e<=s[1]};case"()":return function(t){var e=h(t);return e>s[0]&&e=s[0]&&es[0]&&e<=s[1]};case"][":return function(t){var e=h(t);return e<=s[0]||e>=s[1]};case")(":return function(t){var e=h(t);return es[1]};case"](":return function(t){var e=h(t);return e<=s[0]||e>s[1]};case")[":return function(t){var e=h(t);return e=s[1]};case"{}":return function(t){return-1!==s.indexOf(h(t))};case"}{":return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(g=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(g=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(g);for(var w=o(e.transforms,r),T=0;T1?"%{group} (%{trace})":"%{group}");var l=t.styles,c=o.styles=[];if(l)for(a=0;a0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[u++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;os?s:o+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(t,e,r){},{}],3:[function(t,e,r){(function(e){(function(){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -"use strict";var e=t("base64-js"),n=t("ieee754");r.Buffer=a,r.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t>2147483647)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(i)return n?-1:D(t).length;e=(""+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return w(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),N(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var f=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;ne&&(t+=" ... "),""},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return v(this,t,e,r);case"ascii":return y(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return b(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,i,a){return e=+e,r>>>=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r>>>=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:4}],4:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},{}],5:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h1)for(var r=1;r0?c=c.ushln(f):f<0&&(u=u.ushln(-f));return s(c,u)}},{"./div":17,"./is-rat":19,"./lib/is-bn":23,"./lib/num-to-bn":24,"./lib/rationalize":25,"./lib/str-to-bn":26}],19:[function(t,e,r){"use strict";var n=t("./lib/is-bn");e.exports=function(t){return Array.isArray(t)&&2===t.length&&n(t[0])&&n(t[1])}},{"./lib/is-bn":23}],20:[function(t,e,r){"use strict";var n=t("bn.js");e.exports=function(t){return t.cmp(new n(0))}},{"bn.js":33}],21:[function(t,e,r){"use strict";var n=t("./bn-sign");e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a20)return 52;return r+32}},{"bit-twiddle":32,"double-bits":64}],23:[function(t,e,r){"use strict";t("bn.js");e.exports=function(t){return t&&"object"==typeof t&&Boolean(t.words)}},{"bn.js":33}],24:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("double-bits");e.exports=function(t){var e=i.exponent(t);return e<52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{"bn.js":33,"double-bits":64}],25:[function(t,e,r){"use strict";var n=t("./num-to-bn"),i=t("./bn-sign");e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{"./bn-sign":20,"./num-to-bn":24}],26:[function(t,e,r){"use strict";var n=t("bn.js");e.exports=function(t){return new n(t)}},{"bn.js":33}],27:[function(t,e,r){"use strict";var n=t("./lib/rationalize");e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{"./lib/rationalize":25}],28:[function(t,e,r){"use strict";var n=t("./lib/bn-sign");e.exports=function(t){return n(t[0])*n(t[1])}},{"./lib/bn-sign":20}],29:[function(t,e,r){"use strict";var n=t("./lib/rationalize");e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{"./lib/rationalize":25}],30:[function(t,e,r){"use strict";var n=t("./lib/bn-to-num"),i=t("./lib/ctz");e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h<1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{"./lib/bn-to-num":21,"./lib/ctz":22}],31:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return"function"==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],32:[function(t,e,r){"use strict";function n(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],33:[function(t,e,r){!function(e,r){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:t("buffer").Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=l(t,e,n)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:u[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;at.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==a&&o>26,this.words[o]=67108863&e;if(0===a&&o>>13,p=0|o[1],d=8191&p,m=p>>>13,g=0|o[2],v=8191&g,y=g>>>13,x=0|o[3],b=8191&x,_=x>>>13,w=0|o[4],T=8191&w,k=w>>>13,A=0|o[5],M=8191&A,S=A>>>13,E=0|o[6],L=8191&E,C=E>>>13,P=0|o[7],I=8191&P,O=P>>>13,z=0|o[8],D=8191&z,R=z>>>13,F=0|o[9],B=8191&F,N=F>>>13,j=0|s[0],U=8191&j,V=j>>>13,H=0|s[1],q=8191&H,G=H>>>13,Y=0|s[2],W=8191&Y,X=Y>>>13,Z=0|s[3],J=8191&Z,K=Z>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ct=st>>>13,ut=0|s[8],ft=8191&ut,ht=ut>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))<<13)|0;c=((a=Math.imul(h,V))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(m,U)|0,a=Math.imul(m,V);var vt=(c+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,q)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,q)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))<<13)|0;c=((a=a+Math.imul(h,X)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))<<13)|0;c=((a=a+Math.imul(h,K)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))<<13)|0;c=((a=a+Math.imul(h,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((a=a+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,V))+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,q)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,a=a+Math.imul(m,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))<<13)|0;c=((a=a+Math.imul(h,ot)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,V))+Math.imul(O,U)|0,a=Math.imul(O,V),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))<<13)|0;c=((a=a+Math.imul(h,ct)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(m,lt)|0,a=a+Math.imul(m,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((a=a+Math.imul(h,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,q)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,a=a+Math.imul(m,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((a=a+Math.imul(h,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,G))+Math.imul(N,q)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,K)|0,n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Mt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((a=a+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((a=a+Math.imul(y,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(O,rt)|0,a=a+Math.imul(O,nt)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ot)|0)+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((a=a+Math.imul(_,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(C,lt)|0,a=a+Math.imul(C,ct)|0,n=n+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((a=a+Math.imul(k,mt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(O,lt)|0,a=a+Math.imul(O,ct)|0,n=n+Math.imul(L,ft)|0,i=(i=i+Math.imul(L,ht)|0)+Math.imul(C,ft)|0,a=a+Math.imul(C,ht)|0;var Ct=(c+(n=n+Math.imul(M,dt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,dt)|0))<<13)|0;c=((a=a+Math.imul(S,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,ht)|0;var Pt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&(i=(i=i+Math.imul(L,mt)|0)+Math.imul(C,dt)|0))<<13)|0;c=((a=a+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var It=(c+(n=n+Math.imul(I,dt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(O,dt)|0))<<13)|0;c=((a=a+Math.imul(O,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var Ot=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(R,dt)|0))<<13)|0;c=((a=a+Math.imul(R,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var zt=(c+(n=Math.imul(B,dt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(N,dt)|0))<<13)|0;return c=((a=Math.imul(N,mt))+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863,l[0]=gt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=At,l[10]=Mt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=Pt,l[16]=It,l[17]=Ot,l[18]=zt,0!==c&&(l[19]=c,r.length++),r};function m(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(d=p),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):r<63?p(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new T(t)},a.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(x,y),x.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=a}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new b;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return v[t]=e,e},T.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},T.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var c=e.words[n],u=l-1;u>=0;u--){var f=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new k(t)},i(k,T),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:2}],34:[function(t,e,r){"use strict";e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e>>1;if(!(u<=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))>0){if(1===u&&n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),m=i.mallocInt32(c);(c=l(e,u,d,m))>0&&(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,m):o(u,r,n,s,h,p,c,d,m),i.free(d),i.free(m))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{"./lib/intersect":37,"./lib/sweep":41,"typedarray-pool":308}],36:[function(t,e,r){"use strict";function n(t){return t?function(t,e,r,n,i,a,o,s,l,c,u){return i-n>l-s?function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=n,p=f*n;hc-l?n?function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=n,p=f*n;h0;){var L=6*(S-=1),C=v[L],P=v[L+1],I=v[L+2],O=v[L+3],z=v[L+4],D=v[L+5],R=2*S,F=y[R],B=y[R+1],N=1&D,j=!!(16&D),U=u,V=w,H=k,q=A;if(N&&(U=k,V=A,H=u,q=w),!(2&D&&(I=p(t,C,P,I,U,V,B),P>=I)||4&D&&(P=d(t,C,P,I,U,V,F))>=I)){var G=I-P,Y=z-O;if(j){if(t*G*(G+Y)<1<<22){if(void 0!==(M=l.scanComplete(t,C,e,P,I,U,V,O,z,H,q)))return M;continue}}else{if(t*Math.min(G,Y)<128){if(void 0!==(M=o(t,C,e,N,P,I,U,V,O,z,H,q)))return M;continue}if(t*G*Y<1<<22){if(void 0!==(M=l.scanBipartite(t,C,e,N,P,I,U,V,O,z,H,q)))return M;continue}}var W=f(t,C,P,I,U,V,F,B);if(P=p0)&&!(p1>=hi)"),h=u("lo===p0"),p=u("lo>>1,f=2*t,h=u,p=o[f*u+e];for(;l=y?(h=v,p=y):g>=b?(h=m,p=g):(h=x,p=b):y>=b?(h=v,p=y):b>=g?(h=m,p=g):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;Tr&&i[f+e]>c;--u,f-=o){for(var h=f,p=f+o,d=0;dh;++h,l+=s){if(i[l+f]===o)if(u===h)u+=1,c+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},"loh;++h,l+=s){if(i[l+f]p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},"lo<=p0":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,h=r;n>h;++h,l+=s){if(i[l+f]<=o)if(u===h)u+=1,c+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},"hi<=p0":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,h=r;n>h;++h,l+=s){if(i[l+f]<=o)if(u===h)u+=1,c+=s;else{for(var p=0;s>p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},"lop;++p,l+=s){var d=i[l+f],m=i[l+h];if(dg;++g){var v=i[l+g];i[l+g]=i[c],i[c++]=v}var y=a[p];a[p]=a[u],a[u++]=y}}return u},"lo<=p0&&p0<=hi":function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,h=t+e,p=r;n>p;++p,l+=s){var d=i[l+f],m=i[l+h];if(d<=o&&o<=m)if(u===p)u+=1,c+=s;else{for(var g=0;s>g;++g){var v=i[l+g];i[l+g]=i[c],i[c++]=v}var y=a[p];a[p]=a[u],a[u++]=y}}return u},"!(lo>=p0)&&!(p1>=hi)":function(t,e,r,n,i,a,o,s){for(var l=2*t,c=l*r,u=c,f=r,h=e,p=t+e,d=r;n>d;++d,c+=l){var m=i[c+h],g=i[c+p];if(!(m>=o||s>=g))if(f===d)f+=1,u+=l;else{for(var v=0;l>v;++v){var y=i[c+v];i[c+v]=i[u],i[u++]=y}var x=a[d];a[d]=a[f],a[f++]=x}}return f}}},{}],40:[function(t,e,r){"use strict";e.exports=function(t,e){e<=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r>>1,m=d-f,g=d+f,v=h,y=m,x=d,b=g,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&&(k=v,v=y,y=k);l(b,_,u)&&(k=b,b=_,_=k);l(v,x,u)&&(k=v,v=x,x=k);l(y,x,u)&&(k=y,y=x,x=k);l(v,b,u)&&(k=v,v=b,b=k);l(x,b,u)&&(k=x,x=b,b=k);l(y,_,u)&&(k=y,y=_,_=k);l(y,x,u)&&(k=y,y=x,x=k);l(b,_,u)&&(k=b,b=_,_=k);for(var A=u[2*y],M=u[2*y+1],S=u[2*b],E=u[2*b+1],L=2*v,C=2*x,P=2*_,I=2*h,O=2*d,z=2*p,D=0;D<2;++D){var R=u[L+D],F=u[C+D],B=u[P+D];u[I+D]=R,u[O+D]=F,u[z+D]=B}a(m,e,u),a(g,r,u);for(var N=w;N<=T;++N)if(c(N,A,M,u))N!==w&&i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,A,M,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--Tt;){var c=r[l-2],u=r[l-1];if(cr[e+1])}function c(t,e,r,n){var i=n[t*=2];return i>>1;a(h,M);var S=0,E=0;for(w=0;w=1<<28)p(l,c,E--,L=L-(1<<28)|0);else if(L>=0)p(o,s,S--,L);else if(L<=-(1<<28)){L=-L-(1<<28)|0;for(var C=0;C>>1;a(h,E);var L=0,C=0,P=0;for(k=0;k>1==h[2*k+3]>>1&&(O=2,k+=1),I<0){for(var z=-(I>>1)-1,D=0;D>1)-1;0===O?p(o,s,L--,z):1===O?p(l,c,C--,z):2===O&&p(u,f,P--,z)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,m,g,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1<<28:w=1<<28;for(var k=i;k>>1;a(h,E);var L=0;for(k=0;k=1<<28?(P=!n,A-=1<<28):(P=!!n,A-=1),P)d(o,s,L++,A);else{var I=v[A],O=x*A,z=g[O+e+1],D=g[O+e+1+t];t:for(var R=0;R>>1;a(h,w);var T=0;for(y=0;y=1<<28)o[T++]=x-(1<<28);else{var A=p[x-=1],M=m*x,S=f[M+e+1],E=f[M+e+1+t];t:for(var L=0;L=0;--L)if(o[L]===x){for(O=L+1;O0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{"binary-search-bounds":31,"robust-in-sphere":282}],44:[function(t,e,r){"use strict";var n,i=t("binary-search-bounds");function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i0||l.length>0;){for(;s.length>0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d<3;++d){var m=h[3*p+d];m>=0&&0===c[m]&&(f[3*p+d]?l.push(m):(s.push(m),c[m]=i))}}}var g=l;l=s,s=g,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i1&&i(r[h[p-2]],r[h[p-1]],a)>0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p>1&&i(r[d[p-2]],r[d[p-1]],a)<0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]d[0]&&i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var m=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),g=[new a([m,1],[m,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;ne[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])<0){var k=b;b=_,_=k}x[0]=b;var A,M=x[1]=S[1];for(i&&(A=x[2]);a>0&&n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([M,E,A]):e.push([M,E]),M=E}i?e.push([M,_,A]):e.push([M,_])}return h}(t,e,h,g,r));return v(e,y,r),!!y||(h.length>0||g.length>0)}},{"./lib/rat-seg-intersect":51,"big-rat":18,"big-rat/cmp":16,"big-rat/to-float":30,"box-intersect":35,nextafter:260,"rat-vec":273,"robust-segment-intersect":287,"union-find":309}],51:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),m=i(d,h),g=c(a,m);return l(t,g)};var n=t("big-rat/mul"),i=t("big-rat/div"),a=t("big-rat/sub"),o=t("big-rat/sign"),s=t("rat-vec/sub"),l=t("rat-vec/add"),c=t("rat-vec/muls");function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{"big-rat/div":17,"big-rat/mul":27,"big-rat/sign":28,"big-rat/sub":29,"rat-vec/add":272,"rat-vec/muls":274,"rat-vec/sub":275}],52:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],53:[function(t,e,r){"use strict";var n=t("./colorScale"),i=t("lerp");function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r="#",n=0;n<3;++n)r+=("00"+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return"rgba("+t.join(",")+")"}e.exports=function(t){var e,r,l,c,u,f,h,p,d,m;t||(t={});p=(t.nshades||72)-1,h=t.format||"hex",(f=t.colormap)||(f="jet");if("string"==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+" not a supported colorscale");u=n[f]}else{if(!Array.isArray(f))throw Error("unsupported colormap option",f);u=f.slice()}if(u.length>p+1)throw new Error(f+" map requires nshades to be at least size "+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():"number"==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(m=0;m0||l(t,e,a)?-1:1:0===s?c>0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h>0?o>0&&n(t,e,a)>0?1:-1:h<0?o>0||n(t,e,a)>0?1:-1:n(t,e,a)>0||l(t,e,r)?1:-1};var n=t("robust-orientation"),i=t("signum"),a=t("two-sum"),o=t("robust-product"),s=t("robust-sum");function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]>=0}},{"robust-orientation":284,"robust-product":285,"robust-sum":289,signum:55,"two-sum":307}],55:[function(t,e,r){"use strict";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],56:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],m=e[1],g=e[2],v=e[3];return u+f+h+p-(d+m+g+v)||n(u,f,h,p)-n(d,m,g,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+m,d+g,d+v,m+g,m+v,g+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+m+g,d+m+v,d+g+v,m+g+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;bt[r][0]&&(r=n);return er?[[r],[e]]:[[e]]}},{}],60:[function(t,e,r){"use strict";e.exports=function(t){var e=n(t),r=e.length;if(r<=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o=e[l]&&(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t("incremental-convex-hull"),i=t("affine-hull")},{"affine-hull":10,"incremental-convex-hull":233}],62:[function(t,e,r){"use strict";e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p>=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u>=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],63:[function(t,e,r){"use strict";var n=t("incremental-convex-hull"),i=t("uniq");function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e<=s;++e){var r=v[t[e]];if(r<0)return!1;t[e]=r}return!0}));if(1&s)for(u=0;u<_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{"incremental-convex-hull":233,uniq:310}],64:[function(t,e,r){(function(t){(function(){var r=!1;if("undefined"!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:3}],65:[function(t,e,r){"use strict";e.exports=function(t,e){switch(void 0===e&&(e=0),typeof t){case"number":if(t>0)return function(t,e){var r,n;for(r=new Array(t),n=0;n=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p=r-1)for(var u=s.length-1,f=(e[r-1],0);f=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t1e-6?1/s:0;this._time.push(t);for(var h=r;h>0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u>1e-6?1/u:0;this._time.push(t);for(var h=r;h>0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{"binary-search-bounds":31,"cubic-hermite":62}],69:[function(t,e,r){"use strict";e.exports=function(t){return new s(t||m,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&&(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)<=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o<=0){if(i.left&&(a=f(t,e,r,n,i.left)))return a;if(s>0&&(a=n(i.key,i.value)))return a}if(s>0&&i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,"keys",{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,"values",{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,"length",{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u<=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f>=0;--f){i=l[f];c[f]<=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f>1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f>=3)(m=l[f-3]).left===p?m.left=h:m.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f>=3)(m=l[f-3]).left===p?m.left=i:m.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f>=3)(m=l[f-3]).right===p?m.right=h:m.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var m;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f>=3)(m=l[f-3]).right===p?m.right=i:m.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t<0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i<=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function m(t,e){return te?1:0}Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l>=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&&r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l>=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&&(f.right=null),e.pop();for(l=0;l=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&&0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l>1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&&0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l>1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l>1&&((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+11)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&&0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l>1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l>1&&((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error("Can't update empty node!");var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a>=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],70:[function(t,e,r){"use strict";e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t("./lib/text.js"),i=t("./lib/lines.js"),a=t("./lib/background.js"),o=t("./lib/cube.js"),s=t("./lib/ticks.js"),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if("bounds"in t)for(var h=t.bounds,p=0;p<2;++p)for(var d=0;d<3;++d)h[p][d]!==this.bounds[p][d]&&(f=!0),this.bounds[p][d]=h[p][d];if("ticks"in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p<3;++p)this.tickSpacing[p]=0}else a("tickSpacing")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&("ticks"in t||"tickSpacing"in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p<3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o("tickEnable"),l("tickFont")&&(u=!0),a("tickSize"),a("tickAngle"),a("tickPad"),c("tickColor");var m=l("labels");l("labelFont")&&(m=!0),o("labelEnable"),a("labelSize"),a("labelPad"),c("labelColor"),o("lineEnable"),o("lineMirror"),a("lineWidth"),c("lineColor"),o("lineTickEnable"),o("lineTickMirror"),a("lineTickLength"),a("lineTickWidth"),c("lineTickColor"),o("gridEnable"),a("gridWidth"),c("gridColor"),o("zeroEnable"),c("zeroLineColor"),a("zeroLineWidth"),o("backgroundEnable"),c("backgroundColor"),this._text?this._text&&(m||u)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u<3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&1<0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var m=[0,0,0],g={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||g;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,A=0;A<3;++A)this.lastCubeProps.cubeEdges[A]=f[A],this.lastCubeProps.axis[A]=h[A];var M=p;for(A=0;A<3;++A)d(p[A],A,this.bounds,f,h);e=this.gl;var S,E=m;for(A=0;A<3;++A)this.backgroundEnable[A]?E[A]=h[A]:E[A]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(A=0;A<3;++A){var L=[0,0,0];h[A]>0?L[A]=a[1][A]:L[A]=a[0][A];for(var C=0;C<2;++C){var P=(A+1+C)%3,I=(A+1+(1^C))%3;this.gridEnable[P]&&this._lines.drawGrid(P,I,this.bounds,L,this.gridColor[P],this.gridWidth[P]*this.pixelRatio)}for(C=0;C<2;++C){P=(A+1+C)%3,I=(A+1+(1^C))%3;this.zeroEnable[I]&&Math.min(a[0][I],a[1][I])<=0&&Math.max(a[0][I],a[1][I])>=0&&this._lines.drawZero(P,I,this.bounds,L,this.zeroLineColor[I],this.zeroLineWidth[I]*this.pixelRatio)}}for(A=0;A<3;++A){this.lineEnable[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var O=c(v,M[A].primalMinor),z=c(y,M[A].mirrorMinor),D=this.lineTickLength;for(C=0;C<3;++C){var R=k/r[5*C];O[C]*=D[C]*R,z[C]*=D[C]*R}this.lineTickEnable[A]&&this._lines.drawAxisTicks(A,M[A].primalOffset,O,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&&this._lines.drawAxisTicks(A,M[A].mirrorOffset,z,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a>0&&l>0||a>0&&l<0||a<0&&l>0||a<0&&l<0?N(n):(o>0&&s>0||o>0&&s<0||o<0&&s>0||o<0&&s<0)&&N(i)}for(A=0;A<3;++A){var U=M[A].primalMinor,V=M[A].mirrorMinor,H=c(x,M[A].primalOffset);for(C=0;C<3;++C)this.lineTickEnable[A]&&(H[C]+=k*U[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var q=[0,0,0];if(q[A]=1,this.tickEnable[A]){-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]="auto"):this.tickAlign[A]=-1,F=1,"auto"===(S=[this.tickAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(""+S[0]),B=[0,0,0],j(A,U,V);for(C=0;C<3;++C)H[C]+=k*U[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],H,this.tickColor[A],q,B,S)}if(this.labelEnable[A]){F=0,B=[0,0,0],this.labels[A].length>4&&(N(A),F=1),"auto"===(S=[this.labelAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(""+S[0]);for(C=0;C<3;++C)H[C]+=k*U[C]*this.labelPad[C]/r[5*C];H[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],H,this.labelColor[A],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{"./lib/background.js":71,"./lib/cube.js":72,"./lib/lines.js":73,"./lib/text.js":75,"./lib/ticks.js":76}],71:[function(t,e,r){"use strict";e.exports=function(t){for(var e=[],r=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p<=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d<=1;d+=2){f[c]=d;for(var m=-1;m<=1;m+=2)f[u]=m,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var g=c;c=u,u=g}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t("gl-buffer"),i=t("gl-vao"),a=t("./shaders").bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{"./shaders":74,"gl-buffer":78,"gl-vao":150}],72:[function(t,e,r){"use strict";e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x<2;++x){u[2]=a[x][2];for(var b=0;b<2;++b){u[1]=a[b][1];for(var _=0;_<2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x<8;++x){for(var T=l[x][3],k=0;k<3;++k)c[x][k]=l[x][k]/T;p&&(c[x][2]*=-1),T<0&&(w<0||c[x][2]E&&(w|=1<E&&(w|=1<c[x][1])&&(R=x);var F=-1;for(x=0;x<3;++x){if((N=R^1<c[B][0]&&(B=N)}var j=m;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&F,j[n.log2(R^B)]=R&B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&B):j[n.log2(F^U)]=U&F;var V=g,H=w;for(A=0;A<3;++A)V[A]=H&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);r.text=function(t){return i(t,s,l,null,[{name:"position",type:"vec3"}])};var c=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}"]),u=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);r.bg=function(t){return i(t,c,u,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},{"gl-shader":132,glslify:231}],75:[function(t,e,r){(function(r){(function(){"use strict";e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t("gl-buffer"),i=t("gl-vao"),a=t("vectorize-text"),o=t("./shaders").text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:"'+t+'" error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:"center",textBaseline:"middle",lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,m=p.length;d=0;--v){var y=h[g[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d<3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var m=0;m=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+"";if(s.indexOf("e")>=0)return s;var l=o/a,c=o%a;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=""+l;if(o<0&&(u="-"+u),i){for(var f=""+c;f.length=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;nr)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e<0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,"uint16"):u(t,"float32"),this.length=c(this.gl,this.type,this.length,this.usage,e<0?f:f.subarray(0,t.length),e),n.free(f)}else if("object"==typeof t&&"number"==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if("number"!=typeof t&&void 0!==t)throw new Error("gl-buffer: Invalid data type");if(e>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(t|=0)<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(n!==t.DYNAMIC_DRAW&&n!==t.STATIC_DRAW&&n!==t.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:259,"ndarray-ops":254,"typedarray-pool":308}],79:[function(t,e,r){"use strict";var n=t("gl-vec3");e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&&(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,m=[],g=1/0,v=!1,y=0;yo&&(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(g=Math.min(g,_),v=!1):v=!0}v||(p=x,d=b),m.push(b)}var w=[s,c,f],T=[l,u,h];e&&(e[0]=w,e[1]=T),0===o&&(o=1);var k=1/o;isFinite(g)||(g=1),a.vectorScale=g;var A=t.coneSize||.5;t.absoluteConeSize&&(A=t.absoluteConeSize*k),a.coneScale=A;y=0;for(var M=0;y=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,"lightPosition"in t&&(this.lightPosition=t.lightPosition),"opacity"in t&&(this.opacity=t.opacity),"ambient"in t&&(this.ambientLight=t.ambient),"diffuse"in t&&(this.diffuseLight=t.diffuse),"specular"in t&&(this.specularLight=t.specular),"roughness"in t&&(this.roughness=t.roughness),"fresnel"in t&&(this.fresnel=t.fresnel),void 0!==t.tubeScale&&(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&&(this.vectorScale=t.vectorScale),void 0!==t.coneScale&&(this.coneScale=t.coneScale),void 0!==t.coneOffset&&(this.coneOffset=t.coneOffset),t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:"rgba"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,m=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],m=+t.vertexIntensityBounds[1];else for(var g=0;g0){var m=this.triShader;m.bind(),m.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return"cone"===this.traceType?i.index=Math.floor(r[1]/48):"streamtube"===this.traceType&&(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&&(t=(e=t).gl);var s=d(t,n),l=m(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),g=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,g,v,x,r.traceType||"cone");return b.update(e),b}},{colormap:53,"gl-buffer":78,"gl-mat4/invert":98,"gl-mat4/multiply":100,"gl-shader":132,"gl-texture2d":146,"gl-vao":150,ndarray:259}],81:[function(t,e,r){var n=t("glslify"),i=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * view * conePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},{glslify:231}],82:[function(t,e,r){e.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},{}],83:[function(t,e,r){var n=t("./1.0/numbers");e.exports=function(t){return n[t]}},{"./1.0/numbers":82}],84:[function(t,e,r){"use strict";e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t("gl-buffer"),i=t("gl-vao"),a=t("./shaders/index"),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f<3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&&e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a0)(m=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,m[0],m[1],m[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,m),o+=2+f(i,m,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{"./shaders/index":85,"gl-buffer":78,"gl-vao":150}],85:[function(t,e,r){"use strict";var n=t("glslify"),i=t("gl-shader"),a=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * view * worldPosition;\n fragColor = color;\n fragPosition = position;\n}"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);e.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},{"gl-shader":132,glslify:231}],86:[function(t,e,r){"use strict";var n=t("gl-texture2d");e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension("WEBGL_draw_buffers");!l&&c&&function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;au||r<0||r>u)throw new Error("gl-fbo: Parameters are too large for FBO");var f=1;if("color"in(n=n||{})){if((f=Math.max(0|n.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(f>1){if(!c)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(f>t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+f+" draw buffers")}}var h=t.UNSIGNED_BYTE,p=t.getExtension("OES_texture_float");if(n.float&&f>0){if(!p)throw new Error("gl-fbo: Context does not support floating point textures");h=t.FLOAT}else n.preferFloat&&f>0&&p&&(h=t.FLOAT);var m=!0;"depth"in n&&(m=!!n.depth);var g=!1;"stencil"in n&&(g=!!n.stencil);return new d(t,e,r,h,f,m,g,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error("gl-fbo: Framebuffer unsupported");case a:throw new Error("gl-fbo: Framebuffer incomplete attachment");case o:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case s:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d1&&s.drawBuffersWEBGL(l[o]);var y=r.getExtension("WEBGL_depth_texture");y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m&&(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):m&&d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;vi||r<0||r>i)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o>8*p&255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var m=i.attributes;return this.positionBuffer.bind(),m.position.pointer(),this.weightBuffer.bind(),m.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),m.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],m=t.colorValues||[0,0,0,1],g=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length>>>1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),A=a.mallocUint8(2*w),M=a.mallocUint32(w),S=0,E=l?b-1:b,L=l?_-1:_,C=0;C max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{"gl-shader":132,glslify:231}],91:[function(t,e,r){"use strict";e.exports=function(t){var e=t.gl||t.scene&&t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p<1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var m=new v(e,r,o,s,l,d);return m.update(t),m};var n=t("gl-buffer"),i=t("gl-vao"),a=t("gl-texture2d"),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t("binary-search-bounds"),c=t("ndarray"),u=t("./lib/shaders"),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function m(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function g(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;"dashScale"in t&&(this.dashScale=t.dashScale),this.hasAlpha=!1,"opacity"in t&&(this.opacity=+t.opacity,this.opacity<1&&(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],m=t.lineWidth||1,g=!1;t:for(e=1;e0){for(var w=0;w<24;++w)i.push(i[i.length-12]);u+=2,g=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length>e-1?p[e-1]:p.length>0?p[p.length-1]:[0,0,0,1],y=p.length>e?p[e]:p.length>0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&&(v=[v[0],v[1],v[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),!this.hasAlpha&&v[3]<1&&(this.hasAlpha=!0),x=Array.isArray(m)?m.length>e-1?m[e-1]:m.length>0?m[m.length-1]:[0,0,0,1]:m;var T=s;if(s+=d(b,_),g){for(r=0;r<2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,g=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,"dashes"in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e1.0001)return null;v+=g[f]}if(Math.abs(v-1)>.001)return null;return[h,s(t,g),g]}},{barycentric:14,"polytope-closest-point/lib/closest_point_2d.js":270}],111:[function(t,e,r){var n=t("glslify"),i=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),c=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),u=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_id = id;\n f_position = position;\n}"]),f=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),h=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),p=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n}"]),d=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:"position",type:"vec3"}]}},{glslify:231}],112:[function(t,e,r){"use strict";var n=t("gl-shader"),i=t("gl-buffer"),a=t("gl-vao"),o=t("gl-texture2d"),s=t("normals"),l=t("gl-mat4/multiply"),c=t("gl-mat4/invert"),u=t("ndarray"),f=t("colormap"),h=t("simplicial-complex-contour"),p=t("typedarray-pool"),d=t("./lib/shaders"),m=t("./lib/closest-point"),g=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,T,k,A,M,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=g,this.edgeUVs=v,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=M,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function A(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function M(t){var e=n(t,g.vertex,g.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function L(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function C(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function P(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;ai[k]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=g[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t]&&T&&(u[1^t]-=M*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=M*s[2+(1^t)]-1,d[t+2]&&(u[1^t]+=M*p*m[t+2],ki[k]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=g[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t+2]&&T&&(u[1^t]+=M*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),m.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),m.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o<2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],m=a[o+2]-f,g=i[o],v=i[o+2]-g;p[o]=2*l/u*m/v,h[o]=2*(s-c)/u*m/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),m.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o<2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e=0){var m=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(m,e[1],m,e[3],p[d],h[d]):o.drawLine(e[0],m,e[2],m,p[d],h[d])}}for(d=0;d=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;rMath.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t("right-now"),i=t("3d-view"),a=t("mouse-change"),o=t("mouse-wheel"),s=t("mouse-event-offset"),l=t("has-passive-events")},{"3d-view":7,"has-passive-events":232,"mouse-change":247,"mouse-event-offset":248,"mouse-wheel":250,"right-now":278}],120:[function(t,e,r){var n=t("glslify"),i=t("gl-shader"),a=n(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),o=n(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);e.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec2"}])}},{"gl-shader":132,glslify:231}],121:[function(t,e,r){"use strict";var n=t("./camera.js"),i=t("gl-axes3d"),a=t("gl-axes3d/properties"),o=t("gl-spikes3d"),s=t("gl-select-static"),l=t("gl-fbo"),c=t("a-big-triangle"),u=t("mouse-change"),f=t("gl-mat4/perspective"),h=t("gl-mat4/ortho"),p=t("./lib/shader"),d=t("is-mobile")({tablet:!0,featureDetect:!0});function m(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e>0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return"boolean"!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement("canvas"),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&&(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext("webgl",e))||(r=t.getContext("experimental-webgl",e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error("webgl not supported");var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new m,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&&!0===t.cameraObject._ortho||t.camera.projection&&"orthographic"===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||"turntable",_ortho:w},k=t.axes||{},A=i(r,k);A.enable=!k.disable;var M=t.spikes||{},S=o(r,M),E=[],L=[],C=[],P=[],I=!0,O=!0,z=new Array(16),D=new Array(16),R={view:null,projection:z,model:D,_ortho:!1},F=(O=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:A,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,O=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&&N.autoResize){var t=e.parentNode,r=1,n=1;t&&t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||"absolute",o.left="0px",o.top="0px",o.width=r+"px",o.height=n+"px",I=!0}}}N.autoResize&&U();function V(){for(var t=E.length,e=P.length,n=0;n0&&0===C[e-1];)C.pop(),P.pop().dispose()}function H(){if(N.contextLost)return!0;r.isContextLost()&&(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&&N.oncontextloss())}window.addEventListener("resize",U),N.update=function(t){N._stopped||(t=t||{},I=!0,O=!0)},N.add=function(t){N._stopped||(t.axes=A,E.push(t),L.push(-1),I=!0,O=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e<0||(E.splice(e,1),L.pop(),I=!0,O=!0,V())}},N.dispose=function(){if(!N._stopped&&(N._stopped=!0,window.removeEventListener("resize",U),e.removeEventListener("webglcontextlost",H),N.mouseListener.enabled=!1,!N.contextLost)){A.dispose(),S.dispose();for(var t=0;tx.distance)continue;for(var c=0;c 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),r.pickVertex=n(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),r.pickFragment=n(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},{glslify:231}],123:[function(t,e,r){"use strict";var n=t("gl-shader"),i=t("gl-buffer"),a=t("typedarray-pool"),o=t("./lib/shader");function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r("sizeMin",.5),this.sizeMax=r("sizeMax",20),this.color=r("color",[1,0,0,1]).slice(),this.areaRatio=r("areaRatio",1),this.borderColor=r("borderColor",[0,0,0,1]).slice(),this.blend=r("blend",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e>>1;for(r=0;r=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u<5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&&(c[0]=255&t,c[1]=t>>8&255,c[2]=t>>16&255,c[3]=t>>24&255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&&!this.blend&&n.disable(n.BLEND),h&&n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&&!this.blend&&n.enable(n.BLEND),h&&n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{"./lib/shader":122,"gl-buffer":78,"gl-shader":132,"typedarray-pool":308}],124:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],m=r[2],g=r[3];(a=c*p+u*d+f*m+h*g)<0&&(a=-a,p=-p,d=-d,m=-m,g=-g);1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*m,t[3]=s*h+l*g,t}},{}],125:[function(t,e,r){"use strict";e.exports=function(t){return t||0===t?t.toString():""}},{}],126:[function(t,e,r){"use strict";var n=t("vectorize-text");e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:"center",textBaseline:"middle",lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&&1!==r){for(l=0;l max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),o=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * view * model * vec4(position, 1);\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),c=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),u=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},m={vertex:o,fragment:c,attributes:u},g={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,m)},r.createPickProject=function(t){return v(t,g)}},{"gl-shader":132,glslify:231}],128:[function(t,e,r){"use strict";var n=t("is-string-blank"),i=t("gl-buffer"),a=t("gl-vao"),o=t("typedarray-pool"),s=t("gl-mat4/multiply"),l=t("./lib/shaders"),c=t("./lib/glyphs"),u=t("./lib/get-simple-string"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function m(t){return!0===t||t>1?1:t}function g(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),m=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new g(e,r,n,o,f,h,p,d,m,s,c,u);return v.update(t),v};var v=g.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],A=[[0,0,0],[0,0,0]];function M(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function L(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,m=function(t){for(var e=A,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&&e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=m,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var g=0;g<3;++g)if(a[g]){l.scale=e.projectScale[g],l.opacity=e.projectOpacity[g];for(var v=T,L=0;L<16;++L)v[L]=0;for(L=0;L<4;++L)v[5*L]=1;v[5*g]=0,i[g]<0?v[12+g]=d[0][g]:v[12+g]=d[1][g],s(v,c,v),l.model=v;var C=(g+1)%3,P=(g+2)%3,I=M(x),O=M(b);I[C]=1,O[P]=1;var z=p(0,0,0,S(_,I)),D=p(0,0,0,S(w,O));if(Math.abs(z[1])>Math.abs(D[1])){var R=z;z=D,D=R,R=I,I=O,O=R;var F=C;C=P,P=F}z[0]<0&&(I[C]=-1),D[1]>0&&(O[P]=-1);var B=0,N=0;for(L=0;L<4;++L)B+=Math.pow(c[4*C+L],2),N+=Math.pow(c[4*P+L],2);I[C]/=Math.sqrt(B),O[P]/=Math.sqrt(N),l.axes[0]=I,l.axes[1]=O,l.fragClipBounds[0]=E(k,m[0],g,-1e8),l.fragClipBounds[1]=E(k,m[1],g,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth>0&&(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function P(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&&L(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=C,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth>0&&(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function I(t,e,r,i){var a;a=Array.isArray(t)?e=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if("perspective"in(t=t||{})&&(this.useOrtho=!t.perspective),"orthographic"in t&&(this.useOrtho=!!t.orthographic),"lineWidth"in t&&(this.lineWidth=t.lineWidth),"project"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if("projectScale"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,"projectOpacity"in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n<3;++n)this.projectOpacity[n]=m(this.projectOpacity[n]),this.projectOpacity[n]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in t&&(this.opacity=m(t.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||"normal",c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n0){var O=0,z=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&&Array.isArray(p[0]),B=Array.isArray(v)&&Array.isArray(v[0]);t:for(n=0;n<_;++n){y+=1;for(w=s[n],T=0;T<3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n0?1-M[0][0]:Y<0?1+M[1][0]:1,W*=W>0?1-M[0][1]:W<0?1+M[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{"./lib/shaders":129,"gl-buffer":78,"gl-shader":132}],131:[function(t,e,r){"use strict";e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t("gl-fbo"),i=t("typedarray-pool"),a=t("ndarray"),o=t("bit-twiddle").nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;ar)for(t=r;te)for(t=e;t=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A=0;)M+=1;_[y]=M}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t=0){if((d=h.charCodeAt(h.length-1)-48)<2||d>4)throw new n("","Invalid data type for attribute "+f+": "+h);s(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf("mat")>=0))throw new n("","Unknown data type for attribute "+f+": "+h);var d;if((d=h.charCodeAt(h.length-1)-48)<2||d>4)throw new n("","Invalid data type for attribute "+f+": "+h);l(t,e,p,i,d,a,f)}}}return a};var n=t("./GLError");function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,"location",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}});var o=[function(t,e,r){return void 0===r.length?t.vertexAttrib1f(e,r):t.vertexAttrib1fv(e,r)},function(t,e,r,n){return void 0===r.length?t.vertexAttrib2f(e,r,n):t.vertexAttrib2fv(e,r)},function(t,e,r,n,i){return void 0===r.length?t.vertexAttrib3f(e,r,n,i):t.vertexAttrib3fv(e,r)},function(t,e,r,n,i,a){return void 0===r.length?t.vertexAttrib4f(e,r,n,i,a):t.vertexAttrib4fv(e,r)}];function s(t,e,r,n,a,s,l){var c=o[a],u=new i(t,e,r,n,a,c);Object.defineProperty(s,l,{set:function(e){return t.disableVertexAttribArray(n[r]),c(t,n[r],e),e},get:function(){return u},enumerable:!0})}function l(t,e,r,n,i,a,o){for(var l=new Array(i),c=new Array(i),u=0;u4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+v);t["uniformMatrix"+g+"fv"](s[u],!1,f);break}throw new i("","Unknown uniform data type for "+name+": "+v)}if((g=v.charCodeAt(v.length-1)-48)<2||g>4)throw new i("","Invalid data type");switch(v.charAt(0)){case"b":case"i":t["uniform"+g+"iv"](s[u],f);break;case"v":t["uniform"+g+"fv"](s[u],f);break;default:throw new i("","Unrecognized data type for vector "+name+": "+v)}}}}}}function c(t,e,n){if("object"==typeof n){var c=u(n);Object.defineProperty(t,e,{get:a(c),set:l(n),enumerable:!0,configurable:!1})}else s[n]?Object.defineProperty(t,e,{get:(f=n,function(t,e,r){return t.getUniform(e.program,r[f])}),set:l(n),enumerable:!0,configurable:!1}):t[e]=function(t){switch(t){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":case"float":return 0;default:var e=t.indexOf("vec");if(0<=e&&e<=1&&t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid data type");return"b"===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf("mat")&&4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+t);return o(r*r,0)}throw new i("","Unknown uniform data type for "+name+": "+t)}}(r[n].type);var f}function u(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l1)for(var l=0;l 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * view * tubePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},{glslify:231}],143:[function(t,e,r){"use strict";var n=t("gl-vec3"),i=t("gl-vec4"),a=["xyz","xzy","yxz","yzx","zxy","zyx"],o=function(t,e,r,a){for(var o=0,s=0;s0)for(T=0;T<8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(m,g,g,g,m,m);var A=c.length;u.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=h;h=p,p=M;var S=y;y=v,v=S;var E=m;m=g,g=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;se)return r-1}return r},l=function(t,e,r){return tr?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;nf-1||y>h-1||x>p-1)return n.create();var b,_,w,T,k,A,M=a[0][d],S=a[0][v],E=a[1][m],L=a[1][y],C=a[2][g],P=(o-M)/(S-M),I=(c-E)/(L-E),O=(u-C)/(a[2][x]-C);switch(isFinite(P)||(P=.5),isFinite(I)||(I=.5),isFinite(O)||(O=.5),r.reversedX&&(d=f-1-d,v=f-1-v),r.reversedY&&(m=h-1-m,y=h-1-y),r.reversedZ&&(g=p-1-g,x=p-1-x),r.filled){case 5:k=g,A=x,w=m*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=g,A=x,b=d*p,_=v*p,w=m*p*f,T=y*p*f;break;case 3:w=m,T=y,k=g*h,A=x*h,b=d*h*p,_=v*h*p;break;case 2:w=m,T=y,b=d*h,_=v*h,k=g*h*f,A=x*h*f;break;case 1:b=d,_=v,k=g*f,A=x*f,w=m*f*p,T=y*f*p;break;default:b=d,_=v,w=m*f,T=y*f,k=g*f*h,A=x*f*h}var z=i[b+w+k],D=i[b+w+A],R=i[b+T+k],F=i[b+T+A],B=i[_+w+k],N=i[_+w+A],j=i[_+T+k],U=i[_+T+A],V=n.create(),H=n.create(),q=n.create(),G=n.create();n.lerp(V,z,B,P),n.lerp(H,D,N,P),n.lerp(q,R,j,P),n.lerp(G,F,U,P);var Y=n.create(),W=n.create();n.lerp(Y,V,q,I),n.lerp(W,H,G,I);var X=n.create();return n.lerp(X,Y,W,O),X}(e,t,p)},m=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},g=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(eb||r_||nw)},k=10*n.distance(e[0],e[1])/i,A=k*k,M=1,S=0,E=r.length;E>1&&(M=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;lS&&(S=F),D.push(F),g.push({points:P,velocities:I,divergences:D});for(var B=0;B<100*i&&P.lengthA&&n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,C),O=d(N),n.squaredDistance(z,N)-A>-1e-4*A){P.push(N),z=N,I.push(O);R=m(N,O),F=n.length(R);isFinite(F)&&F>S&&(S=F),D.push(F)}C=N}}var U=o(g,t.colormap,S,M);return f?U.tubeScale=f:(0===S&&(S=1),U.tubeScale=.5*u*M/S),U};var u=t("./lib/shaders"),f=t("gl-cone3d").createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:"streamtube"})}},{"./lib/shaders":142,"gl-cone3d":79,"gl-vec3":169,"gl-vec4":205}],144:[function(t,e,r){var n=t("gl-shader"),i=t("glslify"),a=i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n vec4 clipPosition = projection * view * worldPosition;\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]),o=i(["precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color \u2014 in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n vec4 clipPosition = projection * view * worldPosition;\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);r.createShader=function(t){var e=n(t,a,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{"gl-shader":132,glslify:231}],145:[function(t,e,r){"use strict";e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),m=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);m.minFilter=e.LINEAR,m.magFilter=e.LINEAR;var g=new M(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,m,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||"jet",g.update(v),g};var n=t("bit-twiddle"),i=t("gl-buffer"),a=t("gl-vao"),o=t("gl-texture2d"),s=t("typedarray-pool"),l=t("colormap"),c=t("ndarray-ops"),u=t("ndarray-pack"),f=t("ndarray"),h=t("surface-nets"),p=t("gl-mat4/multiply"),d=t("gl-mat4/invert"),m=t("binary-search-bounds"),g=t("ndarray-gradient"),v=t("./lib/shaders"),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function A(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t<3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function M(t,e,r,n,i,a,o,l,c,u,h,p,d,m,g){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=g,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new A([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=m,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=M.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:"rgba"}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i<1&&(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],L={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function C(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=L.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],p(l,t.model,l);var c=L.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return L.showSurface=o,L.showContour=s,L}var P={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},I=w.slice(),O=[1,0,0,0,1,0,0,0,1];function z(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=P;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=O,n.vertexColor=this.vertexColor;var s=I;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var c=s[12+i];for(o=0;o<3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=C(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i<3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var f=u?a:1-a,h=0;h<2;++h)for(var p=i+u,d=s+h,g=f*(h?l:1-l),v=0;v<3;++v)c[v]+=this._field[v].get(p,d)*g;for(var y=this._pickResult.level,x=0;x<3;++x)if(y[x]=m.le(this.contourLevels[x],c[x]),y[x]<0)this.contourLevels[x].length>0&&(y[x]=0);else if(y[x]Math.abs(_-c[x])&&(y[x]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v<3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in t&&(this.contourWidth=R(t.contourWidth,Number)),"showContour"in t&&(this.showContour=R(t.showContour,Boolean)),"showSurface"in t&&(this.showSurface=!!t.showSurface),"contourTint"in t&&(this.contourTint=R(t.contourTint,Boolean)),"contourColor"in t&&(this.contourColor=B(t.contourColor)),"contourProject"in t&&(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),"surfaceProject"in t&&(this.surfaceProject=t.surfaceProject),"dynamicColor"in t&&(this.dynamicColor=B(t.dynamicColor)),"dynamicTint"in t&&(this.dynamicTint=R(t.dynamicTint,Number)),"dynamicWidth"in t&&(this.dynamicWidth=R(t.dynamicWidth,Number)),"opacity"in t&&(this.opacity=t.opacity),"opacityscale"in t&&(this.opacityscale=t.opacityscale),"colorBounds"in t&&(this.colorBounds=t.colorBounds),"vertexColor"in t&&(this.vertexColor=t.vertexColor?1:0),"colormap"in t&&this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in t||"coords"in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(o=0;o<2;++o){var c=l[o];for(v=0;v<2;++v)if(c.shape[v]!==a[v])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error("gl-surface: invalid ticks");for(o=0;o<2;++o){var p=u[o];if((Array.isArray(p)||p.length)&&(p=f(p)),p.shape[0]!==a[o])throw new Error("gl-surface: invalid tick length");var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o<2;++o){var m=[0,0];m[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],m,0)}this._field[0].set(0,0,0);for(var v=0;v0){for(var xt=0;xt<5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;oi||r<0||r>i)throw new Error("gl-texture2d: Invalid texture size");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function m(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function g(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error("gl-texture2d: Invalid texture shape");if(i===t.FLOAT&&!t.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=m(o,e.stride.slice()),c=0;"float32"===r?c=t.FLOAT:"float64"===r?(c=t.FLOAT,l=!1,r="float32"):"uint8"===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r="uint8");var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");d=t.RGBA}}c!==t.FLOAT||t.getExtension("OES_texture_float")||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&&e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);"float32"!==r&&"float64"!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=g(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension("EXT_texture_filter_anisotropic");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var e=0;e<2;++e)if(l.indexOf(t[e])<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error("gl-texture2d: Invalid texture shape")}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&&t.stride&&t.data))throw new Error("gl-texture2d: Unsupported data type");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>o||r+t.shape[0]>this._shape[0]>>>o||e<0||r<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length<2||p.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var d=0,g=0,v=m(p,u.stride.slice());"float32"===h?d=t.FLOAT:"float64"===h?(d=t.FLOAT,v=!1,h="float32"):"uint8"===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h="uint8");if(2===p.length)g=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===p[2])g=t.ALPHA;else if(2===p[2])g=t.LUMINANCE_ALPHA;else if(3===p[2])g=t.RGB;else{if(4!==p[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");g=t.RGBA}p[2]}g!==t.LUMINANCE&&g!==t.ALPHA||s!==t.LUMINANCE&&s!==t.ALPHA||(g=s);if(g!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=u.size,x=c.indexOf(o)<0;x&&c.push(o);if(d===l&&v)0===u.offset&&u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&&l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:259,"ndarray-ops":254,"typedarray-pool":308}],147:[function(t,e,r){"use strict";e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i1?0:Math.acos(s)};var n=t("./fromValues"),i=t("./normalize"),a=t("./dot")},{"./dot":162,"./fromValues":168,"./normalize":179}],153:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],154:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],155:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],156:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],157:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],158:[function(t,e,r){e.exports=t("./distance")},{"./distance":159}],159:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],160:[function(t,e,r){e.exports=t("./divide")},{"./divide":161}],161:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],162:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],163:[function(t,e,r){e.exports=1e-6},{}],164:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t("./epsilon")},{"./epsilon":163}],165:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},{}],166:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],167:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],180:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],181:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],182:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],183:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],184:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],185:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],186:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],187:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],188:[function(t,e,r){e.exports=t("./squaredDistance")},{"./squaredDistance":190}],189:[function(t,e,r){e.exports=t("./squaredLength")},{"./squaredLength":191}],190:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],191:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],192:[function(t,e,r){e.exports=t("./subtract")},{"./subtract":193}],193:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],194:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],195:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],196:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],197:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],198:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],199:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],200:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],201:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],202:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],203:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],204:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],205:[function(t,e,r){e.exports={create:t("./create"),clone:t("./clone"),fromValues:t("./fromValues"),copy:t("./copy"),set:t("./set"),add:t("./add"),subtract:t("./subtract"),multiply:t("./multiply"),divide:t("./divide"),min:t("./min"),max:t("./max"),scale:t("./scale"),scaleAndAdd:t("./scaleAndAdd"),distance:t("./distance"),squaredDistance:t("./squaredDistance"),length:t("./length"),squaredLength:t("./squaredLength"),negate:t("./negate"),inverse:t("./inverse"),normalize:t("./normalize"),dot:t("./dot"),lerp:t("./lerp"),random:t("./random"),transformMat4:t("./transformMat4"),transformQuat:t("./transformQuat")}},{"./add":197,"./clone":198,"./copy":199,"./create":200,"./distance":201,"./divide":202,"./dot":203,"./fromValues":204,"./inverse":206,"./length":207,"./lerp":208,"./max":209,"./min":210,"./multiply":211,"./negate":212,"./normalize":213,"./random":214,"./scale":215,"./scaleAndAdd":216,"./set":217,"./squaredDistance":218,"./squaredLength":219,"./subtract":220,"./transformMat4":221,"./transformQuat":222}],206:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],207:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],208:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],209:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],210:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],211:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],212:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],213:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],214:[function(t,e,r){var n=t("./normalize"),i=t("./scale");e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{"./normalize":213,"./scale":215}],215:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],216:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],217:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],218:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],219:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],220:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],221:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],222:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],223:[function(t,e,r){var n=t("glsl-tokenizer"),i=t("atob-lite");e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r0)continue;r=t.slice(0,1).join("")}return A(r),v+=r.length,(p=p.slice(r.length)).length}}function I(){return/[^a-fA-F0-9]/.test(e)?(A(p.join("")),h=999,u):(p.push(e),r=e,u+1)}function O(){return"."===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):"x"===e&&1===p.length&&"0"===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(A(p.join("")),h=999,u):(p.push(e),r=e,u+1)}function z(){return"f"===e&&(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):("-"!==e&&"+"!==e||!/[eE]/.test(r))&&/[^\d]/.test(e)?(A(p.join("")),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join("");return h=k[t]?8:T[t]?7:6,A(p.join("")),h=999,u}return p.push(e),r=e,u+1}};var n=t("./lib/literals"),i=t("./lib/operators"),a=t("./lib/builtins"),o=t("./lib/literals-300es"),s=t("./lib/builtins-300es"),l=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},{"./lib/builtins":226,"./lib/builtins-300es":225,"./lib/literals":228,"./lib/literals-300es":227,"./lib/operators":229}],225:[function(t,e,r){var n=t("./builtins");n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},{"./builtins":226}],226:[function(t,e,r){e.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},{}],227:[function(t,e,r){var n=t("./literals");e.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},{"./literals":228}],228:[function(t,e,r){e.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},{}],229:[function(t,e,r){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},{}],230:[function(t,e,r){var n=t("./index");e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{"./index":224}],231:[function(t,e,r){e.exports=function(t){"string"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n0;)for(var s=(t=o.pop()).adjacent,l=0;l<=r;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-n)){for(var u=c.vertices,f=0;f<=r;++f){var h=u[f];i[f]=h<0?e:a[h]}var p=this.orient();if(p>0)return c;c.lastVisited=-n,0===p&&o.push(c)}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u<=n;++u){var f=c[u];if(!(f.lastVisited>=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p<0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length>0;){var p=(e=f.pop()).vertices,d=e.adjacent,m=p.indexOf(r);if(!(m<0))for(var g=0;g<=n;++g)if(g!==m){var v=d[g];if(v.boundary&&!(v.lastVisited>=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b<=n;++b)y[b]<0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()>0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var A=_.indexOf(e);if(!(A<0)){_[A]=k,T[m]=v,w[g]=-1,T[g]=e,d[g]=k,k.flip();for(b=0;b<=n;++b){var M=w[b];if(!(M<0||M===r)){for(var S=new Array(n-1),E=0,L=0;L<=n;++L){var C=w[L];C<0||L===b||(S[E++]=C)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(g=0;g+1=0?o[l++]=s[u]:c=1&u;if(c===(1&t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{"robust-orientation":284,"simplicial-complex":293}],234:[function(t,e,r){"use strict";var n=t("binary-search-bounds");function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(g(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=g(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r>1],a=[],o=[],s=[];for(r=0;r3*(e+1)?l(this,t):this.left.insert(t):this.left=g([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?l(this,t):this.right.insert(t):this.right=g([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,m);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);athis.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(tthis.mid&&this.right&&(n=this.right.queryInterval(t,e,r)))return n;return ethis.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},{"binary-search-bounds":31}],235:[function(t,e,r){"use strict";e.exports=function(t){for(var e=new Array(t),r=0;r * @license MIT */ -e.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],238:[function(t,e,r){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||"undefined"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(r=!0),r}},{}],239:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=t.length,n=0;n13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],240:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],241:[function(t,e,r){var n=t("./normalize"),i=t("gl-mat4/create"),a=t("gl-mat4/clone"),o=t("gl-mat4/determinant"),s=t("gl-mat4/invert"),l=t("gl-mat4/transpose"),c={length:t("gl-vec3/length"),normalize:t("gl-vec3/normalize"),dot:t("gl-vec3/dot"),cross:t("gl-vec3/cross")},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function m(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,g,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),g||(g=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)<1e-8))return!1;var y,x,b,_,w,T,k,A=u[3],M=u[7],S=u[11],E=u[12],L=u[13],C=u[14],P=u[15];if(0!==A||0!==M||0!==S){if(h[0]=A,h[1]=M,h[2]=S,h[3]=P,!s(f,f))return!1;l(f,f),y=g,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else g[0]=g[1]=g[2]=0,g[3]=1;if(e[0]=E,e[1]=L,e[2]=C,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),m(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),m(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),m(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)<0)for(var I=0;I<3;I++)r[I]*=-1,p[I][0]*=-1,p[I][1]*=-1,p[I][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(v[0]=-v[0]),p[0][2]>p[2][0]&&(v[1]=-v[1]),p[1][0]>p[0][1]&&(v[2]=-v[2]),!0}},{"./normalize":242,"gl-mat4/clone":92,"gl-mat4/create":93,"gl-mat4/determinant":94,"gl-mat4/invert":98,"gl-mat4/transpose":109,"gl-vec3/cross":157,"gl-vec3/dot":162,"gl-vec3/length":172,"gl-vec3/normalize":179}],242:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],243:[function(t,e,r){var n=t("gl-vec3/lerp"),i=t("mat4-recompose"),a=t("mat4-decompose"),o=t("gl-mat4/determinant"),s=t("quat-slerp"),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&&(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{"gl-mat4/determinant":94,"gl-vec3/lerp":173,"mat4-decompose":241,"mat4-recompose":244,"quat-slerp":271}],244:[function(t,e,r){var n={identity:t("gl-mat4/identity"),translate:t("gl-mat4/translate"),multiply:t("gl-mat4/multiply"),create:t("gl-mat4/create"),scale:t("gl-mat4/scale"),fromRotationTranslation:t("gl-mat4/fromRotationTranslation")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{"gl-mat4/create":93,"gl-mat4/fromRotationTranslation":96,"gl-mat4/identity":97,"gl-mat4/multiply":100,"gl-mat4/scale":107,"gl-mat4/translate":108}],245:[function(t,e,r){"use strict";var n=t("binary-search-bounds"),i=t("mat4-interpolate"),a=t("gl-mat4/invert"),o=t("gl-mat4/rotateX"),s=t("gl-mat4/rotateY"),l=t("gl-mat4/rotateZ"),c=t("gl-mat4/lookAt"),u=t("gl-mat4/translate"),f=(t("gl-mat4/scale"),t("gl-vec3/normalize")),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r<0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c<16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c<16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c<16;++c)d[c]=s[l++],p=p&&h[c]===d[c];if(u<1e-6||p)for(c=0;c<16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var m=this.computedUp;m[0]=o[1],m[1]=o[5],m[2]=o[9],f(m,m);var g=this.computedInverse;a(g,o);var v=this.computedEye,y=g[15];v[0]=g[12]/y,v[1]=g[13]/y,v[2]=g[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t1&&n(t[o[u-2]],t[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&n(t[s[u-2]],t[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i0;--p)r[f++]=s[p];return r};var n=t("robust-orientation")[3]},{"robust-orientation":284}],247:[function(t,e,r){"use strict";e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return"altKey"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),"shiftKey"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),"ctrlKey"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),"metaKey"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);"buttons"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function h(t){l(t)&&e&&e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function m(t){c(r&~n.buttons(t),t)}function g(){s||(s=!0,t.addEventListener("mousemove",p),t.addEventListener("mousedown",d),t.addEventListener("mouseup",m),t.addEventListener("mouseleave",u),t.addEventListener("mouseenter",u),t.addEventListener("mouseout",u),t.addEventListener("mouseover",u),t.addEventListener("blur",f),t.addEventListener("keyup",h),t.addEventListener("keydown",h),t.addEventListener("keypress",h),t!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",h),window.addEventListener("keydown",h),window.addEventListener("keypress",h)))}g();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?g():function(){if(!s)return;s=!1,t.removeEventListener("mousemove",p),t.removeEventListener("mousedown",d),t.removeEventListener("mouseup",m),t.removeEventListener("mouseleave",u),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseout",u),t.removeEventListener("mouseover",u),t.removeEventListener("blur",f),t.removeEventListener("keyup",h),t.removeEventListener("keydown",h),t.removeEventListener("keypress",h),t!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",h),window.removeEventListener("keydown",h),window.removeEventListener("keypress",h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t("mouse-event")},{"mouse-event":249}],248:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],249:[function(t,e,r){"use strict";function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if("object"==typeof t){if("buttons"in t)return t.buttons;if("which"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<=0)return 1< 0");"function"!=typeof t.vertex&&e("Must specify vertex creation function");"function"!=typeof t.cell&&e("Must specify cell creation function");"function"!=typeof t.phase&&e("Must specify phase function");for(var s=t.getters||[],l=new Array(a),c=0;c=0?l[c]=!0:l[c]=!1;return function(t,e,r,a,o,s){var l=[s,o].join(",");return(0,i[l])(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,0,r,l)};var i={"false,0,1":function(t,e,r,n,i){return function(a,o,s,l){var c,u=0|a.shape[0],f=0|a.shape[1],h=a.data,p=0|a.offset,d=0|a.stride[0],m=0|a.stride[1],g=p,v=0|-d,y=0,x=0|-m,b=0,_=-d-m|0,w=0,T=0|d,k=m-d*u|0,A=0,M=0,S=0,E=2*u|0,L=n(E),C=n(E),P=0,I=0,O=-1,z=-1,D=0,R=0|-u,F=0|u,B=0,N=-u-1|0,j=u-1|0,U=0,V=0,H=0;for(A=0;A0){if(M=1,L[P++]=r(h[g],o,s,l),g+=T,u>0)for(A=1,c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&&I===B&&I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++),P+=1,g+=T,A=2;A0)for(A=1,c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&&I===B&&I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++,U!==B&&e(C[P+R],V,b,w,B,U,o,s,l)),P+=1,g+=T,A=2;A0){if(A=1,L[P++]=r(h[g],o,s,l),g+=T,f>0)for(M=1,c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&&I===D&&I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++),P+=1,g+=T,M=2;M0)for(M=1,c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&&I===D&&I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++,U!==B&&e(C[P+R],V,w,y,U,B,o,s,l)),P+=1,g+=T,M=2;M2&&a[1]>2&&n(i.pick(-1,-1).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,0).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,1).lo(1,1).hi(a[0]-2,a[1]-2)),a[1]>2&&(r(i.pick(0,-1).lo(1).hi(a[1]-2),t.pick(0,-1,1).lo(1).hi(a[1]-2)),e(t.pick(0,-1,0).lo(1).hi(a[1]-2))),a[1]>2&&(r(i.pick(a[0]-1,-1).lo(1).hi(a[1]-2),t.pick(a[0]-1,-1,1).lo(1).hi(a[1]-2)),e(t.pick(a[0]-1,-1,0).lo(1).hi(a[1]-2))),a[0]>2&&(r(i.pick(-1,0).lo(1).hi(a[0]-2),t.pick(-1,0,0).lo(1).hi(a[0]-2)),e(t.pick(-1,0,1).lo(1).hi(a[0]-2))),a[0]>2&&(r(i.pick(-1,a[1]-1).lo(1).hi(a[0]-2),t.pick(-1,a[1]-1,0).lo(1).hi(a[0]-2)),e(t.pick(-1,a[1]-1,1).lo(1).hi(a[0]-2))),t.set(0,0,0,0),t.set(0,0,1,0),t.set(a[0]-1,0,0,0),t.set(a[0]-1,0,1,0),t.set(0,a[1]-1,0,0),t.set(0,a[1]-1,1,0),t.set(a[0]-1,a[1]-1,0,0),t.set(a[0]-1,a[1]-1,1,0),t}}e.exports=function(t,e,r){return Array.isArray(r)||(r=n(e.dimension,"string"==typeof r?r:"clamp")),0===e.size?t:0===e.dimension?(t.set(0),t):function(t){var e=t.join();if(a=u[e])return a;for(var r=t.length,n=[f,h],i=1;i<=r;++i)n.push(p(i));var a=d.apply(void 0,n);return u[e]=a,a}(r)(t,e)}},{dup:65}],253:[function(t,e,r){"use strict";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r0;){x<64?(l=x,x=0):(l=64,x-=64);for(var b=0|t[1];b>0;){b<64?(c=b,b=0):(c=64,b-=64),n=v+x*f+b*h,o=y+x*d+b*m;var _=0,w=0,T=0,k=p,A=f-u*p,M=h-l*f,S=g,E=d-u*g,L=m-l*d;for(T=0;T0;){m<64?(l=m,m=0):(l=64,m-=64);for(var g=0|t[0];g>0;){g<64?(s=g,g=0):(s=64,g-=64),n=p+m*u+g*c,o=d+m*h+g*f;var v=0,y=0,x=u,b=c-l*u,_=h,w=f-l*h;for(y=0;y0;){y<64?(c=y,y=0):(c=64,y-=64);for(var x=0|t[0];x>0;){x<64?(s=x,x=0):(s=64,x-=64);for(var b=0|t[1];b>0;){b<64?(l=b,b=0):(l=64,b-=64),n=g+y*h+x*u+b*f,o=v+y*m+x*p+b*d;var _=0,w=0,T=0,k=h,A=u-c*h,M=f-s*u,S=m,E=p-c*m,L=d-s*p;for(T=0;Tr;){v=0,y=m-o;e:for(g=0;gb)break e;y+=f,v+=h}for(v=m,y=m-o,g=0;g>1,q=H-j,G=H+j,Y=U,W=q,X=H,Z=G,J=V,K=i+1,Q=a-1,$=!0,tt=0,et=0,rt=0,nt=f,it=e(nt),at=e(nt);A=l*Y,M=l*W,N=s;t:for(k=0;k0){g=Y,Y=W,W=g;break t}if(rt<0)break t;N+=p}A=l*Z,M=l*J,N=s;t:for(k=0;k0){g=Z,Z=J,J=g;break t}if(rt<0)break t;N+=p}A=l*Y,M=l*X,N=s;t:for(k=0;k0){g=Y,Y=X,X=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*X,N=s;t:for(k=0;k0){g=W,W=X,X=g;break t}if(rt<0)break t;N+=p}A=l*Y,M=l*Z,N=s;t:for(k=0;k0){g=Y,Y=Z,Z=g;break t}if(rt<0)break t;N+=p}A=l*X,M=l*Z,N=s;t:for(k=0;k0){g=X,X=Z,Z=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*J,N=s;t:for(k=0;k0){g=W,W=J,J=g;break t}if(rt<0)break t;N+=p}A=l*W,M=l*X,N=s;t:for(k=0;k0){g=W,W=X,X=g;break t}if(rt<0)break t;N+=p}A=l*Z,M=l*J,N=s;t:for(k=0;k0){g=Z,Z=J,J=g;break t}if(rt<0)break t;N+=p}for(A=l*Y,M=l*W,S=l*X,E=l*Z,L=l*J,C=l*U,P=l*H,I=l*V,B=0,N=s,k=0;k0)){if(rt<0){for(A=l*b,M=l*K,S=l*Q,N=s,k=0;k0)for(;;){_=s+Q*l,B=0;t:for(k=0;k0)){_=s+Q*l,B=0;t:for(k=0;kV){t:for(;;){for(_=s+K*l,B=0,N=s,k=0;k1&&n?s(r,n[0],n[1]):s(r)}(t,e,l);return n(l,c)}},{"typedarray-pool":308}],258:[function(t,e,r){"use strict";var n=t("./lib/compile_sort.js"),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(":"),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{"./lib/compile_sort.js":257}],259:[function(t,e,r){var n=t("is-buffer"),i="undefined"!=typeof Float64Array;function a(t,e){return t[0]-e[0]}function o(){var t,e=this.stride,r=new Array(e.length);for(t=0;t=0&&(e+=a*(r=0|t),i-=r),new n(this.data,i,a,e)},i.step=function(t){var e=this.shape[0],r=this.stride[0],i=this.offset,a=0,o=Math.ceil;return"number"==typeof t&&((a=0|t)<0?(i+=r*(e-1),e=o(-e/a)):e=o(e/a),r*=a),new n(this.data,e,r,i)},i.transpose=function(t){t=void 0===t?0:0|t;var e=this.shape,r=this.stride;return new n(this.data,e[t],r[t],this.offset)},i.pick=function(t){var r=[],n=[],i=this.offset;return"number"==typeof t&&t>=0?i=i+this.stride[0]*t|0:(r.push(this.shape[0]),n.push(this.stride[0])),(0,e[r.length+1])(this.data,r,n,i)},function(t,e,r,i){return new n(t,e[0],r[0],i)}},2:function(t,e,r){function n(t,e,r,n,i,a){this.data=t,this.shape=[e,r],this.stride=[n,i],this.offset=0|a}var i=n.prototype;return i.dtype=t,i.dimension=2,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(i,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),i.set=function(e,r,n){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r,n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]=n},i.get=function(e,r){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]},i.index=function(t,e){return this.offset+this.stride[0]*t+this.stride[1]*e},i.hi=function(t,e){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,this.stride[0],this.stride[1],this.offset)},i.lo=function(t,e){var r=this.offset,i=0,a=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"==typeof t&&t>=0&&(r+=s*(i=0|t),a-=i),"number"==typeof e&&e>=0&&(r+=l*(i=0|e),o-=i),new n(this.data,a,o,s,l,r)},i.step=function(t,e){var r=this.shape[0],i=this.shape[1],a=this.stride[0],o=this.stride[1],s=this.offset,l=0,c=Math.ceil;return"number"==typeof t&&((l=0|t)<0?(s+=a*(r-1),r=c(-r/l)):r=c(r/l),a*=l),"number"==typeof e&&((l=0|e)<0?(s+=o*(i-1),i=c(-i/l)):i=c(i/l),o*=l),new n(this.data,r,i,a,o,s)},i.transpose=function(t,e){t=void 0===t?0:0|t,e=void 0===e?1:0|e;var r=this.shape,i=this.stride;return new n(this.data,r[t],r[e],i[t],i[e],this.offset)},i.pick=function(t,r){var n=[],i=[],a=this.offset;return"number"==typeof t&&t>=0?a=a+this.stride[0]*t|0:(n.push(this.shape[0]),i.push(this.stride[0])),"number"==typeof r&&r>=0?a=a+this.stride[1]*r|0:(n.push(this.shape[1]),i.push(this.stride[1])),(0,e[n.length+1])(this.data,n,i,a)},function(t,e,r,i){return new n(t,e[0],e[1],r[0],r[1],i)}},3:function(t,e,r){function n(t,e,r,n,i,a,o,s){this.data=t,this.shape=[e,r,n],this.stride=[i,a,o],this.offset=0|s}var i=n.prototype;return i.dtype=t,i.dimension=3,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(i,"order",{get:function(){var t=Math.abs(this.stride[0]),e=Math.abs(this.stride[1]),r=Math.abs(this.stride[2]);return t>e?e>r?[2,1,0]:t>r?[1,2,0]:[1,0,2]:t>r?[2,0,1]:r>e?[0,1,2]:[0,2,1]}}),i.set=function(e,r,n,i){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n,i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]=i},i.get=function(e,r,n){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]},i.index=function(t,e,r){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r},i.hi=function(t,e,r){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,this.stride[0],this.stride[1],this.stride[2],this.offset)},i.lo=function(t,e,r){var i=this.offset,a=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],f=this.stride[2];return"number"==typeof t&&t>=0&&(i+=c*(a=0|t),o-=a),"number"==typeof e&&e>=0&&(i+=u*(a=0|e),s-=a),"number"==typeof r&&r>=0&&(i+=f*(a=0|r),l-=a),new n(this.data,o,s,l,c,u,f,i)},i.step=function(t,e,r){var i=this.shape[0],a=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,f=0,h=Math.ceil;return"number"==typeof t&&((f=0|t)<0?(u+=s*(i-1),i=h(-i/f)):i=h(i/f),s*=f),"number"==typeof e&&((f=0|e)<0?(u+=l*(a-1),a=h(-a/f)):a=h(a/f),l*=f),"number"==typeof r&&((f=0|r)<0?(u+=c*(o-1),o=h(-o/f)):o=h(o/f),c*=f),new n(this.data,i,a,o,s,l,c,u)},i.transpose=function(t,e,r){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r;var i=this.shape,a=this.stride;return new n(this.data,i[t],i[e],i[r],a[t],a[e],a[r],this.offset)},i.pick=function(t,r,n){var i=[],a=[],o=this.offset;return"number"==typeof t&&t>=0?o=o+this.stride[0]*t|0:(i.push(this.shape[0]),a.push(this.stride[0])),"number"==typeof r&&r>=0?o=o+this.stride[1]*r|0:(i.push(this.shape[1]),a.push(this.stride[1])),"number"==typeof n&&n>=0?o=o+this.stride[2]*n|0:(i.push(this.shape[2]),a.push(this.stride[2])),(0,e[i.length+1])(this.data,i,a,o)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],r[0],r[1],r[2],i)}},4:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c){this.data=t,this.shape=[e,r,n,i],this.stride=[a,o,s,l],this.offset=0|c}var i=n.prototype;return i.dtype=t,i.dimension=4,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i,a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]=a},i.get=function(e,r,n,i){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]},i.index=function(t,e,r,n){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n},i.hi=function(t,e,r,i){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,"number"!=typeof i||i<0?this.shape[3]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},i.lo=function(t,e,r,i){var a=this.offset,o=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],f=this.stride[0],h=this.stride[1],p=this.stride[2],d=this.stride[3];return"number"==typeof t&&t>=0&&(a+=f*(o=0|t),s-=o),"number"==typeof e&&e>=0&&(a+=h*(o=0|e),l-=o),"number"==typeof r&&r>=0&&(a+=p*(o=0|r),c-=o),"number"==typeof i&&i>=0&&(a+=d*(o=0|i),u-=o),new n(this.data,s,l,c,u,f,h,p,d,a)},i.step=function(t,e,r,i){var a=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],f=this.stride[2],h=this.stride[3],p=this.offset,d=0,m=Math.ceil;return"number"==typeof t&&((d=0|t)<0?(p+=c*(a-1),a=m(-a/d)):a=m(a/d),c*=d),"number"==typeof e&&((d=0|e)<0?(p+=u*(o-1),o=m(-o/d)):o=m(o/d),u*=d),"number"==typeof r&&((d=0|r)<0?(p+=f*(s-1),s=m(-s/d)):s=m(s/d),f*=d),"number"==typeof i&&((d=0|i)<0?(p+=h*(l-1),l=m(-l/d)):l=m(l/d),h*=d),new n(this.data,a,o,s,l,c,u,f,h,p)},i.transpose=function(t,e,r,i){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i;var a=this.shape,o=this.stride;return new n(this.data,a[t],a[e],a[r],a[i],o[t],o[e],o[r],o[i],this.offset)},i.pick=function(t,r,n,i){var a=[],o=[],s=this.offset;return"number"==typeof t&&t>=0?s=s+this.stride[0]*t|0:(a.push(this.shape[0]),o.push(this.stride[0])),"number"==typeof r&&r>=0?s=s+this.stride[1]*r|0:(a.push(this.shape[1]),o.push(this.stride[1])),"number"==typeof n&&n>=0?s=s+this.stride[2]*n|0:(a.push(this.shape[2]),o.push(this.stride[2])),"number"==typeof i&&i>=0?s=s+this.stride[3]*i|0:(a.push(this.shape[3]),o.push(this.stride[3])),(0,e[a.length+1])(this.data,a,o,s)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],r[0],r[1],r[2],r[3],i)}},5:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c,u,f){this.data=t,this.shape=[e,r,n,i,a],this.stride=[o,s,l,c,u],this.offset=0|f}var i=n.prototype;return i.dtype=t,i.dimension=5,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a,o){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a,o):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]=o},i.get=function(e,r,n,i,a){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]},i.index=function(t,e,r,n,i){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n+this.stride[4]*i},i.hi=function(t,e,r,i,a){return new n(this.data,"number"!=typeof t||t<0?this.shape[0]:0|t,"number"!=typeof e||e<0?this.shape[1]:0|e,"number"!=typeof r||r<0?this.shape[2]:0|r,"number"!=typeof i||i<0?this.shape[3]:0|i,"number"!=typeof a||a<0?this.shape[4]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},i.lo=function(t,e,r,i,a){var o=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],f=this.shape[3],h=this.shape[4],p=this.stride[0],d=this.stride[1],m=this.stride[2],g=this.stride[3],v=this.stride[4];return"number"==typeof t&&t>=0&&(o+=p*(s=0|t),l-=s),"number"==typeof e&&e>=0&&(o+=d*(s=0|e),c-=s),"number"==typeof r&&r>=0&&(o+=m*(s=0|r),u-=s),"number"==typeof i&&i>=0&&(o+=g*(s=0|i),f-=s),"number"==typeof a&&a>=0&&(o+=v*(s=0|a),h-=s),new n(this.data,l,c,u,f,h,p,d,m,g,v,o)},i.step=function(t,e,r,i,a){var o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],f=this.stride[0],h=this.stride[1],p=this.stride[2],d=this.stride[3],m=this.stride[4],g=this.offset,v=0,y=Math.ceil;return"number"==typeof t&&((v=0|t)<0?(g+=f*(o-1),o=y(-o/v)):o=y(o/v),f*=v),"number"==typeof e&&((v=0|e)<0?(g+=h*(s-1),s=y(-s/v)):s=y(s/v),h*=v),"number"==typeof r&&((v=0|r)<0?(g+=p*(l-1),l=y(-l/v)):l=y(l/v),p*=v),"number"==typeof i&&((v=0|i)<0?(g+=d*(c-1),c=y(-c/v)):c=y(c/v),d*=v),"number"==typeof a&&((v=0|a)<0?(g+=m*(u-1),u=y(-u/v)):u=y(u/v),m*=v),new n(this.data,o,s,l,c,u,f,h,p,d,m,g)},i.transpose=function(t,e,r,i,a){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i,a=void 0===a?4:0|a;var o=this.shape,s=this.stride;return new n(this.data,o[t],o[e],o[r],o[i],o[a],s[t],s[e],s[r],s[i],s[a],this.offset)},i.pick=function(t,r,n,i,a){var o=[],s=[],l=this.offset;return"number"==typeof t&&t>=0?l=l+this.stride[0]*t|0:(o.push(this.shape[0]),s.push(this.stride[0])),"number"==typeof r&&r>=0?l=l+this.stride[1]*r|0:(o.push(this.shape[1]),s.push(this.stride[1])),"number"==typeof n&&n>=0?l=l+this.stride[2]*n|0:(o.push(this.shape[2]),s.push(this.stride[2])),"number"==typeof i&&i>=0?l=l+this.stride[3]*i|0:(o.push(this.shape[3]),s.push(this.stride[3])),"number"==typeof a&&a>=0?l=l+this.stride[4]*a|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,e[o.length+1])(this.data,o,s,l)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],e[4],r[0],r[1],r[2],r[3],r[4],i)}}};function l(t,e){var r=-1===e?"T":String(e),n=s[r];return-1===e?n(t):0===e?n(t,c[t][0]):n(t,c[t],o)}var c={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};e.exports=function(t,e,r,a){if(void 0===t)return(0,c.array[0])([]);"number"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s>=0;--s)r[s]=u,u*=e[s]}if(void 0===a){a=0;for(s=0;st==t>0?a===-1>>>0?(r+=1,a=0):a+=1:0===a?(a=-1>>>0,r-=1):a-=1;return n.pack(a,r)}},{"double-bits":64}],261:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;oa){var b=i[c],_=1/Math.sqrt(g*y);for(x=0;x<3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*m[T]-v[T]*m[w])}}}for(o=0;oa)for(_=1/Math.sqrt(k),x=0;x<3;++x)b[x]*=_;else for(x=0;x<3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;oa?1/Math.sqrt(p):0;for(c=0;c<3;++c)h[c]*=p;i[o]=h}return i}},{}],262:[function(t,e,r){"use strict";e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f>0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e>=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a>=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],263:[function(t,e,r){"use strict";e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),("eye"in t||"up"in t)&&i.lookAt(0,t.eye,t.center,t.up);return i};var n=t("filtered-vector"),i=t("gl-mat4/lookAt"),a=t("gl-mat4/fromQuat"),o=t("gl-mat4/invert"),s=t("./lib/quatFromFrame");function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o>1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var c=0,f=0;f<3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var m=i[2],g=i[6],v=i[10],y=m*a+g*o+v*s,x=m*u+g*f+v*h,b=l(m-=y*a+x*u,g-=y*o+x*f,v-=y*s+x*h);m/=b,g/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],m=i[10],g=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-m*v),b=-(m*g-p*y),_=-(p*v-d*g),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T>1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],L=A*w+E*x+M*_-S*b,C=M*w+E*b+S*x-A*_,P=S*w+E*_+A*b-M*x,I=E*w-A*x-M*b-S*_;if(n){x=p,b=d,_=m;var O=Math.sin(n)/l(x,b,_);x*=O,b*=O,_*=O,I=I*(w=Math.cos(e))-(L=L*w+I*x+C*_-P*b)*x-(C=C*w+I*b+P*x-L*_)*b-(P=P*w+I*_+L*b-C*x)*_}var z=c(L,C,P,I);z>1e-6?(L/=z,C/=z,P/=z,I/=z):(L=C=P=0,I=1),this.rotation.set(t,L,C,P,I)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{"./lib/quatFromFrame":262,"filtered-vector":68,"gl-mat4/fromQuat":95,"gl-mat4/invert":98,"gl-mat4/lookAt":99}],264:[function(t,e,r){ /*! * pad-left * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";var n=t("repeat-string");e.exports=function(t,e,r){return n(r=void 0!==r?r+"":" ",e)+t}},{"repeat-string":277}],265:[function(t,e,r){e.exports=function(t,e){e||(e=[0,""]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",e}},{}],266:[function(t,e,r){"use strict";e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f<2;++f)for(var h=a[f][r],p=0;p0&&(o=d,s=m,l=f)}return i||o&&c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])<0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o0;){a[0][o].length;var m=f(o,p);h(0,m)?d.push.apply(d,m):(d.length>0&&l.push(d),d=m)}d.length>0&&l.push(d)}return l};var n=t("compare-angle")},{"compare-angle":54}],267:[function(t,e,r){"use strict";e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s0}))).length,g=new Array(m),v=new Array(m);for(p=0;p0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var H=d[B];j=[H]}for(p=0;p=0))if(F[q]=1^V,R.push(q),0===V)D(H=d[q])||(H.reverse(),j.push(H))}0===V&&r.push(j)}return r};var n=t("edges-to-adjacency-list"),i=t("planar-dual"),a=t("point-in-big-polygon"),o=t("two-product"),s=t("robust-sum"),l=t("uniq"),c=t("./lib/trim-leaves");function u(t,e){for(var r=new Array(t),n=0;n0&&e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]0))return 0;s=-1,a=a.right}else if(c>0)a=a.left;else{if(!(c<0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t("robust-orientation")[3],i=t("slab-decomposition"),a=t("interval-tree-1d"),o=t("binary-search-bounds");function s(){return!0}function l(t){for(var e={},r=0;r=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p>=0?(A=0,y=d):-p>=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A<0)A=0,h>=0?(k=0,y=d):-h>=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var M=1/T;y=(k*=M)*(c*k+u*(A*=M)+2*h)+A*(u*k+f*A+2*p)+d}else k<0?(b=f+p)>(x=u+h)?(_=b-x)>=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d:(k=0,b<=0?(A=1,y=f+2*p+d):p>=0?(A=0,y=d):y=p*(A=-p/f)+d):A<0?(b=c+h)>(x=u+p)?(_=b-x)>=(w=c-2*u+f)?(A=1,k=0,y=f+2*p+d):y=(k=1-(A=_/w))*(c*k+u*A+2*h)+A*(u*k+f*A+2*p)+d:(A=0,b<=0?(k=1,y=c+2*h+d):h>=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)<=0?(k=0,A=1,y=f+2*p+d):_>=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d;var S=1-k-A;for(l=0;l0){var c=t[r-1];if(0===n(s,c)&&a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{"cell-orientation":47,"compare-cell":56,"compare-oriented-cell":57}],277:[function(t,e,r){ /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";var n,i="";e.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||void 0===n)n=t,i="";else if(i.length>=r)return i.substr(0,r);for(;r>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,r)}},{}],278:[function(t,e,r){(function(t){(function(){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],279:[function(t,e,r){"use strict";e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&&(t[--n]=r,r=l)}var s=0;for(i=n;i0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o>=s||o<=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,m=o*l,g=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-m)+f*(g-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(m))*Math.abs(u)+(Math.abs(g)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b>_||-b>_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}function m(t,e,r,n,i,a,o){return function(e,r,s,l,c){switch(arguments.length){case 0:case 1:return 0;case 2:return n(e,r);case 3:return i(e,r,s);case 4:return a(e,r,s,l);case 5:return o(e,r,s,l,c)}for(var u=new Array(arguments.length),f=0;f0&&o>0||a<0&&o<0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s>0&&l>0||s<0&&l<0)return!1;if(0===a&&0===o&&0===s&&0===l)return function(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)=n?(i=f,(l+=1)=n?(i=f,(l+=1)>1,c=e[2*l+1];if(c===a)return l;a>1,c=e[2*l+1];if(c===a)return l;a>1,c=e[2*l+1];if(c===a)return l;a>1,s=a(t[o],e);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i=t.length||0!==a(t[g],s)););}return r}function f(t,e){if(e<0)return[];for(var r=[],i=(1<>>u&1&&c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r>1:(t>>1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n0;){var r=y(t);if(r>=0)if(e0){var t=k[0];return g(0,M-1),M-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((M+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]>=0&&(s[r]=e),l[e]>=0&&(l[e]=r),A[e]>=0&&w(A[e],m(e)),A[r]>=0&&w(A[r],m(r))}}var k=[],A=new Array(a);for(f=0;f>1;f>=0;--f)x(f);for(;;){var S=_();if(S<0||c[S]>r)break;T(S)}var E=[];for(f=0;f=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&C.push([n,i])}})),i.unique(i.normalize(C)),{positions:E,edges:C}};var n=t("robust-orientation"),i=t("simplicial-complex")},{"robust-orientation":284,"simplicial-complex":295}],298:[function(t,e,r){"use strict";e.exports=function(t,e){var r,a,o,s;if(e[0][0]e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return a[0]-s[0]};var n=t("robust-orientation");function i(t,e){var r,i,a,o;if(e[0][0]e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return lu?s-u:l-u}r=e[1],i=e[0]}t[0][1]0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e<0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&&(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&&(s=r.key),e>0){var u=c(this.slabs[e-1],t);u&&(s?o(u.key,s)>0&&(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length>0){var h=n.ge(f,t[1],l);if(h=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]>s[1][0]&&(d=-d),d>0&&(i=p.index)}else i=p.index;else p.y!==t[1]&&(i=p.index)}}}return i}},{"./lib/order-segments":298,"binary-search-bounds":31,"functional-red-black-tree":69,"robust-orientation":284}],300:[function(t,e,r){"use strict";var n=t("robust-dot-product"),i=t("robust-sum");function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l0||i>0&&u<0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u<0?n.push(l.slice()):u>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c>=0&&r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c<=0&&r.push(s.slice()),n=c}return r}},{"robust-dot-product":281,"robust-sum":289}],301:[function(t,e,r){!function(){"use strict";var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,m="";for(a=0;a=0),s.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case"e":i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case"f":i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case"g":i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case"t":i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}t.json.test(s.type)?m+=i:(!t.number.test(s.type)||f&&!s.sign?h="":(h=f?"+":"-",i=i.toString().replace(t.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(h+i).length,l=s.width&&u>0?c.repeat(u):"",m+=s.align?h+i+l:"0"===c?h+l+i:l+h+i)}return m}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push("%");else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}void 0!==r&&(r.sprintf=e,r.vsprintf=n),"undefined"!=typeof window&&(window.sprintf=e,window.vsprintf=n)}()},{}],302:[function(t,e,r){"use strict";e.exports=function(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=i(t,e),n=r.length,a=new Array(n),o=new Array(n),s=0;sn|0},vertex:function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=(o<<0)+(s<<1)+(l<<2)+(c<<3)|0;if(0!==p&&15!==p)switch(p){case 0:u.push([t-.5,e-.5]);break;case 1:u.push([t-.25-.25*(n+r-2*h)/(r-n),e-.25-.25*(i+r-2*h)/(r-i)]);break;case 2:u.push([t-.75-.25*(-n-r+2*h)/(n-r),e-.25-.25*(a+n-2*h)/(n-a)]);break;case 3:u.push([t-.5,e-.5-.5*(i+r+a+n-4*h)/(r-i+n-a)]);break;case 4:u.push([t-.25-.25*(a+i-2*h)/(i-a),e-.75-.25*(-i-r+2*h)/(i-r)]);break;case 5:u.push([t-.5-.5*(n+r+a+i-4*h)/(r-n+i-a),e-.5]);break;case 6:u.push([t-.5-.25*(-n-r+a+i)/(n-r+i-a),e-.5-.25*(-i-r+a+n)/(i-r+n-a)]);break;case 7:u.push([t-.75-.25*(a+i-2*h)/(i-a),e-.75-.25*(a+n-2*h)/(n-a)]);break;case 8:u.push([t-.75-.25*(-a-i+2*h)/(a-i),e-.75-.25*(-a-n+2*h)/(a-n)]);break;case 9:u.push([t-.5-.25*(n+r+-a-i)/(r-n+a-i),e-.5-.25*(i+r+-a-n)/(r-i+a-n)]);break;case 10:u.push([t-.5-.5*(-n-r-a-i+4*h)/(n-r+a-i),e-.5]);break;case 11:u.push([t-.25-.25*(-a-i+2*h)/(a-i),e-.75-.25*(i+r-2*h)/(r-i)]);break;case 12:u.push([t-.5,e-.5-.5*(-i-r-a-n+4*h)/(i-r+a-n)]);break;case 13:u.push([t-.75-.25*(n+r-2*h)/(r-n),e-.25-.25*(-a-n+2*h)/(a-n)]);break;case 14:u.push([t-.25-.25*(-n-r+2*h)/(n-r),e-.25-.25*(-i-r+2*h)/(i-r)]);break;case 15:u.push([t-.5,e-.5])}},cell:function(t,e,r,n,i,a,o,s,l){i?s.push([t,e]):s.push([e,t])}});return function(t,e){var r=[],i=[];return n(t,r,i,e),{positions:r,cells:i}}}};var o={}},{"ndarray-extract-contour":251,"zero-crossings":318}],303:[function(t,e,r){(function(r){(function(){"use strict";e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={" ":{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length<=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o0&&(f+=.02);var p=new Float32Array(u),d=0,m=-.5*f;for(h=0;hMath.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l<3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a<3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a<3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],m=this.computedAngle[1],g=Math.cos(d),v=Math.sin(d),y=Math.cos(m),x=Math.sin(m),b=this.computedCenter,_=g*y,w=v*y,T=x,k=-g*x,A=-v*x,M=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var L=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+A*h[a]+M*e[a],E[4*a+2]=L,E[4*a+3]=0}var C=E[1],P=E[5],I=E[9],O=E[2],z=E[6],D=E[10],R=P*D-I*z,F=I*O-C*D,B=C*z-P*O,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a<3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a<3;++a){u=0;for(var j=0;j<3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c<3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),m=(u/=d)*e+a*r,g=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,m,g,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;"number"==typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),m=Math.max(h,p,d);h===m?(s=s<0?-1:1,l=f=0):d===m?(f=f<0?-1:1,s=l=0):(l=l<0?-1:1,s=f=0)}else{var g=c(s,l,f);s/=g,l/=g,f/=g}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),A=f*(x/=T)-s*_,M=s*b-l*x,S=c(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(t,q,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],L=e[5],C=e[9],P=E*x+L*b+C*_,I=E*k+L*A+C*M;v=R<0?-Math.PI/2:Math.PI/2,y=Math.atan2(I,P)}else{var O=e[2],z=e[6],D=e[10],R=O*s+z*l+D*f,F=O*x+z*b+D*_,B=O*k+z*A+D*M;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var H=V[15],q=V[12]/H,G=V[13]/H,Y=V[14]/H,W=Math.exp(this.computedRadius[0]);this.center.jump(t,q-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p<1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,m=d[0],g=d[1],v=d[2],y=i*m+a*g+o*v,x=c(m-=y*i,g-=y*a,v-=y*o);if(!(x<.01&&(x=c(m=a*h-o*f,g=o*l-i*h,v=i*f-a*l))<1e-6)){m/=x,g/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,m,g,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*g,_=o*m-i*v,w=i*g-a*m,T=c(b,_,w),k=i*l+a*f+o*h,A=m*l+g*f+v*h,M=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(M,A),L=this.angle._state,C=L[L.length-1],P=L[L.length-2];C%=2*Math.PI;var I=Math.abs(C+2*Math.PI-E),O=Math.abs(C-E),z=Math.abs(C-2*Math.PI-E);I0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function m(t){return new Uint16Array(p(2*t),0,t)}function g(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length>0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return p(t);switch(e){case"uint8":return d(t);case"uint16":return m(t);case"uint32":return g(t);case"int8":return v(t);case"int16":return y(t);case"int32":return x(t);case"float":case"float32":return b(t);case"double":case"float64":return _(t);case"uint8_clamped":return w(t);case"bigint64":return k(t);case"biguint64":return T(t);case"buffer":return M(t);case"data":case"dataview":return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=m,r.mallocUint32=g,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t<32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"bit-twiddle":32,buffer:3,dup:65}],309:[function(t,e,r){"use strict";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e0&&(a=n.size),n.lineSpacing&&n.lineSpacing>0&&(o=n.lineSpacing),n.styletags&&n.styletags.breaklines&&(s.breaklines=!!n.styletags.breaklines),n.styletags&&n.styletags.bolds&&(s.bolds=!!n.styletags.bolds),n.styletags&&n.styletags.italics&&(s.italics=!!n.styletags.italics),n.styletags&&n.styletags.subscripts&&(s.subscripts=!!n.styletags.subscripts),n.styletags&&n.styletags.superscripts&&(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+"px",n.font].filter((function(t){return t})).join(" "),r.textAlign="start",r.textBaseline="alphabetic",r.direction="ltr",h(function(t,e,r,n,a,o){r=r.replace(/\n/g,""),r=!0===o.breaklines?r.replace(/\/g,"\n"):r.replace(/\/g," ");var s="",l=[];for(p=0;p-1?parseInt(t[1+i]):0,l=a>-1?parseInt(r[1+a]):0;s!==l&&(n=n.replace(S(),"?px "),g*=Math.pow(.75,l-s),n=n.replace("?px ",S())),m+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf("+"),u=r.indexOf("+"),f=c>-1?parseInt(t[1+c]):0,h=u>-1?parseInt(r[1+u]):0;f!==h&&(n=n.replace(S(),"?px "),g*=Math.pow(.75,h-f),n=n.replace("?px ",S())),m-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf("b|")>-1,d=r.indexOf("b|")>-1;!p&&d&&(n=v?n.replace("italic ","italic bold "):"bold "+n),p&&!d&&(n=n.replace("bold ",""))}if(!0===o.italics){var v=t.indexOf("i|")>-1,y=r.indexOf("i|")>-1;!v&&y&&(n="italic "+n),v&&!y&&(n=n.replace("italic ",""))}e.font=n}for(h=0;h",a="",o=i.length,s=a.length,l="+"===e[0]||"-"===e[0],c=0,u=-s;c>-1&&-1!==(c=r.indexOf(i,c))&&-1!==(u=r.indexOf(a,c+o))&&!(u<=c);){for(var f=c;f=u)n[f]=null,r=r.substr(0,f)+" "+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&&(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||"start",i=e.textBaseline||"alphabetic",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)>=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))>=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&&delete o[r]:!((i=t.indexOf(n))<0)&&(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),"function"==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&&i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&&i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==m)throw new Error("bogus call to permitHostObjects___");a=!0}))}})}t&&"undefined"!=typeof Proxy&&(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),e.exports=d)}function m(t){t.permitHostObjects___&&t.permitHostObjects___(m)}function g(t){return!("weakmap:"==t.substr(0,"weakmap:".length)&&"___"===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError("Not an object: "+t);var e=t[l];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||"undefined"==typeof console||(h=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},{}],314:[function(t,e,r){var n=t("./hidden-store.js");e.exports=function(){var t={};return function(e){if(("object"!=typeof e||null===e)&&"function"!=typeof e)throw new Error("Weakmap-shim: Key must be object");var r=e.valueOf(t);return r&&r.identity===t?r:n(e,t)}}},{"./hidden-store.js":315}],315:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,"valueOf",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],316:[function(t,e,r){var n=t("./create-store.js");e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty("value")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return"value"in t(e)},delete:function(e){return delete t(e).value}}}},{"./create-store.js":314}],317:[function(t,e,r){"use strict";var n,i=function(){return function(t,e,r,n,i,a){var o=t[0],s=r[0],l=[0],c=s;n|=0;var u=0,f=s;for(u=0;u=0!=p>=0&&i.push(l[0]+.5+.5*(h+p)/(h-p)),n+=f,++l[0]}}};e.exports=(n={funcName:{funcName:"zeroCrossings"}.funcName},function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=[a,o.join()].join(),l=e[s];return l||(e[s]=l=t([a,o])),l(r.shape.slice(0),r.data,r.stride,0|r.offset,n,i)}}(i.bind(void 0,n)))},{}],318:[function(t,e,r){"use strict";e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t("./lib/zc-core")},{"./lib/zc-core":317}]},{},[6])(6)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[27])(27)})); \ No newline at end of file +/*! Bundled license information: + +native-promise-only/lib/npo.src.js: + (*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org + *) + +polybooljs/index.js: + (* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + *) + +ieee754/index.js: + (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) + +buffer/index.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + +assert/build/internal/util/comparisons.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + +object-assign/index.js: + (* + object-assign + (c) Sindre Sorhus + @license MIT + *) + +maplibre-gl/dist/maplibre-gl.js: + (** + * MapLibre GL JS + * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt + *) +*/ + +window.Plotly = Plotly; +return Plotly; +})); \ No newline at end of file From ebb63526363d83027107de868e24b82e3ee7156e Mon Sep 17 00:00:00 2001 From: huangzhibo Date: Thu, 19 Jun 2025 15:03:09 +0800 Subject: [PATCH 2/3] fix: implement automatic zorder assignment for proper trace layering This commit fixes the box plot layering issue where box plots always rendered behind other traces (ribbons, lines) despite correct layer ordering in ggplot2. Implements automatic zorder assignment based on ggplot2 layer order using new plotly.js functionality --- R/ggplotly.R | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/R/ggplotly.R b/R/ggplotly.R index 973a31ebc1..80153dd51f 100644 --- a/R/ggplotly.R +++ b/R/ggplotly.R @@ -1153,6 +1153,14 @@ gg2list <- function(p, width = NULL, height = NULL, l$cur_data <- ids[[layerData]] l$visdat <- setNames(lapply(return_dat, function(x) function(y) x), ids) + # automatically assign zorder values based on trace positionAdd commentMore actions + # this ensures proper layering (later traces on top) for ggplot2 without manual intervention + for (i in seq_along(l$data)) { + if (is.null(l$data[[i]]$zorder)) { + l$data[[i]]$zorder <- i + } + } + l } From 4193097e94b4d5ced5ac3970cd6a70d5ba244ee7 Mon Sep 17 00:00:00 2001 From: huangzhibo Date: Thu, 19 Jun 2025 20:43:19 +0800 Subject: [PATCH 3/3] add: test cases for automatic zorder assignment in boxplot layering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add comprehensive test coverage for zorder functionality - Test both scenarios: with and without automatic zorder assignment - Includes visual regression tests with SVG snapshots - Verifies boxplot renders correctly on top of confidence intervals - Addresses issue where box plots rendered behind other traces 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../ggplot-zorder/boxplot-with-zorder.svg | 1 + .../ggplot-zorder/boxplot-without-zorder.svg | 1 + tests/testthat/test-ggplot-zorder.R | 55 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/testthat/_snaps/ggplot-zorder/boxplot-with-zorder.svg create mode 100644 tests/testthat/_snaps/ggplot-zorder/boxplot-without-zorder.svg create mode 100644 tests/testthat/test-ggplot-zorder.R diff --git a/tests/testthat/_snaps/ggplot-zorder/boxplot-with-zorder.svg b/tests/testthat/_snaps/ggplot-zorder/boxplot-with-zorder.svg new file mode 100644 index 0000000000..87ece7277e --- /dev/null +++ b/tests/testthat/_snaps/ggplot-zorder/boxplot-with-zorder.svg @@ -0,0 +1 @@ +468101520253035factor(cyl)mpg diff --git a/tests/testthat/_snaps/ggplot-zorder/boxplot-without-zorder.svg b/tests/testthat/_snaps/ggplot-zorder/boxplot-without-zorder.svg new file mode 100644 index 0000000000..f93ce15522 --- /dev/null +++ b/tests/testthat/_snaps/ggplot-zorder/boxplot-without-zorder.svg @@ -0,0 +1 @@ +468101520253035factor(cyl)mpg diff --git a/tests/testthat/test-ggplot-zorder.R b/tests/testthat/test-ggplot-zorder.R new file mode 100644 index 0000000000..0d1a0fc4e5 --- /dev/null +++ b/tests/testthat/test-ggplot-zorder.R @@ -0,0 +1,55 @@ +# Test zorder assignment and layering + +test_that("boxplot layering without zorder", { + # Simulate old behavior: no automatic zorder assignment + gg <- ggplot(mtcars, aes(factor(cyl), mpg)) + + geom_smooth(aes(group = 1), method = "lm", se = TRUE, alpha = 0.4, + fill = "lightblue", color = "blue") + + geom_boxplot(alpha = 0.8, fill = "orange", color = "darkred", + linewidth = 2, width = 0.6) + + # Build with current version then remove zorder to simulate old behavior + p <- plotly_build(ggplotly(gg)) + + # Remove zorder to simulate old plotly behavior + for (i in seq_along(p$x$data)) { + p$x$data[[i]]$zorder <- NULL + } + + # Generate snapshot without zorder + expect_doppelganger(p, "boxplot-without-zorder") + + expect_equivalent(length(p$x$data), 3) + + # Verify no zorder values (old behavior) + for (i in seq_along(p$x$data)) { + expect_null(p$x$data[[i]]$zorder) + } +}) + +test_that("boxplot layering with zorder", { + # Test current fix: automatic zorder assignment ensures proper layering + gg <- ggplot(mtcars, aes(factor(cyl), mpg)) + + geom_smooth(aes(group = 1), method = "lm", se = TRUE, alpha = 0.4, + fill = "lightblue", color = "blue") + + geom_boxplot(alpha = 0.8, fill = "orange", color = "darkred", + linewidth = 2, width = 0.6) + + L <- expect_doppelganger_built(gg, "boxplot-with-zorder") + + expect_equivalent(length(L$data), 3) + + # Verify automatic zorder assignment (the fix) + expect_equivalent(L$data[[1]]$zorder, 1) # regression line + expect_equivalent(L$data[[2]]$zorder, 2) # confidence interval + expect_equivalent(L$data[[3]]$zorder, 3) # boxplot (highest, on top) + + # Verify trace types + expect_equivalent(L$data[[1]]$type, "scatter") # regression line + expect_equivalent(L$data[[2]]$type, "scatter") # confidence interval + expect_equivalent(L$data[[3]]$type, "box") # boxplot + + # Most important: boxplot has highest zorder (renders on top) + expect_true(L$data[[3]]$zorder > L$data[[1]]$zorder) + expect_true(L$data[[3]]$zorder > L$data[[2]]$zorder) +})