@arcgis/charts-components 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/cdn/{K6N5BBOM.js → 2O72YRTQ.js} +1 -1
  2. package/dist/cdn/{ZPNW6LWT.js → 2XFVXCGM.js} +1 -1
  3. package/dist/cdn/{MFOZISZU.js → 32SGYF75.js} +1 -1
  4. package/dist/cdn/{WEGNK77V.js → 367YKXWB.js} +1 -1
  5. package/dist/cdn/{U2LFGV2U.js → 3EL3F5BJ.js} +1 -1
  6. package/dist/cdn/{QY4I5GS2.js → 3IWAH4DT.js} +1 -1
  7. package/dist/cdn/{M23H264O.js → 3YR34J27.js} +1 -1
  8. package/dist/cdn/{6BJXOUW2.js → 4X746WEL.js} +1 -1
  9. package/dist/cdn/{YUO2G7OX.js → 4YNNLXOR.js} +1 -1
  10. package/dist/cdn/{HCEKAYF5.js → 5R7JSUMU.js} +1 -1
  11. package/dist/cdn/{PXEQJDTP.js → 5V7AXRZE.js} +1 -1
  12. package/dist/cdn/{QMOXGUU6.js → 5VWXFD4N.js} +1 -1
  13. package/dist/cdn/{H2F4EMEO.js → 6BIA4CCW.js} +1 -1
  14. package/dist/cdn/{WC4T47OL.js → 6SZUTGQR.js} +1 -1
  15. package/dist/cdn/{JBWK3DSH.js → 75FTDTLY.js} +1 -1
  16. package/dist/cdn/{RXOISEOG.js → A7CHVVKW.js} +1 -1
  17. package/dist/cdn/{CPYOPFIS.js → AIYLX4ZD.js} +1 -1
  18. package/dist/cdn/{2JFIUU3X.js → AQENV2OK.js} +1 -1
  19. package/dist/cdn/{HBEEYG5R.js → ASK7IPJI.js} +1 -1
  20. package/dist/cdn/{XI3H6GMK.js → BWGRRAY2.js} +1 -1
  21. package/dist/cdn/{3A5542IZ.js → BXBK2LMB.js} +1 -1
  22. package/dist/cdn/{7X2HKQS7.js → CBL7ODB4.js} +1 -1
  23. package/dist/cdn/{LSOS2REF.js → DIH43SPI.js} +1 -1
  24. package/dist/cdn/{KUEF5L2Y.js → DTVMYBN2.js} +1 -1
  25. package/dist/cdn/{UM6YK4R4.js → DXPYSVQO.js} +1 -1
  26. package/dist/cdn/{2WDUA6L4.js → E6J6XV56.js} +1 -1
  27. package/dist/cdn/{XVU4S23S.js → EGWX7725.js} +1 -1
  28. package/dist/cdn/{TWUQ2ILR.js → EMWAI65U.js} +1 -1
  29. package/dist/cdn/{VANTG2HX.js → F5RUYFCK.js} +1 -1
  30. package/dist/cdn/{C2TRAWJB.js → F6G2AX7F.js} +1 -1
  31. package/dist/cdn/{ZWFVKTLC.js → FKOSHYHP.js} +1 -1
  32. package/dist/cdn/{AHPLTCSH.js → GKTUYTL5.js} +1 -1
  33. package/dist/cdn/{D64RR3BQ.js → GLF6VQG2.js} +1 -1
  34. package/dist/cdn/{7HZFPSKD.js → HJHUFGMC.js} +1 -1
  35. package/dist/cdn/{OR5W4LAU.js → HKNCEFUZ.js} +1 -1
  36. package/dist/cdn/{3DYFAIW2.js → HQOVPUSV.js} +1 -1
  37. package/dist/cdn/{64HPM724.js → HXSR2GRV.js} +1 -1
  38. package/dist/cdn/{QLAAJ4TP.js → I4RQGTPI.js} +1 -1
  39. package/dist/cdn/{F7KMJXGD.js → I7P64URF.js} +1 -1
  40. package/dist/cdn/{LM3RWOCL.js → IXSN6MY7.js} +1 -1
  41. package/dist/cdn/{AVVOHZH7.js → J3GQDDD7.js} +1 -1
  42. package/dist/cdn/{HIVZ4CAD.js → JNQF4MND.js} +1 -1
  43. package/dist/cdn/{V6NWTBC4.js → JWWRWZOA.js} +2 -2
  44. package/dist/cdn/{AZIX3IFP.js → JXSYZU73.js} +1 -1
  45. package/dist/cdn/{GFLYSDHX.js → JYZEDT5L.js} +1 -1
  46. package/dist/cdn/{SPXLWSUF.js → K6WRNZNS.js} +1 -1
  47. package/dist/cdn/{QQY7FC2J.js → LICVCZV3.js} +1 -1
  48. package/dist/cdn/{FNHDDK6Y.js → LSK57NVU.js} +1 -1
  49. package/dist/cdn/{SPI2NEGA.js → M66MRAE3.js} +1 -1
  50. package/dist/cdn/{4P6NLXDP.js → ME5RGTHR.js} +1 -1
  51. package/dist/cdn/{LHHRGNPI.js → MHLSVWM2.js} +1 -1
  52. package/dist/cdn/{HXLQEUPH.js → MNWBD3OA.js} +1 -1
  53. package/dist/cdn/{YK5PPTDT.js → MNXW6UGP.js} +1 -1
  54. package/dist/cdn/{EBN6GWGZ.js → MZHNYLPX.js} +1 -1
  55. package/dist/cdn/{AZEQVTDQ.js → N5574IA3.js} +1 -1
  56. package/dist/cdn/{PUWB3ZW4.js → NWRZGL2V.js} +1 -1
  57. package/dist/cdn/{SU5G6JQD.js → NXH363BA.js} +1 -1
  58. package/dist/cdn/{SSLS3BOB.js → OAMDZWDZ.js} +1 -1
  59. package/dist/cdn/{4XSIB5AA.js → OGMBMPKZ.js} +1 -1
  60. package/dist/cdn/{CSV6Q3VU.js → OW4KQXUC.js} +1 -1
  61. package/dist/cdn/{MEQCCHAT.js → PAQZZE7A.js} +1 -1
  62. package/dist/cdn/{EX7VWKWX.js → PI2CILY3.js} +1 -1
  63. package/dist/cdn/{UFYGFN2M.js → PRYQKWMX.js} +1 -1
  64. package/dist/cdn/{R7NIN2IP.js → Q33L7LOR.js} +1 -1
  65. package/dist/cdn/{334U2KAR.js → Q4C23R24.js} +1 -1
  66. package/dist/cdn/{6TV5E5JT.js → QUKWJS5G.js} +1 -1
  67. package/dist/cdn/{PDBL2LVQ.js → R2UHUORO.js} +1 -1
  68. package/dist/cdn/{K7IQIF6X.js → RKVS4TH5.js} +1 -1
  69. package/dist/cdn/{6KA24PEA.js → SMRST37W.js} +1 -1
  70. package/dist/cdn/{4LA6DRGM.js → SO4T7SHP.js} +1 -1
  71. package/dist/cdn/{TTSQHXH3.js → SZOWWM4R.js} +1 -1
  72. package/dist/cdn/{OH3XEKCB.js → TBWDUGLB.js} +1 -1
  73. package/dist/cdn/{NNH6F2PX.js → TO57FEMK.js} +1 -1
  74. package/dist/cdn/{VESCHQRS.js → TPXTDU2N.js} +1 -1
  75. package/dist/cdn/{HCIVARDS.js → TY2WP3ZM.js} +1 -1
  76. package/dist/cdn/{F6NHEUXC.js → U2Q4BITT.js} +1 -1
  77. package/dist/cdn/{VKY6S62L.js → U642I5KG.js} +1 -1
  78. package/dist/cdn/{TLS7SEFF.js → UASSPAWK.js} +1 -1
  79. package/dist/cdn/{JW6KFBCT.js → UJH62UBV.js} +1 -1
  80. package/dist/cdn/{CWJZT5NA.js → UJYCLRQL.js} +1 -1
  81. package/dist/cdn/{CH3BYORW.js → UKVRQWWU.js} +1 -1
  82. package/dist/cdn/{VUZ4QNET.js → UQR667YS.js} +1 -1
  83. package/dist/cdn/{QV7ZOLEX.js → V3OCJ3YN.js} +1 -1
  84. package/dist/cdn/{UUNBOK5Y.js → V7L5DBPI.js} +1 -1
  85. package/dist/cdn/{BSFUPCQF.js → VCUISYN4.js} +1 -1
  86. package/dist/cdn/{BNTRLKLG.js → VD4GDNMU.js} +1 -1
  87. package/dist/cdn/{EXTC334W.js → VPRAC4EI.js} +1 -1
  88. package/dist/cdn/{YX7I5VFP.js → VVJNYF6S.js} +1 -1
  89. package/dist/cdn/{LY7A6MST.js → WBCPWDPR.js} +1 -1
  90. package/dist/cdn/{RV3ILDL6.js → XYJJDRRZ.js} +1 -1
  91. package/dist/cdn/{CPYPTGTK.js → XZ3ARUXR.js} +1 -1
  92. package/dist/cdn/{VPURXMI6.js → YAKN4VHT.js} +1 -1
  93. package/dist/cdn/{WND4PQ7O.js → YBXRGFB3.js} +1 -1
  94. package/dist/cdn/{FCBTMNYR.js → Z3QU4QXL.js} +1 -1
  95. package/dist/cdn/{6IL4JEXA.js → ZEDZGQSY.js} +1 -1
  96. package/dist/cdn/{SS5KCPTA.js → ZJ5I6C2W.js} +1 -1
  97. package/dist/cdn/{OTJX7BJS.js → ZOMWTN7W.js} +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +1 -1
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/components/arcgis-chart/customElement.js +1 -1
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as sn}from"./QVD6LHQ2.js";import{b as zx}from"./2JUO3GP2.js";import p from"./QY4I5GS2.js";import o from"./K6N5BBOM.js";import{c as $x,e as hp,f as Ox,g as Ex,h as Mx,i as Rx,j as yd}from"./PDWS67CW.js";import{a as VT,g as NT}from"./7BDNLABD.js";import n from"./VKY6S62L.js";import{a as Hx}from"./KUEF5L2Y.js";import{a as xT}from"./MZ2UZAFW.js";import m from"./SS5KCPTA.js";import l from"./OR5W4LAU.js";import k from"./7HZFPSKD.js";import j from"./FCBTMNYR.js";import i from"./LSOS2REF.js";import h from"./2JFIUU3X.js";import g from"./4XSIB5AA.js";import{a as Ro,b as OT,c as ET,d as MT,e as jx,k as Wx,q as RT}from"./7MKAC33Z.js";import f from"./TWUQ2ILR.js";import e from"./RXOISEOG.js";import"./NQAPPISU.js";import d from"./LM3RWOCL.js";import c from"./XVU4S23S.js";import b from"./LHHRGNPI.js";import{c as gd,d as Dx,e as op,o as fg,q as Lx,r as vT,s as mg,t as bT,u as lp}from"./KGNYAMFB.js";import a from"./YUO2G7OX.js";import{e as xs,g as io}from"./777EBGS5.js";import{D as JA,E as ep,a as Ut,b as Km,c as pt,d as ke,e as Tr,f as vr,g as Fl,h as cs,i as qA,j as $s,l as tx,n as Or,p as ix,r as zi,v as rx,w as sx,x as Er}from"./P5XJTTU3.js";import{F as ZA,I as Xm,J as Yb,K as zm,N as mF,P as Gm,Q as Kb,R as Zb,S as qb,T as gF,Y as yF,Z as vF,aa as Jb,ea as Ym,f as Eu,h as cd,i as Hm,j as Gb,k as dF,l as jm,o as an,p as Wm,q as xr,ra as bF,s as AF,v as pF,va as xF,w as fF,y as vh,ya as ex,z as Mu}from"./6JI4NDJ6.js";import{a as YA,b as us,c as KA,d as bs,e as Qm,f as Rt}from"./75Y43JLP.js";import{g as Fr,h as ks,k as ku,l as rn}from"./FIMXZMTB.js";import{a as hF,b as Qb,c as Vm,g as Iu}from"./LY7A6MST.js";import{A as nF,B as Um,G as oF,H as lF,g as iF,h as rF,i as ud,l as sF,n as zs,y as aF,z as Nb}from"./2WDUA6L4.js";import{a as UT}from"./CSV6Q3VU.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import{a as ze,b as cF}from"./43P4WOC4.js";import{a as V,b as Pn,e as st,f as Oi,h as GA,i as Hb,j as jb,k as er,l as Nm,m as $u,n as Wb,p as tr,q as uF,r as Ou,t as Xb,u as zb}from"./XOB365BI.js";import{a as zA,b as Rm,c as tF,d as Vb}from"./QPIMTXPL.js";export default $arcgis.t(([Ia,{substitute:Vc},WL,SN,FN,{$:LF,$b:Tx,A:nn,Aa:rp,Ab:ng,B:ux,Ba:mx,Bb:nT,C:Zt,Ca:GF,D:Oo,Da:Ra,E:bh,Ea:ig,F:wF,Fa:rg,G:Jm,Ga:xa,Gb:_x,H:tp,Hb:og,Ia:YF,Ib:lg,J:Qu,Ja:KF,Jb:pd,K:Os,Ka:gx,Kb:hg,La:sg,Lb:oT,Mb:Cx,Na:on,Nb:ug,O:BF,Oa:yx,Pa:Hu,Pb:wx,Qa:ZF,R:Dn,Ra:vx,S:xh,Sa:qF,T:SF,Ta:sp,Tb:Bx,U:It,Ua:oa,Ub:fd,V:FF,Va:Eo,Vb:lT,W:TF,Wa:ap,Wb:cg,X:eg,Xb:hT,Y:_h,Ya:Ad,Yb:Sx,Z:PF,Za:JF,Zb:uT,_:DF,_a:eT,_b:Fx,aa:cx,ab:Ll,ac:cT,b:Tl,ba:IF,bb:tT,c:Zm,ca:kF,cc:np,d:_F,da:$F,db:iT,e:$o,ea:OF,eb:bx,ec:ju,f:ba,fa:EF,fc:Ln,g:Ru,ga:dx,gc:md,h:dd,ha:MF,hc:Zi,i:ro,ia:RF,j:ax,ja:Ax,jc:Mo,k:Pl,ka:UF,l:qm,la:VF,lc:dT,m:so,ma:NF,mb:ag,mc:AT,n:Dl,na:px,nc:pT,o:CF,oa:QF,oc:Px,p:nx,pa:HF,pb:xx,pc:dg,q:ox,qa:tg,qb:_a,qc:Ag,r:ao,ra:jF,rc:fT,s:Uu,sa:WF,sb:Ch,sc:mT,ta:XF,tb:rT,tc:gT,ua:zF,ub:sT,v:Z,vc:pg,w:lx,wa:ip,wb:aT,wc:yT,x:Vu,xa:no,y:Nu,ya:oo,z:hx,za:fx},,{g:_T,i:CT},,,{a:Ix,b:wh},,,,,,{l:wT,m:BT,n:ST,o:FT,p:kx,q:TT,r:PT,s:DT},{a:$T},{q:Xx},{b:QT,c:HT,e:vd},{a:LT,b:IT,c:kT,d:Ux,g:Vx,h:Nx,i:Qx}])=>{var zT=Rm((QY,XT)=>{"use strict";function _U(a){var t=new a,e=t;function i(){var s=t;return s.next?t=s.next:(t=new a,e=t),s.next=null,s}function r(s){e.next=s,e=s}return{get:i,release:r}}XT.exports=_U});var YT=Rm((HY,Yx)=>{"use strict";var CU=zT();function GT(a,t,e){if(typeof a=="function"&&(e=t,t=a,a=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var i=CU(wU),r=null,s=null,n=0,o=null,l={push:f,drain:kn,saturated:kn,pause:u,paused:!1,concurrency:e,running:h,resume:A,idle:p,length:c,getQueue:d,unshift:m,empty:kn,kill:y,killAndDrain:x,error:w};return l;function h(){return n}function u(){l.paused=!0}function c(){for(var S=r,F=0;S;)S=S.next,F++;return F}function d(){for(var S=r,F=[];S;)F.push(S.value),S=S.next;return F}function A(){if(l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)n++,g()}}function p(){return n===0&&l.length()===0}function f(S,F){var T=i.get();T.context=a,T.release=g,T.value=S,T.callback=F||kn,T.errorHandler=o,n===l.concurrency||l.paused?s?(s.next=T,s=T):(r=T,s=T,l.saturated()):(n++,t.call(a,T.value,T.worked))}function m(S,F){var T=i.get();T.context=a,T.release=g,T.value=S,T.callback=F||kn,n===l.concurrency||l.paused?r?(T.next=r,r=T):(r=T,s=T,l.saturated()):(n++,t.call(a,T.value,T.worked))}function g(S){S&&i.release(S);var F=r;F?l.paused?n--:(s===r&&(s=null),r=F.next,F.next=null,t.call(a,F.value,F.worked),s===null&&l.empty()):--n===0&&l.drain()}function y(){r=null,s=null,l.drain=kn}function x(){r=null,s=null,l.drain(),l.drain=kn}function w(S){o=S}}function kn(){}function wU(){this.value=null,this.callback=kn,this.next=null,this.release=kn,this.context=null,this.errorHandler=null;var a=this;this.worked=function(e,i){var r=a.callback,s=a.errorHandler,n=a.value;a.value=null,a.callback=kn,a.errorHandler&&s(e,n),r.call(a.context,e,i),a.release(a)}}function BU(a,t,e){typeof a=="function"&&(e=t,t=a,a=null);function i(u,c){t.call(this,u).then(function(d){c(null,d)},c)}var r=GT(a,i,e),s=r.push,n=r.unshift;return r.push=o,r.unshift=l,r.drained=h,r;function o(u){var c=new Promise(function(d,A){s(u,function(p,f){if(p){A(p);return}d(f)})});return c.catch(kn),c}function l(u){var c=new Promise(function(d,A){n(u,function(p,f){if(p){A(p);return}d(f)})});return c.catch(kn),c}function h(){var u=r.drain,c=new Promise(function(d){r.drain=function(){u(),d()}});return c}}Yx.exports=GT;Yx.exports.promise=BU});var KT=Rm((Kx,Zx)=>{(function(a,t){typeof Kx=="object"&&typeof Zx<"u"?Zx.exports=t():typeof define=="function"&&define.amd?define(t):(a=typeof globalThis<"u"?globalThis:a||self,a.html2canvas=t())})(Kx,(function(){"use strict";var a=function(b,v){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&(C[D]=_[D])},a(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");a(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,D=arguments.length;_<D;_++){C=arguments[_];for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(v[$]=C[$])}return v},e.apply(this,arguments)};function i(b,v,C,_){function D($){return $ instanceof C?$:new C(function(H){H($)})}return new(C||(C=Promise))(function($,H){function W(ne){try{ae(_.next(ne))}catch(Ae){H(Ae)}}function j(ne){try{ae(_.throw(ne))}catch(Ae){H(Ae)}}function ae(ne){ne.done?$(ne.value):D(ne.value).then(W,j)}ae((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if($[0]&1)throw $[1];return $[1]},trys:[],ops:[]},_,D,$,H;return H={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function W(ae){return function(ne){return j([ae,ne])}}function j(ae){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,D&&($=ae[0]&2?D.return:ae[0]?D.throw||(($=D.return)&&$.call(D),0):D.next)&&!($=$.call(D,ae[1])).done)return $;switch(D=0,$&&(ae=[ae[0]&2,$.value]),ae[0]){case 0:case 1:$=ae;break;case 4:return C.label++,{value:ae[1],done:!1};case 5:C.label++,D=ae[1],ae=[0];continue;case 7:ae=C.ops.pop(),C.trys.pop();continue;default:if($=C.trys,!($=$.length>0&&$[$.length-1])&&(ae[0]===6||ae[0]===2)){C=0;continue}if(ae[0]===3&&(!$||ae[1]>$[0]&&ae[1]<$[3])){C.label=ae[1];break}if(ae[0]===6&&C.label<$[1]){C.label=$[1],$=ae;break}if($&&C.label<$[2]){C.label=$[2],C.ops.push(ae);break}$[2]&&C.ops.pop(),C.trys.pop();continue}ae=v.call(b,C)}catch(ne){ae=[6,ne],D=0}finally{_=$=0}if(ae[0]&5)throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}}function s(b,v,C){if(C||arguments.length===2)for(var _=0,D=v.length,$;_<D;_++)($||!(_ in v))&&($||($=Array.prototype.slice.call(v,0,_)),$[_]=v[_]);return b.concat($||v)}for(var n=(function(){function b(v,C,_,D){this.left=v,this.top=C,this.width=_,this.height=D}return b.prototype.add=function(v,C,_,D){return new b(this.left+v,this.top+C,this.width+_,this.height+D)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(D){return D.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),D=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,D)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var $=b.charCodeAt(C++);($&64512)===56320?v.push(((D&1023)<<10)+($&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},u=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,$="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&($+=String.fromCharCode.apply(String,_),_.length=0)}return $},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<c.length;A++)d[c.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array>"u"?[]:new Uint8Array(256),m=0;m<p.length;m++)f[p.charCodeAt(m)]=m;for(var g=function(b){var v=b.length*.75,C=b.length,_,D=0,$,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)$=f[b.charCodeAt(_)],H=f[b.charCodeAt(_+1)],W=f[b.charCodeAt(_+2)],j=f[b.charCodeAt(_+3)],ne[D++]=$<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,F=2,T=S-w,L=65536>>w,O=1<<w,I=O-1,U=1024>>w,P=L+U,Q=P,Y=32,G=Q+Y,ee=65536>>S,te=1<<T,le=te-1,z=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},K=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},we=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),D=Array.isArray(C)?y(C):new Uint16Array(C),$=24,H=z(D,$/2,_[4]/2),W=_[5]===2?z(D,($+_[4])/2):K(_,Math.ceil(($+_[4])/4));return new se(_[0],_[1],_[2],_[3],H,W)},se=(function(){function b(v,C,_,D,$,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=$,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<F)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<F)+(v&I),this.data[C];if(v<this.highStart)return C=G-ee+(v>>S),C=this.index[C],C+=v>>w&le,C=this.index[C],C=(C<<F)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ye=0;Ye<de.length;Ye++)$e[de.charCodeAt(Ye)]=Ye;var We="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLA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AwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAA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gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AH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AB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQAB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wArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcA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ACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAK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wArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAC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BLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAe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QAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qe=50,Tt=1,At=2,_i=3,Bi=4,R=5,Be=7,ve=8,q=9,X=10,oe=11,De=12,Le=13,pe=14,Oe=15,Je=16,Me=17,_t=18,Yi=19,di=20,ys=21,Si=22,Zr=23,yr=24,Fi=25,Po=26,vl=27,aa=28,Jf=29,bl=30,eb=31,qc=32,wu=33,xl=34,lh=35,tb=36,LA=37,ib=38,em=39,tm=40,rb=41,dB=42,w$=43,B$=[9001,65288],AB="!",Ci="\xD7",im="\xF7",sb=we(We),_l=[bl,tb],ab=[Tt,At,_i,R],pB=[X,ve],fB=[vl,Po],S$=ab.concat(pB),mB=[ib,em,tm,xl,lh],F$=[Oe,Le],T$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],D=[];return b.forEach(function($,H){var W=sb.get($);if(W>qe?(D.push(!0),W-=qe):D.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf($)!==-1)return _.push(H),C.push(Je);if(W===Bi||W===oe){if(H===0)return _.push(H),C.push(bl);var j=C[H-1];return S$.indexOf(j)===-1?(_.push(_[H-1]),C.push(j)):(_.push(H),C.push(bl))}if(_.push(H),W===eb)return C.push(v==="strict"?ys:LA);if(W===dB||W===Jf)return C.push(bl);if(W===w$)return $>=131072&&$<=196605||$>=196608&&$<=262141?C.push(LA):C.push(bl);C.push(W)}),[_,C,D]},nb=function(b,v,C,_){var D=_[C];if(Array.isArray(b)?b.indexOf(D)!==-1:b===D)for(var $=C;$<=_.length;){$++;var H=_[$];if(H===v)return!0;if(H!==X)break}if(D===X)for(var $=C;$>0;){$--;var W=_[$];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var H=_[j];if(H===v)return!0;if(H!==X)break}if(W!==X)break}return!1},gB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},P$=function(b,v,C,_,D){if(C[_]===0)return Ci;var $=_-1;if(Array.isArray(D)&&D[$]===!0)return Ci;var H=$-1,W=$+1,j=v[$],ae=H>=0?v[H]:0,ne=v[W];if(j===At&&ne===_i)return Ci;if(ab.indexOf(j)!==-1)return AB;if(ab.indexOf(ne)!==-1||pB.indexOf(ne)!==-1)return Ci;if(gB($,v)===ve)return im;if(sb.get(b[$])===oe||(j===qc||j===wu)&&sb.get(b[W])===oe||j===Be||ne===Be||j===q||[X,Le,Oe].indexOf(j)===-1&&ne===q||[Me,_t,Yi,yr,aa].indexOf(ne)!==-1||gB($,v)===Si||nb(Zr,Si,$,v)||nb([Me,_t],ys,$,v)||nb(De,De,$,v))return Ci;if(j===X)return im;if(j===Zr||ne===Zr)return Ci;if(ne===Je||j===Je)return im;if([Le,Oe,ys].indexOf(ne)!==-1||j===pe||ae===tb&&F$.indexOf(j)!==-1||j===aa&&ne===tb||ne===di||_l.indexOf(ne)!==-1&&j===Fi||_l.indexOf(j)!==-1&&ne===Fi||j===vl&&[LA,qc,wu].indexOf(ne)!==-1||[LA,qc,wu].indexOf(j)!==-1&&ne===Po||_l.indexOf(j)!==-1&&fB.indexOf(ne)!==-1||fB.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||[vl,Po].indexOf(j)!==-1&&(ne===Fi||[Si,Oe].indexOf(ne)!==-1&&v[W+1]===Fi)||[Si,Oe].indexOf(j)!==-1&&ne===Fi||j===Fi&&[Fi,aa,yr].indexOf(ne)!==-1)return Ci;if([Fi,aa,yr,Me,_t].indexOf(ne)!==-1)for(var Ae=$;Ae>=0;){var _e=v[Ae];if(_e===Fi)return Ci;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if([vl,Po].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?H:$;Ae>=0;){var _e=v[Ae];if(_e===Fi)return Ci;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if(ib===j&&[ib,em,xl,lh].indexOf(ne)!==-1||[em,xl].indexOf(j)!==-1&&[em,tm].indexOf(ne)!==-1||[tm,lh].indexOf(j)!==-1&&ne===tm||mB.indexOf(j)!==-1&&[di,Po].indexOf(ne)!==-1||mB.indexOf(ne)!==-1&&j===vl||_l.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||j===yr&&_l.indexOf(ne)!==-1||_l.concat(Fi).indexOf(j)!==-1&&ne===Si&&B$.indexOf(b[W])===-1||_l.concat(Fi).indexOf(ne)!==-1&&j===_t)return Ci;if(j===rb&&ne===rb){for(var lt=C[$],Ue=1;lt>0&&(lt--,v[lt]===rb);)Ue++;if(Ue%2!==0)return Ci}return j===qc&&ne===wu?Ci:im},D$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=T$(b,v.lineBreak),_=C[0],D=C[1],$=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(D=D.map(function(W){return[Fi,bl,dB].indexOf(W)!==-1?LA:W}));var H=v.wordBreak==="keep-all"?$.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,D,H]},L$=(function(){function b(v,C,_,D){this.codePoints=v,this.required=C===AB,this.start=_,this.end=D}return b.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),I$=function(b,v){var C=h(b),_=D$(C,v),D=_[0],$=_[1],H=_[2],W=C.length,j=0,ae=0;return{next:function(){if(ae>=W)return{done:!0,value:null};for(var ne=Ci;ae<W&&(ne=P$(C,$,D,++ae,H))===Ci;);if(ne!==Ci||ae===W){var Ae=new L$(C,ne,j,ae);return j=ae,{value:Ae,done:!1}}return{done:!0,value:null}}}},k$=1,$$=2,IA=4,yB=8,rm=10,vB=47,kA=92,O$=9,E$=32,sm=34,$A=61,M$=35,R$=36,U$=37,am=39,nm=40,OA=41,V$=95,$a=45,N$=33,Q$=60,H$=62,j$=64,W$=91,X$=93,z$=61,G$=123,om=63,Y$=125,bB=124,K$=126,Z$=128,xB=65533,ob=42,Bu=43,q$=44,J$=58,eO=59,EA=46,tO=0,iO=8,rO=11,sO=14,aO=31,nO=127,Do=-1,_B=48,CB=97,wB=101,oO=102,lO=117,hO=122,BB=65,SB=69,FB=70,uO=85,cO=90,na=function(b){return b>=_B&&b<=57},dO=function(b){return b>=55296&&b<=57343},Jc=function(b){return na(b)||b>=BB&&b<=FB||b>=CB&&b<=oO},AO=function(b){return b>=CB&&b<=hO},pO=function(b){return b>=BB&&b<=cO},fO=function(b){return AO(b)||pO(b)},mO=function(b){return b>=Z$},lm=function(b){return b===rm||b===O$||b===E$},hm=function(b){return fO(b)||mO(b)||b===V$},TB=function(b){return hm(b)||na(b)||b===$a},gO=function(b){return b>=tO&&b<=iO||b===rO||b>=sO&&b<=aO||b===nO},hh=function(b,v){return b!==kA?!1:v!==rm},um=function(b,v,C){return b===$a?hm(v)||hh(v,C):hm(b)?!0:!!(b===kA&&hh(b,v))},lb=function(b,v,C){return b===Bu||b===$a?na(v)?!0:v===EA&&na(C):na(b===EA?v:b)},yO=function(b){var v=0,C=1;(b[v]===Bu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];na(b[v]);)_.push(b[v++]);var D=_.length?parseInt(u.apply(void 0,_),10):0;b[v]===EA&&v++;for(var $=[];na(b[v]);)$.push(b[v++]);var H=$.length,W=H?parseInt(u.apply(void 0,$),10):0;(b[v]===SB||b[v]===wB)&&v++;var j=1;(b[v]===Bu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var ae=[];na(b[v]);)ae.push(b[v++]);var ne=ae.length?parseInt(u.apply(void 0,ae),10):0;return C*(D+W*Math.pow(10,-H))*Math.pow(10,j*ne)},vO={type:2},bO={type:3},xO={type:4},_O={type:13},CO={type:8},wO={type:21},BO={type:9},SO={type:10},FO={type:11},TO={type:12},PO={type:14},cm={type:23},DO={type:1},LO={type:25},IO={type:24},kO={type:26},$O={type:27},OO={type:28},EO={type:29},MO={type:31},hb={type:32},PB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==hb;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case sm:return this.consumeStringToken(sm);case M$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),D=this.peekCodePoint(2);if(TB(C)||hh(_,D)){var $=um(C,_,D)?$$:k$,H=this.consumeName();return{type:5,value:H,flags:$}}break;case R$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),_O;break;case am:return this.consumeStringToken(am);case nm:return vO;case OA:return bO;case ob:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),PO;break;case Bu:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case q$:return xO;case $a:var W=v,j=this.peekCodePoint(0),ae=this.peekCodePoint(1);if(lb(W,j,ae))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(um(W,j,ae))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&ae===H$)return this.consumeCodePoint(),this.consumeCodePoint(),IO;break;case EA:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case vB:if(this.peekCodePoint(0)===ob)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ob&&(ne=this.consumeCodePoint(),ne===vB))return this.consumeToken();if(ne===Do)return this.consumeToken()}break;case J$:return kO;case eO:return $O;case Q$:if(this.peekCodePoint(0)===N$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),LO;break;case j$:var Ae=this.peekCodePoint(0),_e=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(um(Ae,_e,lt)){var H=this.consumeName();return{type:7,value:H}}break;case W$:return OO;case kA:if(hh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case X$:return EO;case z$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),CO;break;case G$:return FO;case Y$:return TO;case lO:case uO:var Ue=this.peekCodePoint(0),Ze=this.peekCodePoint(1);return Ue===Bu&&(Jc(Ze)||Ze===om)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case bB:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),BO;if(this.peekCodePoint(0)===bB)return this.consumeCodePoint(),wO;break;case K$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),SO;break;case Do:return hb}return lm(v)?(this.consumeWhiteSpace(),MO):na(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):hm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:u(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Jc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===om&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var D=parseInt(u.apply(void 0,v.map(function(j){return j===om?_B:j})),16),$=parseInt(u.apply(void 0,v.map(function(j){return j===om?FB:j})),16);return{type:30,start:D,end:$}}var H=parseInt(u.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Jc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Jc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var $=parseInt(u.apply(void 0,W),16);return{type:30,start:H,end:$}}else return{type:30,start:H,end:H}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===nm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===nm?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===am||C===sm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===OA)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),cm)}for(;;){var D=this.consumeCodePoint();if(D===Do||D===OA)return{type:22,value:u.apply(void 0,v)};if(lm(D))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===OA?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,v)}):(this.consumeBadUrlRemnants(),cm);if(D===sm||D===am||D===nm||gO(D))return this.consumeBadUrlRemnants(),cm;if(D===kA)if(hh(D,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),cm;else v.push(D)}},b.prototype.consumeWhiteSpace=function(){for(;lm(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===OA||v===Do)return;hh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var D=Math.min(C,v);_+=u.apply(void 0,this._value.splice(0,D)),v-=D}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var D=this._value[_];if(D===Do||D===void 0||D===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(D===rm)return this._value.splice(0,_),DO;if(D===kA){var $=this._value[_+1];$!==Do&&$!==void 0&&($===rm?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):hh(D,$)&&(C+=this.consumeStringSlice(_),C+=u(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=IA,_=this.peekCodePoint(0);for((_===Bu||_===$a)&&v.push(this.consumeCodePoint());na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var D=this.peekCodePoint(1);if(_===EA&&na(D))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=yB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),D=this.peekCodePoint(1);var $=this.peekCodePoint(2);if((_===SB||_===wB)&&((D===Bu||D===$a)&&na($)||na(D)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=yB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[yO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],D=this.peekCodePoint(0),$=this.peekCodePoint(1),H=this.peekCodePoint(2);if(um(D,$,H)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return D===U$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Jc(v)){for(var C=u(v);Jc(this.peekCodePoint(0))&&C.length<6;)C+=u(this.consumeCodePoint());lm(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||dO(_)||_>1114111?xB:_}return v===Do?xB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(TB(C))v+=u(C);else if(hh(C,this.peekCodePoint(0)))v+=u(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),DB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new PB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||UO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?hb:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),MA=function(b){return b.type===15},ed=function(b){return b.type===17},hr=function(b){return b.type===20},RO=function(b){return b.type===0},ub=function(b,v){return hr(b)&&b.value===v},LB=function(b){return b.type!==31},td=function(b){return b.type!==31&&b.type!==4},Lo=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},UO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},uh=function(b){return b.type===17||b.type===15},ls=function(b){return b.type===16||uh(b)},IB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},js={type:17,number:0,flags:IA},cb={type:16,number:50,flags:IA},ch={type:16,number:100,flags:IA},RA=function(b,v,C){var _=b[0],D=b[1];return[br(_,v),br(typeof D<"u"?D:_,C)]},br=function(b,v){if(b.type===16)return b.number/100*v;if(MA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},kB="deg",$B="grad",OB="rad",EB="turn",dm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case kB:return Math.PI*v.number/180;case $B:return Math.PI/200*v.number;case OB:return v.number;case EB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},MB=function(b){return b.type===15&&(b.unit===kB||b.unit===$B||b.unit===OB||b.unit===EB)},RB=function(b){var v=b.filter(hr).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[js,js];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[js,ch];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ch,ch];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ch,js];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},dh={name:"color",parse:function(b,v){if(v.type===18){var C=VO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),D=v.value.substring(1,2),$=v.value.substring(2,3);return ph(parseInt(_+_,16),parseInt(D+D,16),parseInt($+$,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),D=v.value.substring(1,2),$=v.value.substring(2,3),H=v.value.substring(3,4);return ph(parseInt(_+_,16),parseInt(D+D,16),parseInt($+$,16),parseInt(H+H,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),D=v.value.substring(2,4),$=v.value.substring(4,6);return ph(parseInt(_,16),parseInt(D,16),parseInt($,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),D=v.value.substring(2,4),$=v.value.substring(4,6),H=v.value.substring(6,8);return ph(parseInt(_,16),parseInt(D,16),parseInt($,16),parseInt(H,16)/255)}}if(v.type===20){var W=Cl[v.value.toUpperCase()];if(typeof W<"u")return W}return Cl.TRANSPARENT}},Ah=function(b){return(255&b)===0},Is=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,D=255&b>>24;return v<255?"rgba("+D+","+_+","+C+","+v/255+")":"rgb("+D+","+_+","+C+")"},ph=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},UB=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},VB=function(b,v){var C=v.filter(td);if(C.length===3){var _=C.map(UB),D=_[0],$=_[1],H=_[2];return ph(D,$,H,1)}if(C.length===4){var W=C.map(UB),D=W[0],$=W[1],H=W[2],j=W[3];return ph(D,$,H,j)}return 0};function db(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var NB=function(b,v){var C=v.filter(td),_=C[0],D=C[1],$=C[2],H=C[3],W=(_.type===17?Bn(_.number):dm.parse(b,_))/(Math.PI*2),j=ls(D)?D.number/100:0,ae=ls($)?$.number/100:0,ne=typeof H<"u"&&ls(H)?br(H,1):1;if(j===0)return ph(ae*255,ae*255,ae*255,1);var Ae=ae<=.5?ae*(j+1):ae+j-ae*j,_e=ae*2-Ae,lt=db(_e,Ae,W+1/3),Ue=db(_e,Ae,W),Ze=db(_e,Ae,W-1/3);return ph(lt*255,Ue*255,Ze*255,ne)},VO={hsl:NB,hsla:NB,rgb:VB,rgba:VB},UA=function(b,v){return dh.parse(b,DB.create(v).parseComponentValue())},Cl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},NO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(hr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},QO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Am=function(b,v){var C=dh.parse(b,v[0]),_=v[1];return _&&ls(_)?{color:C,stop:_}:{color:C,stop:null}},QB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=js),_.stop===null&&(_.stop=ch);for(var D=[],$=0,H=0;H<b.length;H++){var W=b[H].stop;if(W!==null){var j=br(W,v);j>$?D.push(j):D.push($),$=j}else D.push(null)}for(var ae=null,H=0;H<D.length;H++){var ne=D[H];if(ne===null)ae===null&&(ae=H);else if(ae!==null){for(var Ae=H-ae,_e=D[ae-1],lt=(ne-_e)/(Ae+1),Ue=1;Ue<=Ae;Ue++)D[ae+Ue-1]=lt*Ue;ae=null}}return b.map(function(Ze,ii){var bt=Ze.color;return{color:bt,stop:Math.max(Math.min(1,D[ii]/v),0)}})},HO=function(b,v,C){var _=v/2,D=C/2,$=br(b[0],v)-_,H=D-br(b[1],C);return(Math.atan2(H,$)+Math.PI*2)%(Math.PI*2)},jO=function(b,v,C){var _=typeof b=="number"?b:HO(b,v,C),D=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),$=v/2,H=C/2,W=D/2,j=Math.sin(_-Math.PI/2)*W,ae=Math.cos(_-Math.PI/2)*W;return[D,$-ae,$+ae,H-j,H+j]},to=function(b,v){return Math.sqrt(b*b+v*v)},HB=function(b,v,C,_,D){var $=[[0,0],[0,v],[b,0],[b,v]];return $.reduce(function(H,W){var j=W[0],ae=W[1],ne=to(C-j,_-ae);return(D?ne<H.optimumDistance:ne>H.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:H},{optimumDistance:D?1/0:-1/0,optimumCorner:null}).optimumCorner},WO=function(b,v,C,_,D){var $=0,H=0;switch(b.size){case 0:b.shape===0?$=H=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&($=Math.min(Math.abs(v),Math.abs(v-_)),H=Math.min(Math.abs(C),Math.abs(C-D)));break;case 2:if(b.shape===0)$=H=Math.min(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-D))/Math.min(Math.abs(v),Math.abs(v-_)),j=HB(_,D,v,C,!0),ae=j[0],ne=j[1];$=to(ae-v,(ne-C)/W),H=W*$}break;case 1:b.shape===0?$=H=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&($=Math.max(Math.abs(v),Math.abs(v-_)),H=Math.max(Math.abs(C),Math.abs(C-D)));break;case 3:if(b.shape===0)$=H=Math.max(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-D))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=HB(_,D,v,C,!1),ae=Ae[0],ne=Ae[1];$=to(ae-v,(ne-C)/W),H=W*$}break}return Array.isArray(b.size)&&($=br(b.size[0],_),H=b.size.length===2?br(b.size[1],D):$),[$,H]},XO=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,$){if($===0){var H=D[0];if(H.type===20&&H.value==="to"){C=RB(D);return}else if(MB(H)){C=dm.parse(b,H);return}}var W=Am(b,D);_.push(W)}),{angle:C,stops:_,type:1}},pm=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,$){if($===0){var H=D[0];if(H.type===20&&["top","left","right","bottom"].indexOf(H.value)!==-1){C=RB(D);return}else if(MB(H)){C=(dm.parse(b,H)+Bn(270))%Bn(360);return}}var W=Am(b,D);_.push(W)}),{angle:C,stops:_,type:1}},zO=function(b,v){var C=Bn(180),_=[],D=1,$=0,H=3,W=[];return Lo(v).forEach(function(j,ae){var ne=j[0];if(ae===0){if(hr(ne)&&ne.value==="linear"){D=1;return}else if(hr(ne)&&ne.value==="radial"){D=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=dh.parse(b,ne.values[0]);_.push({stop:js,color:Ae})}else if(ne.name==="to"){var Ae=dh.parse(b,ne.values[0]);_.push({stop:ch,color:Ae})}else if(ne.name==="color-stop"){var _e=ne.values.filter(td);if(_e.length===2){var Ae=dh.parse(b,_e[1]),lt=_e[0];ed(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),D===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:D}:{size:H,shape:$,stops:_,position:W,type:D}},jB="closest-side",WB="farthest-side",XB="closest-corner",zB="farthest-corner",GB="circle",YB="ellipse",KB="cover",ZB="contain",GO=function(b,v){var C=0,_=3,D=[],$=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0){var ae=!1;j=H.reduce(function(Ae,_e){if(ae)if(hr(_e))switch(_e.value){case"center":return $.push(cb),Ae;case"top":case"left":return $.push(js),Ae;case"right":case"bottom":return $.push(ch),Ae}else(ls(_e)||uh(_e))&&$.push(_e);else if(hr(_e))switch(_e.value){case GB:return C=0,!1;case YB:return C=1,!1;case"at":return ae=!0,!1;case jB:return _=0,!1;case KB:case WB:return _=1,!1;case ZB:case XB:return _=2,!1;case zB:return _=3,!1}else if(uh(_e)||ls(_e))return Array.isArray(_)||(_=[]),_.push(_e),!1;return Ae},j)}if(j){var ne=Am(b,H);D.push(ne)}}),{size:_,shape:C,stops:D,position:$,type:2}},fm=function(b,v){var C=0,_=3,D=[],$=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0?j=H.reduce(function(ne,Ae){if(hr(Ae))switch(Ae.value){case"center":return $.push(cb),!1;case"top":case"left":return $.push(js),!1;case"right":case"bottom":return $.push(ch),!1}else if(ls(Ae)||uh(Ae))return $.push(Ae),!1;return ne},j):W===1&&(j=H.reduce(function(ne,Ae){if(hr(Ae))switch(Ae.value){case GB:return C=0,!1;case YB:return C=1,!1;case ZB:case jB:return _=0,!1;case WB:return _=1,!1;case XB:return _=2,!1;case KB:case zB:return _=3,!1}else if(uh(Ae)||ls(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var ae=Am(b,H);D.push(ae)}}),{size:_,shape:C,stops:D,position:$,type:2}},YO=function(b){return b.type===1},KO=function(b){return b.type===2},Ab={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=qB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function ZO(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!qB[b.name])}var qB={"linear-gradient":XO,"-moz-linear-gradient":pm,"-ms-linear-gradient":pm,"-o-linear-gradient":pm,"-webkit-linear-gradient":pm,"radial-gradient":GO,"-moz-radial-gradient":fm,"-ms-radial-gradient":fm,"-o-radial-gradient":fm,"-webkit-radial-gradient":fm,"-webkit-gradient":zO},qO={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return td(_)&&ZO(_)}).map(function(_){return Ab.parse(b,_)})}},JO={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(hr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},eE={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(ls)}).map(IB)}},tE={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(hr).map(function(_){return _.value}).join(" ")}).map(iE)}},iE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},id;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(id||(id={}));var rE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(sE)})}},sE=function(b){return hr(b)||ls(b)},mm=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},aE=mm("top"),nE=mm("right"),oE=mm("bottom"),lE=mm("left"),gm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return IB(C.filter(ls))}}},hE=gm("top-left"),uE=gm("top-right"),cE=gm("bottom-right"),dE=gm("bottom-left"),ym=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},AE=ym("top"),pE=ym("right"),fE=ym("bottom"),mE=ym("left"),vm=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return MA(C)?C.number:0}}},gE=vm("top"),yE=vm("right"),vE=vm("bottom"),bE=vm("left"),xE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_E={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},CE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).reduce(function(C,_){return C|wE(_.value)},0)}},wE=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},BE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},SE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},bm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(bm||(bm={}));var FE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?bm.STRICT:bm.NORMAL}},TE={name:"line-height",initialValue:"normal",prefix:!1,type:4},JB=function(b,v){return hr(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:ls(b)?br(b,v):v},PE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:Ab.parse(b,v)}},DE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},pb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},xm=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},LE=xm("top"),IE=xm("right"),kE=xm("bottom"),$E=xm("left"),OE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},EE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},_m=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ME=_m("top"),RE=_m("right"),UE=_m("bottom"),VE=_m("left"),NE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},QE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},HE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:Cl.TRANSPARENT,offsetX:js,offsetY:js,blur:js},D=0,$=0;$<C.length;$++){var H=C[$];uh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:_.blur=H,D++):_.color=dh.parse(b,H)}return _})}},jE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},WE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=GE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},XE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},zE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var D=v[4],$=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var H=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,D,$,H,W]:null},GE={matrix:XE,matrix3d:zE},eS={type:16,number:50,flags:IA},YE=[eS,eS],KE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(ls);return C.length!==2?YE:[C[0],C[1]]}},ZE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},VA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(VA||(VA={}));for(var qE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return VA.BREAK_ALL;case"keep-all":return VA.KEEP_ALL;default:return VA.NORMAL}}},JE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(ed(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},tS={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},eM={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return ed(v)?v.number:1}},tM={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},rM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(D){switch(D.type){case 20:case 0:C.push(D.value);break;case 17:C.push(D.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(D){return D.indexOf(" ")===-1?D:"'"+D+"'"})}},sM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},aM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return ed(v)?v.number:hr(v)&&v.value==="bold"?700:400}},nM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(hr).map(function(C){return C.value})}},oM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},vs=function(b,v){return(b&v)!==0},lM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},hM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],D=v.filter(LB),$=0;$<D.length;$++){var H=D[$],W=D[$+1];if(H.type===20){var j=W&&ed(W)?W.number:1;_.push({counter:H.value,increment:j})}}return _}},uM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(LB),D=0;D<_.length;D++){var $=_[D],H=_[D+1];if(hr($)&&$.value!=="none"){var W=H&&ed(H)?H.number:0;C.push({counter:$.value,reset:W})}}return C}},cM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(MA).map(function(C){return tS.parse(b,C)})}},dM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],D=v.filter(RO);if(D.length%2!==0)return null;for(var $=0;$<D.length;$+=2){var H=D[$].value,W=D[$+1].value;_.push({open:H,close:W})}return _}},iS=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},AM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:255,offsetX:js,offsetY:js,blur:js,spread:js,inset:!1},D=0,$=0;$<C.length;$++){var H=C[$];ub(H,"inset")?_.inset=!0:uh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:D===2?_.blur=H:_.spread=H,D++):_.color=dh.parse(b,H)}return _})}},pM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(hr).forEach(function(D){switch(D.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(D){_.indexOf(D)===-1&&_.push(D)}),_}},fM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return MA(v)?v.number:0}},gM=(function(){function b(v,C){var _,D;this.animationDuration=dt(v,cM,C.animationDuration),this.backgroundClip=dt(v,NO,C.backgroundClip),this.backgroundColor=dt(v,QO,C.backgroundColor),this.backgroundImage=dt(v,qO,C.backgroundImage),this.backgroundOrigin=dt(v,JO,C.backgroundOrigin),this.backgroundPosition=dt(v,eE,C.backgroundPosition),this.backgroundRepeat=dt(v,tE,C.backgroundRepeat),this.backgroundSize=dt(v,rE,C.backgroundSize),this.borderTopColor=dt(v,aE,C.borderTopColor),this.borderRightColor=dt(v,nE,C.borderRightColor),this.borderBottomColor=dt(v,oE,C.borderBottomColor),this.borderLeftColor=dt(v,lE,C.borderLeftColor),this.borderTopLeftRadius=dt(v,hE,C.borderTopLeftRadius),this.borderTopRightRadius=dt(v,uE,C.borderTopRightRadius),this.borderBottomRightRadius=dt(v,cE,C.borderBottomRightRadius),this.borderBottomLeftRadius=dt(v,dE,C.borderBottomLeftRadius),this.borderTopStyle=dt(v,AE,C.borderTopStyle),this.borderRightStyle=dt(v,pE,C.borderRightStyle),this.borderBottomStyle=dt(v,fE,C.borderBottomStyle),this.borderLeftStyle=dt(v,mE,C.borderLeftStyle),this.borderTopWidth=dt(v,gE,C.borderTopWidth),this.borderRightWidth=dt(v,yE,C.borderRightWidth),this.borderBottomWidth=dt(v,vE,C.borderBottomWidth),this.borderLeftWidth=dt(v,bE,C.borderLeftWidth),this.boxShadow=dt(v,AM,C.boxShadow),this.color=dt(v,xE,C.color),this.direction=dt(v,_E,C.direction),this.display=dt(v,CE,C.display),this.float=dt(v,BE,C.cssFloat),this.fontFamily=dt(v,rM,C.fontFamily),this.fontSize=dt(v,sM,C.fontSize),this.fontStyle=dt(v,oM,C.fontStyle),this.fontVariant=dt(v,nM,C.fontVariant),this.fontWeight=dt(v,aM,C.fontWeight),this.letterSpacing=dt(v,SE,C.letterSpacing),this.lineBreak=dt(v,FE,C.lineBreak),this.lineHeight=dt(v,TE,C.lineHeight),this.listStyleImage=dt(v,PE,C.listStyleImage),this.listStylePosition=dt(v,DE,C.listStylePosition),this.listStyleType=dt(v,pb,C.listStyleType),this.marginTop=dt(v,LE,C.marginTop),this.marginRight=dt(v,IE,C.marginRight),this.marginBottom=dt(v,kE,C.marginBottom),this.marginLeft=dt(v,$E,C.marginLeft),this.opacity=dt(v,eM,C.opacity);var $=dt(v,OE,C.overflow);this.overflowX=$[0],this.overflowY=$[$.length>1?1:0],this.overflowWrap=dt(v,EE,C.overflowWrap),this.paddingTop=dt(v,ME,C.paddingTop),this.paddingRight=dt(v,RE,C.paddingRight),this.paddingBottom=dt(v,UE,C.paddingBottom),this.paddingLeft=dt(v,VE,C.paddingLeft),this.paintOrder=dt(v,pM,C.paintOrder),this.position=dt(v,QE,C.position),this.textAlign=dt(v,NE,C.textAlign),this.textDecorationColor=dt(v,tM,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=dt(v,iM,(D=C.textDecorationLine)!==null&&D!==void 0?D:C.textDecoration),this.textShadow=dt(v,HE,C.textShadow),this.textTransform=dt(v,jE,C.textTransform),this.transform=dt(v,WE,C.transform),this.transformOrigin=dt(v,KE,C.transformOrigin),this.visibility=dt(v,ZE,C.visibility),this.webkitTextStrokeColor=dt(v,fM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=dt(v,mM,C.webkitTextStrokeWidth),this.wordBreak=dt(v,qE,C.wordBreak),this.zIndex=dt(v,JE,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return Ah(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return vs(this.display,4)||vs(this.display,33554432)||vs(this.display,268435456)||vs(this.display,536870912)||vs(this.display,67108864)||vs(this.display,134217728)},b})(),yM=(function(){function b(v,C){this.content=dt(v,lM,C.content),this.quotes=dt(v,dM,C.quotes)}return b})(),rS=(function(){function b(v,C){this.counterIncrement=dt(v,hM,C.counterIncrement),this.counterReset=dt(v,uM,C.counterReset)}return b})(),dt=function(b,v,C){var _=new PB,D=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(D);var $=new DB(_.read());switch(v.type){case 2:var H=$.parseComponentValue();return v.parse(b,hr(H)?H.value:v.initialValue);case 0:return v.parse(b,$.parseComponentValue());case 1:return v.parse(b,$.parseComponentValues());case 4:return $.parseComponentValue();case 3:switch(v.format){case"angle":return dm.parse(b,$.parseComponentValue());case"color":return dh.parse(b,$.parseComponentValue());case"image":return Ab.parse(b,$.parseComponentValue());case"length":var W=$.parseComponentValue();return uh(W)?W:js;case"length-percentage":var j=$.parseComponentValue();return ls(j)?j:js;case"time":return tS.parse(b,$.parseComponentValue())}break}},vM="data-html2canvas-debug",bM=function(b){var v=b.getAttribute(vM);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fb=function(b,v){var C=bM(b);return C===1||v===C},Io=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,fb(C,3))debugger;this.styles=new gM(v,window.getComputedStyle(C,null)),Pb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),fb(C,4)&&(this.flags|=16)}return b})(),xM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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NAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABg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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKB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AAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",sS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NA=typeof Uint8Array>"u"?[]:new Uint8Array(256),Cm=0;Cm<sS.length;Cm++)NA[sS.charCodeAt(Cm)]=Cm;for(var _M=function(b){var v=b.length*.75,C=b.length,_,D=0,$,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)$=NA[b.charCodeAt(_)],H=NA[b.charCodeAt(_+1)],W=NA[b.charCodeAt(_+2)],j=NA[b.charCodeAt(_+3)],ne[D++]=$<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},CM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},wM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},Su=5,mb=11,gb=2,BM=mb-Su,aS=65536>>Su,SM=1<<Su,yb=SM-1,FM=1024>>Su,TM=aS+FM,PM=TM,DM=32,LM=PM+DM,IM=65536>>mb,kM=1<<BM,$M=kM-1,nS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},OM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},EM=function(b,v){var C=_M(b),_=Array.isArray(C)?wM(C):new Uint32Array(C),D=Array.isArray(C)?CM(C):new Uint16Array(C),$=24,H=nS(D,$/2,_[4]/2),W=_[5]===2?nS(D,($+_[4])/2):OM(_,Math.ceil(($+_[4])/4));return new MM(_[0],_[1],_[2],_[3],H,W)},MM=(function(){function b(v,C,_,D,$,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=$,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>Su],C=(C<<gb)+(v&yb),this.data[C];if(v<=65535)return C=this.index[aS+(v-55296>>Su)],C=(C<<gb)+(v&yb),this.data[C];if(v<this.highStart)return C=LM-IM+(v>>mb),C=this.index[C],C+=v>>Su&$M,C=this.index[C],C=(C<<gb)+(v&yb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),oS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",RM=typeof Uint8Array>"u"?[]:new Uint8Array(256),wm=0;wm<oS.length;wm++)RM[oS.charCodeAt(wm)]=wm;var UM=1,vb=2,bb=3,lS=4,hS=5,VM=7,uS=8,xb=9,_b=10,cS=11,dS=12,AS=13,pS=14,Cb=15,NM=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var $=b.charCodeAt(C++);($&64512)===56320?v.push(((D&1023)<<10)+($&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},QM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,$="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&($+=String.fromCharCode.apply(String,_),_.length=0)}return $},HM=EM(xM),Sn="\xD7",wb="\xF7",jM=function(b){return HM.get(b)},WM=function(b,v,C){var _=C-2,D=v[_],$=v[C-1],H=v[C];if($===vb&&H===bb)return Sn;if($===vb||$===bb||$===lS||H===vb||H===bb||H===lS)return wb;if($===uS&&[uS,xb,cS,dS].indexOf(H)!==-1||($===cS||$===xb)&&(H===xb||H===_b)||($===dS||$===_b)&&H===_b||H===AS||H===hS||H===VM||$===UM)return Sn;if($===AS&&H===pS){for(;D===hS;)D=v[--_];if(D===pS)return Sn}if($===Cb&&H===Cb){for(var W=0;D===Cb;)W++,D=v[--_];if(W%2===0)return Sn}return wb},XM=function(b){var v=NM(b),C=v.length,_=0,D=0,$=v.map(jM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var H=Sn;_<C&&(H=WM(v,$,++_))===Sn;);if(H!==Sn||_===C){var W=QM.apply(null,v.slice(D,_));return D=_,{value:W,done:!1}}return{done:!0,value:null}}}},zM=function(b){for(var v=XM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},GM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var D=C.getBoundingClientRect(),$=Math.round(D.height);if(b.body.removeChild(_),$===v)return!0}}return!1},YM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var _=v.firstChild,D=h(_.data).map(function(j){return u(j)}),$=0,H={},W=D.every(function(j,ae){C.setStart(_,$),C.setEnd(_,$+j.length);var ne=C.getBoundingClientRect();$+=j.length;var Ae=ne.x>H.x||ne.y>H.y;return H=ne,ae===0?!0:Ae});return b.body.removeChild(v),W},KM=function(){return typeof new Image().crossOrigin<"u"},ZM=function(){return typeof new XMLHttpRequest().responseType=="string"},qM=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},fS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},JM=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var D=new Image,$=v.toDataURL();D.src=$;var H=Bb(C,C,0,0,D);return _.fillStyle="red",_.fillRect(0,0,C,C),mS(H).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var ae=b.createElement("div");return ae.style.backgroundImage="url("+$+")",ae.style.height=C+"px",fS(j)?mS(Bb(C,C,0,0,ae)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),fS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Bb=function(b,v,C,_,D){var $="http://www.w3.org/2000/svg",H=document.createElementNS($,"svg"),W=document.createElementNS($,"foreignObject");return H.setAttributeNS(null,"width",b.toString()),H.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),H.appendChild(W),W.appendChild(D),H},mS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},Ws={get SUPPORT_RANGE_BOUNDS(){var b=GM(document);return Object.defineProperty(Ws,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=Ws.SUPPORT_RANGE_BOUNDS&&YM(document);return Object.defineProperty(Ws,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=qM(document);return Object.defineProperty(Ws,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?JM(document):Promise.resolve(!1);return Object.defineProperty(Ws,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=KM();return Object.defineProperty(Ws,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=ZM();return Object.defineProperty(Ws,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ws,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ws,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},QA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),eR=function(b,v,C,_){var D=rR(v,C),$=[],H=0;return D.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(Ws.SUPPORT_RANGE_BOUNDS){var j=gS(_,H,W.length).getClientRects();if(j.length>1){var ae=Sb(W),ne=0;ae.forEach(function(_e){$.push(new QA(_e,n.fromDOMRectList(b,gS(_,ne+H,_e.length).getClientRects()))),ne+=_e.length})}else $.push(new QA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);$.push(new QA(W,tR(b,_))),_=Ae}else Ws.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));H+=W.length}),$},tR=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var D=v.parentNode;if(D){D.replaceChild(_,v);var $=o(b,_);return _.firstChild&&D.replaceChild(_.firstChild,_),$}}return n.EMPTY},gS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var D=_.createRange();return D.setStart(b,v),D.setEnd(b,v+C),D},Sb=function(b){if(Ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return zM(b)},iR=function(b,v){if(Ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return aR(b,v)},rR=function(b,v){return v.letterSpacing!==0?Sb(b):iR(b,v)},sR=[32,160,4961,65792,65793,4153,4241],aR=function(b,v){for(var C=I$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],D,$=function(){if(D.value){var H=D.value.slice(),W=h(H),j="";W.forEach(function(ae){sR.indexOf(ae)===-1?j+=u(ae):(j.length&&_.push(j),_.push(u(ae)),j="")}),j.length&&_.push(j)}};!(D=C.next()).done;)$();return _},nR=(function(){function b(v,C,_){this.text=oR(C.data,_.textTransform),this.textBounds=eR(v,this.text,_,C)}return b})(),oR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(lR,hR);case 2:return b.toUpperCase();default:return b}},lR=/(^|\s|:|-|\(|\))([a-z])/g,hR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},yS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.src=_.currentSrc||_.src,D.intrinsicWidth=_.naturalWidth,D.intrinsicHeight=_.naturalHeight,D.context.cache.addImage(D.src),D}return v})(Io),vS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.canvas=_,D.intrinsicWidth=_.width,D.intrinsicHeight=_.height,D}return v})(Io),bS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,$=new XMLSerializer,H=o(C,_);return _.setAttribute("width",H.width+"px"),_.setAttribute("height",H.height+"px"),D.svg="data:image/svg+xml,"+encodeURIComponent($.serializeToString(_)),D.intrinsicWidth=_.width.baseVal.value,D.intrinsicHeight=_.height.baseVal.value,D.context.cache.addImage(D.svg),D}return v})(Io),xS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),Fb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.start=_.start,D.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,D}return v})(Io),uR=[{type:15,flags:0,unit:"px",number:3}],cR=[{type:16,flags:0,number:50}],dR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},AR=function(b){var v=b.type===pR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},Bm="checkbox",Sm="radio",pR="password",_S=707406591,Tb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;switch(D.type=_.type.toLowerCase(),D.checked=_.checked,D.value=AR(_),(D.type===Bm||D.type===Sm)&&(D.styles.backgroundColor=3739148031,D.styles.borderTopColor=D.styles.borderRightColor=D.styles.borderBottomColor=D.styles.borderLeftColor=2779096575,D.styles.borderTopWidth=D.styles.borderRightWidth=D.styles.borderBottomWidth=D.styles.borderLeftWidth=1,D.styles.borderTopStyle=D.styles.borderRightStyle=D.styles.borderBottomStyle=D.styles.borderLeftStyle=1,D.styles.backgroundClip=[0],D.styles.backgroundOrigin=[0],D.bounds=dR(D.bounds)),D.type){case Bm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=uR;break;case Sm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=cR;break}return D}return v})(Io),CS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,$=_.options[_.selectedIndex||0];return D.value=$&&$.text||"",D}return v})(Io),wS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),BS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;D.src=_.src,D.width=parseInt(_.width,10)||0,D.height=parseInt(_.height,10)||0,D.backgroundColor=D.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){D.tree=FS(C,_.contentWindow.document.documentElement);var $=_.contentWindow.document.documentElement?UA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Cl.TRANSPARENT,H=_.contentWindow.document.body?UA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Cl.TRANSPARENT;D.backgroundColor=Ah($)?Ah(H)?D.styles.backgroundColor:H:$}}catch{}return D}return v})(Io),fR=["OL","UL","MENU"],Fm=function(b,v,C,_){for(var D=v.firstChild,$=void 0;D;D=$)if($=D.nextSibling,TS(D)&&D.data.trim().length>0)C.textNodes.push(new nR(b,D,C.styles));else if(rd(D))if($S(D)&&D.assignedNodes)D.assignedNodes().forEach(function(W){return Fm(b,W,C,_)});else{var H=SS(b,D);H.styles.isVisible()&&(mR(D,H,_)?H.flags|=4:gR(H.styles)&&(H.flags|=2),fR.indexOf(D.tagName)!==-1&&(H.flags|=8),C.elements.push(H),D.slot,D.shadowRoot?Fm(b,D.shadowRoot,H,_):!Pm(D)&&!PS(D)&&!Dm(D)&&Fm(b,D,H,_))}},SS=function(b,v){return Lb(v)?new yS(b,v):DS(v)?new vS(b,v):PS(v)?new bS(b,v):yR(v)?new xS(b,v):vR(v)?new Fb(b,v):bR(v)?new Tb(b,v):Dm(v)?new CS(b,v):Pm(v)?new wS(b,v):IS(v)?new BS(b,v):new Io(b,v)},FS=function(b,v){var C=SS(b,v);return C.flags|=4,Fm(b,v,C,C),C},mR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Db(b)&&C.styles.isTransparent()},gR=function(b){return b.isPositioned()||b.isFloating()},TS=function(b){return b.nodeType===Node.TEXT_NODE},rd=function(b){return b.nodeType===Node.ELEMENT_NODE},Pb=function(b){return rd(b)&&typeof b.style<"u"&&!Tm(b)},Tm=function(b){return typeof b.className=="object"},yR=function(b){return b.tagName==="LI"},vR=function(b){return b.tagName==="OL"},bR=function(b){return b.tagName==="INPUT"},xR=function(b){return b.tagName==="HTML"},PS=function(b){return b.tagName==="svg"},Db=function(b){return b.tagName==="BODY"},DS=function(b){return b.tagName==="CANVAS"},LS=function(b){return b.tagName==="VIDEO"},Lb=function(b){return b.tagName==="IMG"},IS=function(b){return b.tagName==="IFRAME"},kS=function(b){return b.tagName==="STYLE"},_R=function(b){return b.tagName==="SCRIPT"},Pm=function(b){return b.tagName==="TEXTAREA"},Dm=function(b){return b.tagName==="SELECT"},$S=function(b){return b.tagName==="SLOT"},OS=function(b){return b.tagName.indexOf("-")>0},CR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,D=v.counterReset,$=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&($=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var H=[];return $&&D.forEach(function(W){var j=C.counters[W.counter];H.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),H},b})(),ES={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},MS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},wR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},BR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},sd=function(b,v,C,_,D,$){return b<v||b>C?jA(b,D,$.length>0):_.integers.reduce(function(H,W,j){for(;b>=W;)b-=W,H+=_.values[j];return H},"")+$},RS=function(b,v,C,_){var D="";do C||b--,D=_(b)+D,b/=v;while(b*v>=v);return D},qr=function(b,v,C,_,D){var $=C-v+1;return(b<0?"-":"")+(RS(Math.abs(b),$,_,function(H){return u(Math.floor(H%$)+v)})+D)},Fu=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return RS(Math.abs(b),_,!1,function(D){return v[Math.floor(D%_)]})+C},ad=1,fh=2,mh=4,HA=8,wl=function(b,v,C,_,D,$){if(b<-9999||b>9999)return jA(b,4,D.length>0);var H=Math.abs(b),W=D;if(H===0)return v[0]+W;for(var j=0;H>0&&j<=4;j++){var ae=H%10;ae===0&&vs($,ad)&&W!==""?W=v[ae]+W:ae>1||ae===1&&j===0||ae===1&&j===1&&vs($,fh)||ae===1&&j===1&&vs($,mh)&&b>100||ae===1&&j>1&&vs($,HA)?W=v[ae]+(j>0?C[j-1]:"")+W:ae===1&&j>0&&(W=C[j-1]+W),H=Math.floor(H/10)}return(b<0?_:"")+W},US="\u5341\u767E\u5343\u842C",VS="\u62FE\u4F70\u4EDF\u842C",NS="\u30DE\u30A4\u30CA\u30B9",Ib="\uB9C8\uC774\uB108\uC2A4",jA=function(b,v,C){var _=C?". ":"",D=C?"\u3001":"",$=C?", ":"",H=C?" ":"";switch(v){case 0:return"\u2022"+H;case 1:return"\u25E6"+H;case 2:return"\u25FE"+H;case 5:var W=qr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Fu(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",D);case 6:return sd(b,1,3999,ES,3,_).toLowerCase();case 7:return sd(b,1,3999,ES,3,_);case 8:return qr(b,945,969,!1,_);case 9:return qr(b,97,122,!1,_);case 10:return qr(b,65,90,!1,_);case 11:return qr(b,1632,1641,!0,_);case 12:case 49:return sd(b,1,9999,MS,3,_);case 35:return sd(b,1,9999,MS,3,_).toLowerCase();case 13:return qr(b,2534,2543,!0,_);case 14:case 30:return qr(b,6112,6121,!0,_);case 15:return Fu(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",D);case 16:return Fu(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",D);case 17:case 48:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",US,"\u8CA0",D,fh|mh|HA);case 47:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",VS,"\u8CA0",D,ad|fh|mh|HA);case 42:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",US,"\u8D1F",D,fh|mh|HA);case 41:return wl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",VS,"\u8D1F",D,ad|fh|mh|HA);case 26:return wl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",NS,D,0);case 25:return wl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",NS,D,ad|fh|mh);case 31:return wl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ib,$,ad|fh|mh);case 33:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ib,$,0);case 32:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ib,$,ad|fh|mh);case 18:return qr(b,2406,2415,!0,_);case 20:return sd(b,1,19999,BR,3,_);case 21:return qr(b,2790,2799,!0,_);case 22:return qr(b,2662,2671,!0,_);case 22:return sd(b,1,10999,wR,3,_);case 23:return Fu(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Fu(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return qr(b,3302,3311,!0,_);case 28:return Fu(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",D);case 29:return Fu(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",D);case 34:return qr(b,3792,3801,!0,_);case 37:return qr(b,6160,6169,!0,_);case 38:return qr(b,4160,4169,!0,_);case 39:return qr(b,2918,2927,!0,_);case 40:return qr(b,1776,1785,!0,_);case 43:return qr(b,3046,3055,!0,_);case 44:return qr(b,3174,3183,!0,_);case 45:return qr(b,3664,3673,!0,_);case 46:return qr(b,3872,3881,!0,_);default:return qr(b,48,57,!0,_)}},QS="data-html2canvas-ignore",HS=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new CR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,D=SR(v,C);if(!D.contentWindow)return Promise.reject("Unable to find iframe window");var $=v.defaultView.pageXOffset,H=v.defaultView.pageYOffset,W=D.contentWindow,j=W.document,ae=PR(D).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(_e){switch(_e.label){case 0:return this.scrolledElements.forEach(kR),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:_e.sent(),_e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,TR(j)]:[3,4];case 3:_e.sent(),_e.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return D})]:[2,D]}})})});return j.open(),j.write(LR(document.doctype)+"<html></html>"),IR(this.referenceElement.ownerDocument,$,H),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),ae},b.prototype.createElementClone=function(v){if(fb(v,2))debugger;if(DS(v))return this.createCanvasClone(v);if(LS(v))return this.createVideoClone(v);if(kS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Lb(C)&&(Lb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),OS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return kb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function($,H){return H&&typeof H.cssText=="string"?$+H.cssText:$},""),D=v.cloneNode(!1);return D.textContent=_,D}}catch($){if(this.context.logger.error("Unable to access cssRules property",$),$.name!=="SecurityError")throw $}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var D=v.cloneNode(!1);try{D.width=v.width,D.height=v.height;var $=v.getContext("2d"),H=D.getContext("2d");if(H)if(!this.options.allowTaint&&$)H.putImageData($.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}H.drawImage(v,0,0)}return D}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return D},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var D=v.ownerDocument.createElement("canvas");return D.width=v.offsetWidth,D.height=v.offsetHeight,D},b.prototype.appendChildNode=function(v,C,_){(!rd(C)||!_R(C)&&!C.hasAttribute(QS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!rd(C)||!kS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var D=this,$=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;$;$=$.nextSibling)if(rd($)&&$S($)&&typeof $.assignedNodes=="function"){var H=$.assignedNodes();H.length&&H.forEach(function(W){return D.appendChildNode(C,W,_)})}else this.appendChildNode(C,$,_)},b.prototype.cloneNode=function(v,C){if(TS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&rd(v)&&(Pb(v)||Tm(v))){var D=this.createElementClone(v);D.style.transitionProperty="none";var $=_.getComputedStyle(v),H=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Pb(D)&&(this.clonedReferenceElement=D),Db(D)&&ER(D);var j=this.counters.parse(new rS(this.context,$)),ae=this.resolvePseudoContent(v,D,H,WA.BEFORE);OS(v)&&(C=!0),LS(v)||this.cloneChildNodes(v,D,C),ae&&D.insertBefore(ae,D.firstChild);var ne=this.resolvePseudoContent(v,D,W,WA.AFTER);return ne&&D.appendChild(ne),this.counters.pop(j),($&&(this.options.copyStyles||Tm(v))&&!IS(v)||C)&&kb($,D),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([D,v.scrollLeft,v.scrollTop]),(Pm(v)||Dm(v))&&(Pm(D)||Dm(D))&&(D.value=v.value),D}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,D){var $=this;if(_){var H=_.content,W=C.ownerDocument;if(!(!W||!H||H==="none"||H==="-moz-alt-content"||_.display==="none")){this.counters.parse(new rS(this.context,_));var j=new yM(this.context,_),ae=W.createElement("html2canvaspseudoelement");kb(_,ae),j.content.forEach(function(Ae){if(Ae.type===0)ae.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var _e=W.createElement("img");_e.src=Ae.value,_e.style.opacity="1",ae.appendChild(_e)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(hr);lt.length&&ae.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(td),Ze=Ue[0],ii=Ue[1];if(Ze&&hr(Ze)){var bt=$.counters.getCounterValue(Ze.value),gt=ii&&hr(ii)?pb.parse($.context,ii.value):3;ae.appendChild(W.createTextNode(jA(bt,gt,!1)))}}else if(Ae.name==="counters"){var Wi=Ae.values.filter(td),Ze=Wi[0],ni=Wi[1],ii=Wi[2];if(Ze&&hr(Ze)){var Mt=$.counters.getCounterValues(Ze.value),rt=ii&&hr(ii)?pb.parse($.context,ii.value):3,ki=ni&&ni.type===0?ni.value:"",$i=Mt.map(function(Oa){return jA(Oa,rt,!1)}).join(ki);ae.appendChild(W.createTextNode($i))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":ae.appendChild(W.createTextNode(iS(j.quotes,$.quoteDepth++,!0)));break;case"close-quote":ae.appendChild(W.createTextNode(iS(j.quotes,--$.quoteDepth,!1)));break;default:ae.appendChild(W.createTextNode(Ae.value))}}),ae.className=$b+" "+Ob;var ne=D===WA.BEFORE?" "+$b:" "+Ob;return Tm(C)?C.className.baseValue+=ne:C.className+=ne,ae}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),WA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(WA||(WA={}));var SR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(QS,"true"),b.body.appendChild(C),C},FR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},TR=function(b){return Promise.all([].slice.call(b.images,0).map(FR))},PR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var D=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var $=setInterval(function(){D.body.childNodes.length>0&&D.readyState==="complete"&&(clearInterval($),v(b))},50)}})},DR=["all","d","content"],kb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);DR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},LR=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},IR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},kR=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},$R=":before",OR=":after",$b="___html2canvas___pseudoelement_before",Ob="___html2canvas___pseudoelement_after",jS=`{
2
+ import{a as sn}from"./QVD6LHQ2.js";import{b as zx}from"./2JUO3GP2.js";import p from"./3IWAH4DT.js";import o from"./2O72YRTQ.js";import{c as $x,e as hp,f as Ox,g as Ex,h as Mx,i as Rx,j as yd}from"./PDWS67CW.js";import{a as VT,g as NT}from"./7BDNLABD.js";import n from"./U642I5KG.js";import{a as Hx}from"./DTVMYBN2.js";import{a as xT}from"./MZ2UZAFW.js";import m from"./ZJ5I6C2W.js";import l from"./HKNCEFUZ.js";import k from"./HJHUFGMC.js";import j from"./Z3QU4QXL.js";import i from"./DIH43SPI.js";import h from"./AQENV2OK.js";import g from"./OGMBMPKZ.js";import{a as Ro,b as OT,c as ET,d as MT,e as jx,k as Wx,q as RT}from"./7MKAC33Z.js";import f from"./EMWAI65U.js";import e from"./A7CHVVKW.js";import"./NQAPPISU.js";import d from"./IXSN6MY7.js";import c from"./EGWX7725.js";import b from"./MHLSVWM2.js";import{c as gd,d as Dx,e as op,o as fg,q as Lx,r as vT,s as mg,t as bT,u as lp}from"./KGNYAMFB.js";import a from"./4YNNLXOR.js";import{e as xs,g as io}from"./777EBGS5.js";import{D as JA,E as ep,a as Ut,b as Km,c as pt,d as ke,e as Tr,f as vr,g as Fl,h as cs,i as qA,j as $s,l as tx,n as Or,p as ix,r as zi,v as rx,w as sx,x as Er}from"./P5XJTTU3.js";import{F as ZA,I as Xm,J as Yb,K as zm,N as mF,P as Gm,Q as Kb,R as Zb,S as qb,T as gF,Y as yF,Z as vF,aa as Jb,ea as Ym,f as Eu,h as cd,i as Hm,j as Gb,k as dF,l as jm,o as an,p as Wm,q as xr,ra as bF,s as AF,v as pF,va as xF,w as fF,y as vh,ya as ex,z as Mu}from"./6JI4NDJ6.js";import{a as YA,b as us,c as KA,d as bs,e as Qm,f as Rt}from"./75Y43JLP.js";import{g as Fr,h as ks,k as ku,l as rn}from"./FIMXZMTB.js";import{a as hF,b as Qb,c as Vm,g as Iu}from"./WBCPWDPR.js";import{A as nF,B as Um,G as oF,H as lF,g as iF,h as rF,i as ud,l as sF,n as zs,y as aF,z as Nb}from"./E6J6XV56.js";import{a as UT}from"./OW4KQXUC.js";import"./TOO3T62Y.js";import"./EZM4ZDQI.js";import{a as ze,b as cF}from"./43P4WOC4.js";import{a as V,b as Pn,e as st,f as Oi,h as GA,i as Hb,j as jb,k as er,l as Nm,m as $u,n as Wb,p as tr,q as uF,r as Ou,t as Xb,u as zb}from"./XOB365BI.js";import{a as zA,b as Rm,c as tF,d as Vb}from"./QPIMTXPL.js";export default $arcgis.t(([Ia,{substitute:Vc},WL,SN,FN,{$:LF,$b:Tx,A:nn,Aa:rp,Ab:ng,B:ux,Ba:mx,Bb:nT,C:Zt,Ca:GF,D:Oo,Da:Ra,E:bh,Ea:ig,F:wF,Fa:rg,G:Jm,Ga:xa,Gb:_x,H:tp,Hb:og,Ia:YF,Ib:lg,J:Qu,Ja:KF,Jb:pd,K:Os,Ka:gx,Kb:hg,La:sg,Lb:oT,Mb:Cx,Na:on,Nb:ug,O:BF,Oa:yx,Pa:Hu,Pb:wx,Qa:ZF,R:Dn,Ra:vx,S:xh,Sa:qF,T:SF,Ta:sp,Tb:Bx,U:It,Ua:oa,Ub:fd,V:FF,Va:Eo,Vb:lT,W:TF,Wa:ap,Wb:cg,X:eg,Xb:hT,Y:_h,Ya:Ad,Yb:Sx,Z:PF,Za:JF,Zb:uT,_:DF,_a:eT,_b:Fx,aa:cx,ab:Ll,ac:cT,b:Tl,ba:IF,bb:tT,c:Zm,ca:kF,cc:np,d:_F,da:$F,db:iT,e:$o,ea:OF,eb:bx,ec:ju,f:ba,fa:EF,fc:Ln,g:Ru,ga:dx,gc:md,h:dd,ha:MF,hc:Zi,i:ro,ia:RF,j:ax,ja:Ax,jc:Mo,k:Pl,ka:UF,l:qm,la:VF,lc:dT,m:so,ma:NF,mb:ag,mc:AT,n:Dl,na:px,nc:pT,o:CF,oa:QF,oc:Px,p:nx,pa:HF,pb:xx,pc:dg,q:ox,qa:tg,qb:_a,qc:Ag,r:ao,ra:jF,rc:fT,s:Uu,sa:WF,sb:Ch,sc:mT,ta:XF,tb:rT,tc:gT,ua:zF,ub:sT,v:Z,vc:pg,w:lx,wa:ip,wb:aT,wc:yT,x:Vu,xa:no,y:Nu,ya:oo,z:hx,za:fx},,{g:_T,i:CT},,,{a:Ix,b:wh},,,,,,{l:wT,m:BT,n:ST,o:FT,p:kx,q:TT,r:PT,s:DT},{a:$T},{q:Xx},{b:QT,c:HT,e:vd},{a:LT,b:IT,c:kT,d:Ux,g:Vx,h:Nx,i:Qx}])=>{var zT=Rm((QY,XT)=>{"use strict";function _U(a){var t=new a,e=t;function i(){var s=t;return s.next?t=s.next:(t=new a,e=t),s.next=null,s}function r(s){e.next=s,e=s}return{get:i,release:r}}XT.exports=_U});var YT=Rm((HY,Yx)=>{"use strict";var CU=zT();function GT(a,t,e){if(typeof a=="function"&&(e=t,t=a,a=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var i=CU(wU),r=null,s=null,n=0,o=null,l={push:f,drain:kn,saturated:kn,pause:u,paused:!1,concurrency:e,running:h,resume:A,idle:p,length:c,getQueue:d,unshift:m,empty:kn,kill:y,killAndDrain:x,error:w};return l;function h(){return n}function u(){l.paused=!0}function c(){for(var S=r,F=0;S;)S=S.next,F++;return F}function d(){for(var S=r,F=[];S;)F.push(S.value),S=S.next;return F}function A(){if(l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)n++,g()}}function p(){return n===0&&l.length()===0}function f(S,F){var T=i.get();T.context=a,T.release=g,T.value=S,T.callback=F||kn,T.errorHandler=o,n===l.concurrency||l.paused?s?(s.next=T,s=T):(r=T,s=T,l.saturated()):(n++,t.call(a,T.value,T.worked))}function m(S,F){var T=i.get();T.context=a,T.release=g,T.value=S,T.callback=F||kn,n===l.concurrency||l.paused?r?(T.next=r,r=T):(r=T,s=T,l.saturated()):(n++,t.call(a,T.value,T.worked))}function g(S){S&&i.release(S);var F=r;F?l.paused?n--:(s===r&&(s=null),r=F.next,F.next=null,t.call(a,F.value,F.worked),s===null&&l.empty()):--n===0&&l.drain()}function y(){r=null,s=null,l.drain=kn}function x(){r=null,s=null,l.drain(),l.drain=kn}function w(S){o=S}}function kn(){}function wU(){this.value=null,this.callback=kn,this.next=null,this.release=kn,this.context=null,this.errorHandler=null;var a=this;this.worked=function(e,i){var r=a.callback,s=a.errorHandler,n=a.value;a.value=null,a.callback=kn,a.errorHandler&&s(e,n),r.call(a.context,e,i),a.release(a)}}function BU(a,t,e){typeof a=="function"&&(e=t,t=a,a=null);function i(u,c){t.call(this,u).then(function(d){c(null,d)},c)}var r=GT(a,i,e),s=r.push,n=r.unshift;return r.push=o,r.unshift=l,r.drained=h,r;function o(u){var c=new Promise(function(d,A){s(u,function(p,f){if(p){A(p);return}d(f)})});return c.catch(kn),c}function l(u){var c=new Promise(function(d,A){n(u,function(p,f){if(p){A(p);return}d(f)})});return c.catch(kn),c}function h(){var u=r.drain,c=new Promise(function(d){r.drain=function(){u(),d()}});return c}}Yx.exports=GT;Yx.exports.promise=BU});var KT=Rm((Kx,Zx)=>{(function(a,t){typeof Kx=="object"&&typeof Zx<"u"?Zx.exports=t():typeof define=="function"&&define.amd?define(t):(a=typeof globalThis<"u"?globalThis:a||self,a.html2canvas=t())})(Kx,(function(){"use strict";var a=function(b,v){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&(C[D]=_[D])},a(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");a(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,D=arguments.length;_<D;_++){C=arguments[_];for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(v[$]=C[$])}return v},e.apply(this,arguments)};function i(b,v,C,_){function D($){return $ instanceof C?$:new C(function(H){H($)})}return new(C||(C=Promise))(function($,H){function W(ne){try{ae(_.next(ne))}catch(Ae){H(Ae)}}function j(ne){try{ae(_.throw(ne))}catch(Ae){H(Ae)}}function ae(ne){ne.done?$(ne.value):D(ne.value).then(W,j)}ae((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if($[0]&1)throw $[1];return $[1]},trys:[],ops:[]},_,D,$,H;return H={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function W(ae){return function(ne){return j([ae,ne])}}function j(ae){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,D&&($=ae[0]&2?D.return:ae[0]?D.throw||(($=D.return)&&$.call(D),0):D.next)&&!($=$.call(D,ae[1])).done)return $;switch(D=0,$&&(ae=[ae[0]&2,$.value]),ae[0]){case 0:case 1:$=ae;break;case 4:return C.label++,{value:ae[1],done:!1};case 5:C.label++,D=ae[1],ae=[0];continue;case 7:ae=C.ops.pop(),C.trys.pop();continue;default:if($=C.trys,!($=$.length>0&&$[$.length-1])&&(ae[0]===6||ae[0]===2)){C=0;continue}if(ae[0]===3&&(!$||ae[1]>$[0]&&ae[1]<$[3])){C.label=ae[1];break}if(ae[0]===6&&C.label<$[1]){C.label=$[1],$=ae;break}if($&&C.label<$[2]){C.label=$[2],C.ops.push(ae);break}$[2]&&C.ops.pop(),C.trys.pop();continue}ae=v.call(b,C)}catch(ne){ae=[6,ne],D=0}finally{_=$=0}if(ae[0]&5)throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}}function s(b,v,C){if(C||arguments.length===2)for(var _=0,D=v.length,$;_<D;_++)($||!(_ in v))&&($||($=Array.prototype.slice.call(v,0,_)),$[_]=v[_]);return b.concat($||v)}for(var n=(function(){function b(v,C,_,D){this.left=v,this.top=C,this.width=_,this.height=D}return b.prototype.add=function(v,C,_,D){return new b(this.left+v,this.top+C,this.width+_,this.height+D)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(D){return D.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),D=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,D)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var $=b.charCodeAt(C++);($&64512)===56320?v.push(((D&1023)<<10)+($&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},u=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,$="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&($+=String.fromCharCode.apply(String,_),_.length=0)}return $},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<c.length;A++)d[c.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array>"u"?[]:new Uint8Array(256),m=0;m<p.length;m++)f[p.charCodeAt(m)]=m;for(var g=function(b){var v=b.length*.75,C=b.length,_,D=0,$,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)$=f[b.charCodeAt(_)],H=f[b.charCodeAt(_+1)],W=f[b.charCodeAt(_+2)],j=f[b.charCodeAt(_+3)],ne[D++]=$<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,F=2,T=S-w,L=65536>>w,O=1<<w,I=O-1,U=1024>>w,P=L+U,Q=P,Y=32,G=Q+Y,ee=65536>>S,te=1<<T,le=te-1,z=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},K=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},we=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),D=Array.isArray(C)?y(C):new Uint16Array(C),$=24,H=z(D,$/2,_[4]/2),W=_[5]===2?z(D,($+_[4])/2):K(_,Math.ceil(($+_[4])/4));return new se(_[0],_[1],_[2],_[3],H,W)},se=(function(){function b(v,C,_,D,$,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=$,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<F)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<F)+(v&I),this.data[C];if(v<this.highStart)return C=G-ee+(v>>S),C=this.index[C],C+=v>>w&le,C=this.index[C],C=(C<<F)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ye=0;Ye<de.length;Ye++)$e[de.charCodeAt(Ye)]=Ye;var We="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB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csBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnC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ADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBB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MAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0Drw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BtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAA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AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHg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4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcA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UABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAA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B4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAI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UAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qe=50,Tt=1,At=2,_i=3,Bi=4,R=5,Be=7,ve=8,q=9,X=10,oe=11,De=12,Le=13,pe=14,Oe=15,Je=16,Me=17,_t=18,Yi=19,di=20,ys=21,Si=22,Zr=23,yr=24,Fi=25,Po=26,vl=27,aa=28,Jf=29,bl=30,eb=31,qc=32,wu=33,xl=34,lh=35,tb=36,LA=37,ib=38,em=39,tm=40,rb=41,dB=42,w$=43,B$=[9001,65288],AB="!",Ci="\xD7",im="\xF7",sb=we(We),_l=[bl,tb],ab=[Tt,At,_i,R],pB=[X,ve],fB=[vl,Po],S$=ab.concat(pB),mB=[ib,em,tm,xl,lh],F$=[Oe,Le],T$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],D=[];return b.forEach(function($,H){var W=sb.get($);if(W>qe?(D.push(!0),W-=qe):D.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf($)!==-1)return _.push(H),C.push(Je);if(W===Bi||W===oe){if(H===0)return _.push(H),C.push(bl);var j=C[H-1];return S$.indexOf(j)===-1?(_.push(_[H-1]),C.push(j)):(_.push(H),C.push(bl))}if(_.push(H),W===eb)return C.push(v==="strict"?ys:LA);if(W===dB||W===Jf)return C.push(bl);if(W===w$)return $>=131072&&$<=196605||$>=196608&&$<=262141?C.push(LA):C.push(bl);C.push(W)}),[_,C,D]},nb=function(b,v,C,_){var D=_[C];if(Array.isArray(b)?b.indexOf(D)!==-1:b===D)for(var $=C;$<=_.length;){$++;var H=_[$];if(H===v)return!0;if(H!==X)break}if(D===X)for(var $=C;$>0;){$--;var W=_[$];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var H=_[j];if(H===v)return!0;if(H!==X)break}if(W!==X)break}return!1},gB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},P$=function(b,v,C,_,D){if(C[_]===0)return Ci;var $=_-1;if(Array.isArray(D)&&D[$]===!0)return Ci;var H=$-1,W=$+1,j=v[$],ae=H>=0?v[H]:0,ne=v[W];if(j===At&&ne===_i)return Ci;if(ab.indexOf(j)!==-1)return AB;if(ab.indexOf(ne)!==-1||pB.indexOf(ne)!==-1)return Ci;if(gB($,v)===ve)return im;if(sb.get(b[$])===oe||(j===qc||j===wu)&&sb.get(b[W])===oe||j===Be||ne===Be||j===q||[X,Le,Oe].indexOf(j)===-1&&ne===q||[Me,_t,Yi,yr,aa].indexOf(ne)!==-1||gB($,v)===Si||nb(Zr,Si,$,v)||nb([Me,_t],ys,$,v)||nb(De,De,$,v))return Ci;if(j===X)return im;if(j===Zr||ne===Zr)return Ci;if(ne===Je||j===Je)return im;if([Le,Oe,ys].indexOf(ne)!==-1||j===pe||ae===tb&&F$.indexOf(j)!==-1||j===aa&&ne===tb||ne===di||_l.indexOf(ne)!==-1&&j===Fi||_l.indexOf(j)!==-1&&ne===Fi||j===vl&&[LA,qc,wu].indexOf(ne)!==-1||[LA,qc,wu].indexOf(j)!==-1&&ne===Po||_l.indexOf(j)!==-1&&fB.indexOf(ne)!==-1||fB.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||[vl,Po].indexOf(j)!==-1&&(ne===Fi||[Si,Oe].indexOf(ne)!==-1&&v[W+1]===Fi)||[Si,Oe].indexOf(j)!==-1&&ne===Fi||j===Fi&&[Fi,aa,yr].indexOf(ne)!==-1)return Ci;if([Fi,aa,yr,Me,_t].indexOf(ne)!==-1)for(var Ae=$;Ae>=0;){var _e=v[Ae];if(_e===Fi)return Ci;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if([vl,Po].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?H:$;Ae>=0;){var _e=v[Ae];if(_e===Fi)return Ci;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if(ib===j&&[ib,em,xl,lh].indexOf(ne)!==-1||[em,xl].indexOf(j)!==-1&&[em,tm].indexOf(ne)!==-1||[tm,lh].indexOf(j)!==-1&&ne===tm||mB.indexOf(j)!==-1&&[di,Po].indexOf(ne)!==-1||mB.indexOf(ne)!==-1&&j===vl||_l.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||j===yr&&_l.indexOf(ne)!==-1||_l.concat(Fi).indexOf(j)!==-1&&ne===Si&&B$.indexOf(b[W])===-1||_l.concat(Fi).indexOf(ne)!==-1&&j===_t)return Ci;if(j===rb&&ne===rb){for(var lt=C[$],Ue=1;lt>0&&(lt--,v[lt]===rb);)Ue++;if(Ue%2!==0)return Ci}return j===qc&&ne===wu?Ci:im},D$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=T$(b,v.lineBreak),_=C[0],D=C[1],$=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(D=D.map(function(W){return[Fi,bl,dB].indexOf(W)!==-1?LA:W}));var H=v.wordBreak==="keep-all"?$.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,D,H]},L$=(function(){function b(v,C,_,D){this.codePoints=v,this.required=C===AB,this.start=_,this.end=D}return b.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),I$=function(b,v){var C=h(b),_=D$(C,v),D=_[0],$=_[1],H=_[2],W=C.length,j=0,ae=0;return{next:function(){if(ae>=W)return{done:!0,value:null};for(var ne=Ci;ae<W&&(ne=P$(C,$,D,++ae,H))===Ci;);if(ne!==Ci||ae===W){var Ae=new L$(C,ne,j,ae);return j=ae,{value:Ae,done:!1}}return{done:!0,value:null}}}},k$=1,$$=2,IA=4,yB=8,rm=10,vB=47,kA=92,O$=9,E$=32,sm=34,$A=61,M$=35,R$=36,U$=37,am=39,nm=40,OA=41,V$=95,$a=45,N$=33,Q$=60,H$=62,j$=64,W$=91,X$=93,z$=61,G$=123,om=63,Y$=125,bB=124,K$=126,Z$=128,xB=65533,ob=42,Bu=43,q$=44,J$=58,eO=59,EA=46,tO=0,iO=8,rO=11,sO=14,aO=31,nO=127,Do=-1,_B=48,CB=97,wB=101,oO=102,lO=117,hO=122,BB=65,SB=69,FB=70,uO=85,cO=90,na=function(b){return b>=_B&&b<=57},dO=function(b){return b>=55296&&b<=57343},Jc=function(b){return na(b)||b>=BB&&b<=FB||b>=CB&&b<=oO},AO=function(b){return b>=CB&&b<=hO},pO=function(b){return b>=BB&&b<=cO},fO=function(b){return AO(b)||pO(b)},mO=function(b){return b>=Z$},lm=function(b){return b===rm||b===O$||b===E$},hm=function(b){return fO(b)||mO(b)||b===V$},TB=function(b){return hm(b)||na(b)||b===$a},gO=function(b){return b>=tO&&b<=iO||b===rO||b>=sO&&b<=aO||b===nO},hh=function(b,v){return b!==kA?!1:v!==rm},um=function(b,v,C){return b===$a?hm(v)||hh(v,C):hm(b)?!0:!!(b===kA&&hh(b,v))},lb=function(b,v,C){return b===Bu||b===$a?na(v)?!0:v===EA&&na(C):na(b===EA?v:b)},yO=function(b){var v=0,C=1;(b[v]===Bu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];na(b[v]);)_.push(b[v++]);var D=_.length?parseInt(u.apply(void 0,_),10):0;b[v]===EA&&v++;for(var $=[];na(b[v]);)$.push(b[v++]);var H=$.length,W=H?parseInt(u.apply(void 0,$),10):0;(b[v]===SB||b[v]===wB)&&v++;var j=1;(b[v]===Bu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var ae=[];na(b[v]);)ae.push(b[v++]);var ne=ae.length?parseInt(u.apply(void 0,ae),10):0;return C*(D+W*Math.pow(10,-H))*Math.pow(10,j*ne)},vO={type:2},bO={type:3},xO={type:4},_O={type:13},CO={type:8},wO={type:21},BO={type:9},SO={type:10},FO={type:11},TO={type:12},PO={type:14},cm={type:23},DO={type:1},LO={type:25},IO={type:24},kO={type:26},$O={type:27},OO={type:28},EO={type:29},MO={type:31},hb={type:32},PB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==hb;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case sm:return this.consumeStringToken(sm);case M$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),D=this.peekCodePoint(2);if(TB(C)||hh(_,D)){var $=um(C,_,D)?$$:k$,H=this.consumeName();return{type:5,value:H,flags:$}}break;case R$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),_O;break;case am:return this.consumeStringToken(am);case nm:return vO;case OA:return bO;case ob:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),PO;break;case Bu:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case q$:return xO;case $a:var W=v,j=this.peekCodePoint(0),ae=this.peekCodePoint(1);if(lb(W,j,ae))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(um(W,j,ae))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&ae===H$)return this.consumeCodePoint(),this.consumeCodePoint(),IO;break;case EA:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case vB:if(this.peekCodePoint(0)===ob)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ob&&(ne=this.consumeCodePoint(),ne===vB))return this.consumeToken();if(ne===Do)return this.consumeToken()}break;case J$:return kO;case eO:return $O;case Q$:if(this.peekCodePoint(0)===N$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),LO;break;case j$:var Ae=this.peekCodePoint(0),_e=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(um(Ae,_e,lt)){var H=this.consumeName();return{type:7,value:H}}break;case W$:return OO;case kA:if(hh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case X$:return EO;case z$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),CO;break;case G$:return FO;case Y$:return TO;case lO:case uO:var Ue=this.peekCodePoint(0),Ze=this.peekCodePoint(1);return Ue===Bu&&(Jc(Ze)||Ze===om)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case bB:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),BO;if(this.peekCodePoint(0)===bB)return this.consumeCodePoint(),wO;break;case K$:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),SO;break;case Do:return hb}return lm(v)?(this.consumeWhiteSpace(),MO):na(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):hm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:u(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Jc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===om&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var D=parseInt(u.apply(void 0,v.map(function(j){return j===om?_B:j})),16),$=parseInt(u.apply(void 0,v.map(function(j){return j===om?FB:j})),16);return{type:30,start:D,end:$}}var H=parseInt(u.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Jc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Jc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var $=parseInt(u.apply(void 0,W),16);return{type:30,start:H,end:$}}else return{type:30,start:H,end:H}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===nm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===nm?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===am||C===sm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===OA)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),cm)}for(;;){var D=this.consumeCodePoint();if(D===Do||D===OA)return{type:22,value:u.apply(void 0,v)};if(lm(D))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===OA?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,v)}):(this.consumeBadUrlRemnants(),cm);if(D===sm||D===am||D===nm||gO(D))return this.consumeBadUrlRemnants(),cm;if(D===kA)if(hh(D,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),cm;else v.push(D)}},b.prototype.consumeWhiteSpace=function(){for(;lm(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===OA||v===Do)return;hh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var D=Math.min(C,v);_+=u.apply(void 0,this._value.splice(0,D)),v-=D}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var D=this._value[_];if(D===Do||D===void 0||D===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(D===rm)return this._value.splice(0,_),DO;if(D===kA){var $=this._value[_+1];$!==Do&&$!==void 0&&($===rm?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):hh(D,$)&&(C+=this.consumeStringSlice(_),C+=u(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=IA,_=this.peekCodePoint(0);for((_===Bu||_===$a)&&v.push(this.consumeCodePoint());na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var D=this.peekCodePoint(1);if(_===EA&&na(D))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=yB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),D=this.peekCodePoint(1);var $=this.peekCodePoint(2);if((_===SB||_===wB)&&((D===Bu||D===$a)&&na($)||na(D)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=yB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[yO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],D=this.peekCodePoint(0),$=this.peekCodePoint(1),H=this.peekCodePoint(2);if(um(D,$,H)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return D===U$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Jc(v)){for(var C=u(v);Jc(this.peekCodePoint(0))&&C.length<6;)C+=u(this.consumeCodePoint());lm(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||dO(_)||_>1114111?xB:_}return v===Do?xB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(TB(C))v+=u(C);else if(hh(C,this.peekCodePoint(0)))v+=u(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),DB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new PB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||UO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?hb:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),MA=function(b){return b.type===15},ed=function(b){return b.type===17},hr=function(b){return b.type===20},RO=function(b){return b.type===0},ub=function(b,v){return hr(b)&&b.value===v},LB=function(b){return b.type!==31},td=function(b){return b.type!==31&&b.type!==4},Lo=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},UO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},uh=function(b){return b.type===17||b.type===15},ls=function(b){return b.type===16||uh(b)},IB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},js={type:17,number:0,flags:IA},cb={type:16,number:50,flags:IA},ch={type:16,number:100,flags:IA},RA=function(b,v,C){var _=b[0],D=b[1];return[br(_,v),br(typeof D<"u"?D:_,C)]},br=function(b,v){if(b.type===16)return b.number/100*v;if(MA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},kB="deg",$B="grad",OB="rad",EB="turn",dm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case kB:return Math.PI*v.number/180;case $B:return Math.PI/200*v.number;case OB:return v.number;case EB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},MB=function(b){return b.type===15&&(b.unit===kB||b.unit===$B||b.unit===OB||b.unit===EB)},RB=function(b){var v=b.filter(hr).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[js,js];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[js,ch];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ch,ch];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ch,js];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},dh={name:"color",parse:function(b,v){if(v.type===18){var C=VO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),D=v.value.substring(1,2),$=v.value.substring(2,3);return ph(parseInt(_+_,16),parseInt(D+D,16),parseInt($+$,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),D=v.value.substring(1,2),$=v.value.substring(2,3),H=v.value.substring(3,4);return ph(parseInt(_+_,16),parseInt(D+D,16),parseInt($+$,16),parseInt(H+H,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),D=v.value.substring(2,4),$=v.value.substring(4,6);return ph(parseInt(_,16),parseInt(D,16),parseInt($,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),D=v.value.substring(2,4),$=v.value.substring(4,6),H=v.value.substring(6,8);return ph(parseInt(_,16),parseInt(D,16),parseInt($,16),parseInt(H,16)/255)}}if(v.type===20){var W=Cl[v.value.toUpperCase()];if(typeof W<"u")return W}return Cl.TRANSPARENT}},Ah=function(b){return(255&b)===0},Is=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,D=255&b>>24;return v<255?"rgba("+D+","+_+","+C+","+v/255+")":"rgb("+D+","+_+","+C+")"},ph=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},UB=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},VB=function(b,v){var C=v.filter(td);if(C.length===3){var _=C.map(UB),D=_[0],$=_[1],H=_[2];return ph(D,$,H,1)}if(C.length===4){var W=C.map(UB),D=W[0],$=W[1],H=W[2],j=W[3];return ph(D,$,H,j)}return 0};function db(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var NB=function(b,v){var C=v.filter(td),_=C[0],D=C[1],$=C[2],H=C[3],W=(_.type===17?Bn(_.number):dm.parse(b,_))/(Math.PI*2),j=ls(D)?D.number/100:0,ae=ls($)?$.number/100:0,ne=typeof H<"u"&&ls(H)?br(H,1):1;if(j===0)return ph(ae*255,ae*255,ae*255,1);var Ae=ae<=.5?ae*(j+1):ae+j-ae*j,_e=ae*2-Ae,lt=db(_e,Ae,W+1/3),Ue=db(_e,Ae,W),Ze=db(_e,Ae,W-1/3);return ph(lt*255,Ue*255,Ze*255,ne)},VO={hsl:NB,hsla:NB,rgb:VB,rgba:VB},UA=function(b,v){return dh.parse(b,DB.create(v).parseComponentValue())},Cl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},NO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(hr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},QO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Am=function(b,v){var C=dh.parse(b,v[0]),_=v[1];return _&&ls(_)?{color:C,stop:_}:{color:C,stop:null}},QB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=js),_.stop===null&&(_.stop=ch);for(var D=[],$=0,H=0;H<b.length;H++){var W=b[H].stop;if(W!==null){var j=br(W,v);j>$?D.push(j):D.push($),$=j}else D.push(null)}for(var ae=null,H=0;H<D.length;H++){var ne=D[H];if(ne===null)ae===null&&(ae=H);else if(ae!==null){for(var Ae=H-ae,_e=D[ae-1],lt=(ne-_e)/(Ae+1),Ue=1;Ue<=Ae;Ue++)D[ae+Ue-1]=lt*Ue;ae=null}}return b.map(function(Ze,ii){var bt=Ze.color;return{color:bt,stop:Math.max(Math.min(1,D[ii]/v),0)}})},HO=function(b,v,C){var _=v/2,D=C/2,$=br(b[0],v)-_,H=D-br(b[1],C);return(Math.atan2(H,$)+Math.PI*2)%(Math.PI*2)},jO=function(b,v,C){var _=typeof b=="number"?b:HO(b,v,C),D=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),$=v/2,H=C/2,W=D/2,j=Math.sin(_-Math.PI/2)*W,ae=Math.cos(_-Math.PI/2)*W;return[D,$-ae,$+ae,H-j,H+j]},to=function(b,v){return Math.sqrt(b*b+v*v)},HB=function(b,v,C,_,D){var $=[[0,0],[0,v],[b,0],[b,v]];return $.reduce(function(H,W){var j=W[0],ae=W[1],ne=to(C-j,_-ae);return(D?ne<H.optimumDistance:ne>H.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:H},{optimumDistance:D?1/0:-1/0,optimumCorner:null}).optimumCorner},WO=function(b,v,C,_,D){var $=0,H=0;switch(b.size){case 0:b.shape===0?$=H=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&($=Math.min(Math.abs(v),Math.abs(v-_)),H=Math.min(Math.abs(C),Math.abs(C-D)));break;case 2:if(b.shape===0)$=H=Math.min(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-D))/Math.min(Math.abs(v),Math.abs(v-_)),j=HB(_,D,v,C,!0),ae=j[0],ne=j[1];$=to(ae-v,(ne-C)/W),H=W*$}break;case 1:b.shape===0?$=H=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&($=Math.max(Math.abs(v),Math.abs(v-_)),H=Math.max(Math.abs(C),Math.abs(C-D)));break;case 3:if(b.shape===0)$=H=Math.max(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-D))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=HB(_,D,v,C,!1),ae=Ae[0],ne=Ae[1];$=to(ae-v,(ne-C)/W),H=W*$}break}return Array.isArray(b.size)&&($=br(b.size[0],_),H=b.size.length===2?br(b.size[1],D):$),[$,H]},XO=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,$){if($===0){var H=D[0];if(H.type===20&&H.value==="to"){C=RB(D);return}else if(MB(H)){C=dm.parse(b,H);return}}var W=Am(b,D);_.push(W)}),{angle:C,stops:_,type:1}},pm=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,$){if($===0){var H=D[0];if(H.type===20&&["top","left","right","bottom"].indexOf(H.value)!==-1){C=RB(D);return}else if(MB(H)){C=(dm.parse(b,H)+Bn(270))%Bn(360);return}}var W=Am(b,D);_.push(W)}),{angle:C,stops:_,type:1}},zO=function(b,v){var C=Bn(180),_=[],D=1,$=0,H=3,W=[];return Lo(v).forEach(function(j,ae){var ne=j[0];if(ae===0){if(hr(ne)&&ne.value==="linear"){D=1;return}else if(hr(ne)&&ne.value==="radial"){D=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=dh.parse(b,ne.values[0]);_.push({stop:js,color:Ae})}else if(ne.name==="to"){var Ae=dh.parse(b,ne.values[0]);_.push({stop:ch,color:Ae})}else if(ne.name==="color-stop"){var _e=ne.values.filter(td);if(_e.length===2){var Ae=dh.parse(b,_e[1]),lt=_e[0];ed(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),D===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:D}:{size:H,shape:$,stops:_,position:W,type:D}},jB="closest-side",WB="farthest-side",XB="closest-corner",zB="farthest-corner",GB="circle",YB="ellipse",KB="cover",ZB="contain",GO=function(b,v){var C=0,_=3,D=[],$=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0){var ae=!1;j=H.reduce(function(Ae,_e){if(ae)if(hr(_e))switch(_e.value){case"center":return $.push(cb),Ae;case"top":case"left":return $.push(js),Ae;case"right":case"bottom":return $.push(ch),Ae}else(ls(_e)||uh(_e))&&$.push(_e);else if(hr(_e))switch(_e.value){case GB:return C=0,!1;case YB:return C=1,!1;case"at":return ae=!0,!1;case jB:return _=0,!1;case KB:case WB:return _=1,!1;case ZB:case XB:return _=2,!1;case zB:return _=3,!1}else if(uh(_e)||ls(_e))return Array.isArray(_)||(_=[]),_.push(_e),!1;return Ae},j)}if(j){var ne=Am(b,H);D.push(ne)}}),{size:_,shape:C,stops:D,position:$,type:2}},fm=function(b,v){var C=0,_=3,D=[],$=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0?j=H.reduce(function(ne,Ae){if(hr(Ae))switch(Ae.value){case"center":return $.push(cb),!1;case"top":case"left":return $.push(js),!1;case"right":case"bottom":return $.push(ch),!1}else if(ls(Ae)||uh(Ae))return $.push(Ae),!1;return ne},j):W===1&&(j=H.reduce(function(ne,Ae){if(hr(Ae))switch(Ae.value){case GB:return C=0,!1;case YB:return C=1,!1;case ZB:case jB:return _=0,!1;case WB:return _=1,!1;case XB:return _=2,!1;case KB:case zB:return _=3,!1}else if(uh(Ae)||ls(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var ae=Am(b,H);D.push(ae)}}),{size:_,shape:C,stops:D,position:$,type:2}},YO=function(b){return b.type===1},KO=function(b){return b.type===2},Ab={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=qB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function ZO(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!qB[b.name])}var qB={"linear-gradient":XO,"-moz-linear-gradient":pm,"-ms-linear-gradient":pm,"-o-linear-gradient":pm,"-webkit-linear-gradient":pm,"radial-gradient":GO,"-moz-radial-gradient":fm,"-ms-radial-gradient":fm,"-o-radial-gradient":fm,"-webkit-radial-gradient":fm,"-webkit-gradient":zO},qO={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return td(_)&&ZO(_)}).map(function(_){return Ab.parse(b,_)})}},JO={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(hr(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},eE={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(ls)}).map(IB)}},tE={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(hr).map(function(_){return _.value}).join(" ")}).map(iE)}},iE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},id;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(id||(id={}));var rE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(sE)})}},sE=function(b){return hr(b)||ls(b)},mm=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},aE=mm("top"),nE=mm("right"),oE=mm("bottom"),lE=mm("left"),gm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return IB(C.filter(ls))}}},hE=gm("top-left"),uE=gm("top-right"),cE=gm("bottom-right"),dE=gm("bottom-left"),ym=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},AE=ym("top"),pE=ym("right"),fE=ym("bottom"),mE=ym("left"),vm=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return MA(C)?C.number:0}}},gE=vm("top"),yE=vm("right"),vE=vm("bottom"),bE=vm("left"),xE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_E={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},CE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).reduce(function(C,_){return C|wE(_.value)},0)}},wE=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},BE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},SE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},bm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(bm||(bm={}));var FE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?bm.STRICT:bm.NORMAL}},TE={name:"line-height",initialValue:"normal",prefix:!1,type:4},JB=function(b,v){return hr(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:ls(b)?br(b,v):v},PE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:Ab.parse(b,v)}},DE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},pb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},xm=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},LE=xm("top"),IE=xm("right"),kE=xm("bottom"),$E=xm("left"),OE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},EE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},_m=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ME=_m("top"),RE=_m("right"),UE=_m("bottom"),VE=_m("left"),NE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},QE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},HE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:Cl.TRANSPARENT,offsetX:js,offsetY:js,blur:js},D=0,$=0;$<C.length;$++){var H=C[$];uh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:_.blur=H,D++):_.color=dh.parse(b,H)}return _})}},jE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},WE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=GE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},XE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},zE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var D=v[4],$=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var H=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,D,$,H,W]:null},GE={matrix:XE,matrix3d:zE},eS={type:16,number:50,flags:IA},YE=[eS,eS],KE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(ls);return C.length!==2?YE:[C[0],C[1]]}},ZE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},VA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(VA||(VA={}));for(var qE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return VA.BREAK_ALL;case"keep-all":return VA.KEEP_ALL;default:return VA.NORMAL}}},JE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(ed(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},tS={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},eM={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return ed(v)?v.number:1}},tM={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(hr).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},rM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(D){switch(D.type){case 20:case 0:C.push(D.value);break;case 17:C.push(D.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(D){return D.indexOf(" ")===-1?D:"'"+D+"'"})}},sM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},aM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return ed(v)?v.number:hr(v)&&v.value==="bold"?700:400}},nM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(hr).map(function(C){return C.value})}},oM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},vs=function(b,v){return(b&v)!==0},lM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},hM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],D=v.filter(LB),$=0;$<D.length;$++){var H=D[$],W=D[$+1];if(H.type===20){var j=W&&ed(W)?W.number:1;_.push({counter:H.value,increment:j})}}return _}},uM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(LB),D=0;D<_.length;D++){var $=_[D],H=_[D+1];if(hr($)&&$.value!=="none"){var W=H&&ed(H)?H.number:0;C.push({counter:$.value,reset:W})}}return C}},cM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(MA).map(function(C){return tS.parse(b,C)})}},dM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],D=v.filter(RO);if(D.length%2!==0)return null;for(var $=0;$<D.length;$+=2){var H=D[$].value,W=D[$+1].value;_.push({open:H,close:W})}return _}},iS=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},AM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:255,offsetX:js,offsetY:js,blur:js,spread:js,inset:!1},D=0,$=0;$<C.length;$++){var H=C[$];ub(H,"inset")?_.inset=!0:uh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:D===2?_.blur=H:_.spread=H,D++):_.color=dh.parse(b,H)}return _})}},pM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(hr).forEach(function(D){switch(D.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(D){_.indexOf(D)===-1&&_.push(D)}),_}},fM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return MA(v)?v.number:0}},gM=(function(){function b(v,C){var _,D;this.animationDuration=dt(v,cM,C.animationDuration),this.backgroundClip=dt(v,NO,C.backgroundClip),this.backgroundColor=dt(v,QO,C.backgroundColor),this.backgroundImage=dt(v,qO,C.backgroundImage),this.backgroundOrigin=dt(v,JO,C.backgroundOrigin),this.backgroundPosition=dt(v,eE,C.backgroundPosition),this.backgroundRepeat=dt(v,tE,C.backgroundRepeat),this.backgroundSize=dt(v,rE,C.backgroundSize),this.borderTopColor=dt(v,aE,C.borderTopColor),this.borderRightColor=dt(v,nE,C.borderRightColor),this.borderBottomColor=dt(v,oE,C.borderBottomColor),this.borderLeftColor=dt(v,lE,C.borderLeftColor),this.borderTopLeftRadius=dt(v,hE,C.borderTopLeftRadius),this.borderTopRightRadius=dt(v,uE,C.borderTopRightRadius),this.borderBottomRightRadius=dt(v,cE,C.borderBottomRightRadius),this.borderBottomLeftRadius=dt(v,dE,C.borderBottomLeftRadius),this.borderTopStyle=dt(v,AE,C.borderTopStyle),this.borderRightStyle=dt(v,pE,C.borderRightStyle),this.borderBottomStyle=dt(v,fE,C.borderBottomStyle),this.borderLeftStyle=dt(v,mE,C.borderLeftStyle),this.borderTopWidth=dt(v,gE,C.borderTopWidth),this.borderRightWidth=dt(v,yE,C.borderRightWidth),this.borderBottomWidth=dt(v,vE,C.borderBottomWidth),this.borderLeftWidth=dt(v,bE,C.borderLeftWidth),this.boxShadow=dt(v,AM,C.boxShadow),this.color=dt(v,xE,C.color),this.direction=dt(v,_E,C.direction),this.display=dt(v,CE,C.display),this.float=dt(v,BE,C.cssFloat),this.fontFamily=dt(v,rM,C.fontFamily),this.fontSize=dt(v,sM,C.fontSize),this.fontStyle=dt(v,oM,C.fontStyle),this.fontVariant=dt(v,nM,C.fontVariant),this.fontWeight=dt(v,aM,C.fontWeight),this.letterSpacing=dt(v,SE,C.letterSpacing),this.lineBreak=dt(v,FE,C.lineBreak),this.lineHeight=dt(v,TE,C.lineHeight),this.listStyleImage=dt(v,PE,C.listStyleImage),this.listStylePosition=dt(v,DE,C.listStylePosition),this.listStyleType=dt(v,pb,C.listStyleType),this.marginTop=dt(v,LE,C.marginTop),this.marginRight=dt(v,IE,C.marginRight),this.marginBottom=dt(v,kE,C.marginBottom),this.marginLeft=dt(v,$E,C.marginLeft),this.opacity=dt(v,eM,C.opacity);var $=dt(v,OE,C.overflow);this.overflowX=$[0],this.overflowY=$[$.length>1?1:0],this.overflowWrap=dt(v,EE,C.overflowWrap),this.paddingTop=dt(v,ME,C.paddingTop),this.paddingRight=dt(v,RE,C.paddingRight),this.paddingBottom=dt(v,UE,C.paddingBottom),this.paddingLeft=dt(v,VE,C.paddingLeft),this.paintOrder=dt(v,pM,C.paintOrder),this.position=dt(v,QE,C.position),this.textAlign=dt(v,NE,C.textAlign),this.textDecorationColor=dt(v,tM,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=dt(v,iM,(D=C.textDecorationLine)!==null&&D!==void 0?D:C.textDecoration),this.textShadow=dt(v,HE,C.textShadow),this.textTransform=dt(v,jE,C.textTransform),this.transform=dt(v,WE,C.transform),this.transformOrigin=dt(v,KE,C.transformOrigin),this.visibility=dt(v,ZE,C.visibility),this.webkitTextStrokeColor=dt(v,fM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=dt(v,mM,C.webkitTextStrokeWidth),this.wordBreak=dt(v,qE,C.wordBreak),this.zIndex=dt(v,JE,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return Ah(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return vs(this.display,4)||vs(this.display,33554432)||vs(this.display,268435456)||vs(this.display,536870912)||vs(this.display,67108864)||vs(this.display,134217728)},b})(),yM=(function(){function b(v,C){this.content=dt(v,lM,C.content),this.quotes=dt(v,dM,C.quotes)}return b})(),rS=(function(){function b(v,C){this.counterIncrement=dt(v,hM,C.counterIncrement),this.counterReset=dt(v,uM,C.counterReset)}return b})(),dt=function(b,v,C){var _=new PB,D=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(D);var $=new DB(_.read());switch(v.type){case 2:var H=$.parseComponentValue();return v.parse(b,hr(H)?H.value:v.initialValue);case 0:return v.parse(b,$.parseComponentValue());case 1:return v.parse(b,$.parseComponentValues());case 4:return $.parseComponentValue();case 3:switch(v.format){case"angle":return dm.parse(b,$.parseComponentValue());case"color":return dh.parse(b,$.parseComponentValue());case"image":return Ab.parse(b,$.parseComponentValue());case"length":var W=$.parseComponentValue();return uh(W)?W:js;case"length-percentage":var j=$.parseComponentValue();return ls(j)?j:js;case"time":return tS.parse(b,$.parseComponentValue())}break}},vM="data-html2canvas-debug",bM=function(b){var v=b.getAttribute(vM);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fb=function(b,v){var C=bM(b);return C===1||v===C},Io=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,fb(C,3))debugger;this.styles=new gM(v,window.getComputedStyle(C,null)),Pb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),fb(C,4)&&(this.flags|=16)}return b})(),xM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA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lAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",sS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NA=typeof Uint8Array>"u"?[]:new Uint8Array(256),Cm=0;Cm<sS.length;Cm++)NA[sS.charCodeAt(Cm)]=Cm;for(var _M=function(b){var v=b.length*.75,C=b.length,_,D=0,$,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)$=NA[b.charCodeAt(_)],H=NA[b.charCodeAt(_+1)],W=NA[b.charCodeAt(_+2)],j=NA[b.charCodeAt(_+3)],ne[D++]=$<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},CM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},wM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},Su=5,mb=11,gb=2,BM=mb-Su,aS=65536>>Su,SM=1<<Su,yb=SM-1,FM=1024>>Su,TM=aS+FM,PM=TM,DM=32,LM=PM+DM,IM=65536>>mb,kM=1<<BM,$M=kM-1,nS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},OM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},EM=function(b,v){var C=_M(b),_=Array.isArray(C)?wM(C):new Uint32Array(C),D=Array.isArray(C)?CM(C):new Uint16Array(C),$=24,H=nS(D,$/2,_[4]/2),W=_[5]===2?nS(D,($+_[4])/2):OM(_,Math.ceil(($+_[4])/4));return new MM(_[0],_[1],_[2],_[3],H,W)},MM=(function(){function b(v,C,_,D,$,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=$,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>Su],C=(C<<gb)+(v&yb),this.data[C];if(v<=65535)return C=this.index[aS+(v-55296>>Su)],C=(C<<gb)+(v&yb),this.data[C];if(v<this.highStart)return C=LM-IM+(v>>mb),C=this.index[C],C+=v>>Su&$M,C=this.index[C],C=(C<<gb)+(v&yb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),oS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",RM=typeof Uint8Array>"u"?[]:new Uint8Array(256),wm=0;wm<oS.length;wm++)RM[oS.charCodeAt(wm)]=wm;var UM=1,vb=2,bb=3,lS=4,hS=5,VM=7,uS=8,xb=9,_b=10,cS=11,dS=12,AS=13,pS=14,Cb=15,NM=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var $=b.charCodeAt(C++);($&64512)===56320?v.push(((D&1023)<<10)+($&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},QM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,$="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&($+=String.fromCharCode.apply(String,_),_.length=0)}return $},HM=EM(xM),Sn="\xD7",wb="\xF7",jM=function(b){return HM.get(b)},WM=function(b,v,C){var _=C-2,D=v[_],$=v[C-1],H=v[C];if($===vb&&H===bb)return Sn;if($===vb||$===bb||$===lS||H===vb||H===bb||H===lS)return wb;if($===uS&&[uS,xb,cS,dS].indexOf(H)!==-1||($===cS||$===xb)&&(H===xb||H===_b)||($===dS||$===_b)&&H===_b||H===AS||H===hS||H===VM||$===UM)return Sn;if($===AS&&H===pS){for(;D===hS;)D=v[--_];if(D===pS)return Sn}if($===Cb&&H===Cb){for(var W=0;D===Cb;)W++,D=v[--_];if(W%2===0)return Sn}return wb},XM=function(b){var v=NM(b),C=v.length,_=0,D=0,$=v.map(jM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var H=Sn;_<C&&(H=WM(v,$,++_))===Sn;);if(H!==Sn||_===C){var W=QM.apply(null,v.slice(D,_));return D=_,{value:W,done:!1}}return{done:!0,value:null}}}},zM=function(b){for(var v=XM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},GM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var D=C.getBoundingClientRect(),$=Math.round(D.height);if(b.body.removeChild(_),$===v)return!0}}return!1},YM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var _=v.firstChild,D=h(_.data).map(function(j){return u(j)}),$=0,H={},W=D.every(function(j,ae){C.setStart(_,$),C.setEnd(_,$+j.length);var ne=C.getBoundingClientRect();$+=j.length;var Ae=ne.x>H.x||ne.y>H.y;return H=ne,ae===0?!0:Ae});return b.body.removeChild(v),W},KM=function(){return typeof new Image().crossOrigin<"u"},ZM=function(){return typeof new XMLHttpRequest().responseType=="string"},qM=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},fS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},JM=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var D=new Image,$=v.toDataURL();D.src=$;var H=Bb(C,C,0,0,D);return _.fillStyle="red",_.fillRect(0,0,C,C),mS(H).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var ae=b.createElement("div");return ae.style.backgroundImage="url("+$+")",ae.style.height=C+"px",fS(j)?mS(Bb(C,C,0,0,ae)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),fS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Bb=function(b,v,C,_,D){var $="http://www.w3.org/2000/svg",H=document.createElementNS($,"svg"),W=document.createElementNS($,"foreignObject");return H.setAttributeNS(null,"width",b.toString()),H.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),H.appendChild(W),W.appendChild(D),H},mS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},Ws={get SUPPORT_RANGE_BOUNDS(){var b=GM(document);return Object.defineProperty(Ws,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=Ws.SUPPORT_RANGE_BOUNDS&&YM(document);return Object.defineProperty(Ws,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=qM(document);return Object.defineProperty(Ws,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?JM(document):Promise.resolve(!1);return Object.defineProperty(Ws,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=KM();return Object.defineProperty(Ws,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=ZM();return Object.defineProperty(Ws,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ws,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ws,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},QA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),eR=function(b,v,C,_){var D=rR(v,C),$=[],H=0;return D.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(Ws.SUPPORT_RANGE_BOUNDS){var j=gS(_,H,W.length).getClientRects();if(j.length>1){var ae=Sb(W),ne=0;ae.forEach(function(_e){$.push(new QA(_e,n.fromDOMRectList(b,gS(_,ne+H,_e.length).getClientRects()))),ne+=_e.length})}else $.push(new QA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);$.push(new QA(W,tR(b,_))),_=Ae}else Ws.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));H+=W.length}),$},tR=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var D=v.parentNode;if(D){D.replaceChild(_,v);var $=o(b,_);return _.firstChild&&D.replaceChild(_.firstChild,_),$}}return n.EMPTY},gS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var D=_.createRange();return D.setStart(b,v),D.setEnd(b,v+C),D},Sb=function(b){if(Ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return zM(b)},iR=function(b,v){if(Ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return aR(b,v)},rR=function(b,v){return v.letterSpacing!==0?Sb(b):iR(b,v)},sR=[32,160,4961,65792,65793,4153,4241],aR=function(b,v){for(var C=I$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],D,$=function(){if(D.value){var H=D.value.slice(),W=h(H),j="";W.forEach(function(ae){sR.indexOf(ae)===-1?j+=u(ae):(j.length&&_.push(j),_.push(u(ae)),j="")}),j.length&&_.push(j)}};!(D=C.next()).done;)$();return _},nR=(function(){function b(v,C,_){this.text=oR(C.data,_.textTransform),this.textBounds=eR(v,this.text,_,C)}return b})(),oR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(lR,hR);case 2:return b.toUpperCase();default:return b}},lR=/(^|\s|:|-|\(|\))([a-z])/g,hR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},yS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.src=_.currentSrc||_.src,D.intrinsicWidth=_.naturalWidth,D.intrinsicHeight=_.naturalHeight,D.context.cache.addImage(D.src),D}return v})(Io),vS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.canvas=_,D.intrinsicWidth=_.width,D.intrinsicHeight=_.height,D}return v})(Io),bS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,$=new XMLSerializer,H=o(C,_);return _.setAttribute("width",H.width+"px"),_.setAttribute("height",H.height+"px"),D.svg="data:image/svg+xml,"+encodeURIComponent($.serializeToString(_)),D.intrinsicWidth=_.width.baseVal.value,D.intrinsicHeight=_.height.baseVal.value,D.context.cache.addImage(D.svg),D}return v})(Io),xS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),Fb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.start=_.start,D.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,D}return v})(Io),uR=[{type:15,flags:0,unit:"px",number:3}],cR=[{type:16,flags:0,number:50}],dR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},AR=function(b){var v=b.type===pR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},Bm="checkbox",Sm="radio",pR="password",_S=707406591,Tb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;switch(D.type=_.type.toLowerCase(),D.checked=_.checked,D.value=AR(_),(D.type===Bm||D.type===Sm)&&(D.styles.backgroundColor=3739148031,D.styles.borderTopColor=D.styles.borderRightColor=D.styles.borderBottomColor=D.styles.borderLeftColor=2779096575,D.styles.borderTopWidth=D.styles.borderRightWidth=D.styles.borderBottomWidth=D.styles.borderLeftWidth=1,D.styles.borderTopStyle=D.styles.borderRightStyle=D.styles.borderBottomStyle=D.styles.borderLeftStyle=1,D.styles.backgroundClip=[0],D.styles.backgroundOrigin=[0],D.bounds=dR(D.bounds)),D.type){case Bm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=uR;break;case Sm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=cR;break}return D}return v})(Io),CS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,$=_.options[_.selectedIndex||0];return D.value=$&&$.text||"",D}return v})(Io),wS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),BS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;D.src=_.src,D.width=parseInt(_.width,10)||0,D.height=parseInt(_.height,10)||0,D.backgroundColor=D.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){D.tree=FS(C,_.contentWindow.document.documentElement);var $=_.contentWindow.document.documentElement?UA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Cl.TRANSPARENT,H=_.contentWindow.document.body?UA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Cl.TRANSPARENT;D.backgroundColor=Ah($)?Ah(H)?D.styles.backgroundColor:H:$}}catch{}return D}return v})(Io),fR=["OL","UL","MENU"],Fm=function(b,v,C,_){for(var D=v.firstChild,$=void 0;D;D=$)if($=D.nextSibling,TS(D)&&D.data.trim().length>0)C.textNodes.push(new nR(b,D,C.styles));else if(rd(D))if($S(D)&&D.assignedNodes)D.assignedNodes().forEach(function(W){return Fm(b,W,C,_)});else{var H=SS(b,D);H.styles.isVisible()&&(mR(D,H,_)?H.flags|=4:gR(H.styles)&&(H.flags|=2),fR.indexOf(D.tagName)!==-1&&(H.flags|=8),C.elements.push(H),D.slot,D.shadowRoot?Fm(b,D.shadowRoot,H,_):!Pm(D)&&!PS(D)&&!Dm(D)&&Fm(b,D,H,_))}},SS=function(b,v){return Lb(v)?new yS(b,v):DS(v)?new vS(b,v):PS(v)?new bS(b,v):yR(v)?new xS(b,v):vR(v)?new Fb(b,v):bR(v)?new Tb(b,v):Dm(v)?new CS(b,v):Pm(v)?new wS(b,v):IS(v)?new BS(b,v):new Io(b,v)},FS=function(b,v){var C=SS(b,v);return C.flags|=4,Fm(b,v,C,C),C},mR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Db(b)&&C.styles.isTransparent()},gR=function(b){return b.isPositioned()||b.isFloating()},TS=function(b){return b.nodeType===Node.TEXT_NODE},rd=function(b){return b.nodeType===Node.ELEMENT_NODE},Pb=function(b){return rd(b)&&typeof b.style<"u"&&!Tm(b)},Tm=function(b){return typeof b.className=="object"},yR=function(b){return b.tagName==="LI"},vR=function(b){return b.tagName==="OL"},bR=function(b){return b.tagName==="INPUT"},xR=function(b){return b.tagName==="HTML"},PS=function(b){return b.tagName==="svg"},Db=function(b){return b.tagName==="BODY"},DS=function(b){return b.tagName==="CANVAS"},LS=function(b){return b.tagName==="VIDEO"},Lb=function(b){return b.tagName==="IMG"},IS=function(b){return b.tagName==="IFRAME"},kS=function(b){return b.tagName==="STYLE"},_R=function(b){return b.tagName==="SCRIPT"},Pm=function(b){return b.tagName==="TEXTAREA"},Dm=function(b){return b.tagName==="SELECT"},$S=function(b){return b.tagName==="SLOT"},OS=function(b){return b.tagName.indexOf("-")>0},CR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,D=v.counterReset,$=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&($=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var H=[];return $&&D.forEach(function(W){var j=C.counters[W.counter];H.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),H},b})(),ES={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},MS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},wR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},BR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},sd=function(b,v,C,_,D,$){return b<v||b>C?jA(b,D,$.length>0):_.integers.reduce(function(H,W,j){for(;b>=W;)b-=W,H+=_.values[j];return H},"")+$},RS=function(b,v,C,_){var D="";do C||b--,D=_(b)+D,b/=v;while(b*v>=v);return D},qr=function(b,v,C,_,D){var $=C-v+1;return(b<0?"-":"")+(RS(Math.abs(b),$,_,function(H){return u(Math.floor(H%$)+v)})+D)},Fu=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return RS(Math.abs(b),_,!1,function(D){return v[Math.floor(D%_)]})+C},ad=1,fh=2,mh=4,HA=8,wl=function(b,v,C,_,D,$){if(b<-9999||b>9999)return jA(b,4,D.length>0);var H=Math.abs(b),W=D;if(H===0)return v[0]+W;for(var j=0;H>0&&j<=4;j++){var ae=H%10;ae===0&&vs($,ad)&&W!==""?W=v[ae]+W:ae>1||ae===1&&j===0||ae===1&&j===1&&vs($,fh)||ae===1&&j===1&&vs($,mh)&&b>100||ae===1&&j>1&&vs($,HA)?W=v[ae]+(j>0?C[j-1]:"")+W:ae===1&&j>0&&(W=C[j-1]+W),H=Math.floor(H/10)}return(b<0?_:"")+W},US="\u5341\u767E\u5343\u842C",VS="\u62FE\u4F70\u4EDF\u842C",NS="\u30DE\u30A4\u30CA\u30B9",Ib="\uB9C8\uC774\uB108\uC2A4",jA=function(b,v,C){var _=C?". ":"",D=C?"\u3001":"",$=C?", ":"",H=C?" ":"";switch(v){case 0:return"\u2022"+H;case 1:return"\u25E6"+H;case 2:return"\u25FE"+H;case 5:var W=qr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Fu(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",D);case 6:return sd(b,1,3999,ES,3,_).toLowerCase();case 7:return sd(b,1,3999,ES,3,_);case 8:return qr(b,945,969,!1,_);case 9:return qr(b,97,122,!1,_);case 10:return qr(b,65,90,!1,_);case 11:return qr(b,1632,1641,!0,_);case 12:case 49:return sd(b,1,9999,MS,3,_);case 35:return sd(b,1,9999,MS,3,_).toLowerCase();case 13:return qr(b,2534,2543,!0,_);case 14:case 30:return qr(b,6112,6121,!0,_);case 15:return Fu(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",D);case 16:return Fu(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",D);case 17:case 48:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",US,"\u8CA0",D,fh|mh|HA);case 47:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",VS,"\u8CA0",D,ad|fh|mh|HA);case 42:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",US,"\u8D1F",D,fh|mh|HA);case 41:return wl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",VS,"\u8D1F",D,ad|fh|mh|HA);case 26:return wl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",NS,D,0);case 25:return wl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",NS,D,ad|fh|mh);case 31:return wl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ib,$,ad|fh|mh);case 33:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ib,$,0);case 32:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ib,$,ad|fh|mh);case 18:return qr(b,2406,2415,!0,_);case 20:return sd(b,1,19999,BR,3,_);case 21:return qr(b,2790,2799,!0,_);case 22:return qr(b,2662,2671,!0,_);case 22:return sd(b,1,10999,wR,3,_);case 23:return Fu(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Fu(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return qr(b,3302,3311,!0,_);case 28:return Fu(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",D);case 29:return Fu(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",D);case 34:return qr(b,3792,3801,!0,_);case 37:return qr(b,6160,6169,!0,_);case 38:return qr(b,4160,4169,!0,_);case 39:return qr(b,2918,2927,!0,_);case 40:return qr(b,1776,1785,!0,_);case 43:return qr(b,3046,3055,!0,_);case 44:return qr(b,3174,3183,!0,_);case 45:return qr(b,3664,3673,!0,_);case 46:return qr(b,3872,3881,!0,_);default:return qr(b,48,57,!0,_)}},QS="data-html2canvas-ignore",HS=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new CR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,D=SR(v,C);if(!D.contentWindow)return Promise.reject("Unable to find iframe window");var $=v.defaultView.pageXOffset,H=v.defaultView.pageYOffset,W=D.contentWindow,j=W.document,ae=PR(D).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(_e){switch(_e.label){case 0:return this.scrolledElements.forEach(kR),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:_e.sent(),_e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,TR(j)]:[3,4];case 3:_e.sent(),_e.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return D})]:[2,D]}})})});return j.open(),j.write(LR(document.doctype)+"<html></html>"),IR(this.referenceElement.ownerDocument,$,H),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),ae},b.prototype.createElementClone=function(v){if(fb(v,2))debugger;if(DS(v))return this.createCanvasClone(v);if(LS(v))return this.createVideoClone(v);if(kS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Lb(C)&&(Lb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),OS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return kb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function($,H){return H&&typeof H.cssText=="string"?$+H.cssText:$},""),D=v.cloneNode(!1);return D.textContent=_,D}}catch($){if(this.context.logger.error("Unable to access cssRules property",$),$.name!=="SecurityError")throw $}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var D=v.cloneNode(!1);try{D.width=v.width,D.height=v.height;var $=v.getContext("2d"),H=D.getContext("2d");if(H)if(!this.options.allowTaint&&$)H.putImageData($.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}H.drawImage(v,0,0)}return D}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return D},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var D=v.ownerDocument.createElement("canvas");return D.width=v.offsetWidth,D.height=v.offsetHeight,D},b.prototype.appendChildNode=function(v,C,_){(!rd(C)||!_R(C)&&!C.hasAttribute(QS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!rd(C)||!kS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var D=this,$=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;$;$=$.nextSibling)if(rd($)&&$S($)&&typeof $.assignedNodes=="function"){var H=$.assignedNodes();H.length&&H.forEach(function(W){return D.appendChildNode(C,W,_)})}else this.appendChildNode(C,$,_)},b.prototype.cloneNode=function(v,C){if(TS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&rd(v)&&(Pb(v)||Tm(v))){var D=this.createElementClone(v);D.style.transitionProperty="none";var $=_.getComputedStyle(v),H=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Pb(D)&&(this.clonedReferenceElement=D),Db(D)&&ER(D);var j=this.counters.parse(new rS(this.context,$)),ae=this.resolvePseudoContent(v,D,H,WA.BEFORE);OS(v)&&(C=!0),LS(v)||this.cloneChildNodes(v,D,C),ae&&D.insertBefore(ae,D.firstChild);var ne=this.resolvePseudoContent(v,D,W,WA.AFTER);return ne&&D.appendChild(ne),this.counters.pop(j),($&&(this.options.copyStyles||Tm(v))&&!IS(v)||C)&&kb($,D),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([D,v.scrollLeft,v.scrollTop]),(Pm(v)||Dm(v))&&(Pm(D)||Dm(D))&&(D.value=v.value),D}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,D){var $=this;if(_){var H=_.content,W=C.ownerDocument;if(!(!W||!H||H==="none"||H==="-moz-alt-content"||_.display==="none")){this.counters.parse(new rS(this.context,_));var j=new yM(this.context,_),ae=W.createElement("html2canvaspseudoelement");kb(_,ae),j.content.forEach(function(Ae){if(Ae.type===0)ae.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var _e=W.createElement("img");_e.src=Ae.value,_e.style.opacity="1",ae.appendChild(_e)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(hr);lt.length&&ae.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(td),Ze=Ue[0],ii=Ue[1];if(Ze&&hr(Ze)){var bt=$.counters.getCounterValue(Ze.value),gt=ii&&hr(ii)?pb.parse($.context,ii.value):3;ae.appendChild(W.createTextNode(jA(bt,gt,!1)))}}else if(Ae.name==="counters"){var Wi=Ae.values.filter(td),Ze=Wi[0],ni=Wi[1],ii=Wi[2];if(Ze&&hr(Ze)){var Mt=$.counters.getCounterValues(Ze.value),rt=ii&&hr(ii)?pb.parse($.context,ii.value):3,ki=ni&&ni.type===0?ni.value:"",$i=Mt.map(function(Oa){return jA(Oa,rt,!1)}).join(ki);ae.appendChild(W.createTextNode($i))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":ae.appendChild(W.createTextNode(iS(j.quotes,$.quoteDepth++,!0)));break;case"close-quote":ae.appendChild(W.createTextNode(iS(j.quotes,--$.quoteDepth,!1)));break;default:ae.appendChild(W.createTextNode(Ae.value))}}),ae.className=$b+" "+Ob;var ne=D===WA.BEFORE?" "+$b:" "+Ob;return Tm(C)?C.className.baseValue+=ne:C.className+=ne,ae}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),WA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(WA||(WA={}));var SR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(QS,"true"),b.body.appendChild(C),C},FR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},TR=function(b){return Promise.all([].slice.call(b.images,0).map(FR))},PR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var D=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var $=setInterval(function(){D.body.childNodes.length>0&&D.readyState==="complete"&&(clearInterval($),v(b))},50)}})},DR=["all","d","content"],kb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);DR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},LR=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},IR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},kR=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},$R=":before",OR=":after",$b="___html2canvas___pseudoelement_before",Ob="___html2canvas___pseudoelement_after",jS=`{
3
3
  content: "" !important;
4
4
  display: none !important;
5
5
  }`,ER=function(b){MR(b,"."+$b+$R+jS+`
@@ -55,4 +55,4 @@ ${U}[bold]${L}${h} [/]`:`
55
55
  [bold]${x.label}${A} [/]${x.value}
56
56
  [bold]${m}${A}[/] ${u} [/]]`)}return h}}function eX(a){let{heatSeries:t,tooltip:e}=a,i="",{chart:r}=t;if(r!==void 0&&e!==void 0){let s=fe(r.uid,"config"),{dataTooltipVisible:n}=s?.series[0]??{};if(n!==!1){let o=Qt(t.uid,"heatChartTooltipFormatter");if(o){let l=e.dataItem;if(l!==void 0){let h=l.dataContext;if(s?.series?.[0]?.dataTooltipVisible!==!1){let u=h?.[xr.valueField]??null,c=h?.[xr.xField],d=h?.[xr.yField];i=o(u,c,d)}}}}else return}return Er(i)}function Jw(a,t){let e=Yf(a);a.columns.template.set("tooltip",e);let i=t!==void 0||Qt(a.uid,"hasExternalTooltipFormatter")===!0,r=i?"tooltipHTML":"tooltipText";ih({element:a.columns.template,labelOutputProp:r}),a.columns.template.setAll({tooltipPosition:Z.columnTooltipPosition}),a.columns.template.adapters.remove("tooltipText"),a.columns.template.adapters.remove("tooltipHTML"),a.columns.template.adapters.add(r,(s,n)=>rh({element:n,series:a,isHTML:i})),a.columns.each(s=>{s.set("tooltip",e),s.set("tooltipPosition","pointer"),ih({element:s,labelOutputProp:r}),s.adapters.remove("tooltipText"),s.adapters.remove("tooltipHTML"),s.adapters.add(r,(n,o)=>rh({element:o,series:a,isHTML:i}))})}function tX(a){let{series:t,seriesConfig:e,utilsStrings:i,fieldList:r,options:s,queryObject:n}=a,o=Qt(t.uid,"hasExternalTooltipFormatter")===!0,l=s?.tooltipFormatter!==void 0;Kr(t.uid,{heatChartTooltipFormatter:s?.tooltipFormatter??J4({columnSeries:t,seriesConfig:e,utilsStrings:i,fieldList:r,queryObject:n}),hasExternalTooltipFormatter:l}),o!==l&&Jw(t,s?.tooltipFormatter)}function Lv(a){let t={type:Rt.SLS,color:[0,0,0,0],width:0},e=a?.color?a:t,i=a?.color?zt(a.color).color:void 0,r=a?.color?zt(a.color).opacity:void 0;return{outlineSymbol:e,outlineColor:i,outlineOpacity:r}}function iX(a){let{root:t,xAxis:e,yAxis:i,options:r,chartConfig:s,queryObject:n,errorStrings:o}=a,l=Li.new(t,{calculateAggregates:!0,stroke:zt(Z.backgroundColor).color,clustered:!1,turboMode:!0,xAxis:e,yAxis:i,categoryXField:xr.xField,categoryYField:xr.yField,valueField:xr.valueField});return l.columns.template.setAll({tooltipText:`x: {${xr.xField}}
57
57
  y: {${xr.yField}}
58
- Value: {${xr.valueField}}`,width:ge,height:ge}),Jw(l,r?.tooltipFormatter),PA(l,s),os(l.columns.template,r?.selectionTheme),To({element:l.columns.template,series:l,queryObject:n,errorStrings:o}),l}function rX(a,t){t?.dataItems&&a.data.setAll(t.dataItems)}function sX(a){let{columnSeries:t,seriesConfig:e}=a,{gradientHeatRules:i}=Z.heatChart,{gradientRules:r,heatRulesType:s,gridLine:n}=e,o=e.emptyCells?.symbol??Z.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,u=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,c=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:f}=zt(l),{color:m,opacity:g}=zt(h),y=zt(u),x=zt(c);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,F,T)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let O,I,U,P=!1;if(s===$u.Renderer){let Q=L?.[pt.rendererSymbolField];if(gd(Q)){U=Fr(Q);let{outlineSymbol:Y}=Lv(n);U.outline=Y}else P=!0}if((!Number.isFinite(T)||P)&&o){U=Fr(o);let{outlineSymbol:Q}=Lv(n);U.outline=Q}if(U){let Q=xu({root:t.root,element:w,fillSymbol:U});gA(w,Q)}else typeof d=="number"&&T<d?{color:O,opacity:I}=y:typeof A=="number"&&T>A?{color:O,opacity:I}=x:S===F?(O=p,I=f):(O=ot.interpolate((T-S)/(F-S),p,m,"rgb"),I=f+(T-S)/(F-S)*(g-f)),O&&w.set("fill",O),I!==void 0&&w.set("fillOpacity",I)}}}])}function aX(a,t){t?.color?Fo({element:a.columns.template,lineSymbol:t}):a.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function nX(a){let{series:t,data:e,dataWasUpdated:i,sortChanged:r,timeZoneChanged:s,seriesWereReinitialized:n,seriesConfig:o,autoInverseDataLabelTextColor:l,options:h,queryObject:u,chartConfig:c}=a,d=i===!0||r===!0||s||n===!0;t.set("id",o.id),xi(t,o.visible),_A(t,!1),os(t.columns.template,h?.selectionTheme),Cu(t.columns.template,e?.dataItems?.length),tX(a),aX(t,o.gridLine),sX({columnSeries:t,seriesConfig:o}),d&&rX(t,e),I4({seriesType:V.HeatSeries,series:t,seriesConfig:o,dataLabelsConfig:o.dataLabels,autoInverseDataLabelTextColor:l,externalDataLabelFormatter:h?.dataLabelFormatter});let{chart:A}=t;A&&oX({seriesConfig:o,queryObject:u,chartConfig:c,chart:A}),h?.interactionsDisabled&&_A(t,!0)}function oX(a){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=a,s;if(t.heatRulesType===$u.Renderer)s={heatRulesType:$u.Renderer,seriesColors:wk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=Z.heatChart,{gradientRules:o}=t;s={heatRulesType:$u.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:s,colorMatchApplied:!1,htmlContainer:r.root.dom})}function Ck(a,t){let e="",i,r,s;return a&&typeof a=="object"&&(e="label"in a&&typeof a.label=="string"?a.label:"",i="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"color"in a.symbol&&Array.isArray(a.symbol.color)?a.symbol.color:void 0,s="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"outline"in a.symbol&&Array.isArray(a.symbol.outline)?a.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=zt(i)),Array.isArray(s)&&(s=zt(s).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:s}}function lX(a){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:s,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=a,{legendItemLabel:u,legendItemColor:c,legendItemColorOpacity:d}=Ck(n,!0);if(n&&typeof n=="object"&&c&&!Array.isArray(c)){let A=!0;if(r&&s){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,f="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,m=o===l-1;A=r.some(g=>{let y=g[s];return m||h?typeof y=="number"&&y>=p&&y<=f:typeof y=="number"&&y>=p&&y<f})}A&&(t={[Ps.nameField]:u,[Ps.fillField]:c,[Ps.strokeField]:e,[Ps.fillOpacityField]:d,[Ps.strokeOpacityField]:i})}return t}function hX(a){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=Ck(a,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Rt.SFS,style:bs.Solid,color:i,outline:{type:Rt.SLS,color:r??i}}}),t}function wk(a){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=a,s,n=Os(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:u}=Lv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let c=r?.data.values,d=r?.get("valueField")??xr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;s=l.classBreakInfos.map((f,m)=>{let g;return i?g=lX({outlineColor:h,outlineOpacity:u,dataItems:c,valueField:d,classBreakInfo:f,classBreakIndex:m,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=hX(f),g}).filter(Boolean)}return s}var Gv="arcgis_charts_title_container",eB="arcgis_charts_subtitle_container",Yv="arcgis_charts_footer_container",Bk="arcgis_charts_title",Sk="arcgis_charts_subtitle",Fk="arcgis_charts_footer",va="arcgis_charts_legend_container",eo="arcgis_charts_legend_title",Aw="arcgis_charts_axis_title_id";function uX(a){let t=a.yAxes.getIndex(0);if(t){let e=Ii({childId:`${Aw}_y_${t.uid}`,parent:t});e instanceof Kt&&e.set("dx",0)}}function cX(a,t){let e=Z.axisLabelSpacing.verticalAxisLabelSidePadding,i=Z.heatChart.legend.legendPadding+e;t.set("marginRight",i),a.leftAxesContainer.setAll({paddingLeft:e});let r=a.leftAxesContainer.children.values[0];r instanceof Br&&r.set("paddingLeft",e)}function Tk(a,t){let{root:e}=a,i=fe(a.uid,"rtl")??!1,r=fe(a.uid,"config")??t,s=r?.series[0],{start:n,end:o}=Kv(i,s),l=r?.legend?.position??Z.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return xo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function dX(a,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:s,end:n}=Kv(e,r);a.setAll({startColor:s.color,endColor:n.color,startOpacity:s.opacity,endOpacity:n.opacity})}}function Kv(a=!1,t){let e=Z.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...a?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:s}=zt(i[0]),{color:n,opacity:o}=zt(i[1]);return{start:{color:r,opacity:s},end:{color:n,opacity:o}}}function mI(a,t){let e=fe(a.uid,"rtl")??!1,i=fe(a.uid,"config")?.series[0],{start:r,end:s}=Kv(e,i);t.setAll({startColor:r.color,endColor:s.color})}function Pk(a){let t=fe(a.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=Z.heatChart.legend,i=t?.legend?.position??e.position,r=Hs(va,a.uid),s,n=!1;switch(i){case st.Top:s=a.topAxesContainer,n=!0;break;case st.Bottom:s=a.bottomAxesContainer,n=!1;break;case st.Left:s=a.leftAxesContainer,n=!0;break;case st.Right:s=a.rightAxesContainer,n=!1;break;default:s=void 0}if(s!==void 0){let o=Ii({childId:r,parent:s,useChildId:!0});if(o!==void 0){let{children:l}=s,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),s.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),s.markDirty()))}}}}function Dk(a){let{chart:t,legend:e,legendContainer:i}=a,{root:r}=t,s=fe(t.uid,"config"),n=Z.heatChart.legend,o=s?.legend?.position??n.position,l,h,u,c=o===st.Left||o===st.Top,d=Ii({childId:eo,parent:i}),A=s?.legend?s.legend.visible??!0:!1,p=s?.legend?.title?s.legend.title.visible??!0:!1,f=d instanceof Kt&&A&&p?d.height()>0?d.height():n.titleHeight:0,m=o===st.Left||o===st.Right;switch(e.setAll({orientation:m?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),cX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:u=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+f});let g=Ii({childId:Yv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+f),l=t.bottomAxesContainer}break}uX(t),e.markDirty(),Lk(t,{chartPaddingTop:u,chartPaddingBottom:h}),bu(()=>{l&&(c?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Lk(a,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:s}=t;a.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:s})}function Ik(a,t){let e=a.root.events.on(Ji.FrameEnded,()=>{a.markerContainer.children.length>0&&(t(),e.dispose())})}function kk(a){let{series:t,legend:e,chart:i}=a,r=fe(i.uid,"config"),s=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),bu(()=>{Ik(e,()=>{$k({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{s(t)}),s(t)),Ok(e,r?.legend)}function $k(a){let{legend:t,series:e,chartConfig:i}=a,r=i?.series[0],s=r?.gradientRules;if(s&&(s.minValue!==void 0||s.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,u=h-l,c=s.minValue??l,d=s.maxValue??h,A=(c-l)/u,p=(d-l)/u;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:f,end:m}=Kv(!1,r),{color:g,opacity:y}=zt(s.outsideRangeLowerColor??Z.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=zt(s.outsideRangeUpperColor??Z.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:f.color,opacity:f.opacity,offset:A},{color:m.color,opacity:m.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],F=(L,O,I)=>{let U=Hs(`heatLegendLabel${I}`,t.uid),P=t.markerContainer.children.values.find(G=>G instanceof Kt&&G.get("id")===U),Q=P&&!P.isDisposed()?P:void 0,Y=t.startLabel;if(Q||(Q=Kt.new(t.root,{id:U,position:"absolute",isMeasured:!1,centerX:He,centerY:He,paddingLeft:0}),t.markerContainer.children.push(Q)),Q.setAll({fill:Y.get("fill"),fontSize:Y.get("fontSize"),fontFamily:Y.get("fontFamily")}),Q.set("text",L.toString()),t.get("orientation")==="vertical"){let G=Y.localBounds().top,ee=Y.get("fontSize")??0;if(typeof ee=="number"){let te=Z.heatChart.legend.minMaxLabelPadding;Q.set("x",G-ee*2-te)}else Q.set("x",G);Q.set("y",Bt(O*100)),Q.set("centerY",He)}else{Q.set("x",Bt(O*100));let G=t.startLabel.localBounds().bottom,ee=Z.heatChart.legend.minMaxLabelPadding;Q.set("y",-G-ee),Q.set("centerX",jr)}};A>0&&A<1&&F(c,A,"Min"),p>0&&p<1&&F(d,p,"Max");let T=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each(O=>{O instanceof or&&(L=O)}),L){let O=0;t.get("orientation")==="vertical"&&(O=90),L.set("fillGradient",al.new(t.root,{stops:S,rotation:O}))}};if(t.markerContainer.children.length>0)T();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),T())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof or&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ok(a,t){if(a!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Rt.TS,text:" "}};[a.startLabel,a.endLabel].forEach(i=>{Cn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function tB(a){let t=Hs(va,a.uid);[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(e=>{let i=Ii({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof xo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Lk(a,{}),pX(a)}function iB(a,t){let e=bA({root:t.root,parent:t,index:0,id:Hs(eo,t.uid)});return e.set("paddingTop",Z.heatChart.legend.titlePadding),Hc({chart:a,label:e,labelType:Xt.LegendTitle}),e}function pw(a){let{chart:t,legendConfig:e,container:i}=a,r=Hs(va,t.uid),s=i;if(s||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Ii({childId:r,parent:n,useChildId:!0});o&&(s=o)}),s!==void 0){let n=Ii({childId:eo,parent:s})??iB(t,s);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=Z.legendProperties;if(o!==void 0){Cn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:"top"}});let u=fe(t.uid,"config")?.legend?.position??Z.heatChart.legend.position;u===st.Left||u===st.Right?(n.set("maxWidth",250),gl({chart:t,label:n,labelType:Xt.LegendTitle})):n.set("maxWidth",void 0),Ek({legendContainer:s,chart:t})}else xi(n,!1)}}}function AX(a,t){let{root:e}=a,i=fe(a.uid,"config"),r=i?.legend,s=a.series.values[0];tB(a);let n=Tk(a,i??t),o=Re.new(e,{id:Hs(va,a.uid),layout:e.verticalLayout});return o.children.push(n),iB(a,o),pw({chart:a,legendConfig:r,container:o}),kk({series:s,legend:n,chart:a}),r!==void 0&&r.visible!==!1&&(Dk({chart:a,legend:n,legendContainer:o}),fw({legend:n,chart:a,legendContainer:o})),n}function fw(a){let{legend:t,chart:e,legendContainer:i}=a,r=fe(e.uid,"config"),s=Z.heatChart.legend,n=r?.legend?.position??s.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Ek({legendContainer:i,chart:e});else{let o=Ii({childId:eo,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,u=o instanceof Kt&&l&&h?o.height()>0?o.height():s.titleHeight+s.titlePadding:0,c=n===st.Top?s.topHeight:s.bottomHeight;t.set("height",c),i.set("height",c+u+20)}}function Ek(a){let{legendContainer:t,chart:e}=a,i=fe(e.uid,"config"),r=Z.heatChart.legend,s=i?.legend?.position??r.position;if(s!==st.Left&&s!==st.Right)return;let n=Ii({childId:eo,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Kt&&o){let l=()=>{let h=n.width(),u=r.width,c=Math.max(h+r.legendPadding*2,u);t.set("width",c)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function pX(a){let t=Ii({childId:Gv,parent:a});t instanceof Re&&t.set("marginTop",0)}function fX(a){let t,e=Hs(va,a.uid);return[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(i=>{let r=Ii({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof xo);if(n){t=n;return}}let s=i.children.values.find(n=>n instanceof xo);if(s){t=s;return}}),t}function mX(a){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=a,{legend:s}=e,n=s!==void 0&&s.visible!==!1,o=t.series.values[0];if(i||r)tB(t),n&&o instanceof Li&&bu(()=>{let l=Tk(t),h=Re.new(t.root,{id:Hs(va,t.uid),layout:t.root.verticalLayout});h.children.push(l),iB(t,h),pw({chart:t,legendConfig:s,container:h}),mI(t,l),Dk({chart:t,legend:l,legendContainer:h}),kk({series:o,legend:l,chart:t}),fw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Li){let l=fX(t);if(l){mI(t,l),pw({chart:t,legendConfig:s}),Ok(l,s);let h=l.parent;h?.get("id")===Hs(va,t.uid)&&xi(h,n),xi(l,n),dX(l,t),h&&fw({legend:l,chart:t,legendContainer:h}),bu(()=>{Ik(l,()=>{$k({legend:l,series:o,chartConfig:e})})})}}}function gX(a,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=a.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!a.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function yX(a){let t=!1,e=a.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!a.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function vX(a){jw(a.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=zW(a.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),a.valueLabels.template.set("text","")}function Mk(a){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:s}=a,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:u,percentValueFormat:c,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=l??Z.pieChart.displayNumericValueOnLegend,g=h??Z.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let O=Kw({pieChart:s,valueIntlOptions:u?.intlOptions,percentageIntlOptions:c?.intlOptions,displayNumericValue:m,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});y=(I,U)=>O("",I,U)}GW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(s?.uid??0,"config")?.legend?.position??Z.legendProperties.position,w=i?.valueLabelMaxWidth,S=gX(t,x),F={type:V.Text,visible:n,content:{...o,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:S?"right":"center"}};Cn({label:t.valueLabels.template,labelConfig:F,defaults:Z.legendProperties.valueLabels});let T=fe(s?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:T?"right":"left",disabled:m===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function bX(a,t){a.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.labelMaxWidth,n=r?.legend?.position??Z.legendProperties.position;if(n===st.Right||n===st.Left)i=s??Z.legendProperties.legendLabels.maxWidth;else if(s!==void 0)i=s;else{let o=0;a.valueLabels.template.get("forceHidden")||a.valueLabels.each(h=>{let u=h.get("width",0);typeof u=="number"&&(o=Math.max(o,u))});let l=a.get("width",200);typeof l=="number"&&(i=l+o)}return i}),a.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??Z.legendProperties.position;return n===st.Right||n===st.Left?i=s??Z.legendProperties.valueLabels.maxWidth:i=s??Number.NaN,i})}function Rk(a,t){let e=0;for(let i of a.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function xX(a,t){for(let e of a.dataItems)e.get("label")?.set("width",t)}function _X(a,t){let e=0;for(let i of a.dataItems){let r=i.get("marker")?._contentWidth??0,s=i.get("valueLabel")?._contentWidth??0,n=r+t+s;e=Math.max(e,n)}return Math.ceil(e)+Z.legendPadding}function Uk(a,t){bu(()=>{let e=yX(a),i=t===st.Right||t===st.Left||!e;xX(a,i?Rk(a):void 0)})}function CX(a){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=a,{displayCategory:s}=r??{},n=s??Z.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),bu(()=>{let l=Rk(t,r?.labelMaxWidth),h=_X(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),bX(t,e),Mk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let u=r.position??Z.legendProperties.position;Uk(t,u),t.markDirty()})}function Vk(a){return a?.[0].type===V.HeatSeries&&a[0].heatRulesType!==$u.Renderer}function Nk(a){let t=a.get("id");a.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof ms){let s=Ii({childId:va,parent:r});s!==void 0&&s.dataItems?.forEach(n=>{n.get("id")===t&&s.set("opacity",e?1:Z.legendProperties.legendLabelReducedOpacity)})}}})}function wX(a){let t=a.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof zr){let r={visible:!i.get("visible")};ah(i)||Zf(i)?r.overlayType=Qt(i.uid,"type"):r.seriesId=i.get("id"),lx(r,i.root.dom)}}}function BX(a){a.itemContainers.template.events.on(Ji.Click,wX)}function SX(a,t){let e=fe(t.uid,"rtl")??!1;a.itemContainers.template.setAll({reverseChildren:e})}function FX(a){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:s}=a,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=It(i.series);switch(n){case V.BoxPlotSeries:{let h=oa(i);o=t.series.values.filter(u=>{let c=!1;return h?c=u instanceof qt&&!(u instanceof Bo):c=u instanceof La,c});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let u=!1;if(Qt(h.uid,"isOverlay")){let c=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=Qt(h.uid,"type"),A;switch(d){case vr.Mean:A=c?.mean?.created;break;case vr.Median:A=c?.median?.created;break;case vr.Normal:A=c?.comparisonDistribution?.created;break;case vr.StdDev:A=c?.standardDeviation?.created;break}u=A===!0}return u});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let u=!0;if(!r){let c=i.series.find(d=>d.id===h.get("id"));if(c!==void 0&&"y"in c&&typeof c.y=="string"){let{x:d,y:A}=c,p=l===ke.BarAndLineSplitByNoAggregation?`${A}_${xh({where:c.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;u=h.data.values.some(f=>dT({dataItem:f,x:d,y:p,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))}}return u});break;case V.ScatterSeries:{let h=Wk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Li&&so(i)&&!xs(s)){let u=wk({queryObject:s,chartConfig:i,forLegend:!0,series:h});if(u){o=[...u];let c=VX(t);c!==void 0&&o.push(c)}}break}}e.data.setAll(o)}}function gI(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function yI(a){let t=0;if(a instanceof Kt&&a.get("visible")!==!1&&a.get("forceHidden")!==!0){let e=a.width();Number.isFinite(e)&&(t=e)}return t}function vI(a){let t=0;return a.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,yI(r))}),t===0&&e.dataItems.forEach(r=>{let s=r.bullets;if(s)for(let n of s)t=Math.max(t,yI(n.get("sprite")))})}),Math.ceil(t)}function Uc(a,t){let{root:e}=a,i=Ii({childId:va,parent:a});if(i!==void 0){let r=fe(a.uid,"config"),s=fe(a.uid,"rtl"),n=cs(r),o=ze(r?.series),l=$s(r),h=r?.series?.some(We=>We.dataLabels?.visible!==!1)??!1,u=r?.title?r.title.visible??!0:!1,c=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,f=Ii({childId:Gv,parent:a}),m=f instanceof Re&&u?f.height():0,g=Ii({childId:eB,parent:a}),y=g instanceof Re&&c?g.height():0,x=Ii({childId:Yv,parent:a}),w=x instanceof Re&&d?x.height():0,S=Ii({childId:eo,parent:i}),F=S instanceof Kt&&A&&p?S?.height():0,T=r?.legend?.position??Z.legendProperties.position,L,O=t.get("verticalScrollbar"),I=He,U=He,P=e.verticalLayout,Q=He,Y=He,G=He,ee=He,te=0,le,z=t.height()+F,K=0,we=0,se=h&&!n?Z.chartContainer.paddingTop??0:0,de=0,$e,Ye;switch(T){case st.Left:P=e.verticalLayout,Q=jr,G=jr,Y=jr,ee=jr,le=void 0,I=jr,U=jr,K=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=gI(t),O?.width()!==void 0&&L&&O.isVisible()&&(L+=O.width()+Z.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Right:P=e.verticalLayout,Q=ge,G=ge,Y=jr,ee=jr,le=void 0,I=jr,U=jr,we=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=gI(t),O?.width()!==void 0&&L&&O.isVisible()&&(L+=O.width()+Z.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Top:P=e.gridLayout,Q=He,G=He,Y=jr,ee=jr,le=ge,I=He,U=He,se+=z,te+=m+y,L=void 0,s&&($e=void 0);break;case st.Bottom:P=e.gridLayout,Q=He,G=He,Y=ge,ee=ge,le=ge,I=He,U=He,de=z,te=-de-w,L=void 0,s&&($e=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===Oi.Side)){let We=vI(a);if(We>0)we+=We;else if(a.series.length>0){let qe=t.root.events.on(Ji.FrameEnded,()=>{let Tt=vI(a);Tt>0&&(s?K+=Tt:we+=Tt,qe.dispose(),Uc(a,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),s&&t.itemContainers.template.setAll({centerX:$e,dx:Ye})),t.setAll({layout:P,x:I,centerX:U}),i.setAll({x:Q,y:Y,centerX:G,centerY:ee,dy:te,width:le,height:0}),a.chartContainer.setAll({paddingBottom:de,paddingTop:se,paddingLeft:K,paddingRight:we}),le===void 0&&(i.setPrivate("width",void 0),i.markDirty()),a instanceof Vs&&Uk(t,T)}}function TX(a){let{chart:t,legend:e,legendContainer:i}=a,r=Ii({childId:eo,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ji.FrameEnded,()=>{Uc(t,e)})}),i.events.on(Ji.BoundsChanged,()=>{Uc(t,e)}),e.events.on(Ji.BoundsChanged,()=>{Uc(t,e)}),t.seriesContainer.onPrivate("height",()=>{Uc(t,e)}),t.series.each(s=>{s.events.on(Ji.DataValidated,()=>{Uc(t,e)})})}function Qk(a,t){let e=bA({root:t.root,parent:t,index:0,id:Hs(eo,t.uid)});return e.set("paddingTop",10),Hc({chart:a,label:e,labelType:Xt.LegendTitle}),e}function PX(a,t){t.markers.template.setAll({width:Z.legendProperties.legendMarkersSize,height:Z.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ps.fillOpacityField in r?r[Ps.fillOpacityField]:e;return typeof s=="number"?s:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ps.strokeOpacityField in r?r[Ps.strokeOpacityField]:e;return typeof s=="number"?s:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,s=fe(a.uid,"config");if(ze(s?.series)!==V.HeatSeries){let n=i.dataItem?.component;if(n instanceof Vr){let o=n.get("categoryField")??"",l=i.dataItem,h=l?.get("category"),u=l?.dataContext;r=h??(u?.[o]??e)?.toString()}else n instanceof zr&&(r=n.get("name"))}if(s!==void 0){let{legend:n}=s,o={...n?.body,type:Rt.TS,text:r};r=xa({textSymbol:o,format:"amChartsV5"})}return r})}function DX(a,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),s=r?.legend,n=Ii({childId:va,parent:t});if(n!==void 0){let l=Ii({childId:eo,parent:n});l!==void 0&&s?.visible!==!1&&s?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=Z.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),a.set("maxHeight",o)})}function LX(a,t,e){a.events.on(Ji.DataValidated,()=>{a.dataItems.length>0&&Hk(a,t,e)})}function IX(a){let t;if(a!==void 0){let e=fe(a?.uid,"config");t=fe(a.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function kX(a){let t="";if(a instanceof bi){let e=fe(a.uid,"config"),i=cs(e),r=i?B.Rotated:B.NonRotated,s=$s(e),n=B.SideBySide;s===Oi.Stacked?n=B.Stacked:s===Oi.Stacked100&&(n=B.Stacked100);let o=fe(a.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?a.yAxes.getIndex(0):a.xAxes.getIndex(0),u;h instanceof mr?u=B.DateAxis:h instanceof ci?u=B.ValueAxis:u=B.CategoryAxis;let c=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===GA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${u}-${c}`}return t}function $X(a){let t=kX(a);return B1.has(t)}function Hk(a,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:a.set("reverseChildren",IX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:a.set("reverseChildren",$X(t));break}}function OX(a,t){let e=Ii({childId:va,parent:a});if(e!==void 0){let i=Ii({childId:eo,parent:e})??Qk(a,e);if(t!==void 0){let{title:r,visible:s}=t,{legendTitle:n}=Z.legendProperties;r!==void 0?(Cn({label:i,labelConfig:{...r,visible:s!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:"top"}}),gl({chart:a,label:i,labelType:Xt.LegendTitle})):xi(i,!1)}}}function EX(a,t=!1){let e=t?Z.legendProperties.roundedMarkerRadius:Z.legendProperties.rectangleMarkerRadius;a.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function MX(a){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:s}=a;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Rt.TS,text:" "}};if(i===V.PieSeries){let o=Ii({childId:va,parent:s});o!==void 0&&Ii({childId:eo,parent:o})!==void 0&&Mk({legend:t,seriesConfig:r,webChartLegend:e,chart:s})}Cn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function RX(a,t){t===!0&&a.itemContainers.each(e=>{e.events.disableType(Ji.Click)})}function UX(a){let{legend:t,chart:e,seriesConfig:i}=a;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.togglingLegendItemsDisabled===!0?"default":"pointer")}function bI(a,t){let{root:e}=a,i;if(Vk(t?.series))i=AX(a,t);else{let r=Re.new(e,{id:Hs(va,a.uid),layout:e.verticalLayout}),s=t?.series?.[0].type===V.HeatSeries?{nameField:Ps.nameField,fillField:Ps.fillField,strokeField:Ps.strokeField,fillOpacityField:Ps.fillOpacityField,strokeOpacityField:Ps.strokeOpacityField}:{};i=nl.new(e,{...s,verticalScrollbar:ll.new(e,{orientation:"vertical"})}),a instanceof Vs?vX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),PX(a,i),Qk(a,r),BX(i),SX(i,a),TX({chart:a,legend:i,legendContainer:r}),DX(i,a),LX(i,a,ze(t?.series)),UX({legend:i,chart:a,seriesConfig:t?.series}),r.children.push(i),a.children.push(r)}return i}function VX(a){let t=fe(a.uid??NaN,"config"),e=t?.series[0].heatRulesType===$u.Renderer,i=a.series.values[0].data.values.some(s=>s[xr.valueField]===null||e&&!s[pt.rendererSymbolField]),r;if(i){let s=t?.series[0].emptyCells,n=s?.symbol?.color??Z.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Lv(t?.series[0].gridLine);r={[Ps.nameField]:s?.text??Z.heatChart.emptyCells?.text??"",[Ps.fillField]:zt(n).color,[Ps.fillOpacityField]:zt(n).opacity,[Ps.strokeField]:o,[Ps.strokeOpacityField]:l}}return r}function xI(a){let{chart:t,legend:e,showLegend:i}=a,r=Ii({childId:va,parent:t});r&&(xi(r,i),xi(e,i))}function _I(a){let{chart:t,showLegend:e,legendConfig:i}=a;if(i){let{title:r,visible:s}=i,n=r!==void 0&&s!==!1&&r.visible!==!1,o=Ii({childId:va,parent:t});if(o){let l=Ii({childId:eo,parent:o});l&&(r?xi(l,n):xi(l,e))}}}function jk(a){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:s,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=a,{legend:u,series:c}=e;if(Vk(n)&&r)l&&i&&(xI({chart:t,legend:i,showLegend:!1}),_I({chart:t,showLegend:!1,legendConfig:u})),mX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof nl&&(n?.[0].type===V.HeatSeries&&tB(t),Ii({childId:va,parent:t})!==void 0)){let d=ix(c)&&u!==void 0&&u.visible!==!1;if(xI({chart:t,legend:i,showLegend:d}),_I({chart:t,showLegend:d,legendConfig:u}),d){EX(i,u?.roundMarkers),MX({legend:i,legendConfig:u,chartType:ze(c),seriesConfig:n,chart:t}),Hk(i,t,ze(c)),FX({chart:t,legend:i,chartConfig:e,showEmptySeries:s,queryObject:o}),OX(t,u),Uc(t,i);let A=fe(t.uid,"options");RX(i,A?.togglingLegendItemsDisabled),t instanceof Vs&&CX({legend:i,chart:t,seriesConfig:n,legendConfig:u})}}}function NX(a){let{seriesConfig:t,series:e,sizePolicyChanged:i}=a,{sizePolicy:r}=t,s=e.get("heatRules")?.[0],n=Qt(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:u}=r,c=gF(),d=t.markerSymbol?.size??qb().size??1,A=(h??c.minSize)/d,p=(u??c.maxSize)/d;s!==void 0?i&&(s.min=A,s.max=p,s.logarithmic=o===Xb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Xb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function ah(a){return a.get("id")===Z.overlayId.scatterplotTrendLine}function QX(a){return a.series.values.find(t=>!ah(t))}function Wk(a){return a.series.values.find(t=>ah(t))}function HX(a){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=a,{x:s,y:n}=r,o=qt.new(t,{xAxis:e,yAxis:i,valueXField:s,valueYField:n,layer:Z.zIndexes.scatterplotTrendLine});return o.set("id",Z.overlayId.scatterplotTrendLine),Kr(o.uid,{type:vr.Trendline}),o}function jX(a){let{markerSeries:t,options:e,queryObject:i,errorStrings:r}=a,s=Dt.new({});Kr(t.uid,{bulletTemplate:s}),os(s,e?.selectionTheme),t.bullets.push(n=>{let o=ft.new(n,{nonScalingStroke:!0,tooltip:Kf({series:t,tooltipFormatter:e?.tooltipFormatter})},s);return To({element:o,series:t,queryObject:i,errorStrings:r}),Jk(o,t),fa.new(n,{sprite:o})})}function WX(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{x:h,y:u,id:c}=i,d=[],A=qt.new(t,{xAxis:r,yAxis:s,valueXField:h,valueYField:u,id:c,opacity:0,valueField:"value",maskBullets:!1,layer:Z.zIndexes.lineSeries});A.strokes.template.set("forceHidden",!0),jX({markerSeries:A,options:n,queryObject:o,errorStrings:l}),PA(A,e),d.push(A);let p=HX({root:t,xAxis:r,yAxis:s,seriesConfig:i});return Nk(p),d.push(p),A.appear(),d}function XX(a){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:s,valueFormat:n,defaultR2Value:o,chartConfig:l}=a,{chart:h}=e,u=l.series[0],c=u.overlays?.trendLine,d=c?.symbol??{type:Rt.SLS},A=c?.created===!0&&c.visible!==!1;if(i&&(r||s)){let p=Z.scatterplotSeries,f=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:m,y:g}=u;e.setAll({valueXField:m,valueYField:g}),e.data.setAll(i.trendLinePoints??Z.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?xA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:f}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=vh({colorIndex:1})),Fo({element:e,lineSymbol:d,visible:A})}function zX(a){let{root:t,chartConfig:e,markerSeries:i}=a,r=i.chart;if(r){let s=e.series[0],n=Fl(e),o,l,h=qb(),u=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:s,chartSubType:ke.NonSpecific,colorMatch:n}),f=Ja({root:t,element:A,seriesSymbol:s.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=f.symbolWithColorInfo,l=f.stylingInfo,gA(A,l),u.add(JSON.stringify(l))}}),o=u.size>1?void 0:o;let c=new Map;c.set(0,o),nn({data:c,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:DA(r)})}}function GX(a){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:s}=a;if((t||e)&&i){let{x:n,y:o}=s.series[0];if(r.setAll({valueXField:n,valueYField:o}),s.series[0].type===V.ScatterSeries&&s.series[0].sizePolicy){let{field:l}=s.series[0].sizePolicy;i.dataItems=i.dataItems.sort((h,u)=>typeof u[l]=="number"&&typeof h[l]=="number"?u[l]-h[l]:0)}r.data.setAll(i.dataItems)}}function YX(a){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:s,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:u,sizePolicyChanged:c,utilsStrings:d}=a,{axes:A}=e,{tooltipFormatter:p}=r??{};n.set("id",i.id);let f=Qt(n.uid,"bulletTemplate");f&&os(f,r?.selectionTheme),xi(n.bulletsContainer,i.visible),XX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:u,valueFormat:Yb(),defaultR2Value:d.notAvailable}),NX({seriesConfig:i,series:n,sizePolicyChanged:c}),nh(a)&&oh({styleCallback:()=>zX({root:t,chartConfig:e,markerSeries:n}),series:n,seriesConfig:i}),Q4({axesConfig:A,seriesConfig:i,series:n,fieldList:s,tooltipFormatter:p}),GX({dataWasUpdated:h,seriesWereReinitialized:u,data:l,series:n,chartConfig:e})}function KX(a){a.series.each(t=>{t instanceof qt?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&ra({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Li?t.columns.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Vr&&t.slices.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})})})}function Zc(a){let{chart:t,selectionSource:e}=a,i=fe(t.uid,"currentSelectionDataItems");Gr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Ww(t)&&KX(t),i&&Nu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.root.dom})}function Xk(a){let t=a?.selection.width();return t!==void 0&&t>0&&t!==2e7}function To(a){let{element:t,series:e,queryObject:i,errorStrings:r}=a;t.events.on(Ji.PointerUp,async s=>{let{chart:n}=e;if(n){let o=n.get("cursor");if(!Xk(o)){let l=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&l!==Ut.None&&l!==Ut.Zoom){let h=s.target,u=_4(s,e);ra({element:h,selected:yl(h.uid,"selected")!==!0}),u&&n.series.each(c=>{c instanceof qt?c.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");A!==h&&ra({element:A,selected:!1})}):c instanceof Li?c.columns.each(d=>{d!==h&&ra({element:d,selected:!1})}):c instanceof Vr&&c.slices.each(d=>{d!==h&&ra({element:d,selected:!1})})}),await rB({chart:n,selectionSource:Tr.SelectionByClick,queryObject:i,errorStrings:r})}}}})}function CI(a,t){let e=Number.NaN,i=Number.NaN;if(a instanceof Al){let r=t.get("renderer")instanceof Ns,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");if(s!==void 0&&n!==void 0)if(t instanceof Br)e=t.axisPositionToIndex(t.toAxisPosition(s)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof mr){e=t.positionToDate(t.toAxisPosition(s)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Lc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof ci&&(e=t.positionToValue(t.toAxisPosition(s)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof ns,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");s!==void 0&&n!==void 0&&(e=s*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function ZX(a){let t=()=>{let e=a instanceof bi?a.get("cursor"):void 0,i=fe(a.uid,"filterBySelection");(e===void 0||!Xk(e))&&!i&&Zc({chart:a})};a.get("background")?.events.on(Ji.Click,t),a instanceof bi&&a.plotContainer.events.on(Ji.PointerUp,t)}function qX(a){let{series:t,cursorBounds:e,multiSelect:i}=a,r=fe(t.chart?.uid??NaN,"config"),s=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&s!==V.HeatSeries,u=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let c=h?l-u:l,d={left:o,right:o+n.width(),top:c,bottom:c+u};if(s===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&yl(n.uid,"selected")===!0;ra({element:n,selected:A})}})}function JX(a){let{series:t,cursorBounds:e,multiSelect:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0]?.get("sprite");if(s){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&yl(s.uid,"selected")===!0;ra({element:s,selected:l})}})}function ez(a){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=a;e.dataItems.forEach(s=>{let n=s.bullets?.[0]?.get("sprite");if(n){let o=s.dataContext,l=s.get("valueX"),h=s.get("valueY");if(t instanceof Br){let A=o?.[Z.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let u=typeof l=="number"&&l>=i.left&&l<=i.right,c=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=u&&c||r&&yl(n.uid,"selected")===!0;ra({element:n,selected:d})}})}function tz(a){let{cursor:t,xAxis:e,yAxis:i}=a,r=t.get("behavior"),{value1:s,value2:n}=CI(t,e),{value1:o,value2:l}=CI(t,i),h={left:s>n?n:s,right:s>n?s:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function iz(a){let{chart:t,queryObject:e,errorStrings:i}=a;t.get("cursor")?.events.on(Ji.SelectEnded,async r=>{let s=fe(t.uid,"actionMode");if(s===Ut.MultiSelection||s===Ut.MultiSelectionWithCtrlKey){let n=t.xAxes.getIndex(0),o=t.yAxes.getIndex(0);if(n&&o){let l=fe(t.uid,"config"),h=ze(l?.series),u=t.get("cursor"),c=tz({cursor:u,xAxis:n,yAxis:o}),d=Ak(r);t.series.each(A=>{!ah(A)&&!Zf(A)&&(A instanceof Li?qX({series:A,cursorBounds:c,multiSelect:d}):A instanceof qt&&(h===V.RadarSeries?ez({xAxis:n,series:A,cursorBounds:c,multiSelect:d}):JX({series:A,cursorBounds:c,multiSelect:d})))}),xi(u.selection,!1),await rB({chart:t,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}})}function rz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=a;t.bullets.push(()=>{let s=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,n=fa.new(t.root,{locationY:1,sprite:Kt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:He,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:zt(s?.content.color).color,fontSize:s?.content.font?.size})}),o=n.get("sprite");return o&&(zk({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&s?.visible&&fk({label:o,chart:t.chart,seriesType:r}),zv({...a,dataLabel:o,dataLabelsConfig:s,labelDefaults:e,defaultDataLabelFormatter:Gk})),n})}function zk(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Qf({label:t,labelOutputProp:r}),t.adapters.add(r,(s,n)=>{let o=s??"",l=Qt(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:u,minValue:c,maxValue:d}=h.dataContext;o=l(u,c,d)}return r==="html"?Er(o):o})}function Gk(a){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=a;return(r,s,n)=>xa({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function sz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0];if(s){let n=s.get("sprite");n&&n instanceof Kt&&(zk({dataLabel:n,series:t,externalDataLabelFormatter:i}),zv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:Gk,externalDataLabelFormatter:i}))}})}function Yk(a){let{series:t,dataLabelsConfig:e}=a,i=e?.visible,r=t.bullets.hasIndex(0);i!==!0?r&&zw(t,0):(r||rz(a),sz(a))}function Zf(a){return[Z.overlayId.histogramMean,Z.overlayId.histogramMedian,Z.overlayId.histogramStdDev,Z.overlayId.histogramNormalDistribution].includes(a.get("id")??"")}function az(a){let t="";switch(a){case vr.Mean:t=Z.overlayId.histogramMean;break;case vr.Median:t=Z.overlayId.histogramMedian;break;case vr.StdDev:t=Z.overlayId.histogramStdDev;break;case vr.Normal:t=Z.overlayId.histogramNormalDistribution;break}return t}function nz(a){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=a,{root:s}=t,n=t.chart;if(n){let o=e.fillSymbol??bF(),l=Ja({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:s.dom,chartId:n.get("id"),colorMatchApplied:DA(n)})}}}function oz(a){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r}=a;e&&(i===!0||r===!0)&&t.data.setAll(e.bins)}function vv(a){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:s}=a,n=qt.new(t,{id:az(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===vr.Normal&&TA(n,s.overlays.normal),Kr(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function lz(a){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:s,chartConfig:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=e,c=Li.new(t,{id:h,name:u,xAxis:i,yAxis:r,categoryXField:pd.Start,valueYField:pd.Count,maskBullets:!1});return os(c.columns.template,s?.selectionTheme),To({element:c.columns.template,series:c,queryObject:o,errorStrings:l}),c.columns.template.setAll({width:ge}),Yk({series:c,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:s?.dataLabelFormatter}),PA(c,n),c.appear(),c}function hz(a){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:s,utilsStrings:n,options:o,chartConfig:l,queryObject:h,errorStrings:u}=a,c=[],d=lz({root:t,seriesConfig:e,xAxis:i,yAxis:s,options:o,chartConfig:l,queryObject:h,errorStrings:u});return c.push(d),Yw(d,o?.tooltipFormatter),r&&(c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Mean,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Median,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.StdDev,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Normal,utilsStrings:n}))),c}function uz(a){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=a;if(!e)xi(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=Qt(t.uid,"type"),h=s??{type:Rt.SLS},u=n===!0&&o!==!1;if(xi(t,u),e.symbol?.color===void 0&&(h.color=vh({colorIndex:rx(l),histogramOverlays:!0})),Fo({element:t,lineSymbol:h,visible:u}),i&&"bins"in i){let d=i.bins.map(w=>w.count),A=Math.max(...d),{mean:p,stddev:f,median:m}=i,g=p-f,y=p+f,x=[];switch(l){case vr.Mean:x=[{x:p,y:0},{x:p,y:A}];break;case vr.Median:x=[{x:m,y:0},{x:m,y:A}];break;case vr.StdDev:x=[{x:g,y:0},{x:g,y:A},{x:null,y:null},{x:y,y:0},{x:y,y:A}];break}t.data.setAll(x)}let c=t.data.getIndex(0)?.x;if(l===vr.StdDev&&(c=i?.stddev??Qt(t.uid,"stddev"),Kr(t.uid,{stddev:c})),typeof c=="number"){let d=l;switch(l){case vr.Mean:d=r.overlays.mean;break;case vr.Median:d=r.overlays.median;break;case vr.StdDev:d=r.overlays.stdDev;break}let A=fe(t.chart?.uid??Number.NaN,"formatLocale"),p=xA({root:t.root,value:c,valueFormat:Yb(),formatLocale:A}),f=`${d}: ${p}`;TA(t,f)}}}function cz(a){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=a;if(!e)xi(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=s??{type:Rt.SLS},h=n===!0&&o!==!1;if(xi(t,h),e?.symbol?.color===void 0&&(l.color=vh({colorIndex:rx(vr.Normal),histogramOverlays:!0})),Fo({element:t,lineSymbol:l,visible:h}),i&&"bins"in i){let{mean:u,stddev:c,min:d,max:A}=i,p=x4(i.bins),f=v4(d,A,r??Z.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:b4({x:m,mean:u,stddev:c,scalingFactor:p})}));t.data.setAll(f)}}}function dz(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:s,options:n}=a;t.set("id",e.id),xi(t,e.visible),os(t.columns.template,n?.selectionTheme),Cu(t.columns.template,s?.bins?.length),TA(t,e.name);let o=s?.bins.find(l=>"symbol"in l)?.symbol;nh(a)&&oh({styleCallback:()=>nz({...a,rendererSymbol:o}),series:t,seriesConfig:e}),oz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:s})}function Az(a){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:s,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=a,{tooltipFormatter:u}=o??{};for(let c=0;c<t.length;c++){let d=t[c];if(d instanceof qt&&Qt(d.uid,"isOverlay")){let A=Qt(d.uid,"type");if(A===vr.Normal)cz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case vr.Mean:p=e.overlays?.mean;break;case vr.Median:p=e.overlays?.median;break;case vr.StdDev:p=e.overlays?.standardDeviation;break}uz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Li&&(dz({...a,series:d}),Yk({series:d,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),O4({axes:n,series:d,seriesConfig:e,fieldList:s,tooltipFormatter:u,utilsStrings:r,axesConfig:h.axes}))}}function pz(a){bx(),hx(a.root.dom),Zc({chart:a})}function fz(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>{let s=!0;return ah(r)||Zf(r)||Qt(r.uid,"isOverlay")===!0?s=!1:e===V.BoxPlotSeries&&(i?s=Qt(r.uid,"isBoxPlotMeanLineSeries")===!0:s=r instanceof La),s}).every(r=>Qt(r.uid,"isSelectionApplied")===!0)}function mz(a){a.series.each(t=>Kr(t.uid,{isSelectionApplied:void 0}))}function gz(a){let t=[];if(!ah(a)&&!Zf(a))switch(!0){case a instanceof Vr:t=a.slices.values;break;case a instanceof Li:let{chart:e}=a;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),s=[];r===V.HistogramSeries?s=[pd.Count]:r===V.HeatSeries?s=[xr.valueField]:s=Mo(i?.series,[a.get("id")??""]),t=a.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||s.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case a instanceof qt:t=Array.from(a.dataItems.values());break}return t}function Kk(a,t){let e=fe(a.uid,"actionMode");(e===Ut.MonoSelection||e===Ut.None)&&t.length>1?Zc({chart:a}):t.forEach(i=>{ra({element:i,selected:!0})})}function yz(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=fe(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=It(n?.series),u=ze(n?.series);return t.series.each((c,d)=>{if(n&&c.get("visible")===!0&&c.get("id")!==Z.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=Gf(c),f=e.get(d);if(f!==void 0){let m;if(c instanceof qt&&(m=c.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),m!==void 0){let{indexesToSelect:g}=f;m.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=th({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:u,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)});w!==void 0&&r.push(w),s.push(y)}else ra({element:y,selected:!1})})}}}}),Kk(t,s),r}function vz(a){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:u}=a,c=ze(e.series),d=It(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series);return r.forEach((y,x)=>{let w=y instanceof fr||y instanceof ma?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof fr||y instanceof ma?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&c===V.BoxPlotSeries&&S[Z.boxPlot.boxPlotOutlierId]!==!0&&(S=th({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:c,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(u)})),$v({elementDataContext:S,options:i,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,chartType:c,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),f.push(x),w?.dataItem instanceof Wa&&S!==void 0)m.push(S);else{let F=new Set;c===V.PieSeries&&sh(S)?(Hf({groupOfSlicesDataContext:S})??[]).forEach(T=>{s.forEach(L=>{Bw({layerOidField:n,sliceDataContext:T,selectionDataContext:L,xAxisField:o})&&F.add(T)})}):F.add(S),Array.from(F)?.forEach(T=>{let L=th({dataContext:T,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:c,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(u)});L!==void 0&&m.push(L)})}else ra({element:w,selected:!1})}}),Kk(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function bz(a){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:s,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:u}=a,{chart:c}=t;if(c instanceof ms){let d=fe(c.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:f,returnSelectionOIDs:m}=d??{},{selectionIndexes:g}=p??{},y=fe(c.uid,"config"),x=oa(y),w=ze(y?.series),S=It(y?.series),F=gz(t);if(A!==!0&&y!==void 0){let T=Os(i),L=Ch(T).idField,O=fe(c.uid,"currentSelectionDataItems"),I=!1,U=!1,P,Q=!1;if(F?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){P=d?.selectionData?.selectionItems??O;let Y=fe(c.uid,"currentSelectionIndexes");Q=Fx({itemsA:P,itemsB:O,isPieFromFields:S===ke.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let G=g?.keys.length!==Y?.keys.length||!rn(g,Y);I=s===!0||r===!0||n===!0||u===!0||P!==void 0&&Q;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:te}=g.get(e??0)??{};ee=te!==void 0&&te[0]===void 0}U=r===!0||n===!0||u===!0||!ee&&G}if(I&&P!==void 0&&P.length>0){let{selectedIndexes:Y,newSelectionDataItems:G}=vz({chart:c,chartConfig:y,options:d,elementsToApplySelectionTo:F,selectionDataItems:P,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(c.uid,"computedSelectionDataItems")??[];if(ee.push(...G),y.series.length>1&&S!==ke.BarAndLineNoAggregation&&S!==ke.BarAndLineSplitByNoAggregation&&(ee=np({data:ee,x:y.series[0].x,splitByField:Dn(y.series[0].query?.where)})),Gr(c.uid,{computedSelectionDataItems:ee}),f===!0){let te=Array.from(new Set(Y)),le=fe(c.uid,"computedSelectionIndexes");le===void 0&&(le=new Map),te.length===F.length?le.set(e??0,{}):le.set(e??0,{indexesToSelect:te}),Gr(c.uid,{computedSelectionIndexes:le})}}else if(g!==void 0&&U)P=yz({chart:c,selectionIndexes:g,queryObject:i});else{let Y=G=>{let ee=G.dataItem?.dataContext;return $v({elementDataContext:ee,options:d,selectionDataItems:P??O??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};F.forEach(G=>{let ee=G instanceof fr||G instanceof ma?G:G.bullets?.[0]?.get("sprite");ee!==void 0&&ra({element:ee,selected:yl(ee.uid,"selected")===!0||Y(ee),backToDefaultState:P===void 0||P.length===0})})}}if(Kr(t.uid,{isSelectionApplied:!0}),fz({chart:c,chartType:w,showMean:x})&&(mz(c),Q||U)){let Y=fe(c.uid,"computedSelectionDataItems")??P;Y=Array.from(new Set(Y?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),P!==void 0&&Gr(c.uid,{currentSelectionDataItems:Y}),p?.selectionOIDs!==void 0&&Gr(c.uid,{currentSelectionOIDs:p.selectionOIDs});let G;if(f===!0&&(G=fe(c.uid,"computedSelectionIndexes")??g,G!==void 0&&Gr(c.uid,{currentSelectionIndexes:G})),Y===void 0||Y.length===0)Zc({chart:c,selectionSource:Tr.ProgrammaticSelection});else{let ee={selectionItems:Y,selectionSource:Tr.ProgrammaticSelection};f===!0&&(ee.selectionIndexes=G),m!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(c.uid,"currentSelectionOIDs")),Nu({data:ee,htmlContainer:c.root.dom})}Gr(c.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function xz(a){let{chart:t,chartConfig:e,queryObject:i}=a;!fe(t.uid,"filterBySelection")&&!xs(i)&&t.series.values.filter(r=>!ah(r)&&!Zf(r)).forEach(r=>{let{seriesConfig:s,seriesIndex:n}=qf(r,e);if(s){let o=s.x,l=s.type===V.BoxPlotSeries||s.type===V.HeatSeries?s.y.toString():Gf(r),h=s.query?.where??"";_z({callbackProps:{...a,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:s})}})}async function rB(a){let{chart:t,selectionSource:e,queryObject:i,errorStrings:r}=a,s=fe(t.uid,"config"),n=xs(i);if(s){let o=fe(t.uid,"options"),l=ze(s.series),h=It(s.series),u=Eo(s),c=Mo(s.series),d=s.series[0].x,A=bh(i),p=n?void 0:Jm(Os(i))?.dateFieldsTimeZone,f;so(s)?f=s.outTimeZone:_h(s.series[0])&&(f=s.series[0].temporalBinning?.outTimeZone);let m=_a(i).find(g=>g.name===d)?.type;try{let g=new Set,y=[],x=new Map,w=[],S=[],F=0;if(t.series.each((T,L)=>{let{seriesConfig:O}=qf(T,s),I=O?.query?.where??"",U=O?.type===V.BoxPlotSeries?O.y.toString():Gf(T),P;T instanceof qt?P=T.dataItems:T instanceof Li?P=T.columns.values:T instanceof Vr&&(P=T.slices.values),P?.forEach((Q,Y)=>{let G=Q instanceof fr||Q instanceof ma?Q:Q.bullets?.[0]?.get("sprite");if(G!==void 0&&yl(G.uid,"selected")===!0){F+=1;let ee=Q instanceof fr||Q instanceof ma?Q.dataItem?.dataContext:Q.dataContext;if(ee!==void 0){if(ee=th({dataContext:ee,yAxisField:U,yList:c,xAxisField:d,splitBy:I,chartType:l,chartSubType:h,showOutliers:u,isFeatureCollectionLayer:Oo(i)}),g.has(JSON.stringify(ee))||(g.add(JSON.stringify(ee)),y.push(ee)),Y!==void 0){let le=x.get(L)?.indexesToSelect??[];le.push(Y),x.set(L,{indexesToSelect:Array.from(new Set(le))})}let te=ee[Eu.uniqueIdsName]!==void 0?[ee[Eu.uniqueIdsName]].flat():[];if(te.length>0)S.push(...te);else if(!n&&o?.returnSelectionOIDs!==!1){let le=Tx({dataContext:ee,options:o,xAxisField:d,yAxisField:U??"",splitBy:I,xAxisFieldType:m,chartConfig:s,outTimeZone:f,dataTimeZone:p,runsOnClientQueryEngine:A,queryObject:i});w.push(le)}}}})}),F===0)Zc({chart:t,selectionSource:e});else{if(!n&&o?.returnSelectionOIDs!==!1&&w.length>0){let L={...fe(t.uid,"queryConfig")};delete L.groupByFieldsForStatistics,delete L.orderByFields,delete L.outStatistics;let O=await n1({whereList:w,queryObject:i,queryConfig:L,errorStrings:r});if(w.length===F)S=O;else for(let I=0;I<O.length;I+=1)S.push(O[I])}S=Array.from(new Set(S)),s.series.length>1&&h!==ke.BarAndLineNoAggregation&&h!==ke.BarAndLineSplitByNoAggregation&&(y=np({data:y,x:s.series[0].x,splitByField:Dn(s.series[0].query?.where)})),Gr(t.uid,{currentSelectionDataItems:y,currentSelectionOIDs:S,currentSelectionIndexes:x});let T={selectionItems:y,selectionSource:e};o?.returnSelectionIndexes===!0&&(T.selectionIndexes=x),o?.returnSelectionOIDs!==!1&&(T.selectionOIDs=S),n&&(T.selectionPixelTarget=ag({chartConfig:s,layer:i,selectionDataItems:y})),Nu({data:T,htmlContainer:t.root.dom})}}catch(g){Gr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:y}=g instanceof Tl?g.details.details:g.details??{};if(y===429)pz(t);else throw g}Gr(t.uid,{pendingSelectionQueries:!1})}}function FA(a,t){let{y:e,query:i}=t,r=It(a.series)===ke.BarAndLineSplitByNoAggregation?`${e.toString()}_${xh({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],s=Z.xAxisField,n=a.rotated===!0?"categoryYField":"categoryXField",o=a.rotated===!0?"valueYField":"valueXField",l=a.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=a.rotated===!0?"valueXField":"valueYField";return{xField:s,yField:r,xAxisField:l,yAxisField:h}}function nh(a){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:s,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=a,h=t.series.length===1,u=ze(t.series),c=!!(e||i||r||s||l),d=!1;switch(u){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return c||d}function Zk(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,r=n=>{let{type:o}=n;o==="selection"?bz(n.callbackProps):(xi(t,i.visible),n.styleCallback())},s=fe(t.chart?.uid??Number.NaN,"config");s&&rk({series:t,chartConfig:s,whenReadyCallback:()=>r(e)})}function _z(a){let{series:t,callbackProps:e,seriesConfig:i}=a;Zk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function oh(a){let{series:t,styleCallback:e,seriesConfig:i}=a;Zk({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function qk(a){let t;return a&&a.series.length>0&&(t=a.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function sB(a){let{series:t,chartConfig:e,isRotated:i}=a,r=$s(e),s=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===Oi.Stacked||r===Oi.Stacked100)?o:n;switch(r){case Oi.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof qt&&t.set("stackToNegative",s.stackNegativeValuesToBaseline??Z.lineSeries.stackNegativeValuesToBaseline);break}case Oi.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof ci&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof ci&&o.set("calculateTotals",!0));break}case Oi.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function TA(a,t){a.set("name",t)}function Cz(a){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=a,s=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[s,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let u=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:u,yAxis:h}}function PA(a,t){let{series:e}=t,i=ze(e);a instanceof Li&&(a.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?a.columns.template.set("ariaLabel",Sz()):a.columns.template.set("ariaLabel",ap()))}function Cu(a,t){a&&a.set("focusable",(t??0)<Z.focusableThreshold)}function wz(a){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:s,sizePolicyChangesRequireSeriesReinit:n}=a,o=!1,l=ze(e.series);switch(l){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:let h=e.series.length;l===V.BoxPlotSeries&&(oa(e)?h+=4:h*=5),o=s||r||i?.common?.numberOfSeriesChanged===!0||t!==h;break;case V.ScatterSeries:o=n===!0;break}return o}function aB(a){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=a,s=t.series[i];if(s){let n=It(t.series),o=s.name;if(n===ke.BarAndLineSplitBy||n===ke.BarAndLineSplitByNoAggregation){let l=Dn(s.query?.where);o=ng({queryObject:r,fieldName:l,fieldValue:o})??o}TA(e,o)}}function qf(a,t){let e=ze(t?.series),i,r;return t?.series.forEach((s,n)=>{let o=!1;e!==V.BoxPlotSeries||a instanceof La?o=a.get("id")===s.id:a instanceof Bo?o=a.get("id")?.replace(`_${ji.Top}`,"")===s.id||a.get("id")?.replace(`_${ji.Median}`,"")===s.id||a.get("id")?.replace(`_${ji.Bottom}`,"")===s.id:a instanceof qt&&(o=a.get("id")?.replace(`_${ji.Outliers}`,"")===s.id),o&&(i=s,r=n)}),{seriesConfig:i,seriesIndex:r}}function Bz(a,t){let{chart:e}=t;if(e instanceof bi){let i=t.get("xAxis"),r=t.get("yAxis"),s=a.dataItem?.get("valueX"),n=a.dataItem?.get("valueY");if(typeof s=="number"&&typeof n=="number"){let o=i?.getPrivate("min",0),l=i?.getPrivate("max",0),h=r?.getPrivate("min",0),u=r?.getPrivate("max",0),c=i?.get("start",0),d=i?.get("end",1),A=r?.get("start",0),p=r?.get("end",1),f=o+c*(l-o),m=o+d*(l-o),g=h+A*(u-h),y=h+p*(u-h),x=s<f||s>m||n<g||n>y;a.set("forceHidden",x)}}}function Jk(a,t){let e=(i,r)=>{r!==void 0&&Bz(r,t)};a.on("x",e),a.on("y",e)}function DA(a,t){let e=t;e===void 0&&(e=fe(a.uid,"config"));let i=fe(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function _A(a,t){a.set("turboMode",t===!0)}function Sz(){return`{${xr.xField}} {${xr.yField}} {${xr.valueField}}`}function e$(a){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=a,s=qn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(s!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:Bx(n,s.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=s.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Fz(a){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,{chart:s,root:n}=t,o=s!==void 0?fe(s.uid,"formatLocale"):void 0,l=r??e$({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return SA(t.uid,{numberFormatter:l}),l}function Tz(a){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof s=="number"&&e.type===V.NumberAxisFormat)n=e$({root:r,intlOptions:e.intlOptions,formatLocale:o})(s);else if(i===!0&&e.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=It(l?.series);if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(h)&&typeof s=="string"){let c=fe(t.uid,"fieldList");s=Or(c,s)}let{characterLimit:u}=e;n=s?.toString()??"",!zi(n)&&n!==Z.htmlEmptyContent&&(n=mx({stringToTruncate:n,characterLimit:u}))}return n.toString()}}function Pz(a){let{chart:t,isXAxis:e=!0,formatOptions:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(so(l)){let h=cF(l.series[0],e);if(h&&s!==void 0&&s!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Nm.DayOfWeek:n=IT({weekdayNumber:Number(s),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Nm.MonthOfYear:n=kT({monthNumber:Number(s),format:i.intlOptions,locale:o});break;case Nm.HourOfDay:n=LT({hour:Number(s),format:i.intlOptions,locale:o});break}}else if(s!==void 0&&s!==""){if(i.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=s?.toString()??"",!zi(n)&&n!==Z.htmlEmptyContent)){let{characterLimit:u}=i;n=mx({stringToTruncate:n,characterLimit:u})}}}return n.toString()}}function Dz(a){let{axis:t,formatOptions:e,isTimeOnlyField:i,setTimeZone:r,outTimeZone:s}=a,n={...$o(e)},o=["year","month","day","hour","minute","second"],l=i?{hour:{hour:"numeric",minute:"numeric"}}:{},h=i?{hour:{hour:"numeric",minute:"numeric"}}:{};if(r){let u=Tc.new(s??n.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);r&&t.root.timezone?.name!==u.name&&(t.root.timezone=u);for(let c=0;c<o.length;c+=1){let d=o[c],A=c===0?d:o[c-1],p=e?.formatPerDateTimeUnit?.[d]??n,f=e?.formatPerDateTimeUnit?.[A];p&&Object.values(p).find(m=>m!==void 0&&(typeof m!="string"||!zi(m)))&&(l[d]=p,h[d]=f??p)}Object.keys(l).length>0&&t.set("dateFormats",l),Object.keys(h).length>0&&t.set("periodChangeDateFormats",h)}}function wI(a){let{axis:t,valueFormat:e,chartType:i}=a,r=lB({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof mr,n=ba(e)&&t instanceof ci&&!(t instanceof mr),o=r&&t instanceof Br;return!s&&!n&&!o}function t$(a){let{dataContext:t,defaultValue:e,chartUID:i}=a,r=oo(t),s=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(s?.series),l=It(s?.series);return o===V.BoxPlotSeries&&(l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy)?r=t?.[Wm]:o===V.HistogramSeries?r=t?.[pd.Start]:(o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&s!==void 0?r=no({value:JA(l,s?.series?.[0]),dataContext:t,useRendererLabel:Hu(s,n),config:s}):r=no({value:e??"",dataContext:t,useRendererLabel:Hu(s,n),specificField:pt.xAxisField}),{labelValue:r,originalLabelValue:oo(t)}}function Lz(a,t){let{chart:e}=a;if(e!==void 0){let i=a.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html");let r=t!==void 0?"html":"text";i.adapters.add(r,(s,n)=>{let o=s,l=vu(a.uid,"labelFormatter");if(!ka(n.uid,"isGuide")&&l!==void 0){let h,u;switch(!0){case a instanceof mr:case a instanceof ci:h=n.dataItem?._settings?.value;break;case a instanceof Br:{let c=s,d=n.dataItem?.dataContext,A=fe(a.chart?.uid??Number.NaN,"config");if(ze(A?.series)===V.HeatSeries){let f=jc(a.get("renderer"))?d?.[xr.xField]:d?.[xr.yField];typeof f=="string"&&(c=f)}let p=t$({dataContext:d,defaultValue:c,chartUID:e.uid});h=p.labelValue,u=p.originalLabelValue}break}h!==void 0&&(o=l(h,u),r==="html"&&(o=Er(o)))}return o}),i.adapters.add(r,(s,n)=>{let o=s,l=fe(e.uid,"config");if(!ka(n.uid,"isGuide")&&l!==void 0){let h=cs(l),u=jc(a.get("renderer"),h),c=l.axes?.[u?0:1],d=i.get("maxWidth"),A=r==="html"?{wrap:i.get("oversizedBehavior")==="wrap",maxWidth:typeof d=="number"?d:void 0}:void 0,p={type:Rt.TS,...c?.labels.content,text:s};o=xa({textSymbol:p,format:r==="text"?"amChartsV5":"html",defaults:A})}return o}),r==="html"&&i.set("html",Z.htmlEmptyContent)}}function Iz(a){let{axis:t,isRotated:e,chartConfig:i}=a;if(t instanceof Br||t instanceof mr){let r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===GA.Descending:!1,s=e===!0;r&&t instanceof mr&&(s=!s),t.get("renderer").set("inversed",s)}}function kz(a){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:s,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:u,errorStrings:c}=a,{chart:d}=t;if(d!==void 0){let A=lB({isXAxis:e,chartType:i,valueFormat:r}),p=t instanceof ci&&!(t instanceof mr)&&ba(r),f=t instanceof mr&&ro(r),m=t instanceof Br&&A;if(!(p||f||m))Zm("mismatchAxisAndValueFormat",c);else{Lz(t,o);let g=o;o===void 0&&(i===V.HeatSeries?g=Pz({chart:d,isXAxis:e,formatOptions:r}):m?g=Tz({chart:d,formatOptions:r,isNonAggregatedChart:s}):p?g=Fz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):f&&Dz({axis:t,formatOptions:r,isTimeOnlyField:l,setTimeZone:h,outTimeZone:u})),SA(t.uid,{labelFormatter:g})}}}function $z(a){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:s,timeIntervalInfoWasReset:n}=a,o=ze(i),l=cs(a.chartConfig),h=l?1:0,u=l?0:1,c=e?.[h]?.valueFormat,d=e?.[u]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),f=A===void 0||r||c!==void 0&&wI({axis:A,valueFormat:c,chartType:o}),m=p===void 0||r||d!==void 0&&wI({axis:p,valueFormat:d,chartType:o});return n||s?.[0]||s?.[1]||f||m}function jc(a,t){return a instanceof ns&&!t||a instanceof ya&&t||a instanceof Ns}function Zv(a){return a instanceof ns}function Oz(a){return a instanceof ya}function Ez(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=fe(t.chart?.uid??Number.NaN,"config"),s=e===!0&&Ag({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof mr||t instanceof ci)&&t.setAll({logarithmic:s,treatZeroAs:s?Z.treatZeroValueAs:0,maxPrecision:s?0:void 0})}function Mz(a,t){if(a instanceof ci){let{integerOnlyValues:e,valueFormat:i}=t,r=Lx(i)?i.intlOptions.maximumFractionDigits:void 0;a.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function i$(a,t){let{chart:e}=t,i=Xr.new(a,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,s)=>{let n=r??"",o=vu(t.uid,"labelFormatter");if(!s.isHidden()&&o&&e){let{label:l}=s,h=l.get("text")??"";if(t instanceof ci){let u=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(u)?h:u,r)}else if(t instanceof Br){let u=l.dataItem?.dataContext,c=t$({dataContext:u,defaultValue:r,chartUID:e.uid});n=o(c.labelValue??h,r??c.originalLabelValue)}}return n}),i}function Rz(a){let{root:t,axis:e,displayCursorTooltip:i}=a;(e.get("tooltip")??i$(t,e)).set("forceHidden",i!==!0)}function Uz(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=a;if(t instanceof mr){let s,n=1;if(r)s="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case er.Second:s="second";break;case er.Minute:s="minute";break;case er.Hour:s="hour";break;case er.Day:s="day";break;case er.Week:s="week";break;case er.Month:s="month";break;case er.Year:s="year";break}n=o}}s!==void 0&&t.set("baseInterval",{timeUnit:s,count:n})}}function Vz(a,t){let{buffer:e}=t??{};return e??=Z.buffer,a instanceof ci&&!(a instanceof mr)&&!e}function Nz(a,t){let e=!1;return a instanceof ci&&!(a instanceof mr)&&(e=Vz(a,t),a.set("strictMinMax",e)),e}function BI(a,t){let e=a;if(a){let i=(t?Math.ceil:Math.floor)(Math.log10(a));e=Math.pow(10,i)}return e}function Qz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:s,isLogarithmic:n}=a,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&s===Oi.Stacked100&&!n&&t instanceof ci&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),u=t.chart?.series.getIndex(0)?.data.values;if(h&&u){let c=qk(t.chart),d=dg({chartConfig:h,isSecondValueAxis:i,seriesIds:c});o=!pT({seriesConfig:h.series,filteredData:u,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Hz(a){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o}=a,{minX:l,maxX:h,minY:u,maxY:c}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[u,c],p=d,f=A;return i===Oi.Stacked100?(p=Number.NaN,f=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===Oi.Stacked&&!r)&&(p=Math.min(d,0),f=Math.max(A,0)),p=s??p,f=n??f),o===!0&&(p=Number.isFinite(p)?BI(p,!1):p,f=Number.isFinite(f)?BI(f,!0):f),{min:p??Number.NaN,max:f??Number.NaN}}function jz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:s,maximumFromConfig:n}=a,o=s,l=n,{chart:h}=t;if(h){let u=fe(h.uid,"config");if(h instanceof bi&&u){let c=ze(u.series),d=$s(u)??Oi.Side,A=qk(h),p=dg({chartConfig:u,isSecondValueAxis:i,seriesIds:A}),f=Ln(r),m=Px({chartConfig:u,chartData:f??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Hz({dataMinMax:m,chartType:c,stackedType:d,isXAxis:e,minimumFromConfig:s,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function Wz(a){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:u}=a,{chart:c}=t;if(c&&(t instanceof ci||t instanceof mr))if(Nz(t,e)){let d=i,A=r,p=jc(t.get("renderer"),l);if(Qz({chartType:n,stackedType:o,isLogarithmic:s,axis:t,xAxis:p}))d=d??0,A=A??100;else if(JI({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s})){let f=jz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:u});d=f.min,A=f.max}A=A??Number.NaN,d=d??Number.NaN,s&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?Z.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Iv(a,t){if(a!==void 0){let e=fe(a.uid,"config");if(e!==void 0){let i=ze(e?.series),r=$s(e)??Oi.Side,s=cs(e),n=a.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],u=a.yAxes.getIndex(0),c=a.xAxes.getIndex(1)??a.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:u,axisConfig:l},{axis:c,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:f}=d;if(A!==void 0){let{minimum:m,maximum:g,buffer:y,isLogarithmic:x}=p??{};Wz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:s,minimumFromConfig:m,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:f})}})}}}function Xz(a){a.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=vu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.strokeWidth??Z.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(s=(s===0?1:s)*1.5),s}),a.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=vu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(s=1),s})}function nB(a){a.on("visible",()=>{a.chart instanceof bi&&Iv(a.chart)}),a.events.on(Ji.DataValidated,()=>{a.chart instanceof bi&&Iv(a.chart)})}function zz(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&ka(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function SI(a,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),s=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof ci){let u=l.get("renderer")instanceof Ns;n.push({isXAxis:jc(l.get("renderer"),i),isSecondValueAxis:h===1&&s!==V.HistogramSeries,minimum:u?l.get("min"):l.getPrivate("min"),maximum:u?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&ux(n,e.root.dom)}}}function r$(a){a.ghostLabel?.set("forceHidden",!0)}function FI(a){let{axis:t,start:e,end:i}=a;t.zoom(e??0,i??1)}function TI(a){a!==void 0&&a.setAll({start:0,end:1})}function Gz(a){a instanceof bi&&(a.xAxes.each(t=>FI({axis:t})),a.yAxes.each(t=>FI({axis:t})),TI(a.get("scrollbarX")),TI(a.get("scrollbarY")))}function Yz(a){let{axis:t,guide:e,guideIndex:i}=a,{root:r,chart:s}=t,n=e.get("axisFill");n?.set("tooltip",Xr.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&s!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(Z.tooltipWidth,s.seriesContainer.width())),o.get("background")?.set("fillOpacity",Hm);let l=fe(s.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.setAll({tooltipText:void 0,tooltipHTML:Z.htmlEmptyContent,tooltipPosition:Z.guideTooltipPosition}),n.adapters.add("tooltipHTML",(h,u)=>{let c=h,{dataItem:d}=u;if(!(t.get("renderer")instanceof Ns)){let A=vu(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof as){let p,f;switch(!0){case t instanceof mr:case t instanceof ci:p=d.get("value"),f=d.get("endValue");break;case t instanceof Br:p=d.get("category"),f=d.get("endCategory");break}c=A({guideName:KW(d.uid,"name")??"",start:p??"",end:f,guideIndex:i})}}return Er(c??"")});let l=n.getTooltip();l&&(xk(l),l.adapters.add("x",(h,u)=>{let{chart:c}=t;if(c&&u){let d=fe(c.uid,"config"),A=fe(c.uid,"isRotated");if(d){let p=jc(t.get("renderer"),A)?0:1,f=d?.axes?.[p]?.guides?.[i];if(f){let{tooltipReverseColor:m}=f;_k(u,m)}}}return h}))}}function Kz(a,t){return e=>{let{guideName:i,start:r,end:s}=e,{chart:n,root:o}=a,l="";if(n!==void 0){let h=fe(n.uid,"config"),u=fe(n.uid,"isRotated"),c=jc(a.get("renderer"),u)?0:1,d=h?.axes?.[c]?.guides,A=r,p=s;if(a instanceof mr){let x;if(n!==void 0){let w=fe(a.chart?.uid??Number.NaN,"formatLocale");x=qn({root:a.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),s!==void 0&&(p=x.format(s,S))}}else if(a instanceof ci&&!(r instanceof Date)&&!(s instanceof Date)){let x=d?.find(T=>T.name===i),{start:w,end:S}=s$(a,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let F=vu(a.uid,"numberFormatter")??(T=>Jh.new(o,{}).format(T));A=F(A),p!==void 0&&(p=F(p))}else a instanceof Br&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Vc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Zz(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;SA(t.uid,{guideTooltipFormatter:e??Kz(t,i)})}function PI(a){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(!0){case e instanceof mr:s=t;break;case e instanceof Br:s=t.toString();break;case e instanceof ci:if(typeof t!="number"){let n=t.toString().trim(),o=rp(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function oB(a,t){return a.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=ka(i?.uid??Number.NaN,"isGuide")??!1,s=ka(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case gr.Ticks:n=!r;break;case gr.Guides:n=r;break;case gr.GaugeTicksWithLabels:n=s&&"value"in e&&e.value!==void 0;break}return n})??[]}function qz(a){let{axis:t,guideConfig:e,above:i}=a,r=e!==void 0,s=t.axisRanges.length,n=t.axisRanges.insertIndex(s,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:Z.zIndexes.guide}),m4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function Jz(a){let{axis:t,guideIndex:e,guideConfig:i}=a,r=qz({axis:t,guideConfig:i,above:i?.above});Yz({axis:t,guide:r,guideIndex:e});let s=r.get("tick"),n=r.get("label"),o=r.get("grid");s!==void 0&&s.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function eG(a,t){let e=oB(a,gr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)Jz({axis:a,guideIndex:r,guideConfig:t?.[r]})}function tG(a,t){let{start:e,end:i}=t,r=e!==null?e:void 0,s=i!==null?i:void 0,{chart:n}=a,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=hg(o),h=a.data.values,u=h.find(c=>c[Z.originalCategoryValue]===e)?.[l];if((typeof u=="string"||typeof u=="number"||u instanceof Date)&&(r=u),s!==void 0)for(let c=h.length-1;c>=0;c-=1){let d=h[c],A=d[l];if(d[Z.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){s=A;break}}}return{modifiedStart:r,modifiedEnd:s}}function s$(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=a instanceof ci?a.get("min"):void 0,n=a instanceof ci?a.get("max"):void 0,o=PI({inputValue:e,axis:a,axisMin:s,axisMax:n}),l=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?PI({inputValue:i,axis:a,axisMin:s,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function iG(a){let{axis:t,guide:e,guideConfig:i}=a,{start:r,end:s}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Br&&n instanceof bi&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=tG(t,i);o={isValidGuide:!0,start:l??r,end:h??s}}else o=s$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof mr:case t instanceof ci:l="value",h="endValue";break;case t instanceof Br:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function rG(a){let{axis:t,guide:e,guideConfig:i}=a;if(e){let r=e.get("axisFill"),s=e.get("label");if(i!==void 0){ZW(e.uid,{name:i.name}),xi(e,i.visible),iG({axis:t,guide:e,guideConfig:i}),i.style.type===Rt.SLS?xu({root:t.root,element:r,fillSymbol:{type:Rt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Rt.SFS&&xu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),g4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?Z.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),s!==void 0&&s.set("disabled",!0)}}function sG(a){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){let s=oB(t,gr.Guides);e.forEach((n,o)=>{rG({axis:t,guide:s[o],guideConfig:n})}),Zz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function aG(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ka(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function DI(a,t){let e=oB(a,gr.Guides).length,i=t?.length??0,r=e-i;aG({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function nG(a){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=a;i&&DI(t),eG(t,e),sG(a),DI(t,e)}function a$(a){return a.getCellWidthPosition()*a.width()}function oG(a,t){let e=a.get("renderer");if(a!==void 0){let i=Number.NaN;if(t===tr.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{ka(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let s=a instanceof mr?a.width()/Z.maxNumberOfXAxisLabelsInWrapModeForDateAxis:a.width()/Z.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,s)}else if(t===tr.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(s=>{ka(s.uid,"isGuide")!==!0&&s.width()>0&&(r=Math.max(r,s.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>Z.shortestMinGridDistance&&e.set("minGridDistance",i)}}function lG(a){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:s}=a,{horizontalAxisLabelsBehavior:n}=a;n===void 0&&(n=e!==V.HistogramSeries?tr.Rotate:tr.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof s=="number"&&Number.isFinite(s))l=s;else if(e!==V.RadarSeries)if(o instanceof Ns)l=Z.gauge.gaugeMinGridDistance;else if(t instanceof ci)l=o instanceof ns?Z.xAxisMinGridDistance:Z.yAxisMinGridDistance;else if(o instanceof ns)if(r===!0)l=Z.secondRotatedValueAxisMinGridDistance;else if(n===tr.Rotate){let h=i.content.font?.size??Z.generalFontSize,u=t instanceof Br?Z.categoryAxisLabelPadding:Z.axisLabelPadding;l=h*u}else if(n===tr.Wrap||n===tr.Hide){n===tr.Hide&&(l=t instanceof Br?Z.xCategoryAxisMinGridDistance:Z.xAxisMinGridDistance);let h=vu(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ji.BoundsChanged,()=>{oG(t,n)}),SA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===tr.Stagger?l=Z.staggerMinGridDistance:l=t instanceof Br?Z.xCategoryAxisMinGridDistance:Z.xAxisMinGridDistance;else l=t instanceof Br?Z.yCategoryAxisMinGridDistance:Z.yAxisMinGridDistance;o.set("minGridDistance",l)}function LI(a=1,t){let e=t.get("renderer"),i=a$(t),r=0;e.labels.each(o=>{ka(o.uid,"isGuide")!==!0&&o.getText()!==void 0&&o.width()>0&&(r+=1)});let s=r>0?t.width()/r:0,n=Math.max(i,s)*a;if(Number.isFinite(n)&&n>0){let o=e.labels.template;o.get("maxWidth")!==n&&(o.set("maxWidth",n),o.get("html")!==void 0&&(o.set("html",void 0),o.set("html",Z.htmlEmptyContent)))}}function II(a,t=1){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),a.events.on(Ji.BoundsChanged,()=>LI(t,a)),LI(t,a)}function hG(a){let t=a.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=ka(i.uid,"isGuide")!==!0?vu(a.uid,"rotation")??0:e??0;return t.set("centerX",r===0?He:ge),r})}function qC(a){if(a?.chart!==void 0){let t=a.get("renderer");if(fe(a.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(s=>{if(ka(s.uid,"isGuide")!==!0&&s.width()>0){let n=e===Z.rotatedAxisLabel.rotation?Math.sqrt(s.innerHeight()**2+s.innerWidth()**2):s.innerWidth();n>i&&(i=n)}});let r=a$(a)>=i+5;if(!r&&e===0||r&&e===Z.rotatedAxisLabel.rotation){let s=r?Z.axisLabel.rotation:Z.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:s,centerX:r?He:ge,centerY:jr,paddingTop:r?Z.axisLabel.paddingTop:Z.rotatedAxisLabel.paddingTop,paddingLeft:r?Z.axisLabel.paddingLeft:Z.rotatedAxisLabel.paddingLeft,paddingRight:r?Z.axisLabel.paddingRight:Z.rotatedAxisLabel.paddingRight}),SA(a.uid,{rotation:s})}}}}function kI(a){let t=a.get("renderer");hG(a),t.labels.template.setAll({oversizedBehavior:"hide"}),a instanceof mr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),a.events.on(Ji.BoundsChanged,()=>qC(a)),a.events.on(Ji.DataValidated,()=>qC(a)),qC()}function $I(a){if(a&&fe(a.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;a.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(a.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),s=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:Z.axisTickLength),s&&s.set("dy",n?t:0)}),t&&a.get("renderer").labels.template.get("paddingBottom")!==t+5&&a.get("renderer").labels.template.set("paddingBottom",t+5))}}function uG(a){a.get("renderer").labels.template.set("oversizedBehavior","wrap"),a.events.on(Ji.BoundsChanged,()=>$I(a)),$I(a)}function cG(a){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:Z.yAxisLabelMaxWidth,textAlign:"end"})}function dG(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:s,chartType:n}=a,o=t.get("renderer");if(!(o instanceof Ns))if(Zv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?tr.Hide:e){case tr.Hide:break;case tr.Stagger:uG(t),II(t,2);break;case tr.Wrap:II(t);break;case tr.Rotate:kI(t);break;default:s.content.angle!==null&&s.content.angle===void 0&&kI(t);break}else Oz(o)&&i!==tr.Hide&&cG(t)}function AG(a){let{renderer:t,axisConfig:e,labelConfig:i}=a;switch(e.labelsOrientation){case zb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case zb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment="middle";break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function pG(a){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,chartType:n}=a,o={...e},l=t.get("renderer"),h=l?.get("opposite");Zv(l)?(o.content.horizontalAlignment="center",o.content.verticalAlignment=h?"bottom":"top"):(o.content.horizontalAlignment=h?"left":"right",o.content.verticalAlignment="middle"),l instanceof Ns?AG({renderer:l,axisConfig:a.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation"),Cn({label:l.labels.template,labelConfig:o}),dG({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:s,chartType:n})}function fG(a){let{axis:t,isHorizontalAxis:e,label:i}=a,{chart:r}=t;if(r){let s=e?"width":"height",n=e?Xt.XAxisTitle:Xt.YAxisTitle;gl({chart:r,label:i,labelType:n}),t.onPrivate(s,ks(()=>gl({chart:r,label:i,labelType:n}),Z.debounceTime))}}function mG(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(u=>t in u),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Gr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ru(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function gG(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=fe(a.uid,"config"),s=i.get("min")??r?.axes?.[0].minimum??Z.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??Z.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e??void 0}function yG(a){let{root:t}=a,e=dl.new(t,{radius:Bt(100)}),i=a.makeDataItem({value:0,bullet:hu.new(t,{sprite:e})});return a.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function vG(a){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=a,s=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof dl),n=s?.get("bullet")?.get("sprite");if(s&&n instanceof dl){let{startWidth:o,endWidth:l,innerRadius:h}=Z.gaugeNeedle;xu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),xu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),s.set("value",gG(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function bG(a,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:Z.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&a.set("innerRadius",Bt(e))}function xG(a,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:Z.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:Z.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&a.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&a.set("endAngle",i)}function _G(a){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=a,{axes:h,series:u}=e,c=ju(e),{featureIndex:d,x:A}=u[0],p=h?.[0],f=t.xAxes.getIndex(0),m={...p};if(f instanceof ci&&f.get("renderer")instanceof Ns&&m!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=m;bG(t,e),xG(t,e);let x=Mw({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});m.minimum=x.minimum,m.maximum=x.maximum;let{min:w,max:S}=H1(m),F={...m};Ru(g)?(F.minimum=0,F.maximum=1,j1({axisConfig:F,axisMin:m.minimum,axisMax:m.maximum})):(F.minimum=w,F.maximum=S),hB({chartConfig:e,axis:f,axisConfig:F,axisConfigIndex:0,externalAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,queryObject:r});let T=c?x?.dataValue:mG({x:A,data:i.dataItems,chart:t,minimum:m.minimum,maximum:m.maximum,valueFormat:g});vG({chart:t,axis:f,needleConfig:y,gaugeValue:T})}}function CG(a){let{chart:t,axesConfig:e,errorStrings:i}=a,{root:r}=t;Pl({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let s=t.xAxes.push(ci.new(r,{min:0,max:100,renderer:Ns.new(r,{})}));yG(s),r$(s)}function wG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:s,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:u,utilsStrings:c,errorStrings:d,queryObject:A}=a,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axes:m}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Pl({chartType:g,axesConfig:m,errorStrings:d}),[{axis:y,axisConfig:m?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:m?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:F,axisConfig:T,externalAxisLabelFormatter:L}=w;F!==void 0&&!F.isDisposed()&&T!==void 0&&hB({axis:F,data:s,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:T,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axisLabelsBehaviorChanged:i,utilsStrings:c,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:u,errorStrings:d,queryObject:A})}),Iv(t,s)}function BG(a){let{chart:t,axesConfig:e,x:i,errorStrings:r}=a,{root:s}=t,n=V.HistogramSeries;Pl({chartType:n,axesConfig:e,errorStrings:r});let o={root:s,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let u=mu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ns.new(s,{}),isXAxis:!0,x:i}),c=mu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ns.new(s,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});mu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:ya.new(s,{}),isXAxis:!1,x:i}),u&&(u.get("renderer").grid.template.set("location",0),u.get("renderer").ticks.template.set("location",0),u.get("renderer").labels.template.set("location",0)),c&&(c.set("visible",!1),c.get("renderer").grid.template.set("visible",!1),c.get("renderer").ticks.template.set("visible",!1),c.get("renderer").labels.template.set("visible",!1))}}function lB(a){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=a;return e===V.HeatSeries||t&&(dd(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&ba(i))}function n$(a,t){return t?`${Aw}_x_${a.uid}`:`${Aw}_y_${a.uid}`}function mw(a,t){let e=fe(a.chart?.uid??Number.NaN,"config"),i=cs(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,s=zz(a),n=s;switch(r){case"baseline":case"middle":n=s/2;break;case"bottom":n=Math.min(s,0);break}t?.set("dy",n)}function SG(a){a instanceof ci&&(a.onPrivate("min",SI),a.onPrivate("max",SI))}function FG(a){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=a,{root:r}=t,s=e?{...Z.xAxisTitleLabel,verticalCenter:"top"}:Z.yAxisTitleLabel,n=bA({root:r,id:n$(t,e),defaults:s});return t.get("renderer")instanceof ya&&i!==!0||t.get("renderer")instanceof ns&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ji.BoundsChanged,()=>mw(t,n),Z.debounceTime),t.events.onDebounced(Ji.DataValidated,()=>mw(t,n),Z.debounceTime),fG({axis:t,isHorizontalAxis:e,label:n})),!e&&t.chart&&Hc({chart:t.chart,label:n,labelType:Xt.YAxisTitle}),n}function mu(a){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:s,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=a,u;if(lB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let c;switch(o){case V.HeatSeries:c=i?xr.xField:xr.yField;break;case V.HistogramSeries:c=pd.Start;break;case V.BoxPlotSeries:c=l;break;default:c=Z.xAxisField;break}c&&(u=e.push(Br.new(t,{categoryField:c,renderer:s})))}else if(ro(r))u=e.push(mr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:s}));else if(ba(r)&&(u=e.push(ci.new(t,{strictMinMax:!0,renderer:s})),n&&u instanceof ci)){let c=e.getIndex(0);c instanceof ci&&u.set("syncWithAxis",c)}if(u!==void 0&&!h){Xz(u),i$(t,u);let c=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;u.get("renderer").setAll({cellStartLocation:c,cellEndLocation:d}),o===V.HeatSeries&&(s instanceof ns||s instanceof ya)&&s.setAll({layer:Z.zIndexes.axisLineLayer}),r$(u),SG(u),Zv(u.get("renderer"))?u.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",Z.axisLabelSpacing.horizontalAxisLabelPaddingTop):s instanceof ya&&u.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",Z.axisLabelSpacing.verticalAxisLabelSidePadding)}return u}function TG(a){let{axis:t,data:e,chartConfig:i,dataWasUpdated:r,axesInitializationNeeded:s,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=a;if(e&&(r||s||n||o)){let l=Ln(e);if(so(i)){let h=JW(t),u=e?.heatChartAxesData,c=h===xr.xField?u?.xAxisData:u?.yAxisData;t.data.setAll(c??[])}else t.data.setAll(l??[])}}function PG(a){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=a,r=t.get("renderer"),{chart:s}=t,n=Zv(r),o=Ii({childId:n$(t,n),parent:t,useChildId:!0})??FG({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Kt){let l=n?{...Z.xAxisTitleLabel,verticalCenter:"top"}:Z.yAxisTitleLabel;if(Cn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&mw(t,o),s){let h={chart:s,label:o,labelType:n?Xt.XAxisTitle:Xt.YAxisTitle};gl(h)}}}function hB(a){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:s,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:u,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:f,chartConfig:m,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=a,{visible:F,lineSymbol:T,title:L,labels:O,isLogarithmic:I,grid:U,displayCursorTooltip:P,displayZeroLine:Q,valueFormat:Y,guides:G,tickSpacing:ee,dateBaseInterval:te}=o,{root:le}=t,z=ze(m.series),K=$s(m),we=cs(m),{chart:se}=t,de=se?fe(se.uid,"config"):void 0,$e=se?fe(se.uid,"options"):void 0,Ye=Os(S),We=_a(Ye).find(Bi=>Bi.name===de?.series?.[0]?.x),qe=aT(We),Tt=tp({chartConfig:m,queryObject:S,options:$e}),At=_h(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,_i=t.get("renderer");SA(t.uid,{zeroGridLine:{displayZeroLine:Q,strokeWidth:U?.width??Z.lineWidth,visible:U!==void 0}}),Ez({axis:t,isLogarithmic:I,axisConfigIndex:l}),kz({axis:t,isXAxis:jc(t.get("renderer"),we),chartType:z,formatOptions:Y,isNonAggregatedChart:p,overridePercentMultiplication:K===Oi.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:qe,setTimeZone:Tt,outTimeZone:At,errorStrings:w}),Iz({axis:t,isRotated:we,chartConfig:m}),Uz({axis:t,timeIntervalInfo:h,dateBaseInterval:te,xFieldIsTimeOnly:qe}),Fo({element:_i,lineSymbol:{color:[...Z.color],...T??ZA()},visible:F}),Fo({element:_i.ticks.template,lineSymbol:T,visible:F}),Fo({element:_i.grid.template,lineSymbol:U,visible:F}),U===void 0&&(t.get("renderer").grid.template.set("strokeWidth",Z.lineWidth),t.markDirtyValues()),pG({axis:t,axisConfig:o,chartType:z,horizontalAxisLabelsBehavior:u,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d}),PG({axis:t,axisTitleConfig:L,isSecondValueAxis:f}),Mz(t,o),lG({axis:t,chartType:z,labelConfig:O,horizontalAxisLabelsBehavior:u,isSecondValueAxis:f,tickSpacing:ee}),Rz({root:le,axis:t,displayCursorTooltip:P}),nG({axis:t,guideConfigs:G,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),TG({axis:t,data:e,chartConfig:m,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:s})}function DG(a){let{chart:t,errorStrings:e}=a,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:s}=r.series[0],n=cs(r),{axes:o}=r,l=ze(r.series);Pl({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:s,chartType:l},u=n?o?.[1]:o?.[0],c=n?o?.[0]:o?.[1],d=u?.valueFormat,A=c?.valueFormat;if(d!==void 0&&A!==void 0&&(mu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:ns.new(i,{}),isXAxis:!n,x:s}),mu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:ya.new(i,{}),isXAxis:n,x:s}),o?.[2]!==void 0)){let p=n?ns:ya;mu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:s})}}}function LG(a){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:s}=a,{root:n}=t,o=i?.[0],l=i?.[1];if(Pl({chartType:e,axesConfig:i,errorStrings:s}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};mu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Ns.new(n,{}),isXAxis:!0,x:r}),mu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:ou.new(n,{}),isXAxis:!1,x:r})}}function o$(a){let{chart:t,chartConfig:e,errorStrings:i}=a,{axes:r}=e,{x:s}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof Da&&CG({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:BG({chart:t,axesConfig:r,x:s,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:DG({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof Da&&LG({chart:t,axesConfig:r,chartType:n,x:s,errorStrings:i});break}}function IG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:s,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:u,xAxisLabelFormatter:c,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:f,errorStrings:m,queryObject:g}=a,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=cs(e),F=ze(e.series),T=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),O=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Pl({chartType:F,axesConfig:w,errorStrings:m});let U=S?1:0,P=S?0:1,Q=w?.[U],Y=w?.[P];[{axis:L,axisConfig:Q,externalAxisLabelFormatter:S?d:c,axisConfigIndex:U},{axis:O,axisConfig:Y,externalAxisLabelFormatter:S?c:d,axisConfigIndex:P},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(G=>{let{axis:ee,axisConfig:te,axisConfigIndex:le,externalAxisLabelFormatter:z,isSecondValueAxis:K}=G;ee!==void 0&&!ee.isDisposed()&&te!==void 0&&hB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:u,axisConfig:te,axisConfigIndex:le,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:s,isNonAggregatedChart:T,isSecondValueAxis:K,utilsStrings:f,chartConfig:e,externalAxisLabelFormatter:z,guideTooltipFormatter:p,errorStrings:m,queryObject:g})}),Iv(t,n)}function l$(a){let{chart:t,chartConfig:e}=a,i=ze(e.series);i===V.GaugeSeries&&t instanceof Da?_G(a):i===V.HistogramSeries?wG(a):IG(a)}function kG(a,t){let e=zt(Z.backgroundColor);t.set("background",or.new(a,{fill:e.color,fillOpacity:e.opacity}))}function h$(a,t){let e=zt(t??Z.backgroundColor);a.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function u$(a,t){let e=ze(t.series);return a instanceof bi&&e!==V.GaugeSeries}function $G(a,t){let e=Z.cursorCrosshair.style,i={type:Rt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=a.get("cursor")?.lineX,s=a.get("cursor")?.lineY;Fo({element:r,lineSymbol:i}),Fo({element:s,lineSymbol:i})}function c$(a){let{root:t,chart:e,config:i,queryObject:r,errorStrings:s}=a,n;if(u$(e,i)){let o=e instanceof Da?Al:Yn;n=e.set("cursor",o.new(t,{})),iz({chart:e,queryObject:r,errorStrings:s})}return n}function d$(a){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:s,errorStrings:n}=a;if(u$(e,r)){let o=e.get("cursor")??c$({root:t,chart:e,config:r,queryObject:s,errorStrings:n});o&&($G(e,i?.style),o.lineX.set("visible",i?.verticalLineVisible??Z.cursorCrosshair.verticalLineVisible),o.lineY.set("visible",i?.horizontalLineVisible??Z.cursorCrosshair.horizontalLineVisible))}}function OG(a){let{chart:t,enabled:e}=a,i=e?"pointer":"default";t instanceof ms&&t.series.each(r=>{switch(!0){case r instanceof Li:r.columns.template.set("cursorOverStyle",i);break;case r instanceof qt:let s=Qt(r.uid,"bulletTemplate");s!==void 0&&!ah(r)&&s.set("cursorOverStyle",i);break;case r instanceof Vr:r.slices.template.setAll({cursorOverStyle:i});break}})}function EG(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=fe(t.uid,"isRotated"),s=fe(t.uid,"config"),n=ze(s?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&ba(s?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&dd(s?.axes?.[0]?.valueFormat),u=(n===V.LineSeries||n===V.RadarSeries)&&ro(s?.axes?.[0]?.valueFormat),c,d=!1,A=e??fe(t.uid,"actionMode")??Z.actionMode;if(fe(t.uid,"filterBySelection")===!0)c=Hi.None,d=!1;else if(i!==void 0)c=e1({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:o||l||u?c=Hi.ZoomXY:c=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?c=r===!0?Hi.SelectY:Hi.SelectX:c=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:c=Hi.None,d=!0;break;case Ut.None:c=Hi.None,d=!1;break}t instanceof bi&&t.get("cursor")!==void 0&&c!==void 0&&t.get("cursor")?.set("behavior",c),OG({chart:t,enabled:d})}function MG(a,t){t!==void 0&&(t.width!==void 0&&a.set("width",cI(t.width)),t.height!==void 0&&a.set("height",cI(t.height)),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom))}function gw(a){let{root:t,defaults:e,parent:i,id:r,index:s}=a,n=Re.new(t,{});return MG(n,e),i!==void 0&&i.children.insertIndex(s??i.children.length,n),r!==void 0&&n.set("id",r),n}function yw(a,t){t?a.hide():a.show()}function RG(a,t){let e=gw({root:a,defaults:Z.headerContainer,parent:t,id:Hs(Gv,t.uid),index:0}),i=gw({root:a,defaults:Z.headerContainer,parent:t,id:Hs(eB,t.uid),index:1}),r=bA({root:a,parent:e,defaults:Z.titleLabel,id:Hs(Bk,e.uid)}),s=bA({root:a,parent:i,defaults:Z.subtitleLabel,id:Hs(Sk,i.uid)});Hc({chart:t,label:r,labelType:Xt.ChartTitle}),Hc({chart:t,label:s,labelType:Xt.ChartSubTitle})}function A$(a,t){let{title:e,subtitle:i}=t??{},r=fe(a.uid,"config"),s=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:Z.headerContainer.paddingBottom??0,n=Ii({childId:Gv,parent:a});if(n!==void 0){n.set("paddingBottom",s);let l=Ii({childId:Bk,parent:n});l!==void 0&&(Cn({label:l,labelConfig:e,defaults:Z.titleLabel}),gl({chart:a,label:l,labelType:Xt.ChartTitle}),yw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Ii({childId:eB,parent:a});if(o!==void 0){o.set("paddingBottom",s),n!==void 0&&n.set("paddingBottom",Z.titleAndSubtitlePaddingBottom);let l=Ii({childId:Sk,parent:o});l!==void 0&&(Cn({label:l,labelConfig:i,defaults:Z.subtitleLabel}),gl({chart:a,label:l,labelType:Xt.ChartSubTitle}),yw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function UG(a){let{root:t}=a,e=gw({root:t,defaults:Z.footerContainer,parent:a,id:Hs(Yv,a.uid)}),i=bA({root:t,parent:e,id:Hs(Fk,e.uid)});Hc({chart:a,label:i,labelType:Xt.ChartFooter})}function p$(a,t){let e=Ii({childId:Yv,parent:a});if(e!==void 0){let i=Ii({childId:Fk,parent:e});i!==void 0&&(Cn({label:i,labelConfig:t,defaults:Z.footer}),gl({chart:a,label:i,labelType:Xt.ChartFooter}),yw(e,i.get("disabled")||(t?.content.text??"")===""))}}function f$(a){if(!(a instanceof Da)&&a instanceof bi){let{root:t}=a,e=ll.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=ll.new(t,{orientation:"vertical",visible:!1});a.setAll({scrollbarX:e,scrollbarY:i})}}function VG(a,t){if(t!==void 0){let e=zt(t),i=t[3]/255,r=i/2;[{element:a.get("background"),specificOpacity:r},{element:a.startGrip.get("background")},{element:a.endGrip.get("background")},{element:a.thumb}].forEach(s=>{let{element:n,specificOpacity:o}=s;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:a.get("background"),stateName:"default",specificOpacity:r},{element:a.startGrip.get("background"),stateName:"default"},{element:a.startGrip.get("background"),stateName:"hover"},{element:a.startGrip.get("background"),stateName:"down"},{element:a.endGrip.get("background"),stateName:"default"},{element:a.endGrip.get("background"),stateName:"hover"},{element:a.endGrip.get("background"),stateName:"down"},{element:a.thumb,stateName:"default"},{element:a.thumb,stateName:"hover"},{element:a.thumb,stateName:"down"}].forEach(s=>{let{element:n,stateName:o,specificOpacity:l}=s;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function NG(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.setAll({height:t,minHeight:t}):a.setAll({width:t,minWidth:t}))}function QG(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.set("scale",e),a.endGrip.set("scale",e)}}function OI(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.set("marginBottom",t):a.set("marginLeft",t),a.markDirtyBounds())}function m$(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(!(t instanceof Da)&&t instanceof bi){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&f$(t);let s=t.get("scrollbarX"),n=t.get("scrollbarY");[s,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(xi(o,!h),l!==void 0&&!h){let{width:u,color:c,gripSize:d,margin:A}=l;OI(o,A??u??Z.scrollbarPadding),VG(o,c),QG(o,d),NG(o,u)}else OI(o,0)}})}}function HG(a){vk(a)}function EI(a){return a.get("legendDataItem")?.get("marker").children.getIndex(0)}function jG(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function WG(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=i,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,i),f=oT(e),m=Li.new(t,{id:h,name:u,stacked:f,turboMode:!0,xAxis:r,yAxis:s,[A]:c,[p]:d,maskBullets:!1});os(m.columns.template,n?.selectionTheme);let g=Dt.new({});return Kr(m.uid,{bulletTemplate:g}),To({element:m.columns.template,series:m,queryObject:o,errorStrings:l}),m.bullets.push(y=>{let x=ft.new(y,{},g);return fa.new(y,{sprite:x})}),m.columns.template.set("width",Bt(100)),nB(m),Gw(m,n?.tooltipFormatter),Nk(m),PA(m,e),m.appear(),m}function XG(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.root,h=Gf(t),u=new Set,c,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},f={},m={},g=Jb(i),y=Qt(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==bs.Solid&&xu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:tk(t.chart)??[...Z.backgroundColor]}),t.columns.length===0?f=Ja({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o});let S=w[Z.xAxisField]===Z.nullValue,F=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;f=Ja({...p,seriesSymbol:F,element:x,colorMatch:n,rendererSymbol:d}),gA(x,f.stylingInfo),S||(u.add(JSON.stringify(f.symbolWithColorInfo)),m=f)}}),r>1){let x=EI(t);if(x!==void 0)Ja({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),gA(x,m.stylingInfo);else if(t.chart instanceof bi){let w=t.chart.children.values.find(S=>S instanceof nl);w!==void 0&&w.events.once(Ji.BoundsChanged,()=>{gA(EI(t),m.stylingInfo)})}Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return u.size<=1&&(c=m.symbolWithColorInfo??A),jG(t,h),c}function zG(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n,interactionsDisabled:o}=a,l=a.seriesConfig,h=t.chart;if(h!==void 0){let u=fe(h.uid,"config"),c=u?.series.length??0,d=It(u?.series);_A(t,!1);let A=XG({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:c,chartSubType:d,colorMatch:s,rendererType:n});o&&_A(t,!0),e.set(i?.get(l.id)??r,A),e.size===c&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:DA(h)})}}function GG(a){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:u}=a,c=r.series[i];if(e&&c?.type===V.BarSeries&&(o===!0||s===!0||u===!0||l===!0||h||n===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=FA(r,c);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function YG(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:u,seriesWereReinitialized:c,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:f}=a,m=i.series[s],g=i.rotated;if(t.set("id",m.id),xi(t,m.visible),os(t.columns.template,r?.selectionTheme),Cu(t.columns.template,e?.dataItems?.length),sB({series:t,chartConfig:i,isRotated:g}),HG({seriesType:V.BarSeries,series:t,seriesConfig:m,isRotated:g,dataLabelsConfig:m.dataLabels,autoInverseDataLabelTextColor:d,externalDataLabelFormatter:r?.dataLabelFormatter}),GG({columnSeries:t,data:e,seriesIndex:s,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:c,rotationChanged:o,stackedTypeChanged:f,sortChanged:p}),qw({series:t,seriesConfig:m,fieldList:A,queryObject:h,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:u}),nh(a)){let y={series:t,seriesConfig:m,seriesIndex:s,colorMatch:a.colorMatch,seriesIndexMapper:a.seriesIndexMapper,seriesSymbolMapForEvent:a.seriesSymbolMapForEvent,rendererType:a.rendererType,interactionsDisabled:r?.interactionsDisabled};oh({styleCallback:()=>zG(y),series:t,seriesConfig:m})}aB({chartConfig:i,series:t,seriesIndex:s,queryObject:h})}function KG(a){let{chartConfig:t,seriesConfig:e}=a,i=cs(t),r=t.showOutliers,s=t.standardizeValues,n=oa(t),{y:o}=e,l=ug(t),h=It(l.series),u=n?void 0:e?.query?.where,c={y:h===ke.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:u,showOutliers:r,standardizeValues:md(h)?s:!1},d=qv({chartConfig:t,seriesConfig:e,key:Zt.ThirdQuartile});return{properties:{...d.properties,low:Zi({...c,key:Zt.Min}),open:Zi({...c,key:Zt.FirstQuartile}),high:Zi({...c,key:Zt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function ZG(a){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function qG(a){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,showMean:n,rendererType:o,options:l}=a,{root:h}=t,u=e.fillSymbol??Gm(i),c={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:s,isChartFillSymbol:!0};_A(t,!1),t.columns.length===0?c=Ja({...d,seriesSymbol:u,element:ft.new(h,{})}):t.columns.each(A=>{c=Ja({...d,seriesSymbol:u,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:o})})}),Ja({...d,seriesSymbol:c?.symbolWithColorInfo??u,element:t.columns.template,colorMatch:s}),l?.interactionsDisabled&&_A(t,!0)}function JG(a){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=a;os(t.columns.template,r?.selectionTheme),Cu(t.columns.template,i?.dataItems?.length),TA(t,e.name),ZG(a),nh(a)&&oh({styleCallback:()=>qG(a),series:t,seriesConfig:e})}function e5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.BoxPlotSeries){let c=KG({chartConfig:r,seriesConfig:h});u=La.new(t,{id:h.id,turboMode:!0,xAxis:e,yAxis:i,[c.dataFields.low]:c.properties.low,[c.dataFields.open]:c.properties.open,[c.dataFields.high]:c.properties.high,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.columns.template.setAll({themeTags:[],width:Bt(80)}),os(u.columns.template,n?.selectionTheme),To({element:u.columns.template,series:u,queryObject:o,errorStrings:l})}return u}function t5(a){let{chartConfig:t,seriesConfig:e}=a,i=It(t.series),{showOutliers:r,standardizeValues:s}=t,{y:n}=e,o=e?.query?.where,l=ug(t),h=qv({chartConfig:l,seriesConfig:e,key:Zt.Average}),u=Zi({y:i===ke.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:md(i)?s:!1,key:Zt.Average});return h.properties.value=u,h}function i5(a){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function r5(a){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a,h=Qt(t.uid,"bulletTemplate");h&&os(h,l?.selectionTheme),Cu(h,i?.meanLines?.length),TA(t,e?.name),i5({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o})}function s5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.LineSeries){let c=t5({chartConfig:r,seriesConfig:h});u=qt.new(t,{id:h.id,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.appear();let d=Dt.new({});Kr(u.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:d}),os(d,n?.selectionTheme),u.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return u&&To({element:p,series:u,queryObject:o,errorStrings:l}),f}),u.strokes.template.set("lineJoin",Z.lineJoin)}return u}function a5(a,t){return a.get("id")===`${t}_${ji.Outliers}`}function n5(a){let{chartConfig:t,seriesConfig:e}=a;return qv({chartConfig:t,seriesConfig:e,key:Zt.Outlier})}function o5(a){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function l5(a,t){return(a??Z.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function h5(a){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:s}=a;if(Qt(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Rt.SMS,style:KA.Circle,color:o?.color,size:Z.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let u=h.bullets?.[0]?.get("sprite");if(u!==void 0){let c=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});Ja({root:t.root,seriesSymbol:l,element:u,colorMatch:r,rendererSymbol:c})}})}let n=l5(s,i.visible);xi(t,n)}function u5(a){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a;if(t&&i.type===V.BoxPlotSeries){let h=Qt(t.uid,"bulletTemplate");h&&os(h,l?.selectionTheme),Cu(h,e?.outliers?.length),o5({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:o}),nh(a)&&oh({styleCallback:()=>h5(a),series:t,seriesConfig:i})}}function c5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.BoxPlotSeries){let c=n5({chartConfig:r,seriesConfig:h});u=qt.new(t,{id:`${h.id}_${ji.Outliers}`,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.strokes.template.set("forceHidden",!0);let d=Dt.new({});Kr(u.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:d}),os(d,n?.selectionTheme),u.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return u&&To({element:p,series:u,queryObject:o,errorStrings:l}),g5({outlierSeries:u,bullet:f,seriesConfigId:h.id}),f}),u.appear()}return u}function d5(a){let{chartConfig:t,seriesConfig:e,type:i}=a,r="";switch(i){case ji.Top:r=Zt.Max;break;case ji.Median:r=Zt.Median;break;case ji.Bottom:r=Zt.Min;break}return qv({chartConfig:t,seriesConfig:e,key:r})}function A5(a){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function p5(a){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:s,chartSubType:n,rendererType:o}=a;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=o1({data:e.dataItems,colorMatch:s,chartSubType:n,rendererType:o}),u=(i.fillSymbol??Gm(r)).color,c={type:Rt.SLS,width:Z.boxPlot.boxPlotLineWidth,color:h?Z.boxPlot.boxPlotWhiskersColor:u};Ja({root:l,seriesIndex:r,seriesSymbol:c,element:t,colorMatch:s})}}function f5(a){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}=a,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(xi(t,l),nh(a)&&oh({styleCallback:()=>p5(a),series:t,seriesConfig:i}),A5({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}))}function JC(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,type:n,options:o,queryObject:l,errorStrings:h}=a,u=r.series[s],c;if(u.type===V.BoxPlotSeries){let d=d5({chartConfig:r,seriesConfig:u,type:n});c=Bo.new(t,{id:`${u.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[d.dataFields.value]:d.properties.value,[d.dataFields.category]:d.properties.category}),os(c.strokes.template,o?.selectionTheme),To({element:c.strokes.template,series:c,queryObject:l,errorStrings:h})}return c}function qv(a){let{chartConfig:t,seriesConfig:e,key:i}=a,r=cs(t),s=t.showOutliers,n=t.standardizeValues,o=oa(t),l=It(t.series),{x:h,y:u}=e,c=o?void 0:e?.query?.where,d={y:l===ke.BoxPlotMultiFieldsAndCategory&&typeof u=="string"?u:void 0,chartSubType:l,splitBy:c,showOutliers:s,standardizeValues:md(l)?n:!1},A=l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy?Wm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:Zi({key:i,...d}),category:A}}}function m5(a,t){return a.series.values.find(e=>a5(e,t))}function g$(a,t){let e=a.series.values.find(s=>s.get("id")===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.get("id")===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.get("id")===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function y$(a){return a!==ke.BoxPlotMonoField&&a!==ke.BoxPlotMultiFields&&a!==ke.BoxPlotMonoFieldAndCategory}function v$(a){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=a,r,s,n=fe(t.uid,"config");if(n){let o=cs(n),l=oa(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),u=h?.get("cellStartLocation"),c=h?.get("cellEndLocation");if(u&&c){let d=u/(l?1:n.series.length);r=u+e/i*(c-u)+d,s=u+(e+1)/i*(c-u)-d}}return{startLocation:r,endLocation:s}}function g5(a){let{outlierSeries:t,bullet:e,seriesConfigId:i}=a;if(t){let{chart:r}=t;if(r){let s=fe(r.uid,"config");if(s){let n=It(s.series);if(y$(n)){let o=r.series.values.filter(h=>h instanceof La),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:u}=v$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&u!==void 0&&e.set("locationX",(h+u)/2)}}}}}}function y5(a){let t=fe(a.uid,"config");if(t){let e=It(t.series),i=t.series.length,r=cs(t)?a.yAxes.getIndex(0)?.get("renderer"):a.xAxes.getIndex(0)?.get("renderer"),s=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(s&&n){let o=a.series.values.filter(l=>l instanceof La);o.forEach((l,h)=>{let{topStepLineSeries:u,medianStepLineSeries:c,bottomStepLineSeries:d}=g$(a,l.get("id")??"");if(y$(e)){let{startLocation:A,endLocation:p}=v$({chart:a,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[u,c,d].forEach(f=>{f!==void 0&&(f.set("stepWidth",Bt(60/i)),A&&p&&f.set("locationX",(A+p)/2))})}else[u,c,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function v5(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries)[e5(a),JC({...a,type:ji.Top}),JC({...a,type:ji.Median}),JC({...a,type:ji.Bottom}),c5(a)].forEach(n=>{n&&s.push(n)});else if(r===V.LineSeries){let n=s5(a);n&&s.push(n)}return s}function b5(a){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=a;if(t&&e)if(y5(t),i instanceof La&&r.type===V.BoxPlotSeries){i.set("id",r.id);let s=i.get("id")??"";JG({...a,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=g$(t,s),h=[ji.Top,ji.Median,ji.Bottom];[n,o,l].forEach((c,d)=>{c&&(c.set("id",`${r.id}_${h[d]}`),f5({...a,stepLineSeries:c}))});let u=m5(t,s);u&&(u.set("id",`${r.id}_${ji.Outliers}`),u5({...a,outlierSeries:u}))}else i instanceof qt&&r.type===V.LineSeries&&r5({...a,meanLineSeries:i})}function x5(a){vk(a)}function uB(a){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=a,r=e?jC:Ec;return t&&(r=e?HC:i?NC:VC),r}function _5(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0)break}return n}function C5(a){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t.root,l=_5({series:t,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:n});return Ja({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Zb(i),element:t,colorMatch:s,rendererSymbol:l,visible:e.visible}).symbolWithColorInfo}function w5(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n}=a,o=!1,l,h=Qt(t.uid,"bulletTemplate");if(h!==void 0){xi(t.bulletsContainer,r.markerVisible!==!1&&r.visible!==!1);let{markerSymbol:u}=r;u===void 0&&(u=Kb(),u.color=n),s?u.color=n:u.color??=n;let c=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s});c?.outline&&(u.outline??=c.outline,u.outline.color=c.outline.color),dk({element:h,markerSymbol:u});let d=new Set,A;t.dataItems.forEach(p=>{let f=p.bullets?.[0]?.get("sprite");if(f!==void 0){let m=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s}),g=Ja({root:t.root,seriesIndex:e,seriesSymbol:u,element:f,colorMatch:s,rendererSymbol:m});l=g.symbolWithColorInfo,A=g.stylingInfo,gA(f,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function B5(a,t){if(a.showArea===!0){let{color:e,opacity:i}=a.areaColor?zt(a.areaColor):{color:t.get("stroke"),opacity:Z.lineSeries.areaOpacity};t.set("fill",e),t.fills.template.set("fillOpacity",i)}t.fills.template.set("visible",a.showArea===!0)}function b$(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:u}=a,{chart:c,root:d}=t;if(c){let A=t instanceof pl;xi(t,e.visible);let p=uB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:u});t.set("curveFactory",p);let f=C5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,rendererType:n}),m=w5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,lineColor:f.color});B5(e,t),xi(t,e.visible),xi(t.bulletsContainer,e.markerVisible!==!1&&e.visible!==!1),h.set(l?.get(e.id)??i,{lineSymbol:f,markerSymbol:m}),h.size===r&&(nn({data:Fr(h),htmlContainer:d.dom,chartId:t.chart?.get("id"),colorMatchApplied:DA(c)}),h.clear())}}function S5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=s,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,s),f=qt.new(t,{id:h,name:u,xAxis:i,yAxis:r,[A]:c,[p]:d,maskBullets:!1,curveFactory:uB({isRadarLineSeries:!1,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:Z.zIndexes.lineSeries});f.appear();let m=Dt.new({});return os(m,n?.selectionTheme),Kr(f.uid,{bulletTemplate:m}),f.bullets.push(g=>{let y=ft.new(g,{role:Z.aria.defaultChartItemRole,ariaLabel:ap(),hoverOnFocus:!0,tooltip:Kf({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:Z.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),Jk(y,f),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",Z.lineJoin),nB(f),PA(f,e),f}function F5(a){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:u}=a,c=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&c.type===V.LineSeries&&(o===!0||s===!0||l===!0||h||n===!0||u===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=FA(r,c);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function T5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let u=fe(h.uid,"config"),c=fe(h.uid,"isRotated")??!1,d=It(u?.series);b$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:c})}}function P5(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.set("connect",e!==!1&&r!==Wb.Null)}function D5(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:u,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p}=a,f=i.series[s],m=i.rotated;t.set("id",f.id),xi(t,f.visible),xi(t.bulletsContainer,f.markerVisible!==!1&&f.visible);let g=Qt(t.uid,"bulletTemplate");g&&os(g,r?.selectionTheme),Cu(g,e?.dataItems?.length),sB({series:t,chartConfig:i,isRotated:m}),x5({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:m,dataLabelsConfig:f.dataLabels,externalDataLabelFormatter:r?.dataLabelFormatter}),P5(t,f),F5({lineSeries:t,seriesIndex:s,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:u,stackedTypeChanged:p,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:A}),qw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),nh(a)&&oh({styleCallback:()=>T5(a),series:t,seriesConfig:f}),aB({chartConfig:i,series:t,seriesIndex:s,queryObject:o})}function x$(a,t){let e=a.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";Qf({label:e,labelOutputProp:i});let r=(s,n)=>{let o=s??"",l=Qt(a.uid,"pieChartDataLabelFormatter");if(l){let h=n.dataItem;if(h){let u=h?.get("valuePercentTotal"),c=h?.get("value"),d=h?.get("category")??s??"";o=l(d,c,u)}}return i==="html"?Er(o):o};e.adapters.add(i,(s,n)=>r(s,n)),a.labels.each(s=>{s.adapters.remove("text"),s.adapters.remove("html"),Qf({label:s,labelOutputProp:i}),s.adapters.add(i,n=>r(n,s))})}function L5(a){let t=a.dataItem?.component,e;if(t instanceof Vr){let i=fe(t.chart?.uid??Number.NaN,"config");if(i?.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??Z.pieChart.dataLabelsInside,s=zt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??zt(Z.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??pt.options.autoInverseDataLabelTextColor,l=a.dataItem?.dataContext?.[pt.pieChart.technicalFieldSliceId],h=t.slices.values.find(c=>(c.dataItem?.dataContext)[pt.pieChart.technicalFieldSliceId]===l)?.get("fill")??zt(i.series[0].fillSymbol?.color).color,u=s??a.text.get("fill");e=u,u&&h&&o&&r&&(e=mk({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function I5(a,t){let e=a.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:Z.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:Z.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:He,centerY:He}),x$(a,t),e.adapters.add("fill",(i,r,s)=>L5(r))}function k5(a,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:u,dataLabelsCharacterLimit:c}=t,{chart:d}=a,A;if(d){let p=Kw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??Z.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??Z.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:u}),f=ig(c),m=Ra(fe(a.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=s??Z.pieChart.displayCategoryOnDataLabel?f(g):"",F=zi(S)?"":`${S}${m}`;return F=`${F}${w}`,t.dataLabels?.content!==void 0&&(F=xa({textSymbol:{...t.dataLabels.content,text:F},format:"amChartsV5",defaults:{...Z.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??Z.pieChart.dataLabels.wrap}})),F}}return A}function $5(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??Z.pieChart.dataLabelsOffset,n=e.dataLabelsInside??Z.pieChart.dataLabelsInside;x$(t,i),Kr(t.uid,{pieChartDataLabelFormatter:i??k5(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...Z.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??Z.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??Z.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!r?.visible,breakWords:h?!1:void 0,textAlign:o?"right":"left"});let u=t.labels.template.get("radius"),c=t.labels.template.get("baseRadius");n&&c!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),s!==void 0&&Number.isFinite(s)&&u!==s&&t.labels.template.set("radius",s))}var ew;function O5(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??ZA({color:jm});i&&(r.width=0),Fo({element:a.ticks.template,lineSymbol:r,visible:!i})}function E5(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=a;t.slices.each((r,s)=>{let n=r.dataItem?.dataContext,o=ww({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});xu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:s,isChartFillSymbol:!0})})}function M5(a,t){let e=new Map(a.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function R5(a){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:s,seriesWereReinitialized:n,labelUpdateNeeded:o,groupOfSlicesUpdateNeeded:l}=a,{x:h,y:u}=i,c=It([i]),d=c===ke.PieFromFields?ao:h;if(e&&(r===!0||n===!0||s===!0||l===!0))t.setAll({categoryField:d,valueField:c===ke.PieFromFields?Uu:u}),t.data.setAll(e.dataItems);else if(e&&o){let A=t.dataItems,p=A.map(m=>m.dataContext),f=M5(p,e.dataItems);A.forEach((m,g)=>{let y=f[g];if(typeof y[d]=="string"){let x=y[d];m.set("category",x);let w=m.dataContext;w&&(w[d]=x)}}),t.markDirty()}}function U5(a,t){let{innerRadius:e}=t;a.set("innerRadius",e?Bt(e):0)}function V5(a,t){let{startAngle:e,endAngle:i}=t;a.setAll({startAngle:e??Z.pieChart.min,endAngle:i??360+(a.get("startAngle")??0)})}function N5(a){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:s,errorStrings:n}=a,{id:o,name:l,x:h,y:u}=e,c=It([e]),d=Vr.new(t,{id:o,name:l,categoryField:c===ke.PieFromFields?ao:h,valueField:c===ke.PieFromFields?Uu:u});return I5(d,i?.dataLabelFormatter),Zw(d,i?.tooltipFormatter),d.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),os(d.slices.template,i?.selectionTheme),To({element:d.slices.template,series:d,queryObject:s,errorStrings:n}),d.appear(),r instanceof Vs&&_$(r,d),d}function Q5(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,options:o,labelUpdateNeeded:l,utilsStrings:h,groupOfSlicesUpdateNeeded:u}=a,{dataLabelFormatter:c,tooltipFormatter:d}=o??{};t.set("id",e.id),xi(t,e.visible),os(t.slices.template,o?.selectionTheme),R5({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:u}),nh(a)&&oh({styleCallback:()=>E5(a),series:t,seriesConfig:e}),$5({pieSeries:t,seriesConfig:e,dataLabelFormatter:c}),U5(t,e),V5(t,e),O5(t,e),U4({series:t,seriesConfig:e,tooltipFormatter:d});let{chart:A}=t;A instanceof Vs&&_$(A,t)}function _$(a,t){if(!a.isDisposed()){let e=a.radius();Gr(a.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(a.uid,"pieChartRadius")??Z.pieChart.chartOptimizedRadius),s=r,n=a.series?.values?.[0]??t,o=fe(a.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:u,alignDataLabels:c,dataLabelsOffset:d=Z.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&c===!0&&u===!0&&p!==!0){let f=Z.pieChart.chartOptimizedRadius/100,m=500,g=150,y=.6,x=.5,w=1,S=a.seriesContainer.width()-d*2,F=Math.max(S-g,0)/(m-g),T=F<1?Math.max(F**w*y,.4):Math.min(F**x*y,f);s=Bt(T*100)}else s=Bt(Z.pieChart.chartRadius);r.value.toFixed(1)!==s.value.toFixed(1)&&(Gr(a.uid,{pieChartRadius:s.percent}),ew&&clearTimeout(ew),ew=bu(()=>{let f=a.chartContainer.height();if(a.chartContainer.set("height",f+.1),a.set("radius",s),h&&!Number.isNaN(h)&&h>0){let m=(h??Z.pieChart.innerRadius)*s.value;a.set("innerRadius",Bt(m))}a.markDirty(),n.markDirty(),a.root.resize(),H5(a)})),n instanceof Vr&&n.labels.template.setAll({maxWidth:j5({seriesConfig:o?.series[0],chart:a,newChartRadius:s})})}return s};a.events.onDebounced(Ji.BoundsChanged,()=>i(),Z.debounceTime),i()}}function H5(a){bu(()=>{a.chartContainer.set("height",Bt(100)),a.root.resize()})}function j5(a){let{seriesConfig:t,chart:e,newChartRadius:i}=a,r=Z.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:s,dataLabelsOffset:n=Z.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&s===!0&&h!==!0&&o===!0){let u=e.seriesContainer.width(),c=e.seriesContainer.height(),d=i.value*Math.min(u,c),A=5,p=Math.floor((u-d)/2)-A-n;r=Math.min(p,r-A);let f=Z.pieChartDataLabel.minWidth;r<f&&(r=f)}}return r}function W5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=s,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,s),f=pl.new(t,{id:h,name:u,xAxis:i,yAxis:r,[A]:c,[p]:d,curveFactory:uB({isRadarLineSeries:!0,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:Z.zIndexes.lineSeries});f.appear();let m=Dt.new({});return Kr(f.uid,{bulletTemplate:m}),os(m,n?.selectionTheme),f.bullets.push(g=>{let y=ft.new(g,{tooltip:Kf({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:Z.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",Z.lineJoin),nB(f),PA(f,e),f}function X5(a){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l}=a,h=r.series[i];if(e!==void 0&&h?.type===V.RadarSeries&&(s||l||n||o)){let{xField:u,yField:c,xAxisField:d,yAxisField:A}=FA(r,h);t.setAll({[d]:u,[A]:c}),t.data.setAll(e.dataItems)}}function z5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let u=fe(h.uid,"config"),c=fe(h.uid,"isRotated")??!1,d=It(u?.series);b$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:c})}}function G5(a){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:s,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:u,queryObject:c,utilsStrings:d}=a,A=r.series[n];t.set("id",A.id),xi(t,A.visible),xi(t.bulletsContainer,A.markerVisible!==!1&&A.visible);let p=Qt(t.uid,"bulletTemplate");p&&os(p,s?.selectionTheme),Cu(p,e?.dataItems?.length),sB({series:t,chartConfig:r,isRotated:!1}),qw({series:t,seriesConfig:A,fieldList:u,queryObject:c,seriesIndex:n,tooltipFormatter:s?.tooltipFormatter,utilsStrings:d}),nh(a)&&oh({styleCallback:()=>z5(a),series:t,seriesConfig:A}),aB({chartConfig:r,series:t,seriesIndex:n,queryObject:c}),X5({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i})}function cB(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:s,errorStrings:n}=a,{rotated:o}=e,{root:l}=t,h=ze(e.series);t.series.clear();let u={root:l,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:s,errorStrings:n},c=[];for(let d=0;d<e.series.length;d+=1){let A=e.series[d],{assignToSecondValueAxis:p,type:f}=A,m=t instanceof bi?Cz({chart:t,chartType:h,rotated:o,assignToSecondValueAxis:p}):void 0,{xAxis:g,xAxisForHistogramOverlaySeries:y,yAxis:x}=m??{};switch(!0){case f===V.HeatSeries:{io(s),g&&x&&c.push(iX({...u,queryObject:s,xAxis:g,yAxis:x}));break}case h===V.BoxPlotSeries:{g&&x&&Dl(e)&&c.push(...v5({...u,xAxis:g,yAxis:x,seriesIndex:d,seriesConfig:e.series[d],chartConfig:e}));break}case f===V.HistogramSeries:{g&&x&&c.push(...hz({...u,seriesConfig:A,xAxis:g,xAxisForOverlaySeries:y,yAxis:x}));break}case f===V.PieSeries:{c.push(N5({...u,seriesConfig:A}));break}case(h===V.ComboLineAndBarSeries||h===V.BarSeries||h===V.LineSeries):{g&&x&&(f===V.BarSeries?c.push(WG({...u,seriesConfig:A,xAxis:g,yAxis:x})):f===V.LineSeries&&c.push(S5({...u,seriesConfig:A,xAxis:g,yAxis:x})));break}case f===V.RadarSeries:{g&&x&&c.push(W5({...u,seriesConfig:A,xAxis:g,yAxis:x}));break}case f===V.ScatterSeries:{g&&x&&c.push(...WX({...u,seriesConfig:A,xAxis:g,yAxis:x}));break}}}c.forEach(d=>{d instanceof ga&&d.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(c)}function Jv(a){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:s,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:u,stackedTypeChanged:c,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:f,queryObject:m,utilsStrings:g,errorStrings:y,groupOfSlicesUpdateNeeded:x,labelUpdateNeeded:w}=a,{chartRenderer:S}=e,{root:F}=t,{series:T}=e,L=ze(e.series),O=It(e.series),I=t.series.values,U=Fl(e),P=e.series.length,Q=new Map,Y=_a(m,i?.popupTemplateFieldInfosEnabled),G=Os(m),ee=xs(G)?void 0:sg(S,G.renderer),te=l||n||o||h||c,le={root:F,chartConfig:e,queryObject:m,options:i,colorMatch:U,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:Y,rendererType:ee,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:g,chartSubType:O,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??Z.options.autoInverseDataLabelTextColor},z={...le,numberOfSeries:P,rotationChanged:h,colorMatchChanged:u,stackedTypeChanged:c,seriesStyleChanged:d,seriesIndexMapper:s,seriesSymbolMapForEvent:Q,timeZoneChanged:A};for(let K=0;K<T.length;K++){let we=T[K],se=I[K],de=we.type;switch(!0){case L===V.HeatSeries:{se instanceof Li&&t instanceof bi&&so(e)&&nX({...z,series:se,data:r,seriesConfig:e.series[K],chartConfig:e});break}case L===V.BoxPlotSeries:{se=I.find($e=>$e.get("id")===we.id),t instanceof bi&&Dl(e)&&(se instanceof La||se instanceof qt)&&(de===V.BoxPlotSeries||de===V.LineSeries)&&b5({...z,chart:t,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e,showMean:oa(e),showOutliers:Eo(e)});break}case de===V.HistogramSeries:{se instanceof Li&&t instanceof bi&&vT(r)&&Az({...z,series:se,allChartSeries:I,data:r,seriesIndex:K,seriesConfig:we,axes:e.axes});break}case de===V.PieSeries:{se instanceof Vr&&t instanceof Vs&&mg(r)&&Q5({...le,series:se,seriesConfig:we,data:r,pieSlicesSymbols:f,groupOfSlicesUpdateNeeded:x,seriesStyleChanged:d,colorMatchChanged:u,labelUpdateNeeded:w});break}case(L===V.ComboLineAndBarSeries||L===V.BarSeries||L===V.LineSeries):t instanceof bi&&mg(r)&&(de===V.BarSeries&&se instanceof Li?YG({...z,series:se,data:r,seriesIndex:K}):de===V.LineSeries&&se instanceof qt&&D5({...z,series:se,seriesIndex:K,seriesConfig:we,data:r}));break;case de===V.ScatterSeries:{se=QX(t);let $e=Wk(t);se instanceof qt&&$e instanceof qt&&bT(r)&&YX({...z,series:se,seriesConfig:we,trendLineSeries:$e,sizePolicyChanged:p,data:r});break}case de===V.RadarSeries:{se instanceof pl&&t instanceof Da&&mg(r)&&G5({...z,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e});break}}te&&L&&se&&q4({chartType:L,series:se,tooltipFormatter:i?.tooltipFormatter})}xz({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:m,errorStrings:y})}function Y5(a){ah(a)||a.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=yl(i.uid,"selected")!==!0;ra({element:i,selected:r})}})}function K5(a){a.columns.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}function Z5(a){a.slices.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}async function q5(a){let{chart:t,queryObject:e,errorStrings:i}=a;if(Ww(t)){let r=fe(t.uid,"actionMode");r!==Ut.MonoSelection&&r!==Ut.None&&(t.series.each(s=>{switch(!0){case s instanceof Li:K5(s);break;case s instanceof qt:Y5(s);break;case s instanceof Vr:Z5(s);break}}),await rB({chart:t,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}))}}function J5(a,t){let e=!1,i=a.series,r=t.series,s=ze(r),n=(c,d)=>c.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let f=A;p.push(f.fillSymbol),f.slices?.forEach(m=>{p.push(m.fillSymbol)}),f.sliceGrouping&&p.push(f.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;s===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!rn(o,l),u=!1;switch(s){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:u=r.filter(c=>c.type===V.LineSeries||c.type===V.RadarSeries).some(c=>{let d=i.find(A=>A.id===c.id);return(c.showArea??Z.lineSeries.showArea)!==(d?.showArea??Z.lineSeries.showArea)||(c.lineSmoothed??Z.lineSeries.lineSmoothed)!==(d?.lineSmoothed??Z.lineSeries.lineSmoothed)||(c.markerVisible??Z.lineSeries.markerVisible)!==(d?.markerVisible??Z.lineSeries.markerVisible)||c.showArea&&!rn(c.areaColor,d?.areaColor)});break}return e=h||u,e}function eY(){Z_(XW)}function tY(a){a.dispose()}function iY(a){let{chart:t,chartContainer:e,chartLocale:i}=a,{root:r}=t,{t9nLocale:s}=Iu(e??document.documentElement),n=fd(e??document.documentElement);r.locale=i,Gr(t.uid,{locale:s,formatLocale:n,rtl:Vm(e??document.documentElement)==="rtl"})}function vw(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(Ww(t)){let r=e??fe(t.uid,"actionMode")??Z.actionMode;Gr(t.uid,{actionMode:r}),r===Ut.None&&Zc({chart:t,selectionSource:Tr.ClearSelection}),EG({chart:t,actionMode:r,cursorRange:i})}}function rY(a){return Ta.rootElements.find(t=>t.dom===a)?.dispose(),Dc.new(a)}function sY(a,t){a.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=Da;break;case V.PieSeries:i=Vs;break;default:i=bi;break}return a.container.children.push(i.new(a,{id:`${t?.id}`,layout:a.verticalLayout,paddingBottom:Z.chartPadding,paddingTop:Z.chartPadding,paddingRight:Z.chartPadding,paddingLeft:Z.chartPadding}))}function aY(a){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:s,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:u,queryObject:c,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f}=a;Jv({chart:t,chartConfig:e,options:u,data:i,dataWasUpdated:r,sortChanged:s,queryObject:c,pieSlicesSymbols:h,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:DA(t)})}function nY(a){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:s,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:u,queryObject:c,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:f,heatChartHideEmptyRowsAndColumnsChanged:m,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,utilsStrings:F,errorStrings:T,gaugeMinMaxFromData:L}=a,{axisLabelsBehaviorChanged:O}=a,I=$z({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:O,timeIntervalInfoWasReset:x}),U=I||wz({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:f});I&&(o$({chart:t,chartConfig:e,errorStrings:T}),O=[!0,!0]),U&&(t.series.clear(),cB({chart:t,chartConfig:e,options:u,utilsStrings:F,queryObject:c,errorStrings:T}),t.gridContainer?.toBack?.()),l$({chart:t,chartConfig:e,queryObject:c,data:i,dataWasUpdated:s,axesInitializationNeeded:I,heatChartHideEmptyRowsAndColumnsChanged:m,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:O,anyGuideAboveChanged:r,xAxisLabelFormatter:u?.xAxisLabelFormatter,yAxisLabelFormatter:u?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:u?.secondaryYAxisLabelFormatter,guideTooltipFormatter:u?.guideTooltipFormatter,gaugeInnerLabelFormatter:u?.gaugeInnerLabelFormatter,utilsStrings:F,errorStrings:T,gaugeMinMaxFromData:L}),Jv({chart:t,chartConfig:e,options:u,data:i,dataWasUpdated:s,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:U,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:c,utilsStrings:F,errorStrings:T}),ze(e.series)===V.HeatSeries&&Pk(t),m$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}function oY(a){let{chart:t,legend:e,updateProps:i,gaugeMinMaxFromData:r}=a,{chartConfig:s,options:n,dataWasUpdated:o,dataUpdateDetails:l,hasSeriesFilteredOut:h,pieSlicesSymbols:u,colorMatchApplied:c,rendererFieldNames:d,configWithAllSeries:A,t9nStrings:p,queryObject:f,dataInfo:m}=i,{data:g}=m,{utilsStrings:y,errorStrings:x}=p,{root:w}=t,{popupTemplateFieldInfosEnabled:S}=n??{};if(s===void 0)throw new Error;let F=fe(t.uid,"config");if(t.isDisposed()||!vx(F,s))throw new Tl(Ad.ChartDisposed);F??=s,Gr(t.uid,{queryObject:f});let T=It(s.series),L=cs(s);Gr(t.uid,{config:Fr(s),options:n,isNonAggregatedChart:!sp(T),isRotated:L,filterBySelection:n?.filterBySelection,colorMatchApplied:c,rendererFieldNames:d});let O=_a(f,S),I=NF(F,s),U=px(F,s),P=cx(F,s),Q=IF(F,s),Y=J5(F,s),G=JSON.stringify(qA(F.series))!==JSON.stringify(qA(s.series)),ee=tg(F,s),te=jF(F,s),le=Ax(F,s),z=WF(F,s),K=XF(F,s),we=ip({oldConfig:h?A:F,newConfig:s,dataWasUpdated:o}),se=!1,de=!1,$e=!1,Ye=!1;so(F)&&so(s)&&(se=EF(F,s),de=$F(F,s),$e=kF(F,s)||OF(F,s)||se,Ye=LF(F,s));let We=ax({oldConfig:F,newConfig:s,rotationChanged:U}),qe=F.series,Tt=s.series;if(o){let{queryConfig:R,count:Be}=m??{};Gr(t.uid,{fieldList:O,queryConfig:R,elementCount:Be,timeIntervalInfo:g!==void 0&&"timeIntervalInfo"in g?g.timeIntervalInfo:void 0})}t instanceof ms&&qW({chartSeries:t.series,oldSeries:qe,newSeries:Tt});let At=t instanceof Vs?Cw(qe,Tt):!1,_i=dx({oldConfig:F,newConfig:s}),Bi=new Map;switch((A??s).series.forEach((R,Be)=>{Bi.set(R.id,Be)}),h$(t,s.background),A$(t,{title:s.title,subtitle:s.subtitle}),p$(t,s.footer),d$({root:w,chart:t,cursorCrosshair:s.cursorCrosshair,config:s,queryObject:f,errorStrings:x}),ze(s.series)){case V.PieSeries:{t instanceof Vs&&(io(f),aY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,slicesConfigChangedSinceLastUpdate:_i,pieSlicesSymbols:u,chartRendererChanged:ee,sortChanged:we,queryObject:f,colorMatchChanged:P,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:At,seriesStyleChanged:Y}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof bi&&nY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,seriesIndexMapper:Bi,dataUpdateDetails:l,seriesFilteredOut:h,heatChartHideEmptyRowsAndColumnsChanged:Ye,sortChanged:we,axisLabelsBehaviorChanged:We,anyGuideAboveChanged:I,rotationChanged:U,colorMatchChanged:P,stackedTypeChanged:Q,seriesStyleChanged:Y,seriesCompositionChanged:G,timeZoneChanged:te,timeIntervalInfoWasReset:le,sizePolicyChanged:z,sizePolicyChangesRequireSeriesReinit:K,queryObject:f,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:r});break}t instanceof ms&&jk({chart:t,chartConfig:s,legend:e,showEmptySeries:n?.showEmptySeries??n?.hideEmptySeries===!1,seriesConfig:s.series,heatChartLegendUpdatedNeeded:$e,heatRulesTypeChanged:se,heatLegendPositionChanged:de,queryObject:f}),vw({chart:t,actionMode:n?.actionMode,cursorRange:n?.cursorRange}),sk({chart:t,chartConfig:s,delayCallback:o})}function lY(a){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:s,queryObject:n,utilsStrings:o,errorStrings:l}=a;cB({chart:t,chartConfig:i,options:s,utilsStrings:o,queryObject:n,errorStrings:l}),Jv({chart:t,chartConfig:i,options:s,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,utilsStrings:o,errorStrings:l}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:DA(t)})}function hY(a){let{chart:t,data:e,chartConfig:i,options:r,queryObject:s,seriesIndexMapper:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a;f$(t),m$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),o$({chart:t,chartConfig:i,errorStrings:l}),l$({chart:t,chartConfig:i,queryObject:s,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}),cB({chart:t,chartConfig:i,options:r,utilsStrings:o,queryObject:s,errorStrings:l}),t.gridContainer?.toBack?.(),Jv({chart:t,chartConfig:i,seriesIndexMapper:n,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:s,utilsStrings:o,errorStrings:l}),ze(i.series)===V.HeatSeries&&Pk(t)}function uY(a){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:s,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:u}=a,{errorStrings:c,utilsStrings:d,amChartsStrings:A}=l,{data:p,queryConfig:f,count:m,gaugeMinMaxFromData:g={}}=u??{};eY();let y=rY(t);s4(y,o?.animationEnabled),r4(y,o?.enableResponsiveFeatures);let x=sY(y,e);iY({chart:x,chartContainer:t,chartLocale:A});let w;if(!x.isDisposed()){let F=It(e.series),T=cs(e);Gr(x.uid,{options:i,filterBySelection:i?.filterBySelection,config:e,queryObject:h,isNonAggregatedChart:!sp(F),isRotated:T,colorMatchApplied:r,rendererFieldNames:s}),c$({root:y,chart:x,config:e,queryObject:h,errorStrings:c}),d$({root:y,chart:x,cursorCrosshair:e.cursorCrosshair,config:e,queryObject:h,errorStrings:c});let{title:L,subtitle:O,footer:I}=e;RG(y,x),A$(x,{title:L,subtitle:O}),UG(x),p$(x,I),kG(y,x),h$(x,e.background);let U=_a(h,i?.popupTemplateFieldInfosEnabled);Gr(x.uid,{fieldList:U}),Gr(x.uid,{options:i,queryConfig:f,elementCount:m,timeIntervalInfo:p!==void 0&&"timeIntervalInfo"in p?p.timeIntervalInfo:void 0});let P=new Map;e.series.forEach((Q,Y)=>{P.set(Q.id,Y)}),Gr(x.uid,{queryConfig:f,elementCount:m}),x instanceof bi?hY({chart:x,data:p,chartConfig:e,options:i,queryObject:h,utilsStrings:d,errorStrings:c,gaugeMinMaxFromData:g}):x instanceof Vs&&p&&"dataItems"in p&&(io(h),lY({chart:x,data:p,chartConfig:e,pieSlicesSymbols:n,options:i,queryObject:h,utilsStrings:d,errorStrings:c})),x instanceof ms&&(w=bI(x,e),jk({chart:x,chartConfig:e,legend:w,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:e.series,queryObject:h})),vw({chart:x,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),ZX(x),sk({chart:x,chartConfig:e,delayCallback:!0})}function S(){Gz(x)}return{update:F=>{w===void 0&&(w=bI(x,F.chartConfig)),oY({chart:x,legend:w,updateProps:F,gaugeMinMaxFromData:g})},dispose:()=>tY(y),resetZoom:S,clearSelection:()=>Zc({chart:x}),switchSelection:async()=>await q5({chart:x,queryObject:h,errorStrings:l.errorStrings}),exportImage:async F=>await C4({root:y,exportOptions:F}),setActionMode:(F,T)=>vw({chart:x,actionMode:F,cursorRange:T})}}function MI(a){let t="";for(let i=0;i<a.length;i+=1){let r=a[i];if(r.message&&r.message.trim()!==""){let s=a.length>1?"li":"p";t+=`<${s}>${r.message}</${s}>`}}let e=a.length>1?"ol":"div";return`<${e}>${t}</${e}>`}function cY(a){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=a,{schemaErrors:s,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):s.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=MI(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${MI(o)}`),{title:h,message:l}}function dY(a,t){let e;switch(a){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function $f(a){let t;if(a){let e=ik(a);e&&(t=[e.r,e.g,e.b,255])}return t}function AY(a,t){let e=window.getComputedStyle(a);return{backgroundColor:$f(e.getPropertyValue(t.background)),textColor:$f(e.getPropertyValue(t.text)),lineColor:$f(e.getPropertyValue(t.line)),secondaryLineColor:$f(e.getPropertyValue(t.secondaryLine)),spinnerColor:$f(e.getPropertyValue(t.spinner))}}function pY(a){let{config:t,themeColors:e}=a,i=Mu().toString();t?.axes?.forEach(r=>{e.textColor&&(r?.title?.content&&(!r.title.content.color||r.title.content.color.toString()===i)&&(r.title.content.color=e.textColor),r?.labels?.content&&(!r.labels.content.color||r.labels.content.color.toString()===i)&&(r.labels.content.color=e.textColor));let s=Mu();s[3]=Gb,r?.grid&&e.secondaryLineColor&&(!r.grid.color||r.grid.color.toString()===s.toString())&&(r.grid.color=e.secondaryLineColor,r.grid.color[3]=Gb),r?.lineSymbol&&e.lineColor&&(!r.lineSymbol.color||r.lineSymbol.color.toString()===dF.toString())&&(r.lineSymbol.color=e.lineColor),r?.guides?.forEach(n=>{n.label&&e.textColor&&(!n.label.color||n.label.color.toString()===i)&&(n.label.color=e.textColor),e.lineColor&&(n.style?.type===Rt.SLS&&(!n.style.color||n.style.color.toString()===zx.style.color?.toString())?n.style.color=e.lineColor:n.style?.type===Rt.SFS&&n.style?.outline&&(!n.style.outline.color||n.style.outline.color.toString()===zx.style.color?.toString())&&(n.style.outline.color=e.lineColor))})})}function fY(a){let{config:t,themeColors:e}=a;t&&e.backgroundColor&&(!t.background||t.background.toString()===mF().toString())&&(t.background=e.backgroundColor)}function mY(a){let{config:t,themeColors:e}=a,i=Mu().toString();e.textColor&&(t?.title?.content&&(!t.title.content.color||t.title.content.color.toString()===i)&&(t.title.content.color=e.textColor),t?.subtitle?.content&&(!t.subtitle.content.color||t.subtitle.content.color.toString()===i)&&(t.subtitle.content.color=e.textColor),t?.footer?.content&&(!t.footer.content.color||t.footer.content.color.toString()===i)&&(t.footer.content.color=e.textColor))}function gY(a){let{config:t,themeColors:e}=a;t&&e.textColor&&t.series.forEach(i=>{i.dataLabels?.content&&(!i.dataLabels.content.color||i.dataLabels.content.color.toString()===Mu().toString())&&(i.dataLabels.content.color=e.textColor)})}function yY(a){let{config:t,themeColors:e}=a,i=t?.series[0];i?.type===V.PieSeries&&i.ticks?.lineSymbol&&e.secondaryLineColor&&(!i.ticks.lineSymbol.color||i.ticks.lineSymbol.color.toString()===jm.toString())&&(i.ticks.lineSymbol.color=e.secondaryLineColor)}function vY(a){let{config:t,themeColors:e}=a,i=Mu().toString();t?.legend&&e.textColor&&(t.legend.title?.content&&(!t.legend.title.content.color||t.legend.title.content.color.toString()===i)&&(t.legend.title.content.color=e.textColor),t.legend.body&&(!t.legend.body.color||t.legend.body.color.toString()===i)&&(t.legend.body.color=e.textColor))}function bY(a){let{config:t,themeColors:e}=a;if(vd(t)&&e.textColor){let i=Mu().toString();t.axes?.forEach(r=>{r.innerLabel?.content&&(!r.innerLabel.content.color||r.innerLabel.content.color.toString()===i)&&(r.innerLabel.content.color=e.textColor),r.needle?.symbol&&(!r.needle.symbol.color||r.needle.symbol.color.toString()===i)&&(r.needle.symbol.color=e.textColor)})}}function xY(a){let{config:t,themeColors:e}=a;so(t)&&e.lineColor&&t.series.forEach(i=>{i.gridLine&&!i.gridLine.color&&(i.gridLine.color=e.lineColor)})}function _Y(a,t){let e=Fr(a),i={config:e,themeColors:t};return fY(i),mY(i),pY(i),gY(i),vY(i),bY(i),yY(i),xY(i),e}function CY(){return!0}function wY(a){let{layer:t}=a,e,i=Os(t),r=Jm(i);return r!==void 0&&"definitionExpression"in r&&a.layerFilterChangePolicy===Ox.Refresh&&(e=Ia.watch(()=>r.definitionExpression,()=>{a.refresh({updateData:!0,resetAxesBounds:!0})})),e}function BY(a){let{layer:t}=a,e;if(t){let i=Os(t);e=Ia.watch(()=>i.renderer,()=>{let{model:r}=a,s=Ro(r)?r.config:r;if(Fl(s)&&a.layerRendererChangePolicy===Ex.Refresh){let n=CY();a.refresh({updateData:n})}})}return e}async function SY(a){let{view:t,layer:e,model:i,filterByExtent:r,filterByViewExtent:s}=a,n=Ro(i)?i.config:i,o;if(t&&n){let l=await xx({chartConfig:n,view:t,layer:e,filterByViewExtent:r||s}),h;if(bh(l)?h=l:xs(l)&&(h=await t.whenLayerView(l)),h){await Ia.whenOnce(()=>!h.updating);let u=async()=>{(a.filterByExtent||a.filterByViewExtent)&&t.stationary&&(h.updating&&await Ia.whenOnce(()=>!h.updating),await a.refresh({updateData:!0,resetAxesBounds:!0}))};o=[],bh(h)?(o.push(Ia.when(()=>t.stationary,u)),o.push(Ia.when(()=>!h.dataUpdating,u))):o.push(Ia.when(()=>t.stationary,u)),await u()}}return o}function FY(a){let{view:t}=a,e;return t&&(e=Ia.watch(()=>t.timeExtent,()=>{let{model:i}=a,r=Ro(i)?i.config:i,s=ze(r?.series);(a.viewTimeExtentChangePolicy===Rx.Refresh||a.syncViewTimeExtent)&&s!==V.HistogramSeries&&a.refresh({updateData:!0})})),e}function xv(a){let{syncViewTimeZone:t,syncViewTimeZoneInclusionList:e,chartConfig:i}=a,r=ze(i?.series);return(t||(r&&e.includes(r))===!0)&&(so(i)||_h(i?.series[0])&&i.axes?.[0].valueFormat?.type===V.DateAxisFormat)}function TY(a){let{view:t,syncViewTimeZone:e,syncViewTimeZoneInclusionList:i}=a,r;return t&&"timeZone"in t&&(r=Ia.watch(()=>t.timeZone,()=>{let{model:s}=a,n=Ro(s)?s.config:s;xv({syncViewTimeZone:e,syncViewTimeZoneInclusionList:i,chartConfig:n})&&(a.timeZone=t.timeZone,a.refresh({updateData:!0}))})),r}function PY(a){let{layer:t}=a,e,i=Os(t),r=Jm(i);return r!==void 0&&"fields"in r&&(e=Ia.watch(()=>[r.fields],()=>{a.layerFieldsChangePolicy===Mx.Refresh&&a.refresh({updateData:!0})})),e}function C$(a,t){return Ia.watch(()=>t.selections,e=>{(a.syncViewSelection||a.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)&&(Array.isArray(e)&&e?.length===0?a.clearSelection():a.applySelectionFromSelectionManager())})}function DY(a){let{view:t}=a,e;return t?.selectionManager&&(e=C$(a,t.selectionManager)),e}function LY(a){let{selectionManager:t}=a,e;return t&&(e=C$(a,t)),e}async function IY(a){let t=lF(`assets/common/t9n/messages.${a}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function kY(a=Iu(document.documentElement).t9nLocale){let t=(await import("./H6G4K2SI.js")).default;switch(a){case"ar":t=(await import("./C32DLPO2.js")).default;break;case"bs":t=(await import("./ZGRLFOVN.js")).default;break;case"bg":t=(await import("./2MVU33EQ.js")).default;break;case"ca":t=(await import("./K7M5S6GY.js")).default;break;case"cs":t=(await import("./W5WI6CWC.js")).default;break;case"da":t=(await import("./A2SOXYD7.js")).default;break;case"de":t=(await import("./5WSLX3X6.js")).default;break;case"el":t=(await import("./INFEECC2.js")).default;break;case"es":t=(await import("./ANEY3G3T.js")).default;break;case"et":t=(await import("./UJ7GGLFA.js")).default;break;case"fi":t=(await import("./577EV2JF.js")).default;break;case"fr":t=(await import("./U7L3L6IV.js")).default;break;case"he":t=(await import("./XTWWNXCJ.js")).default;break;case"hr":t=(await import("./RRDNOR24.js")).default;break;case"hu":t=(await import("./SWQ7K4X5.js")).default;break;case"id":t=(await import("./FW27X6ZH.js")).default;break;case"it":t=(await import("./AGJRXDBI.js")).default;break;case"ja":t=(await import("./OLBJGP5C.js")).default;break;case"ko":t=(await import("./43SJZXD3.js")).default;break;case"lt":t=(await import("./PI6HSSQL.js")).default;break;case"lv":t=(await import("./VHOYFIGY.js")).default;break;case"no":t=(await import("./X5TUHBXH.js")).default;break;case"nl":t=(await import("./KSNCOD3U.js")).default;break;case"pl":t=(await import("./BHNYXBUZ.js")).default;break;case"pt-BR":t=(await import("./4VMTBYLY.js")).default;break;case"pt-PT":t=(await import("./2JPFAFHJ.js")).default;break;case"ro":t=(await import("./WQRZ7LGV.js")).default;break;case"ru":t=(await import("./RKXV44WI.js")).default;break;case"sr":t=(await import("./B3HEXSCX.js")).default;break;case"sk":t=(await import("./DF2JGSK4.js")).default;break;case"sv":t=(await import("./NXRLNLM4.js")).default;break;case"th":t=(await import("./WMSU5OWP.js")).default;break;case"tr":t=(await import("./MIVV22F3.js")).default;break;case"uk":t=(await import("./GBCL3LR7.js")).default;break;case"vi":t=(await import("./YZTAP3PR.js")).default;break;case"zh-CN":t=(await import("./PF6HSS3J.js")).default;break;case"zh-HK":t=(await import("./Z5L2GNFQ.js")).default;break;case"zh-TW":t=(await import("./Z5L2GNFQ.js")).default;break}return t}async function $Y(a=Iu(document.documentElement).t9nLocale){let t=(await import("./4RZOR2GZ.js")).default;switch(a){case"ar":t=(await import("./WXLU5XAQ.js")).default;break;case"bs":t=(await import("./7GXB5ABV.js")).default;break;case"bg":t=(await import("./A4O5PTH7.js")).default;break;case"ca":t=(await import("./DTU5F26A.js")).default;break;case"cs":t=(await import("./75WJAOD5.js")).default;break;case"da":t=(await import("./XLHC66GD.js")).default;break;case"de":t=(await import("./3S33OYZS.js")).default;break;case"el":t=(await import("./BR7YHHRO.js")).default;break;case"es":t=(await import("./4NXQY2SY.js")).default;break;case"et":t=(await import("./U6BD2QQW.js")).default;break;case"fi":t=(await import("./NF4ADSMI.js")).default;break;case"fr":t=(await import("./JUUAJRZL.js")).default;break;case"he":t=(await import("./JHXWK5HY.js")).default;break;case"hr":t=(await import("./SEV3K4MK.js")).default;break;case"hu":t=(await import("./ZYBUK2GC.js")).default;break;case"id":t=(await import("./HM7TTHYN.js")).default;break;case"it":t=(await import("./5VCKTFEN.js")).default;break;case"ja":t=(await import("./7S4C7DMD.js")).default;break;case"ko":t=(await import("./N4ZIPC6C.js")).default;break;case"lt":t=(await import("./G626QVCR.js")).default;break;case"lv":t=(await import("./D63ZM4I6.js")).default;break;case"no":t=(await import("./FCE53PT5.js")).default;break;case"nl":t=(await import("./6SLYYVAM.js")).default;break;case"pl":t=(await import("./5S37PAVK.js")).default;break;case"pt-BR":t=(await import("./GBLD6EF5.js")).default;break;case"pt-PT":t=(await import("./XQL5X2VK.js")).default;break;case"ro":t=(await import("./QSAYNOYT.js")).default;break;case"ru":t=(await import("./LZTVRB5K.js")).default;break;case"sr":t=(await import("./DGYDZT63.js")).default;break;case"sk":t=(await import("./BXOAEW3W.js")).default;break;case"sl":t=(await import("./Y4YDLI6O.js")).default;break;case"sv":t=(await import("./YIK7I32W.js")).default;break;case"th":t=(await import("./76OQVFII.js")).default;break;case"tr":t=(await import("./CS6SBRT6.js")).default;break;case"uk":t=(await import("./4CEOP4CL.js")).default;break;case"vi":t=(await import("./47SEEPGM.js")).default;break;case"zh-CN":t=(await import("./27Y4YBZ7.js")).default;break;case"zh-HK":t=(await import("./A52S6LGL.js")).default;break;case"zh-TW":t=(await import("./A52S6LGL.js")).default;break}return t}async function OY(a=Iu(document.documentElement).t9nLocale,t){let e=t?await $Y(a):await kY(a),i=(await IY(a)).customAmchartsStrings;return{...e,...i}}var EY=({message:a,heading:t,options:e})=>ud`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?ud`<div slot=title>${t}</div>`:null}${a!==void 0?ud`<div slot=message>${a}</div>`:null}</calcite-alert>`,MY=iF`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`,bw=class extends nF{constructor(){super(),this.loaderHandle={showLoader:()=>{this.showLoader=!this.hideLoaderAnimation},hideLoader:()=>{this.showLoader=!1}},this._messages=Hx(),this.chartRef=aF(),this.dataFetchRequestId=0,this.commonStrings=Hx({name:"common",blocking:!0}),this.updateQueue=RI.promise(async t=>await this.renderChart(t.changes),YF),this._rotated=!1,this._legendVisibility=!1,this._filterByExtent=!1,this._filterByViewExtent=!1,this.noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage","disableInteractions","interactionsDisabled"],this.handleExternalSelection=t=>{if(!xs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,s=this.layer&&r?.layer?.id===Qu(this.layer).id;(this.syncSelection||this.syncChartsSelection)&&s&&t.target!==this.el&&!rn(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}},this.configPanelNumberChange=t=>{let e=t,{panelNumber:i,modelList:r}=e.detail;this.actionBarElement&&(this.enableConfiguration||this.configurationEnabled)&&this.ourModelExistsIn(r)&&(this.actionBarElement.editChartToggle=i===1?$x.Active:$x.Inactive)},this.configDataChangeError=t=>{let e=t,{error:i,model:r}=e.detail;(this.enableConfiguration||this.configurationEnabled)&&r?.isSameChartAs(this._model)&&this.notify(i.message)},this.modelConfigChange=t=>{let e=t;this.lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!rn(this.config?.iLayer,i?.iLayer)&&(this.layer=new WL(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=Fr(i))},this.modelDataChange=()=>{this.setTimeBinningInfoWhenNotProvided&&RT(this._model)&&this._model?.resetTimeInterval()},this.actionBarSlotRef=t=>{this.actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0},this.checkForInvalidContainer=()=>{this.chartRef.value||Zm("divNode",this.commonStrings?.errorStrings)},this._loadQueryObject=new In(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent,this.filterByViewExtent],task:async([t,e,i,r,s],{signal:n})=>{let o=await xx({chartConfig:t,layer:e,view:i,filterByViewExtent:r||s,abortSignal:n});if(o){let l=Os(o);await og(l,n)}return o},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._loadFeatureLayerView=new In(this,{args:()=>[this._loadQueryObject.value],task:async([t],{signal:e})=>bh(t)?await Ia.whenOnce(()=>!t.updating,{signal:e}):!1,onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._setLayerFromLayerItemId=new In(this,{args:()=>[this.layerItemId,this.view,this.chartIndex],task:async([t,e])=>{if(t&&t.trim()!==""&&!_x({view:e,portalItemId:t})){let i=await SN.fromPortalItem({portalItem:new FN({id:t})});(wF(i)||xs(i))&&(this.layer=i,await this.createModelFromLayer(this.chartIndex))}},onComplete:async()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._checkIfDataUpdateIsNeeded=new In(this,{args:()=>{let t=[this.forceDataUpdateTick,this.runtimeDataFilters,this.returnFeaturesExtent,this.chartLimits,this.updateSplitBySeries];return[this.chart,this.config,this.usePopupTemplateFieldsInfo,this.layer,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.chartLimits,this._loadQueryObject.value,...t]},task:([t,e,i,r,s,n,o,l,h])=>{if(h){let u=t===void 0,c=_a(h,i),d=this.lastRenderedProps?.chartConfig,A=this.lastRenderedProps?.options?.selectionData?.selectionOIDs,p=this.lastRenderedProps?.dataUpdateNeededProps,f=this.lastRenderedProps?.extraProps?.layer,m=this.lastRenderedProps?.extraProps?.filterBySelection,g=u,y;p&&Object.keys(p).forEach(w=>{let S=p?p[w]:void 0,F=this[w];g=g||!rn(S,F)});let x=bh(f)!==bh(r);if(g=g||x,y={common:{layerChanged:x}},e&&d){let w=zF({previousConfig:d,newConfig:e,previousFilterBySelection:m,previousSelectionOIDs:A,fieldList:c,queryObject:h,filterBySelection:s,selectionData:n,setTimeBinningInfoWhenNotProvided:o,chartLimits:l});y={...y,...w.dataUpdateDetails},g=g||w.dataUpdateNeeded}return{dataUpdateNeeded:g,dataUpdateDetails:y}}else return this._checkIfDataUpdateIsNeeded.value??{dataUpdateNeeded:!1,dataUpdateDetails:void 0}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._prepareConfigForRendering=new In(this,{args:()=>[this.config,this.chart,this.updateSplitBySeries,this.updateSplitBySeries?.addMissingSeries,this.runtimeDataFilters,this.view,this.viewTimeExtentChangePolicy,this.syncViewTimeExtent,this.ignoreViewExtent,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.commonStrings?.errorStrings,this._loadQueryObject.value,this._checkIfDataUpdateIsNeeded.value?.dataUpdateNeeded],task:async([t,e,i,r,s,n,o,l,h,u,c,d,A,p,f],{signal:m})=>{let g=e===void 0,y=this.layer!==this.lastRenderedProps?.extraProps?.layer,x=this.filterByExtent!==this.lastRenderedProps?.extraProps?.filterByExtent||this.filterByViewExtent!==this.lastRenderedProps?.extraProps?.filterByViewExtent,w=r===!0&&(g||f||y||x),S=Qx({runtimeDataFilters:s,view:n,viewTimeExtentChangePolicy:o,syncViewTimeExtent:l}),{alteredConfig:F,preFetchedQueryResponse:T}=await PT({configToAlter:t,updateSplitBySeries:i,addMissingSeries:w,chartContainer:this.el,queryObject:p,layer:this.layer,abortSignal:m,runtimeDataFilters:S,ignoreViewExtent:h,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:c,chartLimits:d,errorStrings:A});return JSON.stringify(this._alteredConfig)!==JSON.stringify(F)&&(this._alteredConfig=F,this.model&&F&&!Ro(this.model)&&(this.model.series=F.series)),T},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._isChartSupportedByDataSource=new In(this,{args:()=>[this.config,this.layer],task:async([t,e],{signal:i})=>await TT({config:t,layer:e,abortSignal:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._validateWebChart=new In(this,{args:()=>[this._alteredConfig,this.gatherComponentOptions().allowUsingObjectIdStat,this.commonStrings?.errorStrings,this._loadQueryObject.value],task:async([t,e,i,r])=>await Ix({input:t,queryObject:r,allowUsingObjectIdStat:e,errorStrings:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._getData=new In(this,{args:()=>[this._alteredConfig,this.unsanitizedSelectionDataItems,this.commonStrings?.errorStrings,this.usePopupTemplateFieldsInfo,this.popupTemplateFieldInfosEnabled,this.runtimeDataFilters,this.ignoreViewExtent,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.hideZeroCountCategories,this.replaceNoValueCategoryWithZero,this.view,this.filterByExtent||this.filterByViewExtent,this.syncViewTimeZone,this.syncViewTimeZoneInclusionList,this._loadQueryObject.value,this._prepareConfigForRendering.value,this._checkIfDataUpdateIsNeeded.value],task:async([t,e,i,r,s,n,o,l,h,u,c,d,A,p,f,m,g,y,x,w,S],{signal:F})=>{let T,{dataUpdateNeeded:L,dataUpdateDetails:O}=S??{};if(L&&t&&x&&!wh(t)){let I=_a(x,r||s),U=xv({syncViewTimeZone:g,syncViewTimeZoneInclusionList:y,chartConfig:t});this.loaderHandle.showLoader(),T=await cT({chartConfig:t,preFetchedQueryResponse:w,queryObject:x,runtimeDataFilters:n,ignoreViewExtent:o,filterBySelection:l,selectionData:h,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:c,chartLimits:d,popupTemplateFieldInfosEnabled:s,hideZeroCountCategories:A,replaceNoValueCategoryWithZero:p,view:f,filterByViewExtent:m,syncViewTimeZone:U,fieldList:I,currentSelectionDataItems:e,dataForFilterBySelectionChanged:O?.common?.dataForFilterBySelectionChanged,errorStrings:i,abortSignal:F}),Wx(this._model)&&NT(VT,T.data)}return{dataInfo:T,dataWasUpdated:!!T}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this.forceDataUpdateTick=0,this.taskCompletionTick=0,this.showLoader=!1,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.configurationEnabled=!1,this.calciteThemingCSSVariables={background:"--calcite-color-foreground-1",text:"--calcite-color-text-1",line:"--calcite-color-border-1",secondaryLine:"--calcite-color-text-3",spinner:"--calcite-color-brand-hover"},this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.disableInteractions=!1,this.interactionsDisabled=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=hp.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.syncViewTimeZoneInclusionList=[V.HeatSeries],this.syncViewTimeZone=!1,this.layerFilterChangePolicy=Ox.Refresh,this.viewTimeExtentChangePolicy=Rx.Ignore,this.syncViewTimeExtent=!1,this.layerRendererChangePolicy=Ex.Refresh,this.layerFieldsChangePolicy=Mx.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=yd.Disabled,this.syncViewSelection=!1,this.syncSelection=!1,this.syncChartsSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=zs(),this.arcgisBadDataWarningRaise=zs(),this.arcgisChartNotFoundWarning=zs(),this.arcgisConfigChange=zs(),this.arcgisDataFetchComplete=zs(),this.arcgisDataProcessComplete=zs(),this.arcgisDataProcessError=zs(),this.arcgisInvalidConfigWarningRaise=zs(),this.arcgisLegendItemVisibilityChange=zs(),this.arcgisNoRenderPropChange=zs(),this.arcgisRenderingComplete=zs(),this.arcgisRuntimeError=zs(),this.arcgisSelectionComplete=zs(),this.arcgisSeriesColorChange=zs(),this.arcgisSeriesOrder=zs(),this.arcgisUpdateComplete=zs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this.handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this.handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this.handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this.handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this.handleTooManySelectedElements),this.listen("calciteAlertClose",this.handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this.handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this.handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this.handleRenderingComplete),this.addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this.handleExternalSelection)}static{this.properties={_alteredConfig:16,forceDataUpdateTick:16,taskCompletionTick:16,infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,configurationEnabled:5,calciteThemingCSSVariables:0,rotation:[5,{hasChanged:()=>!1}],rotated:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],filterByViewExtent:[5,{hasChanged:()=>!1}],disableInteractions:5,interactionsDisabled:5,queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,animationEnabled:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:0,tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,togglingLegendItemsDisabled:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,syncViewTimeZoneInclusionList:0,syncViewTimeZone:5,popupTemplateFieldInfosEnabled:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,syncViewTimeExtent:5,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,syncSelection:5,syncChartsSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=MY}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&PF(e,t)&&this.forceDataUpdateTick++,this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this.lastModelSetterCalled}),this.lastModelSetterCalled=void 0,this.actionBarElement&&!wh(t)&&(this.actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotated}set rotation(t){this.rotated=t}get rotated(){return this._rotated}set rotated(t){this.rotatedChange(t),this.handleNoRenderPropChange("rotated",t),this._rotated=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this.legendPositionChange(t),this.handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this.legendVisibilityChange(t),this.handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this.viewChange(t,e),this.handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this.filterByViewExtentChanged(t),this.handleNoRenderPropChange("filterByExtent",t)}get filterByViewExtent(){return this._filterByViewExtent}set filterByViewExtent(t){this._filterByViewExtent=t,this.filterByViewExtentChanged(t),this.handleNoRenderPropChange("filterByViewExtent",t)}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this.featureIndexChange(t,e),this.handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}async clearSelection(){this.chart!==void 0&&(this.unsanitizedSelectionDataItems=void 0,this.chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this.chart?.dispose()}async errorAlert(t){this.errorPolicy===hp.Throw&&(this.actionBarElement&&(this.actionBarElement.forceDisableActions=!0),this.notify(t,this.commonStrings?.errorStrings.errorHeading))}async exportAsCSV(t){let e,i,r={xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter};if(this.sanitizedChartData){let s=await this._loadQueryObject.taskComplete,n=s?_a(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled):void 0,o=this._model?.config??this.config,l=this.processedChartData??this.sanitizedChartData,h=await nT(Os(s)),u=o?.chartRenderer?ZF(o.chartRenderer):[],c=[...new Set([...h,...u])],d=Hu(o,c),A=Ro(this.model)?this.model.titleText:this.config?.title?.content?.text??this.commonStrings.utilsStrings.chartType.chart;if(Object.values(l).filter(p=>Array.isArray(p)&&p.length>0).length>1){let p=new VI.default;Object.entries(l).forEach(([m,g])=>{if(Array.isArray(g)&&g.length>0){let y=Nx({rawData:g,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this.commonStrings.utilsStrings}),x=Vx(y,t),w=`${A}-${m}.csv`;p.file(w,x)}});let f=await p.generateAsync({type:"blob"});e=URL.createObjectURL(f),i=`${A}.zip`}else{let p;if("bins"in l?p=l.bins:"dataItems"in l&&(p=l.dataItems),p){let f=Nx({rawData:p,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this.commonStrings.utilsStrings}),m=Vx(f,t);e=URL.createObjectURL(new Blob([m],{type:"text/csv;charset=utf-8;"})),i=`${A}.csv`}}e!==void 0&&i!==void 0&&Xx(e,i)}}async exportAsImage(t=KF.PNG){let e=this.chartRef.value;e?(await(0,UI.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),s=`${this.model.titleText??this.commonStrings.utilsStrings.chartType.chart}.${t}`;Xx(r,s)}},t):this.notify(this.commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this.resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this.infoModalHeading=e,this.loaderHandle.hideLoader()}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};e&&this.forceDataUpdateTick++,i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this.chart!==void 0&&this.chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this.chart!==void 0&&!this.filterBySelection&&t&&await this.chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this.modelChange(),t.has("selectionData")&&!rn(t.get("selectionData")?.selectionOIDs,this.selectionData?.selectionOIDs)&&this.selectionDataChange(),t.has("layer")&&this.layerChange(),t.has("timeZone")&&this.timeZoneChange(),t.has("filterBySelection")&&t.get("filterBySelection")!==void 0&&this.filterBySelectionChanged(),t.has("selectionManager")&&(this.setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager())}updated(t){Array.from(t.keys()).filter(e=>!this.noRenderingUpdateProps.includes(e)).length>0&&!this.isAnyTaskPending()&&this.updatedAsync(t),this.actionBarElement!==void 0&&HT({actionBar:this.actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0}),t.has("aria")&&this.aria&&this.chartRef.value&&(this.chartRef.value.ariaLabel=this.aria.label??this.chartRef.value.ariaLabel,this.chartRef.value.ariaDescription=this.aria.description??this.chartRef.value.ariaDescription,this.chartRef.value.ariaLabelledByElements=this.aria.labelledByElements??this.chartRef.value.ariaLabelledByElements,this.chartRef.value.ariaDescribedByElements=this.aria.describedByElements??this.chartRef.value.ariaDescribedByElements)}disconnectedCallback(){super.disconnectedCallback(),this.removeLayerWatchHandlers(),this.removeViewExtentChangeWatchHandlers(),this.removeViewWatchHandlers(),this.removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this.chart?.dispose()}handleRuntimeError(t){if(t instanceof Tl&&t.name===Ad.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Tl&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Tl?t.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(e,this.commonStrings?.errorStrings.errorHeading)}}synchronizeModelConfig(){this._config&&(Ro(this.model)?this.model.config=Fr(this._config):JSON.stringify(this._config)!==JSON.stringify(this.model)&&(this.model=Fr(this._config)))}isAnyTaskPending(){return[this._loadQueryObject,this._loadFeatureLayerView,this._setLayerFromLayerItemId,this._checkIfDataUpdateIsNeeded,this._prepareConfigForRendering,this._isChartSupportedByDataSource,this._validateWebChart,this._getData].some(t=>t.status===Gx.PENDING)}hideInfoModal(){this.infoModalMessage=void 0}async generateHeatChartClassBreaks(t){if(!xs(this.layer)&&Wx(this._model)&&t?.data&&"dataItems"in t.data){let e=await _T({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,colorRampName:this._model.colorRampName,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos,isColorRampFlipped:this._model.isColorRampFlipped});CT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:xr.valueField})}}async updatedAsync(t){if(this.config!==void 0&&this.chart!==void 0)try{(!this.config&&!this.layer||kx(this.config,this.layer)&&!wh(this.config)&&await this._isChartSupportedByDataSource.taskComplete)&&await this.updateQueue?.push({changes:t})}catch(e){this.chartRef.value!==void 0&&(e instanceof Tl&&e.name===Ad.ChartDisposed?(this.chart?.dispose(),this.chart=void 0,this.chartRef.value.innerHTML="",await this.createChartInstance(t,!1)):this.handleRuntimeError(e))}else this.chart===void 0&&await this.createChartInstance(t);this.placeholder!==void 0?await this.notify(this.placeholder):(this.enableConfiguration||this.configurationEnabled)&&wh(this.config)&&this.applyPlaceholderForPartialConfig(this.config)}useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}applySelectionFromSelectionManager(){let t=this.getSelectionFromSelectionManager();t&&!rn(t,this.selectionData?.selectionOIDs)&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}applySelectionFromView(){this.applySelectionFromSelectionManager()}handleLegendItemVisibilityChanged(t){sx(t,this.config),sx(t,this._alteredConfig),this.synchronizeModelConfig(),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}handleUpdateCompleted(t){if(this.enableConfiguration||this.configurationEnabled){let e=this.commonStrings?.errorStrings.notifications;if(this.placeholder===void 0)if(t.schemaErrors.length>0&&!wh(this.config))this.notify(e?.invalidConfig,void 0);else if(t.customErrors.length>0&&!wh(this.config)){let i=t.customErrors.find(r=>r.keyword===Ad.LayerFieldsNotFound);if(xs(this.layer)&&i){let r=Vc(e?.invalidConfigForRaster??"",{errorMessage:i.message});this.notify(r,e?.invalidConfigTitle)}else this.notify(e?.invalidConfig,void 0)}else t.warnings.length>0&&t.warnings.some(i=>i.keyword===eT.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields);if((OT(this._model)||ET(this._model)||jx(this._model)||MT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Qu(this.layer),r=Ch(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&this.loaderHandle.hideLoader(),this.arcgisUpdateComplete.emit(t)}handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}handleSelection(t){let e={...t.detail};this.unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=Fr(e.selectionItems);r&&(r=mT(r,this.config?.series),r=r.map(gT),r=fT(r,this.config?.series),i.selectionItems=r),rn(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}handleTooManySelectedElements(){this.errorPolicy===hp.Throw&&(this.infoModalHeading=this.commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this.commonStrings?.errorStrings.tooManySelectedElements?.message,this.notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}handleAlertClosed(t){t.target===this.el&&(this.notifyHeading=void 0,this.notifyMessage=void 0)}handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}modelChange(){if(Ro(this.model)){this._model=this.model,this.config=Fr(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this.addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this.resolveModelSetup=="function"&&this.resolveModelSetup()})}else this.config=this.model;if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}selectionDataChange(){this.layer!==void 0&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)&&this.view!==void 0&&this.setSelectionInSelectionManager()}async viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=_x({view:this.view,portalItemId:this.layerItemId})??new WL({portalItem:{id:this.layerItemId}})),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this.setViewSelectionsChangeWatchHandler():this.removeViewSelectionsChangeWatchHandler()}async layerChange(){this.addLayerWatchHandlers(),this.layer&&(await og(Qu(this.layer)),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler())}featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.forceDataUpdateTick++}rotatedChange(t){t!==void 0&&(this.config=ST(t,this._config),this.synchronizeModelConfig())}legendPositionChange(t){t!==void 0&&(this.config=wT(t,this._config),this.synchronizeModelConfig())}legendVisibilityChange(t){t!==void 0&&(this.config=BT(t,this._config),this.synchronizeModelConfig())}timeZoneChange(){this.updateConfigTimeZone(this.timeZone)}filterBySelectionChanged(){this.config=FT(this._config),this.synchronizeModelConfig()}async filterByViewExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this.setViewExtentChangeWatchHandler(t):this.removeViewExtentChangeWatchHandlers()}addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this.configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this.configDataChangeError)}getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!xs(this.layer)){let e=Qu(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!xs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Tr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Qu(this.layer),e)}}addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this.modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this.modelDataChange)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=wY(this),this.layerRendererWatchHandler=BY(this),this.layerFieldsWatchHandler=PY(this)}async setViewExtentChangeWatchHandler(t){(t??(this.filterByExtent||this.filterByViewExtent))&&(this.removeViewExtentChangeWatchHandlers(),this.viewExtentChangeWatchHandlers=await SY(this))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=TY(this)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=FY(this)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=DY(this)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=LY(this)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeViewExtentChangeWatchHandlers(){this.viewExtentChangeWatchHandlers?.forEach(t=>t.remove()),this.viewExtentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.runtimeDataFilters?.timeExtent&&delete this.runtimeDataFilters.timeExtent}async createModelFromLayer(t){if(this.layer){let e=Qu(this.layer);await og(e);let i=t??0,r="charts"in e?e?.charts?.[i]:void 0;if(r)this.model=await UT({layer:e,config:r,commonStrings:this.commonStrings});else{let s=Vc(this._messages?.chartNotFoundWarning??"",{chartIndex:i.toString(),layerTitle:e.title});this.arcgisChartNotFoundWarning.emit(s),sF("warn",this,s)}}}applyPlaceholderForPartialConfig(t){let e=jx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=dY(e,this.commonStrings?.errorStrings);this.notify(i)}checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===hp.Throw&&BF(t).versionStatus===uF.Newer&&(this.notifyHeading=this.commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this.commonStrings?.errorStrings.incompatibleChartVersion?.message?Vc(this.commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this.notifyOptions={kind:"warning",autoClose:!0,active:!0})}ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}updateConfigTimeZone(t){if(this._config){let e={...this._config};$T(t,e),this.config=e,this.synchronizeModelConfig()}}gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart,animationEnabled:this.animationEnabled||this.useAnimatedCharts}}addMutationObserverForCalciteTheme(){hF(this.el,["class"],()=>{let t=Qb(this.el);t!==this.calciteThemeApplied&&(this.calciteThemeApplied=t,this.refresh({updateData:!1}))})}gatherComponentOptions(t=!0){let e=Qx({runtimeDataFilters:this.runtimeDataFilters,view:this.view,viewTimeExtentChangePolicy:this.viewTimeExtentChangePolicy,syncViewTimeExtent:this.syncViewTimeExtent}),i=this.filterByExtent||this.filterByViewExtent,r,s=Ro(this.model)?this.model.config:this.model;if(xs(this.layer))r=i?this.view:void 0;else{let n=ze(s?.series);r=i||n!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:r,viewExtentUpdated:t&&i&&(this.view!==void 0||bh(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,runtimeDataFilters:e,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:xs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter,syncViewTimeZone:xv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:s}),interactionsDisabled:this.interactionsDisabled||this.disableInteractions,togglingLegendItemsDisabled:this.togglingLegendItemsDisabled||this.disableTogglingLegendItems,popupTemplateFieldInfosEnabled:this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled}}raiseLogScaleNotCompatibleWarning(t){let e=!0;return this.config?.axes?.forEach((i,r)=>{Ag({chartConfig:this.config,axisConfigIndex:r,chartData:Ln(t?.data??this.sanitizedChartData)})||(e=!1,this.raiseInvalidDataWarning(r===0?Ll.NegativeValueInXAxisLogScale:Ll.NegativeValueInYAxisLogScale))}),e}raiseNoDataWarning(t,e){let i=!1;if(t?.data){let r=Ln(t.data),s=Ll.EmptyDataSet;AT({chartConfig:e,nullAsValid:this.nullAsValid,dataSet:r})&&(vd(this.config)&&ju(this.config)&&t.count&&t.count>0&&(s=Ll.NoValue),i=!0,this.raiseInvalidDataWarning(s,t.count))}return i}raiseInvalidDataWarning(t,e){let i=this.layer,r=this.gatherComponentOptions(),s=this.config!==void 0&&eg({seriesConfig:this.config.series[0],xAxisValueFormatType:_F(this.config),queryObject:i}),n=vd(this.config)&&ju(this.config),o=lT({invalidType:t,elementCount:e,seriesCount:this.config?.series?.length,chartLimits:r?.chartLimits,filterBySelection:r?.filterBySelection,queryObject:i,formatLocale:fd(this.el),isTemporalChart:s,isGaugeChartByFeature:n,errorStrings:this.commonStrings?.errorStrings});(o.keyword!==Ll.EmptyDataSet||this.infoModalMessage===void 0||o.keyword===Ll.EmptyDataSet&&n)&&(this.arcgisBadDataWarningRaise.emit(o),this.notify(o.message,o.header))}processInvalidConfigStatus(t,e){if(this.enableConfiguration||this.configurationEnabled)this.handleUpdateCompleted(t);else{this.loaderHandle.hideLoader();let{title:i,message:r}=cY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this.commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ll.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async createChartInstance(t,e=!0){if(this.config)try{this.addMutationObserverForCalciteTheme(),await this.renderChart(t),e&&this.chart&&(this.addLayerWatchHandlers(),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),this.setViewSelectionsChangeWatchHandler(),this.setSelectionManagerChangeWatchHandler())}catch(i){this.handleRuntimeError(i),this.chart?.dispose(),this.chart=void 0}}notifyDataProcessComplete(t){if(t&&this._config){let e=pg({data:t,seriesConfig:this._config.series});e&&(this.sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=Fr(t);e.dataItems=JN(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async renderChart(t){if(wh(this.config))this.applyPlaceholderForPartialConfig(this.config);else if(this.config){let e=this.chart===void 0;if(e||t.size>0){if(this.checkForInvalidContainer(),e){let r=this.view&&"timeZone"in this.view&&this.view.timeZone?this.view.timeZone:void 0;(this.timeZone||xv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:this._config})&&r)&&this.updateConfigTimeZone(this.timeZone??r),this.checkForIncompatibleChartVersion()}let i=await this._loadQueryObject.taskComplete;if(i){let r=this.gatherComponentOptions(),s=_a(i,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled),n=await this._checkIfDataUpdateIsNeeded.taskComplete,{dataUpdateDetails:o}=n,l=n.dataUpdateNeeded;l&&!e&&this.hideInfoModal();let h=this._alteredConfig?{...this._alteredConfig}:void 0,u=this.lastRenderedProps?.chartConfig;if(o?.common&&u?.series&&h?.series&&(o.common.numberOfSeriesChanged=DF(u.series,h.series)),!h&&!this.layer||kx(h,this.layer)&&await this._isChartSupportedByDataSource.taskComplete){let c=await this._validateWebChart.taskComplete;if(!c.valid)this.processInvalidConfigStatus(c,h);else if(h){await this._loadFeatureLayerView.taskComplete;let d=++this.dataFetchRequestId,A=await this._getData.taskComplete,p=A.dataInfo??{valid:!0,data:this.processedChartData??this.sanitizedChartData},f=A.dataWasUpdated;if(ze(h.series)===V.PieSeries){let m=YL({creation:e,previousConfig:u,newConfig:h,dataInfo:p,dataUpdateNeeded:f,utilsStrings:this.commonStrings.utilsStrings});f=f||m}if(!p.valid)this.raiseInvalidDataWarning(p.invalidType,p.count);else{if(ze(h.series)===V.PieSeries){let y=YL({creation:e,previousConfig:u,newConfig:h,dataInfo:p,dataUpdateNeeded:f,utilsStrings:this.commonStrings.utilsStrings});f=f||y}let m,g=Fr(h);if({filteredConfig:h,seriesFilteredOut:m}=DT({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:h,data:p?.data}),d===this.dataFetchRequestId&&!this.raiseNoDataWarning(p,h)&&this.raiseLogScaleNotCompatibleWarning(p)){let y=ip({oldConfig:m?g:u,newConfig:h,dataWasUpdated:f});y&&hT({alteredConfig:h,dataInfo:p,fieldList:s,options:r,queryObject:i}),tg(u,h)&&(f=!0);let x=Dl(h)?h.showMean:void 0,w=p?.data??this.sanitizedChartData,S=w&&x&&"meanLines"in w?w.meanLines:Ln(w);S&&(e||f)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await Sx({data:S,queryObject:i,chartConfig:h,allowColorMatch:gx({chartConfig:h,queryObject:i})})),this.calciteThemeColors&&(h=_Y(h,this.calciteThemeColors),this.calciteThemeApplied=Qb(this.el));let F=!1,T;if(h.series[0].type===V.PieSeries){let O=Ln(this.processedChartData),I=Ln(p.data);F=KI(O,I),T=YI({creation:e,dataInfo:p,pieChartDataActuallyChanged:F,chartConfig:h,previousConfig:u,queryObject:i,popupTemplateFieldInfosEnabled:r?.usePopupTemplateFieldsInfo||r?.popupTemplateFieldInfosEnabled,utilsStrings:this.commonStrings.utilsStrings})}let L=await zN({creation:e,dataInfo:p,pieChartDataActuallyChanged:F,chartConfig:h,previousConfig:u,pieSlicesSymbols:T,queryObject:i,options:r,utilsStrings:this.commonStrings?.utilsStrings});if(L?.changesApplied&&(c=await Ix({input:L?.alteredConfig,queryObject:i,allowUsingObjectIdStat:r?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings}),c.valid&&(h=L?.alteredConfig,T=L.alteredPieSlicesSymbols,this._colorMatchApplied=L.colorMatchApplied,this._rendererFieldNames=L.rendererFieldNames)),h.series[0].type===V.PieSeries&&p.data&&"dataItems"in p.data&&tQ({data:p.data.dataItems,newChartConfig:h,pieSlicesSymbols:T,fieldList:s}),this.processedChartData=Fr(p.data),!c.valid)this.processInvalidConfigStatus(c,h);else{if((l||y)&&(this.notifyDataProcessComplete(p.data),this.notifyDataFetchComplete(p.data)),!this.filterBySelection&&!xs(i)){let Q=this.lastRenderedProps?.options?.selectionData,Y=!rn(Q?.selectionOIDs,this.selectionData?.selectionOIDs),G=await yT({chartConfig:h,chartData:this.processedChartData,dataWasUpdated:l,queryObject:i,selectionData:r?.selectionData,replaceNoValueCategoryWithZero:r?.replaceNoValueCategoryWithZero,hideZeroCountCategories:r?.hideZeroCountCategories,chartLimits:r?.chartLimits,setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,returnFeaturesExtent:r?.returnFeaturesExtent,popupTemplateFieldInfosEnabled:r?.popupTemplateFieldInfosEnabled,view:r?.view,viewExtentUpdated:r?.viewExtentUpdated,returnSelectionOIDs:r?.returnSelectionOIDs,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent,errorStrings:this.commonStrings?.errorStrings,selectionIDsChanged:Y});G&&r&&(r.selectionData={...r?.selectionData,selectionItems:G})}this.hideInfoModal();let{t9nLocale:O}=Iu(this.chartRef.value??document.documentElement),I=await OY(O,this.useAmCharts5()),U=h.series?.[0]?.query;vd(h)&&U&&(p.gaugeMinMaxFromData=await uT({queryObject:i,chartConfig:h,queryConfig:U,errorStrings:this.commonStrings?.errorStrings}));let P={chartConfig:h,options:r,globalOptions:this.gatherComponentGlobalOptions(),dataUpdateDetails:o,configWithAllSeries:g,dataWasUpdated:f,chartContainer:this.chartRef.value,queryObject:i,dataInfo:p,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:m,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this.commonStrings?.errorStrings,utilsStrings:this.commonStrings?.utilsStrings,amChartsStrings:I},loaderHandle:this.loaderHandle,dataUpdateNeededProps:{forceDataUpdateTick:this.forceDataUpdateTick,runtimeDataFilters:this.runtimeDataFilters,returnFeaturesExtent:this.returnFeaturesExtent,chartLimits:this.chartLimits,updateSplitBySeries:this.updateSplitBySeries},extraProps:{layer:this.layer,filterBySelection:this.filterBySelection,filterByExtent:this.filterByExtent,filterByViewExtent:this.filterByViewExtent}};if(e){let Q=this.useAmCharts5()?uY:WW;this.chart=Q(P)}else this.chart?.update(P),this.handleUpdateCompleted(c);if(vd(h)&&ju(h)&&h.series[0].type===V.GaugeSeries){let Q=p?.data&&"dataItems"in p.data?p.data.dataItems:[],Y=Mw({featureIndex:h.series[0].featureIndex,chartData:Q,chartConfig:h,gaugeMinMaxFromData:p.gaugeMinMaxFromData??{},queryConfig:U});Number.isNaN(Y.dataValue)&&this.raiseInvalidDataWarning(Ll.NoValue,Q.length)}this.lastRenderedProps=P,await this.generateHeatChartClassBreaks(p)}}}}}}}}}render(){this.calciteThemeColors=AY(this.el,this.calciteThemingCSSVariables);let t=this.notifyMessage?EY({heading:this.notifyHeading,message:this.notifyMessage,options:this.notifyOptions}):null,e=this.isAnyTaskPending()&&!this.hideLoaderAnimation||this.showLoader,i=this.infoModalMessage!==void 0&&this.showUIMessages!==!1&&!this.hideUIMessages||e,r=this.notifyMessage&&this.notifyOptions?.kind==="danger"||i,s={[sn.ChartWrapper]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r},n={[sn.ChartContainer]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r,[sn.DisableInteractions]:this.interactionsDisabled||this.disableInteractions},o=this.notifyMessage!==void 0?{[sn.NotifyPanel]:!0,[sn.Show]:!0}:{[sn.Hide]:!0};return ud`<slot name=${xT.actionBar} @slotchange=${l=>{this.actionBarElement=QT(l,this.el,this.config)}} ${Nb(this.actionBarSlotRef)}></slot>${i?ud`<arcgis-charts-info-modal .heading=${this.infoModalHeading} .message=${this.infoModalMessage} .showLoader=${e} .loaderColors=${this.loaderColors} .calciteThemeColors=${this.calciteThemeColors}></arcgis-charts-info-modal>`:null}<div class=${Um(s)}><div class=${Um(n)} ${Nb(this.chartRef)}></div></div><div class=${Um(o)}>${t}</div>`}};oF("arcgis-chart",bw);return bw},"core/reactiveUtils","intl","layers/FeatureLayer","layers/Layer","portal/PortalItem",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)
58
+ Value: {${xr.valueField}}`,width:ge,height:ge}),Jw(l,r?.tooltipFormatter),PA(l,s),os(l.columns.template,r?.selectionTheme),To({element:l.columns.template,series:l,queryObject:n,errorStrings:o}),l}function rX(a,t){t?.dataItems&&a.data.setAll(t.dataItems)}function sX(a){let{columnSeries:t,seriesConfig:e}=a,{gradientHeatRules:i}=Z.heatChart,{gradientRules:r,heatRulesType:s,gridLine:n}=e,o=e.emptyCells?.symbol??Z.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,u=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,c=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:f}=zt(l),{color:m,opacity:g}=zt(h),y=zt(u),x=zt(c);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,F,T)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let O,I,U,P=!1;if(s===$u.Renderer){let Q=L?.[pt.rendererSymbolField];if(gd(Q)){U=Fr(Q);let{outlineSymbol:Y}=Lv(n);U.outline=Y}else P=!0}if((!Number.isFinite(T)||P)&&o){U=Fr(o);let{outlineSymbol:Q}=Lv(n);U.outline=Q}if(U){let Q=xu({root:t.root,element:w,fillSymbol:U});gA(w,Q)}else typeof d=="number"&&T<d?{color:O,opacity:I}=y:typeof A=="number"&&T>A?{color:O,opacity:I}=x:S===F?(O=p,I=f):(O=ot.interpolate((T-S)/(F-S),p,m,"rgb"),I=f+(T-S)/(F-S)*(g-f)),O&&w.set("fill",O),I!==void 0&&w.set("fillOpacity",I)}}}])}function aX(a,t){t?.color?Fo({element:a.columns.template,lineSymbol:t}):a.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function nX(a){let{series:t,data:e,dataWasUpdated:i,sortChanged:r,timeZoneChanged:s,seriesWereReinitialized:n,seriesConfig:o,autoInverseDataLabelTextColor:l,options:h,queryObject:u,chartConfig:c}=a,d=i===!0||r===!0||s||n===!0;t.set("id",o.id),xi(t,o.visible),_A(t,!1),os(t.columns.template,h?.selectionTheme),Cu(t.columns.template,e?.dataItems?.length),tX(a),aX(t,o.gridLine),sX({columnSeries:t,seriesConfig:o}),d&&rX(t,e),I4({seriesType:V.HeatSeries,series:t,seriesConfig:o,dataLabelsConfig:o.dataLabels,autoInverseDataLabelTextColor:l,externalDataLabelFormatter:h?.dataLabelFormatter});let{chart:A}=t;A&&oX({seriesConfig:o,queryObject:u,chartConfig:c,chart:A}),h?.interactionsDisabled&&_A(t,!0)}function oX(a){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=a,s;if(t.heatRulesType===$u.Renderer)s={heatRulesType:$u.Renderer,seriesColors:wk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=Z.heatChart,{gradientRules:o}=t;s={heatRulesType:$u.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:s,colorMatchApplied:!1,htmlContainer:r.root.dom})}function Ck(a,t){let e="",i,r,s;return a&&typeof a=="object"&&(e="label"in a&&typeof a.label=="string"?a.label:"",i="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"color"in a.symbol&&Array.isArray(a.symbol.color)?a.symbol.color:void 0,s="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"outline"in a.symbol&&Array.isArray(a.symbol.outline)?a.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=zt(i)),Array.isArray(s)&&(s=zt(s).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:s}}function lX(a){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:s,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=a,{legendItemLabel:u,legendItemColor:c,legendItemColorOpacity:d}=Ck(n,!0);if(n&&typeof n=="object"&&c&&!Array.isArray(c)){let A=!0;if(r&&s){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,f="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,m=o===l-1;A=r.some(g=>{let y=g[s];return m||h?typeof y=="number"&&y>=p&&y<=f:typeof y=="number"&&y>=p&&y<f})}A&&(t={[Ps.nameField]:u,[Ps.fillField]:c,[Ps.strokeField]:e,[Ps.fillOpacityField]:d,[Ps.strokeOpacityField]:i})}return t}function hX(a){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=Ck(a,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Rt.SFS,style:bs.Solid,color:i,outline:{type:Rt.SLS,color:r??i}}}),t}function wk(a){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=a,s,n=Os(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:u}=Lv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let c=r?.data.values,d=r?.get("valueField")??xr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;s=l.classBreakInfos.map((f,m)=>{let g;return i?g=lX({outlineColor:h,outlineOpacity:u,dataItems:c,valueField:d,classBreakInfo:f,classBreakIndex:m,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=hX(f),g}).filter(Boolean)}return s}var Gv="arcgis_charts_title_container",eB="arcgis_charts_subtitle_container",Yv="arcgis_charts_footer_container",Bk="arcgis_charts_title",Sk="arcgis_charts_subtitle",Fk="arcgis_charts_footer",va="arcgis_charts_legend_container",eo="arcgis_charts_legend_title",Aw="arcgis_charts_axis_title_id";function uX(a){let t=a.yAxes.getIndex(0);if(t){let e=Ii({childId:`${Aw}_y_${t.uid}`,parent:t});e instanceof Kt&&e.set("dx",0)}}function cX(a,t){let e=Z.axisLabelSpacing.verticalAxisLabelSidePadding,i=Z.heatChart.legend.legendPadding+e;t.set("marginRight",i),a.leftAxesContainer.setAll({paddingLeft:e});let r=a.leftAxesContainer.children.values[0];r instanceof Br&&r.set("paddingLeft",e)}function Tk(a,t){let{root:e}=a,i=fe(a.uid,"rtl")??!1,r=fe(a.uid,"config")??t,s=r?.series[0],{start:n,end:o}=Kv(i,s),l=r?.legend?.position??Z.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return xo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function dX(a,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:s,end:n}=Kv(e,r);a.setAll({startColor:s.color,endColor:n.color,startOpacity:s.opacity,endOpacity:n.opacity})}}function Kv(a=!1,t){let e=Z.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...a?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:s}=zt(i[0]),{color:n,opacity:o}=zt(i[1]);return{start:{color:r,opacity:s},end:{color:n,opacity:o}}}function mI(a,t){let e=fe(a.uid,"rtl")??!1,i=fe(a.uid,"config")?.series[0],{start:r,end:s}=Kv(e,i);t.setAll({startColor:r.color,endColor:s.color})}function Pk(a){let t=fe(a.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=Z.heatChart.legend,i=t?.legend?.position??e.position,r=Hs(va,a.uid),s,n=!1;switch(i){case st.Top:s=a.topAxesContainer,n=!0;break;case st.Bottom:s=a.bottomAxesContainer,n=!1;break;case st.Left:s=a.leftAxesContainer,n=!0;break;case st.Right:s=a.rightAxesContainer,n=!1;break;default:s=void 0}if(s!==void 0){let o=Ii({childId:r,parent:s,useChildId:!0});if(o!==void 0){let{children:l}=s,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),s.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),s.markDirty()))}}}}function Dk(a){let{chart:t,legend:e,legendContainer:i}=a,{root:r}=t,s=fe(t.uid,"config"),n=Z.heatChart.legend,o=s?.legend?.position??n.position,l,h,u,c=o===st.Left||o===st.Top,d=Ii({childId:eo,parent:i}),A=s?.legend?s.legend.visible??!0:!1,p=s?.legend?.title?s.legend.title.visible??!0:!1,f=d instanceof Kt&&A&&p?d.height()>0?d.height():n.titleHeight:0,m=o===st.Left||o===st.Right;switch(e.setAll({orientation:m?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),cX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:u=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+f});let g=Ii({childId:Yv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+f),l=t.bottomAxesContainer}break}uX(t),e.markDirty(),Lk(t,{chartPaddingTop:u,chartPaddingBottom:h}),bu(()=>{l&&(c?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Lk(a,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:s}=t;a.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:s})}function Ik(a,t){let e=a.root.events.on(Ji.FrameEnded,()=>{a.markerContainer.children.length>0&&(t(),e.dispose())})}function kk(a){let{series:t,legend:e,chart:i}=a,r=fe(i.uid,"config"),s=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),bu(()=>{Ik(e,()=>{$k({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{s(t)}),s(t)),Ok(e,r?.legend)}function $k(a){let{legend:t,series:e,chartConfig:i}=a,r=i?.series[0],s=r?.gradientRules;if(s&&(s.minValue!==void 0||s.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,u=h-l,c=s.minValue??l,d=s.maxValue??h,A=(c-l)/u,p=(d-l)/u;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:f,end:m}=Kv(!1,r),{color:g,opacity:y}=zt(s.outsideRangeLowerColor??Z.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=zt(s.outsideRangeUpperColor??Z.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:f.color,opacity:f.opacity,offset:A},{color:m.color,opacity:m.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],F=(L,O,I)=>{let U=Hs(`heatLegendLabel${I}`,t.uid),P=t.markerContainer.children.values.find(G=>G instanceof Kt&&G.get("id")===U),Q=P&&!P.isDisposed()?P:void 0,Y=t.startLabel;if(Q||(Q=Kt.new(t.root,{id:U,position:"absolute",isMeasured:!1,centerX:He,centerY:He,paddingLeft:0}),t.markerContainer.children.push(Q)),Q.setAll({fill:Y.get("fill"),fontSize:Y.get("fontSize"),fontFamily:Y.get("fontFamily")}),Q.set("text",L.toString()),t.get("orientation")==="vertical"){let G=Y.localBounds().top,ee=Y.get("fontSize")??0;if(typeof ee=="number"){let te=Z.heatChart.legend.minMaxLabelPadding;Q.set("x",G-ee*2-te)}else Q.set("x",G);Q.set("y",Bt(O*100)),Q.set("centerY",He)}else{Q.set("x",Bt(O*100));let G=t.startLabel.localBounds().bottom,ee=Z.heatChart.legend.minMaxLabelPadding;Q.set("y",-G-ee),Q.set("centerX",jr)}};A>0&&A<1&&F(c,A,"Min"),p>0&&p<1&&F(d,p,"Max");let T=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each(O=>{O instanceof or&&(L=O)}),L){let O=0;t.get("orientation")==="vertical"&&(O=90),L.set("fillGradient",al.new(t.root,{stops:S,rotation:O}))}};if(t.markerContainer.children.length>0)T();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),T())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof or&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ok(a,t){if(a!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Rt.TS,text:" "}};[a.startLabel,a.endLabel].forEach(i=>{Cn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function tB(a){let t=Hs(va,a.uid);[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(e=>{let i=Ii({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof xo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Lk(a,{}),pX(a)}function iB(a,t){let e=bA({root:t.root,parent:t,index:0,id:Hs(eo,t.uid)});return e.set("paddingTop",Z.heatChart.legend.titlePadding),Hc({chart:a,label:e,labelType:Xt.LegendTitle}),e}function pw(a){let{chart:t,legendConfig:e,container:i}=a,r=Hs(va,t.uid),s=i;if(s||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Ii({childId:r,parent:n,useChildId:!0});o&&(s=o)}),s!==void 0){let n=Ii({childId:eo,parent:s})??iB(t,s);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=Z.legendProperties;if(o!==void 0){Cn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:"top"}});let u=fe(t.uid,"config")?.legend?.position??Z.heatChart.legend.position;u===st.Left||u===st.Right?(n.set("maxWidth",250),gl({chart:t,label:n,labelType:Xt.LegendTitle})):n.set("maxWidth",void 0),Ek({legendContainer:s,chart:t})}else xi(n,!1)}}}function AX(a,t){let{root:e}=a,i=fe(a.uid,"config"),r=i?.legend,s=a.series.values[0];tB(a);let n=Tk(a,i??t),o=Re.new(e,{id:Hs(va,a.uid),layout:e.verticalLayout});return o.children.push(n),iB(a,o),pw({chart:a,legendConfig:r,container:o}),kk({series:s,legend:n,chart:a}),r!==void 0&&r.visible!==!1&&(Dk({chart:a,legend:n,legendContainer:o}),fw({legend:n,chart:a,legendContainer:o})),n}function fw(a){let{legend:t,chart:e,legendContainer:i}=a,r=fe(e.uid,"config"),s=Z.heatChart.legend,n=r?.legend?.position??s.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Ek({legendContainer:i,chart:e});else{let o=Ii({childId:eo,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,u=o instanceof Kt&&l&&h?o.height()>0?o.height():s.titleHeight+s.titlePadding:0,c=n===st.Top?s.topHeight:s.bottomHeight;t.set("height",c),i.set("height",c+u+20)}}function Ek(a){let{legendContainer:t,chart:e}=a,i=fe(e.uid,"config"),r=Z.heatChart.legend,s=i?.legend?.position??r.position;if(s!==st.Left&&s!==st.Right)return;let n=Ii({childId:eo,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Kt&&o){let l=()=>{let h=n.width(),u=r.width,c=Math.max(h+r.legendPadding*2,u);t.set("width",c)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function pX(a){let t=Ii({childId:Gv,parent:a});t instanceof Re&&t.set("marginTop",0)}function fX(a){let t,e=Hs(va,a.uid);return[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(i=>{let r=Ii({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof xo);if(n){t=n;return}}let s=i.children.values.find(n=>n instanceof xo);if(s){t=s;return}}),t}function mX(a){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=a,{legend:s}=e,n=s!==void 0&&s.visible!==!1,o=t.series.values[0];if(i||r)tB(t),n&&o instanceof Li&&bu(()=>{let l=Tk(t),h=Re.new(t.root,{id:Hs(va,t.uid),layout:t.root.verticalLayout});h.children.push(l),iB(t,h),pw({chart:t,legendConfig:s,container:h}),mI(t,l),Dk({chart:t,legend:l,legendContainer:h}),kk({series:o,legend:l,chart:t}),fw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Li){let l=fX(t);if(l){mI(t,l),pw({chart:t,legendConfig:s}),Ok(l,s);let h=l.parent;h?.get("id")===Hs(va,t.uid)&&xi(h,n),xi(l,n),dX(l,t),h&&fw({legend:l,chart:t,legendContainer:h}),bu(()=>{Ik(l,()=>{$k({legend:l,series:o,chartConfig:e})})})}}}function gX(a,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=a.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!a.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function yX(a){let t=!1,e=a.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!a.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function vX(a){jw(a.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=zW(a.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),a.valueLabels.template.set("text","")}function Mk(a){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:s}=a,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:u,percentValueFormat:c,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=l??Z.pieChart.displayNumericValueOnLegend,g=h??Z.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let O=Kw({pieChart:s,valueIntlOptions:u?.intlOptions,percentageIntlOptions:c?.intlOptions,displayNumericValue:m,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});y=(I,U)=>O("",I,U)}GW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(s?.uid??0,"config")?.legend?.position??Z.legendProperties.position,w=i?.valueLabelMaxWidth,S=gX(t,x),F={type:V.Text,visible:n,content:{...o,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:S?"right":"center"}};Cn({label:t.valueLabels.template,labelConfig:F,defaults:Z.legendProperties.valueLabels});let T=fe(s?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:T?"right":"left",disabled:m===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function bX(a,t){a.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.labelMaxWidth,n=r?.legend?.position??Z.legendProperties.position;if(n===st.Right||n===st.Left)i=s??Z.legendProperties.legendLabels.maxWidth;else if(s!==void 0)i=s;else{let o=0;a.valueLabels.template.get("forceHidden")||a.valueLabels.each(h=>{let u=h.get("width",0);typeof u=="number"&&(o=Math.max(o,u))});let l=a.get("width",200);typeof l=="number"&&(i=l+o)}return i}),a.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??Z.legendProperties.position;return n===st.Right||n===st.Left?i=s??Z.legendProperties.valueLabels.maxWidth:i=s??Number.NaN,i})}function Rk(a,t){let e=0;for(let i of a.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function xX(a,t){for(let e of a.dataItems)e.get("label")?.set("width",t)}function _X(a,t){let e=0;for(let i of a.dataItems){let r=i.get("marker")?._contentWidth??0,s=i.get("valueLabel")?._contentWidth??0,n=r+t+s;e=Math.max(e,n)}return Math.ceil(e)+Z.legendPadding}function Uk(a,t){bu(()=>{let e=yX(a),i=t===st.Right||t===st.Left||!e;xX(a,i?Rk(a):void 0)})}function CX(a){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=a,{displayCategory:s}=r??{},n=s??Z.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),bu(()=>{let l=Rk(t,r?.labelMaxWidth),h=_X(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),bX(t,e),Mk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let u=r.position??Z.legendProperties.position;Uk(t,u),t.markDirty()})}function Vk(a){return a?.[0].type===V.HeatSeries&&a[0].heatRulesType!==$u.Renderer}function Nk(a){let t=a.get("id");a.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof ms){let s=Ii({childId:va,parent:r});s!==void 0&&s.dataItems?.forEach(n=>{n.get("id")===t&&s.set("opacity",e?1:Z.legendProperties.legendLabelReducedOpacity)})}}})}function wX(a){let t=a.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof zr){let r={visible:!i.get("visible")};ah(i)||Zf(i)?r.overlayType=Qt(i.uid,"type"):r.seriesId=i.get("id"),lx(r,i.root.dom)}}}function BX(a){a.itemContainers.template.events.on(Ji.Click,wX)}function SX(a,t){let e=fe(t.uid,"rtl")??!1;a.itemContainers.template.setAll({reverseChildren:e})}function FX(a){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:s}=a,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=It(i.series);switch(n){case V.BoxPlotSeries:{let h=oa(i);o=t.series.values.filter(u=>{let c=!1;return h?c=u instanceof qt&&!(u instanceof Bo):c=u instanceof La,c});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let u=!1;if(Qt(h.uid,"isOverlay")){let c=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=Qt(h.uid,"type"),A;switch(d){case vr.Mean:A=c?.mean?.created;break;case vr.Median:A=c?.median?.created;break;case vr.Normal:A=c?.comparisonDistribution?.created;break;case vr.StdDev:A=c?.standardDeviation?.created;break}u=A===!0}return u});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let u=!0;if(!r){let c=i.series.find(d=>d.id===h.get("id"));if(c!==void 0&&"y"in c&&typeof c.y=="string"){let{x:d,y:A}=c,p=l===ke.BarAndLineSplitByNoAggregation?`${A}_${xh({where:c.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;u=h.data.values.some(f=>dT({dataItem:f,x:d,y:p,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))}}return u});break;case V.ScatterSeries:{let h=Wk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Li&&so(i)&&!xs(s)){let u=wk({queryObject:s,chartConfig:i,forLegend:!0,series:h});if(u){o=[...u];let c=VX(t);c!==void 0&&o.push(c)}}break}}e.data.setAll(o)}}function gI(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function yI(a){let t=0;if(a instanceof Kt&&a.get("visible")!==!1&&a.get("forceHidden")!==!0){let e=a.width();Number.isFinite(e)&&(t=e)}return t}function vI(a){let t=0;return a.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,yI(r))}),t===0&&e.dataItems.forEach(r=>{let s=r.bullets;if(s)for(let n of s)t=Math.max(t,yI(n.get("sprite")))})}),Math.ceil(t)}function Uc(a,t){let{root:e}=a,i=Ii({childId:va,parent:a});if(i!==void 0){let r=fe(a.uid,"config"),s=fe(a.uid,"rtl"),n=cs(r),o=ze(r?.series),l=$s(r),h=r?.series?.some(We=>We.dataLabels?.visible!==!1)??!1,u=r?.title?r.title.visible??!0:!1,c=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,f=Ii({childId:Gv,parent:a}),m=f instanceof Re&&u?f.height():0,g=Ii({childId:eB,parent:a}),y=g instanceof Re&&c?g.height():0,x=Ii({childId:Yv,parent:a}),w=x instanceof Re&&d?x.height():0,S=Ii({childId:eo,parent:i}),F=S instanceof Kt&&A&&p?S?.height():0,T=r?.legend?.position??Z.legendProperties.position,L,O=t.get("verticalScrollbar"),I=He,U=He,P=e.verticalLayout,Q=He,Y=He,G=He,ee=He,te=0,le,z=t.height()+F,K=0,we=0,se=h&&!n?Z.chartContainer.paddingTop??0:0,de=0,$e,Ye;switch(T){case st.Left:P=e.verticalLayout,Q=jr,G=jr,Y=jr,ee=jr,le=void 0,I=jr,U=jr,K=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=gI(t),O?.width()!==void 0&&L&&O.isVisible()&&(L+=O.width()+Z.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Right:P=e.verticalLayout,Q=ge,G=ge,Y=jr,ee=jr,le=void 0,I=jr,U=jr,we=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=gI(t),O?.width()!==void 0&&L&&O.isVisible()&&(L+=O.width()+Z.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Top:P=e.gridLayout,Q=He,G=He,Y=jr,ee=jr,le=ge,I=He,U=He,se+=z,te+=m+y,L=void 0,s&&($e=void 0);break;case st.Bottom:P=e.gridLayout,Q=He,G=He,Y=ge,ee=ge,le=ge,I=He,U=He,de=z,te=-de-w,L=void 0,s&&($e=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===Oi.Side)){let We=vI(a);if(We>0)we+=We;else if(a.series.length>0){let qe=t.root.events.on(Ji.FrameEnded,()=>{let Tt=vI(a);Tt>0&&(s?K+=Tt:we+=Tt,qe.dispose(),Uc(a,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),s&&t.itemContainers.template.setAll({centerX:$e,dx:Ye})),t.setAll({layout:P,x:I,centerX:U}),i.setAll({x:Q,y:Y,centerX:G,centerY:ee,dy:te,width:le,height:0}),a.chartContainer.setAll({paddingBottom:de,paddingTop:se,paddingLeft:K,paddingRight:we}),le===void 0&&(i.setPrivate("width",void 0),i.markDirty()),a instanceof Vs&&Uk(t,T)}}function TX(a){let{chart:t,legend:e,legendContainer:i}=a,r=Ii({childId:eo,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ji.FrameEnded,()=>{Uc(t,e)})}),i.events.on(Ji.BoundsChanged,()=>{Uc(t,e)}),e.events.on(Ji.BoundsChanged,()=>{Uc(t,e)}),t.seriesContainer.onPrivate("height",()=>{Uc(t,e)}),t.series.each(s=>{s.events.on(Ji.DataValidated,()=>{Uc(t,e)})})}function Qk(a,t){let e=bA({root:t.root,parent:t,index:0,id:Hs(eo,t.uid)});return e.set("paddingTop",10),Hc({chart:a,label:e,labelType:Xt.LegendTitle}),e}function PX(a,t){t.markers.template.setAll({width:Z.legendProperties.legendMarkersSize,height:Z.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ps.fillOpacityField in r?r[Ps.fillOpacityField]:e;return typeof s=="number"?s:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ps.strokeOpacityField in r?r[Ps.strokeOpacityField]:e;return typeof s=="number"?s:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,s=fe(a.uid,"config");if(ze(s?.series)!==V.HeatSeries){let n=i.dataItem?.component;if(n instanceof Vr){let o=n.get("categoryField")??"",l=i.dataItem,h=l?.get("category"),u=l?.dataContext;r=h??(u?.[o]??e)?.toString()}else n instanceof zr&&(r=n.get("name"))}if(s!==void 0){let{legend:n}=s,o={...n?.body,type:Rt.TS,text:r};r=xa({textSymbol:o,format:"amChartsV5"})}return r})}function DX(a,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),s=r?.legend,n=Ii({childId:va,parent:t});if(n!==void 0){let l=Ii({childId:eo,parent:n});l!==void 0&&s?.visible!==!1&&s?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=Z.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),a.set("maxHeight",o)})}function LX(a,t,e){a.events.on(Ji.DataValidated,()=>{a.dataItems.length>0&&Hk(a,t,e)})}function IX(a){let t;if(a!==void 0){let e=fe(a?.uid,"config");t=fe(a.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function kX(a){let t="";if(a instanceof bi){let e=fe(a.uid,"config"),i=cs(e),r=i?B.Rotated:B.NonRotated,s=$s(e),n=B.SideBySide;s===Oi.Stacked?n=B.Stacked:s===Oi.Stacked100&&(n=B.Stacked100);let o=fe(a.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?a.yAxes.getIndex(0):a.xAxes.getIndex(0),u;h instanceof mr?u=B.DateAxis:h instanceof ci?u=B.ValueAxis:u=B.CategoryAxis;let c=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===GA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${u}-${c}`}return t}function $X(a){let t=kX(a);return B1.has(t)}function Hk(a,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:a.set("reverseChildren",IX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:a.set("reverseChildren",$X(t));break}}function OX(a,t){let e=Ii({childId:va,parent:a});if(e!==void 0){let i=Ii({childId:eo,parent:e})??Qk(a,e);if(t!==void 0){let{title:r,visible:s}=t,{legendTitle:n}=Z.legendProperties;r!==void 0?(Cn({label:i,labelConfig:{...r,visible:s!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:"top"}}),gl({chart:a,label:i,labelType:Xt.LegendTitle})):xi(i,!1)}}}function EX(a,t=!1){let e=t?Z.legendProperties.roundedMarkerRadius:Z.legendProperties.rectangleMarkerRadius;a.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function MX(a){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:s}=a;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Rt.TS,text:" "}};if(i===V.PieSeries){let o=Ii({childId:va,parent:s});o!==void 0&&Ii({childId:eo,parent:o})!==void 0&&Mk({legend:t,seriesConfig:r,webChartLegend:e,chart:s})}Cn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function RX(a,t){t===!0&&a.itemContainers.each(e=>{e.events.disableType(Ji.Click)})}function UX(a){let{legend:t,chart:e,seriesConfig:i}=a;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.togglingLegendItemsDisabled===!0?"default":"pointer")}function bI(a,t){let{root:e}=a,i;if(Vk(t?.series))i=AX(a,t);else{let r=Re.new(e,{id:Hs(va,a.uid),layout:e.verticalLayout}),s=t?.series?.[0].type===V.HeatSeries?{nameField:Ps.nameField,fillField:Ps.fillField,strokeField:Ps.strokeField,fillOpacityField:Ps.fillOpacityField,strokeOpacityField:Ps.strokeOpacityField}:{};i=nl.new(e,{...s,verticalScrollbar:ll.new(e,{orientation:"vertical"})}),a instanceof Vs?vX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),PX(a,i),Qk(a,r),BX(i),SX(i,a),TX({chart:a,legend:i,legendContainer:r}),DX(i,a),LX(i,a,ze(t?.series)),UX({legend:i,chart:a,seriesConfig:t?.series}),r.children.push(i),a.children.push(r)}return i}function VX(a){let t=fe(a.uid??NaN,"config"),e=t?.series[0].heatRulesType===$u.Renderer,i=a.series.values[0].data.values.some(s=>s[xr.valueField]===null||e&&!s[pt.rendererSymbolField]),r;if(i){let s=t?.series[0].emptyCells,n=s?.symbol?.color??Z.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Lv(t?.series[0].gridLine);r={[Ps.nameField]:s?.text??Z.heatChart.emptyCells?.text??"",[Ps.fillField]:zt(n).color,[Ps.fillOpacityField]:zt(n).opacity,[Ps.strokeField]:o,[Ps.strokeOpacityField]:l}}return r}function xI(a){let{chart:t,legend:e,showLegend:i}=a,r=Ii({childId:va,parent:t});r&&(xi(r,i),xi(e,i))}function _I(a){let{chart:t,showLegend:e,legendConfig:i}=a;if(i){let{title:r,visible:s}=i,n=r!==void 0&&s!==!1&&r.visible!==!1,o=Ii({childId:va,parent:t});if(o){let l=Ii({childId:eo,parent:o});l&&(r?xi(l,n):xi(l,e))}}}function jk(a){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:s,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=a,{legend:u,series:c}=e;if(Vk(n)&&r)l&&i&&(xI({chart:t,legend:i,showLegend:!1}),_I({chart:t,showLegend:!1,legendConfig:u})),mX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof nl&&(n?.[0].type===V.HeatSeries&&tB(t),Ii({childId:va,parent:t})!==void 0)){let d=ix(c)&&u!==void 0&&u.visible!==!1;if(xI({chart:t,legend:i,showLegend:d}),_I({chart:t,showLegend:d,legendConfig:u}),d){EX(i,u?.roundMarkers),MX({legend:i,legendConfig:u,chartType:ze(c),seriesConfig:n,chart:t}),Hk(i,t,ze(c)),FX({chart:t,legend:i,chartConfig:e,showEmptySeries:s,queryObject:o}),OX(t,u),Uc(t,i);let A=fe(t.uid,"options");RX(i,A?.togglingLegendItemsDisabled),t instanceof Vs&&CX({legend:i,chart:t,seriesConfig:n,legendConfig:u})}}}function NX(a){let{seriesConfig:t,series:e,sizePolicyChanged:i}=a,{sizePolicy:r}=t,s=e.get("heatRules")?.[0],n=Qt(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:u}=r,c=gF(),d=t.markerSymbol?.size??qb().size??1,A=(h??c.minSize)/d,p=(u??c.maxSize)/d;s!==void 0?i&&(s.min=A,s.max=p,s.logarithmic=o===Xb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Xb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function ah(a){return a.get("id")===Z.overlayId.scatterplotTrendLine}function QX(a){return a.series.values.find(t=>!ah(t))}function Wk(a){return a.series.values.find(t=>ah(t))}function HX(a){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=a,{x:s,y:n}=r,o=qt.new(t,{xAxis:e,yAxis:i,valueXField:s,valueYField:n,layer:Z.zIndexes.scatterplotTrendLine});return o.set("id",Z.overlayId.scatterplotTrendLine),Kr(o.uid,{type:vr.Trendline}),o}function jX(a){let{markerSeries:t,options:e,queryObject:i,errorStrings:r}=a,s=Dt.new({});Kr(t.uid,{bulletTemplate:s}),os(s,e?.selectionTheme),t.bullets.push(n=>{let o=ft.new(n,{nonScalingStroke:!0,tooltip:Kf({series:t,tooltipFormatter:e?.tooltipFormatter})},s);return To({element:o,series:t,queryObject:i,errorStrings:r}),Jk(o,t),fa.new(n,{sprite:o})})}function WX(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{x:h,y:u,id:c}=i,d=[],A=qt.new(t,{xAxis:r,yAxis:s,valueXField:h,valueYField:u,id:c,opacity:0,valueField:"value",maskBullets:!1,layer:Z.zIndexes.lineSeries});A.strokes.template.set("forceHidden",!0),jX({markerSeries:A,options:n,queryObject:o,errorStrings:l}),PA(A,e),d.push(A);let p=HX({root:t,xAxis:r,yAxis:s,seriesConfig:i});return Nk(p),d.push(p),A.appear(),d}function XX(a){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:s,valueFormat:n,defaultR2Value:o,chartConfig:l}=a,{chart:h}=e,u=l.series[0],c=u.overlays?.trendLine,d=c?.symbol??{type:Rt.SLS},A=c?.created===!0&&c.visible!==!1;if(i&&(r||s)){let p=Z.scatterplotSeries,f=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:m,y:g}=u;e.setAll({valueXField:m,valueYField:g}),e.data.setAll(i.trendLinePoints??Z.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?xA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:f}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=vh({colorIndex:1})),Fo({element:e,lineSymbol:d,visible:A})}function zX(a){let{root:t,chartConfig:e,markerSeries:i}=a,r=i.chart;if(r){let s=e.series[0],n=Fl(e),o,l,h=qb(),u=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:s,chartSubType:ke.NonSpecific,colorMatch:n}),f=Ja({root:t,element:A,seriesSymbol:s.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=f.symbolWithColorInfo,l=f.stylingInfo,gA(A,l),u.add(JSON.stringify(l))}}),o=u.size>1?void 0:o;let c=new Map;c.set(0,o),nn({data:c,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:DA(r)})}}function GX(a){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:s}=a;if((t||e)&&i){let{x:n,y:o}=s.series[0];if(r.setAll({valueXField:n,valueYField:o}),s.series[0].type===V.ScatterSeries&&s.series[0].sizePolicy){let{field:l}=s.series[0].sizePolicy;i.dataItems=i.dataItems.sort((h,u)=>typeof u[l]=="number"&&typeof h[l]=="number"?u[l]-h[l]:0)}r.data.setAll(i.dataItems)}}function YX(a){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:s,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:u,sizePolicyChanged:c,utilsStrings:d}=a,{axes:A}=e,{tooltipFormatter:p}=r??{};n.set("id",i.id);let f=Qt(n.uid,"bulletTemplate");f&&os(f,r?.selectionTheme),xi(n.bulletsContainer,i.visible),XX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:u,valueFormat:Yb(),defaultR2Value:d.notAvailable}),NX({seriesConfig:i,series:n,sizePolicyChanged:c}),nh(a)&&oh({styleCallback:()=>zX({root:t,chartConfig:e,markerSeries:n}),series:n,seriesConfig:i}),Q4({axesConfig:A,seriesConfig:i,series:n,fieldList:s,tooltipFormatter:p}),GX({dataWasUpdated:h,seriesWereReinitialized:u,data:l,series:n,chartConfig:e})}function KX(a){a.series.each(t=>{t instanceof qt?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&ra({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Li?t.columns.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Vr&&t.slices.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})})})}function Zc(a){let{chart:t,selectionSource:e}=a,i=fe(t.uid,"currentSelectionDataItems");Gr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Ww(t)&&KX(t),i&&Nu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.root.dom})}function Xk(a){let t=a?.selection.width();return t!==void 0&&t>0&&t!==2e7}function To(a){let{element:t,series:e,queryObject:i,errorStrings:r}=a;t.events.on(Ji.PointerUp,async s=>{let{chart:n}=e;if(n){let o=n.get("cursor");if(!Xk(o)){let l=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&l!==Ut.None&&l!==Ut.Zoom){let h=s.target,u=_4(s,e);ra({element:h,selected:yl(h.uid,"selected")!==!0}),u&&n.series.each(c=>{c instanceof qt?c.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");A!==h&&ra({element:A,selected:!1})}):c instanceof Li?c.columns.each(d=>{d!==h&&ra({element:d,selected:!1})}):c instanceof Vr&&c.slices.each(d=>{d!==h&&ra({element:d,selected:!1})})}),await rB({chart:n,selectionSource:Tr.SelectionByClick,queryObject:i,errorStrings:r})}}}})}function CI(a,t){let e=Number.NaN,i=Number.NaN;if(a instanceof Al){let r=t.get("renderer")instanceof Ns,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");if(s!==void 0&&n!==void 0)if(t instanceof Br)e=t.axisPositionToIndex(t.toAxisPosition(s)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof mr){e=t.positionToDate(t.toAxisPosition(s)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Lc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof ci&&(e=t.positionToValue(t.toAxisPosition(s)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof ns,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");s!==void 0&&n!==void 0&&(e=s*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function ZX(a){let t=()=>{let e=a instanceof bi?a.get("cursor"):void 0,i=fe(a.uid,"filterBySelection");(e===void 0||!Xk(e))&&!i&&Zc({chart:a})};a.get("background")?.events.on(Ji.Click,t),a instanceof bi&&a.plotContainer.events.on(Ji.PointerUp,t)}function qX(a){let{series:t,cursorBounds:e,multiSelect:i}=a,r=fe(t.chart?.uid??NaN,"config"),s=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&s!==V.HeatSeries,u=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let c=h?l-u:l,d={left:o,right:o+n.width(),top:c,bottom:c+u};if(s===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&yl(n.uid,"selected")===!0;ra({element:n,selected:A})}})}function JX(a){let{series:t,cursorBounds:e,multiSelect:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0]?.get("sprite");if(s){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&yl(s.uid,"selected")===!0;ra({element:s,selected:l})}})}function ez(a){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=a;e.dataItems.forEach(s=>{let n=s.bullets?.[0]?.get("sprite");if(n){let o=s.dataContext,l=s.get("valueX"),h=s.get("valueY");if(t instanceof Br){let A=o?.[Z.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let u=typeof l=="number"&&l>=i.left&&l<=i.right,c=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=u&&c||r&&yl(n.uid,"selected")===!0;ra({element:n,selected:d})}})}function tz(a){let{cursor:t,xAxis:e,yAxis:i}=a,r=t.get("behavior"),{value1:s,value2:n}=CI(t,e),{value1:o,value2:l}=CI(t,i),h={left:s>n?n:s,right:s>n?s:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function iz(a){let{chart:t,queryObject:e,errorStrings:i}=a;t.get("cursor")?.events.on(Ji.SelectEnded,async r=>{let s=fe(t.uid,"actionMode");if(s===Ut.MultiSelection||s===Ut.MultiSelectionWithCtrlKey){let n=t.xAxes.getIndex(0),o=t.yAxes.getIndex(0);if(n&&o){let l=fe(t.uid,"config"),h=ze(l?.series),u=t.get("cursor"),c=tz({cursor:u,xAxis:n,yAxis:o}),d=Ak(r);t.series.each(A=>{!ah(A)&&!Zf(A)&&(A instanceof Li?qX({series:A,cursorBounds:c,multiSelect:d}):A instanceof qt&&(h===V.RadarSeries?ez({xAxis:n,series:A,cursorBounds:c,multiSelect:d}):JX({series:A,cursorBounds:c,multiSelect:d})))}),xi(u.selection,!1),await rB({chart:t,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}})}function rz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=a;t.bullets.push(()=>{let s=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,n=fa.new(t.root,{locationY:1,sprite:Kt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:He,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:zt(s?.content.color).color,fontSize:s?.content.font?.size})}),o=n.get("sprite");return o&&(zk({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&s?.visible&&fk({label:o,chart:t.chart,seriesType:r}),zv({...a,dataLabel:o,dataLabelsConfig:s,labelDefaults:e,defaultDataLabelFormatter:Gk})),n})}function zk(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";Qf({label:t,labelOutputProp:r}),t.adapters.add(r,(s,n)=>{let o=s??"",l=Qt(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:u,minValue:c,maxValue:d}=h.dataContext;o=l(u,c,d)}return r==="html"?Er(o):o})}function Gk(a){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=a;return(r,s,n)=>xa({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function sz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0];if(s){let n=s.get("sprite");n&&n instanceof Kt&&(zk({dataLabel:n,series:t,externalDataLabelFormatter:i}),zv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:Gk,externalDataLabelFormatter:i}))}})}function Yk(a){let{series:t,dataLabelsConfig:e}=a,i=e?.visible,r=t.bullets.hasIndex(0);i!==!0?r&&zw(t,0):(r||rz(a),sz(a))}function Zf(a){return[Z.overlayId.histogramMean,Z.overlayId.histogramMedian,Z.overlayId.histogramStdDev,Z.overlayId.histogramNormalDistribution].includes(a.get("id")??"")}function az(a){let t="";switch(a){case vr.Mean:t=Z.overlayId.histogramMean;break;case vr.Median:t=Z.overlayId.histogramMedian;break;case vr.StdDev:t=Z.overlayId.histogramStdDev;break;case vr.Normal:t=Z.overlayId.histogramNormalDistribution;break}return t}function nz(a){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=a,{root:s}=t,n=t.chart;if(n){let o=e.fillSymbol??bF(),l=Ja({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:s.dom,chartId:n.get("id"),colorMatchApplied:DA(n)})}}}function oz(a){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r}=a;e&&(i===!0||r===!0)&&t.data.setAll(e.bins)}function vv(a){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:s}=a,n=qt.new(t,{id:az(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===vr.Normal&&TA(n,s.overlays.normal),Kr(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function lz(a){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:s,chartConfig:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=e,c=Li.new(t,{id:h,name:u,xAxis:i,yAxis:r,categoryXField:pd.Start,valueYField:pd.Count,maskBullets:!1});return os(c.columns.template,s?.selectionTheme),To({element:c.columns.template,series:c,queryObject:o,errorStrings:l}),c.columns.template.setAll({width:ge}),Yk({series:c,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:s?.dataLabelFormatter}),PA(c,n),c.appear(),c}function hz(a){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:s,utilsStrings:n,options:o,chartConfig:l,queryObject:h,errorStrings:u}=a,c=[],d=lz({root:t,seriesConfig:e,xAxis:i,yAxis:s,options:o,chartConfig:l,queryObject:h,errorStrings:u});return c.push(d),Yw(d,o?.tooltipFormatter),r&&(c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Mean,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Median,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.StdDev,utilsStrings:n})),c.push(vv({root:t,xAxis:r,yAxis:s,type:vr.Normal,utilsStrings:n}))),c}function uz(a){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=a;if(!e)xi(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=Qt(t.uid,"type"),h=s??{type:Rt.SLS},u=n===!0&&o!==!1;if(xi(t,u),e.symbol?.color===void 0&&(h.color=vh({colorIndex:rx(l),histogramOverlays:!0})),Fo({element:t,lineSymbol:h,visible:u}),i&&"bins"in i){let d=i.bins.map(w=>w.count),A=Math.max(...d),{mean:p,stddev:f,median:m}=i,g=p-f,y=p+f,x=[];switch(l){case vr.Mean:x=[{x:p,y:0},{x:p,y:A}];break;case vr.Median:x=[{x:m,y:0},{x:m,y:A}];break;case vr.StdDev:x=[{x:g,y:0},{x:g,y:A},{x:null,y:null},{x:y,y:0},{x:y,y:A}];break}t.data.setAll(x)}let c=t.data.getIndex(0)?.x;if(l===vr.StdDev&&(c=i?.stddev??Qt(t.uid,"stddev"),Kr(t.uid,{stddev:c})),typeof c=="number"){let d=l;switch(l){case vr.Mean:d=r.overlays.mean;break;case vr.Median:d=r.overlays.median;break;case vr.StdDev:d=r.overlays.stdDev;break}let A=fe(t.chart?.uid??Number.NaN,"formatLocale"),p=xA({root:t.root,value:c,valueFormat:Yb(),formatLocale:A}),f=`${d}: ${p}`;TA(t,f)}}}function cz(a){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=a;if(!e)xi(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=s??{type:Rt.SLS},h=n===!0&&o!==!1;if(xi(t,h),e?.symbol?.color===void 0&&(l.color=vh({colorIndex:rx(vr.Normal),histogramOverlays:!0})),Fo({element:t,lineSymbol:l,visible:h}),i&&"bins"in i){let{mean:u,stddev:c,min:d,max:A}=i,p=x4(i.bins),f=v4(d,A,r??Z.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:b4({x:m,mean:u,stddev:c,scalingFactor:p})}));t.data.setAll(f)}}}function dz(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:s,options:n}=a;t.set("id",e.id),xi(t,e.visible),os(t.columns.template,n?.selectionTheme),Cu(t.columns.template,s?.bins?.length),TA(t,e.name);let o=s?.bins.find(l=>"symbol"in l)?.symbol;nh(a)&&oh({styleCallback:()=>nz({...a,rendererSymbol:o}),series:t,seriesConfig:e}),oz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:s})}function Az(a){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:s,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=a,{tooltipFormatter:u}=o??{};for(let c=0;c<t.length;c++){let d=t[c];if(d instanceof qt&&Qt(d.uid,"isOverlay")){let A=Qt(d.uid,"type");if(A===vr.Normal)cz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case vr.Mean:p=e.overlays?.mean;break;case vr.Median:p=e.overlays?.median;break;case vr.StdDev:p=e.overlays?.standardDeviation;break}uz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Li&&(dz({...a,series:d}),Yk({series:d,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),O4({axes:n,series:d,seriesConfig:e,fieldList:s,tooltipFormatter:u,utilsStrings:r,axesConfig:h.axes}))}}function pz(a){bx(),hx(a.root.dom),Zc({chart:a})}function fz(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>{let s=!0;return ah(r)||Zf(r)||Qt(r.uid,"isOverlay")===!0?s=!1:e===V.BoxPlotSeries&&(i?s=Qt(r.uid,"isBoxPlotMeanLineSeries")===!0:s=r instanceof La),s}).every(r=>Qt(r.uid,"isSelectionApplied")===!0)}function mz(a){a.series.each(t=>Kr(t.uid,{isSelectionApplied:void 0}))}function gz(a){let t=[];if(!ah(a)&&!Zf(a))switch(!0){case a instanceof Vr:t=a.slices.values;break;case a instanceof Li:let{chart:e}=a;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),s=[];r===V.HistogramSeries?s=[pd.Count]:r===V.HeatSeries?s=[xr.valueField]:s=Mo(i?.series,[a.get("id")??""]),t=a.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||s.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case a instanceof qt:t=Array.from(a.dataItems.values());break}return t}function Kk(a,t){let e=fe(a.uid,"actionMode");(e===Ut.MonoSelection||e===Ut.None)&&t.length>1?Zc({chart:a}):t.forEach(i=>{ra({element:i,selected:!0})})}function yz(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=fe(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=It(n?.series),u=ze(n?.series);return t.series.each((c,d)=>{if(n&&c.get("visible")===!0&&c.get("id")!==Z.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=Gf(c),f=e.get(d);if(f!==void 0){let m;if(c instanceof qt&&(m=c.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),m!==void 0){let{indexesToSelect:g}=f;m.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=th({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:u,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)});w!==void 0&&r.push(w),s.push(y)}else ra({element:y,selected:!1})})}}}}),Kk(t,s),r}function vz(a){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:u}=a,c=ze(e.series),d=It(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series);return r.forEach((y,x)=>{let w=y instanceof fr||y instanceof ma?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof fr||y instanceof ma?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&c===V.BoxPlotSeries&&S[Z.boxPlot.boxPlotOutlierId]!==!0&&(S=th({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:c,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(u)})),$v({elementDataContext:S,options:i,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,chartType:c,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),f.push(x),w?.dataItem instanceof Wa&&S!==void 0)m.push(S);else{let F=new Set;c===V.PieSeries&&sh(S)?(Hf({groupOfSlicesDataContext:S})??[]).forEach(T=>{s.forEach(L=>{Bw({layerOidField:n,sliceDataContext:T,selectionDataContext:L,xAxisField:o})&&F.add(T)})}):F.add(S),Array.from(F)?.forEach(T=>{let L=th({dataContext:T,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:c,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(u)});L!==void 0&&m.push(L)})}else ra({element:w,selected:!1})}}),Kk(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function bz(a){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:s,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:u}=a,{chart:c}=t;if(c instanceof ms){let d=fe(c.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:f,returnSelectionOIDs:m}=d??{},{selectionIndexes:g}=p??{},y=fe(c.uid,"config"),x=oa(y),w=ze(y?.series),S=It(y?.series),F=gz(t);if(A!==!0&&y!==void 0){let T=Os(i),L=Ch(T).idField,O=fe(c.uid,"currentSelectionDataItems"),I=!1,U=!1,P,Q=!1;if(F?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){P=d?.selectionData?.selectionItems??O;let Y=fe(c.uid,"currentSelectionIndexes");Q=Fx({itemsA:P,itemsB:O,isPieFromFields:S===ke.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let G=g?.keys.length!==Y?.keys.length||!rn(g,Y);I=s===!0||r===!0||n===!0||u===!0||P!==void 0&&Q;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:te}=g.get(e??0)??{};ee=te!==void 0&&te[0]===void 0}U=r===!0||n===!0||u===!0||!ee&&G}if(I&&P!==void 0&&P.length>0){let{selectedIndexes:Y,newSelectionDataItems:G}=vz({chart:c,chartConfig:y,options:d,elementsToApplySelectionTo:F,selectionDataItems:P,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(c.uid,"computedSelectionDataItems")??[];if(ee.push(...G),y.series.length>1&&S!==ke.BarAndLineNoAggregation&&S!==ke.BarAndLineSplitByNoAggregation&&(ee=np({data:ee,x:y.series[0].x,splitByField:Dn(y.series[0].query?.where)})),Gr(c.uid,{computedSelectionDataItems:ee}),f===!0){let te=Array.from(new Set(Y)),le=fe(c.uid,"computedSelectionIndexes");le===void 0&&(le=new Map),te.length===F.length?le.set(e??0,{}):le.set(e??0,{indexesToSelect:te}),Gr(c.uid,{computedSelectionIndexes:le})}}else if(g!==void 0&&U)P=yz({chart:c,selectionIndexes:g,queryObject:i});else{let Y=G=>{let ee=G.dataItem?.dataContext;return $v({elementDataContext:ee,options:d,selectionDataItems:P??O??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};F.forEach(G=>{let ee=G instanceof fr||G instanceof ma?G:G.bullets?.[0]?.get("sprite");ee!==void 0&&ra({element:ee,selected:yl(ee.uid,"selected")===!0||Y(ee),backToDefaultState:P===void 0||P.length===0})})}}if(Kr(t.uid,{isSelectionApplied:!0}),fz({chart:c,chartType:w,showMean:x})&&(mz(c),Q||U)){let Y=fe(c.uid,"computedSelectionDataItems")??P;Y=Array.from(new Set(Y?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),P!==void 0&&Gr(c.uid,{currentSelectionDataItems:Y}),p?.selectionOIDs!==void 0&&Gr(c.uid,{currentSelectionOIDs:p.selectionOIDs});let G;if(f===!0&&(G=fe(c.uid,"computedSelectionIndexes")??g,G!==void 0&&Gr(c.uid,{currentSelectionIndexes:G})),Y===void 0||Y.length===0)Zc({chart:c,selectionSource:Tr.ProgrammaticSelection});else{let ee={selectionItems:Y,selectionSource:Tr.ProgrammaticSelection};f===!0&&(ee.selectionIndexes=G),m!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(c.uid,"currentSelectionOIDs")),Nu({data:ee,htmlContainer:c.root.dom})}Gr(c.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function xz(a){let{chart:t,chartConfig:e,queryObject:i}=a;!fe(t.uid,"filterBySelection")&&!xs(i)&&t.series.values.filter(r=>!ah(r)&&!Zf(r)).forEach(r=>{let{seriesConfig:s,seriesIndex:n}=qf(r,e);if(s){let o=s.x,l=s.type===V.BoxPlotSeries||s.type===V.HeatSeries?s.y.toString():Gf(r),h=s.query?.where??"";_z({callbackProps:{...a,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:s})}})}async function rB(a){let{chart:t,selectionSource:e,queryObject:i,errorStrings:r}=a,s=fe(t.uid,"config"),n=xs(i);if(s){let o=fe(t.uid,"options"),l=ze(s.series),h=It(s.series),u=Eo(s),c=Mo(s.series),d=s.series[0].x,A=bh(i),p=n?void 0:Jm(Os(i))?.dateFieldsTimeZone,f;so(s)?f=s.outTimeZone:_h(s.series[0])&&(f=s.series[0].temporalBinning?.outTimeZone);let m=_a(i).find(g=>g.name===d)?.type;try{let g=new Set,y=[],x=new Map,w=[],S=[],F=0;if(t.series.each((T,L)=>{let{seriesConfig:O}=qf(T,s),I=O?.query?.where??"",U=O?.type===V.BoxPlotSeries?O.y.toString():Gf(T),P;T instanceof qt?P=T.dataItems:T instanceof Li?P=T.columns.values:T instanceof Vr&&(P=T.slices.values),P?.forEach((Q,Y)=>{let G=Q instanceof fr||Q instanceof ma?Q:Q.bullets?.[0]?.get("sprite");if(G!==void 0&&yl(G.uid,"selected")===!0){F+=1;let ee=Q instanceof fr||Q instanceof ma?Q.dataItem?.dataContext:Q.dataContext;if(ee!==void 0){if(ee=th({dataContext:ee,yAxisField:U,yList:c,xAxisField:d,splitBy:I,chartType:l,chartSubType:h,showOutliers:u,isFeatureCollectionLayer:Oo(i)}),g.has(JSON.stringify(ee))||(g.add(JSON.stringify(ee)),y.push(ee)),Y!==void 0){let le=x.get(L)?.indexesToSelect??[];le.push(Y),x.set(L,{indexesToSelect:Array.from(new Set(le))})}let te=ee[Eu.uniqueIdsName]!==void 0?[ee[Eu.uniqueIdsName]].flat():[];if(te.length>0)S.push(...te);else if(!n&&o?.returnSelectionOIDs!==!1){let le=Tx({dataContext:ee,options:o,xAxisField:d,yAxisField:U??"",splitBy:I,xAxisFieldType:m,chartConfig:s,outTimeZone:f,dataTimeZone:p,runsOnClientQueryEngine:A,queryObject:i});w.push(le)}}}})}),F===0)Zc({chart:t,selectionSource:e});else{if(!n&&o?.returnSelectionOIDs!==!1&&w.length>0){let L={...fe(t.uid,"queryConfig")};delete L.groupByFieldsForStatistics,delete L.orderByFields,delete L.outStatistics;let O=await n1({whereList:w,queryObject:i,queryConfig:L,errorStrings:r});if(w.length===F)S=O;else for(let I=0;I<O.length;I+=1)S.push(O[I])}S=Array.from(new Set(S)),s.series.length>1&&h!==ke.BarAndLineNoAggregation&&h!==ke.BarAndLineSplitByNoAggregation&&(y=np({data:y,x:s.series[0].x,splitByField:Dn(s.series[0].query?.where)})),Gr(t.uid,{currentSelectionDataItems:y,currentSelectionOIDs:S,currentSelectionIndexes:x});let T={selectionItems:y,selectionSource:e};o?.returnSelectionIndexes===!0&&(T.selectionIndexes=x),o?.returnSelectionOIDs!==!1&&(T.selectionOIDs=S),n&&(T.selectionPixelTarget=ag({chartConfig:s,layer:i,selectionDataItems:y})),Nu({data:T,htmlContainer:t.root.dom})}}catch(g){Gr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:y}=g instanceof Tl?g.details.details:g.details??{};if(y===429)pz(t);else throw g}Gr(t.uid,{pendingSelectionQueries:!1})}}function FA(a,t){let{y:e,query:i}=t,r=It(a.series)===ke.BarAndLineSplitByNoAggregation?`${e.toString()}_${xh({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],s=Z.xAxisField,n=a.rotated===!0?"categoryYField":"categoryXField",o=a.rotated===!0?"valueYField":"valueXField",l=a.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=a.rotated===!0?"valueXField":"valueYField";return{xField:s,yField:r,xAxisField:l,yAxisField:h}}function nh(a){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:s,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=a,h=t.series.length===1,u=ze(t.series),c=!!(e||i||r||s||l),d=!1;switch(u){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return c||d}function Zk(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,r=n=>{let{type:o}=n;o==="selection"?bz(n.callbackProps):(xi(t,i.visible),n.styleCallback())},s=fe(t.chart?.uid??Number.NaN,"config");s&&rk({series:t,chartConfig:s,whenReadyCallback:()=>r(e)})}function _z(a){let{series:t,callbackProps:e,seriesConfig:i}=a;Zk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function oh(a){let{series:t,styleCallback:e,seriesConfig:i}=a;Zk({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function qk(a){let t;return a&&a.series.length>0&&(t=a.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function sB(a){let{series:t,chartConfig:e,isRotated:i}=a,r=$s(e),s=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===Oi.Stacked||r===Oi.Stacked100)?o:n;switch(r){case Oi.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof qt&&t.set("stackToNegative",s.stackNegativeValuesToBaseline??Z.lineSeries.stackNegativeValuesToBaseline);break}case Oi.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof ci&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof ci&&o.set("calculateTotals",!0));break}case Oi.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function TA(a,t){a.set("name",t)}function Cz(a){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=a,s=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[s,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let u=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:u,yAxis:h}}function PA(a,t){let{series:e}=t,i=ze(e);a instanceof Li&&(a.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?a.columns.template.set("ariaLabel",Sz()):a.columns.template.set("ariaLabel",ap()))}function Cu(a,t){a&&a.set("focusable",(t??0)<Z.focusableThreshold)}function wz(a){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:s,sizePolicyChangesRequireSeriesReinit:n}=a,o=!1,l=ze(e.series);switch(l){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:let h=e.series.length;l===V.BoxPlotSeries&&(oa(e)?h+=4:h*=5),o=s||r||i?.common?.numberOfSeriesChanged===!0||t!==h;break;case V.ScatterSeries:o=n===!0;break}return o}function aB(a){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=a,s=t.series[i];if(s){let n=It(t.series),o=s.name;if(n===ke.BarAndLineSplitBy||n===ke.BarAndLineSplitByNoAggregation){let l=Dn(s.query?.where);o=ng({queryObject:r,fieldName:l,fieldValue:o})??o}TA(e,o)}}function qf(a,t){let e=ze(t?.series),i,r;return t?.series.forEach((s,n)=>{let o=!1;e!==V.BoxPlotSeries||a instanceof La?o=a.get("id")===s.id:a instanceof Bo?o=a.get("id")?.replace(`_${ji.Top}`,"")===s.id||a.get("id")?.replace(`_${ji.Median}`,"")===s.id||a.get("id")?.replace(`_${ji.Bottom}`,"")===s.id:a instanceof qt&&(o=a.get("id")?.replace(`_${ji.Outliers}`,"")===s.id),o&&(i=s,r=n)}),{seriesConfig:i,seriesIndex:r}}function Bz(a,t){let{chart:e}=t;if(e instanceof bi){let i=t.get("xAxis"),r=t.get("yAxis"),s=a.dataItem?.get("valueX"),n=a.dataItem?.get("valueY");if(typeof s=="number"&&typeof n=="number"){let o=i?.getPrivate("min",0),l=i?.getPrivate("max",0),h=r?.getPrivate("min",0),u=r?.getPrivate("max",0),c=i?.get("start",0),d=i?.get("end",1),A=r?.get("start",0),p=r?.get("end",1),f=o+c*(l-o),m=o+d*(l-o),g=h+A*(u-h),y=h+p*(u-h),x=s<f||s>m||n<g||n>y;a.set("forceHidden",x)}}}function Jk(a,t){let e=(i,r)=>{r!==void 0&&Bz(r,t)};a.on("x",e),a.on("y",e)}function DA(a,t){let e=t;e===void 0&&(e=fe(a.uid,"config"));let i=fe(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function _A(a,t){a.set("turboMode",t===!0)}function Sz(){return`{${xr.xField}} {${xr.yField}} {${xr.valueField}}`}function e$(a){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=a,s=qn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(s!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:Bx(n,s.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=s.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Fz(a){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,{chart:s,root:n}=t,o=s!==void 0?fe(s.uid,"formatLocale"):void 0,l=r??e$({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return SA(t.uid,{numberFormatter:l}),l}function Tz(a){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof s=="number"&&e.type===V.NumberAxisFormat)n=e$({root:r,intlOptions:e.intlOptions,formatLocale:o})(s);else if(i===!0&&e.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=It(l?.series);if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(h)&&typeof s=="string"){let c=fe(t.uid,"fieldList");s=Or(c,s)}let{characterLimit:u}=e;n=s?.toString()??"",!zi(n)&&n!==Z.htmlEmptyContent&&(n=mx({stringToTruncate:n,characterLimit:u}))}return n.toString()}}function Pz(a){let{chart:t,isXAxis:e=!0,formatOptions:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(so(l)){let h=cF(l.series[0],e);if(h&&s!==void 0&&s!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Nm.DayOfWeek:n=IT({weekdayNumber:Number(s),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Nm.MonthOfYear:n=kT({monthNumber:Number(s),format:i.intlOptions,locale:o});break;case Nm.HourOfDay:n=LT({hour:Number(s),format:i.intlOptions,locale:o});break}}else if(s!==void 0&&s!==""){if(i.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=s?.toString()??"",!zi(n)&&n!==Z.htmlEmptyContent)){let{characterLimit:u}=i;n=mx({stringToTruncate:n,characterLimit:u})}}}return n.toString()}}function Dz(a){let{axis:t,formatOptions:e,isTimeOnlyField:i,setTimeZone:r,outTimeZone:s}=a,n={...$o(e)},o=["year","month","day","hour","minute","second"],l=i?{hour:{hour:"numeric",minute:"numeric"}}:{},h=i?{hour:{hour:"numeric",minute:"numeric"}}:{};if(r){let u=Tc.new(s??n.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);r&&t.root.timezone?.name!==u.name&&(t.root.timezone=u);for(let c=0;c<o.length;c+=1){let d=o[c],A=c===0?d:o[c-1],p=e?.formatPerDateTimeUnit?.[d]??n,f=e?.formatPerDateTimeUnit?.[A];p&&Object.values(p).find(m=>m!==void 0&&(typeof m!="string"||!zi(m)))&&(l[d]=p,h[d]=f??p)}Object.keys(l).length>0&&t.set("dateFormats",l),Object.keys(h).length>0&&t.set("periodChangeDateFormats",h)}}function wI(a){let{axis:t,valueFormat:e,chartType:i}=a,r=lB({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof mr,n=ba(e)&&t instanceof ci&&!(t instanceof mr),o=r&&t instanceof Br;return!s&&!n&&!o}function t$(a){let{dataContext:t,defaultValue:e,chartUID:i}=a,r=oo(t),s=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(s?.series),l=It(s?.series);return o===V.BoxPlotSeries&&(l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy)?r=t?.[Wm]:o===V.HistogramSeries?r=t?.[pd.Start]:(o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&s!==void 0?r=no({value:JA(l,s?.series?.[0]),dataContext:t,useRendererLabel:Hu(s,n),config:s}):r=no({value:e??"",dataContext:t,useRendererLabel:Hu(s,n),specificField:pt.xAxisField}),{labelValue:r,originalLabelValue:oo(t)}}function Lz(a,t){let{chart:e}=a;if(e!==void 0){let i=a.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html");let r=t!==void 0?"html":"text";i.adapters.add(r,(s,n)=>{let o=s,l=vu(a.uid,"labelFormatter");if(!ka(n.uid,"isGuide")&&l!==void 0){let h,u;switch(!0){case a instanceof mr:case a instanceof ci:h=n.dataItem?._settings?.value;break;case a instanceof Br:{let c=s,d=n.dataItem?.dataContext,A=fe(a.chart?.uid??Number.NaN,"config");if(ze(A?.series)===V.HeatSeries){let f=jc(a.get("renderer"))?d?.[xr.xField]:d?.[xr.yField];typeof f=="string"&&(c=f)}let p=t$({dataContext:d,defaultValue:c,chartUID:e.uid});h=p.labelValue,u=p.originalLabelValue}break}h!==void 0&&(o=l(h,u),r==="html"&&(o=Er(o)))}return o}),i.adapters.add(r,(s,n)=>{let o=s,l=fe(e.uid,"config");if(!ka(n.uid,"isGuide")&&l!==void 0){let h=cs(l),u=jc(a.get("renderer"),h),c=l.axes?.[u?0:1],d=i.get("maxWidth"),A=r==="html"?{wrap:i.get("oversizedBehavior")==="wrap",maxWidth:typeof d=="number"?d:void 0}:void 0,p={type:Rt.TS,...c?.labels.content,text:s};o=xa({textSymbol:p,format:r==="text"?"amChartsV5":"html",defaults:A})}return o}),r==="html"&&i.set("html",Z.htmlEmptyContent)}}function Iz(a){let{axis:t,isRotated:e,chartConfig:i}=a;if(t instanceof Br||t instanceof mr){let r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===GA.Descending:!1,s=e===!0;r&&t instanceof mr&&(s=!s),t.get("renderer").set("inversed",s)}}function kz(a){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:s,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:u,errorStrings:c}=a,{chart:d}=t;if(d!==void 0){let A=lB({isXAxis:e,chartType:i,valueFormat:r}),p=t instanceof ci&&!(t instanceof mr)&&ba(r),f=t instanceof mr&&ro(r),m=t instanceof Br&&A;if(!(p||f||m))Zm("mismatchAxisAndValueFormat",c);else{Lz(t,o);let g=o;o===void 0&&(i===V.HeatSeries?g=Pz({chart:d,isXAxis:e,formatOptions:r}):m?g=Tz({chart:d,formatOptions:r,isNonAggregatedChart:s}):p?g=Fz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):f&&Dz({axis:t,formatOptions:r,isTimeOnlyField:l,setTimeZone:h,outTimeZone:u})),SA(t.uid,{labelFormatter:g})}}}function $z(a){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:s,timeIntervalInfoWasReset:n}=a,o=ze(i),l=cs(a.chartConfig),h=l?1:0,u=l?0:1,c=e?.[h]?.valueFormat,d=e?.[u]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),f=A===void 0||r||c!==void 0&&wI({axis:A,valueFormat:c,chartType:o}),m=p===void 0||r||d!==void 0&&wI({axis:p,valueFormat:d,chartType:o});return n||s?.[0]||s?.[1]||f||m}function jc(a,t){return a instanceof ns&&!t||a instanceof ya&&t||a instanceof Ns}function Zv(a){return a instanceof ns}function Oz(a){return a instanceof ya}function Ez(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=fe(t.chart?.uid??Number.NaN,"config"),s=e===!0&&Ag({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof mr||t instanceof ci)&&t.setAll({logarithmic:s,treatZeroAs:s?Z.treatZeroValueAs:0,maxPrecision:s?0:void 0})}function Mz(a,t){if(a instanceof ci){let{integerOnlyValues:e,valueFormat:i}=t,r=Lx(i)?i.intlOptions.maximumFractionDigits:void 0;a.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function i$(a,t){let{chart:e}=t,i=Xr.new(a,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,s)=>{let n=r??"",o=vu(t.uid,"labelFormatter");if(!s.isHidden()&&o&&e){let{label:l}=s,h=l.get("text")??"";if(t instanceof ci){let u=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(u)?h:u,r)}else if(t instanceof Br){let u=l.dataItem?.dataContext,c=t$({dataContext:u,defaultValue:r,chartUID:e.uid});n=o(c.labelValue??h,r??c.originalLabelValue)}}return n}),i}function Rz(a){let{root:t,axis:e,displayCursorTooltip:i}=a;(e.get("tooltip")??i$(t,e)).set("forceHidden",i!==!0)}function Uz(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=a;if(t instanceof mr){let s,n=1;if(r)s="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case er.Second:s="second";break;case er.Minute:s="minute";break;case er.Hour:s="hour";break;case er.Day:s="day";break;case er.Week:s="week";break;case er.Month:s="month";break;case er.Year:s="year";break}n=o}}s!==void 0&&t.set("baseInterval",{timeUnit:s,count:n})}}function Vz(a,t){let{buffer:e}=t??{};return e??=Z.buffer,a instanceof ci&&!(a instanceof mr)&&!e}function Nz(a,t){let e=!1;return a instanceof ci&&!(a instanceof mr)&&(e=Vz(a,t),a.set("strictMinMax",e)),e}function BI(a,t){let e=a;if(a){let i=(t?Math.ceil:Math.floor)(Math.log10(a));e=Math.pow(10,i)}return e}function Qz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:s,isLogarithmic:n}=a,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&s===Oi.Stacked100&&!n&&t instanceof ci&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),u=t.chart?.series.getIndex(0)?.data.values;if(h&&u){let c=qk(t.chart),d=dg({chartConfig:h,isSecondValueAxis:i,seriesIds:c});o=!pT({seriesConfig:h.series,filteredData:u,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Hz(a){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o}=a,{minX:l,maxX:h,minY:u,maxY:c}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[u,c],p=d,f=A;return i===Oi.Stacked100?(p=Number.NaN,f=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===Oi.Stacked&&!r)&&(p=Math.min(d,0),f=Math.max(A,0)),p=s??p,f=n??f),o===!0&&(p=Number.isFinite(p)?BI(p,!1):p,f=Number.isFinite(f)?BI(f,!0):f),{min:p??Number.NaN,max:f??Number.NaN}}function jz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:s,maximumFromConfig:n}=a,o=s,l=n,{chart:h}=t;if(h){let u=fe(h.uid,"config");if(h instanceof bi&&u){let c=ze(u.series),d=$s(u)??Oi.Side,A=qk(h),p=dg({chartConfig:u,isSecondValueAxis:i,seriesIds:A}),f=Ln(r),m=Px({chartConfig:u,chartData:f??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Hz({dataMinMax:m,chartType:c,stackedType:d,isXAxis:e,minimumFromConfig:s,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function Wz(a){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:u}=a,{chart:c}=t;if(c&&(t instanceof ci||t instanceof mr))if(Nz(t,e)){let d=i,A=r,p=jc(t.get("renderer"),l);if(Qz({chartType:n,stackedType:o,isLogarithmic:s,axis:t,xAxis:p}))d=d??0,A=A??100;else if(JI({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s})){let f=jz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:u});d=f.min,A=f.max}A=A??Number.NaN,d=d??Number.NaN,s&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?Z.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Iv(a,t){if(a!==void 0){let e=fe(a.uid,"config");if(e!==void 0){let i=ze(e?.series),r=$s(e)??Oi.Side,s=cs(e),n=a.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],u=a.yAxes.getIndex(0),c=a.xAxes.getIndex(1)??a.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:u,axisConfig:l},{axis:c,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:f}=d;if(A!==void 0){let{minimum:m,maximum:g,buffer:y,isLogarithmic:x}=p??{};Wz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:s,minimumFromConfig:m,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:f})}})}}}function Xz(a){a.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=vu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.strokeWidth??Z.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(s=(s===0?1:s)*1.5),s}),a.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=vu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(s=1),s})}function nB(a){a.on("visible",()=>{a.chart instanceof bi&&Iv(a.chart)}),a.events.on(Ji.DataValidated,()=>{a.chart instanceof bi&&Iv(a.chart)})}function zz(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&ka(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function SI(a,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),s=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof ci){let u=l.get("renderer")instanceof Ns;n.push({isXAxis:jc(l.get("renderer"),i),isSecondValueAxis:h===1&&s!==V.HistogramSeries,minimum:u?l.get("min"):l.getPrivate("min"),maximum:u?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&ux(n,e.root.dom)}}}function r$(a){a.ghostLabel?.set("forceHidden",!0)}function FI(a){let{axis:t,start:e,end:i}=a;t.zoom(e??0,i??1)}function TI(a){a!==void 0&&a.setAll({start:0,end:1})}function Gz(a){a instanceof bi&&(a.xAxes.each(t=>FI({axis:t})),a.yAxes.each(t=>FI({axis:t})),TI(a.get("scrollbarX")),TI(a.get("scrollbarY")))}function Yz(a){let{axis:t,guide:e,guideIndex:i}=a,{root:r,chart:s}=t,n=e.get("axisFill");n?.set("tooltip",Xr.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&s!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(Z.tooltipWidth,s.seriesContainer.width())),o.get("background")?.set("fillOpacity",Hm);let l=fe(s.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.setAll({tooltipText:void 0,tooltipHTML:Z.htmlEmptyContent,tooltipPosition:Z.guideTooltipPosition}),n.adapters.add("tooltipHTML",(h,u)=>{let c=h,{dataItem:d}=u;if(!(t.get("renderer")instanceof Ns)){let A=vu(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof as){let p,f;switch(!0){case t instanceof mr:case t instanceof ci:p=d.get("value"),f=d.get("endValue");break;case t instanceof Br:p=d.get("category"),f=d.get("endCategory");break}c=A({guideName:KW(d.uid,"name")??"",start:p??"",end:f,guideIndex:i})}}return Er(c??"")});let l=n.getTooltip();l&&(xk(l),l.adapters.add("x",(h,u)=>{let{chart:c}=t;if(c&&u){let d=fe(c.uid,"config"),A=fe(c.uid,"isRotated");if(d){let p=jc(t.get("renderer"),A)?0:1,f=d?.axes?.[p]?.guides?.[i];if(f){let{tooltipReverseColor:m}=f;_k(u,m)}}}return h}))}}function Kz(a,t){return e=>{let{guideName:i,start:r,end:s}=e,{chart:n,root:o}=a,l="";if(n!==void 0){let h=fe(n.uid,"config"),u=fe(n.uid,"isRotated"),c=jc(a.get("renderer"),u)?0:1,d=h?.axes?.[c]?.guides,A=r,p=s;if(a instanceof mr){let x;if(n!==void 0){let w=fe(a.chart?.uid??Number.NaN,"formatLocale");x=qn({root:a.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),s!==void 0&&(p=x.format(s,S))}}else if(a instanceof ci&&!(r instanceof Date)&&!(s instanceof Date)){let x=d?.find(T=>T.name===i),{start:w,end:S}=s$(a,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let F=vu(a.uid,"numberFormatter")??(T=>Jh.new(o,{}).format(T));A=F(A),p!==void 0&&(p=F(p))}else a instanceof Br&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Vc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Zz(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;SA(t.uid,{guideTooltipFormatter:e??Kz(t,i)})}function PI(a){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(!0){case e instanceof mr:s=t;break;case e instanceof Br:s=t.toString();break;case e instanceof ci:if(typeof t!="number"){let n=t.toString().trim(),o=rp(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function oB(a,t){return a.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=ka(i?.uid??Number.NaN,"isGuide")??!1,s=ka(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case gr.Ticks:n=!r;break;case gr.Guides:n=r;break;case gr.GaugeTicksWithLabels:n=s&&"value"in e&&e.value!==void 0;break}return n})??[]}function qz(a){let{axis:t,guideConfig:e,above:i}=a,r=e!==void 0,s=t.axisRanges.length,n=t.axisRanges.insertIndex(s,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:Z.zIndexes.guide}),m4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function Jz(a){let{axis:t,guideIndex:e,guideConfig:i}=a,r=qz({axis:t,guideConfig:i,above:i?.above});Yz({axis:t,guide:r,guideIndex:e});let s=r.get("tick"),n=r.get("label"),o=r.get("grid");s!==void 0&&s.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function eG(a,t){let e=oB(a,gr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)Jz({axis:a,guideIndex:r,guideConfig:t?.[r]})}function tG(a,t){let{start:e,end:i}=t,r=e!==null?e:void 0,s=i!==null?i:void 0,{chart:n}=a,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=hg(o),h=a.data.values,u=h.find(c=>c[Z.originalCategoryValue]===e)?.[l];if((typeof u=="string"||typeof u=="number"||u instanceof Date)&&(r=u),s!==void 0)for(let c=h.length-1;c>=0;c-=1){let d=h[c],A=d[l];if(d[Z.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){s=A;break}}}return{modifiedStart:r,modifiedEnd:s}}function s$(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=a instanceof ci?a.get("min"):void 0,n=a instanceof ci?a.get("max"):void 0,o=PI({inputValue:e,axis:a,axisMin:s,axisMax:n}),l=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?PI({inputValue:i,axis:a,axisMin:s,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function iG(a){let{axis:t,guide:e,guideConfig:i}=a,{start:r,end:s}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Br&&n instanceof bi&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=tG(t,i);o={isValidGuide:!0,start:l??r,end:h??s}}else o=s$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof mr:case t instanceof ci:l="value",h="endValue";break;case t instanceof Br:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function rG(a){let{axis:t,guide:e,guideConfig:i}=a;if(e){let r=e.get("axisFill"),s=e.get("label");if(i!==void 0){ZW(e.uid,{name:i.name}),xi(e,i.visible),iG({axis:t,guide:e,guideConfig:i}),i.style.type===Rt.SLS?xu({root:t.root,element:r,fillSymbol:{type:Rt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Rt.SFS&&xu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),g4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?Z.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),s!==void 0&&s.set("disabled",!0)}}function sG(a){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){let s=oB(t,gr.Guides);e.forEach((n,o)=>{rG({axis:t,guide:s[o],guideConfig:n})}),Zz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function aG(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ka(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function DI(a,t){let e=oB(a,gr.Guides).length,i=t?.length??0,r=e-i;aG({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function nG(a){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=a;i&&DI(t),eG(t,e),sG(a),DI(t,e)}function a$(a){return a.getCellWidthPosition()*a.width()}function oG(a,t){let e=a.get("renderer");if(a!==void 0){let i=Number.NaN;if(t===tr.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{ka(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let s=a instanceof mr?a.width()/Z.maxNumberOfXAxisLabelsInWrapModeForDateAxis:a.width()/Z.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,s)}else if(t===tr.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(s=>{ka(s.uid,"isGuide")!==!0&&s.width()>0&&(r=Math.max(r,s.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>Z.shortestMinGridDistance&&e.set("minGridDistance",i)}}function lG(a){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:s}=a,{horizontalAxisLabelsBehavior:n}=a;n===void 0&&(n=e!==V.HistogramSeries?tr.Rotate:tr.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof s=="number"&&Number.isFinite(s))l=s;else if(e!==V.RadarSeries)if(o instanceof Ns)l=Z.gauge.gaugeMinGridDistance;else if(t instanceof ci)l=o instanceof ns?Z.xAxisMinGridDistance:Z.yAxisMinGridDistance;else if(o instanceof ns)if(r===!0)l=Z.secondRotatedValueAxisMinGridDistance;else if(n===tr.Rotate){let h=i.content.font?.size??Z.generalFontSize,u=t instanceof Br?Z.categoryAxisLabelPadding:Z.axisLabelPadding;l=h*u}else if(n===tr.Wrap||n===tr.Hide){n===tr.Hide&&(l=t instanceof Br?Z.xCategoryAxisMinGridDistance:Z.xAxisMinGridDistance);let h=vu(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ji.BoundsChanged,()=>{oG(t,n)}),SA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===tr.Stagger?l=Z.staggerMinGridDistance:l=t instanceof Br?Z.xCategoryAxisMinGridDistance:Z.xAxisMinGridDistance;else l=t instanceof Br?Z.yCategoryAxisMinGridDistance:Z.yAxisMinGridDistance;o.set("minGridDistance",l)}function LI(a=1,t){let e=t.get("renderer"),i=a$(t),r=0;e.labels.each(o=>{ka(o.uid,"isGuide")!==!0&&o.getText()!==void 0&&o.width()>0&&(r+=1)});let s=r>0?t.width()/r:0,n=Math.max(i,s)*a;if(Number.isFinite(n)&&n>0){let o=e.labels.template;o.get("maxWidth")!==n&&(o.set("maxWidth",n),o.get("html")!==void 0&&(o.set("html",void 0),o.set("html",Z.htmlEmptyContent)))}}function II(a,t=1){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),a.events.on(Ji.BoundsChanged,()=>LI(t,a)),LI(t,a)}function hG(a){let t=a.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=ka(i.uid,"isGuide")!==!0?vu(a.uid,"rotation")??0:e??0;return t.set("centerX",r===0?He:ge),r})}function qC(a){if(a?.chart!==void 0){let t=a.get("renderer");if(fe(a.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(s=>{if(ka(s.uid,"isGuide")!==!0&&s.width()>0){let n=e===Z.rotatedAxisLabel.rotation?Math.sqrt(s.innerHeight()**2+s.innerWidth()**2):s.innerWidth();n>i&&(i=n)}});let r=a$(a)>=i+5;if(!r&&e===0||r&&e===Z.rotatedAxisLabel.rotation){let s=r?Z.axisLabel.rotation:Z.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:s,centerX:r?He:ge,centerY:jr,paddingTop:r?Z.axisLabel.paddingTop:Z.rotatedAxisLabel.paddingTop,paddingLeft:r?Z.axisLabel.paddingLeft:Z.rotatedAxisLabel.paddingLeft,paddingRight:r?Z.axisLabel.paddingRight:Z.rotatedAxisLabel.paddingRight}),SA(a.uid,{rotation:s})}}}}function kI(a){let t=a.get("renderer");hG(a),t.labels.template.setAll({oversizedBehavior:"hide"}),a instanceof mr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),a.events.on(Ji.BoundsChanged,()=>qC(a)),a.events.on(Ji.DataValidated,()=>qC(a)),qC()}function $I(a){if(a&&fe(a.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;a.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(a.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),s=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:Z.axisTickLength),s&&s.set("dy",n?t:0)}),t&&a.get("renderer").labels.template.get("paddingBottom")!==t+5&&a.get("renderer").labels.template.set("paddingBottom",t+5))}}function uG(a){a.get("renderer").labels.template.set("oversizedBehavior","wrap"),a.events.on(Ji.BoundsChanged,()=>$I(a)),$I(a)}function cG(a){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:Z.yAxisLabelMaxWidth,textAlign:"end"})}function dG(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:s,chartType:n}=a,o=t.get("renderer");if(!(o instanceof Ns))if(Zv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?tr.Hide:e){case tr.Hide:break;case tr.Stagger:uG(t),II(t,2);break;case tr.Wrap:II(t);break;case tr.Rotate:kI(t);break;default:s.content.angle!==null&&s.content.angle===void 0&&kI(t);break}else Oz(o)&&i!==tr.Hide&&cG(t)}function AG(a){let{renderer:t,axisConfig:e,labelConfig:i}=a;switch(e.labelsOrientation){case zb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case zb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment="middle";break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function pG(a){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,chartType:n}=a,o={...e},l=t.get("renderer"),h=l?.get("opposite");Zv(l)?(o.content.horizontalAlignment="center",o.content.verticalAlignment=h?"bottom":"top"):(o.content.horizontalAlignment=h?"left":"right",o.content.verticalAlignment="middle"),l instanceof Ns?AG({renderer:l,axisConfig:a.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation"),Cn({label:l.labels.template,labelConfig:o}),dG({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:s,chartType:n})}function fG(a){let{axis:t,isHorizontalAxis:e,label:i}=a,{chart:r}=t;if(r){let s=e?"width":"height",n=e?Xt.XAxisTitle:Xt.YAxisTitle;gl({chart:r,label:i,labelType:n}),t.onPrivate(s,ks(()=>gl({chart:r,label:i,labelType:n}),Z.debounceTime))}}function mG(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(u=>t in u),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Gr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Ru(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function gG(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=fe(a.uid,"config"),s=i.get("min")??r?.axes?.[0].minimum??Z.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??Z.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e??void 0}function yG(a){let{root:t}=a,e=dl.new(t,{radius:Bt(100)}),i=a.makeDataItem({value:0,bullet:hu.new(t,{sprite:e})});return a.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function vG(a){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=a,s=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof dl),n=s?.get("bullet")?.get("sprite");if(s&&n instanceof dl){let{startWidth:o,endWidth:l,innerRadius:h}=Z.gaugeNeedle;xu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),xu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),s.set("value",gG(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function bG(a,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:Z.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&a.set("innerRadius",Bt(e))}function xG(a,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:Z.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:Z.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&a.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&a.set("endAngle",i)}function _G(a){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=a,{axes:h,series:u}=e,c=ju(e),{featureIndex:d,x:A}=u[0],p=h?.[0],f=t.xAxes.getIndex(0),m={...p};if(f instanceof ci&&f.get("renderer")instanceof Ns&&m!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=m;bG(t,e),xG(t,e);let x=Mw({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});m.minimum=x.minimum,m.maximum=x.maximum;let{min:w,max:S}=H1(m),F={...m};Ru(g)?(F.minimum=0,F.maximum=1,j1({axisConfig:F,axisMin:m.minimum,axisMax:m.maximum})):(F.minimum=w,F.maximum=S),hB({chartConfig:e,axis:f,axisConfig:F,axisConfigIndex:0,externalAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,queryObject:r});let T=c?x?.dataValue:mG({x:A,data:i.dataItems,chart:t,minimum:m.minimum,maximum:m.maximum,valueFormat:g});vG({chart:t,axis:f,needleConfig:y,gaugeValue:T})}}function CG(a){let{chart:t,axesConfig:e,errorStrings:i}=a,{root:r}=t;Pl({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let s=t.xAxes.push(ci.new(r,{min:0,max:100,renderer:Ns.new(r,{})}));yG(s),r$(s)}function wG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:s,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:u,utilsStrings:c,errorStrings:d,queryObject:A}=a,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axes:m}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Pl({chartType:g,axesConfig:m,errorStrings:d}),[{axis:y,axisConfig:m?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:m?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:F,axisConfig:T,externalAxisLabelFormatter:L}=w;F!==void 0&&!F.isDisposed()&&T!==void 0&&hB({axis:F,data:s,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:T,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axisLabelsBehaviorChanged:i,utilsStrings:c,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:u,errorStrings:d,queryObject:A})}),Iv(t,s)}function BG(a){let{chart:t,axesConfig:e,x:i,errorStrings:r}=a,{root:s}=t,n=V.HistogramSeries;Pl({chartType:n,axesConfig:e,errorStrings:r});let o={root:s,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let u=mu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ns.new(s,{}),isXAxis:!0,x:i}),c=mu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:ns.new(s,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});mu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:ya.new(s,{}),isXAxis:!1,x:i}),u&&(u.get("renderer").grid.template.set("location",0),u.get("renderer").ticks.template.set("location",0),u.get("renderer").labels.template.set("location",0)),c&&(c.set("visible",!1),c.get("renderer").grid.template.set("visible",!1),c.get("renderer").ticks.template.set("visible",!1),c.get("renderer").labels.template.set("visible",!1))}}function lB(a){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=a;return e===V.HeatSeries||t&&(dd(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&ba(i))}function n$(a,t){return t?`${Aw}_x_${a.uid}`:`${Aw}_y_${a.uid}`}function mw(a,t){let e=fe(a.chart?.uid??Number.NaN,"config"),i=cs(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,s=zz(a),n=s;switch(r){case"baseline":case"middle":n=s/2;break;case"bottom":n=Math.min(s,0);break}t?.set("dy",n)}function SG(a){a instanceof ci&&(a.onPrivate("min",SI),a.onPrivate("max",SI))}function FG(a){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=a,{root:r}=t,s=e?{...Z.xAxisTitleLabel,verticalCenter:"top"}:Z.yAxisTitleLabel,n=bA({root:r,id:n$(t,e),defaults:s});return t.get("renderer")instanceof ya&&i!==!0||t.get("renderer")instanceof ns&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ji.BoundsChanged,()=>mw(t,n),Z.debounceTime),t.events.onDebounced(Ji.DataValidated,()=>mw(t,n),Z.debounceTime),fG({axis:t,isHorizontalAxis:e,label:n})),!e&&t.chart&&Hc({chart:t.chart,label:n,labelType:Xt.YAxisTitle}),n}function mu(a){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:s,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=a,u;if(lB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let c;switch(o){case V.HeatSeries:c=i?xr.xField:xr.yField;break;case V.HistogramSeries:c=pd.Start;break;case V.BoxPlotSeries:c=l;break;default:c=Z.xAxisField;break}c&&(u=e.push(Br.new(t,{categoryField:c,renderer:s})))}else if(ro(r))u=e.push(mr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:s}));else if(ba(r)&&(u=e.push(ci.new(t,{strictMinMax:!0,renderer:s})),n&&u instanceof ci)){let c=e.getIndex(0);c instanceof ci&&u.set("syncWithAxis",c)}if(u!==void 0&&!h){Xz(u),i$(t,u);let c=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;u.get("renderer").setAll({cellStartLocation:c,cellEndLocation:d}),o===V.HeatSeries&&(s instanceof ns||s instanceof ya)&&s.setAll({layer:Z.zIndexes.axisLineLayer}),r$(u),SG(u),Zv(u.get("renderer"))?u.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",Z.axisLabelSpacing.horizontalAxisLabelPaddingTop):s instanceof ya&&u.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",Z.axisLabelSpacing.verticalAxisLabelSidePadding)}return u}function TG(a){let{axis:t,data:e,chartConfig:i,dataWasUpdated:r,axesInitializationNeeded:s,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=a;if(e&&(r||s||n||o)){let l=Ln(e);if(so(i)){let h=JW(t),u=e?.heatChartAxesData,c=h===xr.xField?u?.xAxisData:u?.yAxisData;t.data.setAll(c??[])}else t.data.setAll(l??[])}}function PG(a){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=a,r=t.get("renderer"),{chart:s}=t,n=Zv(r),o=Ii({childId:n$(t,n),parent:t,useChildId:!0})??FG({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Kt){let l=n?{...Z.xAxisTitleLabel,verticalCenter:"top"}:Z.yAxisTitleLabel;if(Cn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&mw(t,o),s){let h={chart:s,label:o,labelType:n?Xt.XAxisTitle:Xt.YAxisTitle};gl(h)}}}function hB(a){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:s,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:u,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:f,chartConfig:m,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=a,{visible:F,lineSymbol:T,title:L,labels:O,isLogarithmic:I,grid:U,displayCursorTooltip:P,displayZeroLine:Q,valueFormat:Y,guides:G,tickSpacing:ee,dateBaseInterval:te}=o,{root:le}=t,z=ze(m.series),K=$s(m),we=cs(m),{chart:se}=t,de=se?fe(se.uid,"config"):void 0,$e=se?fe(se.uid,"options"):void 0,Ye=Os(S),We=_a(Ye).find(Bi=>Bi.name===de?.series?.[0]?.x),qe=aT(We),Tt=tp({chartConfig:m,queryObject:S,options:$e}),At=_h(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,_i=t.get("renderer");SA(t.uid,{zeroGridLine:{displayZeroLine:Q,strokeWidth:U?.width??Z.lineWidth,visible:U!==void 0}}),Ez({axis:t,isLogarithmic:I,axisConfigIndex:l}),kz({axis:t,isXAxis:jc(t.get("renderer"),we),chartType:z,formatOptions:Y,isNonAggregatedChart:p,overridePercentMultiplication:K===Oi.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:qe,setTimeZone:Tt,outTimeZone:At,errorStrings:w}),Iz({axis:t,isRotated:we,chartConfig:m}),Uz({axis:t,timeIntervalInfo:h,dateBaseInterval:te,xFieldIsTimeOnly:qe}),Fo({element:_i,lineSymbol:{color:[...Z.color],...T??ZA()},visible:F}),Fo({element:_i.ticks.template,lineSymbol:T,visible:F}),Fo({element:_i.grid.template,lineSymbol:U,visible:F}),U===void 0&&(t.get("renderer").grid.template.set("strokeWidth",Z.lineWidth),t.markDirtyValues()),pG({axis:t,axisConfig:o,chartType:z,horizontalAxisLabelsBehavior:u,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d}),PG({axis:t,axisTitleConfig:L,isSecondValueAxis:f}),Mz(t,o),lG({axis:t,chartType:z,labelConfig:O,horizontalAxisLabelsBehavior:u,isSecondValueAxis:f,tickSpacing:ee}),Rz({root:le,axis:t,displayCursorTooltip:P}),nG({axis:t,guideConfigs:G,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),TG({axis:t,data:e,chartConfig:m,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:s})}function DG(a){let{chart:t,errorStrings:e}=a,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:s}=r.series[0],n=cs(r),{axes:o}=r,l=ze(r.series);Pl({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:s,chartType:l},u=n?o?.[1]:o?.[0],c=n?o?.[0]:o?.[1],d=u?.valueFormat,A=c?.valueFormat;if(d!==void 0&&A!==void 0&&(mu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:ns.new(i,{}),isXAxis:!n,x:s}),mu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:ya.new(i,{}),isXAxis:n,x:s}),o?.[2]!==void 0)){let p=n?ns:ya;mu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:s})}}}function LG(a){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:s}=a,{root:n}=t,o=i?.[0],l=i?.[1];if(Pl({chartType:e,axesConfig:i,errorStrings:s}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};mu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Ns.new(n,{}),isXAxis:!0,x:r}),mu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:ou.new(n,{}),isXAxis:!1,x:r})}}function o$(a){let{chart:t,chartConfig:e,errorStrings:i}=a,{axes:r}=e,{x:s}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof Da&&CG({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:BG({chart:t,axesConfig:r,x:s,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:DG({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof Da&&LG({chart:t,axesConfig:r,chartType:n,x:s,errorStrings:i});break}}function IG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:s,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:u,xAxisLabelFormatter:c,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:f,errorStrings:m,queryObject:g}=a,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=cs(e),F=ze(e.series),T=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),O=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Pl({chartType:F,axesConfig:w,errorStrings:m});let U=S?1:0,P=S?0:1,Q=w?.[U],Y=w?.[P];[{axis:L,axisConfig:Q,externalAxisLabelFormatter:S?d:c,axisConfigIndex:U},{axis:O,axisConfig:Y,externalAxisLabelFormatter:S?c:d,axisConfigIndex:P},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(G=>{let{axis:ee,axisConfig:te,axisConfigIndex:le,externalAxisLabelFormatter:z,isSecondValueAxis:K}=G;ee!==void 0&&!ee.isDisposed()&&te!==void 0&&hB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:u,axisConfig:te,axisConfigIndex:le,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:s,isNonAggregatedChart:T,isSecondValueAxis:K,utilsStrings:f,chartConfig:e,externalAxisLabelFormatter:z,guideTooltipFormatter:p,errorStrings:m,queryObject:g})}),Iv(t,n)}function l$(a){let{chart:t,chartConfig:e}=a,i=ze(e.series);i===V.GaugeSeries&&t instanceof Da?_G(a):i===V.HistogramSeries?wG(a):IG(a)}function kG(a,t){let e=zt(Z.backgroundColor);t.set("background",or.new(a,{fill:e.color,fillOpacity:e.opacity}))}function h$(a,t){let e=zt(t??Z.backgroundColor);a.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function u$(a,t){let e=ze(t.series);return a instanceof bi&&e!==V.GaugeSeries}function $G(a,t){let e=Z.cursorCrosshair.style,i={type:Rt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=a.get("cursor")?.lineX,s=a.get("cursor")?.lineY;Fo({element:r,lineSymbol:i}),Fo({element:s,lineSymbol:i})}function c$(a){let{root:t,chart:e,config:i,queryObject:r,errorStrings:s}=a,n;if(u$(e,i)){let o=e instanceof Da?Al:Yn;n=e.set("cursor",o.new(t,{})),iz({chart:e,queryObject:r,errorStrings:s})}return n}function d$(a){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:s,errorStrings:n}=a;if(u$(e,r)){let o=e.get("cursor")??c$({root:t,chart:e,config:r,queryObject:s,errorStrings:n});o&&($G(e,i?.style),o.lineX.set("visible",i?.verticalLineVisible??Z.cursorCrosshair.verticalLineVisible),o.lineY.set("visible",i?.horizontalLineVisible??Z.cursorCrosshair.horizontalLineVisible))}}function OG(a){let{chart:t,enabled:e}=a,i=e?"pointer":"default";t instanceof ms&&t.series.each(r=>{switch(!0){case r instanceof Li:r.columns.template.set("cursorOverStyle",i);break;case r instanceof qt:let s=Qt(r.uid,"bulletTemplate");s!==void 0&&!ah(r)&&s.set("cursorOverStyle",i);break;case r instanceof Vr:r.slices.template.setAll({cursorOverStyle:i});break}})}function EG(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=fe(t.uid,"isRotated"),s=fe(t.uid,"config"),n=ze(s?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&ba(s?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&dd(s?.axes?.[0]?.valueFormat),u=(n===V.LineSeries||n===V.RadarSeries)&&ro(s?.axes?.[0]?.valueFormat),c,d=!1,A=e??fe(t.uid,"actionMode")??Z.actionMode;if(fe(t.uid,"filterBySelection")===!0)c=Hi.None,d=!1;else if(i!==void 0)c=e1({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:o||l||u?c=Hi.ZoomXY:c=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?c=r===!0?Hi.SelectY:Hi.SelectX:c=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:c=Hi.None,d=!0;break;case Ut.None:c=Hi.None,d=!1;break}t instanceof bi&&t.get("cursor")!==void 0&&c!==void 0&&t.get("cursor")?.set("behavior",c),OG({chart:t,enabled:d})}function MG(a,t){t!==void 0&&(t.width!==void 0&&a.set("width",cI(t.width)),t.height!==void 0&&a.set("height",cI(t.height)),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom))}function gw(a){let{root:t,defaults:e,parent:i,id:r,index:s}=a,n=Re.new(t,{});return MG(n,e),i!==void 0&&i.children.insertIndex(s??i.children.length,n),r!==void 0&&n.set("id",r),n}function yw(a,t){t?a.hide():a.show()}function RG(a,t){let e=gw({root:a,defaults:Z.headerContainer,parent:t,id:Hs(Gv,t.uid),index:0}),i=gw({root:a,defaults:Z.headerContainer,parent:t,id:Hs(eB,t.uid),index:1}),r=bA({root:a,parent:e,defaults:Z.titleLabel,id:Hs(Bk,e.uid)}),s=bA({root:a,parent:i,defaults:Z.subtitleLabel,id:Hs(Sk,i.uid)});Hc({chart:t,label:r,labelType:Xt.ChartTitle}),Hc({chart:t,label:s,labelType:Xt.ChartSubTitle})}function A$(a,t){let{title:e,subtitle:i}=t??{},r=fe(a.uid,"config"),s=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:Z.headerContainer.paddingBottom??0,n=Ii({childId:Gv,parent:a});if(n!==void 0){n.set("paddingBottom",s);let l=Ii({childId:Bk,parent:n});l!==void 0&&(Cn({label:l,labelConfig:e,defaults:Z.titleLabel}),gl({chart:a,label:l,labelType:Xt.ChartTitle}),yw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Ii({childId:eB,parent:a});if(o!==void 0){o.set("paddingBottom",s),n!==void 0&&n.set("paddingBottom",Z.titleAndSubtitlePaddingBottom);let l=Ii({childId:Sk,parent:o});l!==void 0&&(Cn({label:l,labelConfig:i,defaults:Z.subtitleLabel}),gl({chart:a,label:l,labelType:Xt.ChartSubTitle}),yw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function UG(a){let{root:t}=a,e=gw({root:t,defaults:Z.footerContainer,parent:a,id:Hs(Yv,a.uid)}),i=bA({root:t,parent:e,id:Hs(Fk,e.uid)});Hc({chart:a,label:i,labelType:Xt.ChartFooter})}function p$(a,t){let e=Ii({childId:Yv,parent:a});if(e!==void 0){let i=Ii({childId:Fk,parent:e});i!==void 0&&(Cn({label:i,labelConfig:t,defaults:Z.footer}),gl({chart:a,label:i,labelType:Xt.ChartFooter}),yw(e,i.get("disabled")||(t?.content.text??"")===""))}}function f$(a){if(!(a instanceof Da)&&a instanceof bi){let{root:t}=a,e=ll.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=ll.new(t,{orientation:"vertical",visible:!1});a.setAll({scrollbarX:e,scrollbarY:i})}}function VG(a,t){if(t!==void 0){let e=zt(t),i=t[3]/255,r=i/2;[{element:a.get("background"),specificOpacity:r},{element:a.startGrip.get("background")},{element:a.endGrip.get("background")},{element:a.thumb}].forEach(s=>{let{element:n,specificOpacity:o}=s;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:a.get("background"),stateName:"default",specificOpacity:r},{element:a.startGrip.get("background"),stateName:"default"},{element:a.startGrip.get("background"),stateName:"hover"},{element:a.startGrip.get("background"),stateName:"down"},{element:a.endGrip.get("background"),stateName:"default"},{element:a.endGrip.get("background"),stateName:"hover"},{element:a.endGrip.get("background"),stateName:"down"},{element:a.thumb,stateName:"default"},{element:a.thumb,stateName:"hover"},{element:a.thumb,stateName:"down"}].forEach(s=>{let{element:n,stateName:o,specificOpacity:l}=s;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function NG(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.setAll({height:t,minHeight:t}):a.setAll({width:t,minWidth:t}))}function QG(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.set("scale",e),a.endGrip.set("scale",e)}}function OI(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.set("marginBottom",t):a.set("marginLeft",t),a.markDirtyBounds())}function m$(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(!(t instanceof Da)&&t instanceof bi){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&f$(t);let s=t.get("scrollbarX"),n=t.get("scrollbarY");[s,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(xi(o,!h),l!==void 0&&!h){let{width:u,color:c,gripSize:d,margin:A}=l;OI(o,A??u??Z.scrollbarPadding),VG(o,c),QG(o,d),NG(o,u)}else OI(o,0)}})}}function HG(a){vk(a)}function EI(a){return a.get("legendDataItem")?.get("marker").children.getIndex(0)}function jG(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function WG(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=i,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,i),f=oT(e),m=Li.new(t,{id:h,name:u,stacked:f,turboMode:!0,xAxis:r,yAxis:s,[A]:c,[p]:d,maskBullets:!1});os(m.columns.template,n?.selectionTheme);let g=Dt.new({});return Kr(m.uid,{bulletTemplate:g}),To({element:m.columns.template,series:m,queryObject:o,errorStrings:l}),m.bullets.push(y=>{let x=ft.new(y,{},g);return fa.new(y,{sprite:x})}),m.columns.template.set("width",Bt(100)),nB(m),Gw(m,n?.tooltipFormatter),Nk(m),PA(m,e),m.appear(),m}function XG(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.root,h=Gf(t),u=new Set,c,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},f={},m={},g=Jb(i),y=Qt(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==bs.Solid&&xu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:tk(t.chart)??[...Z.backgroundColor]}),t.columns.length===0?f=Ja({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o});let S=w[Z.xAxisField]===Z.nullValue,F=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;f=Ja({...p,seriesSymbol:F,element:x,colorMatch:n,rendererSymbol:d}),gA(x,f.stylingInfo),S||(u.add(JSON.stringify(f.symbolWithColorInfo)),m=f)}}),r>1){let x=EI(t);if(x!==void 0)Ja({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),gA(x,m.stylingInfo);else if(t.chart instanceof bi){let w=t.chart.children.values.find(S=>S instanceof nl);w!==void 0&&w.events.once(Ji.BoundsChanged,()=>{gA(EI(t),m.stylingInfo)})}Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return u.size<=1&&(c=m.symbolWithColorInfo??A),jG(t,h),c}function zG(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n,interactionsDisabled:o}=a,l=a.seriesConfig,h=t.chart;if(h!==void 0){let u=fe(h.uid,"config"),c=u?.series.length??0,d=It(u?.series);_A(t,!1);let A=XG({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:c,chartSubType:d,colorMatch:s,rendererType:n});o&&_A(t,!0),e.set(i?.get(l.id)??r,A),e.size===c&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:DA(h)})}}function GG(a){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:u}=a,c=r.series[i];if(e&&c?.type===V.BarSeries&&(o===!0||s===!0||u===!0||l===!0||h||n===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=FA(r,c);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function YG(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:u,seriesWereReinitialized:c,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:f}=a,m=i.series[s],g=i.rotated;if(t.set("id",m.id),xi(t,m.visible),os(t.columns.template,r?.selectionTheme),Cu(t.columns.template,e?.dataItems?.length),sB({series:t,chartConfig:i,isRotated:g}),HG({seriesType:V.BarSeries,series:t,seriesConfig:m,isRotated:g,dataLabelsConfig:m.dataLabels,autoInverseDataLabelTextColor:d,externalDataLabelFormatter:r?.dataLabelFormatter}),GG({columnSeries:t,data:e,seriesIndex:s,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:c,rotationChanged:o,stackedTypeChanged:f,sortChanged:p}),qw({series:t,seriesConfig:m,fieldList:A,queryObject:h,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:u}),nh(a)){let y={series:t,seriesConfig:m,seriesIndex:s,colorMatch:a.colorMatch,seriesIndexMapper:a.seriesIndexMapper,seriesSymbolMapForEvent:a.seriesSymbolMapForEvent,rendererType:a.rendererType,interactionsDisabled:r?.interactionsDisabled};oh({styleCallback:()=>zG(y),series:t,seriesConfig:m})}aB({chartConfig:i,series:t,seriesIndex:s,queryObject:h})}function KG(a){let{chartConfig:t,seriesConfig:e}=a,i=cs(t),r=t.showOutliers,s=t.standardizeValues,n=oa(t),{y:o}=e,l=ug(t),h=It(l.series),u=n?void 0:e?.query?.where,c={y:h===ke.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:u,showOutliers:r,standardizeValues:md(h)?s:!1},d=qv({chartConfig:t,seriesConfig:e,key:Zt.ThirdQuartile});return{properties:{...d.properties,low:Zi({...c,key:Zt.Min}),open:Zi({...c,key:Zt.FirstQuartile}),high:Zi({...c,key:Zt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function ZG(a){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function qG(a){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,showMean:n,rendererType:o,options:l}=a,{root:h}=t,u=e.fillSymbol??Gm(i),c={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:s,isChartFillSymbol:!0};_A(t,!1),t.columns.length===0?c=Ja({...d,seriesSymbol:u,element:ft.new(h,{})}):t.columns.each(A=>{c=Ja({...d,seriesSymbol:u,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:o})})}),Ja({...d,seriesSymbol:c?.symbolWithColorInfo??u,element:t.columns.template,colorMatch:s}),l?.interactionsDisabled&&_A(t,!0)}function JG(a){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=a;os(t.columns.template,r?.selectionTheme),Cu(t.columns.template,i?.dataItems?.length),TA(t,e.name),ZG(a),nh(a)&&oh({styleCallback:()=>qG(a),series:t,seriesConfig:e})}function e5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.BoxPlotSeries){let c=KG({chartConfig:r,seriesConfig:h});u=La.new(t,{id:h.id,turboMode:!0,xAxis:e,yAxis:i,[c.dataFields.low]:c.properties.low,[c.dataFields.open]:c.properties.open,[c.dataFields.high]:c.properties.high,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.columns.template.setAll({themeTags:[],width:Bt(80)}),os(u.columns.template,n?.selectionTheme),To({element:u.columns.template,series:u,queryObject:o,errorStrings:l})}return u}function t5(a){let{chartConfig:t,seriesConfig:e}=a,i=It(t.series),{showOutliers:r,standardizeValues:s}=t,{y:n}=e,o=e?.query?.where,l=ug(t),h=qv({chartConfig:l,seriesConfig:e,key:Zt.Average}),u=Zi({y:i===ke.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:md(i)?s:!1,key:Zt.Average});return h.properties.value=u,h}function i5(a){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function r5(a){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a,h=Qt(t.uid,"bulletTemplate");h&&os(h,l?.selectionTheme),Cu(h,i?.meanLines?.length),TA(t,e?.name),i5({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o})}function s5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.LineSeries){let c=t5({chartConfig:r,seriesConfig:h});u=qt.new(t,{id:h.id,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.appear();let d=Dt.new({});Kr(u.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:d}),os(d,n?.selectionTheme),u.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return u&&To({element:p,series:u,queryObject:o,errorStrings:l}),f}),u.strokes.template.set("lineJoin",Z.lineJoin)}return u}function a5(a,t){return a.get("id")===`${t}_${ji.Outliers}`}function n5(a){let{chartConfig:t,seriesConfig:e}=a;return qv({chartConfig:t,seriesConfig:e,key:Zt.Outlier})}function o5(a){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function l5(a,t){return(a??Z.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function h5(a){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:s}=a;if(Qt(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Rt.SMS,style:KA.Circle,color:o?.color,size:Z.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let u=h.bullets?.[0]?.get("sprite");if(u!==void 0){let c=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});Ja({root:t.root,seriesSymbol:l,element:u,colorMatch:r,rendererSymbol:c})}})}let n=l5(s,i.visible);xi(t,n)}function u5(a){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a;if(t&&i.type===V.BoxPlotSeries){let h=Qt(t.uid,"bulletTemplate");h&&os(h,l?.selectionTheme),Cu(h,e?.outliers?.length),o5({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:o}),nh(a)&&oh({styleCallback:()=>h5(a),series:t,seriesConfig:i})}}function c5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],u;if(h.type===V.BoxPlotSeries){let c=n5({chartConfig:r,seriesConfig:h});u=qt.new(t,{id:`${h.id}_${ji.Outliers}`,xAxis:e,yAxis:i,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),u.strokes.template.set("forceHidden",!0);let d=Dt.new({});Kr(u.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:d}),os(d,n?.selectionTheme),u.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return u&&To({element:p,series:u,queryObject:o,errorStrings:l}),g5({outlierSeries:u,bullet:f,seriesConfigId:h.id}),f}),u.appear()}return u}function d5(a){let{chartConfig:t,seriesConfig:e,type:i}=a,r="";switch(i){case ji.Top:r=Zt.Max;break;case ji.Median:r=Zt.Median;break;case ji.Bottom:r=Zt.Min;break}return qv({chartConfig:t,seriesConfig:e,key:r})}function A5(a){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function p5(a){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:s,chartSubType:n,rendererType:o}=a;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=o1({data:e.dataItems,colorMatch:s,chartSubType:n,rendererType:o}),u=(i.fillSymbol??Gm(r)).color,c={type:Rt.SLS,width:Z.boxPlot.boxPlotLineWidth,color:h?Z.boxPlot.boxPlotWhiskersColor:u};Ja({root:l,seriesIndex:r,seriesSymbol:c,element:t,colorMatch:s})}}function f5(a){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}=a,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(xi(t,l),nh(a)&&oh({styleCallback:()=>p5(a),series:t,seriesConfig:i}),A5({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}))}function JC(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,type:n,options:o,queryObject:l,errorStrings:h}=a,u=r.series[s],c;if(u.type===V.BoxPlotSeries){let d=d5({chartConfig:r,seriesConfig:u,type:n});c=Bo.new(t,{id:`${u.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[d.dataFields.value]:d.properties.value,[d.dataFields.category]:d.properties.category}),os(c.strokes.template,o?.selectionTheme),To({element:c.strokes.template,series:c,queryObject:l,errorStrings:h})}return c}function qv(a){let{chartConfig:t,seriesConfig:e,key:i}=a,r=cs(t),s=t.showOutliers,n=t.standardizeValues,o=oa(t),l=It(t.series),{x:h,y:u}=e,c=o?void 0:e?.query?.where,d={y:l===ke.BoxPlotMultiFieldsAndCategory&&typeof u=="string"?u:void 0,chartSubType:l,splitBy:c,showOutliers:s,standardizeValues:md(l)?n:!1},A=l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy?Wm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:Zi({key:i,...d}),category:A}}}function m5(a,t){return a.series.values.find(e=>a5(e,t))}function g$(a,t){let e=a.series.values.find(s=>s.get("id")===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.get("id")===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.get("id")===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function y$(a){return a!==ke.BoxPlotMonoField&&a!==ke.BoxPlotMultiFields&&a!==ke.BoxPlotMonoFieldAndCategory}function v$(a){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=a,r,s,n=fe(t.uid,"config");if(n){let o=cs(n),l=oa(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),u=h?.get("cellStartLocation"),c=h?.get("cellEndLocation");if(u&&c){let d=u/(l?1:n.series.length);r=u+e/i*(c-u)+d,s=u+(e+1)/i*(c-u)-d}}return{startLocation:r,endLocation:s}}function g5(a){let{outlierSeries:t,bullet:e,seriesConfigId:i}=a;if(t){let{chart:r}=t;if(r){let s=fe(r.uid,"config");if(s){let n=It(s.series);if(y$(n)){let o=r.series.values.filter(h=>h instanceof La),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:u}=v$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&u!==void 0&&e.set("locationX",(h+u)/2)}}}}}}function y5(a){let t=fe(a.uid,"config");if(t){let e=It(t.series),i=t.series.length,r=cs(t)?a.yAxes.getIndex(0)?.get("renderer"):a.xAxes.getIndex(0)?.get("renderer"),s=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(s&&n){let o=a.series.values.filter(l=>l instanceof La);o.forEach((l,h)=>{let{topStepLineSeries:u,medianStepLineSeries:c,bottomStepLineSeries:d}=g$(a,l.get("id")??"");if(y$(e)){let{startLocation:A,endLocation:p}=v$({chart:a,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[u,c,d].forEach(f=>{f!==void 0&&(f.set("stepWidth",Bt(60/i)),A&&p&&f.set("locationX",(A+p)/2))})}else[u,c,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function v5(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries)[e5(a),JC({...a,type:ji.Top}),JC({...a,type:ji.Median}),JC({...a,type:ji.Bottom}),c5(a)].forEach(n=>{n&&s.push(n)});else if(r===V.LineSeries){let n=s5(a);n&&s.push(n)}return s}function b5(a){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=a;if(t&&e)if(y5(t),i instanceof La&&r.type===V.BoxPlotSeries){i.set("id",r.id);let s=i.get("id")??"";JG({...a,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=g$(t,s),h=[ji.Top,ji.Median,ji.Bottom];[n,o,l].forEach((c,d)=>{c&&(c.set("id",`${r.id}_${h[d]}`),f5({...a,stepLineSeries:c}))});let u=m5(t,s);u&&(u.set("id",`${r.id}_${ji.Outliers}`),u5({...a,outlierSeries:u}))}else i instanceof qt&&r.type===V.LineSeries&&r5({...a,meanLineSeries:i})}function x5(a){vk(a)}function uB(a){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=a,r=e?jC:Ec;return t&&(r=e?HC:i?NC:VC),r}function _5(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0)break}return n}function C5(a){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t.root,l=_5({series:t,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:n});return Ja({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Zb(i),element:t,colorMatch:s,rendererSymbol:l,visible:e.visible}).symbolWithColorInfo}function w5(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n}=a,o=!1,l,h=Qt(t.uid,"bulletTemplate");if(h!==void 0){xi(t.bulletsContainer,r.markerVisible!==!1&&r.visible!==!1);let{markerSymbol:u}=r;u===void 0&&(u=Kb(),u.color=n),s?u.color=n:u.color??=n;let c=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s});c?.outline&&(u.outline??=c.outline,u.outline.color=c.outline.color),dk({element:h,markerSymbol:u});let d=new Set,A;t.dataItems.forEach(p=>{let f=p.bullets?.[0]?.get("sprite");if(f!==void 0){let m=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s}),g=Ja({root:t.root,seriesIndex:e,seriesSymbol:u,element:f,colorMatch:s,rendererSymbol:m});l=g.symbolWithColorInfo,A=g.stylingInfo,gA(f,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function B5(a,t){if(a.showArea===!0){let{color:e,opacity:i}=a.areaColor?zt(a.areaColor):{color:t.get("stroke"),opacity:Z.lineSeries.areaOpacity};t.set("fill",e),t.fills.template.set("fillOpacity",i)}t.fills.template.set("visible",a.showArea===!0)}function b$(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:u}=a,{chart:c,root:d}=t;if(c){let A=t instanceof pl;xi(t,e.visible);let p=uB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:u});t.set("curveFactory",p);let f=C5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,rendererType:n}),m=w5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,lineColor:f.color});B5(e,t),xi(t,e.visible),xi(t.bulletsContainer,e.markerVisible!==!1&&e.visible!==!1),h.set(l?.get(e.id)??i,{lineSymbol:f,markerSymbol:m}),h.size===r&&(nn({data:Fr(h),htmlContainer:d.dom,chartId:t.chart?.get("id"),colorMatchApplied:DA(c)}),h.clear())}}function S5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=s,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,s),f=qt.new(t,{id:h,name:u,xAxis:i,yAxis:r,[A]:c,[p]:d,maskBullets:!1,curveFactory:uB({isRadarLineSeries:!1,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:Z.zIndexes.lineSeries});f.appear();let m=Dt.new({});return os(m,n?.selectionTheme),Kr(f.uid,{bulletTemplate:m}),f.bullets.push(g=>{let y=ft.new(g,{role:Z.aria.defaultChartItemRole,ariaLabel:ap(),hoverOnFocus:!0,tooltip:Kf({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:Z.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),Jk(y,f),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",Z.lineJoin),nB(f),PA(f,e),f}function F5(a){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:u}=a,c=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&c.type===V.LineSeries&&(o===!0||s===!0||l===!0||h||n===!0||u===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=FA(r,c);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function T5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let u=fe(h.uid,"config"),c=fe(h.uid,"isRotated")??!1,d=It(u?.series);b$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:c})}}function P5(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.set("connect",e!==!1&&r!==Wb.Null)}function D5(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:u,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p}=a,f=i.series[s],m=i.rotated;t.set("id",f.id),xi(t,f.visible),xi(t.bulletsContainer,f.markerVisible!==!1&&f.visible);let g=Qt(t.uid,"bulletTemplate");g&&os(g,r?.selectionTheme),Cu(g,e?.dataItems?.length),sB({series:t,chartConfig:i,isRotated:m}),x5({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:m,dataLabelsConfig:f.dataLabels,externalDataLabelFormatter:r?.dataLabelFormatter}),P5(t,f),F5({lineSeries:t,seriesIndex:s,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:u,stackedTypeChanged:p,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:A}),qw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),nh(a)&&oh({styleCallback:()=>T5(a),series:t,seriesConfig:f}),aB({chartConfig:i,series:t,seriesIndex:s,queryObject:o})}function x$(a,t){let e=a.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";Qf({label:e,labelOutputProp:i});let r=(s,n)=>{let o=s??"",l=Qt(a.uid,"pieChartDataLabelFormatter");if(l){let h=n.dataItem;if(h){let u=h?.get("valuePercentTotal"),c=h?.get("value"),d=h?.get("category")??s??"";o=l(d,c,u)}}return i==="html"?Er(o):o};e.adapters.add(i,(s,n)=>r(s,n)),a.labels.each(s=>{s.adapters.remove("text"),s.adapters.remove("html"),Qf({label:s,labelOutputProp:i}),s.adapters.add(i,n=>r(n,s))})}function L5(a){let t=a.dataItem?.component,e;if(t instanceof Vr){let i=fe(t.chart?.uid??Number.NaN,"config");if(i?.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??Z.pieChart.dataLabelsInside,s=zt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??zt(Z.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??pt.options.autoInverseDataLabelTextColor,l=a.dataItem?.dataContext?.[pt.pieChart.technicalFieldSliceId],h=t.slices.values.find(c=>(c.dataItem?.dataContext)[pt.pieChart.technicalFieldSliceId]===l)?.get("fill")??zt(i.series[0].fillSymbol?.color).color,u=s??a.text.get("fill");e=u,u&&h&&o&&r&&(e=mk({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function I5(a,t){let e=a.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:Z.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:Z.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:He,centerY:He}),x$(a,t),e.adapters.add("fill",(i,r,s)=>L5(r))}function k5(a,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:u,dataLabelsCharacterLimit:c}=t,{chart:d}=a,A;if(d){let p=Kw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??Z.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??Z.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:u}),f=ig(c),m=Ra(fe(a.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=s??Z.pieChart.displayCategoryOnDataLabel?f(g):"",F=zi(S)?"":`${S}${m}`;return F=`${F}${w}`,t.dataLabels?.content!==void 0&&(F=xa({textSymbol:{...t.dataLabels.content,text:F},format:"amChartsV5",defaults:{...Z.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??Z.pieChart.dataLabels.wrap}})),F}}return A}function $5(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??Z.pieChart.dataLabelsOffset,n=e.dataLabelsInside??Z.pieChart.dataLabelsInside;x$(t,i),Kr(t.uid,{pieChartDataLabelFormatter:i??k5(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...Z.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??Z.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??Z.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!r?.visible,breakWords:h?!1:void 0,textAlign:o?"right":"left"});let u=t.labels.template.get("radius"),c=t.labels.template.get("baseRadius");n&&c!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),s!==void 0&&Number.isFinite(s)&&u!==s&&t.labels.template.set("radius",s))}var ew;function O5(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??ZA({color:jm});i&&(r.width=0),Fo({element:a.ticks.template,lineSymbol:r,visible:!i})}function E5(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=a;t.slices.each((r,s)=>{let n=r.dataItem?.dataContext,o=ww({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});xu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:s,isChartFillSymbol:!0})})}function M5(a,t){let e=new Map(a.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function R5(a){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:s,seriesWereReinitialized:n,labelUpdateNeeded:o,groupOfSlicesUpdateNeeded:l}=a,{x:h,y:u}=i,c=It([i]),d=c===ke.PieFromFields?ao:h;if(e&&(r===!0||n===!0||s===!0||l===!0))t.setAll({categoryField:d,valueField:c===ke.PieFromFields?Uu:u}),t.data.setAll(e.dataItems);else if(e&&o){let A=t.dataItems,p=A.map(m=>m.dataContext),f=M5(p,e.dataItems);A.forEach((m,g)=>{let y=f[g];if(typeof y[d]=="string"){let x=y[d];m.set("category",x);let w=m.dataContext;w&&(w[d]=x)}}),t.markDirty()}}function U5(a,t){let{innerRadius:e}=t;a.set("innerRadius",e?Bt(e):0)}function V5(a,t){let{startAngle:e,endAngle:i}=t;a.setAll({startAngle:e??Z.pieChart.min,endAngle:i??360+(a.get("startAngle")??0)})}function N5(a){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:s,errorStrings:n}=a,{id:o,name:l,x:h,y:u}=e,c=It([e]),d=Vr.new(t,{id:o,name:l,categoryField:c===ke.PieFromFields?ao:h,valueField:c===ke.PieFromFields?Uu:u});return I5(d,i?.dataLabelFormatter),Zw(d,i?.tooltipFormatter),d.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),os(d.slices.template,i?.selectionTheme),To({element:d.slices.template,series:d,queryObject:s,errorStrings:n}),d.appear(),r instanceof Vs&&_$(r,d),d}function Q5(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,options:o,labelUpdateNeeded:l,utilsStrings:h,groupOfSlicesUpdateNeeded:u}=a,{dataLabelFormatter:c,tooltipFormatter:d}=o??{};t.set("id",e.id),xi(t,e.visible),os(t.slices.template,o?.selectionTheme),R5({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:u}),nh(a)&&oh({styleCallback:()=>E5(a),series:t,seriesConfig:e}),$5({pieSeries:t,seriesConfig:e,dataLabelFormatter:c}),U5(t,e),V5(t,e),O5(t,e),U4({series:t,seriesConfig:e,tooltipFormatter:d});let{chart:A}=t;A instanceof Vs&&_$(A,t)}function _$(a,t){if(!a.isDisposed()){let e=a.radius();Gr(a.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(a.uid,"pieChartRadius")??Z.pieChart.chartOptimizedRadius),s=r,n=a.series?.values?.[0]??t,o=fe(a.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:u,alignDataLabels:c,dataLabelsOffset:d=Z.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&c===!0&&u===!0&&p!==!0){let f=Z.pieChart.chartOptimizedRadius/100,m=500,g=150,y=.6,x=.5,w=1,S=a.seriesContainer.width()-d*2,F=Math.max(S-g,0)/(m-g),T=F<1?Math.max(F**w*y,.4):Math.min(F**x*y,f);s=Bt(T*100)}else s=Bt(Z.pieChart.chartRadius);r.value.toFixed(1)!==s.value.toFixed(1)&&(Gr(a.uid,{pieChartRadius:s.percent}),ew&&clearTimeout(ew),ew=bu(()=>{let f=a.chartContainer.height();if(a.chartContainer.set("height",f+.1),a.set("radius",s),h&&!Number.isNaN(h)&&h>0){let m=(h??Z.pieChart.innerRadius)*s.value;a.set("innerRadius",Bt(m))}a.markDirty(),n.markDirty(),a.root.resize(),H5(a)})),n instanceof Vr&&n.labels.template.setAll({maxWidth:j5({seriesConfig:o?.series[0],chart:a,newChartRadius:s})})}return s};a.events.onDebounced(Ji.BoundsChanged,()=>i(),Z.debounceTime),i()}}function H5(a){bu(()=>{a.chartContainer.set("height",Bt(100)),a.root.resize()})}function j5(a){let{seriesConfig:t,chart:e,newChartRadius:i}=a,r=Z.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:s,dataLabelsOffset:n=Z.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&s===!0&&h!==!0&&o===!0){let u=e.seriesContainer.width(),c=e.seriesContainer.height(),d=i.value*Math.min(u,c),A=5,p=Math.floor((u-d)/2)-A-n;r=Math.min(p,r-A);let f=Z.pieChartDataLabel.minWidth;r<f&&(r=f)}}return r}function W5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:u}=s,{xField:c,yField:d,xAxisField:A,yAxisField:p}=FA(e,s),f=pl.new(t,{id:h,name:u,xAxis:i,yAxis:r,[A]:c,[p]:d,curveFactory:uB({isRadarLineSeries:!0,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:Z.zIndexes.lineSeries});f.appear();let m=Dt.new({});return Kr(f.uid,{bulletTemplate:m}),os(m,n?.selectionTheme),f.bullets.push(g=>{let y=ft.new(g,{tooltip:Kf({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:Z.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",Z.lineJoin),nB(f),PA(f,e),f}function X5(a){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l}=a,h=r.series[i];if(e!==void 0&&h?.type===V.RadarSeries&&(s||l||n||o)){let{xField:u,yField:c,xAxisField:d,yAxisField:A}=FA(r,h);t.setAll({[d]:u,[A]:c}),t.data.setAll(e.dataItems)}}function z5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let u=fe(h.uid,"config"),c=fe(h.uid,"isRotated")??!1,d=It(u?.series);b$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:c})}}function G5(a){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:s,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:u,queryObject:c,utilsStrings:d}=a,A=r.series[n];t.set("id",A.id),xi(t,A.visible),xi(t.bulletsContainer,A.markerVisible!==!1&&A.visible);let p=Qt(t.uid,"bulletTemplate");p&&os(p,s?.selectionTheme),Cu(p,e?.dataItems?.length),sB({series:t,chartConfig:r,isRotated:!1}),qw({series:t,seriesConfig:A,fieldList:u,queryObject:c,seriesIndex:n,tooltipFormatter:s?.tooltipFormatter,utilsStrings:d}),nh(a)&&oh({styleCallback:()=>z5(a),series:t,seriesConfig:A}),aB({chartConfig:r,series:t,seriesIndex:n,queryObject:c}),X5({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i})}function cB(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:s,errorStrings:n}=a,{rotated:o}=e,{root:l}=t,h=ze(e.series);t.series.clear();let u={root:l,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:s,errorStrings:n},c=[];for(let d=0;d<e.series.length;d+=1){let A=e.series[d],{assignToSecondValueAxis:p,type:f}=A,m=t instanceof bi?Cz({chart:t,chartType:h,rotated:o,assignToSecondValueAxis:p}):void 0,{xAxis:g,xAxisForHistogramOverlaySeries:y,yAxis:x}=m??{};switch(!0){case f===V.HeatSeries:{io(s),g&&x&&c.push(iX({...u,queryObject:s,xAxis:g,yAxis:x}));break}case h===V.BoxPlotSeries:{g&&x&&Dl(e)&&c.push(...v5({...u,xAxis:g,yAxis:x,seriesIndex:d,seriesConfig:e.series[d],chartConfig:e}));break}case f===V.HistogramSeries:{g&&x&&c.push(...hz({...u,seriesConfig:A,xAxis:g,xAxisForOverlaySeries:y,yAxis:x}));break}case f===V.PieSeries:{c.push(N5({...u,seriesConfig:A}));break}case(h===V.ComboLineAndBarSeries||h===V.BarSeries||h===V.LineSeries):{g&&x&&(f===V.BarSeries?c.push(WG({...u,seriesConfig:A,xAxis:g,yAxis:x})):f===V.LineSeries&&c.push(S5({...u,seriesConfig:A,xAxis:g,yAxis:x})));break}case f===V.RadarSeries:{g&&x&&c.push(W5({...u,seriesConfig:A,xAxis:g,yAxis:x}));break}case f===V.ScatterSeries:{g&&x&&c.push(...WX({...u,seriesConfig:A,xAxis:g,yAxis:x}));break}}}c.forEach(d=>{d instanceof ga&&d.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(c)}function Jv(a){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:s,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:u,stackedTypeChanged:c,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:f,queryObject:m,utilsStrings:g,errorStrings:y,groupOfSlicesUpdateNeeded:x,labelUpdateNeeded:w}=a,{chartRenderer:S}=e,{root:F}=t,{series:T}=e,L=ze(e.series),O=It(e.series),I=t.series.values,U=Fl(e),P=e.series.length,Q=new Map,Y=_a(m,i?.popupTemplateFieldInfosEnabled),G=Os(m),ee=xs(G)?void 0:sg(S,G.renderer),te=l||n||o||h||c,le={root:F,chartConfig:e,queryObject:m,options:i,colorMatch:U,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:Y,rendererType:ee,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:g,chartSubType:O,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??Z.options.autoInverseDataLabelTextColor},z={...le,numberOfSeries:P,rotationChanged:h,colorMatchChanged:u,stackedTypeChanged:c,seriesStyleChanged:d,seriesIndexMapper:s,seriesSymbolMapForEvent:Q,timeZoneChanged:A};for(let K=0;K<T.length;K++){let we=T[K],se=I[K],de=we.type;switch(!0){case L===V.HeatSeries:{se instanceof Li&&t instanceof bi&&so(e)&&nX({...z,series:se,data:r,seriesConfig:e.series[K],chartConfig:e});break}case L===V.BoxPlotSeries:{se=I.find($e=>$e.get("id")===we.id),t instanceof bi&&Dl(e)&&(se instanceof La||se instanceof qt)&&(de===V.BoxPlotSeries||de===V.LineSeries)&&b5({...z,chart:t,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e,showMean:oa(e),showOutliers:Eo(e)});break}case de===V.HistogramSeries:{se instanceof Li&&t instanceof bi&&vT(r)&&Az({...z,series:se,allChartSeries:I,data:r,seriesIndex:K,seriesConfig:we,axes:e.axes});break}case de===V.PieSeries:{se instanceof Vr&&t instanceof Vs&&mg(r)&&Q5({...le,series:se,seriesConfig:we,data:r,pieSlicesSymbols:f,groupOfSlicesUpdateNeeded:x,seriesStyleChanged:d,colorMatchChanged:u,labelUpdateNeeded:w});break}case(L===V.ComboLineAndBarSeries||L===V.BarSeries||L===V.LineSeries):t instanceof bi&&mg(r)&&(de===V.BarSeries&&se instanceof Li?YG({...z,series:se,data:r,seriesIndex:K}):de===V.LineSeries&&se instanceof qt&&D5({...z,series:se,seriesIndex:K,seriesConfig:we,data:r}));break;case de===V.ScatterSeries:{se=QX(t);let $e=Wk(t);se instanceof qt&&$e instanceof qt&&bT(r)&&YX({...z,series:se,seriesConfig:we,trendLineSeries:$e,sizePolicyChanged:p,data:r});break}case de===V.RadarSeries:{se instanceof pl&&t instanceof Da&&mg(r)&&G5({...z,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e});break}}te&&L&&se&&q4({chartType:L,series:se,tooltipFormatter:i?.tooltipFormatter})}xz({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:m,errorStrings:y})}function Y5(a){ah(a)||a.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=yl(i.uid,"selected")!==!0;ra({element:i,selected:r})}})}function K5(a){a.columns.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}function Z5(a){a.slices.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}async function q5(a){let{chart:t,queryObject:e,errorStrings:i}=a;if(Ww(t)){let r=fe(t.uid,"actionMode");r!==Ut.MonoSelection&&r!==Ut.None&&(t.series.each(s=>{switch(!0){case s instanceof Li:K5(s);break;case s instanceof qt:Y5(s);break;case s instanceof Vr:Z5(s);break}}),await rB({chart:t,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}))}}function J5(a,t){let e=!1,i=a.series,r=t.series,s=ze(r),n=(c,d)=>c.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let f=A;p.push(f.fillSymbol),f.slices?.forEach(m=>{p.push(m.fillSymbol)}),f.sliceGrouping&&p.push(f.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;s===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!rn(o,l),u=!1;switch(s){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:u=r.filter(c=>c.type===V.LineSeries||c.type===V.RadarSeries).some(c=>{let d=i.find(A=>A.id===c.id);return(c.showArea??Z.lineSeries.showArea)!==(d?.showArea??Z.lineSeries.showArea)||(c.lineSmoothed??Z.lineSeries.lineSmoothed)!==(d?.lineSmoothed??Z.lineSeries.lineSmoothed)||(c.markerVisible??Z.lineSeries.markerVisible)!==(d?.markerVisible??Z.lineSeries.markerVisible)||c.showArea&&!rn(c.areaColor,d?.areaColor)});break}return e=h||u,e}function eY(){Z_(XW)}function tY(a){a.dispose()}function iY(a){let{chart:t,chartContainer:e,chartLocale:i}=a,{root:r}=t,{t9nLocale:s}=Iu(e??document.documentElement),n=fd(e??document.documentElement);r.locale=i,Gr(t.uid,{locale:s,formatLocale:n,rtl:Vm(e??document.documentElement)==="rtl"})}function vw(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(Ww(t)){let r=e??fe(t.uid,"actionMode")??Z.actionMode;Gr(t.uid,{actionMode:r}),r===Ut.None&&Zc({chart:t,selectionSource:Tr.ClearSelection}),EG({chart:t,actionMode:r,cursorRange:i})}}function rY(a){return Ta.rootElements.find(t=>t.dom===a)?.dispose(),Dc.new(a)}function sY(a,t){a.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=Da;break;case V.PieSeries:i=Vs;break;default:i=bi;break}return a.container.children.push(i.new(a,{id:`${t?.id}`,layout:a.verticalLayout,paddingBottom:Z.chartPadding,paddingTop:Z.chartPadding,paddingRight:Z.chartPadding,paddingLeft:Z.chartPadding}))}function aY(a){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:s,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:u,queryObject:c,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f}=a;Jv({chart:t,chartConfig:e,options:u,data:i,dataWasUpdated:r,sortChanged:s,queryObject:c,pieSlicesSymbols:h,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:DA(t)})}function nY(a){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:s,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:u,queryObject:c,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:f,heatChartHideEmptyRowsAndColumnsChanged:m,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,utilsStrings:F,errorStrings:T,gaugeMinMaxFromData:L}=a,{axisLabelsBehaviorChanged:O}=a,I=$z({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:O,timeIntervalInfoWasReset:x}),U=I||wz({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:f});I&&(o$({chart:t,chartConfig:e,errorStrings:T}),O=[!0,!0]),U&&(t.series.clear(),cB({chart:t,chartConfig:e,options:u,utilsStrings:F,queryObject:c,errorStrings:T}),t.gridContainer?.toBack?.()),l$({chart:t,chartConfig:e,queryObject:c,data:i,dataWasUpdated:s,axesInitializationNeeded:I,heatChartHideEmptyRowsAndColumnsChanged:m,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:O,anyGuideAboveChanged:r,xAxisLabelFormatter:u?.xAxisLabelFormatter,yAxisLabelFormatter:u?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:u?.secondaryYAxisLabelFormatter,guideTooltipFormatter:u?.guideTooltipFormatter,gaugeInnerLabelFormatter:u?.gaugeInnerLabelFormatter,utilsStrings:F,errorStrings:T,gaugeMinMaxFromData:L}),Jv({chart:t,chartConfig:e,options:u,data:i,dataWasUpdated:s,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:U,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:c,utilsStrings:F,errorStrings:T}),ze(e.series)===V.HeatSeries&&Pk(t),m$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}function oY(a){let{chart:t,legend:e,updateProps:i,gaugeMinMaxFromData:r}=a,{chartConfig:s,options:n,dataWasUpdated:o,dataUpdateDetails:l,hasSeriesFilteredOut:h,pieSlicesSymbols:u,colorMatchApplied:c,rendererFieldNames:d,configWithAllSeries:A,t9nStrings:p,queryObject:f,dataInfo:m}=i,{data:g}=m,{utilsStrings:y,errorStrings:x}=p,{root:w}=t,{popupTemplateFieldInfosEnabled:S}=n??{};if(s===void 0)throw new Error;let F=fe(t.uid,"config");if(t.isDisposed()||!vx(F,s))throw new Tl(Ad.ChartDisposed);F??=s,Gr(t.uid,{queryObject:f});let T=It(s.series),L=cs(s);Gr(t.uid,{config:Fr(s),options:n,isNonAggregatedChart:!sp(T),isRotated:L,filterBySelection:n?.filterBySelection,colorMatchApplied:c,rendererFieldNames:d});let O=_a(f,S),I=NF(F,s),U=px(F,s),P=cx(F,s),Q=IF(F,s),Y=J5(F,s),G=JSON.stringify(qA(F.series))!==JSON.stringify(qA(s.series)),ee=tg(F,s),te=jF(F,s),le=Ax(F,s),z=WF(F,s),K=XF(F,s),we=ip({oldConfig:h?A:F,newConfig:s,dataWasUpdated:o}),se=!1,de=!1,$e=!1,Ye=!1;so(F)&&so(s)&&(se=EF(F,s),de=$F(F,s),$e=kF(F,s)||OF(F,s)||se,Ye=LF(F,s));let We=ax({oldConfig:F,newConfig:s,rotationChanged:U}),qe=F.series,Tt=s.series;if(o){let{queryConfig:R,count:Be}=m??{};Gr(t.uid,{fieldList:O,queryConfig:R,elementCount:Be,timeIntervalInfo:g!==void 0&&"timeIntervalInfo"in g?g.timeIntervalInfo:void 0})}t instanceof ms&&qW({chartSeries:t.series,oldSeries:qe,newSeries:Tt});let At=t instanceof Vs?Cw(qe,Tt):!1,_i=dx({oldConfig:F,newConfig:s}),Bi=new Map;switch((A??s).series.forEach((R,Be)=>{Bi.set(R.id,Be)}),h$(t,s.background),A$(t,{title:s.title,subtitle:s.subtitle}),p$(t,s.footer),d$({root:w,chart:t,cursorCrosshair:s.cursorCrosshair,config:s,queryObject:f,errorStrings:x}),ze(s.series)){case V.PieSeries:{t instanceof Vs&&(io(f),aY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,slicesConfigChangedSinceLastUpdate:_i,pieSlicesSymbols:u,chartRendererChanged:ee,sortChanged:we,queryObject:f,colorMatchChanged:P,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:At,seriesStyleChanged:Y}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof bi&&nY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,seriesIndexMapper:Bi,dataUpdateDetails:l,seriesFilteredOut:h,heatChartHideEmptyRowsAndColumnsChanged:Ye,sortChanged:we,axisLabelsBehaviorChanged:We,anyGuideAboveChanged:I,rotationChanged:U,colorMatchChanged:P,stackedTypeChanged:Q,seriesStyleChanged:Y,seriesCompositionChanged:G,timeZoneChanged:te,timeIntervalInfoWasReset:le,sizePolicyChanged:z,sizePolicyChangesRequireSeriesReinit:K,queryObject:f,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:r});break}t instanceof ms&&jk({chart:t,chartConfig:s,legend:e,showEmptySeries:n?.showEmptySeries??n?.hideEmptySeries===!1,seriesConfig:s.series,heatChartLegendUpdatedNeeded:$e,heatRulesTypeChanged:se,heatLegendPositionChanged:de,queryObject:f}),vw({chart:t,actionMode:n?.actionMode,cursorRange:n?.cursorRange}),sk({chart:t,chartConfig:s,delayCallback:o})}function lY(a){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:s,queryObject:n,utilsStrings:o,errorStrings:l}=a;cB({chart:t,chartConfig:i,options:s,utilsStrings:o,queryObject:n,errorStrings:l}),Jv({chart:t,chartConfig:i,options:s,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,utilsStrings:o,errorStrings:l}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:DA(t)})}function hY(a){let{chart:t,data:e,chartConfig:i,options:r,queryObject:s,seriesIndexMapper:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a;f$(t),m$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),o$({chart:t,chartConfig:i,errorStrings:l}),l$({chart:t,chartConfig:i,queryObject:s,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}),cB({chart:t,chartConfig:i,options:r,utilsStrings:o,queryObject:s,errorStrings:l}),t.gridContainer?.toBack?.(),Jv({chart:t,chartConfig:i,seriesIndexMapper:n,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:s,utilsStrings:o,errorStrings:l}),ze(i.series)===V.HeatSeries&&Pk(t)}function uY(a){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:s,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:u}=a,{errorStrings:c,utilsStrings:d,amChartsStrings:A}=l,{data:p,queryConfig:f,count:m,gaugeMinMaxFromData:g={}}=u??{};eY();let y=rY(t);s4(y,o?.animationEnabled),r4(y,o?.enableResponsiveFeatures);let x=sY(y,e);iY({chart:x,chartContainer:t,chartLocale:A});let w;if(!x.isDisposed()){let F=It(e.series),T=cs(e);Gr(x.uid,{options:i,filterBySelection:i?.filterBySelection,config:e,queryObject:h,isNonAggregatedChart:!sp(F),isRotated:T,colorMatchApplied:r,rendererFieldNames:s}),c$({root:y,chart:x,config:e,queryObject:h,errorStrings:c}),d$({root:y,chart:x,cursorCrosshair:e.cursorCrosshair,config:e,queryObject:h,errorStrings:c});let{title:L,subtitle:O,footer:I}=e;RG(y,x),A$(x,{title:L,subtitle:O}),UG(x),p$(x,I),kG(y,x),h$(x,e.background);let U=_a(h,i?.popupTemplateFieldInfosEnabled);Gr(x.uid,{fieldList:U}),Gr(x.uid,{options:i,queryConfig:f,elementCount:m,timeIntervalInfo:p!==void 0&&"timeIntervalInfo"in p?p.timeIntervalInfo:void 0});let P=new Map;e.series.forEach((Q,Y)=>{P.set(Q.id,Y)}),Gr(x.uid,{queryConfig:f,elementCount:m}),x instanceof bi?hY({chart:x,data:p,chartConfig:e,options:i,queryObject:h,utilsStrings:d,errorStrings:c,gaugeMinMaxFromData:g}):x instanceof Vs&&p&&"dataItems"in p&&(io(h),lY({chart:x,data:p,chartConfig:e,pieSlicesSymbols:n,options:i,queryObject:h,utilsStrings:d,errorStrings:c})),x instanceof ms&&(w=bI(x,e),jk({chart:x,chartConfig:e,legend:w,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:e.series,queryObject:h})),vw({chart:x,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),ZX(x),sk({chart:x,chartConfig:e,delayCallback:!0})}function S(){Gz(x)}return{update:F=>{w===void 0&&(w=bI(x,F.chartConfig)),oY({chart:x,legend:w,updateProps:F,gaugeMinMaxFromData:g})},dispose:()=>tY(y),resetZoom:S,clearSelection:()=>Zc({chart:x}),switchSelection:async()=>await q5({chart:x,queryObject:h,errorStrings:l.errorStrings}),exportImage:async F=>await C4({root:y,exportOptions:F}),setActionMode:(F,T)=>vw({chart:x,actionMode:F,cursorRange:T})}}function MI(a){let t="";for(let i=0;i<a.length;i+=1){let r=a[i];if(r.message&&r.message.trim()!==""){let s=a.length>1?"li":"p";t+=`<${s}>${r.message}</${s}>`}}let e=a.length>1?"ol":"div";return`<${e}>${t}</${e}>`}function cY(a){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=a,{schemaErrors:s,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):s.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=MI(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${MI(o)}`),{title:h,message:l}}function dY(a,t){let e;switch(a){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function $f(a){let t;if(a){let e=ik(a);e&&(t=[e.r,e.g,e.b,255])}return t}function AY(a,t){let e=window.getComputedStyle(a);return{backgroundColor:$f(e.getPropertyValue(t.background)),textColor:$f(e.getPropertyValue(t.text)),lineColor:$f(e.getPropertyValue(t.line)),secondaryLineColor:$f(e.getPropertyValue(t.secondaryLine)),spinnerColor:$f(e.getPropertyValue(t.spinner))}}function pY(a){let{config:t,themeColors:e}=a,i=Mu().toString();t?.axes?.forEach(r=>{e.textColor&&(r?.title?.content&&(!r.title.content.color||r.title.content.color.toString()===i)&&(r.title.content.color=e.textColor),r?.labels?.content&&(!r.labels.content.color||r.labels.content.color.toString()===i)&&(r.labels.content.color=e.textColor));let s=Mu();s[3]=Gb,r?.grid&&e.secondaryLineColor&&(!r.grid.color||r.grid.color.toString()===s.toString())&&(r.grid.color=e.secondaryLineColor,r.grid.color[3]=Gb),r?.lineSymbol&&e.lineColor&&(!r.lineSymbol.color||r.lineSymbol.color.toString()===dF.toString())&&(r.lineSymbol.color=e.lineColor),r?.guides?.forEach(n=>{n.label&&e.textColor&&(!n.label.color||n.label.color.toString()===i)&&(n.label.color=e.textColor),e.lineColor&&(n.style?.type===Rt.SLS&&(!n.style.color||n.style.color.toString()===zx.style.color?.toString())?n.style.color=e.lineColor:n.style?.type===Rt.SFS&&n.style?.outline&&(!n.style.outline.color||n.style.outline.color.toString()===zx.style.color?.toString())&&(n.style.outline.color=e.lineColor))})})}function fY(a){let{config:t,themeColors:e}=a;t&&e.backgroundColor&&(!t.background||t.background.toString()===mF().toString())&&(t.background=e.backgroundColor)}function mY(a){let{config:t,themeColors:e}=a,i=Mu().toString();e.textColor&&(t?.title?.content&&(!t.title.content.color||t.title.content.color.toString()===i)&&(t.title.content.color=e.textColor),t?.subtitle?.content&&(!t.subtitle.content.color||t.subtitle.content.color.toString()===i)&&(t.subtitle.content.color=e.textColor),t?.footer?.content&&(!t.footer.content.color||t.footer.content.color.toString()===i)&&(t.footer.content.color=e.textColor))}function gY(a){let{config:t,themeColors:e}=a;t&&e.textColor&&t.series.forEach(i=>{i.dataLabels?.content&&(!i.dataLabels.content.color||i.dataLabels.content.color.toString()===Mu().toString())&&(i.dataLabels.content.color=e.textColor)})}function yY(a){let{config:t,themeColors:e}=a,i=t?.series[0];i?.type===V.PieSeries&&i.ticks?.lineSymbol&&e.secondaryLineColor&&(!i.ticks.lineSymbol.color||i.ticks.lineSymbol.color.toString()===jm.toString())&&(i.ticks.lineSymbol.color=e.secondaryLineColor)}function vY(a){let{config:t,themeColors:e}=a,i=Mu().toString();t?.legend&&e.textColor&&(t.legend.title?.content&&(!t.legend.title.content.color||t.legend.title.content.color.toString()===i)&&(t.legend.title.content.color=e.textColor),t.legend.body&&(!t.legend.body.color||t.legend.body.color.toString()===i)&&(t.legend.body.color=e.textColor))}function bY(a){let{config:t,themeColors:e}=a;if(vd(t)&&e.textColor){let i=Mu().toString();t.axes?.forEach(r=>{r.innerLabel?.content&&(!r.innerLabel.content.color||r.innerLabel.content.color.toString()===i)&&(r.innerLabel.content.color=e.textColor),r.needle?.symbol&&(!r.needle.symbol.color||r.needle.symbol.color.toString()===i)&&(r.needle.symbol.color=e.textColor)})}}function xY(a){let{config:t,themeColors:e}=a;so(t)&&e.lineColor&&t.series.forEach(i=>{i.gridLine&&!i.gridLine.color&&(i.gridLine.color=e.lineColor)})}function _Y(a,t){let e=Fr(a),i={config:e,themeColors:t};return fY(i),mY(i),pY(i),gY(i),vY(i),bY(i),yY(i),xY(i),e}function CY(){return!0}function wY(a){let{layer:t}=a,e,i=Os(t),r=Jm(i);return r!==void 0&&"definitionExpression"in r&&a.layerFilterChangePolicy===Ox.Refresh&&(e=Ia.watch(()=>r.definitionExpression,()=>{a.refresh({updateData:!0,resetAxesBounds:!0})})),e}function BY(a){let{layer:t}=a,e;if(t){let i=Os(t);e=Ia.watch(()=>i.renderer,()=>{let{model:r}=a,s=Ro(r)?r.config:r;if(Fl(s)&&a.layerRendererChangePolicy===Ex.Refresh){let n=CY();a.refresh({updateData:n})}})}return e}async function SY(a){let{view:t,layer:e,model:i,filterByExtent:r,filterByViewExtent:s}=a,n=Ro(i)?i.config:i,o;if(t&&n){let l=await xx({chartConfig:n,view:t,layer:e,filterByViewExtent:r||s}),h;if(bh(l)?h=l:xs(l)&&(h=await t.whenLayerView(l)),h){await Ia.whenOnce(()=>!h.updating);let u=async()=>{(a.filterByExtent||a.filterByViewExtent)&&t.stationary&&(h.updating&&await Ia.whenOnce(()=>!h.updating),await a.refresh({updateData:!0,resetAxesBounds:!0}))};o=[],bh(h)?(o.push(Ia.when(()=>t.stationary,u)),o.push(Ia.when(()=>!h.dataUpdating,u))):o.push(Ia.when(()=>t.stationary,u)),await u()}}return o}function FY(a){let{view:t}=a,e;return t&&(e=Ia.watch(()=>t.timeExtent,()=>{let{model:i}=a,r=Ro(i)?i.config:i,s=ze(r?.series);(a.viewTimeExtentChangePolicy===Rx.Refresh||a.syncViewTimeExtent)&&s!==V.HistogramSeries&&a.refresh({updateData:!0})})),e}function xv(a){let{syncViewTimeZone:t,syncViewTimeZoneInclusionList:e,chartConfig:i}=a,r=ze(i?.series);return(t||(r&&e.includes(r))===!0)&&(so(i)||_h(i?.series[0])&&i.axes?.[0].valueFormat?.type===V.DateAxisFormat)}function TY(a){let{view:t,syncViewTimeZone:e,syncViewTimeZoneInclusionList:i}=a,r;return t&&"timeZone"in t&&(r=Ia.watch(()=>t.timeZone,()=>{let{model:s}=a,n=Ro(s)?s.config:s;xv({syncViewTimeZone:e,syncViewTimeZoneInclusionList:i,chartConfig:n})&&(a.timeZone=t.timeZone,a.refresh({updateData:!0}))})),r}function PY(a){let{layer:t}=a,e,i=Os(t),r=Jm(i);return r!==void 0&&"fields"in r&&(e=Ia.watch(()=>[r.fields],()=>{a.layerFieldsChangePolicy===Mx.Refresh&&a.refresh({updateData:!0})})),e}function C$(a,t){return Ia.watch(()=>t.selections,e=>{(a.syncViewSelection||a.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)&&(Array.isArray(e)&&e?.length===0?a.clearSelection():a.applySelectionFromSelectionManager())})}function DY(a){let{view:t}=a,e;return t?.selectionManager&&(e=C$(a,t.selectionManager)),e}function LY(a){let{selectionManager:t}=a,e;return t&&(e=C$(a,t)),e}async function IY(a){let t=lF(`assets/common/t9n/messages.${a}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function kY(a=Iu(document.documentElement).t9nLocale){let t=(await import("./H6G4K2SI.js")).default;switch(a){case"ar":t=(await import("./C32DLPO2.js")).default;break;case"bs":t=(await import("./ZGRLFOVN.js")).default;break;case"bg":t=(await import("./2MVU33EQ.js")).default;break;case"ca":t=(await import("./K7M5S6GY.js")).default;break;case"cs":t=(await import("./W5WI6CWC.js")).default;break;case"da":t=(await import("./A2SOXYD7.js")).default;break;case"de":t=(await import("./5WSLX3X6.js")).default;break;case"el":t=(await import("./INFEECC2.js")).default;break;case"es":t=(await import("./ANEY3G3T.js")).default;break;case"et":t=(await import("./UJ7GGLFA.js")).default;break;case"fi":t=(await import("./577EV2JF.js")).default;break;case"fr":t=(await import("./U7L3L6IV.js")).default;break;case"he":t=(await import("./XTWWNXCJ.js")).default;break;case"hr":t=(await import("./RRDNOR24.js")).default;break;case"hu":t=(await import("./SWQ7K4X5.js")).default;break;case"id":t=(await import("./FW27X6ZH.js")).default;break;case"it":t=(await import("./AGJRXDBI.js")).default;break;case"ja":t=(await import("./OLBJGP5C.js")).default;break;case"ko":t=(await import("./43SJZXD3.js")).default;break;case"lt":t=(await import("./PI6HSSQL.js")).default;break;case"lv":t=(await import("./VHOYFIGY.js")).default;break;case"no":t=(await import("./X5TUHBXH.js")).default;break;case"nl":t=(await import("./KSNCOD3U.js")).default;break;case"pl":t=(await import("./BHNYXBUZ.js")).default;break;case"pt-BR":t=(await import("./4VMTBYLY.js")).default;break;case"pt-PT":t=(await import("./2JPFAFHJ.js")).default;break;case"ro":t=(await import("./WQRZ7LGV.js")).default;break;case"ru":t=(await import("./RKXV44WI.js")).default;break;case"sr":t=(await import("./B3HEXSCX.js")).default;break;case"sk":t=(await import("./DF2JGSK4.js")).default;break;case"sv":t=(await import("./NXRLNLM4.js")).default;break;case"th":t=(await import("./WMSU5OWP.js")).default;break;case"tr":t=(await import("./MIVV22F3.js")).default;break;case"uk":t=(await import("./GBCL3LR7.js")).default;break;case"vi":t=(await import("./YZTAP3PR.js")).default;break;case"zh-CN":t=(await import("./PF6HSS3J.js")).default;break;case"zh-HK":t=(await import("./Z5L2GNFQ.js")).default;break;case"zh-TW":t=(await import("./Z5L2GNFQ.js")).default;break}return t}async function $Y(a=Iu(document.documentElement).t9nLocale){let t=(await import("./4RZOR2GZ.js")).default;switch(a){case"ar":t=(await import("./WXLU5XAQ.js")).default;break;case"bs":t=(await import("./7GXB5ABV.js")).default;break;case"bg":t=(await import("./A4O5PTH7.js")).default;break;case"ca":t=(await import("./DTU5F26A.js")).default;break;case"cs":t=(await import("./75WJAOD5.js")).default;break;case"da":t=(await import("./XLHC66GD.js")).default;break;case"de":t=(await import("./3S33OYZS.js")).default;break;case"el":t=(await import("./BR7YHHRO.js")).default;break;case"es":t=(await import("./4NXQY2SY.js")).default;break;case"et":t=(await import("./U6BD2QQW.js")).default;break;case"fi":t=(await import("./NF4ADSMI.js")).default;break;case"fr":t=(await import("./JUUAJRZL.js")).default;break;case"he":t=(await import("./JHXWK5HY.js")).default;break;case"hr":t=(await import("./SEV3K4MK.js")).default;break;case"hu":t=(await import("./ZYBUK2GC.js")).default;break;case"id":t=(await import("./HM7TTHYN.js")).default;break;case"it":t=(await import("./5VCKTFEN.js")).default;break;case"ja":t=(await import("./7S4C7DMD.js")).default;break;case"ko":t=(await import("./N4ZIPC6C.js")).default;break;case"lt":t=(await import("./G626QVCR.js")).default;break;case"lv":t=(await import("./D63ZM4I6.js")).default;break;case"no":t=(await import("./FCE53PT5.js")).default;break;case"nl":t=(await import("./6SLYYVAM.js")).default;break;case"pl":t=(await import("./5S37PAVK.js")).default;break;case"pt-BR":t=(await import("./GBLD6EF5.js")).default;break;case"pt-PT":t=(await import("./XQL5X2VK.js")).default;break;case"ro":t=(await import("./QSAYNOYT.js")).default;break;case"ru":t=(await import("./LZTVRB5K.js")).default;break;case"sr":t=(await import("./DGYDZT63.js")).default;break;case"sk":t=(await import("./BXOAEW3W.js")).default;break;case"sl":t=(await import("./Y4YDLI6O.js")).default;break;case"sv":t=(await import("./YIK7I32W.js")).default;break;case"th":t=(await import("./76OQVFII.js")).default;break;case"tr":t=(await import("./CS6SBRT6.js")).default;break;case"uk":t=(await import("./4CEOP4CL.js")).default;break;case"vi":t=(await import("./47SEEPGM.js")).default;break;case"zh-CN":t=(await import("./27Y4YBZ7.js")).default;break;case"zh-HK":t=(await import("./A52S6LGL.js")).default;break;case"zh-TW":t=(await import("./A52S6LGL.js")).default;break}return t}async function OY(a=Iu(document.documentElement).t9nLocale,t){let e=t?await $Y(a):await kY(a),i=(await IY(a)).customAmchartsStrings;return{...e,...i}}var EY=({message:a,heading:t,options:e})=>ud`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?ud`<div slot=title>${t}</div>`:null}${a!==void 0?ud`<div slot=message>${a}</div>`:null}</calcite-alert>`,MY=iF`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`,bw=class extends nF{constructor(){super(),this.loaderHandle={showLoader:()=>{this.showLoader=!this.hideLoaderAnimation},hideLoader:()=>{this.showLoader=!1}},this._messages=Hx(),this.chartRef=aF(),this.dataFetchRequestId=0,this.commonStrings=Hx({name:"common",blocking:!0}),this.updateQueue=RI.promise(async t=>await this.renderChart(t.changes),YF),this._rotated=!1,this._legendVisibility=!1,this._filterByExtent=!1,this._filterByViewExtent=!1,this.noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage","disableInteractions","interactionsDisabled"],this.handleExternalSelection=t=>{if(!xs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,s=this.layer&&r?.layer?.id===Qu(this.layer).id;(this.syncSelection||this.syncChartsSelection)&&s&&t.target!==this.el&&!rn(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}},this.configPanelNumberChange=t=>{let e=t,{panelNumber:i,modelList:r}=e.detail;this.actionBarElement&&(this.enableConfiguration||this.configurationEnabled)&&this.ourModelExistsIn(r)&&(this.actionBarElement.editChartToggle=i===1?$x.Active:$x.Inactive)},this.configDataChangeError=t=>{let e=t,{error:i,model:r}=e.detail;(this.enableConfiguration||this.configurationEnabled)&&r?.isSameChartAs(this._model)&&this.notify(i.message)},this.modelConfigChange=t=>{let e=t;this.lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!rn(this.config?.iLayer,i?.iLayer)&&(this.layer=new WL(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=Fr(i))},this.modelDataChange=()=>{this.setTimeBinningInfoWhenNotProvided&&RT(this._model)&&this._model?.resetTimeInterval()},this.actionBarSlotRef=t=>{this.actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0},this.checkForInvalidContainer=()=>{this.chartRef.value||Zm("divNode",this.commonStrings?.errorStrings)},this._loadQueryObject=new In(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent,this.filterByViewExtent],task:async([t,e,i,r,s],{signal:n})=>{let o=await xx({chartConfig:t,layer:e,view:i,filterByViewExtent:r||s,abortSignal:n});if(o){let l=Os(o);await og(l,n)}return o},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._loadFeatureLayerView=new In(this,{args:()=>[this._loadQueryObject.value],task:async([t],{signal:e})=>bh(t)?await Ia.whenOnce(()=>!t.updating,{signal:e}):!1,onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._setLayerFromLayerItemId=new In(this,{args:()=>[this.layerItemId,this.view,this.chartIndex],task:async([t,e])=>{if(t&&t.trim()!==""&&!_x({view:e,portalItemId:t})){let i=await SN.fromPortalItem({portalItem:new FN({id:t})});(wF(i)||xs(i))&&(this.layer=i,await this.createModelFromLayer(this.chartIndex))}},onComplete:async()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._checkIfDataUpdateIsNeeded=new In(this,{args:()=>{let t=[this.forceDataUpdateTick,this.runtimeDataFilters,this.returnFeaturesExtent,this.chartLimits,this.updateSplitBySeries];return[this.chart,this.config,this.usePopupTemplateFieldsInfo,this.layer,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.chartLimits,this._loadQueryObject.value,...t]},task:([t,e,i,r,s,n,o,l,h])=>{if(h){let u=t===void 0,c=_a(h,i),d=this.lastRenderedProps?.chartConfig,A=this.lastRenderedProps?.options?.selectionData?.selectionOIDs,p=this.lastRenderedProps?.dataUpdateNeededProps,f=this.lastRenderedProps?.extraProps?.layer,m=this.lastRenderedProps?.extraProps?.filterBySelection,g=u,y;p&&Object.keys(p).forEach(w=>{let S=p?p[w]:void 0,F=this[w];g=g||!rn(S,F)});let x=bh(f)!==bh(r);if(g=g||x,y={common:{layerChanged:x}},e&&d){let w=zF({previousConfig:d,newConfig:e,previousFilterBySelection:m,previousSelectionOIDs:A,fieldList:c,queryObject:h,filterBySelection:s,selectionData:n,setTimeBinningInfoWhenNotProvided:o,chartLimits:l});y={...y,...w.dataUpdateDetails},g=g||w.dataUpdateNeeded}return{dataUpdateNeeded:g,dataUpdateDetails:y}}else return this._checkIfDataUpdateIsNeeded.value??{dataUpdateNeeded:!1,dataUpdateDetails:void 0}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._prepareConfigForRendering=new In(this,{args:()=>[this.config,this.chart,this.updateSplitBySeries,this.updateSplitBySeries?.addMissingSeries,this.runtimeDataFilters,this.view,this.viewTimeExtentChangePolicy,this.syncViewTimeExtent,this.ignoreViewExtent,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.commonStrings?.errorStrings,this._loadQueryObject.value,this._checkIfDataUpdateIsNeeded.value?.dataUpdateNeeded],task:async([t,e,i,r,s,n,o,l,h,u,c,d,A,p,f],{signal:m})=>{let g=e===void 0,y=this.layer!==this.lastRenderedProps?.extraProps?.layer,x=this.filterByExtent!==this.lastRenderedProps?.extraProps?.filterByExtent||this.filterByViewExtent!==this.lastRenderedProps?.extraProps?.filterByViewExtent,w=r===!0&&(g||f||y||x),S=Qx({runtimeDataFilters:s,view:n,viewTimeExtentChangePolicy:o,syncViewTimeExtent:l}),{alteredConfig:F,preFetchedQueryResponse:T}=await PT({configToAlter:t,updateSplitBySeries:i,addMissingSeries:w,chartContainer:this.el,queryObject:p,layer:this.layer,abortSignal:m,runtimeDataFilters:S,ignoreViewExtent:h,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:c,chartLimits:d,errorStrings:A});return JSON.stringify(this._alteredConfig)!==JSON.stringify(F)&&(this._alteredConfig=F,this.model&&F&&!Ro(this.model)&&(this.model.series=F.series)),T},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._isChartSupportedByDataSource=new In(this,{args:()=>[this.config,this.layer],task:async([t,e],{signal:i})=>await TT({config:t,layer:e,abortSignal:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._validateWebChart=new In(this,{args:()=>[this._alteredConfig,this.gatherComponentOptions().allowUsingObjectIdStat,this.commonStrings?.errorStrings,this._loadQueryObject.value],task:async([t,e,i,r])=>await Ix({input:t,queryObject:r,allowUsingObjectIdStat:e,errorStrings:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this._getData=new In(this,{args:()=>[this._alteredConfig,this.unsanitizedSelectionDataItems,this.commonStrings?.errorStrings,this.usePopupTemplateFieldsInfo,this.popupTemplateFieldInfosEnabled,this.runtimeDataFilters,this.ignoreViewExtent,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.hideZeroCountCategories,this.replaceNoValueCategoryWithZero,this.gatherComponentOptions().view,this.filterByExtent||this.filterByViewExtent,this.syncViewTimeZone,this.syncViewTimeZoneInclusionList,this._loadQueryObject.value,this._prepareConfigForRendering.value,this._checkIfDataUpdateIsNeeded.value],task:async([t,e,i,r,s,n,o,l,h,u,c,d,A,p,f,m,g,y,x,w,S],{signal:F})=>{let T,{dataUpdateNeeded:L,dataUpdateDetails:O}=S??{};if(L&&t&&x&&!wh(t)){let I=_a(x,r||s),U=xv({syncViewTimeZone:g,syncViewTimeZoneInclusionList:y,chartConfig:t});this.loaderHandle.showLoader(),T=await cT({chartConfig:t,preFetchedQueryResponse:w,queryObject:x,runtimeDataFilters:n,ignoreViewExtent:o,filterBySelection:l,selectionData:h,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:c,chartLimits:d,popupTemplateFieldInfosEnabled:s,hideZeroCountCategories:A,replaceNoValueCategoryWithZero:p,view:f,filterByViewExtent:m,syncViewTimeZone:U,fieldList:I,currentSelectionDataItems:e,dataForFilterBySelectionChanged:O?.common?.dataForFilterBySelectionChanged,errorStrings:i,abortSignal:F}),Wx(this._model)&&NT(VT,T.data)}return{dataInfo:T,dataWasUpdated:!!T}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this.handleRuntimeError(t)}}),this.forceDataUpdateTick=0,this.taskCompletionTick=0,this.showLoader=!1,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.configurationEnabled=!1,this.calciteThemingCSSVariables={background:"--calcite-color-foreground-1",text:"--calcite-color-text-1",line:"--calcite-color-border-1",secondaryLine:"--calcite-color-text-3",spinner:"--calcite-color-brand-hover"},this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.disableInteractions=!1,this.interactionsDisabled=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=hp.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.syncViewTimeZoneInclusionList=[V.HeatSeries],this.syncViewTimeZone=!1,this.layerFilterChangePolicy=Ox.Refresh,this.viewTimeExtentChangePolicy=Rx.Ignore,this.syncViewTimeExtent=!1,this.layerRendererChangePolicy=Ex.Refresh,this.layerFieldsChangePolicy=Mx.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=yd.Disabled,this.syncViewSelection=!1,this.syncSelection=!1,this.syncChartsSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=zs(),this.arcgisBadDataWarningRaise=zs(),this.arcgisChartNotFoundWarning=zs(),this.arcgisConfigChange=zs(),this.arcgisDataFetchComplete=zs(),this.arcgisDataProcessComplete=zs(),this.arcgisDataProcessError=zs(),this.arcgisInvalidConfigWarningRaise=zs(),this.arcgisLegendItemVisibilityChange=zs(),this.arcgisNoRenderPropChange=zs(),this.arcgisRenderingComplete=zs(),this.arcgisRuntimeError=zs(),this.arcgisSelectionComplete=zs(),this.arcgisSeriesColorChange=zs(),this.arcgisSeriesOrder=zs(),this.arcgisUpdateComplete=zs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this.handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this.handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this.handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this.handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this.handleTooManySelectedElements),this.listen("calciteAlertClose",this.handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this.handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this.handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this.handleRenderingComplete),this.addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this.handleExternalSelection)}static{this.properties={_alteredConfig:16,forceDataUpdateTick:16,taskCompletionTick:16,infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,configurationEnabled:5,calciteThemingCSSVariables:0,rotation:[5,{hasChanged:()=>!1}],rotated:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],filterByViewExtent:[5,{hasChanged:()=>!1}],disableInteractions:5,interactionsDisabled:5,queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,animationEnabled:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:0,tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,togglingLegendItemsDisabled:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,syncViewTimeZoneInclusionList:0,syncViewTimeZone:5,popupTemplateFieldInfosEnabled:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,syncViewTimeExtent:5,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,syncSelection:5,syncChartsSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=MY}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&PF(e,t)&&this.forceDataUpdateTick++,this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this.lastModelSetterCalled}),this.lastModelSetterCalled=void 0,this.actionBarElement&&!wh(t)&&(this.actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotated}set rotation(t){this.rotated=t}get rotated(){return this._rotated}set rotated(t){this.rotatedChange(t),this.handleNoRenderPropChange("rotated",t),this._rotated=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this.legendPositionChange(t),this.handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this.legendVisibilityChange(t),this.handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this.viewChange(t,e),this.handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this.filterByViewExtentChanged(t),this.handleNoRenderPropChange("filterByExtent",t)}get filterByViewExtent(){return this._filterByViewExtent}set filterByViewExtent(t){this._filterByViewExtent=t,this.filterByViewExtentChanged(t),this.handleNoRenderPropChange("filterByViewExtent",t)}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this.featureIndexChange(t,e),this.handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}async clearSelection(){this.chart!==void 0&&(this.unsanitizedSelectionDataItems=void 0,this.chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this.chart?.dispose()}async errorAlert(t){this.errorPolicy===hp.Throw&&(this.actionBarElement&&(this.actionBarElement.forceDisableActions=!0),this.notify(t,this.commonStrings?.errorStrings.errorHeading))}async exportAsCSV(t){let e,i,r={xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter};if(this.sanitizedChartData){let s=await this._loadQueryObject.taskComplete,n=s?_a(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled):void 0,o=this._model?.config??this.config,l=this.processedChartData??this.sanitizedChartData,h=await nT(Os(s)),u=o?.chartRenderer?ZF(o.chartRenderer):[],c=[...new Set([...h,...u])],d=Hu(o,c),A=Ro(this.model)?this.model.titleText:this.config?.title?.content?.text??this.commonStrings.utilsStrings.chartType.chart;if(Object.values(l).filter(p=>Array.isArray(p)&&p.length>0).length>1){let p=new VI.default;Object.entries(l).forEach(([m,g])=>{if(Array.isArray(g)&&g.length>0){let y=Nx({rawData:g,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this.commonStrings.utilsStrings}),x=Vx(y,t),w=`${A}-${m}.csv`;p.file(w,x)}});let f=await p.generateAsync({type:"blob"});e=URL.createObjectURL(f),i=`${A}.zip`}else{let p;if("bins"in l?p=l.bins:"dataItems"in l&&(p=l.dataItems),p){let f=Nx({rawData:p,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this.commonStrings.utilsStrings}),m=Vx(f,t);e=URL.createObjectURL(new Blob([m],{type:"text/csv;charset=utf-8;"})),i=`${A}.csv`}}e!==void 0&&i!==void 0&&Xx(e,i)}}async exportAsImage(t=KF.PNG){let e=this.chartRef.value;e?(await(0,UI.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),s=`${this.model.titleText??this.commonStrings.utilsStrings.chartType.chart}.${t}`;Xx(r,s)}},t):this.notify(this.commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this.resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this.infoModalHeading=e,this.loaderHandle.hideLoader()}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};e&&this.forceDataUpdateTick++,i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this.chart!==void 0&&this.chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this.chart!==void 0&&!this.filterBySelection&&t&&await this.chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled){let t=this.getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this.modelChange(),t.has("selectionData")&&!rn(t.get("selectionData")?.selectionOIDs,this.selectionData?.selectionOIDs)&&this.selectionDataChange(),t.has("layer")&&this.layerChange(),t.has("timeZone")&&this.timeZoneChange(),t.has("filterBySelection")&&t.get("filterBySelection")!==void 0&&this.filterBySelectionChanged(),t.has("selectionManager")&&(this.setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager())}updated(t){Array.from(t.keys()).filter(e=>!this.noRenderingUpdateProps.includes(e)).length>0&&!this.isAnyTaskPending()&&this.updatedAsync(t),this.actionBarElement!==void 0&&HT({actionBar:this.actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0}),t.has("aria")&&this.aria&&this.chartRef.value&&(this.chartRef.value.ariaLabel=this.aria.label??this.chartRef.value.ariaLabel,this.chartRef.value.ariaDescription=this.aria.description??this.chartRef.value.ariaDescription,this.chartRef.value.ariaLabelledByElements=this.aria.labelledByElements??this.chartRef.value.ariaLabelledByElements,this.chartRef.value.ariaDescribedByElements=this.aria.describedByElements??this.chartRef.value.ariaDescribedByElements)}disconnectedCallback(){super.disconnectedCallback(),this.removeLayerWatchHandlers(),this.removeViewExtentChangeWatchHandlers(),this.removeViewWatchHandlers(),this.removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this.chart?.dispose()}handleRuntimeError(t){if(t instanceof Tl&&t.name===Ad.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Tl&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Tl?t.message:this.commonStrings?.errorStrings.errors.simpleError;this.notify(e,this.commonStrings?.errorStrings.errorHeading)}}synchronizeModelConfig(){this._config&&(Ro(this.model)?this.model.config=Fr(this._config):JSON.stringify(this._config)!==JSON.stringify(this.model)&&(this.model=Fr(this._config)))}isAnyTaskPending(){return[this._loadQueryObject,this._loadFeatureLayerView,this._setLayerFromLayerItemId,this._checkIfDataUpdateIsNeeded,this._prepareConfigForRendering,this._isChartSupportedByDataSource,this._validateWebChart,this._getData].some(t=>t.status===Gx.PENDING)}hideInfoModal(){this.infoModalMessage=void 0}async generateHeatChartClassBreaks(t){if(!xs(this.layer)&&Wx(this._model)&&t?.data&&"dataItems"in t.data){let e=await _T({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,colorRampName:this._model.colorRampName,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos,isColorRampFlipped:this._model.isColorRampFlipped});CT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:xr.valueField})}}async updatedAsync(t){if(this.config!==void 0&&this.chart!==void 0)try{(!this.config&&!this.layer||kx(this.config,this.layer)&&!wh(this.config)&&await this._isChartSupportedByDataSource.taskComplete)&&await this.updateQueue?.push({changes:t})}catch(e){this.chartRef.value!==void 0&&(e instanceof Tl&&e.name===Ad.ChartDisposed?(this.chart?.dispose(),this.chart=void 0,this.chartRef.value.innerHTML="",await this.createChartInstance(t,!1)):this.handleRuntimeError(e))}else this.chart===void 0&&await this.createChartInstance(t);this.placeholder!==void 0?await this.notify(this.placeholder):(this.enableConfiguration||this.configurationEnabled)&&wh(this.config)&&this.applyPlaceholderForPartialConfig(this.config)}useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}applySelectionFromSelectionManager(){let t=this.getSelectionFromSelectionManager();t&&!rn(t,this.selectionData?.selectionOIDs)&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}applySelectionFromView(){this.applySelectionFromSelectionManager()}handleLegendItemVisibilityChanged(t){sx(t,this.config),sx(t,this._alteredConfig),this.synchronizeModelConfig(),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}handleUpdateCompleted(t){if(this.enableConfiguration||this.configurationEnabled){let e=this.commonStrings?.errorStrings.notifications;if(this.placeholder===void 0)if(t.schemaErrors.length>0&&!wh(this.config))this.notify(e?.invalidConfig,void 0);else if(t.customErrors.length>0&&!wh(this.config)){let i=t.customErrors.find(r=>r.keyword===Ad.LayerFieldsNotFound);if(xs(this.layer)&&i){let r=Vc(e?.invalidConfigForRaster??"",{errorMessage:i.message});this.notify(r,e?.invalidConfigTitle)}else this.notify(e?.invalidConfig,void 0)}else t.warnings.length>0&&t.warnings.some(i=>i.keyword===eT.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields);if((OT(this._model)||ET(this._model)||jx(this._model)||MT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Qu(this.layer),r=Ch(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&this.loaderHandle.hideLoader(),this.arcgisUpdateComplete.emit(t)}handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}handleSelection(t){let e={...t.detail};this.unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=Fr(e.selectionItems);r&&(r=mT(r,this.config?.series),r=r.map(gT),r=fT(r,this.config?.series),i.selectionItems=r),rn(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}handleTooManySelectedElements(){this.errorPolicy===hp.Throw&&(this.infoModalHeading=this.commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this.commonStrings?.errorStrings.tooManySelectedElements?.message,this.notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}handleAlertClosed(t){t.target===this.el&&(this.notifyHeading=void 0,this.notifyMessage=void 0)}handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}modelChange(){if(Ro(this.model)){this._model=this.model,this.config=Fr(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this.addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this.resolveModelSetup=="function"&&this.resolveModelSetup()})}else this.config=this.model;if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}selectionDataChange(){this.layer!==void 0&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)&&this.view!==void 0&&this.setSelectionInSelectionManager()}async viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=_x({view:this.view,portalItemId:this.layerItemId})??new WL({portalItem:{id:this.layerItemId}})),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this.setViewSelectionsChangeWatchHandler():this.removeViewSelectionsChangeWatchHandler()}async layerChange(){this.addLayerWatchHandlers(),this.layer&&(await og(Qu(this.layer)),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler())}featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.forceDataUpdateTick++}rotatedChange(t){t!==void 0&&(this.config=ST(t,this._config),this.synchronizeModelConfig())}legendPositionChange(t){t!==void 0&&(this.config=wT(t,this._config),this.synchronizeModelConfig())}legendVisibilityChange(t){t!==void 0&&(this.config=BT(t,this._config),this.synchronizeModelConfig())}timeZoneChange(){this.updateConfigTimeZone(this.timeZone)}filterBySelectionChanged(){this.config=FT(this._config),this.synchronizeModelConfig()}async filterByViewExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this.setViewExtentChangeWatchHandler(t):this.removeViewExtentChangeWatchHandlers()}addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this.configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this.configDataChangeError)}getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!xs(this.layer)){let e=Qu(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!xs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===yd.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Tr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Qu(this.layer),e)}}addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this.modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this.modelDataChange)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=wY(this),this.layerRendererWatchHandler=BY(this),this.layerFieldsWatchHandler=PY(this)}async setViewExtentChangeWatchHandler(t){(t??(this.filterByExtent||this.filterByViewExtent))&&(this.removeViewExtentChangeWatchHandlers(),this.viewExtentChangeWatchHandlers=await SY(this))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=TY(this)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=FY(this)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=DY(this)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=LY(this)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeViewExtentChangeWatchHandlers(){this.viewExtentChangeWatchHandlers?.forEach(t=>t.remove()),this.viewExtentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.runtimeDataFilters?.timeExtent&&delete this.runtimeDataFilters.timeExtent}async createModelFromLayer(t){if(this.layer){let e=Qu(this.layer);await og(e);let i=t??0,r="charts"in e?e?.charts?.[i]:void 0;if(r)this.model=await UT({layer:e,config:r,commonStrings:this.commonStrings});else{let s=Vc(this._messages?.chartNotFoundWarning??"",{chartIndex:i.toString(),layerTitle:e.title});this.arcgisChartNotFoundWarning.emit(s),sF("warn",this,s)}}}applyPlaceholderForPartialConfig(t){let e=jx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=dY(e,this.commonStrings?.errorStrings);this.notify(i)}checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===hp.Throw&&BF(t).versionStatus===uF.Newer&&(this.notifyHeading=this.commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this.commonStrings?.errorStrings.incompatibleChartVersion?.message?Vc(this.commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this.notifyOptions={kind:"warning",autoClose:!0,active:!0})}ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}updateConfigTimeZone(t){if(this._config){let e={...this._config};$T(t,e),this.config=e,this.synchronizeModelConfig()}}gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart,animationEnabled:this.animationEnabled||this.useAnimatedCharts}}addMutationObserverForCalciteTheme(){hF(this.el,["class"],()=>{let t=Qb(this.el);t!==this.calciteThemeApplied&&(this.calciteThemeApplied=t,this.refresh({updateData:!1}))})}gatherComponentOptions(t=!0){let e=Qx({runtimeDataFilters:this.runtimeDataFilters,view:this.view,viewTimeExtentChangePolicy:this.viewTimeExtentChangePolicy,syncViewTimeExtent:this.syncViewTimeExtent}),i=this.filterByExtent||this.filterByViewExtent,r,s=Ro(this.model)?this.model.config:this.model;if(xs(this.layer))r=i?this.view:void 0;else{let n=ze(s?.series);r=i||n!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:r,viewExtentUpdated:t&&i&&(this.view!==void 0||bh(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,runtimeDataFilters:e,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:xs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter,syncViewTimeZone:xv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:s}),interactionsDisabled:this.interactionsDisabled||this.disableInteractions,togglingLegendItemsDisabled:this.togglingLegendItemsDisabled||this.disableTogglingLegendItems,popupTemplateFieldInfosEnabled:this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled}}raiseLogScaleNotCompatibleWarning(t){let e=!0;return this.config?.axes?.forEach((i,r)=>{Ag({chartConfig:this.config,axisConfigIndex:r,chartData:Ln(t?.data??this.sanitizedChartData)})||(e=!1,this.raiseInvalidDataWarning(r===0?Ll.NegativeValueInXAxisLogScale:Ll.NegativeValueInYAxisLogScale))}),e}raiseNoDataWarning(t,e){let i=!1;if(t?.data){let r=Ln(t.data),s=Ll.EmptyDataSet;AT({chartConfig:e,nullAsValid:this.nullAsValid,dataSet:r})&&(vd(this.config)&&ju(this.config)&&t.count&&t.count>0&&(s=Ll.NoValue),i=!0,this.raiseInvalidDataWarning(s,t.count))}return i}raiseInvalidDataWarning(t,e){let i=this.layer,r=this.gatherComponentOptions(),s=this.config!==void 0&&eg({seriesConfig:this.config.series[0],xAxisValueFormatType:_F(this.config),queryObject:i}),n=vd(this.config)&&ju(this.config),o=lT({invalidType:t,elementCount:e,seriesCount:this.config?.series?.length,chartLimits:r?.chartLimits,filterBySelection:r?.filterBySelection,queryObject:i,formatLocale:fd(this.el),isTemporalChart:s,isGaugeChartByFeature:n,errorStrings:this.commonStrings?.errorStrings});(o.keyword!==Ll.EmptyDataSet||this.infoModalMessage===void 0||o.keyword===Ll.EmptyDataSet&&n)&&(this.arcgisBadDataWarningRaise.emit(o),this.notify(o.message,o.header))}processInvalidConfigStatus(t,e){if(this.enableConfiguration||this.configurationEnabled)this.handleUpdateCompleted(t);else{this.loaderHandle.hideLoader();let{title:i,message:r}=cY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this.commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ll.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async createChartInstance(t,e=!0){if(this.config)try{this.addMutationObserverForCalciteTheme(),await this.renderChart(t),e&&this.chart&&(this.addLayerWatchHandlers(),await this.setViewExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),this.setViewSelectionsChangeWatchHandler(),this.setSelectionManagerChangeWatchHandler())}catch(i){this.handleRuntimeError(i),this.chart?.dispose(),this.chart=void 0}}notifyDataProcessComplete(t){if(t&&this._config){let e=pg({data:t,seriesConfig:this._config.series});e&&(this.sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=Fr(t);e.dataItems=JN(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async renderChart(t){if(wh(this.config))this.applyPlaceholderForPartialConfig(this.config);else if(this.config){let e=this.chart===void 0;if(e||t.size>0){if(this.checkForInvalidContainer(),e){let r=this.view&&"timeZone"in this.view&&this.view.timeZone?this.view.timeZone:void 0;(this.timeZone||xv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:this._config})&&r)&&this.updateConfigTimeZone(this.timeZone??r),this.checkForIncompatibleChartVersion()}let i=await this._loadQueryObject.taskComplete;if(i){let r=this.gatherComponentOptions(),s=_a(i,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled),n=await this._checkIfDataUpdateIsNeeded.taskComplete,{dataUpdateDetails:o}=n,l=n.dataUpdateNeeded;l&&!e&&this.hideInfoModal();let h=this._alteredConfig?{...this._alteredConfig}:void 0,u=this.lastRenderedProps?.chartConfig;if(o?.common&&u?.series&&h?.series&&(o.common.numberOfSeriesChanged=DF(u.series,h.series)),!h&&!this.layer||kx(h,this.layer)&&await this._isChartSupportedByDataSource.taskComplete){let c=await this._validateWebChart.taskComplete;if(!c.valid)this.processInvalidConfigStatus(c,h);else if(h){await this._loadFeatureLayerView.taskComplete;let d=++this.dataFetchRequestId,A=await this._getData.taskComplete,p=A.dataInfo??{valid:!0,data:this.processedChartData??this.sanitizedChartData},f=A.dataWasUpdated;if(ze(h.series)===V.PieSeries){let m=YL({creation:e,previousConfig:u,newConfig:h,dataInfo:p,dataUpdateNeeded:f,utilsStrings:this.commonStrings.utilsStrings});f=f||m}if(!p.valid)this.raiseInvalidDataWarning(p.invalidType,p.count);else{if(ze(h.series)===V.PieSeries){let y=YL({creation:e,previousConfig:u,newConfig:h,dataInfo:p,dataUpdateNeeded:f,utilsStrings:this.commonStrings.utilsStrings});f=f||y}let m,g=Fr(h);if({filteredConfig:h,seriesFilteredOut:m}=DT({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:h,data:p?.data}),d===this.dataFetchRequestId&&!this.raiseNoDataWarning(p,h)&&this.raiseLogScaleNotCompatibleWarning(p)){let y=ip({oldConfig:m?g:u,newConfig:h,dataWasUpdated:f});y&&hT({alteredConfig:h,dataInfo:p,fieldList:s,options:r,queryObject:i}),tg(u,h)&&(f=!0);let x=Dl(h)?h.showMean:void 0,w=p?.data??this.sanitizedChartData,S=w&&x&&"meanLines"in w?w.meanLines:Ln(w);S&&(e||f)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await Sx({data:S,queryObject:i,chartConfig:h,allowColorMatch:gx({chartConfig:h,queryObject:i})})),this.calciteThemeColors&&(h=_Y(h,this.calciteThemeColors),this.calciteThemeApplied=Qb(this.el));let F=!1,T;if(h.series[0].type===V.PieSeries){let O=Ln(this.processedChartData),I=Ln(p.data);F=KI(O,I),T=YI({creation:e,dataInfo:p,pieChartDataActuallyChanged:F,chartConfig:h,previousConfig:u,queryObject:i,popupTemplateFieldInfosEnabled:r?.usePopupTemplateFieldsInfo||r?.popupTemplateFieldInfosEnabled,utilsStrings:this.commonStrings.utilsStrings})}let L=await zN({creation:e,dataInfo:p,pieChartDataActuallyChanged:F,chartConfig:h,previousConfig:u,pieSlicesSymbols:T,queryObject:i,options:r,utilsStrings:this.commonStrings?.utilsStrings});if(L?.changesApplied&&(c=await Ix({input:L?.alteredConfig,queryObject:i,allowUsingObjectIdStat:r?.allowUsingObjectIdStat,errorStrings:this.commonStrings?.errorStrings}),c.valid&&(h=L?.alteredConfig,T=L.alteredPieSlicesSymbols,this._colorMatchApplied=L.colorMatchApplied,this._rendererFieldNames=L.rendererFieldNames)),h.series[0].type===V.PieSeries&&p.data&&"dataItems"in p.data&&tQ({data:p.data.dataItems,newChartConfig:h,pieSlicesSymbols:T,fieldList:s}),this.processedChartData=Fr(p.data),!c.valid)this.processInvalidConfigStatus(c,h);else{if((l||y)&&(this.notifyDataProcessComplete(p.data),this.notifyDataFetchComplete(p.data)),!this.filterBySelection&&!xs(i)){let Q=this.lastRenderedProps?.options?.selectionData,Y=!rn(Q?.selectionOIDs,this.selectionData?.selectionOIDs),G=await yT({chartConfig:h,chartData:this.processedChartData,dataWasUpdated:l,queryObject:i,selectionData:r?.selectionData,replaceNoValueCategoryWithZero:r?.replaceNoValueCategoryWithZero,hideZeroCountCategories:r?.hideZeroCountCategories,chartLimits:r?.chartLimits,setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,returnFeaturesExtent:r?.returnFeaturesExtent,popupTemplateFieldInfosEnabled:r?.popupTemplateFieldInfosEnabled,view:r?.view,viewExtentUpdated:r?.viewExtentUpdated,returnSelectionOIDs:r?.returnSelectionOIDs,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent,errorStrings:this.commonStrings?.errorStrings,selectionIDsChanged:Y});G&&r&&(r.selectionData={...r?.selectionData,selectionItems:G})}this.hideInfoModal();let{t9nLocale:O}=Iu(this.chartRef.value??document.documentElement),I=await OY(O,this.useAmCharts5()),U=h.series?.[0]?.query;vd(h)&&U&&(p.gaugeMinMaxFromData=await uT({queryObject:i,chartConfig:h,queryConfig:U,errorStrings:this.commonStrings?.errorStrings}));let P={chartConfig:h,options:r,globalOptions:this.gatherComponentGlobalOptions(),dataUpdateDetails:o,configWithAllSeries:g,dataWasUpdated:f,chartContainer:this.chartRef.value,queryObject:i,dataInfo:p,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:m,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this.commonStrings?.errorStrings,utilsStrings:this.commonStrings?.utilsStrings,amChartsStrings:I},loaderHandle:this.loaderHandle,dataUpdateNeededProps:{forceDataUpdateTick:this.forceDataUpdateTick,runtimeDataFilters:this.runtimeDataFilters,returnFeaturesExtent:this.returnFeaturesExtent,chartLimits:this.chartLimits,updateSplitBySeries:this.updateSplitBySeries},extraProps:{layer:this.layer,filterBySelection:this.filterBySelection,filterByExtent:this.filterByExtent,filterByViewExtent:this.filterByViewExtent}};if(e){let Q=this.useAmCharts5()?uY:WW;this.chart=Q(P)}else this.chart?.update(P),this.handleUpdateCompleted(c);if(vd(h)&&ju(h)&&h.series[0].type===V.GaugeSeries){let Q=p?.data&&"dataItems"in p.data?p.data.dataItems:[],Y=Mw({featureIndex:h.series[0].featureIndex,chartData:Q,chartConfig:h,gaugeMinMaxFromData:p.gaugeMinMaxFromData??{},queryConfig:U});Number.isNaN(Y.dataValue)&&this.raiseInvalidDataWarning(Ll.NoValue,Q.length)}this.lastRenderedProps=P,await this.generateHeatChartClassBreaks(p)}}}}}}}}}render(){this.calciteThemeColors=AY(this.el,this.calciteThemingCSSVariables);let t=this.notifyMessage?EY({heading:this.notifyHeading,message:this.notifyMessage,options:this.notifyOptions}):null,e=this.isAnyTaskPending()&&!this.hideLoaderAnimation||this.showLoader,i=this.infoModalMessage!==void 0&&this.showUIMessages!==!1&&!this.hideUIMessages||e,r=this.notifyMessage&&this.notifyOptions?.kind==="danger"||i,s={[sn.ChartWrapper]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r},n={[sn.ChartContainer]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r,[sn.DisableInteractions]:this.interactionsDisabled||this.disableInteractions},o=this.notifyMessage!==void 0?{[sn.NotifyPanel]:!0,[sn.Show]:!0}:{[sn.Hide]:!0};return ud`<slot name=${xT.actionBar} @slotchange=${l=>{this.actionBarElement=QT(l,this.el,this.config)}} ${Nb(this.actionBarSlotRef)}></slot>${i?ud`<arcgis-charts-info-modal .heading=${this.infoModalHeading} .message=${this.infoModalMessage} .showLoader=${e} .loaderColors=${this.loaderColors} .calciteThemeColors=${this.calciteThemeColors}></arcgis-charts-info-modal>`:null}<div class=${Um(s)}><div class=${Um(n)} ${Nb(this.chartRef)}></div></div><div class=${Um(o)}>${t}</div>`}};oF("arcgis-chart",bw);return bw},"core/reactiveUtils","intl","layers/FeatureLayer","layers/Layer","portal/PortalItem",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)