@arcgis/charts-components 5.1.0-next.80 → 5.1.0-next.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/2ADFKCPA.js +2 -0
- package/dist/cdn/2BAQEPCK.js +2 -0
- package/dist/cdn/3G26ZRB7.js +2 -0
- package/dist/cdn/4ASFVM5K.js +2 -0
- package/dist/cdn/4SRUJNYL.js +2 -0
- package/dist/cdn/5GD3PE32.js +2 -0
- package/dist/cdn/5U2X7LKH.js +2 -0
- package/dist/cdn/623QYMIQ.js +2 -0
- package/dist/cdn/6AUW6C3P.js +2 -0
- package/dist/cdn/6OUQ7ORF.js +2 -0
- package/dist/cdn/7CVRX5TJ.js +2 -0
- package/dist/cdn/7QYOWBFU.js +2 -0
- package/dist/cdn/7R3FEB3R.js +2 -0
- package/dist/cdn/7ZK3YGN6.js +2 -0
- package/dist/cdn/{4LH6RELA.js → A3N7FAEK.js} +1 -1
- package/dist/cdn/AVUM7BWA.js +2 -0
- package/dist/cdn/AZLVOWWT.js +99 -0
- package/dist/cdn/B7RU4X5Z.js +2 -0
- package/dist/cdn/BHFEFC6X.js +2 -0
- package/dist/cdn/BJAQIZB3.js +2 -0
- package/dist/cdn/BO7RCJZB.js +2 -0
- package/dist/cdn/{2NN5AE5D.js → CJ7NTZVC.js} +1 -1
- package/dist/cdn/CV3MN2OB.js +2 -0
- package/dist/cdn/D5EMJRBB.js +2 -0
- package/dist/cdn/DS42P2EG.js +2 -0
- package/dist/cdn/EE7MSNVY.js +2 -0
- package/dist/cdn/{LHNPAXRS.js → EFXQZRUY.js} +1 -1
- package/dist/cdn/EQ3IZDDQ.js +2 -0
- package/dist/cdn/{45P5JEKC.js → F5NS6O5R.js} +1 -1
- package/dist/cdn/{GPXGV2W3.js → FK52K255.js} +1 -1
- package/dist/cdn/FUFEC4JX.js +2 -0
- package/dist/cdn/FUHOULT2.js +2 -0
- package/dist/cdn/{HESIIJTB.js → FUOCURYO.js} +1 -1
- package/dist/cdn/FX754GOP.js +2 -0
- package/dist/cdn/{EEBFNI6X.js → G63R4TEN.js} +1 -1
- package/dist/cdn/{47WDNO2P.js → GEXUXKE2.js} +1 -1
- package/dist/cdn/GVBLRXKE.js +2 -0
- package/dist/cdn/HJRYXAVR.js +2 -0
- package/dist/cdn/HKGGDNSY.js +2 -0
- package/dist/cdn/HLSO5KDC.js +2 -0
- package/dist/cdn/{VOR2H3D7.js → IEPVBL2M.js} +1 -1
- package/dist/cdn/IY7457CX.js +2 -0
- package/dist/cdn/J6J3DXQC.js +2 -0
- package/dist/cdn/K4DKNVD7.js +2 -0
- package/dist/cdn/K76KZ3TY.js +2 -0
- package/dist/cdn/KCILWIMQ.js +2 -0
- package/dist/cdn/KGLVHBMW.js +2 -0
- package/dist/cdn/KZOJBRI6.js +2 -0
- package/dist/cdn/L4Y3GEOG.js +2 -0
- package/dist/cdn/LJU5JLT7.js +2 -0
- package/dist/cdn/LYZNGXSF.js +2 -0
- package/dist/cdn/{KFBMPA6U.js → MIYIXPXS.js} +1 -1
- package/dist/cdn/MUHGSAN5.js +2 -0
- package/dist/cdn/{PV4ROV2W.js → N2RUZDL5.js} +1 -1
- package/dist/cdn/{IVWZLS7W.js → NWRE6XI6.js} +1 -1
- package/dist/cdn/O4645DWG.js +2 -0
- package/dist/cdn/{MBC2KQUK.js → OLODR474.js} +1 -1
- package/dist/cdn/OOHBEF67.js +2 -0
- package/dist/cdn/OTMPMNL4.js +2 -0
- package/dist/cdn/OWRWKXFL.js +2 -0
- package/dist/cdn/{HWJIFGRR.js → PMFA3GVU.js} +1 -1
- package/dist/cdn/PORI3GND.js +2 -0
- package/dist/cdn/PQZYONXN.js +2 -0
- package/dist/cdn/PSCAEQLN.js +2 -0
- package/dist/cdn/PWCAXPNP.js +2 -0
- package/dist/cdn/QILOZFO7.js +58 -0
- package/dist/cdn/QOJZM6EZ.js +2 -0
- package/dist/cdn/{FOYNQPWL.js → QX3TWFL2.js} +1 -1
- package/dist/cdn/R2BGMXLL.js +2 -0
- package/dist/cdn/{ZEQ6Q5SM.js → RCAB2G52.js} +1 -1
- package/dist/cdn/RN72ZH7K.js +2 -0
- package/dist/cdn/RS6N2KGI.js +2 -0
- package/dist/cdn/S2H4RCXL.js +2 -0
- package/dist/cdn/S5FXOTG4.js +2 -0
- package/dist/cdn/SZKVED6M.js +2 -0
- package/dist/cdn/{ICCNKIGD.js → TCGJR6OG.js} +1 -1
- package/dist/cdn/TITJWWP7.js +2 -0
- package/dist/cdn/{IZCUAYGW.js → TKTNTVES.js} +1 -1
- package/dist/cdn/UBI26YGI.js +2 -0
- package/dist/cdn/UC2KHUNN.js +2 -0
- package/dist/cdn/{MGIPPTHG.js → UMXNCRW5.js} +1 -1
- package/dist/cdn/UOC3SKN2.js +2 -0
- package/dist/cdn/UR6A4VM5.js +2 -0
- package/dist/cdn/UWIRHZ3N.js +2 -0
- package/dist/cdn/V7CMOKQQ.js +2 -0
- package/dist/cdn/VDZ5R7WX.js +2 -0
- package/dist/cdn/VPVFOEEH.js +2 -0
- package/dist/cdn/{SYV4I4MD.js → WFGGTYWP.js} +2 -2
- package/dist/cdn/WG43MAVJ.js +2 -0
- package/dist/cdn/WRNEDEFZ.js +2 -0
- package/dist/cdn/WY264B2J.js +2 -0
- package/dist/cdn/X7ENJ4HH.js +2 -0
- package/dist/cdn/XBBP6DN4.js +2 -0
- package/dist/cdn/XHVWL7MY.js +2 -0
- package/dist/cdn/XR44W6VF.js +2 -0
- package/dist/cdn/YCXOS27R.js +2 -0
- package/dist/cdn/YGCLG2LA.js +2 -0
- package/dist/cdn/YJXIGYX6.js +2 -0
- package/dist/cdn/YUN4XIA2.js +2 -0
- package/dist/cdn/YWFHR2KJ.js +2 -0
- package/dist/cdn/ZC6NYZDM.js +2 -0
- package/dist/cdn/ZKVDUGFR.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +12 -15
- package/dist/chunks/bar-chart-model.js +6 -9
- package/dist/chunks/bar-chart-series.js +8 -10
- package/dist/chunks/box-plot-data.js +51 -53
- package/dist/chunks/box-plot-model.js +16 -15
- package/dist/chunks/chart-model.js +50 -53
- package/dist/chunks/chart-ui-utils2.js +51 -54
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +20 -19
- package/dist/chunks/data.js +10 -13
- package/dist/chunks/gauge-model.js +10 -13
- package/dist/chunks/generate-x-axis-title.js +8 -11
- package/dist/chunks/heat-chart-model.js +6 -9
- package/dist/chunks/histogram-data.js +37 -40
- package/dist/chunks/index.js +4382 -5208
- package/dist/chunks/index2.js +28 -27
- package/dist/chunks/index4.js +95 -63
- package/dist/chunks/index5.js +66 -0
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +21 -24
- package/dist/chunks/model-with-guides.js +8 -10
- package/dist/chunks/model-with-tooltips.js +26 -29
- package/dist/chunks/model-with-y-guides.js +0 -3
- package/dist/chunks/negative-values-stacked-to-baseline.js +48 -50
- package/dist/chunks/pie-chart-data.js +57 -60
- package/dist/chunks/pie-chart-model.js +1 -4
- package/dist/chunks/radar-chart-model.js +6 -9
- package/dist/chunks/rotated-state.js +7 -10
- package/dist/chunks/scatterplot-model.js +9 -12
- package/dist/chunks/serial-chart-data.js +187 -189
- package/dist/chunks/serial-chart-model.js +12 -14
- package/dist/chunks/series-length.js +4 -7
- package/dist/chunks/series.js +6 -9
- package/dist/chunks/utils.js +58 -60
- package/dist/chunks/utils2.js +22 -25
- package/dist/chunks/web-component-utils.js +19 -19
- package/dist/components/arcgis-chart/customElement.js +8753 -8065
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -9
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -7
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +9 -12
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +5 -7
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +9 -12
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -14
- package/dist/components/arcgis-charts-config-font-style/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-format/customElement.js +2 -4
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-guide/customElement.js +12 -14
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +3 -6
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +3 -6
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +7 -9
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +12 -15
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +10 -13
- package/dist/components/arcgis-charts-config-histogram/customElement.js +11 -13
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +20 -23
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +6 -8
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +3 -6
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -7
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +0 -3
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -8
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +9 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -4
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +0 -3
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +305 -304
- package/package.json +3 -3
- package/dist/cdn/2EFFPZSB.js +0 -2
- package/dist/cdn/3AIE3FUA.js +0 -2
- package/dist/cdn/3LYW7DPP.js +0 -2
- package/dist/cdn/3MHB5VAM.js +0 -37
- package/dist/cdn/3VEQ7HMG.js +0 -2
- package/dist/cdn/4GCUO37L.js +0 -2
- package/dist/cdn/4IYPGSMC.js +0 -2
- package/dist/cdn/4YZHTVL7.js +0 -2
- package/dist/cdn/52XNA2DH.js +0 -2
- package/dist/cdn/57CR5SOU.js +0 -2
- package/dist/cdn/5ZYCFKFX.js +0 -2
- package/dist/cdn/66KEM4LG.js +0 -2
- package/dist/cdn/6DGQQ4V4.js +0 -2
- package/dist/cdn/6FB455E4.js +0 -2
- package/dist/cdn/6P6HFKV2.js +0 -2
- package/dist/cdn/7GWVJEAI.js +0 -2
- package/dist/cdn/7I2D5SVD.js +0 -2
- package/dist/cdn/7ICRLJ5R.js +0 -2
- package/dist/cdn/7K2V6YNA.js +0 -2
- package/dist/cdn/7X23S5SF.js +0 -2
- package/dist/cdn/A4FCRGKH.js +0 -2
- package/dist/cdn/ALMGT4ZN.js +0 -2
- package/dist/cdn/BBBLK7RI.js +0 -2
- package/dist/cdn/BCPVUKSF.js +0 -2
- package/dist/cdn/CXSNVG3M.js +0 -2
- package/dist/cdn/DYQRIA4G.js +0 -2
- package/dist/cdn/E5P3LY6E.js +0 -2
- package/dist/cdn/E6S67HXA.js +0 -2
- package/dist/cdn/FPBBWTJ7.js +0 -2
- package/dist/cdn/G2EWR4OS.js +0 -2
- package/dist/cdn/GDTHQBCP.js +0 -2
- package/dist/cdn/H32MCV7J.js +0 -2
- package/dist/cdn/HNRWEWFM.js +0 -2
- package/dist/cdn/IKRCUXIB.js +0 -2
- package/dist/cdn/IO7TJZDW.js +0 -2
- package/dist/cdn/IXGXDRYR.js +0 -2
- package/dist/cdn/JB527BEY.js +0 -2
- package/dist/cdn/JLFVNF5U.js +0 -2
- package/dist/cdn/JZPDA4LD.js +0 -2
- package/dist/cdn/KC5H5WGK.js +0 -2
- package/dist/cdn/KFIYYH54.js +0 -2
- package/dist/cdn/KQD5PSPV.js +0 -2
- package/dist/cdn/KRGZLJM5.js +0 -2
- package/dist/cdn/KUO2EPUE.js +0 -2
- package/dist/cdn/LD2K2FUM.js +0 -2
- package/dist/cdn/LNTDBU7W.js +0 -2
- package/dist/cdn/LPGL66XP.js +0 -2
- package/dist/cdn/LT4HKSXR.js +0 -2
- package/dist/cdn/LX5QI6J3.js +0 -2
- package/dist/cdn/MFIKF7RC.js +0 -2
- package/dist/cdn/NFBNUOS2.js +0 -2
- package/dist/cdn/NHN6CQRE.js +0 -2
- package/dist/cdn/OQLV6YYT.js +0 -2
- package/dist/cdn/P2MVLEZ7.js +0 -2
- package/dist/cdn/Q3YDW4V6.js +0 -2
- package/dist/cdn/QF7PCBW5.js +0 -2
- package/dist/cdn/QGLWCPMB.js +0 -2
- package/dist/cdn/QJKJNE7A.js +0 -2
- package/dist/cdn/RI65IJRW.js +0 -2
- package/dist/cdn/SJWEUS4D.js +0 -2
- package/dist/cdn/SLB3Y7Q2.js +0 -2
- package/dist/cdn/SUUMGHCO.js +0 -2
- package/dist/cdn/T47JP5N6.js +0 -2
- package/dist/cdn/TJ3ALCTV.js +0 -2
- package/dist/cdn/TZG37HE4.js +0 -2
- package/dist/cdn/UM7JZ2DY.js +0 -2
- package/dist/cdn/V45SCYTC.js +0 -2
- package/dist/cdn/VPLVBL2P.js +0 -2
- package/dist/cdn/WTQDFRE7.js +0 -2
- package/dist/cdn/X234G7PD.js +0 -2
- package/dist/cdn/X7FQPP5T.js +0 -2
- package/dist/cdn/XJFKEIB4.js +0 -2
- package/dist/cdn/XLHQQCTU.js +0 -2
- package/dist/cdn/XSH2YEV4.js +0 -2
- package/dist/cdn/Y3E4HJZ6.js +0 -2
- package/dist/cdn/Y5KIJ6GX.js +0 -120
- package/dist/cdn/YKJO6KSB.js +0 -2
- package/dist/cdn/YSZU65DU.js +0 -2
- package/dist/cdn/ZMVYIIG4.js +0 -2
- package/dist/chunks/bg_BG2.js +0 -10
- package/dist/chunks/sk_SK.js +0 -10
- /package/dist/cdn/{ZRULG7VV.js → GKNEQGLI.js} +0 -0
- /package/dist/cdn/{J6TUXYMO.js → S5OM65RV.js} +0 -0
package/dist/cdn/Y5KIJ6GX.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{D as qi,E as ls,a as ih,d as rh,g as sa,k as Vd,l as Ha,n as by,r as Md,t as wt,u as Ri,v as wa,w as _i,x as nt,y as Pt,z as dt}from"./Y7IQV44J.js";import{c as vy,d as Nd,f as oa,g as Ir}from"./KFBMPA6U.js";import{a as $,b as ie,c as Yt,e as Ll,f as Dr,h as hi,i as El,j as xy,k as Le,l as Fr,n as dr,o as si,p as Sy,q as mn,s as Cy,t as wy,v as cr,y as Ae}from"./ETLJKITO.js";import{H as na}from"./ZRULG7VV.js";import{b as je,c as Pw,d as _w}from"./QPIMTXPL.js";export default $arcgis.t(([{computeStatisticsHistograms:nD,fetchPixelFeatureSet:sD,computeRasterAttributeTable:oD},XS,Um,lD,uD,hD,pD,dD,cD,fD,KS,mD,Gm,yd,ZS,yD,wl,PS,gD,_S,vD,{substitute:ui},{sqlLiteral:bD},Ym,xD,SD,CD])=>{var Px=je((Hp,wx)=>{(function(a,t){typeof Hp=="object"&&typeof wx<"u"?t(Hp):typeof define=="function"&&define.amd?define(["exports"],t):t(a.URI=a.URI||{})})(Hp,(function(a){"use strict";function t(){for(var k=arguments.length,I=Array(k),M=0;M<k;M++)I[M]=arguments[M];if(I.length>1){I[0]=I[0].slice(0,-1);for(var H=I.length-1,G=1;G<H;++G)I[G]=I[G].slice(1,-1);return I[H]=I[H].slice(1),I.join("")}else return I[0]}function e(k){return"(?:"+k+")"}function i(k){return k===void 0?"undefined":k===null?"null":Object.prototype.toString.call(k).split(" ").pop().split("]").shift().toLowerCase()}function r(k){return k.toUpperCase()}function n(k){return k!=null?k instanceof Array?k:typeof k.length!="number"||k.split||k.setInterval||k.call?[k]:Array.prototype.slice.call(k):[]}function s(k,I){var M=k;if(I)for(var H in I)M[H]=I[H];return M}function o(k){var I="[A-Za-z]",M="[\\x0D]",H="[0-9]",G="[\\x22]",be=t(H,"[A-Fa-f]"),Xe="[\\x0A]",Ct="[\\x20]",At=e(e("%[EFef]"+be+"%"+be+be+"%"+be+be)+"|"+e("%[89A-Fa-f]"+be+"%"+be+be)+"|"+e("%"+be+be)),yi="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ei=t(yi,vt),gi=k?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Kt=k?"[\\uE000-\\uF8FF]":"[]",Ot=t(I,H,"[\\-\\.\\_\\~]",gi),ti=e(I+t(I,H,"[\\+\\-\\.]")+"*"),jt=e(e(At+"|"+t(Ot,vt,"[\\:]"))+"*"),ns=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),$r=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),zr=e($r+"\\."+$r+"\\."+$r+"\\."+$r),Ht=e(be+"{1,4}"),Or=e(e(Ht+"\\:"+Ht)+"|"+zr),Hr=e(e(Ht+"\\:")+"{6}"+Or),Ca=e("\\:\\:"+e(Ht+"\\:")+"{5}"+Or),ss=e(e(Ht)+"?\\:\\:"+e(Ht+"\\:")+"{4}"+Or),Wa=e(e(e(Ht+"\\:")+"{0,1}"+Ht)+"?\\:\\:"+e(Ht+"\\:")+"{3}"+Or),Ol=e(e(e(Ht+"\\:")+"{0,2}"+Ht)+"?\\:\\:"+e(Ht+"\\:")+"{2}"+Or),Ju=e(e(e(Ht+"\\:")+"{0,3}"+Ht)+"?\\:\\:"+Ht+"\\:"+Or),eh=e(e(e(Ht+"\\:")+"{0,4}"+Ht)+"?\\:\\:"+Or),io=e(e(e(Ht+"\\:")+"{0,5}"+Ht)+"?\\:\\:"+Ht),ro=e(e(e(Ht+"\\:")+"{0,6}"+Ht)+"?\\:\\:"),qa=e([Hr,Ca,ss,Wa,Ol,Ju,eh,io,ro].join("|")),ao=e(e(Ot+"|"+At)+"+"),Ed=e(qa+"\\%25"+ao),os=e(qa+e("\\%25|\\%(?!"+be+"{2})")+ao),gw=e("[vV]"+be+"+\\."+t(Ot,vt,"[\\:]")+"+"),vw=e("\\["+e(os+"|"+qa+"|"+gw)+"\\]"),fy=e(e(At+"|"+t(Ot,vt))+"*"),Dl=e(vw+"|"+zr+"(?!"+fy+")|"+fy),Fl=e(H+"*"),my=e(e(jt+"@")+"?"+Dl+e("\\:"+Fl)+"?"),Il=e(At+"|"+t(Ot,vt,"[\\:\\@]")),bw=e(Il+"*"),yy=e(Il+"+"),xw=e(e(At+"|"+t(Ot,vt,"[\\@]"))+"+"),za=e(e("\\/"+bw)+"*"),no=e("\\/"+e(yy+za)+"?"),kd=e(xw+za),th=e(yy+za),so="(?!"+Il+")",DE=e(za+"|"+no+"|"+kd+"|"+th+"|"+so),oo=e(e(Il+"|"+t("[\\/\\?]",Kt))+"*"),Al=e(e(Il+"|[\\/\\?]")+"*"),gy=e(e("\\/\\/"+my+za)+"|"+no+"|"+th+"|"+so),Sw=e(ti+"\\:"+gy+e("\\?"+oo)+"?"+e("\\#"+Al)+"?"),Cw=e(e("\\/\\/"+my+za)+"|"+no+"|"+kd+"|"+so),ww=e(Cw+e("\\?"+oo)+"?"+e("\\#"+Al)+"?"),FE=e(Sw+"|"+ww),IE=e(ti+"\\:"+gy+e("\\?"+oo)+"?"),AE="^("+ti+")\\:"+e(e("\\/\\/("+e("("+jt+")@")+"?("+Dl+")"+e("\\:("+Fl+")")+"?)")+"?("+za+"|"+no+"|"+th+"|"+so+")")+e("\\?("+oo+")")+"?"+e("\\#("+Al+")")+"?$",LE="^(){0}"+e(e("\\/\\/("+e("("+jt+")@")+"?("+Dl+")"+e("\\:("+Fl+")")+"?)")+"?("+za+"|"+no+"|"+kd+"|"+so+")")+e("\\?("+oo+")")+"?"+e("\\#("+Al+")")+"?$",EE="^("+ti+")\\:"+e(e("\\/\\/("+e("("+jt+")@")+"?("+Dl+")"+e("\\:("+Fl+")")+"?)")+"?("+za+"|"+no+"|"+th+"|"+so+")")+e("\\?("+oo+")")+"?$",kE="^"+e("\\#("+Al+")")+"?$",VE="^"+e("("+jt+")@")+"?("+Dl+")"+e("\\:("+Fl+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",I,H,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Ot,vt),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Ot,vt),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Ot,vt),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Ot,vt),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]",Kt),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Ot,vt),"g"),UNRESERVED:new RegExp(Ot,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Ot,ei),"g"),PCT_ENCODED:new RegExp(At,"g"),IPV4ADDRESS:new RegExp("^("+zr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+qa+")"+e(e("\\%25|\\%(?!"+be+"{2})")+"("+ao+")")+"?\\]?$")}}var l=o(!1),u=o(!0),h=(function(){function k(I,M){var H=[],G=!0,be=!1,Xe=void 0;try{for(var Ct=I[Symbol.iterator](),At;!(G=(At=Ct.next()).done)&&(H.push(At.value),!(M&&H.length===M));G=!0);}catch(yi){be=!0,Xe=yi}finally{try{!G&&Ct.return&&Ct.return()}finally{if(be)throw Xe}}return H}return function(I,M){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return k(I,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=function(k){if(Array.isArray(k)){for(var I=0,M=Array(k.length);I<k.length;I++)M[I]=k[I];return M}else return Array.from(k)},d=2147483647,c=36,f=1,m=26,y=38,g=700,v=72,b=128,P="-",w=/^xn--/,T=/[^\0-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=c-f,N=Math.floor,L=String.fromCharCode;function E(k){throw new RangeError(D[k])}function B(k,I){for(var M=[],H=k.length;H--;)M[H]=I(k[H]);return M}function U(k,I){var M=k.split("@"),H="";M.length>1&&(H=M[0]+"@",k=M[1]),k=k.replace(F,".");var G=k.split("."),be=B(G,I).join(".");return H+be}function q(k){for(var I=[],M=0,H=k.length;M<H;){var G=k.charCodeAt(M++);if(G>=55296&&G<=56319&&M<H){var be=k.charCodeAt(M++);(be&64512)==56320?I.push(((G&1023)<<10)+(be&1023)+65536):(I.push(G),M--)}else I.push(G)}return I}var Y=function(I){return String.fromCodePoint.apply(String,p(I))},he=function(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:c},re=function(I,M){return I+22+75*(I<26)-((M!=0)<<5)},pe=function(I,M,H){var G=0;for(I=H?N(I/g):I>>1,I+=N(I/M);I>O*m>>1;G+=c)I=N(I/O);return N(G+(O+1)*I/(I+y))},le=function(I){var M=[],H=I.length,G=0,be=b,Xe=v,Ct=I.lastIndexOf(P);Ct<0&&(Ct=0);for(var At=0;At<Ct;++At)I.charCodeAt(At)>=128&&E("not-basic"),M.push(I.charCodeAt(At));for(var yi=Ct>0?Ct+1:0;yi<H;){for(var vt=G,ei=1,gi=c;;gi+=c){yi>=H&&E("invalid-input");var Kt=he(I.charCodeAt(yi++));(Kt>=c||Kt>N((d-G)/ei))&&E("overflow"),G+=Kt*ei;var Ot=gi<=Xe?f:gi>=Xe+m?m:gi-Xe;if(Kt<Ot)break;var ti=c-Ot;ei>N(d/ti)&&E("overflow"),ei*=ti}var jt=M.length+1;Xe=pe(G-vt,jt,vt==0),N(G/jt)>d-be&&E("overflow"),be+=N(G/jt),G%=jt,M.splice(G++,0,be)}return String.fromCodePoint.apply(String,M)},Pe=function(I){var M=[];I=q(I);var H=I.length,G=b,be=0,Xe=v,Ct=!0,At=!1,yi=void 0;try{for(var vt=I[Symbol.iterator](),ei;!(Ct=(ei=vt.next()).done);Ct=!0){var gi=ei.value;gi<128&&M.push(L(gi))}}catch(os){At=!0,yi=os}finally{try{!Ct&&vt.return&&vt.return()}finally{if(At)throw yi}}var Kt=M.length,Ot=Kt;for(Kt&&M.push(P);Ot<H;){var ti=d,jt=!0,ns=!1,$r=void 0;try{for(var zr=I[Symbol.iterator](),Ht;!(jt=(Ht=zr.next()).done);jt=!0){var Or=Ht.value;Or>=G&&Or<ti&&(ti=Or)}}catch(os){ns=!0,$r=os}finally{try{!jt&&zr.return&&zr.return()}finally{if(ns)throw $r}}var Hr=Ot+1;ti-G>N((d-be)/Hr)&&E("overflow"),be+=(ti-G)*Hr,G=ti;var Ca=!0,ss=!1,Wa=void 0;try{for(var Ol=I[Symbol.iterator](),Ju;!(Ca=(Ju=Ol.next()).done);Ca=!0){var eh=Ju.value;if(eh<G&&++be>d&&E("overflow"),eh==G){for(var io=be,ro=c;;ro+=c){var qa=ro<=Xe?f:ro>=Xe+m?m:ro-Xe;if(io<qa)break;var ao=io-qa,Ed=c-qa;M.push(L(re(qa+ao%Ed,0))),io=N(ao/Ed)}M.push(L(re(io,0))),Xe=pe(be,Hr,Ot==Kt),be=0,++Ot}}}catch(os){ss=!0,Wa=os}finally{try{!Ca&&Ol.return&&Ol.return()}finally{if(ss)throw Wa}}++be,++G}return M.join("")},ae=function(I){return U(I,function(M){return w.test(M)?le(M.slice(4).toLowerCase()):M})},Oe=function(I){return U(I,function(M){return T.test(M)?"xn--"+Pe(M):M})},ve={version:"2.1.0",ucs2:{decode:q,encode:Y},decode:le,encode:Pe,toASCII:Oe,toUnicode:ae},Ye={};function Qe(k){var I=k.charCodeAt(0),M=void 0;return I<16?M="%0"+I.toString(16).toUpperCase():I<128?M="%"+I.toString(16).toUpperCase():I<2048?M="%"+(I>>6|192).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase():M="%"+(I>>12|224).toString(16).toUpperCase()+"%"+(I>>6&63|128).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase(),M}function rt(k){for(var I="",M=0,H=k.length;M<H;){var G=parseInt(k.substr(M+1,2),16);if(G<128)I+=String.fromCharCode(G),M+=3;else if(G>=194&&G<224){if(H-M>=6){var be=parseInt(k.substr(M+4,2),16);I+=String.fromCharCode((G&31)<<6|be&63)}else I+=k.substr(M,6);M+=6}else if(G>=224){if(H-M>=9){var Xe=parseInt(k.substr(M+4,2),16),Ct=parseInt(k.substr(M+7,2),16);I+=String.fromCharCode((G&15)<<12|(Xe&63)<<6|Ct&63)}else I+=k.substr(M,9);M+=9}else I+=k.substr(M,3),M+=3}return I}function zt(k,I){function M(H){var G=rt(H);return G.match(I.UNRESERVED)?G:H}return k.scheme&&(k.scheme=String(k.scheme).replace(I.PCT_ENCODED,M).toLowerCase().replace(I.NOT_SCHEME,"")),k.userinfo!==void 0&&(k.userinfo=String(k.userinfo).replace(I.PCT_ENCODED,M).replace(I.NOT_USERINFO,Qe).replace(I.PCT_ENCODED,r)),k.host!==void 0&&(k.host=String(k.host).replace(I.PCT_ENCODED,M).toLowerCase().replace(I.NOT_HOST,Qe).replace(I.PCT_ENCODED,r)),k.path!==void 0&&(k.path=String(k.path).replace(I.PCT_ENCODED,M).replace(k.scheme?I.NOT_PATH:I.NOT_PATH_NOSCHEME,Qe).replace(I.PCT_ENCODED,r)),k.query!==void 0&&(k.query=String(k.query).replace(I.PCT_ENCODED,M).replace(I.NOT_QUERY,Qe).replace(I.PCT_ENCODED,r)),k.fragment!==void 0&&(k.fragment=String(k.fragment).replace(I.PCT_ENCODED,M).replace(I.NOT_FRAGMENT,Qe).replace(I.PCT_ENCODED,r)),k}function Gt(k){return k.replace(/^0*(.*)/,"$1")||"0"}function at(k,I){var M=k.match(I.IPV4ADDRESS)||[],H=h(M,2),G=H[1];return G?G.split(".").map(Gt).join("."):k}function mt(k,I){var M=k.match(I.IPV6ADDRESS)||[],H=h(M,3),G=H[1],be=H[2];if(G){for(var Xe=G.toLowerCase().split("::").reverse(),Ct=h(Xe,2),At=Ct[0],yi=Ct[1],vt=yi?yi.split(":").map(Gt):[],ei=At.split(":").map(Gt),gi=I.IPV4ADDRESS.test(ei[ei.length-1]),Kt=gi?7:8,Ot=ei.length-Kt,ti=Array(Kt),jt=0;jt<Kt;++jt)ti[jt]=vt[jt]||ei[Ot+jt]||"";gi&&(ti[Kt-1]=at(ti[Kt-1],I));var ns=ti.reduce(function(Hr,Ca,ss){if(!Ca||Ca==="0"){var Wa=Hr[Hr.length-1];Wa&&Wa.index+Wa.length===ss?Wa.length++:Hr.push({index:ss,length:1})}return Hr},[]),$r=ns.sort(function(Hr,Ca){return Ca.length-Hr.length})[0],zr=void 0;if($r&&$r.length>1){var Ht=ti.slice(0,$r.index),Or=ti.slice($r.index+$r.length);zr=Ht.join(":")+"::"+Or.join(":")}else zr=ti.join(":");return be&&(zr+="%"+be),zr}else return k}var mi=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Jt="".match(/(){0}/)[1]===void 0;function yt(k){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M={},H=I.iri!==!1?u:l;I.reference==="suffix"&&(k=(I.scheme?I.scheme+":":"")+"//"+k);var G=k.match(mi);if(G){Jt?(M.scheme=G[1],M.userinfo=G[3],M.host=G[4],M.port=parseInt(G[5],10),M.path=G[6]||"",M.query=G[7],M.fragment=G[8],isNaN(M.port)&&(M.port=G[5])):(M.scheme=G[1]||void 0,M.userinfo=k.indexOf("@")!==-1?G[3]:void 0,M.host=k.indexOf("//")!==-1?G[4]:void 0,M.port=parseInt(G[5],10),M.path=G[6]||"",M.query=k.indexOf("?")!==-1?G[7]:void 0,M.fragment=k.indexOf("#")!==-1?G[8]:void 0,isNaN(M.port)&&(M.port=k.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?G[4]:void 0)),M.host&&(M.host=mt(at(M.host,H),H)),M.scheme===void 0&&M.userinfo===void 0&&M.host===void 0&&M.port===void 0&&!M.path&&M.query===void 0?M.reference="same-document":M.scheme===void 0?M.reference="relative":M.fragment===void 0?M.reference="absolute":M.reference="uri",I.reference&&I.reference!=="suffix"&&I.reference!==M.reference&&(M.error=M.error||"URI is not a "+I.reference+" reference.");var be=Ye[(I.scheme||M.scheme||"").toLowerCase()];if(!I.unicodeSupport&&(!be||!be.unicodeSupport)){if(M.host&&(I.domainHost||be&&be.domainHost))try{M.host=ve.toASCII(M.host.replace(H.PCT_ENCODED,rt).toLowerCase())}catch(Xe){M.error=M.error||"Host's domain name can not be converted to ASCII via punycode: "+Xe}zt(M,l)}else zt(M,H);be&&be.parse&&be.parse(M,I)}else M.error=M.error||"URI can not be parsed.";return M}function er(k,I){var M=I.iri!==!1?u:l,H=[];return k.userinfo!==void 0&&(H.push(k.userinfo),H.push("@")),k.host!==void 0&&H.push(mt(at(String(k.host),M),M).replace(M.IPV6ADDRESS,function(G,be,Xe){return"["+be+(Xe?"%25"+Xe:"")+"]"})),(typeof k.port=="number"||typeof k.port=="string")&&(H.push(":"),H.push(String(k.port))),H.length?H.join(""):void 0}var hr=/^\.\.?\//,Br=/^\/\.(\/|$)/,Wr=/^\/\.\.(\/|$)/,ni=/^\/?(?:.|\n)*?(?=\/|$)/;function Mi(k){for(var I=[];k.length;)if(k.match(hr))k=k.replace(hr,"");else if(k.match(Br))k=k.replace(Br,"/");else if(k.match(Wr))k=k.replace(Wr,"/"),I.pop();else if(k==="."||k==="..")k="";else{var M=k.match(ni);if(M){var H=M[0];k=k.slice(H.length),I.push(H)}else throw new Error("Unexpected dot segment condition")}return I.join("")}function wi(k){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=I.iri?u:l,H=[],G=Ye[(I.scheme||k.scheme||"").toLowerCase()];if(G&&G.serialize&&G.serialize(k,I),k.host&&!M.IPV6ADDRESS.test(k.host)){if(I.domainHost||G&&G.domainHost)try{k.host=I.iri?ve.toUnicode(k.host):ve.toASCII(k.host.replace(M.PCT_ENCODED,rt).toLowerCase())}catch(Ct){k.error=k.error||"Host's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+Ct}}zt(k,M),I.reference!=="suffix"&&k.scheme&&(H.push(k.scheme),H.push(":"));var be=er(k,I);if(be!==void 0&&(I.reference!=="suffix"&&H.push("//"),H.push(be),k.path&&k.path.charAt(0)!=="/"&&H.push("/")),k.path!==void 0){var Xe=k.path;!I.absolutePath&&(!G||!G.absolutePath)&&(Xe=Mi(Xe)),be===void 0&&(Xe=Xe.replace(/^\/\//,"/%2F")),H.push(Xe)}return k.query!==void 0&&(H.push("?"),H.push(k.query)),k.fragment!==void 0&&(H.push("#"),H.push(k.fragment)),H.join("")}function Pi(k,I){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],G={};return H||(k=yt(wi(k,M),M),I=yt(wi(I,M),M)),M=M||{},!M.tolerant&&I.scheme?(G.scheme=I.scheme,G.userinfo=I.userinfo,G.host=I.host,G.port=I.port,G.path=Mi(I.path||""),G.query=I.query):(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0?(G.userinfo=I.userinfo,G.host=I.host,G.port=I.port,G.path=Mi(I.path||""),G.query=I.query):(I.path?(I.path.charAt(0)==="/"?G.path=Mi(I.path):((k.userinfo!==void 0||k.host!==void 0||k.port!==void 0)&&!k.path?G.path="/"+I.path:k.path?G.path=k.path.slice(0,k.path.lastIndexOf("/")+1)+I.path:G.path=I.path,G.path=Mi(G.path)),G.query=I.query):(G.path=k.path,I.query!==void 0?G.query=I.query:G.query=k.query),G.userinfo=k.userinfo,G.host=k.host,G.port=k.port),G.scheme=k.scheme),G.fragment=I.fragment,G}function qr(k,I,M){var H=s({scheme:"null"},M);return wi(Pi(yt(k,H),yt(I,H),H,!0),H)}function tr(k,I){return typeof k=="string"?k=wi(yt(k,I),I):i(k)==="object"&&(k=yt(wi(k,I),I)),k}function eo(k,I,M){return typeof k=="string"?k=wi(yt(k,M),M):i(k)==="object"&&(k=wi(k,M)),typeof I=="string"?I=wi(yt(I,M),M):i(I)==="object"&&(I=wi(I,M)),k===I}function Tl(k,I){return k&&k.toString().replace(!I||!I.iri?l.ESCAPE:u.ESCAPE,Qe)}function pr(k,I){return k&&k.toString().replace(!I||!I.iri?l.PCT_ENCODED:u.PCT_ENCODED,rt)}var Et={scheme:"http",domainHost:!0,parse:function(I,M){return I.host||(I.error=I.error||"HTTP URIs must have a host."),I},serialize:function(I,M){var H=String(I.scheme).toLowerCase()==="https";return(I.port===(H?443:80)||I.port==="")&&(I.port=void 0),I.path||(I.path="/"),I}},Ba={scheme:"https",domainHost:Et.domainHost,parse:Et.parse,serialize:Et.serialize};function Ni(k){return typeof k.secure=="boolean"?k.secure:String(k.scheme).toLowerCase()==="wss"}var $l={scheme:"ws",domainHost:!0,parse:function(I,M){var H=I;return H.secure=Ni(H),H.resourceName=(H.path||"/")+(H.query?"?"+H.query:""),H.path=void 0,H.query=void 0,H},serialize:function(I,M){if((I.port===(Ni(I)?443:80)||I.port==="")&&(I.port=void 0),typeof I.secure=="boolean"&&(I.scheme=I.secure?"wss":"ws",I.secure=void 0),I.resourceName){var H=I.resourceName.split("?"),G=h(H,2),be=G[0],Xe=G[1];I.path=be&&be!=="/"?be:void 0,I.query=Xe,I.resourceName=void 0}return I.fragment=void 0,I}},ly={scheme:"wss",domainHost:$l.domainHost,parse:$l.parse,serialize:$l.serialize},nw={},sw=!0,uy="[A-Za-z0-9\\-\\.\\_\\~"+(sw?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Sa="[0-9A-Fa-f]",ow=e(e("%[EFef]"+Sa+"%"+Sa+Sa+"%"+Sa+Sa)+"|"+e("%[89A-Fa-f]"+Sa+"%"+Sa+Sa)+"|"+e("%"+Sa+Sa)),lw="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",uw="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hw=t(uw,'[\\"\\\\]'),pw="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",dw=new RegExp(uy,"g"),to=new RegExp(ow,"g"),cw=new RegExp(t("[^]",lw,"[\\.]",'[\\"]',hw),"g"),hy=new RegExp(t("[^]",uy,pw),"g"),fw=hy;function Ld(k){var I=rt(k);return I.match(dw)?I:k}var py={scheme:"mailto",parse:function(I,M){var H=I,G=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var be=!1,Xe={},Ct=H.query.split("&"),At=0,yi=Ct.length;At<yi;++At){var vt=Ct[At].split("=");switch(vt[0]){case"to":for(var ei=vt[1].split(","),gi=0,Kt=ei.length;gi<Kt;++gi)G.push(ei[gi]);break;case"subject":H.subject=pr(vt[1],M);break;case"body":H.body=pr(vt[1],M);break;default:be=!0,Xe[pr(vt[0],M)]=pr(vt[1],M);break}}be&&(H.headers=Xe)}H.query=void 0;for(var Ot=0,ti=G.length;Ot<ti;++Ot){var jt=G[Ot].split("@");if(jt[0]=pr(jt[0]),M.unicodeSupport)jt[1]=pr(jt[1],M).toLowerCase();else try{jt[1]=ve.toASCII(pr(jt[1],M).toLowerCase())}catch(ns){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+ns}G[Ot]=jt.join("@")}return H},serialize:function(I,M){var H=I,G=n(I.to);if(G){for(var be=0,Xe=G.length;be<Xe;++be){var Ct=String(G[be]),At=Ct.lastIndexOf("@"),yi=Ct.slice(0,At).replace(to,Ld).replace(to,r).replace(cw,Qe),vt=Ct.slice(At+1);try{vt=M.iri?ve.toUnicode(vt):ve.toASCII(pr(vt,M).toLowerCase())}catch(Ot){H.error=H.error||"Email address's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Ot}G[be]=yi+"@"+vt}H.path=G.join(",")}var ei=I.headers=I.headers||{};I.subject&&(ei.subject=I.subject),I.body&&(ei.body=I.body);var gi=[];for(var Kt in ei)ei[Kt]!==nw[Kt]&&gi.push(Kt.replace(to,Ld).replace(to,r).replace(hy,Qe)+"="+ei[Kt].replace(to,Ld).replace(to,r).replace(fw,Qe));return gi.length&&(H.query=gi.join("&")),H}},mw=/^([^\:]+)\:(.*)/,dy={scheme:"urn",parse:function(I,M){var H=I.path&&I.path.match(mw),G=I;if(H){var be=M.scheme||G.scheme||"urn",Xe=H[1].toLowerCase(),Ct=H[2],At=be+":"+(M.nid||Xe),yi=Ye[At];G.nid=Xe,G.nss=Ct,G.path=void 0,yi&&(G=yi.parse(G,M))}else G.error=G.error||"URN can not be parsed.";return G},serialize:function(I,M){var H=M.scheme||I.scheme||"urn",G=I.nid,be=H+":"+(M.nid||G),Xe=Ye[be];Xe&&(I=Xe.serialize(I,M));var Ct=I,At=I.nss;return Ct.path=(G||M.nid)+":"+At,Ct}},yw=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,cy={scheme:"urn:uuid",parse:function(I,M){var H=I;return H.uuid=H.nss,H.nss=void 0,!M.tolerant&&(!H.uuid||!H.uuid.match(yw))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(I,M){var H=I;return H.nss=(I.uuid||"").toLowerCase(),H}};Ye[Et.scheme]=Et,Ye[Ba.scheme]=Ba,Ye[$l.scheme]=$l,Ye[ly.scheme]=ly,Ye[py.scheme]=py,Ye[dy.scheme]=dy,Ye[cy.scheme]=cy,a.SCHEMES=Ye,a.pctEncChar=Qe,a.pctDecChars=rt,a.parse=yt,a.removeDotSegments=Mi,a.serialize=wi,a.resolveComponents=Pi,a.resolve=qr,a.normalize=tr,a.equal=eo,a.escapeComponent=Tl,a.unescapeComponent=pr,Object.defineProperty(a,"__esModule",{value:!0})}))});var Up=je((ite,_x)=>{"use strict";_x.exports=function a(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var i,r,n;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!a(t[r],e[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=Object.keys(t),i=n.length,i!==Object.keys(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=i;r--!==0;){var s=n[r];if(!a(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}});var $x=je((rte,Tx)=>{"use strict";Tx.exports=function(t){for(var e=0,i=t.length,r=0,n;r<i;)e++,n=t.charCodeAt(r++),n>=55296&&n<=56319&&r<i&&(n=t.charCodeAt(r),(n&64512)==56320&&r++);return e}});var qs=je((ate,Fx)=>{"use strict";Fx.exports={copy:$$,checkDataType:nm,checkDataTypes:O$,coerceToTypes:D$,toHash:om,getProperty:lm,escapeQuotes:um,equal:Up(),ucs2length:$x(),varOccurences:A$,varReplace:L$,schemaHasRules:E$,schemaHasRulesExcept:k$,schemaUnknownRules:V$,toQuotedString:sm,getPathExpr:M$,getPath:N$,getData:B$,unescapeFragment:W$,unescapeJsonPointer:pm,escapeFragment:q$,escapeJsonPointer:hm};function $$(a,t){t=t||{};for(var e in a)t[e]=a[e];return t}function nm(a,t,e,i){var r=i?" !== ":" === ",n=i?" || ":" && ",s=i?"!":"",o=i?"":"!";switch(a){case"null":return t+r+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+n+"typeof "+t+r+'"object"'+n+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+n+o+"("+t+" % 1)"+n+t+r+t+(e?n+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+r+'"'+a+'"'+(e?n+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+r+'"'+a+'"'}}function O$(a,t,e){switch(a.length){case 1:return nm(a[0],t,e,!0);default:var i="",r=om(a);r.array&&r.object&&(i=r.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var n in r)i+=(i?" && ":"")+nm(n,t,e,!0);return i}}var Ox=om(["string","number","integer","boolean","null"]);function D$(a,t){if(Array.isArray(t)){for(var e=[],i=0;i<t.length;i++){var r=t[i];(Ox[r]||a==="array"&&r==="array")&&(e[e.length]=r)}if(e.length)return e}else{if(Ox[t])return[t];if(a==="array"&&t==="array")return["array"]}}function om(a){for(var t={},e=0;e<a.length;e++)t[a[e]]=!0;return t}var F$=/^[a-z$_][a-z$_0-9]*$/i,I$=/'|\\/g;function lm(a){return typeof a=="number"?"["+a+"]":F$.test(a)?"."+a:"['"+um(a)+"']"}function um(a){return a.replace(I$,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function A$(a,t){t+="[^0-9]";var e=a.match(new RegExp(t,"g"));return e?e.length:0}function L$(a,t,e){return t+="([^0-9])",e=e.replace(/\$/g,"$$$$"),a.replace(new RegExp(t,"g"),e+"$1")}function E$(a,t){if(typeof a=="boolean")return!a;for(var e in a)if(t[e])return!0}function k$(a,t,e){if(typeof a=="boolean")return!a&&e!="not";for(var i in a)if(i!=e&&t[i])return!0}function V$(a,t){if(typeof a!="boolean"){for(var e in a)if(!t[e])return e}}function sm(a){return"'"+um(a)+"'"}function M$(a,t,e,i){var r=e?"'/' + "+t+(i?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):i?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return Dx(a,r)}function N$(a,t,e){var i=sm(e?"/"+hm(t):lm(t));return Dx(a,i)}var R$=/^\/(?:[^~]|~0|~1)*$/,j$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function B$(a,t,e){var i,r,n,s;if(a==="")return"rootData";if(a[0]=="/"){if(!R$.test(a))throw new Error("Invalid JSON-pointer: "+a);r=a,n="rootData"}else{if(s=a.match(j$),!s)throw new Error("Invalid JSON-pointer: "+a);if(i=+s[1],r=s[2],r=="#"){if(i>=t)throw new Error("Cannot access property/index "+i+" levels up, current level is "+t);return e[t-i]}if(i>t)throw new Error("Cannot access data "+i+" levels up, current level is "+t);if(n="data"+(t-i||""),!r)return n}for(var o=n,l=r.split("/"),u=0;u<l.length;u++){var h=l[u];h&&(n+=lm(pm(h)),o+=" && "+n)}return o}function Dx(a,t){return a=='""'?t:(a+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function W$(a){return pm(decodeURIComponent(a))}function q$(a){return encodeURIComponent(hm(a))}function hm(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}function pm(a){return a.replace(/~1/g,"/").replace(/~0/g,"~")}});var dm=je((nte,Ix)=>{"use strict";var z$=qs();Ix.exports=H$;function H$(a){z$.copy(a,this)}});var Lx=je((ste,Ax)=>{"use strict";var Hn=Ax.exports=function(a,t,e){typeof t=="function"&&(e=t,t={}),e=t.cb||e;var i=typeof e=="function"?e:e.pre||function(){},r=e.post||function(){};Gp(t,i,r,a,"",a)};Hn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Hn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Hn.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Hn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Gp(a,t,e,i,r,n,s,o,l,u){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,r,n,s,o,l,u);for(var h in i){var p=i[h];if(Array.isArray(p)){if(h in Hn.arrayKeywords)for(var d=0;d<p.length;d++)Gp(a,t,e,p[d],r+"/"+h+"/"+d,n,r,h,i,d)}else if(h in Hn.propsKeywords){if(p&&typeof p=="object")for(var c in p)Gp(a,t,e,p[c],r+"/"+h+"/"+U$(c),n,r,h,i,c)}else(h in Hn.keywords||a.allKeys&&!(h in Hn.skipKeywords))&&Gp(a,t,e,p,r+"/"+h,n,r,h,i)}e(i,r,n,s,o,l,u)}}function U$(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}});var Jp=je((ote,Mx)=>{"use strict";var qu=Px(),Ex=Up(),Zp=qs(),Yp=dm(),G$=Lx();Mx.exports=Gn;Gn.normalizeId=Un;Gn.fullPath=Xp;Gn.url=Kp;Gn.ids=Q$;Gn.inlineRef=cm;Gn.schema=Qp;function Gn(a,t,e){var i=this._refs[e];if(typeof i=="string")if(this._refs[i])i=this._refs[i];else return Gn.call(this,a,t,i);if(i=i||this._schemas[e],i instanceof Yp)return cm(i.schema,this._opts.inlineRefs)?i.schema:i.validate||this._compile(i);var r=Qp.call(this,t,e),n,s,o;return r&&(n=r.schema,t=r.root,o=r.baseId),n instanceof Yp?s=n.validate||a.call(this,n.schema,t,void 0,o):n!==void 0&&(s=cm(n,this._opts.inlineRefs)?n:a.call(this,n,t,void 0,o)),s}function Qp(a,t){var e=qu.parse(t),i=Vx(e),r=Xp(this._getId(a.schema));if(Object.keys(a.schema).length===0||i!==r){var n=Un(i),s=this._refs[n];if(typeof s=="string")return Y$.call(this,a,s,e);if(s instanceof Yp)s.validate||this._compile(s),a=s;else if(s=this._schemas[n],s instanceof Yp){if(s.validate||this._compile(s),n==Un(t))return{schema:s,root:a,baseId:r};a=s}else return;if(!a.schema)return;r=Xp(this._getId(a.schema))}return kx.call(this,e,r,a.schema,a)}function Y$(a,t,e){var i=Qp.call(this,a,t);if(i){var r=i.schema,n=i.baseId;a=i.root;var s=this._getId(r);return s&&(n=Kp(n,s)),kx.call(this,e,n,r,a)}}var X$=Zp.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function kx(a,t,e,i){if(a.fragment=a.fragment||"",a.fragment.slice(0,1)=="/"){for(var r=a.fragment.split("/"),n=1;n<r.length;n++){var s=r[n];if(s){if(s=Zp.unescapeFragment(s),e=e[s],e===void 0)break;var o;if(!X$[s]&&(o=this._getId(e),o&&(t=Kp(t,o)),e.$ref)){var l=Kp(t,e.$ref),u=Qp.call(this,i,l);u&&(e=u.schema,i=u.root,t=u.baseId)}}}if(e!==void 0&&e!==i.schema)return{schema:e,root:i,baseId:t}}}var K$=Zp.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function cm(a,t){if(t===!1)return!1;if(t===void 0||t===!0)return fm(a);if(t)return mm(a)<=t}function fm(a){var t;if(Array.isArray(a)){for(var e=0;e<a.length;e++)if(t=a[e],typeof t=="object"&&!fm(t))return!1}else for(var i in a)if(i=="$ref"||(t=a[i],typeof t=="object"&&!fm(t)))return!1;return!0}function mm(a){var t=0,e;if(Array.isArray(a)){for(var i=0;i<a.length;i++)if(e=a[i],typeof e=="object"&&(t+=mm(e)),t==1/0)return 1/0}else for(var r in a){if(r=="$ref")return 1/0;if(K$[r])t++;else if(e=a[r],typeof e=="object"&&(t+=mm(e)+1),t==1/0)return 1/0}return t}function Xp(a,t){t!==!1&&(a=Un(a));var e=qu.parse(a);return Vx(e)}function Vx(a){return qu.serialize(a).split("#")[0]+"#"}var Z$=/#\/?$/;function Un(a){return a?a.replace(Z$,""):""}function Kp(a,t){return t=Un(t),qu.resolve(a,t)}function Q$(a){var t=Un(this._getId(a)),e={"":t},i={"":Xp(t,!1)},r={},n=this;return G$(a,{allKeys:!0},function(s,o,l,u,h,p,d){if(o!==""){var c=n._getId(s),f=e[u],m=i[u]+"/"+h;if(d!==void 0&&(m+="/"+(typeof d=="number"?d:Zp.escapeFragment(d))),typeof c=="string"){c=f=Un(f?qu.resolve(f,c):c);var y=n._refs[c];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!Ex(s,y.schema))throw new Error('id "'+c+'" resolves to more than one schema')}else if(c!=Un(m))if(c[0]=="#"){if(r[c]&&!Ex(s,r[c]))throw new Error('id "'+c+'" resolves to more than one schema');r[c]=s}else n._refs[c]=m}e[o]=f,i[o]=m}}),r}});var ed=je((lte,Rx)=>{"use strict";var ym=Jp();Rx.exports={Validation:Nx(J$),MissingRef:Nx(gm)};function J$(a){this.message="validation failed",this.errors=a,this.ajv=this.validation=!0}gm.message=function(a,t){return"can't resolve reference "+t+" from id "+a};function gm(a,t,e){this.message=e||gm.message(a,t),this.missingRef=ym.url(a,t),this.missingSchema=ym.normalizeId(ym.fullPath(this.missingRef))}function Nx(a){return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}});var vm=je((ute,jx)=>{"use strict";jx.exports=function(a,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var e=typeof t.cycles=="boolean"?t.cycles:!1,i=t.cmp&&(function(n){return function(s){return function(o,l){var u={key:o,value:s[o]},h={key:l,value:s[l]};return n(u,h)}}})(t.cmp),r=[];return(function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(e)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=r.push(s)-1,h=Object.keys(s).sort(i&&i(s));for(l="",o=0;o<h.length;o++){var p=h[o],d=n(s[p]);d&&(l&&(l+=","),l+=JSON.stringify(p)+":"+d)}return r.splice(u,1),"{"+l+"}"}})(a)}});var bm=je((hte,Bx)=>{"use strict";Bx.exports=function(t,e,i){var r="",n=t.schema.$async===!0,s=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),o=t.self._getId(t.schema);if(t.opts.strictKeywords){var l=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(l){var u="unknown keyword: "+l;if(t.opts.strictKeywords==="log")t.logger.warn(u);else throw new Error(u)}}if(t.isTop&&(r+=" var validate = ",n&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" "+("/*# sourceURL="+o+" */")+" ")),typeof t.schema=="boolean"||!(s||t.schema.$ref)){var e="false schema",h=t.level,p=t.dataLevel,d=t.schema[e],c=t.schemaPath+t.util.getProperty(e),f=t.errSchemaPath+"/"+e,w=!t.opts.allErrors,D,m="data"+(p||""),P="valid"+h;if(t.schema===!1){t.isTop?w=!0:r+=" var "+P+" = false; ";var y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(D||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=y.pop(),!t.compositeRule&&w?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?n?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+P+" = true; ";return t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var v=t.isTop,h=t.level=0,p=t.dataLevel=0,m="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var b="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(b);else throw new Error(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var h=t.level,p=t.dataLevel,m="data"+(p||"");if(o&&(t.baseId=t.resolve.url(t.baseId,o)),n&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+h+" = errors;"}var P="valid"+h,w=!t.opts.allErrors,T="",F="",D,O=t.schema.type,N=Array.isArray(O);if(O&&t.opts.nullable&&t.schema.nullable===!0&&(N?O.indexOf("null")==-1&&(O=O.concat("null")):O!="null"&&(O=[O,"null"],N=!0)),N&&O.length==1&&(O=O[0],N=!1),t.schema.$ref&&s){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(s=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),O){if(t.opts.coerceTypes)var L=t.util.coerceToTypes(t.opts.coerceTypes,O);var E=t.RULES.types[O];if(L||N||E===!0||E&&!ni(E)){var c=t.schemaPath+".type",f=t.errSchemaPath+"/type",c=t.schemaPath+".type",f=t.errSchemaPath+"/type",B=N?"checkDataTypes":"checkDataType";if(r+=" if ("+t.util[B](O,m,t.opts.strictNumbers,!0)+") { ",L){var U="dataType"+h,q="coerced"+h;r+=" var "+U+" = typeof "+m+"; var "+q+" = undefined; ",t.opts.coerceTypes=="array"&&(r+=" if ("+U+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+U+" = typeof "+m+"; if ("+t.util.checkDataType(t.schema.type,m,t.opts.strictNumbers)+") "+q+" = "+m+"; } "),r+=" if ("+q+" !== undefined) ; ";var Y=L;if(Y)for(var he,re=-1,pe=Y.length-1;re<pe;)he=Y[re+=1],he=="string"?r+=" else if ("+U+" == 'number' || "+U+" == 'boolean') "+q+" = '' + "+m+"; else if ("+m+" === null) "+q+" = ''; ":he=="number"||he=="integer"?(r+=" else if ("+U+" == 'boolean' || "+m+" === null || ("+U+" == 'string' && "+m+" && "+m+" == +"+m+" ",he=="integer"&&(r+=" && !("+m+" % 1)"),r+=")) "+q+" = +"+m+"; "):he=="boolean"?r+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+q+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+q+" = true; ":he=="null"?r+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+q+" = null; ":t.opts.coerceTypes=="array"&&he=="array"&&(r+=" else if ("+U+" == 'string' || "+U+" == 'number' || "+U+" == 'boolean' || "+m+" == null) "+q+" = ["+m+"]; ");r+=" else { ";var y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",N?r+=""+O.join(","):r+=""+O,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",N?r+=""+O.join(","):r+=""+O,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=y.pop(),!t.compositeRule&&w?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+q+" !== undefined) { ";var le=p?"data"+(p-1||""):"parentData",Pe=p?t.dataPathArr[p]:"parentDataProperty";r+=" "+m+" = "+q+"; ",p||(r+="if ("+le+" !== undefined)"),r+=" "+le+"["+Pe+"] = "+q+"; } "}else{var y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",N?r+=""+O.join(","):r+=""+O,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",N?r+=""+O.join(","):r+=""+O,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=y.pop(),!t.compositeRule&&w?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(t.schema.$ref&&!s)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",w&&(r+=" } if (errors === ",v?r+="0":r+="errs_"+h,r+=") { ",F+="}");else{var ae=t.RULES;if(ae){for(var E,Oe=-1,ve=ae.length-1;Oe<ve;)if(E=ae[Oe+=1],ni(E)){if(E.type&&(r+=" if ("+t.util.checkDataType(E.type,m,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(E.type=="object"&&t.schema.properties){var d=t.schema.properties,Ye=Object.keys(d),Qe=Ye;if(Qe)for(var rt,zt=-1,Gt=Qe.length-1;zt<Gt;){rt=Qe[zt+=1];var at=d[rt];if(at.default!==void 0){var mt=m+t.util.getProperty(rt);if(t.compositeRule){if(t.opts.strictDefaults){var b="default is ignored for: "+mt;if(t.opts.strictDefaults==="log")t.logger.warn(b);else throw new Error(b)}}else r+=" if ("+mt+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+mt+" === null || "+mt+" === '' "),r+=" ) "+mt+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(at.default)+" ":r+=" "+JSON.stringify(at.default)+" ",r+="; "}}}else if(E.type=="array"&&Array.isArray(t.schema.items)){var mi=t.schema.items;if(mi){for(var at,re=-1,Jt=mi.length-1;re<Jt;)if(at=mi[re+=1],at.default!==void 0){var mt=m+"["+re+"]";if(t.compositeRule){if(t.opts.strictDefaults){var b="default is ignored for: "+mt;if(t.opts.strictDefaults==="log")t.logger.warn(b);else throw new Error(b)}}else r+=" if ("+mt+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+mt+" === null || "+mt+" === '' "),r+=" ) "+mt+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(at.default)+" ":r+=" "+JSON.stringify(at.default)+" ",r+="; "}}}}var yt=E.rules;if(yt){for(var er,hr=-1,Br=yt.length-1;hr<Br;)if(er=yt[hr+=1],Mi(er)){var Wr=er.code(t,er.keyword,E.type);Wr&&(r+=" "+Wr+" ",w&&(T+="}"))}}if(w&&(r+=" "+T+" ",T=""),E.type&&(r+=" } ",O&&O===E.type&&!L)){r+=" else { ";var c=t.schemaPath+".type",f=t.errSchemaPath+"/type",y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",N?r+=""+O.join(","):r+=""+O,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",N?r+=""+O.join(","):r+=""+O,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=y.pop(),!t.compositeRule&&w?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}w&&(r+=" if (errors === ",v?r+="0":r+="errs_"+h,r+=") { ",F+="}")}}}w&&(r+=" "+F+" "),v?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+P+" = errors === errs_"+h+";";function ni(Pi){for(var qr=Pi.rules,tr=0;tr<qr.length;tr++)if(Mi(qr[tr]))return!0}function Mi(Pi){return t.schema[Pi.keyword]!==void 0||Pi.implements&&wi(Pi)}function wi(Pi){for(var qr=Pi.implements,tr=0;tr<qr.length;tr++)if(t.schema[qr[tr]]!==void 0)return!0}return r}});var Ux=je((pte,Hx)=>{"use strict";var td=Jp(),rd=qs(),qx=ed(),eO=vm(),Wx=bm(),tO=rd.ucs2length,iO=Up(),rO=qx.Validation;Hx.exports=xm;function xm(a,t,e,i){var r=this,n=this._opts,s=[void 0],o={},l=[],u={},h=[],p={},d=[];t=t||{schema:a,refVal:s,refs:o};var c=aO.call(this,a,t,i),f=this._compilations[c.index];if(c.compiling)return f.callValidate=b;var m=this._formats,y=this.RULES;try{var g=P(a,t,e,i);f.validate=g;var v=f.callValidate;return v&&(v.schema=g.schema,v.errors=null,v.refs=g.refs,v.refVal=g.refVal,v.root=g.root,v.$async=g.$async,n.sourceCode&&(v.source=g.source)),g}finally{nO.call(this,a,t,i)}function b(){var B=f.validate,U=B.apply(this,arguments);return b.errors=B.errors,U}function P(B,U,q,Y){var he=!U||U&&U.schema==B;if(U.schema!=t.schema)return xm.call(r,B,U,q,Y);var re=B.$async===!0,pe=Wx({isTop:!0,schema:B,isRoot:he,baseId:Y,root:U,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:qx.MissingRef,RULES:y,validate:Wx,util:rd,resolve:td,resolveRef:w,usePattern:N,useDefault:L,useCustomRule:E,opts:n,formats:m,logger:r.logger,self:r});pe=id(s,lO)+id(l,sO)+id(h,oO)+id(d,uO)+pe,n.processCode&&(pe=n.processCode(pe,B));var le;try{var Pe=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",pe);le=Pe(r,y,m,t,s,h,d,iO,tO,rO),s[0]=le}catch(ae){throw r.logger.error("Error compiling schema, function code:",pe),ae}return le.schema=B,le.errors=null,le.refs=o,le.refVal=s,le.root=he?le:U,re&&(le.$async=!0),n.sourceCode===!0&&(le.source={code:pe,patterns:l,defaults:h}),le}function w(B,U,q){U=td.url(B,U);var Y=o[U],he,re;if(Y!==void 0)return he=s[Y],re="refVal["+Y+"]",O(he,re);if(!q&&t.refs){var pe=t.refs[U];if(pe!==void 0)return he=t.refVal[pe],re=T(U,he),O(he,re)}re=T(U);var le=td.call(r,P,t,U);if(le===void 0){var Pe=e&&e[U];Pe&&(le=td.inlineRef(Pe,n.inlineRefs)?Pe:xm.call(r,Pe,t,e,B))}if(le===void 0)F(U);else return D(U,le),O(le,re)}function T(B,U){var q=s.length;return s[q]=U,o[B]=q,"refVal"+q}function F(B){delete o[B]}function D(B,U){var q=o[B];s[q]=U}function O(B,U){return typeof B=="object"||typeof B=="boolean"?{code:U,schema:B,inline:!0}:{code:U,$async:B&&!!B.$async}}function N(B){var U=u[B];return U===void 0&&(U=u[B]=l.length,l[U]=B),"pattern"+U}function L(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return rd.toQuotedString(B);case"object":if(B===null)return"null";var U=eO(B),q=p[U];return q===void 0&&(q=p[U]=h.length,h[q]=B),"default"+q}}function E(B,U,q,Y){if(r._opts.validateSchema!==!1){var he=B.definition.dependencies;if(he&&!he.every(function(Qe){return Object.prototype.hasOwnProperty.call(q,Qe)}))throw new Error("parent schema must have all required keywords: "+he.join(","));var re=B.definition.validateSchema;if(re){var pe=re(U);if(!pe){var le="keyword schema is invalid: "+r.errorsText(re.errors);if(r._opts.validateSchema=="log")r.logger.error(le);else throw new Error(le)}}}var Pe=B.definition.compile,ae=B.definition.inline,Oe=B.definition.macro,ve;if(Pe)ve=Pe.call(r,U,q,Y);else if(Oe)ve=Oe.call(r,U,q,Y),n.validateSchema!==!1&&r.validateSchema(ve,!0);else if(ae)ve=ae.call(r,Y,B.keyword,U,q);else if(ve=B.definition.validate,!ve)return;if(ve===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');var Ye=d.length;return d[Ye]=ve,{code:"customRule"+Ye,validate:ve}}}function aO(a,t,e){var i=zx.call(this,a,t,e);return i>=0?{index:i,compiling:!0}:(i=this._compilations.length,this._compilations[i]={schema:a,root:t,baseId:e},{index:i,compiling:!1})}function nO(a,t,e){var i=zx.call(this,a,t,e);i>=0&&this._compilations.splice(i,1)}function zx(a,t,e){for(var i=0;i<this._compilations.length;i++){var r=this._compilations[i];if(r.schema==a&&r.root==t&&r.baseId==e)return i}return-1}function sO(a,t){return"var pattern"+a+" = new RegExp("+rd.toQuotedString(t[a])+");"}function oO(a){return"var default"+a+" = defaults["+a+"];"}function lO(a,t){return t[a]===void 0?"":"var refVal"+a+" = refVal["+a+"];"}function uO(a){return"var customRule"+a+" = customRules["+a+"];"}function id(a,t){if(!a.length)return"";for(var e="",i=0;i<a.length;i++)e+=t(i,a);return e}});var Yx=je((dte,Gx)=>{"use strict";var ad=Gx.exports=function(){this._cache={}};ad.prototype.put=function(t,e){this._cache[t]=e};ad.prototype.get=function(t){return this._cache[t]};ad.prototype.del=function(t){delete this._cache[t]};ad.prototype.clear=function(){this._cache={}}});var s0=je((cte,n0)=>{"use strict";var hO=qs(),pO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,dO=[0,31,28,31,30,31,30,31,31,30,31,30,31],cO=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Xx=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,fO=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,mO=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Kx=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Zx=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Qx=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Jx=/^(?:\/(?:[^~/]|~0|~1)*)*$/,e0=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,t0=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;n0.exports=nd;function nd(a){return a=a=="full"?"full":"fast",hO.copy(nd[a])}nd.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Kx,url:Zx,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Xx,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:a0,uuid:Qx,"json-pointer":Jx,"json-pointer-uri-fragment":e0,"relative-json-pointer":t0};nd.full={date:i0,time:r0,"date-time":vO,uri:xO,"uri-reference":mO,"uri-template":Kx,url:Zx,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Xx,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:a0,uuid:Qx,"json-pointer":Jx,"json-pointer-uri-fragment":e0,"relative-json-pointer":t0};function yO(a){return a%4===0&&(a%100!==0||a%400===0)}function i0(a){var t=a.match(pO);if(!t)return!1;var e=+t[1],i=+t[2],r=+t[3];return i>=1&&i<=12&&r>=1&&r<=(i==2&&yO(e)?29:dO[i])}function r0(a,t){var e=a.match(cO);if(!e)return!1;var i=e[1],r=e[2],n=e[3],s=e[5];return(i<=23&&r<=59&&n<=59||i==23&&r==59&&n==60)&&(!t||s)}var gO=/t|\s/i;function vO(a){var t=a.split(gO);return t.length==2&&i0(t[0])&&r0(t[1],!0)}var bO=/\/|:/;function xO(a){return bO.test(a)&&fO.test(a)}var SO=/[^\\]\\Z/;function a0(a){if(SO.test(a))return!1;try{return new RegExp(a),!0}catch{return!1}}});var l0=je((fte,o0)=>{"use strict";o0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.errSchemaPath+"/"+e,u=!t.opts.allErrors,h="data"+(s||""),p="valid"+n,d,c;if(o=="#"||o=="#/")t.isRoot?(d=t.async,c="validate"):(d=t.root.schema.$async===!0,c="root.refVal[0]");else{var f=t.resolveRef(t.baseId,o,t.isRoot);if(f===void 0){var m=t.MissingRefError.message(t.baseId,o);if(t.opts.missingRefs=="fail"){t.logger.error(m);var y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { ref: '"+t.util.escapeQuotes(o)+"' } ",t.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(o)+"' "),t.opts.verbose&&(r+=" , schema: "+t.util.toQuotedString(o)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var g=r;r=y.pop(),!t.compositeRule&&u?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(r+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(m),u&&(r+=" if (true) { ");else throw new t.MissingRefError(t.baseId,o,m)}else if(f.inline){var v=t.util.copy(t);v.level++;var b="valid"+v.level;v.schema=f.schema,v.schemaPath="",v.errSchemaPath=o;var P=t.validate(v).replace(/validate\.schema/g,f.code);r+=" "+P+" ",u&&(r+=" if ("+b+") { ")}else d=f.$async===!0||t.async&&f.$async!==!1,c=f.code}if(c){var y=y||[];y.push(r),r="",t.opts.passContext?r+=" "+c+".call(this, ":r+=" "+c+"( ",r+=" "+h+", (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var w=s?"data"+(s-1||""):"parentData",T=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+w+" , "+T+", rootData) ";var F=r;if(r=y.pop(),d){if(!t.async)throw new Error("async schema referenced by sync schema");u&&(r+=" var "+p+"; "),r+=" try { await "+F+"; ",u&&(r+=" "+p+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(r+=" "+p+" = false; "),r+=" } ",u&&(r+=" if ("+p+") { ")}else r+=" if (!"+F+") { if (vErrors === null) vErrors = "+c+".errors; else vErrors = vErrors.concat("+c+".errors); errors = vErrors.length; } ",u&&(r+=" else { ")}return r}});var h0=je((mte,u0)=>{"use strict";u0.exports=function(t,e,i){var r=" ",n=t.schema[e],s=t.schemaPath+t.util.getProperty(e),o=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,u=t.util.copy(t),h="";u.level++;var p="valid"+u.level,d=u.baseId,c=!0,f=n;if(f)for(var m,y=-1,g=f.length-1;y<g;)m=f[y+=1],(t.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:t.util.schemaHasRules(m,t.RULES.all))&&(c=!1,u.schema=m,u.schemaPath=s+"["+y+"]",u.errSchemaPath=o+"/"+y,r+=" "+t.validate(u)+" ",u.baseId=d,l&&(r+=" if ("+p+") { ",h+="}"));return l&&(c?r+=" if (true) { ":r+=" "+h.slice(0,-1)+" "),r}});var d0=je((yte,p0)=>{"use strict";p0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c="errs__"+n,f=t.util.copy(t),m="";f.level++;var y="valid"+f.level,g=o.every(function(D){return t.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:t.util.schemaHasRules(D,t.RULES.all)});if(g){var v=f.baseId;r+=" var "+c+" = errors; var "+d+" = false; ";var b=t.compositeRule;t.compositeRule=f.compositeRule=!0;var P=o;if(P)for(var w,T=-1,F=P.length-1;T<F;)w=P[T+=1],f.schema=w,f.schemaPath=l+"["+T+"]",f.errSchemaPath=u+"/"+T,r+=" "+t.validate(f)+" ",f.baseId=v,r+=" "+d+" = "+d+" || "+y+"; if (!"+d+") { ",m+="}";t.compositeRule=f.compositeRule=b,r+=" "+m+" if (!"+d+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&h&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else h&&(r+=" if (true) { ");return r}});var f0=je((gte,c0)=>{"use strict";c0.exports=function(t,e,i){var r=" ",n=t.schema[e],s=t.errSchemaPath+"/"+e,o=!t.opts.allErrors,l=t.util.toQuotedString(n);return t.opts.$comment===!0?r+=" console.log("+l+");":typeof t.opts.$comment=="function"&&(r+=" self._opts.$comment("+l+", "+t.util.toQuotedString(s)+", validate.root.schema);"),r}});var y0=je((vte,m0)=>{"use strict";m0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c=t.opts.$data&&o&&o.$data,f;c?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",f="schema"+n):f=o,c||(r+=" var schema"+n+" = validate.schema"+l+";"),r+="var "+d+" = equal("+p+", schema"+n+"); if (!"+d+") { ";var m=m||[];m.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValue: schema"+n+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var y=r;return r=m.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",h&&(r+=" else { "),r}});var v0=je((bte,g0)=>{"use strict";g0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c="errs__"+n,f=t.util.copy(t),m="";f.level++;var y="valid"+f.level,g="i"+n,v=f.dataLevel=t.dataLevel+1,b="data"+v,P=t.baseId,w=t.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:t.util.schemaHasRules(o,t.RULES.all);if(r+="var "+c+" = errors;var "+d+";",w){var T=t.compositeRule;t.compositeRule=f.compositeRule=!0,f.schema=o,f.schemaPath=l,f.errSchemaPath=u,r+=" var "+y+" = false; for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",f.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var F=p+"["+g+"]";f.dataPathArr[v]=g;var D=t.validate(f);f.baseId=P,t.util.varOccurences(D,b)<2?r+=" "+t.util.varReplace(D,b,F)+" ":r+=" var "+b+" = "+F+"; "+D+" ",r+=" if ("+y+") break; } ",t.compositeRule=f.compositeRule=T,r+=" "+m+" if (!"+y+") {"}else r+=" if ("+p+".length == 0) {";var O=O||[];O.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var N=r;return r=O.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+N+"]); ":r+=" validate.errors = ["+N+"]; return false; ":r+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",w&&(r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } "),t.opts.allErrors&&(r+=" } "),r}});var x0=je((xte,b0)=>{"use strict";b0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="errs__"+n,c=t.util.copy(t),f="";c.level++;var m="valid"+c.level,y={},g={},v=t.opts.ownProperties;for(T in o)if(T!="__proto__"){var b=o[T],P=Array.isArray(b)?g:y;P[T]=b}r+="var "+d+" = errors;";var w=t.errorPath;r+="var missing"+n+";";for(var T in g)if(P=g[T],P.length){if(r+=" if ( "+p+t.util.getProperty(T)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(T)+"') "),h){r+=" && ( ";var F=P;if(F)for(var D,O=-1,N=F.length-1;O<N;){D=F[O+=1],O&&(r+=" || ");var L=t.util.getProperty(D),E=p+L;r+=" ( ( "+E+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(D)+"') "),r+=") && (missing"+n+" = "+t.util.toQuotedString(t.opts.jsonPointers?D:L)+") ) "}r+=")) { ";var B="missing"+n,U="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(w,B,!0):w+" + "+B);var q=q||[];q.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(T)+"', missingProperty: '"+U+"', depsCount: "+P.length+", deps: '"+t.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+t.util.escapeQuotes(P[0]):r+="properties "+t.util.escapeQuotes(P.join(", ")),r+=" when property "+t.util.escapeQuotes(T)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var Y=r;r=q.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+Y+"]); ":r+=" validate.errors = ["+Y+"]; return false; ":r+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var he=P;if(he)for(var D,re=-1,pe=he.length-1;re<pe;){D=he[re+=1];var L=t.util.getProperty(D),U=t.util.escapeQuotes(D),E=p+L;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(w,D,t.opts.jsonPointers)),r+=" if ( "+E+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(D)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(T)+"', missingProperty: '"+U+"', depsCount: "+P.length+", deps: '"+t.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+t.util.escapeQuotes(P[0]):r+="properties "+t.util.escapeQuotes(P.join(", ")),r+=" when property "+t.util.escapeQuotes(T)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",h&&(f+="}",r+=" else { ")}t.errorPath=w;var le=c.baseId;for(var T in y){var b=y[T];(t.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:t.util.schemaHasRules(b,t.RULES.all))&&(r+=" "+m+" = true; if ( "+p+t.util.getProperty(T)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(T)+"') "),r+=") { ",c.schema=b,c.schemaPath=l+t.util.getProperty(T),c.errSchemaPath=u+"/"+t.util.escapeFragment(T),r+=" "+t.validate(c)+" ",c.baseId=le,r+=" } ",h&&(r+=" if ("+m+") { ",f+="}"))}return h&&(r+=" "+f+" if ("+d+" == errors) {"),r}});var C0=je((Ste,S0)=>{"use strict";S0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c=t.opts.$data&&o&&o.$data,f;c?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",f="schema"+n):f=o;var m="i"+n,y="schema"+n;c||(r+=" var "+y+" = validate.schema"+l+";"),r+="var "+d+";",c&&(r+=" if (schema"+n+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+n+")) "+d+" = false; else {"),r+=""+d+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+p+", "+y+"["+m+"])) { "+d+" = true; break; }",c&&(r+=" } "),r+=" if (!"+d+") { ";var g=g||[];g.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValues: schema"+n+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var v=r;return r=g.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",h&&(r+=" else { "),r}});var P0=je((Cte,w0)=>{"use strict";w0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||"");if(t.opts.format===!1)return h&&(r+=" if (true) { "),r;var d=t.opts.$data&&o&&o.$data,c;d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o;var f=t.opts.unknownFormats,m=Array.isArray(f);if(d){var y="format"+n,g="isObject"+n,v="formatType"+n;r+=" var "+y+" = formats["+c+"]; var "+g+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+g+" && "+y+".type || 'string'; if ("+g+") { ",t.async&&(r+=" var async"+n+" = "+y+".async; "),r+=" "+y+" = "+y+".validate; } if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" (",f!="ignore"&&(r+=" ("+c+" && !"+y+" ",m&&(r+=" && self._opts.unknownFormats.indexOf("+c+") == -1 "),r+=") || "),r+=" ("+y+" && "+v+" == '"+i+"' && !(typeof "+y+" == 'function' ? ",t.async?r+=" (async"+n+" ? await "+y+"("+p+") : "+y+"("+p+")) ":r+=" "+y+"("+p+") ",r+=" : "+y+".test("+p+"))))) {"}else{var y=t.formats[o];if(!y){if(f=="ignore")return t.logger.warn('unknown format "'+o+'" ignored in schema at path "'+t.errSchemaPath+'"'),h&&(r+=" if (true) { "),r;if(m&&f.indexOf(o)>=0)return h&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+t.errSchemaPath+'"')}var g=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=g&&y.type||"string";if(g){var b=y.async===!0;y=y.validate}if(v!=i)return h&&(r+=" if (true) { "),r;if(b){if(!t.async)throw new Error("async format in sync schema");var P="formats"+t.util.getProperty(o)+".validate";r+=" if (!(await "+P+"("+p+"))) { "}else{r+=" if (! ";var P="formats"+t.util.getProperty(o);g&&(P+=".validate"),typeof y=="function"?r+=" "+P+"("+p+") ":r+=" "+P+".test("+p+") ",r+=") { "}}var w=w||[];w.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { format: ",d?r+=""+c:r+=""+t.util.toQuotedString(o),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match format "`,d?r+="' + "+c+" + '":r+=""+t.util.escapeQuotes(o),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+t.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var T=r;return r=w.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",h&&(r+=" else { "),r}});var T0=je((wte,_0)=>{"use strict";_0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c="errs__"+n,f=t.util.copy(t);f.level++;var m="valid"+f.level,y=t.schema.then,g=t.schema.else,v=y!==void 0&&(t.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:t.util.schemaHasRules(y,t.RULES.all)),b=g!==void 0&&(t.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:t.util.schemaHasRules(g,t.RULES.all)),P=f.baseId;if(v||b){var w;f.createErrors=!1,f.schema=o,f.schemaPath=l,f.errSchemaPath=u,r+=" var "+c+" = errors; var "+d+" = true; ";var T=t.compositeRule;t.compositeRule=f.compositeRule=!0,r+=" "+t.validate(f)+" ",f.baseId=P,f.createErrors=!0,r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",t.compositeRule=f.compositeRule=T,v?(r+=" if ("+m+") { ",f.schema=t.schema.then,f.schemaPath=t.schemaPath+".then",f.errSchemaPath=t.errSchemaPath+"/then",r+=" "+t.validate(f)+" ",f.baseId=P,r+=" "+d+" = "+m+"; ",v&&b?(w="ifClause"+n,r+=" var "+w+" = 'then'; "):w="'then'",r+=" } ",b&&(r+=" else { ")):r+=" if (!"+m+") { ",b&&(f.schema=t.schema.else,f.schemaPath=t.schemaPath+".else",f.errSchemaPath=t.errSchemaPath+"/else",r+=" "+t.validate(f)+" ",f.baseId=P,r+=" "+d+" = "+m+"; ",v&&b?(w="ifClause"+n,r+=" var "+w+" = 'else'; "):w="'else'",r+=" } "),r+=" if (!"+d+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ",t.opts.messages!==!1&&(r+=` , message: 'should match "' + `+w+` + '" schema' `),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&h&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",h&&(r+=" else { ")}else h&&(r+=" if (true) { ");return r}});var O0=je((Pte,$0)=>{"use strict";$0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c="errs__"+n,f=t.util.copy(t),m="";f.level++;var y="valid"+f.level,g="i"+n,v=f.dataLevel=t.dataLevel+1,b="data"+v,P=t.baseId;if(r+="var "+c+" = errors;var "+d+";",Array.isArray(o)){var w=t.schema.additionalItems;if(w===!1){r+=" "+d+" = "+p+".length <= "+o.length+"; ";var T=u;u=t.errSchemaPath+"/additionalItems",r+=" if (!"+d+") { ";var F=F||[];F.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+o.length+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var D=r;r=F.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u=T,h&&(m+="}",r+=" else { ")}var O=o;if(O){for(var N,L=-1,E=O.length-1;L<E;)if(N=O[L+=1],t.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:t.util.schemaHasRules(N,t.RULES.all)){r+=" "+y+" = true; if ("+p+".length > "+L+") { ";var B=p+"["+L+"]";f.schema=N,f.schemaPath=l+"["+L+"]",f.errSchemaPath=u+"/"+L,f.errorPath=t.util.getPathExpr(t.errorPath,L,t.opts.jsonPointers,!0),f.dataPathArr[v]=L;var U=t.validate(f);f.baseId=P,t.util.varOccurences(U,b)<2?r+=" "+t.util.varReplace(U,b,B)+" ":r+=" var "+b+" = "+B+"; "+U+" ",r+=" } ",h&&(r+=" if ("+y+") { ",m+="}")}}if(typeof w=="object"&&(t.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:t.util.schemaHasRules(w,t.RULES.all))){f.schema=w,f.schemaPath=t.schemaPath+".additionalItems",f.errSchemaPath=t.errSchemaPath+"/additionalItems",r+=" "+y+" = true; if ("+p+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+p+".length; "+g+"++) { ",f.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var B=p+"["+g+"]";f.dataPathArr[v]=g;var U=t.validate(f);f.baseId=P,t.util.varOccurences(U,b)<2?r+=" "+t.util.varReplace(U,b,B)+" ":r+=" var "+b+" = "+B+"; "+U+" ",h&&(r+=" if (!"+y+") break; "),r+=" } } ",h&&(r+=" if ("+y+") { ",m+="}")}}else if(t.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:t.util.schemaHasRules(o,t.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=u,r+=" for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",f.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var B=p+"["+g+"]";f.dataPathArr[v]=g;var U=t.validate(f);f.baseId=P,t.util.varOccurences(U,b)<2?r+=" "+t.util.varReplace(U,b,B)+" ":r+=" var "+b+" = "+B+"; "+U+" ",h&&(r+=" if (!"+y+") break; "),r+=" }"}return h&&(r+=" "+m+" if ("+c+" == errors) {"),r}});var Sm=je((_te,D0)=>{"use strict";D0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,P,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o;var f=e=="maximum",m=f?"exclusiveMaximum":"exclusiveMinimum",y=t.schema[m],g=t.opts.$data&&y&&y.$data,v=f?"<":">",b=f?">":"<",P=void 0;if(!(d||typeof o=="number"||o===void 0))throw new Error(e+" must be number");if(!(g||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(g){var w=t.util.getData(y.$data,s,t.dataPathArr),T="exclusive"+n,F="exclType"+n,D="exclIsNumber"+n,O="op"+n,N="' + "+O+" + '";r+=" var schemaExcl"+n+" = "+w+"; ",w="schemaExcl"+n,r+=" var "+T+"; var "+F+" = typeof "+w+"; if ("+F+" != 'boolean' && "+F+" != 'undefined' && "+F+" != 'number') { ";var P=m,L=L||[];L.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: '"+m+" should be boolean' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var E=r;r=L.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+F+" == 'number' ? ( ("+T+" = "+c+" === undefined || "+w+" "+v+"= "+c+") ? "+p+" "+b+"= "+w+" : "+p+" "+b+" "+c+" ) : ( ("+T+" = "+w+" === true) ? "+p+" "+b+"= "+c+" : "+p+" "+b+" "+c+" ) || "+p+" !== "+p+") { var op"+n+" = "+T+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(P=m,u=t.errSchemaPath+"/"+m,c=w,d=g)}else{var D=typeof y=="number",N=v;if(D&&d){var O="'"+N+"'";r+=" if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" ( "+c+" === undefined || "+y+" "+v+"= "+c+" ? "+p+" "+b+"= "+y+" : "+p+" "+b+" "+c+" ) || "+p+" !== "+p+") { "}else{D&&o===void 0?(T=!0,P=m,u=t.errSchemaPath+"/"+m,c=y,b+="="):(D&&(c=Math[f?"min":"max"](y,o)),y===(D?c:!0)?(T=!0,P=m,u=t.errSchemaPath+"/"+m,b+="="):(T=!1,N+="="));var O="'"+N+"'";r+=" if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+p+" "+b+" "+c+" || "+p+" !== "+p+") { "}}P=P||e;var L=L||[];L.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { comparison: "+O+", limit: "+c+", exclusive: "+T+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be "+N+" ",d?r+="' + "+c:r+=""+c+"'"),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var E=r;return r=L.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",h&&(r+=" else { "),r}});var Cm=je((Tte,F0)=>{"use strict";F0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,m,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;if(d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o,!(d||typeof o=="number"))throw new Error(e+" must be number");var f=e=="maxItems"?">":"<";r+="if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+p+".length "+f+" "+c+") { ";var m=e,y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+c+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",e=="maxItems"?r+="more":r+="fewer",r+=" than ",d?r+="' + "+c+" + '":r+=""+o,r+=" items' "),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var g=r;return r=y.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",h&&(r+=" else { "),r}});var wm=je(($te,I0)=>{"use strict";I0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,m,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;if(d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o,!(d||typeof o=="number"))throw new Error(e+" must be number");var f=e=="maxLength"?">":"<";r+="if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),t.opts.unicode===!1?r+=" "+p+".length ":r+=" ucs2length("+p+") ",r+=" "+f+" "+c+") { ";var m=e,y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+c+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be ",e=="maxLength"?r+="longer":r+="shorter",r+=" than ",d?r+="' + "+c+" + '":r+=""+o,r+=" characters' "),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var g=r;return r=y.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",h&&(r+=" else { "),r}});var Pm=je((Ote,A0)=>{"use strict";A0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,m,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;if(d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o,!(d||typeof o=="number"))throw new Error(e+" must be number");var f=e=="maxProperties"?">":"<";r+="if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" Object.keys("+p+").length "+f+" "+c+") { ";var m=e,y=y||[];y.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+c+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",e=="maxProperties"?r+="more":r+="fewer",r+=" than ",d?r+="' + "+c+" + '":r+=""+o,r+=" properties' "),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var g=r;return r=y.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",h&&(r+=" else { "),r}});var E0=je((Dte,L0)=>{"use strict";L0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;if(d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o,!(d||typeof o=="number"))throw new Error(e+" must be number");r+="var division"+n+";if (",d&&(r+=" "+c+" !== undefined && ( typeof "+c+" != 'number' || "),r+=" (division"+n+" = "+p+" / "+c+", ",t.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+t.opts.multipleOfPrecision+" ":r+=" division"+n+" !== parseInt(division"+n+") ",r+=" ) ",d&&(r+=" ) "),r+=" ) { ";var f=f||[];f.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { multipleOf: "+c+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",d?r+="' + "+c:r+=""+c+"'"),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var m=r;return r=f.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",h&&(r+=" else { "),r}});var V0=je((Fte,k0)=>{"use strict";k0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="errs__"+n,c=t.util.copy(t);c.level++;var f="valid"+c.level;if(t.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:t.util.schemaHasRules(o,t.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=u,r+=" var "+d+" = errors; ";var m=t.compositeRule;t.compositeRule=c.compositeRule=!0,c.createErrors=!1;var y;c.opts.allErrors&&(y=c.opts.allErrors,c.opts.allErrors=!1),r+=" "+t.validate(c)+" ",c.createErrors=!0,y&&(c.opts.allErrors=y),t.compositeRule=c.compositeRule=m,r+=" if ("+f+") { ";var g=g||[];g.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var v=r;r=g.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(r+=" if (false) { ");return r}});var N0=je((Ite,M0)=>{"use strict";M0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c="errs__"+n,f=t.util.copy(t),m="";f.level++;var y="valid"+f.level,g=f.baseId,v="prevValid"+n,b="passingSchemas"+n;r+="var "+c+" = errors , "+v+" = false , "+d+" = false , "+b+" = null; ";var P=t.compositeRule;t.compositeRule=f.compositeRule=!0;var w=o;if(w)for(var T,F=-1,D=w.length-1;F<D;)T=w[F+=1],(t.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:t.util.schemaHasRules(T,t.RULES.all))?(f.schema=T,f.schemaPath=l+"["+F+"]",f.errSchemaPath=u+"/"+F,r+=" "+t.validate(f)+" ",f.baseId=g):r+=" var "+y+" = true; ",F&&(r+=" if ("+y+" && "+v+") { "+d+" = false; "+b+" = ["+b+", "+F+"]; } else { ",m+="}"),r+=" if ("+y+") { "+d+" = "+v+" = true; "+b+" = "+F+"; }";return t.compositeRule=f.compositeRule=P,r+=""+m+"if (!"+d+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { passingSchemas: "+b+" } ",t.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&h&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; }",t.opts.allErrors&&(r+=" } "),r}});var j0=je((Ate,R0)=>{"use strict";R0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d=t.opts.$data&&o&&o.$data,c;d?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",c="schema"+n):c=o;var f=d?"(new RegExp("+c+"))":t.usePattern(o);r+="if ( ",d&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" !"+f+".test("+p+") ) { ";var m=m||[];m.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { pattern: ",d?r+=""+c:r+=""+t.util.toQuotedString(o),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,d?r+="' + "+c+" + '":r+=""+t.util.escapeQuotes(o),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",d?r+="validate.schema"+l:r+=""+t.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var y=r;return r=m.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",h&&(r+=" else { "),r}});var W0=je((Lte,B0)=>{"use strict";B0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="errs__"+n,c=t.util.copy(t),f="";c.level++;var m="valid"+c.level,y="key"+n,g="idx"+n,v=c.dataLevel=t.dataLevel+1,b="data"+v,P="dataProperties"+n,w=Object.keys(o||{}).filter(re),T=t.schema.patternProperties||{},F=Object.keys(T).filter(re),D=t.schema.additionalProperties,O=w.length||F.length,N=D===!1,L=typeof D=="object"&&Object.keys(D).length,E=t.opts.removeAdditional,B=N||L||E,U=t.opts.ownProperties,q=t.baseId,Y=t.schema.required;if(Y&&!(t.opts.$data&&Y.$data)&&Y.length<t.opts.loopRequired)var he=t.util.toHash(Y);function re(pr){return pr!=="__proto__"}if(r+="var "+d+" = errors;var "+m+" = true;",U&&(r+=" var "+P+" = undefined;"),B){if(U?r+=" "+P+" = "+P+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+P+".length; "+g+"++) { var "+y+" = "+P+"["+g+"]; ":r+=" for (var "+y+" in "+p+") { ",O){if(r+=" var isAdditional"+n+" = !(false ",w.length)if(w.length>8)r+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var pe=w;if(pe)for(var le,Pe=-1,ae=pe.length-1;Pe<ae;)le=pe[Pe+=1],r+=" || "+y+" == "+t.util.toQuotedString(le)+" "}if(F.length){var Oe=F;if(Oe)for(var ve,Ye=-1,Qe=Oe.length-1;Ye<Qe;)ve=Oe[Ye+=1],r+=" || "+t.usePattern(ve)+".test("+y+") "}r+=" ); if (isAdditional"+n+") { "}if(E=="all")r+=" delete "+p+"["+y+"]; ";else{var rt=t.errorPath,zt="' + "+y+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,y,t.opts.jsonPointers)),N)if(E)r+=" delete "+p+"["+y+"]; ";else{r+=" "+m+" = false; ";var Gt=u;u=t.errSchemaPath+"/additionalProperties";var at=at||[];at.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { additionalProperty: '"+zt+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var mt=r;r=at.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+mt+"]); ":r+=" validate.errors = ["+mt+"]; return false; ":r+=" var err = "+mt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=Gt,h&&(r+=" break; ")}else if(L)if(E=="failing"){r+=" var "+d+" = errors; ";var mi=t.compositeRule;t.compositeRule=c.compositeRule=!0,c.schema=D,c.schemaPath=t.schemaPath+".additionalProperties",c.errSchemaPath=t.errSchemaPath+"/additionalProperties",c.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,y,t.opts.jsonPointers);var Jt=p+"["+y+"]";c.dataPathArr[v]=y;var yt=t.validate(c);c.baseId=q,t.util.varOccurences(yt,b)<2?r+=" "+t.util.varReplace(yt,b,Jt)+" ":r+=" var "+b+" = "+Jt+"; "+yt+" ",r+=" if (!"+m+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+y+"]; } ",t.compositeRule=c.compositeRule=mi}else{c.schema=D,c.schemaPath=t.schemaPath+".additionalProperties",c.errSchemaPath=t.errSchemaPath+"/additionalProperties",c.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,y,t.opts.jsonPointers);var Jt=p+"["+y+"]";c.dataPathArr[v]=y;var yt=t.validate(c);c.baseId=q,t.util.varOccurences(yt,b)<2?r+=" "+t.util.varReplace(yt,b,Jt)+" ":r+=" var "+b+" = "+Jt+"; "+yt+" ",h&&(r+=" if (!"+m+") break; ")}t.errorPath=rt}O&&(r+=" } "),r+=" } ",h&&(r+=" if ("+m+") { ",f+="}")}var er=t.opts.useDefaults&&!t.compositeRule;if(w.length){var hr=w;if(hr)for(var le,Br=-1,Wr=hr.length-1;Br<Wr;){le=hr[Br+=1];var ni=o[le];if(t.opts.strictKeywords?typeof ni=="object"&&Object.keys(ni).length>0||ni===!1:t.util.schemaHasRules(ni,t.RULES.all)){var Mi=t.util.getProperty(le),Jt=p+Mi,wi=er&&ni.default!==void 0;c.schema=ni,c.schemaPath=l+Mi,c.errSchemaPath=u+"/"+t.util.escapeFragment(le),c.errorPath=t.util.getPath(t.errorPath,le,t.opts.jsonPointers),c.dataPathArr[v]=t.util.toQuotedString(le);var yt=t.validate(c);if(c.baseId=q,t.util.varOccurences(yt,b)<2){yt=t.util.varReplace(yt,b,Jt);var Pi=Jt}else{var Pi=b;r+=" var "+b+" = "+Jt+"; "}if(wi)r+=" "+yt+" ";else{if(he&&he[le]){r+=" if ( "+Pi+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(le)+"') "),r+=") { "+m+" = false; ";var rt=t.errorPath,Gt=u,qr=t.util.escapeQuotes(le);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(rt,le,t.opts.jsonPointers)),u=t.errSchemaPath+"/required";var at=at||[];at.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+qr+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+qr+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var mt=r;r=at.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+mt+"]); ":r+=" validate.errors = ["+mt+"]; return false; ":r+=" var err = "+mt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=Gt,t.errorPath=rt,r+=" } else { "}else h?(r+=" if ( "+Pi+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(le)+"') "),r+=") { "+m+" = true; } else { "):(r+=" if ("+Pi+" !== undefined ",U&&(r+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(le)+"') "),r+=" ) { ");r+=" "+yt+" } "}}h&&(r+=" if ("+m+") { ",f+="}")}}if(F.length){var tr=F;if(tr)for(var ve,eo=-1,Tl=tr.length-1;eo<Tl;){ve=tr[eo+=1];var ni=T[ve];if(t.opts.strictKeywords?typeof ni=="object"&&Object.keys(ni).length>0||ni===!1:t.util.schemaHasRules(ni,t.RULES.all)){c.schema=ni,c.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(ve),c.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(ve),U?r+=" "+P+" = "+P+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+P+".length; "+g+"++) { var "+y+" = "+P+"["+g+"]; ":r+=" for (var "+y+" in "+p+") { ",r+=" if ("+t.usePattern(ve)+".test("+y+")) { ",c.errorPath=t.util.getPathExpr(t.errorPath,y,t.opts.jsonPointers);var Jt=p+"["+y+"]";c.dataPathArr[v]=y;var yt=t.validate(c);c.baseId=q,t.util.varOccurences(yt,b)<2?r+=" "+t.util.varReplace(yt,b,Jt)+" ":r+=" var "+b+" = "+Jt+"; "+yt+" ",h&&(r+=" if (!"+m+") break; "),r+=" } ",h&&(r+=" else "+m+" = true; "),r+=" } ",h&&(r+=" if ("+m+") { ",f+="}")}}}return h&&(r+=" "+f+" if ("+d+" == errors) {"),r}});var z0=je((Ete,q0)=>{"use strict";q0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="errs__"+n,c=t.util.copy(t),f="";c.level++;var m="valid"+c.level;if(r+="var "+d+" = errors;",t.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:t.util.schemaHasRules(o,t.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=u;var y="key"+n,g="idx"+n,v="i"+n,b="' + "+y+" + '",P=c.dataLevel=t.dataLevel+1,w="data"+P,T="dataProperties"+n,F=t.opts.ownProperties,D=t.baseId;F&&(r+=" var "+T+" = undefined; "),F?r+=" "+T+" = "+T+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+T+".length; "+g+"++) { var "+y+" = "+T+"["+g+"]; ":r+=" for (var "+y+" in "+p+") { ",r+=" var startErrs"+n+" = errors; ";var O=y,N=t.compositeRule;t.compositeRule=c.compositeRule=!0;var L=t.validate(c);c.baseId=D,t.util.varOccurences(L,w)<2?r+=" "+t.util.varReplace(L,w,O)+" ":r+=" var "+w+" = "+O+"; "+L+" ",t.compositeRule=c.compositeRule=N,r+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",t.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { propertyName: '"+b+"' } ",t.opts.messages!==!1&&(r+=" , message: 'property name \\'"+b+"\\' is invalid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&h&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),h&&(r+=" break; "),r+=" } }"}return h&&(r+=" "+f+" if ("+d+" == errors) {"),r}});var U0=je((kte,H0)=>{"use strict";H0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c=t.opts.$data&&o&&o.$data,f;c?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",f="schema"+n):f=o;var m="schema"+n;if(!c)if(o.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var y=[],g=o;if(g)for(var v,b=-1,P=g.length-1;b<P;){v=g[b+=1];var w=t.schema.properties[v];w&&(t.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:t.util.schemaHasRules(w,t.RULES.all))||(y[y.length]=v)}}else var y=o;if(c||y.length){var T=t.errorPath,F=c||y.length>=t.opts.loopRequired,D=t.opts.ownProperties;if(h)if(r+=" var missing"+n+"; ",F){c||(r+=" var "+m+" = validate.schema"+l+"; ");var O="i"+n,N="schema"+n+"["+O+"]",L="' + "+N+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(T,N,t.opts.jsonPointers)),r+=" var "+d+" = true; ",c&&(r+=" if (schema"+n+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+n+")) "+d+" = false; else {"),r+=" for (var "+O+" = 0; "+O+" < "+m+".length; "+O+"++) { "+d+" = "+p+"["+m+"["+O+"]] !== undefined ",D&&(r+=" && Object.prototype.hasOwnProperty.call("+p+", "+m+"["+O+"]) "),r+="; if (!"+d+") break; } ",c&&(r+=" } "),r+=" if (!"+d+") { ";var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var B=r;r=E.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+B+"]); ":r+=" validate.errors = ["+B+"]; return false; ":r+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var U=y;if(U)for(var q,O=-1,Y=U.length-1;O<Y;){q=U[O+=1],O&&(r+=" || ");var he=t.util.getProperty(q),re=p+he;r+=" ( ( "+re+" === undefined ",D&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(q)+"') "),r+=") && (missing"+n+" = "+t.util.toQuotedString(t.opts.jsonPointers?q:he)+") ) "}r+=") { ";var N="missing"+n,L="' + "+N+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(T,N,!0):T+" + "+N);var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var B=r;r=E.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+B+"]); ":r+=" validate.errors = ["+B+"]; return false; ":r+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(F){c||(r+=" var "+m+" = validate.schema"+l+"; ");var O="i"+n,N="schema"+n+"["+O+"]",L="' + "+N+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(T,N,t.opts.jsonPointers)),c&&(r+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+m+" !== undefined) { "),r+=" for (var "+O+" = 0; "+O+" < "+m+".length; "+O+"++) { if ("+p+"["+m+"["+O+"]] === undefined ",D&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+m+"["+O+"]) "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",c&&(r+=" } ")}else{var pe=y;if(pe)for(var q,le=-1,Pe=pe.length-1;le<Pe;){q=pe[le+=1];var he=t.util.getProperty(q),L=t.util.escapeQuotes(q),re=p+he;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(T,q,t.opts.jsonPointers)),r+=" if ( "+re+" === undefined ",D&&(r+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(q)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=T}else h&&(r+=" if (true) {");return r}});var Y0=je((Vte,G0)=>{"use strict";G0.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p="data"+(s||""),d="valid"+n,c=t.opts.$data&&o&&o.$data,f;if(c?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",f="schema"+n):f=o,(o||c)&&t.opts.uniqueItems!==!1){c&&(r+=" var "+d+"; if ("+f+" === false || "+f+" === undefined) "+d+" = true; else if (typeof "+f+" != 'boolean') "+d+" = false; else { "),r+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var m=t.schema.items&&t.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var g="checkDataType"+(y?"s":"");r+=" if ("+t.util[g](m,"item",t.opts.strictNumbers,!0)+") continue; ",y&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",c&&(r+=" } "),r+=" if (!"+d+") { ";var v=v||[];v.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(r+=" , schema: ",c?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var b=r;r=v.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+b+"]); ":r+=" validate.errors = ["+b+"]; return false; ":r+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",h&&(r+=" else { ")}else h&&(r+=" if (true) { ");return r}});var K0=je((Mte,X0)=>{"use strict";X0.exports={$ref:l0(),allOf:h0(),anyOf:d0(),$comment:f0(),const:y0(),contains:v0(),dependencies:x0(),enum:C0(),format:P0(),if:T0(),items:O0(),maximum:Sm(),minimum:Sm(),maxItems:Cm(),minItems:Cm(),maxLength:wm(),minLength:wm(),maxProperties:Pm(),minProperties:Pm(),multipleOf:E0(),not:V0(),oneOf:N0(),pattern:j0(),properties:W0(),propertyNames:z0(),required:U0(),uniqueItems:Y0(),validate:bm()}});var J0=je((Nte,Q0)=>{"use strict";var Z0=K0(),_m=qs().toHash;Q0.exports=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],e=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return t.all=_m(e),t.types=_m(r),t.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(h){e.push(h),t.all[h]=!0})}e.push(s);var u=t.all[s]={keyword:s,code:Z0[s],implements:o};return u}),t.all.$comment={keyword:"$comment",code:Z0.$comment},n.type&&(t.types[n.type]=n)}),t.keywords=_m(e.concat(i)),t.custom={},t}});var iS=je((Rte,tS)=>{"use strict";var eS=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];tS.exports=function(a,t){for(var e=0;e<t.length;e++){a=JSON.parse(JSON.stringify(a));var i=t[e].split("/"),r=a,n;for(n=1;n<i.length;n++)r=r[i[n]];for(n=0;n<eS.length;n++){var s=eS[n],o=r[s];o&&(r[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return a}});var nS=je((jte,aS)=>{"use strict";var CO=ed().MissingRef;aS.exports=rS;function rS(a,t,e){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof t=="function"&&(e=t,t=void 0);var r=n(a).then(function(){var o=i._addSchema(a,void 0,t);return o.validate||s(o)});return e&&r.then(function(o){e(null,o)},e),r;function n(o){var l=o.$schema;return l&&!i.getSchema(l)?rS.call(i,{$ref:l},!0):Promise.resolve()}function s(o){try{return i._compile(o)}catch(u){if(u instanceof CO)return l(u);throw u}function l(u){var h=u.missingSchema;if(c(h))throw new Error("Schema "+h+" is loaded but "+u.missingRef+" cannot be resolved");var p=i._loadingSchemas[h];return p||(p=i._loadingSchemas[h]=i._opts.loadSchema(h),p.then(d,d)),p.then(function(f){if(!c(h))return n(f).then(function(){c(h)||i.addSchema(f,h,void 0,t)})}).then(function(){return s(o)});function d(){delete i._loadingSchemas[h]}function c(f){return i._refs[f]||i._schemas[f]}}}}});var oS=je((Bte,sS)=>{"use strict";sS.exports=function(t,e,i){var r=" ",n=t.level,s=t.dataLevel,o=t.schema[e],l=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,h=!t.opts.allErrors,p,d="data"+(s||""),c="valid"+n,f="errs__"+n,m=t.opts.$data&&o&&o.$data,y;m?(r+=" var schema"+n+" = "+t.util.getData(o.$data,s,t.dataPathArr)+"; ",y="schema"+n):y=o;var g=this,v="definition"+n,b=g.definition,P="",w,T,F,D,O;if(m&&b.$data){O="keywordValidate"+n;var N=b.validateSchema;r+=" var "+v+" = RULES.custom['"+e+"'].definition; var "+O+" = "+v+".validate;"}else{if(D=t.useCustomRule(g,o,t.schema,t),!D)return;y="validate.schema"+l,O=D.code,w=b.compile,T=b.inline,F=b.macro}var L=O+".errors",E="i"+n,B="ruleErr"+n,U=b.async;if(U&&!t.async)throw new Error("async keyword in sync schema");if(T||F||(r+=""+L+" = null;"),r+="var "+f+" = errors;var "+c+";",m&&b.$data&&(P+="}",r+=" if ("+y+" === undefined) { "+c+" = true; } else { ",N&&(P+="}",r+=" "+c+" = "+v+".validateSchema("+y+"); if ("+c+") { ")),T)b.statements?r+=" "+D.validate+" ":r+=" "+c+" = "+D.validate+"; ";else if(F){var q=t.util.copy(t),P="";q.level++;var Y="valid"+q.level;q.schema=D.validate,q.schemaPath="";var he=t.compositeRule;t.compositeRule=q.compositeRule=!0;var re=t.validate(q).replace(/validate\.schema/g,O);t.compositeRule=q.compositeRule=he,r+=" "+re}else{var pe=pe||[];pe.push(r),r="",r+=" "+O+".call( ",t.opts.passContext?r+="this":r+="self",w||b.schema===!1?r+=" , "+d+" ":r+=" , "+y+" , "+d+" , validate.schema"+t.schemaPath+" ",r+=" , (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var le=s?"data"+(s-1||""):"parentData",Pe=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+le+" , "+Pe+" , rootData ) ";var ae=r;r=pe.pop(),b.errors===!1?(r+=" "+c+" = ",U&&(r+="await "),r+=""+ae+"; "):U?(L="customErrors"+n,r+=" var "+L+" = null; try { "+c+" = await "+ae+"; } catch (e) { "+c+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } "):r+=" "+L+" = null; "+c+" = "+ae+"; "}if(b.modifying&&(r+=" if ("+le+") "+d+" = "+le+"["+Pe+"];"),r+=""+P,b.valid)h&&(r+=" if (true) { ");else{r+=" if ( ",b.valid===void 0?(r+=" !",F?r+=""+Y:r+=""+c):r+=" "+!b.valid+" ",r+=") { ",p=g.keyword;var pe=pe||[];pe.push(r),r="";var pe=pe||[];pe.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+g.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var Oe=r;r=pe.pop(),!t.compositeRule&&h?t.async?r+=" throw new ValidationError(["+Oe+"]); ":r+=" validate.errors = ["+Oe+"]; return false; ":r+=" var err = "+Oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ve=r;r=pe.pop(),T?b.errors?b.errors!="full"&&(r+=" for (var "+E+"="+f+"; "+E+"<errors; "+E+"++) { var "+B+" = vErrors["+E+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+B+".schema = "+y+"; "+B+".data = "+d+"; "),r+=" } "):b.errors===!1?r+=" "+ve+" ":(r+=" if ("+f+" == errors) { "+ve+" } else { for (var "+E+"="+f+"; "+E+"<errors; "+E+"++) { var "+B+" = vErrors["+E+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+B+".schema = "+y+"; "+B+".data = "+d+"; "),r+=" } } "):F?(r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+g.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&h&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):b.errors===!1?r+=" "+ve+" ":(r+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length; for (var "+E+"="+f+"; "+E+"<errors; "+E+"++) { var "+B+" = vErrors["+E+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+t.errorPath+"; "+B+'.schemaPath = "'+u+'"; ',t.opts.verbose&&(r+=" "+B+".schema = "+y+"; "+B+".data = "+d+"; "),r+=" } } else { "+ve+" } "),r+=" } ",h&&(r+=" else { ")}return r}});var Tm=je((Wte,wO)=>{wO.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var hS=je((qte,uS)=>{"use strict";var lS=Tm();uS.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:lS.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:lS.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var dS=je((zte,pS)=>{"use strict";var PO=/^[a-z_$][a-z0-9_$-]*$/i,_O=oS(),TO=hS();pS.exports={add:$O,get:OO,remove:DO,validate:$m};function $O(a,t){var e=this.RULES;if(e.keywords[a])throw new Error("Keyword "+a+" is already defined");if(!PO.test(a))throw new Error("Keyword "+a+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var r=0;r<i.length;r++)s(a,i[r],t);else s(a,i,t);var n=t.metaSchema;n&&(t.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(n,!0))}e.keywords[a]=e.all[a]=!0;function s(o,l,u){for(var h,p=0;p<e.length;p++){var d=e[p];if(d.type==l){h=d;break}}h||(h={type:l,rules:[]},e.push(h));var c={keyword:o,definition:u,custom:!0,code:_O,implements:u.implements};h.rules.push(c),e.custom[o]=c}return this}function OO(a){var t=this.RULES.custom[a];return t?t.definition:this.RULES.keywords[a]||!1}function DO(a){var t=this.RULES;delete t.keywords[a],delete t.all[a],delete t.custom[a];for(var e=0;e<t.length;e++)for(var i=t[e].rules,r=0;r<i.length;r++)if(i[r].keyword==a){i.splice(r,1);break}return this}function $m(a,t){$m.errors=null;var e=this._validateKeyword=this._validateKeyword||this.compile(TO,!0);if(e(a))return!0;if($m.errors=e.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(e.errors));return!1}});var cS=je((Hte,FO)=>{FO.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var wS=je((Ute,CS)=>{"use strict";var mS=Ux(),zs=Jp(),IO=Yx(),yS=dm(),AO=vm(),LO=s0(),EO=J0(),gS=iS(),vS=qs();CS.exports=li;li.prototype.validate=VO;li.prototype.compile=MO;li.prototype.addSchema=NO;li.prototype.addMetaSchema=RO;li.prototype.validateSchema=jO;li.prototype.getSchema=WO;li.prototype.removeSchema=zO;li.prototype.addFormat=QO;li.prototype.errorsText=ZO;li.prototype._addSchema=HO;li.prototype._compile=UO;li.prototype.compileAsync=nS();var ld=dS();li.prototype.addKeyword=ld.add;li.prototype.getKeyword=ld.get;li.prototype.removeKeyword=ld.remove;li.prototype.validateKeyword=ld.validate;var bS=ed();li.ValidationError=bS.Validation;li.MissingRefError=bS.MissingRef;li.$dataMetaSchema=gS;var od="http://json-schema.org/draft-07/schema",fS=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],kO=["/properties"];function li(a){if(!(this instanceof li))return new li(a);a=this._opts=vS.copy(a)||{},aD(this),this._schemas={},this._refs={},this._fragments={},this._formats=LO(a.format),this._cache=a.cache||new IO,this._loadingSchemas={},this._compilations=[],this.RULES=EO(),this._getId=GO(a),a.loopRequired=a.loopRequired||1/0,a.errorDataPath=="property"&&(a._errorDataPathProperty=!0),a.serialize===void 0&&(a.serialize=AO),this._metaOpts=rD(this),a.formats&&tD(this),a.keywords&&iD(this),JO(this),typeof a.meta=="object"&&this.addMetaSchema(a.meta),a.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),eD(this)}function VO(a,t){var e;if(typeof a=="string"){if(e=this.getSchema(a),!e)throw new Error('no schema with key or ref "'+a+'"')}else{var i=this._addSchema(a);e=i.validate||this._compile(i)}var r=e(t);return e.$async!==!0&&(this.errors=e.errors),r}function MO(a,t){var e=this._addSchema(a,void 0,t);return e.validate||this._compile(e)}function NO(a,t,e,i){if(Array.isArray(a)){for(var r=0;r<a.length;r++)this.addSchema(a[r],void 0,e,i);return this}var n=this._getId(a);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return t=zs.normalizeId(t||n),SS(this,t),this._schemas[t]=this._addSchema(a,e,i,!0),this}function RO(a,t,e){return this.addSchema(a,t,e,!0),this}function jO(a,t){var e=a.$schema;if(e!==void 0&&typeof e!="string")throw new Error("$schema must be a string");if(e=e||this._opts.defaultMeta||BO(this),!e)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var i=this.validate(e,a);if(!i&&t){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return i}function BO(a){var t=a._opts.meta;return a._opts.defaultMeta=typeof t=="object"?a._getId(t)||t:a.getSchema(od)?od:void 0,a._opts.defaultMeta}function WO(a){var t=xS(this,a);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return qO(this,a)}}function qO(a,t){var e=zs.schema.call(a,{schema:{}},t);if(e){var i=e.schema,r=e.root,n=e.baseId,s=mS.call(a,i,r,void 0,n);return a._fragments[t]=new yS({ref:t,fragment:!0,schema:i,root:r,baseId:n,validate:s}),s}}function xS(a,t){return t=zs.normalizeId(t),a._schemas[t]||a._refs[t]||a._fragments[t]}function zO(a){if(a instanceof RegExp)return sd(this,this._schemas,a),sd(this,this._refs,a),this;switch(typeof a){case"undefined":return sd(this,this._schemas),sd(this,this._refs),this._cache.clear(),this;case"string":var t=xS(this,a);return t&&this._cache.del(t.cacheKey),delete this._schemas[a],delete this._refs[a],this;case"object":var e=this._opts.serialize,i=e?e(a):a;this._cache.del(i);var r=this._getId(a);r&&(r=zs.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}function sd(a,t,e){for(var i in t){var r=t[i];!r.meta&&(!e||e.test(i))&&(a._cache.del(r.cacheKey),delete t[i])}}function HO(a,t,e,i){if(typeof a!="object"&&typeof a!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,n=r?r(a):a,s=this._cache.get(n);if(s)return s;i=i||this._opts.addUsedSchema!==!1;var o=zs.normalizeId(this._getId(a));o&&i&&SS(this,o);var l=this._opts.validateSchema!==!1&&!t,u;l&&!(u=o&&o==zs.normalizeId(a.$schema))&&this.validateSchema(a,!0);var h=zs.ids.call(this,a),p=new yS({id:o,schema:a,localRefs:h,cacheKey:n,meta:e});return o[0]!="#"&&i&&(this._refs[o]=p),this._cache.put(n,p),l&&u&&this.validateSchema(a,!0),p}function UO(a,t){if(a.compiling)return a.validate=r,r.schema=a.schema,r.errors=null,r.root=t||r,a.schema.$async===!0&&(r.$async=!0),r;a.compiling=!0;var e;a.meta&&(e=this._opts,this._opts=this._metaOpts);var i;try{i=mS.call(this,a.schema,t,a.localRefs)}catch(n){throw delete a.validate,n}finally{a.compiling=!1,a.meta&&(this._opts=e)}return a.validate=i,a.refs=i.refs,a.refVal=i.refVal,a.root=i.root,i;function r(){var n=a.validate,s=n.apply(this,arguments);return r.errors=n.errors,s}}function GO(a){switch(a.schemaId){case"auto":return KO;case"id":return YO;default:return XO}}function YO(a){return a.$id&&this.logger.warn("schema $id ignored",a.$id),a.id}function XO(a){return a.id&&this.logger.warn("schema id ignored",a.id),a.$id}function KO(a){if(a.$id&&a.id&&a.$id!=a.id)throw new Error("schema $id is different from id");return a.$id||a.id}function ZO(a,t){if(a=a||this.errors,!a)return"No errors";t=t||{};for(var e=t.separator===void 0?", ":t.separator,i=t.dataVar===void 0?"data":t.dataVar,r="",n=0;n<a.length;n++){var s=a[n];s&&(r+=i+s.dataPath+" "+s.message+e)}return r.slice(0,-e.length)}function QO(a,t){return typeof t=="string"&&(t=new RegExp(t)),this._formats[a]=t,this}function JO(a){var t;if(a._opts.$data&&(t=cS(),a.addMetaSchema(t,t.$id,!0)),a._opts.meta!==!1){var e=Tm();a._opts.$data&&(e=gS(e,kO)),a.addMetaSchema(e,od,!0),a._refs["http://json-schema.org/schema"]=od}}function eD(a){var t=a._opts.schemas;if(t)if(Array.isArray(t))a.addSchema(t);else for(var e in t)a.addSchema(t[e],e)}function tD(a){for(var t in a._opts.formats){var e=a._opts.formats[t];a.addFormat(t,e)}}function iD(a){for(var t in a._opts.keywords){var e=a._opts.keywords[t];a.addKeyword(t,e)}}function SS(a,t){if(a._schemas[t]||a._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function rD(a){for(var t=vS.copy(a._opts),e=0;e<fS.length;e++)delete t[fS[e]];return t}function aD(a){var t=a._opts.logger;if(t===!1)a.logger={log:Om,warn:Om,error:Om};else{if(t===void 0&&(t=console),!(typeof t=="object"&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");a.logger=t}}function Om(){}});var xe=(function(){function a(t){this._value=t}return Object.defineProperty(a.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return""+this._value+"%"},a})();function W(a){return new xe(a)}function Rd(a){return a instanceof xe}function Zt(a){return Number(a)!==a}function Py(a){return{}.toString.call(a)}function lo(a){if(typeof a=="string")return a;if(typeof a=="number")return""+a;throw new Error("Expected a string or number but got "+Py(a))}function bt(a){return!!a}function qe(a){if(C(a)&&!x(a)){var t=Number(a);return Zt(t)&&ye(a)&&a!=""?qe(a.replace(/[^0-9.\-]+/g,"")):t}return a}function pi(a){if(C(a)&&!ye(a)){if(x(a))return lo(a);if(He(a))return a.toString()}return a}function _y(a){return!C(a)||x(a)||Rd(a)?a:ye(a)&&a.indexOf("%")!=-1?W(qe(a)):qe(a)}function C(a){return a!=null}function Ze(a){if(C(a))return a;throw new Error("Value doesn't exist")}function ah(a,t){return C(a)?a:t}function yn(a){return Py(a)==="[object Date]"}function ye(a){return typeof a=="string"}function x(a){return typeof a=="number"&&Number(a)==a}function He(a){return typeof a=="object"&&a!=null}function Je(a){return Array.isArray(a)}var kl=Math.PI,Bd=kl/2,uo=kl/180,_a=180/kl;function sh(a,t,e){return C(a)?(a=qe(a),ee(a,t,e)):a}function z(a,t,e){if(!x(t)||t<=0){var i=Math.round(a);return e&&i-a==.5&&i--,i}else{var r=Math.pow(10,t);return Math.round(a*r)/r}}function Wd(a,t){if(!x(t)||t<=0)return Math.ceil(a);var e=Math.pow(10,t);return Math.ceil(a*e)/e}function ee(a,t,e){if(x(t)){if(x(e)&&e<t){var i=e;e=t,t=i}a<t&&(a=t)}return x(e)&&a>e&&(a=e),a}function Z(a){return z(Math.sin(uo*a),10)}function qd(a){return z(Math.tan(uo*a),10)}function Q(a){return z(Math.cos(uo*a),10)}function fe(a,t){return x(a)?x(t)&&t>a?t:a:x(t)?t:null}function Se(a,t){return x(a)?x(t)&&t<a?t:a:x(t)?t:null}function Ty(a,t){return a.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function ho(a,t){var e=Ze(a.start),i=Ze(t.start),r=Ze(a.end),n=Ze(t.end);return Math.max(e,i)<=Math.min(r,n)}function po(a){var t=Ze(a.start),e=Ze(a.end);return{start:1-e,end:1-t}}function $y(a,t){var e=Ze(a.start),i=Ze(t.start),r=Ze(a.end),n=Ze(t.end),s=Math.max(e,i),o=Math.min(r,n);if(!(o<s))return{start:s,end:o}}function Ee(a,t){return a?(t||(t={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(a.x-t.x),2)+Math.pow(Math.abs(a.y-t.y),2))):0}function Oy(a,t){return a?(t||(t={x:0,y:0}),Math.abs(a.x-t.x)):0}function Dy(a,t){return a?(t||(t={x:0,y:0}),Math.abs(a.y-t.y)):0}function Fy(a,t,e,i,r){if(!a)return 0;t||(t={x:0,y:0});var n=0,s=a;if(r>0)for(var o=0;o<=r;o++){var l=Vl(a,t,e,i,o/r);n+=Ee(s,l),s=l}return n}function Iy(a,t,e,i){var r=Ee(t,i),n=Ee(a,e);return Math.abs(n/r)}function us(a,t,e){return x(e)||(e=.5),{x:a.x+(t.x-a.x)*e,y:a.y+(t.y-a.y)*e}}function kt(a,t){t||(t={x:a.x*2,y:a.y*2});var e=t.x-a.x,i=t.y-a.y,r=Math.atan2(i,e)*_a;return r<0&&(r+=360),Pa(r)}function co(a){if(a){var t=a.length;if(t!==0){for(var e=void 0,i=void 0,r,n=void 0,s=0;s<t;s++){var o=a[s];(!x(i)||o.x>i)&&(i=o.x),(!x(e)||o.x<e)&&(e=o.x),(!x(r)||o.y<r)&&(r=o.y),(!x(n)||o.y>n)&&(n=o.y)}return{x:e,y:r,width:i-e,height:n-r}}}return{x:0,y:0,width:0,height:0}}function Ta(a){var t=a.length;if(t!==0){for(var e=void 0,i=void 0,r=void 0,n=void 0,s=0;s<t;s++){var o=a[s];e=Se(o.x,e),i=Se(o.y,i),r=fe(o.x+o.width,r),n=fe(o.y+o.height,n)}return{x:e,y:i,width:r-e,height:n-i}}}function zd(a,t,e,i){var r=(1-i)*(1-i)*a.x+2*(1-i)*i*e.x+i*i*t.x,n=(1-i)*(1-i)*a.y+2*(1-i)*i*e.y+i*i*t.y;return{x:r,y:n}}function Vl(a,t,e,i,r){var n={x:0,y:0},s=1-r,o=s*s,l=o*s;return n.x=a.x*l+e.x*3*o*r+i.x*3*s*r*r+t.x*r*r*r,n.y=a.y*l+e.y*3*o*r+i.y*3*s*r*r+t.y*r*r*r,n}function oh(a,t,e,i,r,n){return r=nh(r),n=nh(n),{x:(-a.x+t.x/r+e.x)*r,y:(-a.y+t.y/n+e.y)*n}}function lh(a,t,e,i,r,n){return r=nh(r),n=nh(n),{x:(t.x+e.x/r-i.x)*r,y:(t.y+e.y/n-i.y)*n}}function nh(a){return 1-a+1e-5}function Pa(a){return a==360?360:a%360}function Ar(a,t,e){if(t>e){var i=t;t=e,e=i}a=Pa(a);var r=(t-Pa(t))/360;a<t&&(a+=360*(r+1));var n=t+(e-t)/2+180,s=t+(e-t)/2-180;return a>e&&(a-360>t?a-=360:a<n?a=e:a=t),a<t&&(a>s?a=t:a=e),a}function ir(a,t,e){var i=Number.MAX_VALUE,r=Number.MAX_VALUE,n=-Number.MAX_VALUE,s=-Number.MAX_VALUE,o=[];x(e)||(e=1),o.push(jd(e,a)),o.push(jd(e,t));for(var l=Math.min(Math.floor(a/90)*90,Math.floor(t/90)*90),u=Math.max(Math.ceil(a/90)*90,Math.ceil(t/90)*90),h=l;h<=u;h+=90)h>=a&&h<=t&&o.push(jd(e,h));for(var p=0;p<o.length;p++){var d=o[p];d.x<i&&(i=d.x),d.y<r&&(r=d.y),d.x>n&&(n=d.x),d.y>s&&(s=d.y)}return{x:i,y:r,width:n-i,height:s-r}}function jd(a,t){return{x:a*Q(t),y:a*Z(t)}}function uh(a,t){return a.x>=t.x&&a.x<=t.x+t.width&&a.y>=t.y&&a.y<=t.y+t.height}var Ay={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Ly(a,t){var e;return Ay[a]?e=Ay[a]:a.charAt(0)==="#"?e=Tw(a):a.match(/^rgba?\(/)&&(e=Ow(a)),e||(e={r:0,g:0,b:0,a:1}),C(t)&&(e.a=t),e}function Tw(a){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(t,function(i,r,n,s){return r+r+n+n+s+s});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:$w(a)}function $w(a){var t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(t,function(i,r,n,s,o){return r+r+n+n+s+s+o+o});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),a:parseInt(e[4],16)/256}:void 0}function Ow(a){a=a.replace(/[ ]/g,"");var t=a.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=a.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return;return{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3]),a:parseFloat(t[4])}}function Ey(a){return"#"+Hd(a.r.toString(16))+Hd(a.g.toString(16))+Hd(a.b.toString(16))}function ky(a){return C(a.a)&&a.a!==1?"rgba("+a.r+","+a.g+","+a.b+","+a.a+")":"rgb("+a.r+","+a.g+","+a.b+")"}function Hd(a){return a.length==1?"0"+a:""+a}function hs(a,t,e){return e=ee(e,0,1),a?t?{r:a.r+Math.round((t.r-a.r)*e),g:a.g+Math.round((t.g-a.g)*e),b:a.b+Math.round((t.b-a.b)*e),a:(a.a||1)+Math.round(((t.a||1)-(a.a||1))*e)}:a:t||a}function Vy(a,t){return a&&{r:Math.max(0,Math.min(255,a.r+hh(a.r,t))),g:Math.max(0,Math.min(255,a.g+hh(a.g,t))),b:Math.max(0,Math.min(255,a.b+hh(a.b,t))),a:a.a}}function hh(a,t){var e=t>0?255-a:a;return Math.round(e*t)}function My(a,t){if(a){var e=Math.min(Math.max(a.r,a.g,a.b),230),i=hh(e,t);return{r:Math.max(0,Math.min(255,Math.round(a.r+i))),g:Math.max(0,Math.min(255,Math.round(a.g+i))),b:Math.max(0,Math.min(255,Math.round(a.b+i))),a:a.a}}else return a}function Ny(a,t){if(a==null||t==1)return a;var e=Ml(a);return e.s=t,Ud(e)}function Ud(a){var t,e,i,r=a.h,n=a.s,s=a.l;if(n==0)t=e=i=s;else{var o=function(p,d,c){return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?p+(d-p)*6*c:c<.5?d:c<.6666666666666666?p+(d-p)*(.6666666666666666-c)*6:p},l=s<.5?s*(1+n):s+n-s*n,u=2*s-l;t=o(u,l,r+1/3),e=o(u,l,r),i=o(u,l,r-1/3)}return{r:Math.round(t*255),g:Math.round(e*255),b:Math.round(i*255)}}function Ml(a){var t=a.r/255,e=a.g/255,i=a.b/255,r=Math.max(t,e,i),n=Math.min(t,e,i),s=0,o=0,l=(r+n)/2;if(r===n)s=o=0;else{var u=r-n;switch(o=l>.5?u/(2-r-n):u/(r+n),r){case t:s=(e-i)/u+(e<i?6:0);break;case e:s=(i-t)/u+2;break;case i:s=(t-e)/u+4;break}s/=6}return{h:s,s:o,l}}function Ry(a){return(a.r*299+a.g*587+a.b*114)/1e3>=128}var Gd=function(a,t){return Gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},Gd(a,t)};function _(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gd(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Lr=function(){return Lr=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Lr.apply(this,arguments)};function ct(a,t,e,i){function r(n){return n instanceof e?n:new e(function(s){s(n)})}return new(e||(e=Promise))(function(n,s){function o(h){try{u(i.next(h))}catch(p){s(p)}}function l(h){try{u(i.throw(h))}catch(p){s(p)}}function u(h){h.done?n(h.value):r(h.value).then(o,l)}u((i=i.apply(a,t||[])).next())})}function Ue(a,t){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(h){return l([u,h])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(e=0)),e;)try{if(i=1,r&&(n=u[0]&2?r.return:u[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,u[1])).done)return n;switch(r=0,n&&(u=[u[0]&2,n.value]),u[0]){case 0:case 1:n=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!n||u[1]>n[0]&&u[1]<n[3])){e.label=u[1];break}if(u[0]===6&&e.label<n[1]){e.label=n[1],n=u;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(u);break}n[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(a,e)}catch(h){u=[6,h],r=0}finally{i=n=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ps(a){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&a[t],i=0;if(e)return e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&i>=a.length&&(a=void 0),{value:a&&a[i++],done:!a}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gn(a,t){var e=typeof Symbol=="function"&&a[Symbol.iterator];if(!e)return a;var i=e.call(a),r,n=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return n}function Ua(){for(var a=[],t=0;t<arguments.length;t++)a=a.concat(gn(arguments[t]));return a}function Di(a,t){for(var e=a.length,i=0;i<e;++i)if(a[i]===t)return i;return-1}function Nl(a,t){for(var e=a.length,i=0;i<e;++i)if(t(a[i]))return!0;return!1}function Ga(a,t){for(var e=a.length,i=new Array(e),r=0;r<e;++r)i[r]=t(a[r],r);return i}function K(a,t){for(var e=a.length,i=0;i<e;++i)t(a[i],i)}function jy(a,t){for(var e=a.length;e--;)t(a[e],e)}function mo(a,t){for(var e=a.length,i=0;i<e&&t(a[i],i);++i);}function By(a,t){for(var e=a.length,i=t;i<e;++i)a[i-t]=a[i];a.length=e-t}function Wy(a,t){for(var e=t.length,i=0;i<e;++i)a.push(t[i])}function de(a,t){var e=!1,i=a.indexOf(t);if(i!==-1){e=!0,a.splice(i,1);for(var r=a.length;i<r;)a[i]===t?(a.splice(i,1),--r):++i}return e}function zi(a,t,e){var i=Di(a,t);i!==-1&&bn(a,i),e==null?a.push(t):vn(a,e,t)}function ds(a,t,e){x(e)?e===0?a.unshift(t):a.splice(e,0,t):a.push(t)}function qy(a,t,e){var i=a.indexOf(t);i!==-1&&a.splice(i,1),x(e)?a.splice(e,0,t):a.push(t)}function ph(a){return Array.isArray(a)?a:[a]}function Ya(a){for(var t=a.length,e=new Array(t),i=0;i<t;++i)e[i]=a[i];return e}function vn(a,t,e){a.splice(t,0,e)}function bn(a,t){a.splice(t,1)}function yo(a,t,e){for(var i=0,r=a.length,n=!1;i<r;){var s=i+r>>1,o=t(e,a[s]);o<0?r=s:(o===0&&(n=!0),i=s+1)}return{found:n,index:n?i-1:i}}function dh(a,t){for(var e=a.length,i=0;i<e;++i)if(t(a[i],i))return i;return-1}function Yd(a,t){for(var e=a.length,i=0;i<e;)t(a[i])?++i:(a.splice(i,1),--e)}var Fe=(function(){function a(t){this._disposed=!1,this._dispose=t}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},a})();var Me=(function(a){_(t,a);function t(e){return a.call(this,function(){K(e,function(i){i.dispose()})})||this}return t})(Fe);var st=(function(a){_(t,a);function t(){var e=a.call(this,function(){C(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)})||this;return e}return t.prototype.get=function(){return this._value},t.prototype.set=function(e,i){C(this._disposer)&&this._disposer.dispose(),this._disposer=i,this._value=e},t.prototype.reset=function(){this.set(void 0,void 0)},t})(Fe);var Xa=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._counter=0,e}return t.prototype.increment=function(){var e=this;return++this._counter,new Fe(function(){--e._counter,e._counter===0&&e.dispose()})},t})(Fe);var Xd=!1,ch=[],Rl=[],fh=[],Kd=[],Dw=1e3/60,mh=typeof requestAnimationFrame=="function"?function(a){requestAnimationFrame(a)}:function(a){setTimeout(a,Dw)};function zy(){for(var a=Date.now(),t=ch.length,e=0;e<t;++e)ch[e](a);By(ch,t);for(var e=0;e<Rl.length;++e)Rl[e](a);Rl.length=0;for(var e=0;e<fh.length;++e)fh[e](a);fh.length=0,ch.length===0&&Rl.length===0?Xd=!1:mh(zy)}function Hy(){Xd||(Xd=!0,mh(zy))}function Zd(a){Rl.push(a),Hy()}function yh(a){fh.push(a),Hy()}function Qd(a){Kd.push(a)}function Jd(){for(var a=Date.now(),t=Kd.length,e=0;e<t;++e)Kd.shift()(a)}var fr=(function(){function a(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{K(t,function(e){e.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}},a.prototype.hasListeners=function(){return this._listeners.length!==0},a.prototype.hasListenersByType=function(t){return Nl(this._listeners,function(e){return(e.type===null||e.type===t)&&!e.killed})},a.prototype.enable=function(){this._enabled=!0},a.prototype.disable=function(){this._enabled=!1},a.prototype.enableType=function(t){delete this._disabled[t]},a.prototype.disableType=function(t,e){e===void 0&&(e=1/0),this._disabled[t]=e},a.prototype._removeListener=function(t){if(this._iterating===0){var e=this._listeners.indexOf(t);if(e===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},a.prototype._removeExistingListener=function(t,e,i,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(function(n){n.once===t&&n.type===e&&(i==null||n.callback===i)&&n.context===r&&n.disposer.dispose()})},a.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&this._disabled[t]==null},a.prototype.has=function(t,e,i){var r=dh(this._listeners,function(n){return n.once!==!0&&n.type===t&&(e==null||n.callback===e)&&n.context===i});return r!==-1},a.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return x(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},a.prototype._eachListener=function(t){var e=this;++this._iterating;try{K(this._listeners,t)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(K(this._killed,function(i){e._removeListener(i)}),this._killed.length=0)}},a.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener(function(i){!i.killed&&(i.type===null||i.type===t)&&i.dispatch(t,e)})},a.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener(function(i){!i.killed&&(i.type===null||i.type===t)&&Qd(function(){i.killed||i.dispatch(t,e)})})},a.prototype._on=function(t,e,i,r,n,s){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,r);var l={type:e,callback:i,context:r,shouldClone:n,dispatch:s,killed:!1,once:t,disposer:new Fe(function(){l.killed=!0,o._removeListener(l)})};return this._listeners.push(l),l},a.prototype.onAll=function(t,e,i){return i===void 0&&(i=!0),this._on(!1,null,t,e,i,function(r,n){return t.call(e,r,n)}).disposer},a.prototype.on=function(t,e,i,r){return r===void 0&&(r=!0),this._on(!1,t,e,i,r,function(n,s){return e.call(i,s)}).disposer},a.prototype.once=function(t,e,i,r){r===void 0&&(r=!0);var n=this._on(!0,t,e,i,r,function(s,o){n.disposer.dispose(),e.call(i,o)});return n.disposer},a.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},a.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");K(t._listeners,function(i){!i.killed&&i.shouldClone&&(i.type===null?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))})},a})();var jl=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i.target=e,i}return t.prototype.copyFrom=function(e){var i=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");K(e._listeners,function(r){r.context!==e.target&&!r.killed&&r.shouldClone&&(r.type===null?i.onAll(r.callback,r.context):r.once?i.once(r.type,r.callback,r.context):i.on(r.type,r.callback,r.context))})},t})(fr);function Gy(a){return function(t){for(var e in a)if(Ur(a,e)&&!t([e,a[e]]))break}}function Yy(a){var t=[];for(var e in a)Ur(a,e)&&t.push(e);return t}function Fw(a,t){return Yy(a).sort(t)}function Ur(a,t){return{}.hasOwnProperty.call(a,t)}function ec(a,t){for(var e in a)if(Ur(a,e)&&!t(e,a[e]))break}function se(a,t){ec(a,function(e,i){return t(e,i),!0})}function la(a,t,e){K(Fw(a,e),function(i){t(i,a[i])})}function Bl(a,t){return Object.assign({},a,t)}function Xy(a){return JSON.parse(JSON.stringify(a))}function xt(a,t,e){K(e,function(i){C(a[i])&&(t[i]=a[i])})}function Ky(a,t,e){K(e,function(i){t[i]=a[i]})}function go(a,t){xt(a,t,Yy(a))}function $a(a){return function(t){for(var e=a.length,i=0;i<e&&t(a[i]);++i);}}function Zy(a){var t=0;return a(function(e){return++t,!0}),t}function cs(a){var t=[];return a(function(e){return t.push(e),!0}),t}function ii(a,t){a(t)}function j(a,t){a(function(e){return t(e),!0})}function Ka(a,t){return $a(cs(a).sort(t))}function gh(a,t){return function(e){return a(function(i){return e(t(i))})}}function Qy(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return function(e){for(var i=!0,r=function(o){return i=e(o)},n=a.length,s=0;s<n&&(a[s](r),!!i);++s);}}function Jy(a){return function(t){var e=!0,i=function(r){return e=t(r)};a(function(r){return r(i),e})}}function Gr(a){return function(t){var e=0;a(function(i){return t([e++,i])})}}function eg(a,t){var e;return a(function(i){return t(i)?(e=i,!1):!0}),e}function vo(a,t){var e=!1;return a(function(i){return t(i)?(e=!0,!1):!0}),e}var fs=(function(){function a(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return a.prototype.reset=function(){this._listCopy=cs(this.list.iterator())},a.prototype.clear=function(){this._listCopy.length=0},a.prototype.getFirst=function(){return this.returnItem(0)},a.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},a.prototype.find=function(t){var e=dh(this._listCopy,t);if(e!==-1){var i=this._listCopy[e];return de(this._listCopy,i),i}else return this.getLast()},a.prototype.removeItem=function(t){return de(this._listCopy,t)},a.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return de(this._listCopy,e),e}else if(this.createNewItems)return this._create()},a.prototype.iterator=function(){return $a(this._listCopy)},a})();function Wl(a,t){return a===t?0:a<t?-1:1}function tc(a,t){return new Array(t+1).join(a)}function tg(a){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<a;i++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}var mr=(function(a){_(t,a);function t(e){var i=this,r=e.events.on("removed",function(n){n.oldValue.dispose()},void 0,!1);return i=a.call(this,function(){r.dispose(),j(e.iterator(),function(n){var s=n[1];s.dispose()})})||this,i}return t})(Fe);var Ve=(function(){function a(){this.events=new fr,this._dictionary={}}return a.prototype.hasKey=function(t){return Ur(this._dictionary,t)},a.prototype.getKey=function(t){return this._dictionary[t]},a.prototype.insertKey=function(t,e){if(Ur(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},a.prototype.setKey=function(t,e){if(Ur(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},a.prototype.updateKey=function(t,e){if(Ur(this._dictionary,t)){var i=this._dictionary[t],r=e(i);i!==r&&(this._dictionary[t]=r,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:r}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else throw new Error("Key "+t+" doesn't exist in dictionary")},a.prototype.removeKey=function(t){if(Ur(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},a.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},a.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&se(this._dictionary,function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})}),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},a.prototype.copyFrom=function(t){var e=this;j(t.iterator(),function(i){e.setKey(i[0],i[1])})},a.prototype.iterator=function(){return Gy(this._dictionary)},a.prototype[Symbol.iterator]=function(){var t,e,i,r;return Ue(this,function(n){switch(n.label){case 0:t=[];for(e in this._dictionary)t.push(e);i=0,n.label=1;case 1:return i<t.length?(r=t[i],Ur(this._dictionary,r)?[4,[r,this._dictionary[r]]]:[3,3]):[3,4];case 2:n.sent(),n.label=3;case 3:return i++,[3,1];case 4:return[2]}})},a.prototype.each=function(t){j(this.iterator(),function(e){var i=gn(e,2),r=i[0],n=i[1];return t(r,n)})},a.prototype.sortedIterator=function(){return Ka(this.iterator(),function(t,e){return Wl(t[0],e[0])})},a})();var Oa=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i.template=e,i}return Object.defineProperty(t.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;j(e.iterator(),function(r){i.setKey(r[0],r[1].clone())})},t.prototype.create=function(e){var i=this;return this.insertKeyIfEmpty(e,function(){return i.template.clone()})},t})(Ve);var ig=(function(){function a(){this._storage=new Ve,this.ttl=1e3}return a.prototype.set=function(t,e,i,r){var n=this._storage.insertKeyIfEmpty(t,function(){return new Ve}),s={touched:new Date().getTime(),ttl:x(r)?r:this.ttl,value:i};n.setKey(e,s)},a.prototype.get=function(t,e,i){if(i===void 0&&(i=void 0),this._storage.hasKey(t)){var r=this._storage.getKey(t);if(r.hasKey(e)){var n=r.getKey(e);return n.ttl&&n.touched+n.ttl<new Date().getTime()&&(n.expired=!0),n.expired?(r.removeKey(e),i):n.value}else return i}else return i},a.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},a})();var xn=new ig;var rg=(function(){function a(){var t=this;this.events=new fr,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],typeof addEventListener<"u"&&(addEventListener("beforeprint",function(){K(t.baseSprites,function(e){var i=e.paper.svg;i.setAttribute("viewBox","0 0 "+i.clientWidth+" "+i.clientHeight)})}),addEventListener("afterprint",function(){K(t.baseSprites,function(e){var i=e.paper.svg;i.removeAttribute("viewBox")})}))}return a.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(a.prototype,"map",{get:function(){return this._map||(this._map=new Ve),this._map},enumerable:!0,configurable:!0}),a.prototype.setCache=function(t,e,i){xn.set(this.uid,t,e,i)},a.prototype.getCache=function(t,e){return e===void 0&&(e=void 0),xn.get(this.uid,t,e)},a.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},a.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},a.prototype.getPlaceholder=function(t){return C(this._placeholders[t])?this._placeholders[t]:(this._placeholders[t]="__amcharts_"+t+"_"+tg(8)+"__",this._placeholders[t])},a.prototype.addToInvalidComponents=function(t){t.baseId?zi(this.invalidDatas[t.baseId],t):zi(this.invalidDatas.noBase,t)},a.prototype.removeFromInvalidComponents=function(t){t.baseId&&de(this.invalidDatas[t.baseId],t),de(this.invalidDatas.noBase,t)},a.prototype.addToInvalidSprites=function(t){t.baseId?ds(this.invalidSprites[t.baseId],t):ds(this.invalidSprites.noBase,t)},a.prototype.removeFromInvalidSprites=function(t){t.baseId&&de(this.invalidSprites[t.baseId],t),de(this.invalidSprites.noBase,t)},a.prototype.addToInvalidPositions=function(t){t.baseId?ds(this.invalidPositions[t.baseId],t):ds(this.invalidPositions.noBase,t)},a.prototype.removeFromInvalidPositions=function(t){t.baseId&&de(this.invalidPositions[t.baseId],t),de(this.invalidPositions.noBase,t)},a.prototype.addToInvalidLayouts=function(t){t.baseId?ds(this.invalidLayouts[t.baseId],t):ds(this.invalidLayouts.noBase,t)},a.prototype.removeFromInvalidLayouts=function(t){t.baseId&&de(this.invalidLayouts[t.baseId],t),de(this.invalidLayouts.noBase,t)},a})();var S=new rg;function ic(a,t){var e=S.registeredClasses[t];return e!=null&&a instanceof e}var _e=(function(){function a(t){this._value=t}return Object.defineProperty(a.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hex",{get:function(){return this._value?Ey(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rgba",{get:function(){return this._value?ky(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"alpha",{get:function(){return this._value!=null&&this._value.a!=null?this._value.a:1},set:function(t){this._value&&(this._value.a=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new a({r:255,g:255,b:255})),this._lightColor},set:function(t){this._lightColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new a({r:0,g:0,b:0})),this._darkColor},set:function(t){this._darkColor=t},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},a.prototype.lighten=function(t){return new a(Vy(this.rgb,t))},a.prototype.brighten=function(t){return new a(My(this.rgb,t))},a.prototype.saturate=function(t){return new a(Ny(this.rgb,t))},Object.defineProperty(a.prototype,"alternative",{get:function(){if(this.rgb!=null)return Ry(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),a})();function oe(a,t){if(!C(a))return new _e(void 0);if(typeof a=="string"){var e="_color_"+a+"_"+(t||"1"),i=S.getCache(e);if(i)return new _e({r:i.r,g:i.g,b:i.b,a:i.a});var r=Ly(a,t);return S.setCache(e,r),new _e(r)}return a instanceof _e?(C(t)&&(a.alpha=t),a):new _e(a)}function ag(a){return a instanceof _e}function ng(a){return oe(a)}function ji(a){return C(a)&&!ag(a)?ng(a):a}var ke={};Pw(ke,{anyToDate:()=>Ul,anyToNumber:()=>Po,camelToDashed:()=>Ew,capitalize:()=>bs,cleanFormat:()=>Cn,copy:()=>sc,copyProperties:()=>Hi,decimalPlaces:()=>gc,documentPointToSprite:()=>Da,documentPointToSvg:()=>ua,escapeForRgex:()=>So,fitNumber:()=>Gl,fitNumberRelative:()=>Yl,get12Hours:()=>_o,getBaseURI:()=>Sn,getDayFromWeek:()=>cc,getFormat:()=>hc,getMonthWeek:()=>dc,getPixelRatio:()=>oc,getTimeZone:()=>To,getWeek:()=>xo,getWeekYear:()=>fc,getYearDay:()=>Ch,height:()=>yc,isIE:()=>Fa,isNotEmpty:()=>vs,joinUrl:()=>Xl,ltrim:()=>uc,numberToString:()=>pc,padString:()=>di,parseUrl:()=>ac,plainText:()=>wo,random:()=>Vw,relativeRadiusToValue:()=>Vt,relativeToValue:()=>Ke,reverseString:()=>bh,rtrim:()=>lc,serializeUrl:()=>nc,softCopyProperties:()=>Aw,splitTextByCharCount:()=>zl,spritePointToDocument:()=>$o,spritePointToSprite:()=>oi,spritePointToSvg:()=>Bi,spriteRectToSvg:()=>xs,stringify:()=>xh,stripHash:()=>rc,stripTags:()=>Sh,svgPointToDocument:()=>wh,svgPointToSprite:()=>Ti,svgRectToSprite:()=>Mw,trim:()=>Hl,truncateWithEllipsis:()=>Co,unquote:()=>kw,used:()=>Yr,valueToRelative:()=>Lw,width:()=>mc});function sg(){return/apple/i.test(navigator.vendor)}function og(){return/MSIE |Trident\//.test(navigator.userAgent)}var vh="string",ms="number",ys="date",bo="duration",vi="__\xA7\xA7\xA7__",Za="__\xA7\xA7\xA7\xA7__";function Yr(a){}function Hi(a,t){return se(a,function(e,i){C(i)&&(t[e]=i)}),t}function rc(a){return/^[^#]*/.exec(a)[0]}function Sn(){var a="#";if(sg()){var t=document.baseURI;if(t){t=rc(t);var e=rc(location.href);t!==e&&(a=e+a)}}return a}function Aw(a,t){return se(a,function(e,i){C(i)&&!C(t[e])&&(t[e]=i)}),t}function sc(a,t){return se(a,function(e,i){t[e]=i}),t}function vs(a){return C(a)&&a.toString()!==""}function Ke(a,t){return x(a)?a:a!=null&&x(a.value)&&x(t)?t*a.value:0}function Vt(a,t,e){var i;return x(a)?(i=a,i<0&&(e?i=t+i:i=t-i)):a!=null&&x(a.value)&&(i=t*a.value),i}function Lw(a,t){return a instanceof xe?a.value:a/t}function oc(){var a=window.devicePixelRatio||1;return a}function Ew(a){return a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function bs(a){var t=a.split("");return t[0]=t[0].toUpperCase(),t.join("")}function xh(a){return JSON.stringify(a)}function So(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function zl(a,t,e,i,r){if(a.length<=t)return[a];var n=[];if(e){for(var s=-1,o=a.replace(/([,;:!?\\\/]+|[\s])/g,vi+"$1"+vi),l=o.split(vi),u=1;u<l.length;u++){var h=l[u];(h=="."||h==",")&&l[u-1].match(/[\w]+$/)&&(l[u-1]+=h,l[u]="")}for(var u=0;u<l.length;u++){var h=l[u],p=h.length;if(p!==0){if(p>t&&(e!==!0||r!=!1)){i&&(h=bh(h));var d=h.match(new RegExp(".{1,"+t+"}","g"));if(d){if(i)for(var c=0;c<d.length;c++)d[c]=bh(d[c]);n=n.concat(d)}}else s===-1&&(n.push(""),s=0),n[s].length+p+1>t&&n[s]!==""&&(n.push(""),s++),n[s]+=h;s=n.length-1}}}else{var d=a.match(new RegExp(".{1,"+t+"}","g"));if(d){if(i)for(var c=0;c<d.length;c++)i||(d[c]=bh(d[c]));n=d}}return n.length==1&&e&&r&&n[0].length>t&&(n=[]),n}function Co(a,t,e,i,r){if(a.length<=t)return a;t-=e.length,t<1&&(t=1);var n=zl(a,t,i,r);return(n[0]||"")+e}function Hl(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function lc(a){return a.replace(/[\s\uFEFF\xA0]+$/g,"")}function uc(a){return a.replace(/^[\s\uFEFF\xA0]+/g,"")}function bh(a){return a.split("").reverse().join("")}function kw(a){var t=a.trim();return t=a.replace(/^'(.*)'$/,"$1"),t==a&&(t=a.replace(/^"(.*)"$/,"$1")),t}function di(a,t,e){return t===void 0&&(t=0),e===void 0&&(e="0"),typeof a!="string"&&(a=a.toString()),t>a.length?Array(t-a.length+1).join(e)+a:a}function hc(a){if(typeof a>"u")return vh;a=a.toLowerCase().replace(/^\[[^\]]*\]/,""),a=a.replace(/\[[^\]]+\]/,""),a=a.trim();var t=a.match(/\/(date|number|duration)$/);return t?t[1]:a===ms?ms:a===ys?ys:a===bo?bo:a.match(/[#0]/)?ms:a.match(/[ymwdhnsqaxkzgtei]/)?ys:vh}function Cn(a){return a.replace(/\/(date|number|duration)$/i,"")}function Sh(a){return a&&a.replace(/<[^>]*>/g,"")}function wo(a){return a&&Sh((""+a).replace(/[\n\r]+/g,". "))}function pc(a){if(Zt(a))return"NaN";if(a===1/0)return"Infinity";if(a===-1/0)return"-Infinity";if(a===0&&1/a===-1/0)return"-0";var t=a<0;a=Math.abs(a);var e=Ze(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+a)),i=e[1],r=e[2]||"",n;if(e[3]==null)n=r===""?i:i+"."+r;else{var s=+e[3];if(a<1){var o=s-1;n="0."+tc("0",o)+i+r}else{var o=s-r.length;o===0?n=i+r:o<0?n=i+r.slice(0,o)+"."+r.slice(o):n=i+r+tc("0",o)}}return t?"-"+n:n}function Ul(a){if(yn(a)){var t=new Date(a);return t.setMilliseconds(a.getMilliseconds()),t}else{if(x(a))return new Date(a);var e=Number(a);return x(e)?new Date(e):new Date(a)}}function Po(a){if(yn(a))return a.getTime();if(x(a))return a;if(ye(a)){var t=Number(a);return x(t)?t:void 0}}function Ch(a,t){t===void 0&&(t=!1);var e=new Date(a.getFullYear(),0,0),i=a.getTime()-e.getTime()+(e.getTimezoneOffset()-a.getTimezoneOffset())*60*1e3,r=1e3*60*60*24;return Math.floor(i/r)}function xo(a,t){t===void 0&&(t=!1);var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),i=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-i);var r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e.getTime()-r.getTime())/864e5+1)/7)}function dc(a,t){t===void 0&&(t=!1);var e=xo(new Date(a.getFullYear(),a.getMonth(),1),t),i=xo(a,t);return i==1&&(i=53),i-e+1}function cc(a,t,e,i){e===void 0&&(e=1),i===void 0&&(i=!1);var r=new Date(t,0,4,0,0,0,0);i&&r.setUTCFullYear(t);var n=a*7+e-((r.getDay()||7)+3);return n}function _o(a,t){return a>12?a-=12:a===0&&(a=12),C(t)?a+(t-1):a}function To(a,t,e,i){if(t===void 0&&(t=!1),e===void 0&&(e=!1),i===void 0&&(i=!1),i)return t?"Coordinated Universal Time":"UTC";var r=a.toLocaleString("UTC"),n=a.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(r.length);return e===!1&&(n=n.replace(/ (standard|daylight|summer|winter) /i," ")),n}function fc(a,t){t===void 0&&(t=!1);var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),i=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-i);var r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return r.getFullYear()}function Vw(a,t){return Math.floor(Math.random()*(t-a))+a}function Gl(a,t,e){return a>e?e:a<t?t:a}function Yl(a,t,e){var i=e-t;return(a>e||a<t)&&(a=t+(a-i*Math.floor(a/i))),a}function Ti(a,t){var e=a.x,i=a.y,r=[];if(t){for(;C(t.parent);)r.push(t),t=t.parent;r.reverse();for(var n=0;n<r.length;n++){var s=r[n],o=s.rotation,l=e-s.pixelX-s.ex,u=i-s.pixelY-s.ey;s.dx&&(e-=s.dx),s.dy&&(i-=s.dy);var h=s.scale;s.group&&(h=s.group.scale),e=(Q(-o)*l-Z(-o)*u)/h-s.pixelPaddingLeft,i=(Q(-o)*u+Z(-o)*l)/h-s.pixelPaddingTop}}return{x:e,y:i}}function Bi(a,t){var e=a.x,i=a.y;if(t)for(;C(t.parent);){var r=t.rotation;e+=t.pixelPaddingLeft+t.ex,i+=t.pixelPaddingTop+t.ey;var n=t.scale;t.group&&(n=t.group.scale);var s=t.pixelX+(e*Q(r)-i*Z(r))*n,o=t.pixelY+(e*Z(r)+i*Q(r))*n;t.dx&&(s+=t.dx),t.dy&&(o+=t.dy),e=s,i=o,t=t.parent}return{x:e,y:i}}function oi(a,t,e){return Ti(Bi(a,t),e)}function Mw(a,t){var e=Ti(a,t),i=Ti({x:a.x+a.width,y:a.y+a.height},t);return{x:e.x,y:e.y,width:i.x-e.x,height:i.y-e.y}}function xs(a,t){var e=Bi(a,t),i=Bi({x:a.x+a.width,y:a.y+a.height},t);return{x:e.x,y:e.y,width:i.x-e.x,height:i.y-e.y}}function ua(a,t,e){try{var i=t.getBoundingClientRect();return x(e)||(e=1),{x:(a.x-i.left)/e,y:(a.y-i.top)/e}}catch{return a}}function wh(a,t){try{var e=t.getBoundingClientRect();return{x:a.x+e.left,y:a.y+e.top}}catch{return a}}function Da(a,t){if(t&&t.htmlContainer){var e=ua(a,Ze(t.htmlContainer),t.svgContainer.cssScale);return Ti(e,t)}else return a}function $o(a,t){if(t&&t.htmlContainer){var e=Bi(a,t);return wh(e,Ze(t.htmlContainer))}else return a}function mc(a){var t=getComputedStyle(a),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth);return a.clientWidth-e-i}function yc(a){var t=getComputedStyle(a),e=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),i=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth);return a.clientHeight-e-i}function gc(a){var t=(""+a).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Nw=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function ac(a){var t=Nw.exec(a);return{protocol:t&&t[1]||"",separator:t&&t[2]||"",authority:t&&t[3]||"",domain:t&&t[4]||"",port:t&&t[5]||"",path:t&&t[6]||"",query:t&&t[7]||"",hash:t&&t[8]||""}}function nc(a){return a.protocol+a.separator+a.authority+a.domain+a.port+a.path+a.query+a.hash}function lg(a){return a.protocol===""&&a.separator===""&&a.authority===""&&a.domain===""&&a.port===""}function Xl(a,t){var e=ac(a),i=ac(t);if(lg(e))throw new Error("Left URL is not absolute");if(lg(i)){if(i.path!=="")if(i.path[0]==="/")e.path=i.path;else{var r=e.path.split(/\//),n=i.path.split(/\//);if(r.length===0?n.length!==0&&r.push(""):r.length>1&&r.pop(),Wy(r,n),e.path=r.join("/"),e.path!==""&&e.path[0]!=="/")throw new Error("URL path must start with /")}return e.query=i.query,e.hash=i.hash,nc(e)}else return nc(i)}function Fa(){return!!window.MSInputMethodContext&&!!document.documentMode}var Ce={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0};var wn="http://www.w3.org/2000/svg",bc="http://www.w3.org/2000/xmlns/",Oo="http://www.w3.org/1999/xlink";function _t(a,t,e,i){return a.addEventListener(t,e,i||!1),new Fe(function(){a.removeEventListener(t,e,i||!1)})}function Kl(a){if(ye(a)){var t=document.getElementById(a);if(t==null&&(t=document.getElementsByClassName(a)[0]),t instanceof HTMLElement)return t}else if(a instanceof HTMLElement)return a}function Do(a,t){if(a)if(a.classList){var e=t.split(" ");K(e,function(r){a.classList.add(r)})}else{var i=a.getAttribute("class");i?a.setAttribute("class",i.split(" ").filter(function(r){return r!==t}).join(" ")+" "+t):a.setAttribute("class",t)}}function Fo(a,t){if(a)if(a.classList)a.classList.remove(t);else{var e=a.getAttribute("class");e&&a.setAttribute("class",e.split(" ").filter(function(i){return i!==t}).join(" "))}}function xc(a,t,e){a.style[t]=e}function Ph(a,t){return a.currentStyle?a.currentStyle[t]:document.defaultView.getComputedStyle(a,null).getPropertyValue(t)}function Ss(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var a=document.createElement("button");a.style.position="fixed",a.style.top="0px",a.style.left="-10000px",document.body.appendChild(a),a.focus(),a.blur(),document.body.removeChild(a)}}function Sc(a,t){for(var e=t;;){if(a===e)return!0;if(e.parentNode==null){if(e.host==null)return!1;e=e.host}else e=e.parentNode}}function Io(a){for(var t=a;;){if(t.parentNode==null)return t.host!=null?t:null;t=t.parentNode}}function _h(a){for(var t=a.ownerDocument,e=a;;){if(e.parentNode==null)return e===t||e.host!=null?e:null;e=e.parentNode}}function ug(a){return typeof a.composedPath=="function"?a.composedPath()[0]:a.target}function Cc(a){Zd(function(){try{var t=a.getBoundingClientRect(),e=t.left-Math.round(t.left),i=t.top-Math.round(t.top);e!==0&&yh(function(){a.style.left=e+"px"}),i!==0&&yh(function(){a.style.top=i+"px"})}catch{}})}var vc;function Rw(a){if(a==null){if(!C(vc)){var t=document.createElement("style");t.type="text/css",Ce.nonce!=""&&t.setAttribute("nonce",Ce.nonce),document.head.appendChild(t),vc=t.sheet}return vc}else{var t=document.createElement("style");return t.type="text/css",Ce.nonce!=""&&t.setAttribute("nonce",Ce.nonce),a.appendChild(t),t.sheet}}function jw(a,t){var e=a.cssRules.length;return a.insertRule(t+"{}",e),a.cssRules[e]}var et=(function(a){_(t,a);function t(e,i,r){var n=this,s=Rw(e);return n=a.call(this,function(){var o=Di(s.cssRules,n._rule);if(o===-1)throw new Error("Could not dispose StyleRule");s.deleteRule(o)})||this,n._rule=jw(s,i),se(r,function(o,l){n.setStyle(o,l)}),n}return Object.defineProperty(t.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(e){this._rule.selectorText=e},enumerable:!0,configurable:!0}),t.prototype._setVendorPrefixName=function(e,i){var r=this._rule.style;r.setProperty("-webkit-"+e,i,""),r.setProperty("-moz-"+e,i,""),r.setProperty("-ms-"+e,i,""),r.setProperty("-o-"+e,i,""),r.setProperty(e,i,"")},t.prototype.setStyle=function(e,i){e==="transition"?this._setVendorPrefixName(e,i):this._rule.style.setProperty(e,i,"")},t})(Fe);var Bw=0,Ww=(function(a){_(t,a);function t(e,i,r){var n=this,s=C(r)?r:"__style_"+ ++Bw+"__";return n=a.call(this,e,"."+s,i)||this,n._className=s,n}return Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(e){this._className=e,this.selector="."+e},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._className},t})(et);function wc(a){if(document.readyState!=="loading")a();else{var t=function(){document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),a())};document.addEventListener("readystatechange",t)}}function Zl(a){var t=Ph(a,"font-family");if(t)return t;var e=a.parentElement||a.parentNode;return e?Zl(e):void 0}function Ql(a){var t=Ph(a,"font-size");if(t)return t;var e=a.parentElement||a.parentNode;return e?Ql(e):void 0}function Th(a,t){var e=a.getBoundingClientRect(),i=Je(t)?t:t?[t]:[];if(i.length){for(var r=0;r<i.length;r++){var n=i[r];if(!Th(n))return!1;var s=n.getBoundingClientRect();if(e.top>=0&&e.left>=0&&e.top<=s.top+s.height&&e.left<=s.left+s.width)return!0}return!1}return e.top>=0&&e.left>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth)}var Pn=(function(){function a(t){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,typeof t=="string"?this.node=document.createElementNS(wn,t):this.node=t}return a.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(a.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),a.prototype.transform=function(){var t="translate("+this._x+","+this._y+")";if(this._scale!=1&&(t+=(t?" ":"")+"scale("+this._scale+")"),this._rotation!=0){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),t+=(t?" ":"")+e}this._transformString=t,this.node.setAttribute("transform",t)},a.prototype.getBBox=function(){var t={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height}catch{}return t},a.prototype.moveTo=function(t){if(t){var e=t.x,i=t.y;(this._x!=e||this._y!=i)&&(this._x=e,this._y=i,this.transform())}},Object.defineProperty(a.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(t){this.node.textContent=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"x",{get:function(){return this._x},set:function(t){this._x!=t&&(this._x=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){return this._y},set:function(t){this._y!=t&&(this._y=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!=t&&(this._rotation=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotationX",{get:function(){return this._rotationX},set:function(t){this._rotationX!=t&&(this._rotationX=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotationY",{get:function(){return this._rotationY},set:function(t){this._rotationY!=t&&(this._rotationY=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t,this.transform())},enumerable:!0,configurable:!0}),a.prototype.removeAttr=function(t){this.node.removeAttribute(t)},a.prototype.attr=function(t){var e=this;return se(t,function(i,r){C(r)?e.node.setAttribute(i,r):e.node.removeAttribute(i)}),this},a.prototype.getAttr=function(t){return this.node.getAttribute(t)},a.prototype.attrNS=function(t,e,i){return this.node.setAttributeNS(t,e,i),this},a.prototype.getAttrNS=function(t,e){return this.node.getAttributeNS(t,e)},a.prototype.removeStyle=function(t){this.node.style[t]=null,delete this.node.style[t]},a.prototype.getStyle=function(t){return this.node.style[t]},a.prototype.addStyle=function(t){var e=this;return se(t,function(i,r){C(r)?e.node.style[i]=r:e.removeStyle(i)}),this},a.prototype.addClass=function(t){Do(this.node,t)},a.prototype.removeClass=function(t){Fo(this.node,t)},a.prototype.setClass=function(t){this.node.setAttribute("class",t)},a.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},a.prototype.isDisposed=function(){return this._isDisposed},a.prototype.dispose=function(){this.removeNode()},a})();var Pc=(function(a){_(t,a);function t(e){return a.call(this,e)||this}return t.prototype.add=function(e){e&&this.node.appendChild(e.node)},t.prototype.addToBack=function(e){if(e){var i=this.node.childNodes[0];i?i!=e.node&&this.node.insertBefore(e.node,i):this.node.appendChild(e.node)}},t.prototype.removeElement=function(e){if(e)try{e.node&&e.node.parentNode==this.node&&this.node.removeChild(e.node)}catch{}},t.prototype.hasChild=function(e){for(var i=0;i<this.node.childNodes.length;i++)if(this.node.childNodes[i]==e.node)return!0;return!1},Object.defineProperty(t.prototype,"content",{get:function(){return this.node.innerHTML},set:function(e){this.node.innerHTML=e},enumerable:!0,configurable:!0}),t.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var e=this.node.firstChild;e&&e.parentNode&&e.parentNode.removeChild(e)}},t.prototype.removeChildrenByTag=function(e){if(this.node.childNodes)for(var i=this.node.getElementsByTagName(e),r=0;r<i.length;r++)this.node.removeChild(i[r])},t})(Pn);var Mt=(function(){function a(){}return a.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],a.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],a.pointer=[{property:"cursor",value:"pointer"}],a.default=[{property:"cursor",value:"default"}],a.horizontalResize=[{property:"cursor",value:"ew-resize"}],a.verticalResize=[{property:"cursor",value:"ns-resize"}],a.notAllowed=[{property:"cursor",value:"not-allowed"}],a.text=[{property:"cursor",value:"text"}],a})();var _c=(function(){function a(t,e,i){this._array=t,this._start=e,this._end=i}return a.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(var i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},a.prototype.backwards=function(){return new a(this._array,this._end,this._start)},a.prototype.range=function(t,e){if(t<=e){if(this._start===this._end)return this;if(this._start<this._end){var i=e-t;return t=Math.max(this._start+t,this._start),e=Math.min(t+i,this._end),new a(this._array,t,e)}else{var i=e-t;return t=Math.max(this._start-t,this._end),e=Math.max(t-i,this._end),new a(this._array,t,e)}}else throw new Error("Start index must be lower than end index")},a})();var qw=(function(a){_(t,a);function t(e,i,r){var n=a.call(this,[e.events.on("inserted",function(s){var o=s.newValue,l=n._getKey(o),u=0;ii(e.iterator(),function(h){return h===o?!1:(n._getKey(h)===l&&++u,!0)}),n._insert(o,l,u)},void 0,!1),e.events.on("removed",function(s){n._remove(s.oldValue)},void 0,!1)])||this;return n._keys=[],n._groups={},n._getKey=i,n._sort=r,j(e.iterator(),function(s){n._insert(s,i(s))}),n}return t.prototype._insert=function(e,i,r){if(this._groups[i]==null){this._groups[i]=[];var n=yo(this._keys,this._sort,i),s=n.found,o=n.index;if(s)throw new Error("Key already exists: "+i);vn(this._keys,o,i)}r==null?this._groups[i].push(e):vn(this._groups[i],r,e)},t.prototype._remove=function(e){var i=this._getKey(e),r=this._groups[i];if(r!=null&&(de(r,e),r.length===0)){delete this._groups[i];var n=yo(this._keys,this._sort,i),s=n.found,o=n.index;if(s)bn(this._keys,o);else throw new Error("Key doesn't exist: "+i)}},t.prototype.iterator=function(){var e=this;return Jy(gh($a(this._keys),function(i){return $a(e._groups[i])}))},t})(Me);var Ie=(function(a){_(t,a);function t(e,i){i===void 0&&(i=!0);var r=this;if(i){var n=e.events.on("removed",function(s){s.oldValue.dispose()},void 0,!1);r=a.call(this,function(){n.dispose(),j(e.iterator(),function(s){s.dispose()})})||this}else r=a.call(this,function(){j(e.iterator(),function(s){s.dispose()})})||this;return r}return t})(Fe);function Jl(a,t){if(!(a>=0&&a<t))throw new Error("Index out of bounds: "+a)}var we=(function(){function a(t){t===void 0&&(t=[]),this.events=new fr,this._values=t}return Object.defineProperty(a.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),a.prototype.contains=function(t){return this._values.indexOf(t)!==-1},a.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},a.prototype.indexOf=function(t){return Di(this._values,t)},Object.defineProperty(a.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},a.prototype.getIndex=function(t){return this._values[t]},a.prototype.setIndex=function(t,e){Jl(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},a.prototype.insertIndex=function(t,e){Jl(t,this._values.length+1),vn(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},a.prototype._sortQuicksort=function(t,e,i){if(t<e){var r=this._sortPartition(t,e,i);this._sortQuicksort(t,r,i),this._sortQuicksort(r+1,e,i)}},a.prototype._sortPartition=function(t,e,i){for(var r=this._values,n=r[t],s=t-1,o=e+1;;){do++s;while(i(r[s],n)<0);do--o;while(i(r[o],n)>0);if(s>=o)return o;this.swap(s,o)}},a.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},a.prototype.swap=function(t,e){var i=this._values.length;if(Jl(t,i),Jl(e,i),t!==e){var r=this._values[t],n=this._values[e];this._values[t]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:r,newValue:n}),this._values[e]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:n,newValue:r})}},a.prototype.removeIndex=function(t){Jl(t,this._values.length);var e=this._values[t];return bn(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},a.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(i!==-1){var r=this._values[i];bn(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:r})}e==null?(e=this._values.length,this._values.push(t)):vn(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),i===-1&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},a.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},a.prototype.unshift=function(t){this.insertIndex(0,t)},a.prototype.pushAll=function(t){var e=this;K(t,function(i){e.push(i)})},a.prototype.copyFrom=function(t){this.pushAll(t._values)},a.prototype.pop=function(){var t=this._values.length-1;return t<0?void 0:this.removeIndex(this._values.length-1)},a.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},a.prototype.setAll=function(t){var e=this,i=Ya(this._values);this._values.length=0,K(t,function(r){e._values.push(r)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&K(i,function(r){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:r})}),this.events.isEnabled("inserted")&&K(this._values,function(r){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:r})})},a.prototype.clear=function(){this.setAll([])},a.prototype.iterator=function(){return $a(this._values)},a.prototype[Symbol.iterator]=function(){var t,e;return Ue(this,function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}})},a.prototype.each=function(t){K(this._values,t)},a.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new _c(this._values,t,e)}else throw new Error("Start index must be lower than end index")},a.prototype.backwards=function(){return new _c(this._values,this._values.length,0)},a})();var We=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i.template=e,i}return Object.defineProperty(t.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;j(e.iterator(),function(r){i.push(r.clone())})},t.prototype.create=function(e){var i=e!=null?new e:this.template.clone();return this.push(i),i},t.prototype.clone=function(){for(var e=new t(this.template),i=this.values,r=i.length,n=0;n<r;++n)e.push(i[n].clone());return e},t})(we);var Tc=(function(){function a(t){this._values=[],this.events=new fr,t!=null&&this.setAll(t)}return Object.defineProperty(a.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),a.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(a.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a.prototype.indexOf=function(t){return Di(this._values,t)},a.prototype.contains=function(t){return this.indexOf(t)!==-1},a.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(a.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),a.prototype.insert=function(t){var e=this._insert(t);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:t})},a.prototype.remove=function(t){var e=this.indexOf(t);if(e!==-1){var i=this._values[e];bn(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:i})}},a.prototype.setAll=function(t){var e=this;jy(this._values,function(i,r){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:r,oldValue:i})}),K(t,function(i){e.insert(i)})},a.prototype.clear=function(){this.setAll([])},a.prototype.slice=function(t,e){var i=new a;return i._values=this._values.slice(t,e),i},a.prototype.findClosestIndex=function(t,e,i){i===void 0&&(i="any");var r=-1,n,s,o=0;return ii(this.iterator(),function(l){var u=e(l);if(i==="any"){if(u===t)return r=o,!1;var h=Math.abs(t-u);(!C(s)||s>h)&&(r=o,n=u,s=h)}else i==="left"&&u<t?(!C(n)||n<u)&&(r=o,n=u):i==="right"&&u>=t&&(!C(n)||n>=u)&&(r=o,n=u);return++o,!0}),r===-1&&(i==="left"?r=0:i==="right"&&(r=this.length-1)),r},a.prototype.iterator=function(){return $a(this._values)},a.prototype[Symbol.iterator]=function(){var t,e;return Ue(this,function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}})},a.prototype.each=function(t){K(this._values,t)},a})();var eu=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i._ordering=e,i}return t.prototype._insert=function(e){var i=yo(this._values,this._ordering,e).index;return vn(this._values,i,e),i},t.prototype.indexOf=function(e){var i=yo(this._values,this._ordering,e),r=i.found,n=i.index;return r?n:-1},t.prototype.update=function(e){var i=Di(this._values,e);if(i!==-1){var r=this._values.length-1;(i===0||this._ordering(this._values[i-1],e)<0)&&(i===r||this._ordering(e,this._values[i+1])<0)||(bn(this._values,i),this._insert(e))}},t})(Tc);var _n=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i.template=e,i}return Object.defineProperty(t.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;j(e.iterator(),function(r){i.insert(r.clone())})},t.prototype.slice=function(e,i){var r=new t(this.template);return r._values=this._values.slice(e,i),r},t.prototype.create=function(e){var i=e!=null?new e:this.template.clone();return this.insert(i),i},t})(Tc);var tu=(function(a){_(t,a);function t(e,i){var r=a.call(this,i)||this;return r.template=e,r}return Object.defineProperty(t.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;j(e.iterator(),function(r){i.insert(r.clone())})},t.prototype.create=function(e){var i=e!=null?new e:this.template.clone();return this.insert(i),i},t})(eu);function rr(a,t){return a===t?0:a<t?-1:1}function Lo(a){switch(a){case 0:return 0;case-1:return 1;case 1:return-1}}function $h(a,t){return a===0?t:a}var hg=(function(){function a(){this._callbackId=0,this._callbacks=new eu(function(t,e){return $h(rr(t.priority,e.priority),rr(t.id,e.id))})}return a.prototype.addAll=function(t,e,i,r,n){r===void 0&&(r=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:r,scope:n,type:t})},a.prototype.isEnabled=function(t,e){return Nl(this._callbacks.values,function(i){return i.key===e&&t instanceof i.type})},a.prototype.applyAll=function(t,e,i){var r=this._callbacks.values,n=r.length;if(n==0)return i;for(var s=0;s<n;++s){var o=r[s];o.key===e&&t instanceof o.type&&(i=o.callback.call(o.scope,i,t,e))}return i},a})();var iu=new hg,Bt=(function(){function a(t){this._callbackId=0,this._callbacks=new eu(function(e,i){return $h(rr(e.priority,i.priority),rr(e.id,i.id))}),this._disabled={},this.object=t,this.events=this._callbacks.events}return a.prototype.add=function(t,e,i,r){i===void 0&&(i=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:i,scope:r})},a.prototype.has=function(t,e,i,r){return i===void 0&&(i=0),vo(this._callbacks.iterator(),function(n){return n.key===t&&n.callback===e&&n.priority===i&&n.scope===r})},a.prototype.remove=function(t,e){var i=this;K(cs(this._callbacks.iterator()),function(r){r.key===t&&(!x(e)||e===r.priority)&&i._callbacks.remove(r)})},a.prototype.enableKey=function(t){delete this._disabled[t]},a.prototype.disableKey=function(t,e){e===void 0&&(e=1/0),this._disabled[t]=e},a.prototype._hasListenersByType=function(t){return Nl(this._callbacks.values,function(e){return e.key===t})},a.prototype.isEnabled=function(t){return this._disabled[t]==null&&(this._hasListenersByType(t)||iu.isEnabled(this.object,t))},a.prototype._shouldDispatch=function(t){var e=this._disabled[t];return x(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):!0},a.prototype.apply=function(t,e){if(this._shouldDispatch(t)){var i=this._callbacks.values,r=i.length;if(r>0)for(var n=0;n<r;++n){var s=i[n];s.key===t&&(e=s.callback.call(s.scope,e,this.object,t))}return e=iu.applyAll(this.object,t,e),e}else return e},a.prototype.keys=function(){return cs(gh(this._callbacks.iterator(),function(t){return t.key}))},a.prototype.copyFrom=function(t){var e=this;j(t._callbacks.iterator(),function(i){e.add(i.key,i.callback,i.priority,i.scope)}),se(t._disabled,function(i,r){e._disabled[i]=r})},a.prototype.clear=function(){this._callbacks.clear()},a})();var Tt=(function(){function a(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return a.prototype.debug=function(){},Object.defineProperty(a.prototype,"uid",{get:function(){return this._uid||(this._uid=S.getUniqueId(),S.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"map",{get:function(){return this._map||(this._map=new Ve),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new Ve),this._delayedMap},enumerable:!0,configurable:!0}),a.prototype.addDelayedMap=function(t,e){var i=this.delayedMap;i.hasKey(e)||i.setKey(e,[]);var r=i.getKey(e);r.push({property:t,target:this})},a.prototype.processDelayedMap=function(){var t=this;this.delayedMap.each(function(e,i){if(t.map.hasKey(e)){var r=t.map.getKey(e);K(i,function(n){n.target[n.property]=r}),t.delayedMap.removeKey(e)}})},a.prototype.applyTheme=function(){var t=this;if(S){var e=this.getCurrentThemes();e&&K(e,function(i,r){i(t)})}},Object.defineProperty(a.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t},enumerable:!0,configurable:!0}),a.prototype.getCurrentThemes=function(){return this.themes||S.themes},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;t.length!==0;){var e=t.shift();e.dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var i=this._uid;i!=null&&S.map.removeKey(i)}},a.prototype.addDisposer=function(t){this._disposers.push(t)},a.prototype.removeDispose=function(t){if(!this._disposed){var e=Di(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()},a.prototype.clone=function(t){t||(t="clone-"+S.getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(a.prototype,"clones",{get:function(){return this._clones||(this._clones=new we),this._clones},enumerable:!0,configurable:!0}),a.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(a.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),a.prototype.setCache=function(t,e,i){xn.set(this.uid,t,e,i)},a.prototype.getCache=function(t,e){return e===void 0&&(e=void 0),xn.get(this.uid,t,e)},a.prototype.clearCache=function(){xn.clear(this.uid)},a.prototype.setTimeout=function(t,e){var i=this,r=setTimeout(function(){i.removeDispose(n),t()},e),n=new Fe(function(){clearTimeout(r)});return this._disposers.push(n),n},a.prototype.setInterval=function(t,e){var i=this,r=setInterval(function(){i.removeDispose(n),t()},e),n=new Fe(function(){clearTimeout(r)});return this._disposers.push(n),n},Object.defineProperty(a.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),a.prototype.processConfig=function(t){var e=this;if(t){var i=this;if(la(t,function(n,s){var o=s;if(n=="callback"&&typeof s=="function"&&s.call(i),e.hasProperty(n)){var l;if(He(o)&&C(o.type)&&(!He(i[n])||!C(i[n].className)||o.forceCreate||i[n].className!=o.type)&&!e.asIs(n)?(l=e.createClassInstance(o.type),l?i[n]=l:l=i[n]):l=i[n],l instanceof Bt)e.processAdapters(l,o);else if(l instanceof fr)e.processEvents(l,o);else if(n=="locale"&&ye(o))window["am4lang_"+o]&&(i[n]=window["am4lang_"+o]);else if(n=="parent"&&ye(o)){var u=e.map.getKey(o);u?i[n]=u:e.addDelayedMap("parent",o)}else if(e.asIs(n))i[n]=o;else if(e.asFunction(n)&&ye(o))if(C(S.registeredClasses[o]))i[n]=S.registeredClasses[o];else throw Error("Invalid easing function: "+o);else if(o instanceof a)i[n]=o;else if(l instanceof a)l.config=o;else if(l instanceof We||l instanceof _n||l instanceof tu){if(Je(o))l instanceof We?e.processListTemplate(o,l):e.processOrderedTemplate(o,l);else if(He(o))if(o instanceof a)l.template=o;else{var h=void 0;C(o.template)?h=o.template:h=o,l.template instanceof a?l.template.config=h:se(h,function(p,d){var c=l.template[p];c instanceof Bt?e.processAdapters(c,d):c instanceof fr?e.processEvents(c,d):c instanceof Oa?e.processDictionaryTemplate(c,d):l.template[p]instanceof a?l.template[p].config=d:He(d)&&C(d.type)?(c=e.createClassInstance(d.type),c?(c instanceof a&&(c.config=d),l.template[p]=c):l.template[p]=d):c instanceof we?e.processList(d,c):l.template[p]=e.maybeColorOrPercent(d)}),C(o.values)&&(l instanceof We?e.processListTemplate(o.values,l):e.processOrderedTemplate(o.values,l))}}else l instanceof we?n=="children"?e.processList(o,l,e):e.processList(o,l):l instanceof Oa?e.processDictionaryTemplate(l,o):l instanceof Ve?e.processDictionary(l,o):l instanceof _e||l instanceof xe?i[n]=e.maybeColorOrPercent(o):He(l)&&He(o)?go(o,l):(o=e.maybeColorOrPercent(o),i[n]=o)}else e.isReserved(n)||(i[n]=o)},this.configOrder),this.processingErrors.length){var r=this.processingErrors.join(`
|
|
3
|
-
`);throw this._processingErrors=[],Error(r)}}},a.prototype.maybeColorOrPercent=function(t){if(ye(t)){if(t.match(/^[\-]?[0-9.]+\%$/))return W(qe(t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return oe(t)}return t},a.prototype.processAdapters=function(t,e){var i=this;Je(e)?K(e,function(r,n){t.add(r.key,r.callback,r.priority||0,i)}):He(e)&&se(e,function(r,n){t.has(r,n)||t.add(r,n)})},a.prototype.processEvents=function(t,e){var i=this;Je(e)?K(e,function(r,n){t.on(r.type,r.callback,i)}):He(e)&&se(e,function(r,n){t.has(r,n)||t.on(r,n)})},a.prototype.processDictionaryTemplate=function(t,e){He(e)&&se(e,function(i,r){var n;i=="template"?n=t.template:t.hasKey(i)?n=t.getKey(i):n=t.create(i),n instanceof a?n.config=r:He(n)&&He(r)?go(r,n):n.setKey(i,r)})},a.prototype.processDictionary=function(t,e){He(e)&&se(e,function(i,r){t.setKey(i,r)})},a.prototype.processListTemplate=function(t,e){var i=this;for(K(t,function(r,n){var s=i.getConfigEntryType(r),o;if(e.hasIndex(n)&&!r.forceCreate)o=e.getIndex(n);else if(r instanceof a){e.push(r);return}else s?o=e.create(s):o=e.create();r===o||He(r)&&(o instanceof a?o.config=r:He(o)&&He(r)?go(r,o):e.setIndex(e.indexOf(o),r))});t.length>e.length;)e.pop()},a.prototype.processOrderedTemplate=function(t,e){var i=this;K(t,function(r,n){var s=i.getConfigEntryType(r),o;s?o=e.create(s):o=e.create(),He(r)&&(o instanceof a?o.config=r:He(o)&&He(r)?go(r,o):e.insert(r))})},a.prototype.processList=function(t,e,i){var r=this;Je(t)||(t=[t]);var n=e.length,s=0;for(K(t,function(o,l){if(He(o)){var u=void 0;if(l<n&&!o.forceCreate)u=e.getIndex(l);else if(o instanceof a){e.push(o);return}else s++,u=r.createEntryInstance(o),i?u.parent=i:e.push(u);u instanceof a?u.config=o:He(u)&&He(o)&&go(o,u)}else e.hasIndex(l)?e.setIndex(l,o):e.push(o)});!i&&t.length+s<e.length;)e.pop()},a.prototype.configOrder=function(t,e){return t==e?0:t=="language"?-1:e=="language"?1:0},a.prototype.asIs=function(t){return Di(["locale"],t)!=-1},a.prototype.asFunction=function(t){return!1},a.prototype.createClassInstance=function(t){if(C(S.registeredClasses[t]))return new S.registeredClasses[t];throw Error('Invalid type: "'+t+'".')},a.prototype.createEntryInstance=function(t){var e;return C(t.type)&&(e=this.createClassInstance(t.type)),e||t},a.prototype.getConfigEntryType=function(t){if(C(t.type)){if(C(S.registeredClasses[t.type]))return S.registeredClasses[t.type];throw Error('Invalid type: "'+t.type+'".')}},a.prototype.hasProperty=function(t){return t in this},a.prototype.isReserved=function(t){return["type","forceCreate"].indexOf(t)!==-1},Object.defineProperty(a.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),a})();var ci=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="BaseObjectEvents",e}return Object.defineProperty(t.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new fr,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),t.prototype.dispatch=function(e,i){this._eventDispatcher&&this.events.isEnabled(e)&&(i?(i.type=e,i.target=i.target||this,this.events.dispatch(e,{type:e,target:this})):this.events.dispatch(e,{type:e,target:this}))},t.prototype.dispatchImmediately=function(e,i){this._eventDispatcher&&this.events.isEnabled(e)&&(i?(i.type=e,i.target=i.target||this,this.events.dispatchImmediately(e,i)):this.events.dispatchImmediately(e,{type:e,target:this}))},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},t})(Tt);var Oc={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(a){var t="th";if(a<11||a>13)switch(a%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};var Ui=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.adapter=new Bt(e),e._locale=Oc,e._defaultLocale=Oc,e.className="Language",C(Ce.defaultLocale)&&(e.locale=Ce.defaultLocale),e.applyTheme(),e}return t.prototype.getLocale=function(e){return e==null&&(e=this._locale),this.adapter.apply("locale",{locale:e}).locale},t.prototype.translate=function(e,i){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];i=this.getLocale(i);var s=e,o=this.getTranslations(i),l=o[e];if(l===null)s="";else if(C(l))l&&(s=l);else if(i!==this._defaultLocale)return this.translate.apply(this,Ua([e,this._defaultLocale],r));if(r.length)for(var u=r.length,h=0;h<u;++h)s=s.split("%"+(h+1)).join(r[h]);return this.adapter.apply("translate",{translation:s,locale:i}).translation},t.prototype.translateAny=function(e,i){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.translate.apply(this,Ua([e,i],r))},t.prototype.setTranslationAny=function(e,i,r){var n=r||this.locale;n[e]=i},t.prototype.translateEmpty=function(e,i){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var s=this.translate.apply(this,Ua([e,i],r));return s==e?"":s},t.prototype.translateFunc=function(e,i){i=this.getLocale(i);var r=this.getTranslations(i),n=r[e];return n??(i!==this._defaultLocale?this.translateFunc(e,this._defaultLocale):function(){return""})},t.prototype.translateAll=function(e,i){var r=this;return this.isDefault()?e:Ga(e,function(n){return r.translate(n,i)})},t.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(t.prototype,"locale",{get:function(){return this._locale},set:function(e){if(this._locale!=e&&(this._locale=e,this.events.isEnabled("localechanged"))){var i={type:"localechanged",locale:e,target:this};this.events.dispatchImmediately("localechanged",i)}},enumerable:!0,configurable:!0}),t.prototype.getTranslations=function(e){return this.adapter.apply("translations",{translations:e,locale:e}).translations},t})(ci);var Fc=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.adapter=new Bt(e),e.className="TextFormatter",e.applyTheme(),e}return t.prototype.debug=function(){},t.prototype.format=function(e,i){C(i)||(i="svg");var r="";e=this.escape(e);var n=e.match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(e,"",i);for(var s=e.split(/\[[^\[\]]*\]/),o=0,l=s.length;o<l;o++){var u=s[o];if(u!==""){u=this.adapter.apply("chunk",u);var h="";o>0&&(h=n[o-1].replace("[","").replace("]","")),r+=this.wrap(u,h,i)}}return r=this.unescape(r),this.cleanUp(r)},t.prototype.escape=function(e){return e.replace(/\[\[/g,S.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+S.getPlaceholder("2")).replace(/\]\]/g,S.getPlaceholder("2")).replace(/\{\{/g,S.getPlaceholder("3")).replace(/\}\}/g,S.getPlaceholder("4")).replace(/\'\'/g,S.getPlaceholder("5"))},t.prototype.unescape=function(e){return e.replace(new RegExp(S.getPlaceholder("1"),"g"),"[[").replace(new RegExp(S.getPlaceholder("2"),"g"),"]]").replace(new RegExp(S.getPlaceholder("3"),"g"),"{{").replace(new RegExp(S.getPlaceholder("4"),"g"),"}}").replace(new RegExp(S.getPlaceholder("5"),"g"),"''")},t.prototype.cleanUp=function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},t.prototype.wrap=function(e,i,r){return(i===""||i==="/")&&(i=""),r==="html"?this.wrapHtml(e,this.translateStyleShortcuts(i)):this.wrapSvg(e,this.translateStyleShortcuts(i))},t.prototype.wrapSvg=function(e,i){return i===""?"<tspan>"+e+"</tspan>":"<tspan style='"+i+"'>"+e+"</tspan>"},t.prototype.getSvgElement=function(e,i){var r=new Pn("tspan");return r.textContent=e,i&&r.node.setAttribute("style",i),r},t.prototype.wrapHtml=function(e,i){return i===""?"<span>"+e+"</span>":"<span style='"+this.styleSvgToHtml(i)+"'>"+e+"</span>"},t.prototype.getHtmlElement=function(e,i){var r=document.createElement("span");return r.innerHTML=e,i&&r.setAttribute("style",i),r},t.prototype.styleSvgToHtml=function(e){return e=e.replace(/fill:/,"color:"),e},t.prototype.translateStyleShortcuts=function(e){if(e==""||e=="[ ]")return"";var i=S.getCache("translateStyleShortcuts_"+e);if(i)return i;var r=e.match(/('[^']*')|("[^"]*")/gi);if(r)for(var n=0;n<r.length;n++)e=e.replace(r[n],r[n].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var s=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!s)return e;for(var n=0;n<s.length;n++)s[n].match(/^bold$/i)?s[n]="font-weight:"+s[n]:s[n]=="/"?s[n]="":s[n].match(/:/)?s[n]=s[n].replace(/\+/g," "):s[n]="fill:"+s[n];var o=s.join(";");return S.setCache("translateStyleShortcuts_"+e,o),o},t.prototype.chunk=function(e,i,r){i===void 0&&(i=!1),r===void 0&&(r=!1);var n=[];e=this.escape(e);for(var s=i?e.split("'"):[e],o=0;o<s.length;o++){var l=s[o];if(l!=="")if(o%2===0){l=l.replace(/\]\[/g,"]"+vi+"["),l=l.replace(/\[\]/g,"[ ]");for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var p=this.cleanUp(this.unescape(u[h]));p!==vi&&p!==""&&(h%2===0?n.push({type:"value",text:this.adapter.apply("chunk",p)}):n.push({type:r?"value":"format",text:"["+p+"]"}))}}else for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var p=this.cleanUp(this.unescape(u[h]));p!==""&&(h%2===0?n.push({type:"text",text:p}):this.isImage(p)?n.push({type:"image",text:"["+p+"]"}):n.push({type:"format",text:"["+p+"]"}))}}return n},t.prototype.isImage=function(e){return!!e.match(/img[ ]?:/)},t})(Tt);var Dc;function ar(){return Dc==null&&(Dc=new Fc),Dc}S.registeredClasses.TextFormatter=Fc;var Eo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e._forceLTR=!1,e.className="NumberFormatter",e.applyTheme(),e}return t.prototype.dispose=function(){a.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(t.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new Ui),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),t.prototype.format=function(e,i,r){(typeof i>"u"||ye(i)&&i.toLowerCase()==="number")&&(i=this._numberFormat);var n,s=Number(e);if(He(i))try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,i).format(s):new Intl.NumberFormat(void 0,i).format(s)}catch{return"Invalid"}else{i=Cn(i);var o=this.parseFormat(i,this.language),l=void 0;s>this._negativeBase?l=o.positive:s<this._negativeBase?l=o.negative:l=o.zero,C(r)&&!l.mod&&(l=Xy(l),l.decimals.active=s==0?0:r),n=l.template.split(vi).join(this.applyFormat(s,l))}return this.forceLTR&&(n="\u200E"+n),n},t.prototype.parseFormat=function(e,i){var r=this,n=this.getCache(e);if(C(n))return n;var s={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:i.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:i.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:i.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}};e=e.replace("||",Za);var o=e.split("|");return s.positive.source=o[0],typeof o[2]>"u"?s.zero=s.positive:s.zero.source=o[2],typeof o[1]>"u"?s.negative=s.positive:s.negative.source=o[1],se(s,function(l,u){if(!u.parsed){if(typeof r.getCache(u.source)<"u"){s[l]=r.getCache(u.source);return}var h=u.source;h.toLowerCase()==="number"&&(h=ye(r._numberFormat)?r._numberFormat:"#,###.#####");for(var p=ar().chunk(h,!0),d=0;d<p.length;d++){var c=p[d];if(c.text=c.text.replace(Za,"|"),c.type==="value"){var f=c.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(f)if(f===null||f[0]==="")u.template+=c.text;else{var m=f[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);m&&(u.mod=m[0].toLowerCase(),u.modSpacing=!!f[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));var y=f[0].split(".");if(y[0]!==""){u.thousands.active=(y[0].match(/0/g)||[]).length,u.thousands.passive=(y[0].match(/\#/g)||[]).length+u.thousands.active;var g=y[0].split(",");g.length===1||(u.thousands.interval=Ze(g.pop()).length,u.thousands.interval===0&&(u.thousands.interval=-1))}typeof y[1]>"u"||(u.decimals.active=(y[1].match(/0/g)||[]).length,u.decimals.passive=(y[1].match(/\#/g)||[]).length+u.decimals.active),u.template+=c.text.split(f[0]).join(vi)}}else u.template+=c.text}r.setCache(u.source,u),u.parsed=!0}}),this.setCache(e,s),s},t.prototype.applyFormat=function(e,i){var r=e<0;e=Math.abs(e);var n="",s="",o=i.mod?i.mod.split(""):[];if(o.indexOf("b")!==-1){var l=this.applyPrefix(e,this.bytePrefixes,o.indexOf("!")!==-1);e=l[0],n=l[1],s=l[2],i.modSpacing&&(s=" "+s)}else if(o.indexOf("a")!==-1){var u=this.applyPrefix(e,e<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,o.indexOf("!")!==-1);e=u[0],n=u[1],s=u[2],i.modSpacing&&(s=" "+s)}else if(o.indexOf("p")!==-1){var h=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(h)),n=this.language.translate("_percentPrefix")||"",s=this.language.translate("_percentSuffix")||"",n==""&&s==""&&(s="%")}else if(o.indexOf("%")!==-1){var h=Se(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(h)),s="%"}else if(o.indexOf("\u2030")!==-1){var h=Se(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(h)),s="\u2030"}if(o.indexOf("e")!==-1){var p=void 0;i.decimals.passive>=0?p=e.toExponential(i.decimals.passive).split("e"):p=e.toExponential().split("e"),e=Number(p[0]),s="e"+p[1],i.modSpacing&&(s=" "+s)}else if(i.decimals.passive===0)e=Math.round(e);else if(i.decimals.passive>0){var d=Math.pow(10,i.decimals.passive);e=Math.round(e*d)/d}var c="",f=pc(e).split("."),m=f[0];if(m.length<i.thousands.active&&(m=Array(i.thousands.active-m.length+1).join("0")+m),i.thousands.interval>0){for(var y=[],g=m.split("").reverse().join(""),v=0,b=m.length;v<=b;v+=i.thousands.interval){var P=g.substr(v,i.thousands.interval).split("").reverse().join("");P!==""&&y.unshift(P)}m=y.join(i.thousands.separator)}c+=m,f.length===1&&f.push("");var w=f[1];return w.length<i.decimals.active&&(w+=Array(i.decimals.active-w.length+1).join("0")),w!==""&&(c+=i.decimals.separator+w),c===""&&(c="0"),e!==0&&r&&o.indexOf("s")===-1&&(c="-"+c),n&&(c=n+c),s&&(c+=s),c},t.prototype.applyPrefix=function(e,i,r){r===void 0&&(r=!1);for(var n=e,s="",o="",l=!1,u=1,h=0,p=i.length;h<p;h++)i[h].number<=e&&(i[h].number===0?n=0:(n=e/i[h].number,u=i[h].number),s=i[h].prefix,o=i[h].suffix,l=!0);return!l&&r&&i.length&&e!=0&&(n=e/i[0].number,s=i[0].prefix,o=i[0].suffix,l=!0),l&&(n=parseFloat(n.toPrecision(Se(u.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length,21)))),[n,s,o]},t.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(t.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(e){this._negativeBase=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bigNumberPrefixes",{get:function(){return C(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(e){this._bigNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"smallNumberPrefixes",{get:function(){return C(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(e){this._smallNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(e){this._smallNumberThreshold=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bytePrefixes",{get:function(){return C(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(e){this._bytePrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forceLTR",{get:function(){return this._forceLTR},set:function(e){this._forceLTR=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),t.prototype.escape=function(e){return e.replace("||",Za)},t.prototype.unescape=function(e){return e.replace(Za,"|")},t})(Tt);S.registeredClasses.NumberFormatter=Eo;var zw={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function Ic(a){switch(a){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function Wt(a,t){return C(t)||(t=1),zw[a]*t}function Hw(){return new Date}function pa(){return Hw().getTime()}function Cs(a){return new Date(a.getTime())}function Oh(a,t,e,i){a=new Date(a.getTime()),t=new Date(t.getTime());var r=0,n=0;!i&&e!="millisecond"&&(r=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-r),n=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-n));var s=!1;switch(e){case"year":a.getUTCFullYear()!=t.getUTCFullYear()&&(s=!0);break;case"month":(a.getUTCFullYear()!=t.getUTCFullYear()||a.getUTCMonth()!=t.getUTCMonth())&&(s=!0);break;case"day":(a.getUTCMonth()!=t.getUTCMonth()||a.getUTCDate()!=t.getUTCDate())&&(s=!0);break;case"hour":a.getUTCHours()!=t.getUTCHours()&&(s=!0);break;case"minute":a.getUTCMinutes()!=t.getUTCMinutes()&&(s=!0);break;case"second":a.getUTCSeconds()!=t.getUTCSeconds()&&(s=!0);break;case"millisecond":a.getTime()!=t.getTime()&&(s=!0);break}if(s)return!0;var o=Ic(e);return o?(a.setUTCMinutes(a.getUTCMinutes()+r),t.setUTCMinutes(t.getUTCMinutes()+n),Oh(a,t,o,i)):!1}function $i(a,t,e,i){var r=0;switch(!i&&t!="millisecond"&&(r=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-r)),t){case"day":var n=a.getUTCDate();a.setUTCDate(n+e);break;case"second":var s=a.getUTCSeconds();a.setUTCSeconds(s+e);break;case"millisecond":var o=a.getUTCMilliseconds();a.setUTCMilliseconds(o+e);break;case"hour":var l=a.getUTCHours();a.setUTCHours(l+e);break;case"minute":var u=a.getUTCMinutes();a.setUTCMinutes(u+e);break;case"year":var h=a.getUTCFullYear();a.setUTCFullYear(h+e);break;case"month":var p=a.getUTCMonth();a.setUTCMonth(p+e);break;case"week":var d=a.getUTCDate();a.setUTCDate(d+e*7);break}if(!i&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+r),t=="day"||t=="week"||t=="month"||t=="year")){var c=a.getTimezoneOffset();if(c!=r){var f=c-r;a.setUTCMinutes(a.getUTCMinutes()+f),a.getTimezoneOffset()!=c&&a.setUTCMinutes(a.getUTCMinutes()-f)}}return a}function ri(a,t,e,i,r,n,s,o){s===void 0&&(s=0),x(e)||(e=1);var l=0;switch(o&&["day","month","week","year"].indexOf(t)!=-1&&(a=ko(a,o)),!r&&t!="millisecond"&&(l=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-l)),t){case"day":var u=a.getUTCDate();if(e>1){if(n){n=ri(n,"day",1);var h=a.getTime()-n.getTime(),p=Math.floor(h/Wt("day")/e),d=Wt("day",p*e);a.setTime(n.getTime()+d-l*Wt("minute"))}}else a.setUTCDate(u);a.setUTCHours(0,0,0,0);break;case"second":var c=a.getUTCSeconds();e>1&&(c=Math.floor(c/e)*e),a.setUTCSeconds(c,0);break;case"millisecond":if(e==1)return a;var f=a.getUTCMilliseconds();f=Math.floor(f/e)*e,a.setUTCMilliseconds(f);break;case"hour":var m=a.getUTCHours();e>1&&(m=Math.floor(m/e)*e),a.setUTCHours(m,s,0,0);break;case"minute":var y=a.getUTCMinutes();f=a.getUTCMilliseconds(),e>1&&(y=Math.floor(y/e)*e),a.setUTCMinutes(y,0,0);break;case"month":var g=a.getUTCMonth();e>1&&(g=Math.floor(g/e)*e),a.setUTCMonth(g,1),a.setUTCHours(0,s,0,0);break;case"year":var v=a.getUTCFullYear();e>1&&(v=Math.floor(v/e)*e),a.setUTCFullYear(v,0,1),a.setUTCHours(0,s,0,0);break;case"week":var b=a.getUTCDate(),P=a.getUTCDay();x(i)||(i=1),P>=i?b=b-P+i:b=b-(7+P)+i,a.setUTCDate(b),a.setUTCHours(0,s,0,0);break}if(!r&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+l),t=="day"||t=="week"||t=="month"||t=="year")){var w=a.getTimezoneOffset();if(w!=l){var T=w-l;a.setUTCMinutes(a.getUTCMinutes()+T)}}return a}function ko(a,t){var e=new Date(a.toLocaleString("en-US",{timeZone:t}));return e}function pg(a){var t=new Date;t.setHours(0,0,0,0);var e=ko(t,a);return e.getMinutes()}var Ia=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e.timezoneMinutes=0,e._firstDayOfWeek=1,e.months=["January","February","March","April","May","June","July","August","September","October","November","December"],e.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return Object.defineProperty(t.prototype,"language",{get:function(){return this._language},set:function(e){this._language=e,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),t.prototype.format=function(e,i,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ui),(typeof i>"u"||i==="")&&(i=this._dateFormat);var n,s;if(ye(e)?s=this.parse(e):s=Ul(e),He(i))try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,i).format(s):new Intl.DateTimeFormat(void 0,i).format(s)}catch{return"Invalid"}else{i=Cn(i);var o=this.parseFormat(i);if(C(this.timezoneOffset)?s.setMinutes(s.getMinutes()+s.getTimezoneOffset()-this.timezoneOffset):C(this.timezone)&&r!==!1&&(s=ko(s,this.timezone)),!x(s.getTime()))return this.language.translate("Invalid date");n=this.applyFormat(s,o,this.language),this.capitalize&&(n=n.replace(/^.{1}/,n.substr(0,1).toUpperCase()))}return n},t.prototype.parseFormat=function(e){var i=this.getCache(e);if(C(i))return i;for(var r={template:"",parts:[]},n=ar().chunk(e,!0),s=0;s<n.length;s++){var o=n[s];if(o.type==="value"){o.text.match(/^date$/i)&&ye(this._dateFormat)&&(o.text=this._dateFormat);var l=o.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(l)for(var u=0;u<l.length;u++)r.parts.push(l[u]),o.text=o.text.replace(l[u],vi)}r.template+=o.text}return this.setCache(e,r),r},t.prototype.applyFormat=function(e,i,r){var n=i.template,s,o,l,u,h,p,d,c,f=e.getTimezoneOffset(),m=e.getTime();this.utc?(s=e.getUTCFullYear(),o=e.getUTCMonth(),l=e.getUTCDay(),u=e.getUTCDate(),h=e.getUTCHours(),p=e.getUTCMinutes(),d=e.getUTCSeconds(),c=e.getUTCMilliseconds()):(s=e.getFullYear(),o=e.getMonth(),l=e.getDay(),u=e.getDate(),h=e.getHours(),p=e.getMinutes(),d=e.getSeconds(),c=e.getMilliseconds());for(var y=0,g=i.parts.length;y<g;y++){var v="";switch(i.parts[y]){case"G":v=r.translate(s<0?"_era_bc":"_era_ad");break;case"yyyy":v=Math.abs(s).toString(),s<0&&(v+=r.translate("_era_bc"));break;case"yyy":case"yy":case"y":v=Math.abs(s).toString().substr(-i.parts[y].length),s<0&&(v+=r.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var b=fc(e);i.parts[y]=="YYYY"?v=Math.abs(b).toString():v=Math.abs(b).toString().substr(-i.parts[y].length),b<0&&(v+=r.translate("_era_bc"));break;case"u":break;case"q":v=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":v=r.translate(this.months[o]).substr(0,1);break;case"MMMM":v=r.translate(this.months[o]);break;case"MMM":v=r.translate(this.monthsShort[o]);break;case"MM":v=di(o+1,2,"0");break;case"M":v=(o+1).toString();break;case"ww":v=di(xo(e,this.utc),2,"0");break;case"w":v=xo(e,this.utc).toString();break;case"W":v=dc(e,this.utc).toString();break;case"dd":v=di(u,2,"0");break;case"d":v=u.toString();break;case"DD":case"DDD":v=di(Ch(e,this.utc).toString(),i.parts[y].length,"0");break;case"D":v=Ch(e,this.utc).toString();break;case"F":break;case"g":break;case"t":v=r.translateFunc("_dateOrd").call(this,u);break;case"E":v=(l||7).toString();break;case"EE":v=di((l||7).toString(),2,"0");break;case"EEE":case"eee":v=r.translate(this.weekdaysShort[l]);break;case"EEEE":case"eeee":v=r.translate(this.weekdays[l]);break;case"EEEEE":case"eeeee":v=r.translate(this.weekdays[l]).substr(0,1);break;case"e":case"ee":v=(l-this.firstDayOfWeek+1).toString(),i.parts[y]=="ee"&&(v=di(v,2,"0"));break;case"a":h>=12?v=r.translate("PM"):v=r.translate("AM");break;case"aa":h>=12?v=r.translate("P.M."):v=r.translate("A.M.");break;case"aaa":h>=12?v=r.translate("P"):v=r.translate("A");break;case"h":v=_o(h).toString();break;case"hh":v=di(_o(h),2,"0");break;case"H":v=h.toString();break;case"HH":v=di(h,2,"0");break;case"K":v=_o(h,0).toString();break;case"KK":v=di(_o(h,0),2,"0");break;case"k":v=(h+1).toString();break;case"kk":v=di(h+1,2,"0");break;case"m":v=p.toString();break;case"mm":v=di(p,2,"0");break;case"s":v=d.toString();break;case"ss":v=di(d,2,"0");break;case"S":case"SS":case"SSS":v=Math.round(c/1e3*Math.pow(10,i.parts[y].length)).toString();break;case"x":v=m.toString();break;case"n":case"nn":case"nnn":v=di(c,i.parts[y].length,"0");break;case"z":v=To(e,!1,!1,this.utc);break;case"zz":v=To(e,!0,!1,this.utc);break;case"zzz":v=To(e,!1,!0,this.utc);break;case"zzzz":v=To(e,!0,!0,this.utc);break;case"Z":case"ZZ":var P=Math.abs(f)/60,w=Math.floor(P),T=P*60-w*60;this.utc&&(w=0,T=0),i.parts[y]=="Z"?(v="GMT",v+=f>0?"-":"+",v+=di(w,2)+":"+di(T,2)):(v=f>0?"-":"+",v+=di(w,2)+di(T,2));break;case"i":v=e.toISOString();break;case"I":v=e.toUTCString();break}n=n.replace(vi,v)}return n},t.prototype.parse=function(e,i){if(C(i)||(i=this.inputDateFormat),e instanceof Date)return e;if(typeof e=="number")return new Date(e);typeof e!="string"&&(e=e.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ui);var r,n="";i=Cn(i),i=i.substr(0,e.length);for(var s=this.parseFormat(i),o={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},u=0,h=0,p=0;p<s.parts.length;p++){switch(h=p+u+1,s.parts[p]){case"yyyy":case"YYYY":n+="([0-9]{4})",o.year=h;break;case"yyy":case"YYY":n+="([0-9]{3})",o.year3=h;break;case"yy":case"YY":n+="([0-9]{2})",o.year2=h;break;case"y":case"Y":n+="([0-9]{1})",o.year1=h;break;case"MMMM":n+="("+this.getStringList(this.months).join("|")+")",o.monthLong=h;break;case"MMM":n+="("+this.getStringList(this.monthsShort).join("|")+")",o.monthShort=h;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",o.month=h;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",o.week=h;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",o.day=h;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=h;break;case"dddd":n+="("+this.getStringList(this.weekdays).join("|")+")",o.weekdayLong=h;break;case"ddd":n+="("+this.getStringList(this.weekdaysShort).join("|")+")",o.weekdayShort=h;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=h;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",o.hour12Base1=h;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",o.hourBase0=h;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",o.hour12Base0=h;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",o.hourBase1=h;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",o.minute=h;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",o.second=h;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h,o.millisecondDigits=s.parts[p].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h;break;case"x":n+="([0-9]{1,})",o.timestamp=h;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=h;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=h;break;case"i":n+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2}).?([0-9]{0,3})([zZ]|[+-][0-9]{2}:?[0-9]{2}|$)",o.iso=h,u+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":u--;break}n+="[^0-9]*"}var d=new RegExp(n),c=e.match(d);if(c){if(o.year>-1&&(l.year=parseInt(c[o.year])),o.year3>-1){var f=parseInt(c[o.year3]);f+=1e3,l.year=f}if(o.year2>-1){var f=parseInt(c[o.year2]);f>50?f+=1e3:f+=2e3,l.year=f}if(o.year1>-1){var f=parseInt(c[o.year1]);f=Math.floor(new Date().getFullYear()/10)*10+f,l.year=f}if(o.monthLong>-1&&(l.month=this.resolveMonth(c[o.monthLong])),o.monthShort>-1&&(l.month=this.resolveShortMonth(c[o.monthShort])),o.month>-1&&(l.month=parseInt(c[o.month])-1),o.week>-1&&o.day===-1&&(l.month=0,l.day=cc(parseInt(c[o.week]),l.year,1,this.utc)),o.day>-1&&(l.day=parseInt(c[o.day])),o.yearDay>-1&&(l.month=0,l.day=parseInt(c[o.yearDay])),o.hourBase0>-1&&(l.hour=parseInt(c[o.hourBase0])),o.hourBase1>-1&&(l.hour=parseInt(c[o.hourBase1])-1),o.hour12Base0>-1){var f=parseInt(c[o.hour12Base0]);f==11&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f}if(o.hour12Base1>-1){var f=parseInt(c[o.hour12Base1]);f==12&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f}if(o.minute>-1&&(l.minute=parseInt(c[o.minute])),o.second>-1&&(l.second=parseInt(c[o.second])),o.millisecond>-1){var f=parseInt(c[o.millisecond]);o.millisecondDigits==2?f*=10:o.millisecondDigits==1&&(f*=100),l.millisecond=f}if(o.timestamp>-1){l.timestamp=parseInt(c[o.timestamp]);var m=new Date(l.timestamp);l.year=m.getUTCFullYear(),l.month=m.getUTCMonth(),l.day=m.getUTCDate(),l.hour=m.getUTCHours(),l.minute=m.getUTCMinutes(),l.second=m.getUTCSeconds(),l.millisecond=m.getUTCMilliseconds()}o.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.zone])),o.iso>-1&&(l.year=qe(c[o.iso+0]),l.month=qe(c[o.iso+1])-1,l.day=qe(c[o.iso+2]),l.hour=qe(c[o.iso+3]),l.minute=qe(c[o.iso+4]),l.second=qe(c[o.iso+5]),l.millisecond=qe(c[o.iso+6]),c[o.iso+7]=="Z"||c[o.iso+7]=="z"?l.utc=!0:c[o.iso+7]!=""&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.iso+7]))),l.utc?r=new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):r=new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else r=new Date(e);return r},t.prototype.resolveTimezoneOffset=function(e,i){var r=i.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(r){var n=Ze(i.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),s=n[1],o=n[2],l=n[3],u=parseInt(o)*60+parseInt(l);s=="+"&&(u*=-1);var h=(e||new Date).getTimezoneOffset(),p=u-h;return p}return 0},t.prototype.resolveMonth=function(e){var i=this.months.indexOf(e);return i>-1||this.language&&!this.language.isDefault()&&(i=this.language.translateAll(this.months).indexOf(e),i>-1)?i:0},t.prototype.resolveShortMonth=function(e){var i=this.monthsShort.indexOf(e);return i>-1||(i=this.months.indexOf(e),i>-1)||this.language&&!this.language.isDefault()&&(i=this.language.translateAll(this.monthsShort).indexOf(e),i>-1)?i:0},t.prototype.isAm=function(e){var i=this.getStringList(["AM","A.M.","A"]);return i.indexOf(e.toUpperCase())>-1},t.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},t.prototype.getStringList=function(e){for(var i=[],r=0;r<e.length;r++)this.language?i.push(So(this.language.translate(e[r]))):i.push(So(e[r]));return i},Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(e){this._dateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(e){this._inputDateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"utc",{get:function(){return this._utc},set:function(e){this._utc=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(e){this._timezoneOffset!=e&&(this._timezoneOffset=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone!=e&&(this._timezone=e,this.timezoneMinutes=pg(e),this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){this._firstDayOfWeek=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),t})(Tt);S.registeredClasses.DateFormatter=Ia;function Lc(a){return+a}S.registeredClasses["ease.linear"]=Lc;function Uw(a){return a*a}S.registeredClasses["ease.quadIn"]=Uw;function Gw(a){return a*(2-a)}S.registeredClasses["ease.quadOut"]=Gw;function Yw(a){return a*=2,(a<=1?a*a:--a*(2-a)+1)/2}S.registeredClasses["ease.quadInOut"]=Yw;function dg(a,t){return Math.pow(a,t)}S.registeredClasses["ease.polyIn"]=dg;function cg(a,t){return 1-Math.pow(1-a,t)}S.registeredClasses["ease.polyOut"]=cg;function fg(a,t){return a*=2,(a<=1?Math.pow(a,t):2-Math.pow(2-a,t))/2}S.registeredClasses["ease.polyInOut"]=fg;function Xw(a){return dg(a,3)}S.registeredClasses["ease.polyIn3"]=Xw;function Ah(a){return cg(a,3)}S.registeredClasses["ease.polyOut3"]=Ah;function Kw(a){return fg(a,3)}S.registeredClasses["ease.polyInOut3"]=Kw;function Zw(a){return Math.pow(2,10*a-10)}S.registeredClasses["ease.expIn"]=Zw;function Qw(a){return 1-Math.pow(2,-10*a)}S.registeredClasses["ease.expOut"]=Qw;function Jw(a){return a*=2,(a<=1?Math.pow(2,10*a-10):2-Math.pow(2,10-10*a))/2}S.registeredClasses["ease.expInOut"]=Jw;function eP(a){return 1-Math.cos(a*Bd)}S.registeredClasses["ease.sinIn"]=eP;function Ec(a){return Math.sin(a*Bd)}S.registeredClasses["ease.sinOut"]=Ec;function tP(a){return(1-Math.cos(kl*a))/2}S.registeredClasses["ease.sinInOut"]=tP;function kc(a){return a*a*a}S.registeredClasses["ease.cubicIn"]=kc;function Xr(a){return--a*a*a+1}S.registeredClasses["ease.cubicOut"]=Xr;function iP(a){return a*=2,(a<=1?a*a*a:(a-=2)*a*a+2)/2}S.registeredClasses["ease.cubicInOut"]=iP;function rP(a){return 1-Math.sqrt(1-a*a)}S.registeredClasses["ease.circleIn"]=rP;function aP(a){return Math.sqrt(1- --a*a)}S.registeredClasses["ease.circleOut"]=aP;function nP(a){return a*=2,(a<=1?1-Math.sqrt(1-a*a):Math.sqrt(1-(a-=2)*a)+1)/2}S.registeredClasses["ease.circleInOut"]=nP;var Ac=4/11,sP=6/11,oP=8/11,lP=3/4,uP=9/11,hP=10/11,pP=15/16,dP=21/22,cP=63/64,Dh=1/Ac/Ac;function fP(a){return 1-Fh(1-a)}S.registeredClasses["ease.bounceIn"]=fP;function Fh(a){return a=+a,a<Ac?Dh*a*a:a<oP?Dh*(a-=sP)*a+lP:a<hP?Dh*(a-=uP)*a+pP:Dh*(a-=dP)*a+cP}S.registeredClasses["ease.bounceOut"]=Fh;function mP(a){return a*=2,(a<=1?1-Fh(1-a):Fh(a-1)+1)/2}S.registeredClasses["ease.bounceInOut"]=mP;var yP=2*Math.PI,au=1,nu=.3/yP,Ih=Math.asin(1/au)*nu;function gP(a){return au*Math.pow(2,10*--a)*Math.sin((Ih-a)/nu)}S.registeredClasses["ease.elasticIn"]=gP;function vP(a){return 1-au*Math.pow(2,-10*(a=+a))*Math.sin((a+Ih)/nu)}S.registeredClasses["ease.elasticOut"]=vP;function bP(a){return a=a*2-1,(a<0?au*Math.pow(2,10*a)*Math.sin((Ih-a)/nu):2-au*Math.pow(2,-10*a)*Math.sin((Ih+a)/nu))/2}S.registeredClasses["ease.elasticInOut"]=bP;var ws=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.transitionDuration=0,e.transitionEasing=Xr,e.properties={},e.propertyFields={},e.filters=new we,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new Ie(e.filters)),e.applyTheme(),e}return Object.defineProperty(t.prototype,"adapter",{get:function(){var e=this;return this._adapterO||(this._adapterO=new Bt(this),this._adapterO.events.on("inserted",function(i){e[i.newValue.key]=e[i.newValue.key]},void 0,!1),this._adapterO.events.on("removed",function(i){e[i.newValue.key]=e[i.newValue.key]},void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),t.prototype.getPropertyValue=function(e){var i=this.properties[e],r=this.sprite;if(r){var n=this.propertyFields[e];if(C(n)&&(r.dataItem&&(i=r.dataItem.dataContext[n]),i==null&&(i="__unset")),C(i))this._adapterO&&(i=this._adapterO.apply(e,i));else{var s=r.getPropertyValue(e);this._adapterO?i=this._adapterO.apply(e,s):i=s,i==s&&(i=void 0)}}return i},t.prototype.copyFrom=function(e){e&&e!=this&&(this.transitionDuration=e.transitionDuration,this.transitionEasing=e.transitionEasing,Hi(e.properties,this.properties),Hi(e.propertyFields,this.propertyFields),this.filters.copyFrom(e.filters),e._adapterO&&this.adapter.copyFrom(e._adapterO))},Object.defineProperty(t.prototype,"allValues",{get:function(){var e=this,i={};if(se(this.properties,function(s,o){i[s]=e.getPropertyValue(s)}),this._adapterO){var r=this._adapterO.keys();se(r,function(s,o){var l=e.getPropertyValue(o);i[o]=l})}var n=this.propertyFields;return se(n,function(s){var o=e.getPropertyValue(s);i[s]=o}),i},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.properties={},this.filters.clear()},t.prototype.processConfig=function(e){C(e)&&C(e.properties)&&se(e.properties,function(i,r){ye(r)&&(r.match(/^[0-9.\-]+\%$/)?e.properties[i]=W(qe(r)):r.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[i]=ji(r)))}),a.prototype.processConfig.call(this,e)},t.prototype.asFunction=function(e){return e=="transitionEasing"||a.prototype.asIs.call(this,e)},t})(Tt);S.registeredClasses.SpriteState=ws;var Vc=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._interactionEvents=new Ve,e}return t.prototype._dispatchSpriteEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var i=Bl(e,{target:this.target});this.target.events.dispatchImmediately(i.type,i)}},t.prototype._dispatchSpritePointEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var i=Bl(e,{target:this.target,spritePoint:e.point?Da(e.point,this.target):void 0,svgPoint:this.target.getSvgPoint(e.point)});this.target.events.dispatchImmediately(i.type,i)}},t.prototype._addInteractionObjectEvent=function(e,i,r,n){var s=this,o=n+"-"+e,l=this._interactionEvents.insertKeyIfEmpty(o,function(){var u=s.target.interactions.events.on(e,i,r,n);return new Xa(function(){s._interactionEvents.removeKey(o),u.dispose()})});return l.increment()},t.prototype._on=function(e,i,r,n,s,o){var l=a.prototype._on.call(this,e,i,r,n,s,o),u=[l.disposer];switch(i){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":u.push(this._addInteractionObjectEvent(i,this._dispatchSpritePointEvent,this,s));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":u.push(this._addInteractionObjectEvent(i,this._dispatchSpriteEvent,this,s));break}switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0;break}return l.disposer=new Me(u),l},t})(jl);var Mc=(function(){function a(){}return a.opacity=1,a.strokeOpacity=1,a.strokeWidth=1,a.fillOpacity=1,a.fill=oe("#000000"),a.stroke=oe("#000000"),a.focusable=void 0,a.tabindex=0,a})();var Nc=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._domEvents={},e}return t.prototype._addDOMEvent=function(e,i,r,n){var s=this;if(!this._domEvents[e]){var o=function(l){r.call(n,i,l)};this.target.element.addEventListener(e,o,!1),this._domEvents[e]=new Xa(function(){delete s._domEvents[e],s.target.element.removeEventListener(e,o,!1)})}return this._domEvents[e].increment()},t.prototype._dispatchKeyboardEvent=function(e,i){this.target.events.isEnabled(e)&&this.target.events.dispatchImmediately(e,{type:e,target:this.target,event:i})},t.prototype._on=function(e,i,r,n,s,o){var l=a.prototype._on.call(this,e,i,r,n,s,o),u=[l.disposer];switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":u.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this));break;case"keyup":u.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this));break;case"keypress":u.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this));break;case"input":u.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this));break}return l.disposer=new Me(u),l},t})(jl);var Rc=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i._eventDispatcher=new Nc(i),i.eventDisposers=new Ve,i.replacedStyles=new Ve,i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i.isRealHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new Ve,i.inertias=new Ve,i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._mouseOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._disposers.push(i._eventDispatcher),i._element=e,i.className="InteractionObject",i._disposers.push(new mr(i.inertias)),i._disposers.push(new mr(i.eventDisposers)),i.applyTheme(),i}return Object.defineProperty(t.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHover",{get:function(){return this._isHover},set:function(e){this.isHover!=e&&(this._isHover=e,e?me().overObjects.moveValue(this):(this.isRealHover=!1,me().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(e){this.isHoverByTouch!=e&&(this._isHoverByTouch=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new we),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDown",{get:function(){return this._isDown},set:function(e){this.isDown!=e&&(this._isDown=e,e?me().downObjects.moveValue(this):me().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new we),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.isFocused!=e&&(this._isFocused=e,e?me().focusedObject=this:me().focusedObject=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(e){this._isTouchProtected!=e&&(this._isTouchProtected=e,e?me().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&me().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clickable",{get:function(){return this._clickable},set:function(e){this._clickable!==e&&(this._clickable=e,me().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(e){this._contextMenuDisabled!==e&&(this._contextMenuDisabled=e,me().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverable",{get:function(){return this._hoverable},set:function(e){this._hoverable!==e&&(this._hoverable=e,me().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trackable",{get:function(){return this._trackable},set:function(e){this._trackable!==e&&(this._trackable=e,me().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable!==e&&(this._draggable=e,me().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeable",{get:function(){return this._swipeable},set:function(e){this._swipeable!==e&&(this._swipeable=e,me().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizable",{get:function(){return this._resizable},set:function(e){this._resizable!==e&&(this._resizable=e,me().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wheelable",{get:function(){return this._wheelable},set:function(e){this._wheelable!==e&&(this._wheelable=e,me().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inert",{get:function(){return this._inert},set:function(e){this._inert!==e&&(this._inert=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusable",{get:function(){return this._focusable},set:function(e){this._focusable!==e&&(this._focusable=e,this._focusable&&this.tabindex==-1&&(this._tabindex=1),me().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabindex",{get:function(){return ah(this._tabindex,-1)},set:function(e){this._tabindex!==e&&(this._tabindex=e,e>-1&&(this.focusable=!0),me().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},set:function(e){this._element=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(e){this._originalPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalScale",{get:function(){return ah(this._originalScale,1)},set:function(e){this._originalScale!==e&&(this._originalScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalAngle",{get:function(){return ah(this._originalAngle,0)},set:function(e){this._originalAngle!==e&&(this._originalAngle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(e){this._inertiaOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(e){this._hitOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(e){this._hoverOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(e){this._swipeOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(e){this._keyboardOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(e){this._mouseOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(e){this._cursorOptions=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,me().applyCursorOverStyle(this)},t.prototype.setEventDisposer=function(e,i,r){var n=this.eventDisposers.getKey(e);i?n==null&&this.eventDisposers.setKey(e,r()):n!=null&&(n.dispose(),this.eventDisposers.removeKey(e))},t.prototype.dispose=function(){a.prototype.dispose.call(this);var e=me();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},t})(ci);var jc=(function(){function a(t,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=t,this.keyboardEvent=e,this._startedOn=new Date().getTime(),me().processDragStart(t),De.animations.push(this),this.update()}return a.prototype.update=function(){var t=this.interaction,e=me().getKeyboardOption(t,"speed"),i=me().getKeyboardOption(t,"accelleration"),r=me().getKeyboardOption(t,"accellerationDelay"),n={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,i=1):this.keyboardEvent.ctrlKey&&(e*=2);var s=new Date().getTime()-this._startedOn,o=s-r;if(i>0&&o>0){var l=s/r;s=r,n.x+=this.directionX*(e*i*l*o),n.y+=this.directionY*(e*i*l*o)}n.x+=this.directionX*(e*s),n.y+=this.directionY*(e*s),me().handleTransformMove(t,n,{x:0,y:0},this.keyboardEvent,!0,!1)},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(me().processDragStop(this.interaction),de(De.animations,this))},a})();var Bc=(function(a){_(t,a);function t(e,i,r,n){var s=a.call(this)||this;return s.animations=[],s.className="Inertia",s.interaction=e,s.type=i,s.point=r,s.startPoint=n,s._disposers.push(new Kr(s.animations)),s}return Object.defineProperty(t.prototype,"x",{get:function(){return this.point.x},set:function(e){x(e)&&(this.point.x=e,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.point.y},set:function(e){x(e)&&(this.point.y=e,this.handleMove())},enumerable:!0,configurable:!0}),t.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var e={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",e)}},t.prototype.done=function(){this.interaction.inertias.removeKey(this.type),this.type==="move"&&me().processDragStop(this.interaction),this.dispose()},t})(Tt);var mg=(function(){function a(){}return a.prototype.getEventKey=function(t){var e=t.keyCode||t.which,i;switch(e){case 38:i="up";break;case 40:i="down";break;case 37:i="left";break;case 39:i="right";break;case 13:i="enter";break;case 27:i="esc";break;case 36:i="home";break;case 35:i="end";break;case 9:i="tab";break;case 17:i="ctrl";break;case 18:i="alt";break;case 16:i="shift";break;case 32:i="space";break;case 36:i="home";break;case 35:i="end";break;case 33:i="pgup";break;case 34:i="pgdn";break;case 45:i="ins";break;case 46:i="del";break;case 107:i="plus";break;case 109:i="minus";break;default:i="other";break}return i},a.prototype.isKey=function(t,e){var i=this.getEventKey(t);return ye(e)&&(e=[e]),e.indexOf(i)!==-1},a.prototype.shiftKey=function(t){return t.shiftKey},a.prototype.ctrlKey=function(t){return t.ctrlKey},a.prototype.altKey=function(t){return t.altKey},a.prototype.metaKey=function(t){return t.metaKey},a})();var Gi=new mg;var yg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._globalEventsAdded=!1,e._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},e._usePointerEventsOnly=!1,e._useTouchEventsOnly=!1,e._addHoverEvents=!0,e._passiveSupported=!1,e._delayedEvents={out:[]},e.overObjects=new we,e.downObjects=new we,e.trackedObjects=new we,e.transformedObjects=new we,e.pointers=new Ve,e.inertiaOptions=new Ve,e.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},e.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},e.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},e.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},e.mouseOptions={sensitivity:1},e.className="Interaction",e.body=e.getInteraction(document.body),e._disposers.push(e.body),window.hasOwnProperty("PointerEvent")?(e._pointerEvents.pointerdown="pointerdown",e._pointerEvents.pointerup="pointerup",e._pointerEvents.pointermove="pointermove",e._pointerEvents.pointercancel="pointercancel",e._pointerEvents.pointerover="pointerover",e._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(e._pointerEvents.pointerdown="MSPointerDown",e._pointerEvents.pointerup="MSPointerUp",e._pointerEvents.pointermove="MSPointerMove",e._pointerEvents.pointercancel="MSPointerUp",e._pointerEvents.pointerover="MSPointerOver",e._pointerEvents.pointerout="MSPointerOut"):typeof matchMedia<"u"&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(e._addHoverEvents=!1,e._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||e.fullFF()?e._usePointerEventsOnly=!0:e._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?e._pointerEvents.wheel="wheel":C(document.onmousewheel)&&(e._pointerEvents.wheel="mousewheel"),e.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:Ah}),e.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:Ah}),e._passiveSupported=t.passiveSupported,e.applyTheme(),e}return t.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},t.prototype.debug=function(){},t.prototype.addGlobalEvents=function(){var e=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(_t(document,this._pointerEvents.pointerdown,function(i){e.handleGlobalPointerDown(i)})),this._disposers.push(_t(document,this._pointerEvents.pointermove,function(i){e.handleGlobalPointerMove(i)})),this._disposers.push(_t(document,this._pointerEvents.pointerup,function(i){e.handleGlobalPointerUp(i)})),this._disposers.push(_t(document,this._pointerEvents.pointercancel,function(i){e.handleGlobalPointerUp(i,!0)})),this._disposers.push(_t(document,"mouseenter",function(i){!C(i.relatedTarget)&&(i.buttons==0||i.which==0)&&e.handleDocumentLeave(i)}))),this._usePointerEventsOnly||(this._disposers.push(_t(document,"touchstart",function(i){e.handleGlobalTouchStart(i)})),this._disposers.push(_t(document,"touchmove",function(i){e.handleGlobalTouchMove(i)})),this._disposers.push(_t(document,"touchend",function(i){e.handleGlobalTouchEnd(i)}))),this._disposers.push(_t(document,"keydown",function(i){e.handleGlobalKeyDown(i)})),this._disposers.push(_t(document,"keyup",function(i){e.handleGlobalKeyUp(i)})),this._globalEventsAdded=!0)},t.prototype.processClickable=function(e){this.processTouchable(e)},t.prototype.processContextMenu=function(e){e.contextMenuDisabled?e.eventDisposers.hasKey("contextMenuDisabled")||e.eventDisposers.setKey("contextMenuDisabled",_t(e.element,"contextmenu",function(i){i.preventDefault()})):e.eventDisposers.hasKey("contextMenuDisabled")&&e.eventDisposers.getKey("contextMenuDisabled").dispose()},t.prototype.processHoverable=function(e){var i=this;if(e.hoverable||e.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(e),!e.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&e.eventDisposers.setKey("hoverable",new Me([_t(e.element,this._pointerEvents.pointerout,function(n){return i.handlePointerOut(e,n)}),_t(e.element,this._pointerEvents.pointerover,function(n){return i.handlePointerOver(e,n)})])),e.trackable;else{var r=e.eventDisposers.getKey("hoverable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("hoverable"))}this.processTouchable(e)},t.prototype.processMovable=function(e){(e.draggable||e.swipeable||e.trackable||e.resizable)&&(!this.isGlobalElement(e)&&!e.isTouchProtected&&this.prepElement(e),this.applyCursorOverStyle(e)),this.processTouchable(e)},t.prototype.processTrackable=function(e){this.processHoverable(e),this.processMovable(e),e.trackable?this.trackedObjects.moveValue(e):this.trackedObjects.removeValue(e)},t.prototype.processDraggable=function(e){this.processMovable(e)},t.prototype.processSwipeable=function(e){this.processMovable(e)},t.prototype.processResizable=function(e){this.processMovable(e)},t.prototype.processWheelable=function(e){var i=this;if(e.wheelable)e.eventDisposers.hasKey("wheelable")||e.eventDisposers.setKey("wheelable",new Me([_t(e.element,this._pointerEvents.wheel,function(n){return i.handleMouseWheel(e,n)},this._passiveSupported?{passive:!1}:!1),e.events.on("out",function(n){e.wheelable&&i.unlockWheel()}),e.events.on("over",function(n){e.wheelable&&i.lockWheel()})]));else{var r=e.eventDisposers.getKey("wheelable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("wheelable"))}},t.prototype.processFocusable=function(e){var i=this;if(e.focusable===!0&&e.tabindex>-1&&!this._useTouchEventsOnly)e.eventDisposers.hasKey("focusable")||e.eventDisposers.setKey("focusable",new Me([_t(e.element,"focus",function(n){return i.handleFocus(e,n)}),_t(e.element,"blur",function(n){return i.handleBlur(e,n)}),_t(e.element,this._pointerEvents.pointerdown,function(n){return i.handleFocusBlur(e,n)}),_t(e.element,"touchstart",function(n){return i.handleFocusBlur(e,n)},this._passiveSupported?{passive:!1}:!1)]));else{var r=e.eventDisposers.getKey("focusable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("focusable"))}},t.prototype.processTouchable=function(e){var i=this;if(e.clickable||e.hoverable||e.trackable||e.draggable||e.swipeable||e.resizable)this.addGlobalEvents(),e.eventDisposers.hasKey("touchable")||(!this._useTouchEventsOnly&&!this._usePointerEventsOnly?e.eventDisposers.setKey("touchable",new Me([_t(e.element,this._pointerEvents.pointerdown,function(n){return i.handlePointerDown(e,n)}),_t(e.element,"touchstart",function(n){return i.handleTouchDown(e,n)},this._passiveSupported?{passive:!1}:!1)])):this._useTouchEventsOnly?this._usePointerEventsOnly||e.eventDisposers.setKey("touchable",_t(e.element,"touchstart",function(n){return i.handleTouchDown(e,n)},this._passiveSupported?{passive:!1}:!1)):e.eventDisposers.setKey("touchable",_t(e.element,this._pointerEvents.pointerdown,function(n){return i.handlePointerDown(e,n)})));else{var r=e.eventDisposers.getKey("touchable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("touchable"))}},t.prototype.handleFocus=function(e,i){if(!e.focusable){i.preventDefault();return}if(e.isFocused=!0,e.events.isEnabled("focus")&&!De.isPaused){var r={type:"focus",target:e,event:i};e.events.dispatchImmediately("focus",r)}},t.prototype.handleFocusBlur=function(e,i){e.focusable!==!1&&this.getHitOption(e,"noFocus")&&e.events.once("focus",function(){e.events.disableType("blur"),Ss(),e.sprite&&e.sprite.handleBlur(),e.events.enableType("blur")})},t.prototype.handleBlur=function(e,i){if(!e.focusable){i.preventDefault();return}if(e.isFocused=!1,e.events.isEnabled("blur")&&!De.isPaused){var r={type:"blur",target:e,event:i};e.events.dispatchImmediately("blur",r)}},t.prototype.handleGlobalKeyDown=function(e){if(this.focusedObject){if(Gi.isKey(e,"esc"))Ss();else if(this.focusedObject.draggable&&Gi.isKey(e,["up","down","left","right"])){e.preventDefault();var i=this.focusedObject,r="interactionKeyboardObject";if(i.eventDisposers.hasKey(r))return;var n=new jc(i,e);switch(i.eventDisposers.setKey(r,n),Gi.getEventKey(e)){case"up":n.directionY=-1;break;case"down":n.directionY=1;break;case"left":n.directionX=-1;break;case"right":n.directionX=1;break}}}},t.prototype.handleGlobalKeyUp=function(e){var i="interactionKeyboardObject";if(this.focusedObject){var r=this.focusedObject.eventDisposers.getKey(i);r!=null&&(e.preventDefault(),r.dispose(),this.focusedObject.eventDisposers.removeKey(i));var n=this.focusedObject.sprite;Gi.isKey(e,"enter")&&n&&(n.events.isEnabled("hit")||n.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):n.showTooltipOn=="hit"&&this.focusedObject.dispatchImmediately("up"))}},t.prototype.handleGlobalPointerMove=function(e){var i=this.getPointer(e);if(i.point=this.getPointerPoint(e),this.events.isEnabled("track")&&!De.isPaused){var r={type:"track",target:this,event:e,pointer:i,touch:i.touch};this.events.dispatchImmediately("track",r)}this.addBreadCrumb(i,i.point),this.handleGlobalMove(i,e)},t.prototype.handleGlobalPointerDown=function(e){this.processDelayed();var i=this.getPointer(e);if(this.events.isEnabled("down")&&!De.isPaused){var r={type:"down",target:this,event:e,pointer:i,touch:i.touch};this.events.dispatchImmediately("down",r)}},t.prototype.preventTouchAction=function(e){e.defaultPrevented||e.preventDefault()},t.prototype.handleGlobalPointerUp=function(e,i){i===void 0&&(i=!1);var r=this.getPointer(e);if(this.events.isEnabled("up")&&!De.isPaused){var n={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(r,e,i)},t.prototype.handleGlobalTouchMove=function(e){for(var i=0;i<e.changedTouches.length;i++){var r=this.getPointer(e.changedTouches[i]);if(r.point=this.getPointerPoint(e.changedTouches[i]),this.events.isEnabled("track")&&!De.isPaused){var n={type:"track",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(r,r.point),this.handleGlobalMove(r,e)}},t.prototype.handleGlobalTouchStart=function(e){this.processDelayed();for(var i=0;i<e.changedTouches.length;i++){var r=this.getPointer(e.changedTouches[i]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!De.isPaused){var n={type:"down",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("down",n)}}},t.prototype.handleGlobalTouchEnd=function(e){for(var i=0;i<e.changedTouches.length;i++){var r=this.getPointer(e.changedTouches[i]);if(this.events.isEnabled("up")&&!De.isPaused){var n={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(r,e)}},t.prototype.handlePointerDown=function(e,i){var r=this.getPointer(i);!r.touch&&i.which!=1&&i.which!=3||(r.button=i.which,this.resetPointer(r,i),this.handleDown(e,r,i))},t.prototype.handlePointerOver=function(e,i){var r=this.getPointer(i);this.handleOver(e,r,i)},t.prototype.handlePointerOut=function(e,i){var r=this.getPointer(i);this.handleOut(e,r,i)},t.prototype.handleMouseWheel=function(e,i){var r=this.getPointer(i);r.point=this.getPointerPoint(i);var n=0,s=0,o=1;if(i.deltaMode==1&&(o=50),o*=this.getMouseOption(e,"sensitivity"),i instanceof WheelEvent)n=Math.round(-1*i.wheelDeltaX||i.deltaX*o),s=Math.round(-1*i.wheelDeltaY||i.deltaY*o);else throw new Error("Invalid event type");this.handleWheel(e,r,n,s,i)},t.prototype.handleTouchDown=function(e,i){for(var r=0;r<i.changedTouches.length;r++){var n=this.getPointer(i.changedTouches[r]);this.maybePreventDefault(e,i,n),this.resetPointer(n,i.changedTouches[r]),this.handleDown(e,n,i)}},t.prototype.handleHit=function(e,i,r){var n=pa();if(e.lastHit&&e.lastHit>=n-this.getHitOption(e,"doubleHitTime")){if(n-e.lastHit<100)return;if(e.lastHit=void 0,e.lastHitPointer=void 0,e.events.isEnabled("doublehit")&&!De.isPaused){var s={type:"doublehit",target:e,point:i.point,event:r,touch:i.touch};e.events.dispatchImmediately("doublehit",s)}}else if(e.lastHit=n,e.lastHitPointer=i,i.button===3){if(e.events.isEnabled("rightclick")&&!De.isPaused){var s={type:"rightclick",target:e,event:r};e.events.dispatchImmediately("rightclick",s)}}else if(e.events.isEnabled("hit")&&!De.isPaused){var s={type:"hit",target:e,event:r,point:i.point,touch:i.touch};e.events.dispatchImmediately("hit",s)}},t.prototype.handleOver=function(e,i,r,n){if(n===void 0&&(n=!1),!!e.hoverable){var s=!1;if(this.shouldCancelHovers(i)&&this.areTransformed()&&this.moved(i,this.getHitOption(e,"hitTolerance"))&&(s=!0,this.cancelAllHovers(r)),this.processDelayed(),e.overPointers.moveValue(i),!e.isRealHover&&(s||(e.isHover=!0,e.isRealHover=!0,this.overObjects.moveValue(e)),this.handleTrack(this.body,i,r,!0),e.events.isEnabled("over")&&!De.isPaused&&!s)){var o={type:"over",target:e,event:r,pointer:i,touch:i.touch};e.events.dispatchImmediately("over",o)}}},t.prototype.handleOut=function(e,i,r,n,s){var o=this;if(n===void 0&&(n=!1),s===void 0&&(s=!1),!!e.hoverable&&(e.overPointers.removeValue(i),e.isHover&&(!e.hasDelayedOut||s))){if(n&&e.overPointers.length)return;if(i&&i.touch&&!s&&!this.old(i)){var l=this.getHoverOption(e,"touchOutBehavior");if(l=="leave"){this._delayedEvents.out.push({type:"out",io:e,pointer:i,event:r,keepUntil:pa()+500}),e.hasDelayedOut=!0;return}else if(l=="delay"&&this.getHoverOption(e,"touchOutDelay")){this._delayedEvents.out.push({type:"out",io:e,pointer:i,event:r,keepUntil:pa()+500,timeout:this.setTimeout(function(){o.handleOut(e,i,r,!0)},this.getHoverOption(e,"touchOutDelay"))});return}}if(e.isHover=!1,this.overObjects.removeValue(e),!e.isDisposed()&&e.events.isEnabled("out")&&!De.isPaused){var u={type:"out",target:e,event:r,pointer:i,touch:i.touch};e.events.dispatchImmediately("out",u)}e.overPointers.clear(),e.hasDelayedOut=!1}},t.prototype.processDelayed=function(){for(var e;e=this._delayedEvents.out.pop(),!!e;)e.timeout&&e.timeout.dispose(),this.handleOut(e.io,e.pointer,e.event,!1,!0)},t.prototype.handleDown=function(e,i,r){if(this.maybePreventDefault(e,r,i),e.inert&&this.stopInertia(e),this.handleOver(e,i,r,!0),e.downPointers.moveValue(i),this.applyCursorDownStyle(e,i),e.isDown||(e.focusable!==!1&&this.getHitOption(e,"noFocus")&&this.focusedObject&&Ss(),e.isDown=!0,this.downObjects.moveValue(e),e.draggable&&this.processDragStart(e,i,r),e.resizable&&this.processResizeStart(e,i,r)),e.events.isEnabled("down")&&!De.isPaused){var n={type:"down",target:e,event:r,pointer:i,touch:i.touch};e.events.dispatchImmediately("down",n)}},t.prototype.handleGlobalUp=function(e,i,r){var n=this;r===void 0&&(r=!1);var s=this.downObjects.values.slice();s.sort(function(o,l){if(o&&l){var u=o.element.compareDocumentPosition(l.element);return u&Node.DOCUMENT_POSITION_CONTAINED_BY?1:u&Node.DOCUMENT_POSITION_CONTAINS?-1:0}else return 0}),K(s,function(o){o&&o.downPointers.contains(e)&&n.handleUp(o,e,i,r)})},t.prototype.handleDocumentLeave=function(e){var i=this;j(this.downObjects.backwards().iterator(),function(r){r.downPointers.each(function(n){i.handleUp(r,n,e)})})},t.prototype.handleUp=function(e,i,r,n){if(n===void 0&&(n=!1),this.restoreCursorDownStyle(e,i),e.downPointers.removeValue(i),(i&&i.touch||this._useTouchEventsOnly)&&this.handleOut(e,i,r,!0),e.isDown){if(e.downPointers.length==0&&(e.isDown=!1,this.downObjects.removeValue(e)),e.events.isEnabled("up")&&!De.isPaused&&i){var s={type:"up",target:e,event:r,pointer:i,touch:i.touch};e.events.dispatchImmediately("up",s)}n||(e.swipeable&&this.swiped(e,i)?this.handleSwipe(e,i,r):(e.clickable&&!this.moved(i,this.getHitOption(e,"hitTolerance"))&&this.handleHit(e,i,r),e.inert&&this.moved(i,this.getHitOption(e,"hitTolerance"))?this.handleInertia(e,i):e.draggable&&this.processDragStop(e,i,r),e.resizable&&this.processResizeStop(e,i,r)))}},t.prototype.maybePreventDefault=function(e,i,r){C(i)&&(e.draggable||e.swipeable||e.trackable||e.resizable)&&!this.isGlobalElement(e)&&i.cancelable!==!1&&(!e.isTouchProtected||!r||!r.touch)&&i.preventDefault()},t.prototype.cancelAllHovers=function(e){var i=this;j(this.overObjects.backwards().iterator(),function(r){if(r){var n=r.overPointers.getIndex(0);i.handleOut(r,n,e,!0,!0)}})},t.prototype.shouldCancelHovers=function(e){return Ce.disableHoverOnTransform=="always"||Ce.disableHoverOnTransform=="touch"&&e.touch},t.prototype.handleGlobalMove=function(e,i){var r=this;if(!e.touch){var n=ug(e.lastEvent);j(this.overObjects.backwards().iterator(),function(s){if(s&&s.overPointers.contains(e)&&s.hoverable){var o=!1;s.element&&e.lastEvent&&Sc(s.element,n)||(o=!0),o&&r.handleOut(s,e,i,!0)}})}j(this.transformedObjects.backwards().iterator(),function(s){s.downPointers.contains(e)&&!(s.swipeable&&r.swiping(s,e))&&(s.draggable||s.resizable)&&r.handleTransform(s,i)}),j(this.trackedObjects.backwards().iterator(),function(s){s.overPointers.contains(e)||r.handleTrack(s,e,i)})},t.prototype.handleTrack=function(e,i,r,n){if(n===void 0&&(n=!1),!(!n&&!this.moved(i,0))&&e.events.isEnabled("track")&&!De.isPaused){var s={type:"track",target:e,event:r,point:i.point,pointer:i,touch:i.touch};e.events.dispatchImmediately("track",s)}},t.prototype.handleSwipe=function(e,i,r){if(e.events.isEnabled("swipe")&&!De.isPaused){var n={type:"swipe",target:e,event:r,touch:i.touch};e.events.dispatchImmediately("swipe",n)}if(i.startPoint.x<i.point.x){if(e.events.isEnabled("swiperight")&&!De.isPaused){var n={type:"swiperight",target:e,event:r,touch:i.touch};e.events.dispatchImmediately("swiperight",n)}}else if(e.events.isEnabled("swipeleft")&&!De.isPaused){var n={type:"swipeleft",target:e,event:r,touch:i.touch};e.events.dispatchImmediately("swipeleft",n)}},t.prototype.handleWheel=function(e,i,r,n,s){var o={x:r,y:n};e.events.isEnabled("wheel")&&!De.isPaused&&e.events.dispatchImmediately("wheel",{type:"wheel",target:e,event:s,point:i.point,shift:o}),r<0?e.events.isEnabled("wheelleft")&&!De.isPaused&&e.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:e,event:s,point:i.point,shift:o}):r>0?e.events.isEnabled("swiperight")&&!De.isPaused&&e.events.dispatchImmediately("wheelright",{type:"wheelright",target:e,event:s,point:i.point,shift:o}):n<0?e.events.isEnabled("wheelup")&&!De.isPaused&&e.events.dispatchImmediately("wheelup",{type:"wheelup",target:e,event:s,point:i.point,shift:o}):n>0&&e.events.isEnabled("wheeldown")&&!De.isPaused&&e.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:e,event:s,point:i.point,shift:o})},t.prototype.handleInertia=function(e,i){e.draggable&&e.downPointers.length===0&&this.handleMoveInertia(e,i),e.resizable&&e.downPointers.length>1&&this.handleResizeInertia(e,i)},t.prototype.handleMoveInertia=function(e,i){var r=e,n="move",s={x:i.point.x,y:i.point.y},o={x:i.startPoint.x,y:i.startPoint.y},l=new Bc(r,n,s,o),u=this.getTrailPoint(i,pa()-this.getInertiaOption(e,"move","time"));if(typeof u>"u"){this.processDragStop(e,i,i.lastUpEvent);return}var h=this.getInertiaOption(e,"move","factor"),p=[{to:i.point.x+(i.point.x-u.point.x)*h,property:"x"},{to:i.point.y+(i.point.y-u.point.y)*h,property:"y"}],d=new bi(l,p,this.getInertiaOption(e,"move","duration"),this.getInertiaOption(e,"move","easing")).start();this._disposers.push(d.events.on("animationended",function(c){l.done()})),e.inertias.setKey("move",l)},t.prototype.handleResizeInertia=function(e,i){},t.prototype.handleTransform=function(e,i){var r=e.downPointers.getIndex(0),n=null,s=null;r&&(n=r.point,s=r.startPoint);var o,l,u;l={x:e.originalPosition.x,y:e.originalPosition.y},u=l;for(var h=!0,p=1;p<e.downPointers.length;p++){var d=e.downPointers.getIndex(p);if(s.x!=d.startPoint.x&&s.y!=d.startPoint.y){h=!1,o=d,l=o.point,u=o.startPoint;break}}var c=r&&this.moved(r,0);if(e.draggable&&r&&r.dragStartEvents&&r.dragStartEvents.length&&c&&e.events.isEnabled("dragstart")&&!De.isPaused&&e.events.dispatchImmediately("dragstart",r.dragStartEvents.shift()),h&&e.draggable)this.handleTransformMove(e,n,s,i,c,r.touch),this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))&&this.cancelAllHovers(i);else{var f=o&&this.moved(o,0);(this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))||this.shouldCancelHovers(o)&&this.moved(o,this.getHitOption(e,"hitTolerance")))&&this.cancelAllHovers(i),e.draggable&&e.resizable?(this.handleTransformMove(e,n,s,i,c&&f,r.touch),this.handleTransformResize(e,n,s,l,u,i,c&&f,r.touch)):(e.draggable&&this.handleTransformMove(e,n,s,i,c,r.touch),e.resizable&&(!h||i.ctrlKey)&&this.handleTransformResize(e,n,s,l,u,i,c&&f,r.touch))}},t.prototype.handleTransformMove=function(e,i,r,n,s,o){if(s&&e.events.isEnabled("drag")&&!De.isPaused&&(!e.isTouchProtected||!o)){var l={type:"drag",target:e,event:n,shift:{x:i.x-r.x,y:i.y-r.y},startPoint:r,point:i,touch:o};e.events.dispatchImmediately("drag",l)}},t.prototype.handleTransformResize=function(e,i,r,n,s,o,l,u){if(e.events.isEnabled("resize")&&!De.isPaused&&(!e.isTouchProtected||!u)){var h={type:"resize",target:e,event:o,scale:Iy(i,r,n,s),startPoint1:r,point1:i,startPoint2:s,point2:n,touch:u};e.events.dispatchImmediately("resize",h)}},t.prototype.processDragStart=function(e,i,r){this.transformedObjects.moveValue(e),this.shouldCancelHovers(i)&&this.cancelAllHovers(r);var n={type:"dragstart",target:e,event:r,touch:i?i.touch:!1};i&&(i.dragTarget=e),i&&i.dragStartEvents?i.dragStartEvents.push(n):De.isPaused||e.dispatchImmediately("dragstart",n)},t.prototype.processDragStop=function(e,i,r){if(i||(i=this.getDragPointer(e)),i&&(i.dragTarget=void 0),this.transformedObjects.removeValue(e),(!i||this.moved(i,0))&&e.events.isEnabled("dragstop")&&!De.isPaused){var n={type:"dragstop",target:e,touch:i?i.touch:!1};e.events.dispatchImmediately("dragstop",n)}},t.prototype.processResizeStart=function(e,i,r){this.transformedObjects.moveValue(e)},t.prototype.processResizeStop=function(e,i,r){this.transformedObjects.removeValue(e)},t.prototype.dragStart=function(e,i){i||(i=this.getDragPointer(e)),i&&this.handleDown(e,i,i.lastDownEvent)},t.prototype.dragStop=function(e,i,r){i||(i=this.getDragPointer(e)),i&&!r&&this.handleGlobalUp(i,i.lastUpEvent,r)},t.prototype.getDragPointer=function(e){return e?e.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},t.prototype.getPointerId=function(e){var i="";return C(e.identifier)?i=""+e.identifier:C(e.pointerId)?i=""+e.pointerId:i="m",i.replace("-","")},t.prototype.getPointerPoint=function(e){return{x:e.clientX,y:e.clientY}},t.prototype.getPointer=function(e){var i=this.getPointerId(e),r=this.getPointerPoint(e),n;return this.pointers.hasKey(i)?(n=this.pointers.getKey(i),n.touch=this.isPointerTouch(e)):(n={id:i,touch:this.isPointerTouch(e),startPoint:r,startTime:pa(),point:r,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(n,r),this.pointers.setKey(i,n)),n.lastEvent=e,this.lastPointer=n,n},t.prototype.isPointerTouch=function(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&C(e.pointerType))switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(C(e.type)&&e.type.match(/^mouse/))return!1;return!0},t.prototype.resetPointer=function(e,i){var r=this.getPointerPoint(i);e.startTime=pa(),e.startPoint={x:r.x,y:r.y},e.point={x:r.x,y:r.y},e.track=[],e.swipeCanceled=!1},t.prototype.addBreadCrumb=function(e,i){e.track.push({timestamp:pa(),point:i})},t.prototype.lockDocument=function(){this.prepElement(this.body)},t.prototype.unlockDocument=function(){this.transformedObjects.length==0&&this.restoreAllStyles(this.body)},t.prototype.lockElement=function(e){this.prepElement(e)},t.prototype.unlockElement=function(e){this.restoreAllStyles(e)},t.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,this._passiveSupported?{passive:!1}:!1)},t.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},t.prototype.isLocalElement=function(e,i,r){var n=this.getCache("local_pointer_"+e.id);if(C(n))return n;var s=_h(i)||document;if(s.elementFromPoint){var o=s.elementFromPoint(e.point.x,e.point.y),l=o&&Sc(i,o);return this.setCache("local_pointer_"+e.id+"_"+r,l,100),l}return!1},t.prototype.wheelLockEvent=function(e){return e.preventDefault(),!1},t.prototype.prepElement=function(e){var i=e.element;if(i){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<r.length;n++)r[n]in i.style&&this.setTemporaryStyle(e,r[n],"none");this.setTemporaryStyle(e,"tapHighlightColor","rgba(0, 0, 0, 0)")}},t.prototype.unprepElement=function(e){var i=e.element;if(i){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<r.length;n++)r[n]in i.style&&this.restoreStyle(e,r[n]);this.restoreStyle(e,"tapHighlightColor")}},t.prototype.getHitOption=function(e,i){var r=e.hitOptions[i];return typeof r>"u"&&(r=this.hitOptions[i]),r},t.prototype.getHoverOption=function(e,i){var r=e.hoverOptions[i];return typeof r>"u"&&(r=this.hoverOptions[i]),r},t.prototype.getSwipeOption=function(e,i){var r=e.swipeOptions[i];return typeof r>"u"&&(r=this.swipeOptions[i]),r},t.prototype.getKeyboardOption=function(e,i){var r=e.keyboardOptions[i];return typeof r>"u"&&(r=this.keyboardOptions[i]),r},t.prototype.getMouseOption=function(e,i){var r=e.mouseOptions[i];return typeof r>"u"&&(r=this.mouseOptions[i]),r},t.prototype.getInertiaOption=function(e,i,r){var n=e.inertiaOptions.getKey(i),s;return n&&C(n[r])?s=n[r]:s=this.inertiaOptions.getKey(i)[r],s},t.prototype.stopInertia=function(e){for(var i,r=["move","resize"],n=0;n<r.length;n++)if(i=r[n],e.inertias.hasKey(i)){var s=e.inertias.getKey(i);if(s){s.dispose();continue}}},t.prototype.swiping=function(e,i){var r=pa();return i.swipeCanceled||!e.swipeable?!1:Math.abs(i.startPoint.y-i.point.y)<this.getSwipeOption(e,"verticalThreshold")&&i.startTime>r-this.getSwipeOption(e,"time")},t.prototype.swiped=function(e,i){var r=pa();return i.swipeCanceled?!1:Math.abs(i.startPoint.x-i.point.x)>this.getSwipeOption(e,"horizontalThreshold")&&Math.abs(i.startPoint.y-i.point.y)<this.getSwipeOption(e,"verticalThreshold")&&i.startTime>r-this.getSwipeOption(e,"time")},t.prototype.applyCursorOverStyle=function(e){var i=e.cursorOptions;if(C(i.overStyle))for(var r=0;r<i.overStyle.length;r++)xc(e.element,i.overStyle[r].property,i.overStyle[r].value)},t.prototype.applyCursorDownStyle=function(e,i){if(!(i&&i.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(i)&&C(r))for(var n=0;n<r.length;n++)this.setTemporaryStyle(this.body,r[n].property,r[n].value),this.setTemporaryStyle(e,r[n].property,r[n].value)}},t.prototype.restoreCursorDownStyle=function(e,i){if(!(i&&i.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(i)&&C(r))for(var n=0;n<r.length;n++)this.restoreStyle(this.body,r[n].property),this.restoreStyle(e,r[n].property)}},t.prototype.setGlobalStyle=function(e){for(var i=me().body,r=Je(e)?e:[e],n=0;n<r.length;n++)this.setTemporaryStyle(i,r[n].property,r[n].value)},t.prototype.restoreGlobalStyle=function(e){for(var i=me().body,r=Je(e)?e:[e],n=0;n<r.length;n++)this.restoreStyle(i,r[n].property)},t.prototype.isGlobalElement=function(e){return document.body===e.element},t.prototype.moved=function(e,i,r){r===void 0&&(r=300);var n=this.getShift(e);return Math.abs(n.x)>i||Math.abs(n.y)>i},t.prototype.old=function(e,i){return i===void 0&&(i=300),pa()-e.startTime>i},t.prototype.getShift=function(e){return{x:e.startPoint.x-e.point.x,y:e.startPoint.y-e.point.y}},t.prototype.getTrailPoint=function(e,i){for(var r,n=0;n<e.track.length;n++)if(e.track[n].timestamp>=i){r=e.track[n];break}return r},t.prototype.pointerExists=function(e,i){var r=!1;return e.each(function(n){n!=i&&(r=n.point.x==i.point.x&&n.point.y==i.point.y)}),r},t.prototype.getInteraction=function(e){return new Rc(e)},t.prototype.setTemporaryStyle=function(e,i,r){var n=e.element;C(n.style[i])&&!e.replacedStyles.hasKey(i)&&e.replacedStyles.setKey(i,n.style[i]),xc(n,i,r)},t.prototype.restoreStyle=function(e,i){e.replacedStyles.hasKey(i)?(e.element.style[i]=e.replacedStyles.getKey(i),e.replacedStyles.removeKey(i)):delete e.element.style[i]},t.prototype.restoreAllStyles=function(e){j(e.replacedStyles.iterator(),function(i){var r=i[0],n=i[1];e.element.style[r]=n,e.replacedStyles.removeKey(r)})},t.prototype.dispose=function(){this.isDisposed()||(a.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},t.prototype.log=function(e,i,r){var n=!0;if(n){if(i.changedTouches){for(var s=0;s<i.changedTouches.length;s++)this.logTouch(e,i.type,i.changedTouches[s]);return}var o="";if(i.pointerType)switch(i.pointerType){case 2:o="touch";break;case 4:o="mouse";break;default:o=i.pointerType;break}else typeof TouchEvent<"u"&&i instanceof TouchEvent?o="touch":i.type.match(/^mouse/)?o="mouse":o="???";var l="";C(i.identifier)?l=i.identifier:C(i.pointerId)?l=i.pointerId:l="???",console.log(r?e+" ("+r.uid+") "+i.type+" "+o+" "+l:e+" "+i.type+" "+o+" "+l)}},t.prototype.areTransformed=function(e){var i=this.transformedObjects.length;if(e)for(var r=Je(e)?e:[e],n=0;n<r.length;n++)this.transformedObjects.contains(r[n])&&i--;return i>0},t.prototype.logTouch=function(e,i,r){console.log(e+" "+i+" touch "+r.identifier)},Object.defineProperty(t,"passiveSupported",{get:function(){var e=this;if(this._passiveSupported==null)try{var i=Object.defineProperty({},"passive",{get:function(){e._passiveSupported=!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch{this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),t})(ci);var Wc=null;function me(){return Wc==null&&(Wc=new yg),Wc}var Tn=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=z(this.innerWidth,e),r=z(this.innerHeight,e);this.element.attr({width:i,height:r})},t.prototype.measureElement=function(){},Object.defineProperty(t.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Rectangle=Tn;var ue=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._purposes={stroke:oe("#e5e5e5"),fill:oe("#f3f3f3"),primaryButton:oe("#6794dc"),primaryButtonHover:oe("#6771dc"),primaryButtonDown:oe("#68dc75"),primaryButtonActive:oe("#68dc75"),primaryButtonText:oe("#FFFFFF"),primaryButtonStroke:oe("#FFFFFF"),secondaryButton:oe("#d9d9d9"),secondaryButtonHover:oe("#d9d9d9").brighten(-.25),secondaryButtonDown:oe("#d9d9d9").brighten(-.35),secondaryButtonActive:oe("#d9d9d9").brighten(.35),secondaryButtonText:oe("#000000"),secondaryButtonStroke:oe("#FFFFFF"),grid:oe("#000000"),background:oe("#ffffff"),alternativeBackground:oe("#000000"),text:oe("#000000"),alternativeText:oe("#FFFFFF"),disabledBackground:oe("#999999"),positive:oe("#67dc75"),negative:oe("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return t.prototype.debug=function(){},t.prototype.getFor=function(e){return this._purposes[e]},t.prototype.setFor=function(e,i){this._purposes[e]=i},t})(Tt);S.registeredClasses.InterfaceColorSet=ue;var te=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new Ve,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new mr(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return t.prototype.handleChildAdded=function(e){this.processChild(e.newValue)},t.prototype.processChild=function(e){try{this._childrenDisposers.insertKey(e.uid,new Me([e.events.on("transformed",this.handleChildTransform,this),e.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch{}if(this.element){var i=this.element;i.add(e.group)}e.parent=this,e.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:e}),this.invalidate()},t.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},t.prototype.handleChildRemoved=function(e){var i=e.oldValue;if(this._childrenDisposers.removeKey(i.uid),this.element){var r=this.element;r.removeElement(i.group)}i.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:i})},t.prototype.handleChildTransform=function(e){var i=e.target;i.isMeasured&&this.invalidateLayout()},t.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||(this.layoutInvalid=!0,S.addToInvalidLayouts(this),De.requestFrame())},t.prototype.invalidate=function(){a.prototype.invalidate.call(this),this.invalidateLayout()},t.prototype.deepInvalidate=function(){a.prototype.invalidate.call(this),K(this._childrenByLayout,function(e){e instanceof t?e.deepInvalidate():e.invalidate()}),this.invalidateLayout()},Object.defineProperty(t.prototype,"children",{get:function(){return this._children||(this._children=new we),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(){},t.prototype.sortChildren=function(){var e=this;if(this._childrenByLayout=[],this.layout=="none"||this.layout=="absolute"||!this.layout)this._childrenByLayout=this.children.values;else{var i=[],r=[];j(this.children.iterator(),function(n){e.layout=="horizontal"||e.layout=="grid"?x(n.percentWidth)?r.push(n):i.push(n):e.layout=="vertical"&&x(n.percentHeight)?r.push(n):i.push(n)}),this._childrenByLayout=i.concat(r)}this.calculateRelativeSize()},t.prototype.calculateRelativeSize=function(){var e=this,i=0,r=0;K(this._childrenByLayout,function(n){n.isMeasured&&(x(n.percentWidth)&&(i+=n.percentWidth),x(n.percentHeight)&&(r+=n.percentHeight))}),K(this._childrenByLayout,function(n){n.isMeasured&&(e.layout=="horizontal"&&(x(n.percentWidth)&&(n.relativeWidth=n.percentWidth/i),x(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),e.layout=="vertical"&&(x(n.percentHeight)&&(n.relativeHeight=n.percentHeight/r),x(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),e.layout=="grid"&&(x(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),x(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),(e.layout=="absolute"||!n.isMeasured)&&(x(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),x(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))})},t.prototype.addChildren=function(){if(this.element){var e=Ya(this.children.values),i=e.map(function(l,u){return{idx:u,data:l}});i.sort(function(l,u){var h=l.data.zIndex||0,p=u.data.zIndex||0;return h<p?-1:h>p?1:l.idx-u.idx}),e=i.map(function(l){return l.data});var r=this.element,n=!0;if(r.node&&r.node.childNodes){for(var s=0,o=r.node.childNodes.length;s<o;s++)if(r.node.childNodes[s]!=e[s].group.node){n=!1;break}}n||(K(e,function(l){l.group&&r.add(l.group)}),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},t.prototype.createChild=function(e){var i=new e;return i.parent=this,i},t.prototype.removeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.parent=void 0,this.children.removeValue(e)}},t.prototype.disposeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.dispose(),this.children.removeValue(e)}},Object.defineProperty(t.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(e){this._background&&this.background!=e&&this.removeDispose(this._background),e&&(this._background=e,this._disposers.push(e),this.processBackground())},enumerable:!0,configurable:!0}),t.prototype.handleGlobalScale=function(){a.prototype.handleGlobalScale.call(this),this.children.each(function(e){e.handleGlobalScale()})},t.prototype.createBackground=function(){return new Tn},t.prototype.processBackground=function(){var e=this._background;e&&(e.isMeasured=!1,this._background.fill=new ue().getFor("background"),e.parent=this,e.isMeasured=!1,this.children.removeValue(e),this._disposers.push(e),this.group.addToBack(this._background.group))},t.prototype.validateLayout=function(){var e=this;S.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var i=0,r=0,n=!0;this.children&&(this.sortChildren(),K(this._childrenByLayout,function(s){var o,l;if(x(s.relativeWidth)?(o=z(e._availableWidth*s.relativeWidth,2),e.layout=="horizontal"&&(o-=s.pixelMarginRight+s.pixelMarginLeft)):e.layout=="horizontal"&&s.invalid&&s.validate(),x(s.relativeHeight)?(l=z(e._availableHeight*s.relativeHeight,2),e.layout=="vertical"&&(l-=s.pixelMarginTop+s.pixelMarginBottom)):e.layout=="vertical"&&s.invalid&&s.validate(),s.invalid==!1){if(x(s.relativeWidth)&&(s.maxWidth=o),x(s.relativeHeight)&&(s.maxHeight=l),s.isMeasured){e.layout=="horizontal"&&(x(s.percentWidth)||s.measuredWidth>0&&(e._availableWidth-=s.measuredWidth+s.pixelMarginLeft+s.pixelMarginRight)),e.layout=="vertical"&&(x(s.percentHeight)||s.measuredHeight>0&&(e._availableHeight-=s.measuredHeight+s.pixelMarginTop+s.pixelMarginBottom));var u=s.measuredWidth,h=s.measuredHeight;s.align!="none"&&(u+=s.pixelMarginLeft+s.pixelMarginRight),s.valign!="none"&&(h+=s.pixelMarginTop+s.pixelMarginBottom),i=Math.max(i,u),r=Math.max(r,h)}}else s.isMeasured&&(x(s.relativeWidth)&&s.maxWidth!=o&&(s.maxWidth=o,n=!1),x(s.relativeHeight)&&s.maxHeight!=l&&(s.maxHeight=l,n=!1))})),this._absoluteWidth=i,this._absoluteHeight=r,n&&this.arrange()},t.prototype.arrange=function(){var e=this,i=this.children,r=0,n=0,s=fe(this.innerWidth,this._absoluteWidth),o=fe(this.innerHeight,this._absoluteHeight),l,u,h,p,d=this.pixelPaddingLeft,c=this.pixelPaddingRight,f=this.pixelPaddingTop,m=this.pixelPaddingBottom,y=0,g=0,v=0,b=0,P=[],w=[],T,F,D,O=this.maxWidth,N=this.maxHeight,L=this.minWidth,E=this.minHeight,B=Ya(i.values);if(this.reverseOrder&&B.reverse(),this.layout=="grid"){F=O,T=1;for(var U=0,q=B.length;U<q;U++){var Y=B[U];if(Y.isMeasured&&!Y.disabled&&!Y.__disabled){var he=Y.measuredWidth;he<F&&(F=he),he>T&&(T=he)}}F=ee(F,1,O),T=ee(T,1,O),this.fixedWidthGrid?D=O/T:D=O/F,D=fe(1,Math.floor(D)),D=Se(this.maxColumns,D),P=this.getColumnWidth(B,D,T)}for(var re,pe,le,Pe,U=0,q=B.length;U<q;U++){var Y=B[U];if(Y.isMeasured&&!Y.disabled&&!Y.__disabled){var ae=void 0,Oe=void 0,ve=Y.pixelMarginLeft,Ye=Y.pixelMarginRight,Qe=Y.pixelMarginTop,rt=Y.pixelMarginBottom,zt=Y.measuredWidth,Gt=Y.measuredHeight,at=void 0,mt=void 0,mi=void 0,Jt=void 0;switch(this.layout){case"none":break;case"absolute":switch(Y.align){case"left":ae=ve-Y.maxLeft;break;case"center":ae=(s-zt)/2-Y.maxLeft;break;case"right":ae=s-Ye-Y.maxRight;break;default:Y.x instanceof xe||(ae=Y.pixelX);break}switch(Y.valign){case"top":Oe=Qe-Y.maxTop;break;case"middle":Oe=(o-Gt)/2-Y.maxTop;break;case"bottom":Oe=o-rt-Y.maxBottom;break;default:Y.y instanceof xe||(Oe=Y.pixelY);break}break;case"vertical":switch(Y.align){case"left":ae=ve-Y.maxLeft;break;case"center":ae=(s-zt)/2-Y.maxLeft;break;case"right":ae=s-Ye-Y.maxRight;break;default:ae=Y.pixelX;break}Oe=g+Qe-Y.maxTop,g=Oe+Y.maxBottom+rt;break;case"horizontal":switch(Y.valign){case"top":Oe=Qe-Y.maxTop;break;case"middle":Oe=(o-Gt)/2-Y.maxTop;break;case"bottom":Oe=o-rt-Y.maxBottom;break;default:Oe=Y.pixelY;break}ae=y+ve-Y.maxLeft,y=ae+Y.maxRight+Ye;break;case"grid":switch(ae=y+ve-Y.maxLeft,Y.valign){case"top":Oe=g+Qe-Y.maxTop;break;case"middle":Oe=g+(o-Gt)/2-Y.maxTop;break;case"bottom":Oe=g+o-rt-Y.maxBottom;break;default:Oe=g-Y.maxTop;break}y+=P[b],w[v]=fe(w[v],Gt),b++;var yt=P[b];if(x(yt)||(yt=T),y>Se(this.innerWidth,O)-yt+1&&b<D){D=b,y=0,g=0,v=0,b=0,P=this.getColumnWidth(B,D,T),w=[],U=-1;continue}b>=D&&(b=0,g+=w[v],v++,y=0);break}this.layout!=="none"&&(Y.moveTo({x:ae,y:Oe}),at=ae+Y.maxLeft-ve,mt=ae+Y.maxRight+Ye,mi=Oe+Y.maxTop-Qe,Jt=Oe+Y.maxBottom+rt,(mt>u||!x(u))&&(u=mt),(at<l||!x(l))&&(l=at),(mi<h||!x(h))&&(h=mi),(Jt>p||!x(p))&&(p=Jt),(mt>pe||!x(pe))&&(pe=mt),(at<re||!x(re))&&(re=at),(mi<le||!x(le))&&(le=mi),(Jt>Pe||!x(Pe))&&(Pe=Pe))}else Y.validatePosition()}if(this.layout=="none"){var er=this.bbox;l=er.x,u=er.x+er.width,h=er.y,p=er.y+er.height}x(l)||(l=0,re=0),x(u)||(u=this._availableWidth,pe=u),x(h)||(h=0,le=0),x(p)||(p=this._availableHeight,Pe=p),x(le)||(le=0),x(Pe)||(Pe=le),x(re)||(re=0),x(pe)||(pe=re),r=u-l,n=p-h,x(this.relativeWidth)&&(r=O-d-c,l=0,u=r),x(this.relativeHeight)&&(n=N-f-m,h=0,p=n),x(this._pixelWidth)&&(l=0,r=this._pixelWidth-d-c),x(L)&&r<L&&(l=0,r=this.minWidth-d-c),x(this._pixelHeight)&&(h=0,n=this._pixelHeight-f-m),x(E)&&n<E&&(h=0,n=E-f-m);var hr=pe-re,Br=Pe-le;if(this.layout!="none"&&(this.contentAlign||this.contentValign)&&i.length>0){var Wr,ni,Mi=r,wi=n;Mi<hr&&(Mi=hr),wi<Br&&(wi=Br),this.contentAlign=="center"&&(Wr=(Mi-hr)/2),this.contentAlign=="right"&&(Wr=Mi-hr),this.contentValign=="middle"&&(ni=(wi-Br)/2),this.contentValign=="bottom"&&(ni=wi-Br),x(Wr)&&j(i.iterator(),function(Et){var Ba=Et.maxLeft,Ni=Wr;e.layout=="horizontal"&&(Et.x=Et.pixelX+Ni),e.layout=="grid"&&(Et.x=Et.pixelX+Ni),e.layout=="vertical"&&(Ni+=Et.pixelMarginLeft,Et.align=="none"&&(Et.x=Ni-Ba)),e.layout=="absolute"&&(Ni+=Et.pixelMarginLeft,Et.align=="none"&&(Et.x=Ni-Ba))}),x(ni)&&j(i.iterator(),function(Et){var Ba=Et.maxTop,Ni=ni;e.layout=="horizontal"&&(Ni+=Et.pixelMarginTop,Et.valign=="none"&&(Et.y=Ni-Ba)),e.layout=="grid"&&(Ni+=Et.pixelMarginTop,Et.y=Ni-Ba),e.layout=="vertical"&&(Et.y=Et.pixelY+Ni),e.layout=="absolute"&&(Ni+=Et.pixelMarginTop,Et.valign=="none"&&(Et.y=Ni-Ba))})}var Pi=this.bbox;r=fe(r,L),n=fe(n,E),this.contentWidth=r,this.contentHeight=n,r=Se(r,O),n=Se(n,N),this._bbox={x:l,y:h,width:r,height:n};var qr=this.maxLeft,tr=this.maxTop,eo=this.maxBottom,Tl=this.maxRight;if(this.measure(),(qr!=this.maxLeft||Tl!=this.maxRight||tr!=this.maxTop||eo!=this.maxBottom)&&this.events.isEnabled("transformed")){var pr={type:"transformed",target:this};Pi&&(pr.dummyData=Pi.width+" "+r+" "+Pi.height+" "+n),this.events.dispatchImmediately("transformed",pr)}this.dispatchImmediately("layoutvalidated")},t.prototype.updateCenter=function(){a.prototype.updateCenter.call(this),this.updateBackground()},t.prototype.updateBackground=function(){var e=this._background;e&&(e.x=this.maxLeft,e.y=this.maxTop,e.width=this.maxRight-this.maxLeft,e.height=this.maxBottom-this.maxTop)},t.prototype.getColumnWidth=function(e,i,r){var n=this,s=[],o=0;return K(e,function(l){l.isMeasured&&!l.disabled&&!l.__disabled&&(n.fixedWidthGrid?s[o]=r:s[o]=fe(s[o],l.measuredWidth+l.pixelMarginRight+l.pixelMarginLeft),o++,o==i&&(o=0))}),s},Object.defineProperty(t.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(e){this.setPropertyValue("layout",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(e){this.setPropertyValue("contentValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(e){this.setPropertyValue("contentAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(e){this.setPropertyValue("fixedWidthGrid",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(e){this.setPropertyValue("maxColumns",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(e){this.setPropertyValue("reverseOrder",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(e){this.setPropertyValue("setStateOnChildren",e,!0)},enumerable:!0,configurable:!0}),t.prototype.fitsToBounds=function(e){var i=e.x,r=e.y,n=.5;return i>=-n&&i<=this.pixelWidth+n&&r>=-n&&r<=this.pixelHeight+n},t.prototype.copyFrom=function(e){var i=this;a.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),j(e.children.iterator(),function(r){if(r.shouldClone){var n=r.clone();n.parent=i}})},Object.defineProperty(t.prototype,"preloader",{get:function(){var e=this._preloader;if(e)return e;if(this.parent)return this.parent.preloader},set:function(e){this._preloader&&this.removeDispose(this._preloader),this._preloader=e,e&&(e.parent=this.tooltipContainer,this._disposers.push(e))},enumerable:!0,configurable:!0}),t.prototype.setPaper=function(e){var i=this,r=a.prototype.setPaper.call(this,e);return r&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each(function(n){n.setPaper(e),n.topParent=i.topParent})),r},t.prototype.removeFromInvalids=function(){a.prototype.removeFromInvalids.call(this),S.removeFromInvalidLayouts(this)},t.prototype.setDataItem=function(e){this._dataItem!=e&&(j(this.children.iterator(),function(i){i.dataItem=e}),this._background&&(this._background.dataItem=e)),a.prototype.setDataItem.call(this,e)},t.prototype.measureElement=function(){this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||this.validateLayout()},Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(e){this.setPropertyValue("fontFamily",e,!0)&&(this.setSVGAttribute({"font-family":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(e){this.setPropertyValue("fontSize",e,!0)&&(this.setSVGAttribute({"font-size":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),t.prototype.invalidateLabels=function(){this.children.each(function(e){e.hardInvalidate?(e.hardInvalidate(),e.events.once("validated",e.handleValidate,e,!1)):e instanceof t&&e.invalidateLabels()})},Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(e){this.setPropertyValue("fontWeight",e),this.setSVGAttribute({"font-weight":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(e){this.setPropertyValue("textDecoration",e),this.setSVGAttribute({"text-decoration":e})},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),a.prototype.dispose.call(this)},t.prototype.setState=function(e,i,r){var n=e;return e instanceof ws&&(n=e.name),this.setStateOnChildren&&j(this.children.iterator(),function(s){s.setState(n,i,r),n!="active"&&(s.isActive=!1)}),this._background&&this._background.setState(n),this.setStateOnSprites.length&&K(this.setStateOnSprites,function(s){s.setState(n,i,r)}),a.prototype.setState.call(this,e,i,r)},t.prototype.setActive=function(e){a.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},t.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;ii(this.children.iterator(),function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(i=!1,!1):!0}),mo(this._shouldBeReady,function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(i=!1,!1):!0}),i?a.prototype.dispatchReady.call(this):S.events.once("exitframe",function(){e.dispatchReady(),De.requestFrame()},void 0,!1)}},t.prototype._systemUpdate=function(e){this.children.each(function(i){i.invalid&&(i._systemCheckIfValidate()?i.dataItem&&i.dataItem.component&&i.dataItem.component.dataInvalid?e.push(i):i.validate():e.push(i))}),a.prototype._systemUpdate.call(this,e)},t.prototype._systemValidatePositions=function(){this.children.each(function(e){e.positionInvalid&&e.validatePosition()}),a.prototype._systemValidatePositions.call(this)},t.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(t.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(e){this._tapToActivate!=e&&this.setTapToActivate(e)},enumerable:!0,configurable:!0}),t.prototype.setTapToActivate=function(e){var i=this;this._tapToActivate=e,this.interactions.isTouchProtected=e,e&&this.interactions.setEventDisposer("container-tapToActivate",e,function(){return new Me([i.events.on("hit",i.handleTapToActivate,i,!1),i.events.on("down",i.initTapTimeout,i,!1),i.events.on("track",i.initTapTimeout,i,!1),me().body.events.on("down",function(r){me().isLocalElement(r.pointer,i.paper.svg,i.uid)||i.handleTapToActivateDeactivation()},i,!1)])}),me()},t.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},t.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},t.prototype.initTapTimeout=function(){var e=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout(function(){e.handleTapToActivateDeactivation()},this.tapTimeout))},t.prototype.moveHtmlContainer=function(e){var i=Kl(e);if(i){this.htmlContainer=i;var r=this.svgContainer;r.htmlElement=i,r.htmlElement.appendChild(r.SVGContainer),r.initSensor(),r.measure()}else ye(e)&&e!=""&&De.log("html container '"+e+"' not found")},t.prototype.hasLicense=function(){if(Ce.commercialLicense)return!0;for(var e=0;e<Ce.licenses.length;e++)if(Ce.licenses[e].match(/^CH.{5,}/i))return!0;return!1},t})(ne);S.registeredClasses.Container=te;function gg(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];Ce.verbose&&console&&console.log.apply(console,Ua(a))}function Vo(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];Ce.suppressWarnings||console&&console.warn.apply(console,Ua(a))}var vg=(function(){function a(){this._isPaused=!1,this.animations=[],this.uid=S.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return a.prototype.reportTime=function(t,e){this.dummyCounter<6,e&&(this.time=Date.now())},a.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();S.dispatchImmediately("enterframe");var i=[];for(var r in S.invalidDatas)if(Ur(S.invalidDatas,r)){for(var n=S.invalidDatas[r];n.length>0;){var s=n[0],o=s.dataProvider;if(s.isDisposed())de(n,s);else if(o&&o.dataInvalid)try{if(o.validateData(),o.dataValidationProgress<1)break}catch(p){de(n,o),o.raiseCriticalError(p)}else try{if(s.validateData(),s.dataValidationProgress<1)break}catch(p){de(n,s),s.raiseCriticalError(p)}}if(Date.now()-e>this.updateStepDuration)break}for(;S.invalidRawDatas.length>0;){var s=S.invalidRawDatas[0];if(s.isDisposed())de(S.invalidRawDatas,s);else try{s.validateRawData()}catch(d){de(S.invalidRawDatas,s),s.raiseCriticalError(d)}}for(;S.invalidDataItems.length>0;){var s=S.invalidDataItems[0],o=s.dataProvider;if(!(s.isDisposed()||s.dataInvalid||o&&o.dataInvalid))try{s.validateDataItems()}catch(c){de(S.invalidDataItems,s),s.raiseCriticalError(c)}de(S.invalidDataItems,s)}for(;S.invalidDataRange.length>0;){var s=S.invalidDataRange[0],o=s.dataProvider;if(!(s.isDisposed()||s.dataInvalid||o&&o.dataInvalid))try{s.validateDataRange(),s.skipRangeEvent||s.dispatchImmediately("datarangechanged"),s.skipRangeEvent=!1}catch(c){de(S.invalidDataRange,s),s.raiseCriticalError(c)}de(S.invalidDataRange,s)}var l=[];se(S.invalidLayouts,function(p){t.validateLayouts(p)}),se(S.invalidPositions,function(p){t.validatePositions(p)});var u=!1;if(e=Date.now(),se(S.invalidSprites,function(p,d){for(var c=0;d.length>0;){if(t.validateLayouts(p),t.validatePositions(p),c++,c==5){if(Date.now()-e>t.updateStepDuration)break;c=0}var f=d[d.length-1];if(f&&!f.isDisposed()){if(!f._systemCheckIfValidate())l.push(f);else if(!t.checkIfValidate2(f))l.push(f);else try{f._systemUpdate(l)}catch(m){f.invalid=!1,de(d,f),f.raiseCriticalError(m)}f.invalid=!1}de(d,f)}S.invalidSprites[p]=S.invalidSprites[p].concat(l)}),se(S.invalidSprites,function(p,d){d.length>0&&(u=!0)}),se(S.invalidDatas,function(p,d){d.length>0&&(u=!0)}),K(Ya(this.animations),function(p){p.update()}),se(S.invalidLayouts,function(p){t.validateLayouts(p)}),se(S.invalidPositions,function(p){t.validatePositions(p)}),Jd(),se(S.invalidLayouts,function(p){t.validateLayouts(p)}),se(S.invalidPositions,function(p){t.validatePositions(p)}),S.dispatchImmediately("exitframe"),(u||this.animations.length>0||i.length>0)&&this.requestFrame(),this.updateStepDuration<200){var h=!0;se(S.invalidDatas,function(p,d){d.length>0&&(h=!1)}),se(S.invalidSprites,function(p,d){d.length>0&&(h=!1)}),h&&(this.updateStepDuration=200)}}},a.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},a.prototype.requestFrame=function(){var t=this;this._frameRequested||(mh(function(){t.update()}),this._frameRequested=!0)},a.prototype.softInvalidate=function(t){var e=this;t.children.each(function(i){i instanceof te&&e.softInvalidate(i),i.measureFailed&&(ic(i,"Label")?i.hardInvalidate():i.invalidate(),i.measureFailed=!1)})},a.prototype.validatePositions=function(t){for(var e=S.invalidPositions[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())de(e,i);else try{i._systemValidatePositions()}catch(r){i.positionInvalid=!1,de(e,i),i.raiseCriticalError(r)}}},a.prototype.validateLayouts=function(t){for(var e=S.invalidLayouts[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())de(e,i);else try{i.children.each(function(r){r._systemValidateLayouts()}),i.validateLayout()}catch(r){i.layoutInvalid=!1,de(e,i),i.raiseCriticalError(r)}}},a.prototype.log=function(t){gg(t)},Object.defineProperty(a.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),a.VERSION="4.10.39",a})();var De=new vg;function xg(a,t,e){return t+(e-t)*a}function SP(a,t,e){return new xe(xg(a,t.percent,e.percent))}function CP(a,t,e){var i=new _e(hs(t.rgb,e.rgb,a));return t.alpha!=e.alpha&&(i.alpha=t.alpha+(e.alpha-t.alpha)*a),i}function bg(a,t){return t+a.charAt(0).toUpperCase()+a.substr(1)}var Kr=(function(){function a(t){this._disposer=new Fe(function(){for(;t.length!==0;)t[0].dispose()})}return a.prototype.isDisposed=function(){return this._disposer.isDisposed()},a.prototype.dispose=function(){this._disposer.dispose()},a})();var bi=(function(a){_(t,a);function t(e,i,r,n){var s=a.call(this)||this;return s.duration=0,s.easing=Lc,s.progress=0,s._loop=0,s._pause=!1,s._delayTimeout=null,s._time=0,s._isFinished=!1,s.className="Animation",Ce.animationsEnabled===!1&&(r=0),s.object=e,s.animationOptions=ph(i),s.duration=r,n&&(s.easing=n),s.applyTheme(),s}return t.prototype.debug=function(){},t.prototype.dispose=function(){a.prototype.dispose.call(this),this.pause()},t.prototype.delay=function(e){var i=this;if(e>0){this.pause(),zi(this.object.animations,this);var r=setTimeout(function(){i._delayTimeout=null,i.start()},e);this._delayTimeout=new Fe(function(){clearTimeout(r)})}return this},t.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,zi(De.animations,this),zi(this.object.animations,this),De.requestFrame()},t.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var e=this.animationOptions.length-1;e>=0;e--){var i=this.animationOptions[e];if(C(i.from)||(i.childObject?i.from=i.childObject[i.property]:(i.from=this.object[i.property],C(i.from)||(i.from=Mc[i.property]))),i.from==i.to)de(this.animationOptions,i);else if(!C(i.from)||!(i.from instanceof xe)&&i.to instanceof xe||i.from instanceof xe&&!(i.to instanceof xe))this.staticOptions.push(i),de(this.animationOptions,i);else if(x(i.to))if(i.updateMethod=xg,i.from instanceof xe){var r=this.object[bg(i.property,"pixel")];isNaN(r)?(this.staticOptions.push(i),de(this.animationOptions,i)):i.from=r}else isNaN(i.from)&&(this.staticOptions.push(i),de(this.animationOptions,i));else if(i.to instanceof _e)i.from?i.updateMethod=CP:(this.staticOptions.push(i),de(this.animationOptions,i));else if(i.to instanceof xe){if(i.updateMethod=SP,!isNaN(i.from)){var r=this.object[bg(i.property,"relative")];isNaN(r)||(i.from=W(r*100))}}else this.staticOptions.push(i),de(this.animationOptions,i)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),this.duration===0&&this.end(),this},t.prototype.loop=function(e){return x(e)||(e=1/0),this._loop=e,this},t.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),de(De.animations,this),de(this.object.animations,this),this},t.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},t.prototype.end=function(){if(this._loop==0&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var e={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",e)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},t.prototype.kill=function(){this.pause(),this._isFinished=!0},t.prototype.isFinished=function(){return this._isFinished},t.prototype.applyStaticOptions=function(){var e=this;K(this.staticOptions,function(i){i.childObject?i.childObject[i.property]=e.progress==1?i.to:i.from:e.object[i.property]=e.progress==1?i.to:i.from})},t.prototype.stop=function(e){if(this.pause(),!e&&this.events.isEnabled("animationstopped")){var i={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",i)}return this},t.prototype.setProgress=function(e){var i=this;if(this._time=this.duration*e,K(this.animationOptions,function(n){if(n.updateMethod&&C(n.from)){var s=n.updateMethod(e,n.from,n.to);n.childObject?n.childObject[n.property]=s:i.object[n.property]=s}}),this.progress=e,this.events.isEnabled("animationprogress")){var r={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",r)}De.requestFrame()},t.prototype.update=function(){if(!this._pause){var e=void 0;this._time=ee(Date.now()-this._startTime,0,this.duration);var i=this._time/this.duration;e=this.easing(i),(this.duration==0||!x(e)||i>=1)&&(e=1),this.setProgress(e),z(this._time/this.duration,6)==1&&this.end()}return this},Object.defineProperty(t.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),t.prototype.stopSameAnimations=function(){var e=this;K(Ya(this.object.animations),function(i){if(i!==e&&!i.delayed){var r=[];K(e.animationOptions,function(n){K(i.animationOptions,function(s){n.property==s.property&&n.childObject==s.childObject&&(r.push(s),i.animationOptions.length==0&&i.kill())})}),K(r,function(n){de(i.animationOptions,n)})}})},t.prototype.asFunction=function(e){return e=="easing"||a.prototype.asIs.call(this,e)},t})(ci);var Sg=new Ve;function Cg(a,t){t||(t="ampopup");var e=new ue,i=e.getFor("text"),r=e.getFor("background");r.alpha=.8;var n=e.getFor("alternativeBackground");n.alpha=.05;var s=Sg.insertKeyIfEmpty(t,function(){var o=new Me([new et(a,"."+t,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new et(a,"."+t+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new et(a,"."+t+"-header",{display:"block",width:"100%","min-height":"1.8em",background:n.rgba}),new et(a,"."+t+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new et(a,"."+t+"-content",{background:r.hex,"background-color":r.rgba,color:i.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new et(a,"."+t+"-inside",{padding:"1em"}),new et(a,"."+t+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new Xa(function(){Sg.removeKey(t),o.dispose()})});return s.increment()}var su=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.adapter=new Bt(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return t.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},t.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},t.prototype.dispose=function(){this.close(),a.prototype.dispose.call(this)},t.prototype.positionElement=function(e){var i=this;e===void 0&&(e=!0),this._elements.wrapper&&setTimeout(function(){if(i._elements.wrapper){if(e||!i._sized){i._elements.wrapper.style.opacity="0.01",i._elements.wrapper.style.left="0",i._elements.wrapper.style.top="0",i._elements.wrapper.style.margin="0 0 0 0",i._elements.wrapper.style.width="",i._elements.wrapper.style.height="";var r=i._elements.wrapper.getBoundingClientRect();i._elements.wrapper.style.width=r.width+"px",i._elements.wrapper.style.height=r.height+"px",i._sized=!0}if(i.dynamicResize)for(var n=i._elements.wrapper.getElementsByTagName("img"),s=0;s<n.length;s++){var o=n[s];if(!o.complete){o.addEventListener("load",function(){i.positionElement(!0)});break}}setTimeout(function(){if(i._elements.wrapper){var l;switch((e||!i._sized)&&i._bbox?l=i._bbox:(l=i._elements.wrapper.getBoundingClientRect(),i._elements.wrapper.style.opacity=""),i.align){case"left":i._elements.wrapper.style.left="0",i._elements.wrapper.style.right="auto",i._elements.wrapper.style.marginLeft=i.toStyle(i._shift.x+i._tempShift.x);break;case"center":i._elements.wrapper.style.left="50%",i._elements.wrapper.style.right="auto",i._elements.wrapper.style.marginLeft=i.toStyle(Math.round(-l.width/2)+(i._shift.x+i._tempShift.x));break;case"right":i._elements.wrapper.style.left="auto",i._elements.wrapper.style.right="0",i._elements.wrapper.style.marginLeft=i.toStyle(i._shift.x+i._tempShift.x);break;default:i._elements.wrapper.style.left=i.toStyle(i.left)||"auto",i._elements.wrapper.style.right=i.toStyle(i.right)||"auto",i._elements.wrapper.style.marginLeft=i.toStyle(i._shift.x+i._tempShift.x);break}switch(i.verticalAlign){case"top":i._elements.wrapper.style.top="0",i._elements.wrapper.style.bottom="auto",i._elements.wrapper.style.marginTop=i.toStyle(i._shift.y+i._tempShift.y);break;case"middle":i._elements.wrapper.style.top="50%",i._elements.wrapper.style.bottom="auto",i._elements.wrapper.style.marginTop=i.toStyle(Math.round(-l.height/2)+(i._shift.y+i._tempShift.y));break;case"bottom":i._elements.wrapper.style.top="auto",i._elements.wrapper.style.bottom="0",i._elements.wrapper.style.marginTop=i.toStyle(i._shift.y+i._tempShift.y);break;default:i._elements.wrapper.style.top=i.toStyle(i.top)||"auto",i._elements.wrapper.style.bottom=i.toStyle(i.bottom)||"auto",i._elements.wrapper.style.marginTop=i.toStyle(i._shift.y+i._tempShift.y);break}}},1)}},1)},t.prototype.setupDragging=function(){var e=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",function(i){e._tempShift.x=i.shift.x,e._tempShift.y=i.shift.y,e.positionElement(!1)}),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",function(i){e._shift.x+=e._tempShift.x,e._shift.y+=e._tempShift.y,e._tempShift.x=0,e._tempShift.y=0,e.positionElement(!1)})):this._IOs.header&&(me().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},t.prototype.toStyle=function(e){return C(e)?x(e)?""+e+"px":e.toString():null},Object.defineProperty(t.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(e){this._classPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(e){this._content!=e&&(this._content=e,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=e,this.positionElement())},enumerable:!0,configurable:!0}),t.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},t.prototype.createContentElement=function(){if(!this._elements.wrapper){var e=this.getClassNames(),i=document.createElement("div");i.className=e.contentClass,i.style.opacity="0.01";var r=document.createElement("a");r.className=e.closeClass;var n=document.createElement("div");n.className=e.headerClass;var s=document.createElement("div");s.innerHTML=this.title,s.className=e.titleClass,this.title||(s.style.display="none");var o=document.createElement("div");o.className=e.insideClass,o.innerHTML=this.content,this._IOs.wrapper=me().getInteraction(i),this._IOs.header=me().getInteraction(n),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=me().getInteraction(r),this._disposers.push(this._IOs.close),r.style.visibility="hidden",i.setAttribute("role","dialog"),n.appendChild(r),n.appendChild(s),i.appendChild(n),i.appendChild(o),this.container.appendChild(i),this._elements.wrapper=i,this._elements.header=n,this._elements.content=o,this._elements.title=s,this._elements.close=r,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(t.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(e){this._title!=e&&(this._title=e,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=e,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",this._readerTitle!=""?this._readerTitle:this.title)},set:function(e){this._readerTitle!=e&&(this._readerTitle=e,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(e){e!==this._closable&&(this._closable=e,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(e){e!=this._fitTo&&(this._fitTo=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(e){this._showCurtain!=e&&(this._showCurtain=e,this._elements.curtain&&(this._elements.curtain.style.display=e?"block":"none"))},enumerable:!0,configurable:!0}),t.prototype.createCurtainElement=function(){var e=this.getClassNames(),i=document.createElement("div");i.className=e.curtainClass,this.container.appendChild(i),this._IOs.curtain=me().getInteraction(i),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),i.style.display=this.showCurtain?"block":"none",this._elements.curtain=i},Object.defineProperty(t.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(e){this._draggable!=e&&(this._draggable=e,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(e){this._dynamicResize!=e&&(this._dynamicResize=e,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(e){this._align!=e&&(this._align=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(e){this._verticalAlign!=e&&(this._verticalAlign=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(e){this.left!=e&&(this._left=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(e){this.right!=e&&(this._right=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(e){this.top!=e&&(this._top=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(e){this.bottom!=e&&(this._bottom=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),t.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(Cg(Io(this.container),this.classPrefix)),se(this._elements,function(e,i){i.style.display=""}),this._cssLoaded=!0)},t.prototype.applyEvents=function(){var e=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var i=[me().body.events.on("keyup",function(r){Gi.isKey(r.event,"esc")&&e.closable&&e.close()}),this._IOs.close.events.on("hit",function(r){e.close()})];i.push(this._IOs.curtain.events.on("hit",function(r){e.showCurtain&&e.closable&&e.close()})),this._disposers.push(new Me(i))}else this._IOs.close.element.style.visibility="hidden"},t.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},t.prototype.releasePointers=function(){C(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},t.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},t})(ci);var ou=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.adapter=new Bt(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return t})(su);var wP=(function(){function a(){var t=this;this._targets=[],this._observer=new ResizeObserver(function(e){K(e,function(i){K(t._targets,function(r){r.target===i.target&&r.callback()})})})}return a.prototype.addTarget=function(t,e){this._observer.observe(t,{box:"content-box"}),this._targets.push({target:t,callback:e})},a.prototype.removeTarget=function(t){this._observer.unobserve(t),Yd(this._targets,function(e){return e.target!==t})},a})(),PP=(function(){function a(){this._targets=[]}return a.prototype.addTarget=function(t,e){var i=this;if(this._targets.length===0){var r=null,n=function(){var o=Date.now();(r===null||o>r+a.delay)&&(r=o,K(i._targets,function(l){var u=l.target.getBoundingClientRect();(u.width!==l.size.width||u.height!==l.size.height)&&(l.size=u,l.callback())})),i._timer=requestAnimationFrame(n)};this._timer=requestAnimationFrame(n)}var s=t.getBoundingClientRect();this._targets.push({target:t,callback:e,size:s})},a.prototype.removeTarget=function(t){Yd(this._targets,function(e){return e.target!==t}),this._targets.length===0&&cancelAnimationFrame(this._timer)},a.delay=200,a})(),Eh=null;function _P(){return Eh===null&&(typeof ResizeObserver<"u"?Eh=new wP:Eh=new PP),Eh}var wg=(function(){function a(t,e){this._disposed=!1,this._sensor=_P(),this._element=t,this._sensor.addTarget(t,e)}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(a.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),a.prototype.reset=function(){Vo("resizeSensor.reset() is no longer needed and can be removed")},a})();var kh=[],lu=(function(){function a(t,e){var i=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=t,e||(this._printing=!1,this.initSensor(),this._disposers.push(_t(window,"beforeprint",function(){i._printing=!0})),this._disposers.push(_t(window,"afterprint",function(){i._printing=!1}))),kh.push(this);var r=document.createElement("div"),n=r.style;n.width="100%",n.height="100%",n.position="relative",t.appendChild(r),this.SVGContainer=r}return a.prototype.initSensor=function(){var t=this;this.resizeSensor&&this.resizeSensor.dispose();var e=function(){t.autoResize&&!t._printing&&t.measure()};this.resizeSensor=new wg(this.htmlElement,e),this._disposers.push(this.resizeSensor)},a.prototype.measure=function(){var t=mc(this.htmlElement),e=yc(this.htmlElement),i=this.container;i&&((this.width!=t||this.height!=e)&&(this.width=t,this.height=e,t>0&&(i.maxWidth=t),e>0&&(i.maxHeight=e),Cc(this.SVGContainer)),i.maxWidth||(i.maxWidth=0),i.maxHeight||(i.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(a.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||de(kh,this),K(this._disposers,function(t){t.dispose()})},Object.defineProperty(a.prototype,"hideOverflow",{set:function(t){t?this.SVGContainer.style.overflow="hidden":this.SVGContainer.style.overflow=""},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"modal",{get:function(){return C(this._modal)||(this._modal=new ou,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),a.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e||"",i.title=e||"",i.open(),i},a.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(a.prototype,"popups",{get:function(){if(!C(this._popups)){var t=new su;t.container=this.SVGContainer,this._popups=new We(t),this._disposers.push(new Ie(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),a.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,C(e)&&(i.title=e),i.open(),i},a.prototype.closeAllPopups=function(){this.popups.each(function(t){t.close()})},Object.defineProperty(a.prototype,"readerAlertElement",{get:function(){if(!C(this._readerAlertElement)){var t=document.createElement("div");t.setAttribute("role","alert"),t.style.zIndex="-100000",t.style.opacity="0",t.style.position="absolute",t.style.top="0",this.SVGContainer.appendChild(t),this._readerAlertElement=t}return this._readerAlertElement},enumerable:!0,configurable:!0}),a.prototype.readerAlert=function(t){this.readerAlertElement.innerHTML=t},a.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&i!=="none"){var r=i.split("(")[1].split(")")[0].split(","),n=Number(r[0]),s=Number(r[1]),o=Math.sqrt(n*n+s*s);isNaN(o)||(this.cssScale*=o)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},a})();var Vh=(function(){function a(t,e){this.container=t,this.id=e;var i=document.createElementNS(wn,"svg");i.setAttribute("version","1.1"),i.setAttributeNS(bc,"xmlns",wn),i.setAttributeNS(bc,"xmlns:xlink",Oo),i.setAttribute("role","group"),this.container.appendChild(i),this.defs=document.createElementNS(wn,"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return a.prototype.add=function(t){return new Pn(t)},a.prototype.addGroup=function(t){return new Pc(t)},a.prototype.append=function(t){t&&this.svg.appendChild(t.node)},a.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},a.prototype.foreignObject=function(){var t=new Pn("foreignObject");return t},a.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},a})();var qc=null;function da(){if(qc===null){var a=document.createElement("div");a.hidden=!0,a.style.width="1px",a.style.height="1px",a.style.position="absolute",a.style.zIndex="-1000000",document.body.appendChild(a);var t=new lu(a,!0);qc=new Vh(t.SVGContainer,"ghost")}return qc}var ca=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._elements=new we,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var i=new ue;return e.backgroundFill=i.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=i.getFor("alternativeBackground"),e.stroke=i.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+S.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new Ie(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return t.prototype.draw=function(){var e=this,i=this.element;if(i){i.removeChildNodes();var r=this.paper.add("rect");r.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":0}),i.add(r),i.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),j(this._elements.iterator(),function(n){n.rotation=e.rotation,n.rotationX=e.properties.rotationX,n.rotationY=e.properties.rotationY,e.element.add(n)})}},t.prototype.animate=function(e,i,r){return new bi(this,e,i,r).start()},t.prototype.addElement=function(e){this._elements.push(e),this._disposers.push(e)},t.prototype.removeElement=function(e){this._elements.removeValue(e),this.removeDispose(e)},Object.defineProperty(t.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(e){this.properties.fillOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this.properties.fill},set:function(e){this.properties.fill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(e){this.properties.backgroundFill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(e){this.properties.backgroundOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(e){this.properties.strokeOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(e){this.properties.shapeRendering=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(e){this.properties.rotation=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(e){this.properties.patternUnits=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.properties.x},set:function(e){this.properties.x=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.properties.y},set:function(e){this.properties.y=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paper",{get:function(){return this._paper?this._paper:da()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;a.prototype.copyFrom.call(this,e),se(e.properties,function(r,n){i[r]=n})},Object.defineProperty(t.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Kr(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(e){this.properties.strokeDashArray=e,this.draw()},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){if(e&&C(e.elements)&&Je(e.elements))for(var i=0,r=e.elements.length;i<r;i++){var n=e.elements[i];if(C(n.type)){var s=this.createEntryInstance(n);s instanceof Tt&&(s.config=n),this.addElement(C(n.typeProperty)?s[n.typeProperty]:s.element)}}a.prototype.processConfig.call(this,e)},t})(Tt);S.registeredClasses.Pattern=ca;var fi=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._stops=new we,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+S.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return t.prototype.validate=function(){var e=this,i=(this._rotation+90)*uo,r=Math.round(50+Math.sin(i+Math.PI)*50)+"%",n=Math.round(50+Math.cos(i)*50)+"%",s=Math.round(50+Math.sin(i)*50)+"%",o=Math.round(50+Math.cos(i+Math.PI)*50)+"%",l=this.element;l.removeChildNodes(),l.attr({x1:r,x2:s,y1:n,y2:o}),j(Gr(this._stops.iterator()),function(u){var h=u[0],p=u[1],d=p.offset;x(d)||(d=h/(e._stops.length-1));var c=e.paper.add("stop");C(p.color)&&c.attr({"stop-color":p.color.toString()}),x(p.opacity)&&c.attr({"stop-opacity":p.opacity}),x(d)&&c.attr({offset:d}),l.add(c)})},t.prototype.clear=function(){this._stops.clear()},t.prototype.addColor=function(e,i,r){this._stops.push({color:e,opacity:i,offset:r})},Object.defineProperty(t.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paper",{get:function(){return this._paper?this._paper:da()},set:function(e){this._paper!=e&&(this._paper=e,this.validate(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(t.prototype,"gradientUnits",{set:function(e){this.element.attr({gradientUnits:e})},enumerable:!0,configurable:!0}),t})(Tt);S.registeredClasses.LinearGradient=fi;var yr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._stops=new we,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+S.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return t.prototype.draw=function(){var e=this,i=this.element;if(x(this.cx)){var r=this.cx;r instanceof xe&&(r=r.percent+"%"),i.attr({cx:r})}if(x(this.cy)){var r=this.cy;r instanceof xe&&(r=r.percent+"%"),i.attr({cy:r})}if(this.fx){var r=this.fx;r instanceof xe&&(r=r.percent+"%"),i.attr({fx:r})}if(this.fy){var r=this.fy;r instanceof xe&&(r=r.percent+"%"),i.attr({fy:r})}i.removeChildNodes(),j(Gr(this._stops.iterator()),function(n){var s=n[0],o=n[1],l=o.offset;x(l)||(l=s/(e._stops.length-1));var u=e.paper.add("stop");C(o.color)&&u.attr({"stop-color":o.color.toString()}),x(o.opacity)&&u.attr({"stop-opacity":o.opacity}),x(l)&&u.attr({offset:l}),i.add(u)})},t.prototype.addColor=function(e,i,r){this._stops.push({color:e,opacity:i,offset:r}),this.draw()},Object.defineProperty(t.prototype,"paper",{get:function(){return this._paper?this._paper:da()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cx",{get:function(){return this._cx},set:function(e){this._cx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cy",{get:function(){return this._cy},set:function(e){this._cy=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fx",{get:function(){return this._fx},set:function(e){this._fx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fy",{get:function(){return this._fy},set:function(e){this._fy=e,this.draw()},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(t.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._stops.clear()},t})(Tt);S.registeredClasses.RadialGradient=yr;var Mo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return t.prototype.format=function(e,i,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Ui);var n=r||this._baseUnit;(typeof i>"u"||i==="")&&(C(this.durationFormat)?i=this.durationFormat:i=this.getFormat(qe(e),null,n)),i=Cn(i);var s=this.parseFormat(i,n),o=Number(e),l;o>this._negativeBase?l=s.positive:o<this._negativeBase?l=s.negative:l=s.zero;var u=this.applyFormat(o,l);return l.color!==""&&(this._outputFormat==="svg"?u="<tspan fill='"+l.color+"'>"+u+"</tspan>":this._outputFormat==="html"&&(u="<span style='color: "+l.color+";'>"+u+"</span>")),u},t.prototype.parseFormat=function(e,i){var r=this,n=this.getCache(e);if(C(n))return n;var s=i||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1}};e=e.replace("||",Za);var l=e.split("|");return o.positive.source=l[0],typeof l[2]>"u"?o.zero=o.positive:o.zero.source=l[2],typeof l[1]>"u"?o.negative=o.positive:o.negative.source=l[1],se(o,function(u,h){if(!h.parsed){if(typeof r.getCache(h.source)<"u"){o[u]=r.getCache(h.source);return}var p=h.source,d=[];d=h.source.match(/^\[([^\]]*)\]/),d&&d.length&&d[0]!==""&&(p=h.source.substr(d[0].length),h.color=d[1]);for(var c=ar().chunk(p,!0),f=0;f<c.length;f++){var m=c[f];if(m.text=m.text.replace(Za,"|"),m.type==="value"){m.text.match(/[yYMdDwhHKkmsSn]+a/)&&(h.absolute=!0,m.text=m.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var y=m.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(y)for(var g=0;g<y.length;g++)C(y[g])||(y[g]=r._unitAliases[y[g]]),h.parts.push(y[g]),m.text=m.text.replace(y[g],vi)}h.template+=m.text}r.setCache(h.source,h),h.parsed=!0}}),this.setCache(e,o),o},t.prototype.applyFormat=function(e,i){var r=!i.absolute&&e<this._negativeBase;e=Math.abs(e);for(var n=this.toTimeStamp(e,i.baseUnit),s=i.template,o=0,l=i.parts.length;o<l;o++){var u=i.parts[o],h=this.toTimeUnit(u.substr(0,1)),p=u.length,d=Math.floor(n/this._unitValues[h]);s=s.replace(vi,di(d,p,"0")),n-=d*this._unitValues[h]}return r&&(s="-"+s),s},t.prototype.toTimeStamp=function(e,i){return e*this._unitValues[i]},t.prototype.toTimeUnit=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},t.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(t.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),t.prototype.getFormat=function(e,i,r){if(C(this.durationFormat))return this.durationFormat;if(r||(r=this.baseUnit),C(i)&&e!=i){e=Math.abs(e),i=Math.abs(i);var n=this.getValueUnit(fe(e,i),r);return this.durationFormats[r][n]}else{var s=this.getValueUnit(e,r);return this.durationFormats[r][s]}},t.prototype.getValueUnit=function(e,i){i||(i=this.baseUnit);var r,n=this.getMilliseconds(e,i);return ec(this._unitValues,function(s,o){if(s==i||r){var l=n/o;if(l<=1)return r||(r=s),!1;r=s}return!0}),r},t.prototype.getMilliseconds=function(e,i){return i||(i=this.baseUnit),e*this._unitValues[i]},Object.defineProperty(t.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(e){this._durationFormat!=e&&(this._durationFormat=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(e){this._durationFormats=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),t})(Tt);S.registeredClasses.DurationFormatter=Mo;var Pg=new Ve;function _g(a,t){var e=t||"amexport",i=new ue,r=Pg.insertKeyIfEmpty(e,function(){var n=new Me([new et(a,"."+e+"-menu *",{"box-sizing":"border-box"}),new et(a,"."+e+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new et(a,"."+e+"-menu-level-0."+e+"-left",{right:"auto",left:"5px"}),new et(a,"."+e+"-menu-level-0."+e+"-right",{right:"5px",left:"auto"}),new et(a,"."+e+"-menu-level-0."+e+"-top",{top:"5px",bottom:"auto"}),new et(a,"."+e+"-menu-level-0."+e+"-bottom",{top:"auto",bottom:"5px"}),new et(a,"."+e+"-item."+e+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new et(a,"div:hover > div > ."+e+"-menu ."+e+"-item."+e+"-item-level-0, ."+e+"-item."+e+"-item-level-0.active",{opacity:"0.9"}),new et(a,"."+e+"-item."+e+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new et(a,"."+e+"-item."+e+"-item-level-0:before",{display:"block"}),new et(a,"."+e+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":i.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:i.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new et(a,"."+e+"-left ."+e+"-item",{margin:"1px 0 0 1px"}),new et(a,"."+e+"-item:hover, ."+e+"-item.active",{background:i.getFor("secondaryButtonHover").hex,color:i.getFor("secondaryButtonText").hex}),new et(a,"."+e+"-item > ."+e+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new et(a,"."+e+"-left ."+e+"-item > ."+e+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new et(a,"."+e+"-right ."+e+"-item > ."+e+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new et(a,"."+e+"-top ."+e+"-item > ."+e+"-menu",{top:"-1px",bottom:"auto"}),new et(a,"."+e+"-bottom ."+e+"-item > ."+e+"-menu",{top:"auto",bottom:"0"}),new et(a,"."+e+"-item > ."+e+"-menu",{display:"none"}),new et(a,"."+e+"-item:hover > ."+e+"-menu, ."+e+"-item.active > ."+e+"-menu",{display:"block"}),new et(a,"."+e+"-item:hover > ."+e+"-menu > ."+e+"-item, ."+e+"-item.active > ."+e+"-menu > ."+e+"-item",{opacity:"1"}),new et(a,"."+e+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new et(a,"."+e+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new et(a,"."+e+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new et(a,"."+e+"-item-level-0 > ."+e+"-icon",{padding:"0.1em 0.2em"}),new et(a,"."+e+"-clickable",{cursor:"pointer"})]);return new Xa(function(){Pg.removeKey(e),n.dispose()})});return r.increment()}var uu=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._validateDisposer=null,e}return t.prototype.invalidate=function(){this._validateDisposer===null&&(this._validateDisposer=S.events.on("exitframe",this.validate,this))},t.prototype.validate=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null)},t.prototype.dispose=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null),a.prototype.dispose.call(this)},t})(ci);var zc=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.adapter=new Bt(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new st,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return t.prototype.validate=function(){this.draw(),a.prototype.validate.call(this)},t.prototype.draw=function(){var e=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),Ze(this._container).appendChild(this._element);for(var i=this.adapter.apply("items",{items:this._items}).items,r=i.length,n=0;n<r;n++)this.drawBranch(this._element,i[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(me().body.events.on("down",function(s){s.pointer.touch||(e._ignoreNextClose=!1),e.close()})),this._disposers.push(me().body.events.on("keydown",function(s){var o=Gi.getEventKey(s.event);switch(o){case"esc":e.close();break;case"up":case"down":case"left":case"right":e._currentSelection&&s.event.preventDefault(),e.moveSelection(o);break}})),this.defaultStyles&&this.loadDefaultCSS()},t.prototype.drawBranch=function(e,i,r){var n=this;if(i=this.adapter.apply("branch",{branch:i,level:r}).branch,i.unsupported!==!0){i.ascendants||(i.ascendants=new we);var s=i.type,o=this.createItemElement(r,s),l;i.icon?(l=this.createIconElement(r,s),l.src=i.icon,(i.label||i.title)&&(l.title=i.title||i.label)):i.svg?(l=this.createSvgElement(r,s,i.svg),(i.label||i.title)&&(l.title=i.title||i.label)):(l=this.createLabelElement(r,s),l.innerHTML=i.label?this.language.translate(i.label):"",i.title&&(l.title=i.title));var u=this.getReaderLabel(i,l.innerHTML);l.setAttribute("aria-label",u),o.appendChild(l),i.interactions=me().getInteraction(o),i.element=o,this.typeClickable(s)&&(i.interactions.events.on("hit",function(y){if(n.events.isEnabled("hit")&&!n.isDisposed()){var g={type:"hit",event:y.event,target:n,branch:i};n.events.dispatchImmediately("hit",g)}}),i.interactions.events.on("keyup",function(y){if(Gi.isKey(y.event,"enter")&&n.events.isEnabled("enter")){var g={type:"enter",event:y.event,target:n,branch:i};n.events.dispatchImmediately("enter",g)}}));{var h=this.getSubMenu(i);h!=null&&(i.interactions.events.on("keyup",function(y){Gi.isKey(y.event,"enter")&&(n.selectBranch(h[0]),n.setFocus(h[0]))}),i.interactions.events.on("hit",function(y){n.selectBranch(i)}))}i.interactions.events.on("over",function(y){if(y.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(i),n.events.isEnabled("over")){var g={type:"over",event:y.event,target:n,branch:i};n.events.dispatchImmediately("over",g)}}),i.interactions.events.on("out",function(y){if(!n.isDisposed()&&(y.pointer.touch||n.delayUnselectBranch(i),n.events.isEnabled("out"))){var g={type:"out",event:y.event,target:n,branch:i};n.events.dispatchImmediately("out",g)}}),i.interactions.events.on("focus",function(y){n.selectBranch(i)}),i.interactions.events.on("blur",function(y){n.delayUnselectBranch(i)});var p=r+1;if(i.menu){var d=this.createMenuElement(p);i.submenuElement=d;for(var c=i.menu.length,f=0;f<c;f++){var m=new we;i.menu[f].ascendants=m,i.ascendants.length&&m.copyFrom(i.ascendants),m.push(i),this.drawBranch(d,i.menu[f],p)}if(d.innerHTML=="")return;o.appendChild(d)}i.hidden&&this.hideBranch(i),i.id&&o.setAttribute("id",i.id),i.color&&(o.style.backgroundColor=i.color.hex),e.appendChild(o)}},t.prototype.createMenuElement=function(e){var i=document.createElement(this.menuTag);return i.className=this.getMenuItemClass(e),e===0?i.setAttribute("role","menubar"):i.setAttribute("role","menu"),i},t.prototype.getMenuItemClass=function(e){var i=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+e;return e===0&&(i+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:i,level:e}).className},t.prototype.createItemElement=function(e,i){var r=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+e+" "+this.classPrefix+"-item-"+(i||"blank");return r.className=this.adapter.apply("itemClass",{className:n,level:e,type:i}).className,r.setAttribute("role","menuitem"),r.setAttribute("tabindex",this.tabindex.toString()),r},t.prototype.createLabelElement=function(e,i){var r=document.createElement(this.labelTag),n=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+e+" "+this.classPrefix+"-item-"+(i||"blank");return this.typeClickable(i)&&(n+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:n,level:e,type:i}).className,r},t.prototype.createIconElement=function(e,i){var r=document.createElement(this.iconTag),n=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(i||"blank");return this.typeClickable(i)&&(n+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:n,level:e,type:i}).className,r.setAttribute("tabindex",this.tabindex.toString()),r.setAttribute("role","menuitem"),r},t.prototype.createSvgElement=function(e,i,r){var n=new DOMParser,s=n.parseFromString(r,"image/svg+xml").documentElement,o=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(i||"blank");return this.typeClickable(i)&&(o+=" "+this.classPrefix+"-clickable"),s.setAttribute("class",this.adapter.apply("labelClass",{className:o,level:e,type:i}).className),s.setAttribute("tabindex",this.tabindex.toString()),s.setAttribute("role","menuitem"),s},t.prototype.dispose=function(){this._disposed||(a.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},t.prototype.typeClickable=function(e){return C(e)},t.prototype.hasSubMenu=function(e){return!!(e.menu&&e.menu.length)},t.prototype.getSubMenu=function(e){if(e.menu&&e.menu.length)return e.menu},t.prototype.getReaderLabel=function(e,i){return i=Sh(i),e.ascendants.length==0?(i=i=="..."?this.language.translate("Export"):i,i+=" ["+this.language.translate("Press ENTER or use arrow keys to navigate")+"]"):this.hasSubMenu(e)?i+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":e.type=="print"?i=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(e.type)&&(i=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,i)),this.adapter.apply("rederLabel",{label:i,branch:e}).label},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(e){this._container=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tag",{set:function(e){this._menuTag=e,this._itemTag=e=="ul"?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(e){this._align=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(e){this._verticalAlign=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(e){this._classPrefix=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e,e&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.loadDefaultCSS=function(){this._disposers.push(_g(Io(this.container),this.classPrefix)),this._element&&(this._element.style.display="")},Object.defineProperty(t.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(e){this._tabindex=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){var e=this,i=this._language.get();return i==null&&(i=new Ui,this._language.set(i,i.events.on("localechanged",function(r){e.invalidate()}))),i},set:function(e){var i=this;this._language.set(e,e.events.on("localechanged",function(r){i.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.close=function(){var e=this;if(!this.isDisposed()){if(this._ignoreNextClose){this._ignoreNextClose=!1;return}if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout(function(){e._element.style.pointerEvents="auto"},100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var i=this._element.getElementsByClassName("active"),r=i.length,n=r-1;n>=0;n--)i[n]&&Fo(i[n],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},t.prototype.selectBranch=function(e){var i=this;if(!this.isDisposed()&&(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),Do(e.element,"active"),e.submenuElement&&e.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==e&&this._currentSelection.ascendants&&j(Qy($a([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(n){!e.ascendants.contains(n)&&e!==n&&i.unselectBranch(n,!0)}),j(e.ascendants.iterator(),function(n){n.closeTimeout&&(i.removeDispose(n.closeTimeout),n.closeTimeout=void 0),Do(n.element,"active")}),this._currentSelection=e,this.events.isEnabled("branchselected"))){var r={type:"branchselected",target:this,branch:e};this.events.dispatchImmediately("branchselected",r)}},t.prototype.unselectBranch=function(e,i){if(!this.isDisposed()&&(Fo(e.element,"active"),e.submenuElement&&e.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==e&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))){var r={type:"branchunselected",target:this,branch:e};this.events.dispatchImmediately("branchunselected",r)}},t.prototype.delayUnselectBranch=function(e,i){var r=this;this.isDisposed()||(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),e.closeTimeout=this.setTimeout(function(){r.unselectBranch(e,i)},this.closeDelay),i!==!0&&e.ascendants&&j(e.ascendants.iterator(),function(n){r.delayUnselectBranch(n,!0)}))},t.prototype.moveSelection=function(e){if(!this.isDisposed()&&this._currentSelection){var i;if(e=="up")i=this.getPrevSibling(this._currentSelection);else if(e=="down")i=this.getNextSibling(this._currentSelection);else if(e=="left"&&this.align=="right"||e=="right"&&this.align=="left"){var r=this.getSubMenu(this._currentSelection);r!=null&&(i=r[0])}else(e=="right"&&this.align=="right"||e=="left"&&this.align=="left")&&(i=this.getParentItem(this._currentSelection));i&&i!==this._currentSelection&&(this.selectBranch(i),this.setFocus(i),this._currentSelection=i)}},t.prototype.getSiblings=function(e){var i=this.getParentItem(e);return i&&i.menu?i.menu:[]},t.prototype.getParentItem=function(e){if(e.ascendants&&e.ascendants.length)return e.ascendants.getIndex(e.ascendants.length-1)},t.prototype.getNextSibling=function(e){var i=this.getSiblings(e);if(i.length>1){var r=i.indexOf(e)+1;return r=i.length==r?0:r,i[r].unsupported?this.getNextSibling(i[r]):i[r]}else return e},t.prototype.getPrevSibling=function(e){var i=this.getSiblings(e);if(i.length>1){var r=i.indexOf(e)-1;return r=r==-1?i.length-1:r,i[r].unsupported?this.getPrevSibling(i[r]):i[r]}else return e},t.prototype.setFocus=function(e){if(e.interactions)try{e.interactions.element.focus()}catch{}},t.prototype.setBlur=function(e){if(e.interactions)try{e.interactions.element.blur()}catch{}},t.prototype.hideBranch=function(e){e.element.style.display="none"},t.prototype.showBranch=function(e){e.element.style.display=""},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t})(uu);function No(a,t,e){return new Promise(function(i,r){var n=C(e)&&e.responseType=="blob",s=new XMLHttpRequest;if(s.onload=function(){if(s.status===200){var u=void 0,h;if(n){h=s.response,TP(h).then(function(d){var c={xhr:s,error:!1,response:d,blob:h,type:s.getResponseHeader("Content-Type"),target:t};i(c)});return}else u=s.responseText||s.response;var p={xhr:s,error:!1,response:u,blob:h,type:s.getResponseHeader("Content-Type"),target:t};i(p)}else r({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:t})},s.onerror=function(){r({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:t})},s.open("GET",a,!0),e&&e.withCredentials&&(s.withCredentials=!0),C(e)){if(C(e.requestHeaders))for(var o=0;o<e.requestHeaders.length;o++){var l=e.requestHeaders[o];s.setRequestHeader(l.key,l.value)}C(e.responseType)&&(s.responseType=e.responseType)}s.send()})}function TP(a){return new Promise(function(t,e){var i=new FileReader;i.onload=function(r){t(i.result)},i.onerror=function(r){e(r)},i.readAsText(a)})}var Uc;function $P(){return ct(this,void 0,void 0,function(){var a,t,e,i;return Ue(this,function(r){switch(r.label){case 0:return[4,Promise.all([import("./YAVQSNZ6.js"),import("./DXMV5YU3.js")])];case 1:return a=r.sent(),t=a[0].default||a[0],e=a[1].default||a[1],i=window,i.pdfMake=i.pdfMake||{},i.pdfMake.vfs=e,t.vfs=e,[2,t]}})})}var Tg=/src: ([^;]+);/;function OP(){return window.navigator.msSaveOrOpenBlob!=null}function DP(a){return new Promise(function(t,e){var i=new FileReader;i.onload=function(r){t(i.result)},i.onerror=function(r){e(r)},i.readAsDataURL(a)})}function FP(a){return ct(this,void 0,void 0,function(){var t,e;return Ue(this,function(i){switch(i.label){case 0:t=a.sheet,i.label=1;case 1:return i.trys.push([1,2,,4]),[2,t.cssRules];case 2:return e=i.sent(),[4,new Promise(function(r,n){a.addEventListener("load",function(){r(t.cssRules)},!0),a.addEventListener("error",function(s){n(s)},!0),setTimeout(function(){n(new Error("Timeout while waiting for <style> to load"))},1e4)})];case 3:return[2,i.sent()];case 4:return[2]}})})}function $g(a,t,e){return ct(this,void 0,void 0,function(){var i,r,n,s;return Ue(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,No(t)];case 1:return i=o.sent(),[3,3];case 2:return r=o.sent(),console.error("Failed to load stylesheet",t,r),[2];case 3:n=a.createElement("style"),n.textContent=i.response,Ce.nonce!=""&&n.setAttribute("nonce",Ce.nonce),a.head.appendChild(n),o.label=4;case 4:return o.trys.push([4,,7,8]),[4,FP(n)];case 5:return s=o.sent(),[4,Og(a,t,s,e)];case 6:return o.sent(),[3,8];case 7:return a.head.removeChild(n),[7];case 8:return[2]}})})}function Og(a,t,e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l;return Ue(this,function(u){switch(u.label){case 0:for(r=[],n=e.length,s=0;s<n;s++)o=e[s],o.type===CSSRule.IMPORT_RULE?(l=o.href,l&&(l=Xl(t,l),r.push($g(a,l,i)))):i(t,o);return r.length?[4,Promise.all(r)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}})})}function IP(a){return ct(this,void 0,void 0,function(){var t,e;return Ue(this,function(i){switch(i.label){case 0:t=document.createElement("iframe"),t.src="about:blank",t.setAttribute("title",""),document.head.appendChild(t),i.label=1;case 1:return i.trys.push([1,,3,4]),e=t.contentDocument,[4,Promise.all(Ga(document.styleSheets,function(r){var n=r.href;return n==null?Og(e,location.href,r.cssRules,a):(n=Xl(location.href,n),$g(e,n,a))}))];case 2:return i.sent(),[3,4];case 3:return document.head.removeChild(t),[7];case 4:return[2]}})})}var Gc=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i.adapter=new Bt(i),i._formatOptions=new Ve,i._extraSprites=[],i._validateSprites=[],i.dataFieldsOrder=[],i._dynamicDataFields=!0,i._removedObjects=new we,i._hiddenObjects=[],i._objectsAlreadyHidden=!1,i._filePrefix="amCharts",i.useWebFonts=!0,i.useRetina=!0,i.useSimplifiedExport=!0,i.timeoutDelay=2e3,i._exportRunning=!1,i._prevHasData=!1,i._container=e,i.className="Export",i._formatOptions.setKey("png",{}),i._formatOptions.setKey("jpg",{quality:.8}),i._formatOptions.setKey("gif",{}),i._formatOptions.setKey("svg",{}),i._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),i._formatOptions.setKey("json",{indent:2,useLocale:!0}),i._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:"",addBOM:!0}),i._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),i._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),i.adapter.add("options",function(r){var n=i._formatOptions.getKey(r.type);return r.options?r.options=Bl(n,r.options):r.options=n,r}),i.applyTheme(),i.dispatchImmediately("inited"),i}return Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(e){var i=this;this._menu&&this.removeDispose(this._menu),this._menu=e,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",function(r){return r.branch.unsupported=!i.typeSupported(r.branch.type),r}),this._menu.events.on("hit",function(r){i.export(r.branch.type,r.branch.options),i.menu.close()}),this._menu.events.on("enter",function(r){i.export(r.branch.type,r.branch.options),i.menu.close()}),this._menu.events.on("over",function(r){i._disablePointers()}),this._menu.events.on("out",function(r){setTimeout(function(){i._releasePointers()},10)}),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",function(r){return r.classPrefix=Ce.classNamePrefix+r.classPrefix,r}),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),t.prototype.typeSupported=function(e){var i=!0,r=this.getFormatOptions(e);return C(r)&&r.disabled?i=!1:e==="pdf"||(e==="xlsx"?i=!!this._hasData():(e=="print"&&!window.print||["json","csv","html","pdfdata"].indexOf(e)!==-1&&!this._hasData())&&(i=!1)),this.adapter.apply("supported",{supported:i,type:e}).supported},t.prototype._hasData=function(){return this.data&&this.data.length},t.prototype._getFunction=function(e){switch(e){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},t.prototype.export=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l,u=this;return Ue(this,function(h){switch(h.label){case 0:return e=="custom"?(this.handleCustom(i),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(r={type:"exportstarted",target:this,format:e,options:i},this.events.dispatchImmediately("exportstarted",r)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout(function(){if(u.events.isEnabled("exporttimedout")){var p={type:"exporttimedout",target:u,format:e,options:i};u.events.dispatchImmediately("exporttimedout",p)}u.showTimeout()},this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(e),i=this.adapter.apply("options",{options:i,type:e}).options,n=this.adapter.apply("exportFunction",{func:n,type:e,options:i}).func,[4,n.call(this,e,i)]);case 1:return s=h.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),s?(this.events.isEnabled("exportfinished")&&(o={type:"exportfinished",target:this,format:e,options:i},this.events.dispatchImmediately("exportfinished",o)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),e==="print"?[2,this.print(s,i,this.adapter.apply("title",{title:this.title,options:i}).title)]:e=="pdfdata"?[2,this.download(s,this.filePrefix+".pdf")]:[2,this.download(s,this.filePrefix+"."+e,i&&i.addBOM)]):(this.events.isEnabled("error")&&(l={type:"error",target:this,format:e,options:i},this.events.dispatchImmediately("error",l)),[2,!1])}})})},t.prototype.unsupported=function(e,i){return ct(this,void 0,void 0,function(){return Ue(this,function(r){return[2,""]})})},t.prototype.handleCustom=function(e){C(e)&&C(e.callback)&&e.callback.call(e.callbackTarget||this,e)},t.prototype.getPrint=function(e,i){return ct(this,void 0,void 0,function(){return Ue(this,function(r){return[2,this.getImage("png",i)]})})},t.prototype.getFontFamilies=function(){return ct(this,void 0,void 0,function(){var e,i,r,n,s=this;return Ue(this,function(o){switch(o.label){case 0:return e=this.getDOMURL(),i=[],r=[],[4,IP(function(l,u){if(u.type===CSSRule.FONT_FACE_RULE){var h=u.cssText,p=Tg.exec(h);if(p!==null){var d=p[1].split(/ *, */).map(function(c){return ct(s,void 0,void 0,function(){var f,m,y,g,v,b;return Ue(this,function(P){switch(P.label){case 0:return f=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(c),f!==null?[3,1]:[2,c];case 1:if(m=f[2],y=Xl(l,f[1]),this.webFontFilter&&!y.match(this.webFontFilter))return[2,null];P.label=2;case 2:return P.trys.push([2,7,,8]),[4,No(y,void 0,{responseType:"blob"})];case 3:return g=P.sent(),OP()?(v=e.createObjectURL(g.blob),i.push(v),[3,6]):[3,4];case 4:return[4,DP(g.blob)];case 5:v=P.sent(),P.label=6;case 6:return[2,'url("'+v+'")'+m];case 7:return b=P.sent(),console.error("Failed to load font",y,b),[2,null];case 8:return[2]}})})});r.push(Promise.all(d).then(function(c){return c=c.filter(function(f){return f!=null}),c.length===0?"":h.replace(Tg,"src: "+c.join(", ")+";")}))}}})];case 1:return o.sent(),[4,Promise.all(r)];case 2:return n=o.sent(),[2,{blobs:i,cssText:n.filter(function(l){return!!l}).join(`
|
|
4
|
-
`)}]}})})},t.prototype.getImage=function(e,i,r){return ct(this,void 0,void 0,function(){var n,s,o,l,u,h,h;return Ue(this,function(p){switch(p.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),C(i)||(i=this.getFormatOptions(e)),[4,this.awaitValidSprites()];case 1:return p.sent(),[4,this.simplifiedImageExport()];case 2:if(!p.sent())return[3,10];s=void 0,p.label=3;case 3:return p.trys.push([3,7,,9]),[4,this.getCanvas(i)];case 4:return s=p.sent(),r===!1?[3,6]:[4,this.addExtras(s,i)];case 5:o=p.sent(),this.disposeCanvas(s),s=o,p.label=6;case 6:return l=s.toDataURL(this.getContentType(e),i.quality),this.disposeCanvas(s),n||this.restoreNonExportableSprites(),[2,l];case 7:return u=p.sent(),console.error(u.message+`
|
|
5
|
-
`+u.stack),Vo("Simple export failed, falling back to advanced export"),s&&this.disposeCanvas(s),[4,this.getImageAdvanced(e,i,r)];case 8:return h=p.sent(),n||this.restoreNonExportableSprites(),[2,h];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(e,i,r)];case 11:return h=p.sent(),n||this.restoreNonExportableSprites(),[2,h];case 12:return[2]}})})},t.prototype.addExtras=function(e,i,r){return ct(this,void 0,void 0,function(){var n,s,o,l,u,h,p,d,c,f,m,y,g,v,b=this;return Ue(this,function(P){switch(P.label){case 0:return this.extraSprites.length?(n=0,s=0,o=e.width,l=e.height,u=0,h=0,[4,Promise.all(Ga(this.extraSprites,function(w){return ct(b,void 0,void 0,function(){var T,F,D,O;return Ue(this,function(N){switch(N.label){case 0:return w instanceof ne?T={sprite:w,position:"bottom"}:T=w,T.position=T.position||"bottom",T.marginTop=T.marginTop||0,T.marginRight=T.marginRight||0,T.marginBottom=T.marginBottom||0,T.marginLeft=T.marginLeft||0,r?[4,T.sprite.exporting.getCanvasAdvanced(i)]:[3,2];case 1:return F=N.sent(),[3,4];case 2:return[4,T.sprite.exporting.getCanvas(i)];case 3:F=N.sent(),N.label=4;case 4:return D=F.width+T.marginLeft+T.marginRight,O=F.height+T.marginTop+T.marginBottom,T.position=="top"?(o=T.crop?l:fe(o,D),s+=O):T.position=="right"?(l=T.crop?l:fe(l,O),u+=D):T.position=="left"?(l=T.crop?l:fe(l,O),n+=D):T.position==="bottom"&&(o=T.crop?l:fe(o,D),h+=O),[2,{canvas:F,position:T.position,left:T.marginLeft,top:T.marginTop,width:D,height:O}]}})})}))]):[3,2];case 1:return p=P.sent(),d=this.getDisposableCanvas(),d.width=n+o+u,d.height=s+l+h,c=d.getContext("2d"),f=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),f&&(c.fillStyle=f.toString(),c.fillRect(0,0,d.width,d.height)),m=n,y=s,g=m+o,v=y+l,K(p,function(w){w.position=="top"?(y-=w.height,c.drawImage(w.canvas,n+w.left,y+w.top)):w.position=="right"?(c.drawImage(w.canvas,g+w.left,s+w.top),g+=w.width):w.position=="left"?(m-=w.width,c.drawImage(w.canvas,m+w.left,s+w.top)):w.position==="bottom"&&(c.drawImage(w.canvas,n+w.left,v+w.top),v+=w.height),b.disposeCanvas(w.canvas)}),c.drawImage(e,n,s),[2,d];case 2:return[2,e]}})})},t.prototype.getCanvas=function(e){return ct(this,void 0,void 0,function(){var i,r,n,s,o,l,u,h,p,d,c,f,m,y,g,v,b;return Ue(this,function(P){switch(P.label){case 0:C(e)||(e={}),i=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),r=this.getDOMURL(),n=null,s=null,P.label=1;case 1:return P.trys.push([1,,4,5]),l=this.sprite.pixelWidth,u=this.sprite.pixelHeight,h=Zl(this.sprite.dom),p=Ql(this.sprite.dom),d=e.scale||1,c=this.getPixelRatio(e),d=this.getAdjustedScale(l*c,u*c,d,e),o=this.getDisposableCanvas(),o.style.width=l*d+"px",o.style.height=u*d+"px",o.width=l*d,o.height=u*d,f=o.getContext("2d"),i&&(f.fillStyle=i.toString(),f.fillRect(0,0,l*d,u*d)),m=[],this.useWebFonts&&m.push(this.getFontFamilies().then(function(w){return s=w.blobs,w.cssText})),m.push(this.imagesToDataURI(this.sprite.dom,e)),m.push(this.prepForeignObjects(this.sprite.dom,e)),[4,Promise.all(m)];case 2:return y=P.sent(),g=this.normalizeSVG("<style>"+y[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,l,u,d,h,p),v=new Blob([g],{type:"image/svg+xml"}),n=r.createObjectURL(v),[4,this.loadNewImage(n,l*d*c,u*d*c,"anonymous")];case 3:return b=P.sent(),f.drawImage(b,0,0),[3,5];case 4:return n!==null&&r.revokeObjectURL(n),s!==null&&K(s,function(w){r.revokeObjectURL(w)}),this.restoreRemovedObjects(),[7];case 5:return[2,o]}})})},t.prototype.getCanvasAdvanced=function(e){return ct(this,void 0,void 0,function(){var i,r,n,s,o,l,u,h,p,d,c;return Ue(this,function(f){switch(f.label){case 0:return C(e)||(e={}),[4,this.imagesToDataURI(this.sprite.dom,e)];case 1:return f.sent(),i=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return r=f.sent(),n=this.sprite.pixelWidth,s=this.sprite.pixelHeight,o=Zl(this.sprite.dom),l=Ql(this.sprite.dom),u=e.scale||1,h=this.getPixelRatio(e),u=this.getAdjustedScale(n*h,s*h,u,e),p=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,n,s,u,o,l,i),d=this.getDisposableCanvas(),d.style.width=n*h*u+"px",d.style.height=s*h*u+"px",d.width=n*h*u,d.height=s*h*u,c={useCORS:!0},h!=1&&(c.ignoreDimensions=!0,c.scaleWidth=n*h*u,c.scaleHeight=s*h*u),[4,r.fromString(d.getContext("2d"),p,c).render()];case 3:return f.sent(),[2,d]}})})},t.prototype.getImageAdvanced=function(e,i,r){return ct(this,void 0,void 0,function(){var n,s,o;return Ue(this,function(l){switch(l.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),C(i)||(i=this.getFormatOptions(e)),[4,this.getCanvasAdvanced(i)];case 1:return s=l.sent(),r===!1?[3,3]:[4,this.addExtras(s,i,!0)];case 2:s=l.sent(),l.label=3;case 3:return o=s.toDataURL(this.getContentType(e),i.quality),this.disposeCanvas(s),n||this.restoreNonExportableSprites(),[2,o]}})})},t.prototype.getDisposableCanvas=function(){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="-10000px",document.body.appendChild(e),e},t.prototype.disposeCanvas=function(e){document.body.contains(e)&&document.body.removeChild(e)},t.prototype.getPixelRatio=function(e){return this.useRetina?oc():1},t.prototype.getAdjustedScale=function(e,i,r,n){if(!n)return r;var s=e*r,o=e*r,l,u;return n.maxWidth&&s>n.maxWidth&&(l=n.maxWidth/e),n.maxHeight&&o>n.maxHeight&&(u=n.maxHeight/i),l||u?Se(l,u):(n.minWidth&&s<n.minWidth&&(l=n.minWidth/e),n.minHeight&&o<n.minHeight&&(u=n.minHeight/i),l||u?fe(l,u):r)},t.prototype.imagesToDataURI=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l,u;return Ue(this,function(h){switch(h.label){case 0:if(r=e.querySelectorAll("image"),!r.length)return[3,2];for(n=[],s=r.length,o=0;o<s;o++)l=r[o],u=l.getAttributeNS(t.XLINK,"href"),u&&(u.indexOf("data:image")!==-1||(u.indexOf(".svg")!==-1?n.push(this.svgToDataURI(l,i)):n.push(this.imageToDataURI(l,i))));return[4,Promise.all(n)];case 1:return h.sent(),[2];case 2:return[2]}})})},t.prototype.prepForeignObjects=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s;return Ue(this,function(o){if(r=e.querySelectorAll("foreignObject"),r.length)for(n=r.length,s=0;s<n;s++)this.temporarilyRemoveObject(r[s]);return[2]})})},t.prototype.imageToDataURI=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o;return Ue(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,this.loadNewImage(e.getAttributeNS(t.XLINK,"href"),null,null,"anonymous")];case 1:r=l.sent(),n=document.createElement("canvas"),n.width=r.width,n.height=r.height,n.getContext("2d").drawImage(r,0,0);try{return s=n.toDataURL(),e.setAttribute("href",s),[2,s]}catch{return i.keepTainted!==!1&&this.temporarilyRemoveObject(e),[2,void 0]}return[3,3];case 2:return o=l.sent(),(!i||i.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 3:return[2]}})})},t.prototype.svgToDataURI=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l;return Ue(this,function(u){switch(u.label){case 0:r=e.getAttributeNS(t.XLINK,"href"),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,No(r)];case 2:return n=u.sent(),s=this.adapter.apply("charset",{charset:"base64",type:"svg",options:i}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+s+","+btoa(n.response),options:i}).data,e.setAttributeNS(t.XLINK,"href",o),[2,o];case 3:return l=u.sent(),(!i||i.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 4:return[2]}})})},t.prototype.temporarilyRemoveObject=function(e,i){var r=e.parentElement||e.parentNode;i||(i=this.sprite.paper.add("g").node),r.insertBefore(i,e),e.textContent,r.removeChild(e),this._removedObjects.push({element:e,placeholder:i})},t.prototype.restoreRemovedObjects=function(){for(var e;e=this._removedObjects.pop(),!!e;){var i=e.placeholder.parentElement||e.placeholder.parentNode;i.insertBefore(e.element,e.placeholder)}},t.prototype.simplifiedImageExport=function(){return ct(this,void 0,void 0,function(){var e,i,r,n,s,o,l,u,h;return Ue(this,function(p){switch(p.label){case 0:if(this.useSimplifiedExport===!1)return[2,!1];if(e=S.getCache("simplifiedImageExport"),e===!1||e===!0)return[2,e];p.label=1;case 1:p.trys.push([1,6,,7]),i=document.createElement("canvas"),i.width=1,i.height=1,r=i.getContext("2d"),n=this.getDOMURL(),s=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),o=n.createObjectURL(s),l=void 0,p.label=2;case 2:return p.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return l=p.sent(),[3,5];case 4:return u=p.sent(),[2,!1];case 5:r.drawImage(l,0,0),n.revokeObjectURL(o);try{return S.setCache("simplifiedImageExport",!0),[2,!0]}catch{return S.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return h=p.sent(),S.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},t.prototype.loadNewImage=function(e,i,r,n){return new Promise(function(s,o){var l;i&&r?l=new Image(i,r):l=new Image,n&&l.setAttribute("crossOrigin",n),l.onload=function(){s(l)};function u(){if(n){var h=l.src;l.onerror=function(){o(new Error('Loading image "'+e+'" failed'))},l.removeAttribute("crossorigin"),l.src="",l.src=h}else o(new Error('Loading image "'+e+'" failed'))}l.onabort=u,l.onerror=u,l.src=e})},t.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},t.prototype.getSVG=function(e,i,r){return r===void 0&&(r=!0),ct(this,void 0,void 0,function(){var n,s,o,l,u,h,p,d,c,f;return Ue(this,function(m){switch(m.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),C(i)||(i=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return m.sent(),s=this.sprite.pixelWidth,o=this.sprite.pixelHeight,l=Zl(this.sprite.dom),u=Ql(this.sprite.dom),h=i.scale||1,p=this.getPixelRatio(i),h=this.getAdjustedScale(s*p,o*p,h,i),d=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),i,s,o,h,l,u),c=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:i}).charset,f=this.adapter.apply("getSVG",{data:r?"data:"+this.getContentType(e)+";"+c+","+encodeURIComponent(d):d,options:i}).data,n||this.restoreNonExportableSprites(),[2,f]}})})},t.prototype.normalizeSVG=function(e,i,r,n,s,o,l,u){var h="";r&&(h+='width="'+Math.round(r*(s||1))+'px" '),n&&(h+='height="'+Math.round(n*(s||1))+'px" ');var p="";o&&(p+="font-family: "+o.replace(/"/g,"")+";"),l&&(p+="font-size: "+l+";"),s&&(h+='viewBox="0 0 '+r+" "+n+'" ');var d=[],c=e.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(c)for(var f=0;f<c.length;f++)e=e.replace(c[f],vi),d.push(c[f]);e.match(/<svg/)?h!==""&&(e=e.replace(/(<svg[^>]*)width="[^"]*"/,"$1"),e=e.replace(/(<svg[^>]*)height="[^"]*"/,"$1"),e=e.replace(/(<svg)/,"$1"+h)):e='<?xml version="1.0" encoding="utf-8"?><svg '+h+' style="'+p+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+e+"</svg>",u&&(e=e.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+u.rgba+'"/>')),og()&&(e=e.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var m=new RegExp("url\\("+So(Sn()),"g");if(e=e.replace(m,"url(#"),e=e.replace(/url\("([^)]*)"\)/gm,"url($1)"),d.length)for(var f=0;f<d.length;f++)e=e.replace(vi,d[f]);return e=this.adapter.apply("normalizeSVG",{data:e,options:i}).data,e},t.prototype.serializeElement=function(e){return new XMLSerializer().serializeToString(e)},t.prototype.getPDF=function(e,i){return ct(this,void 0,void 0,function(){function r(y){var g={};g.normal=y.normal.path,m[y.normal.path]=y.normal.bytes,y.bold?(g.bold=y.bold.path,m[y.bold.path]=y.bold.bytes):g.bold=y.normal.path,y.italics?(g.italics=y.italics.path,m[y.italics.path]=y.italics.bytes):g.italics=y.normal.path,y.bolditalics?(g.bolditalics=y.bolditalics.path,m[y.bolditalics.path]=y.bolditalics.bytes):g.bolditalics=y.normal.path,f[y.name]=g}var n,s,o,l,u,h,p,d,c,f,m;return Ue(this,function(y){switch(y.label){case 0:return[4,this.getImage(i.imageFormat||"png",i)];case 1:return n=y.sent(),[4,this.pdfmake];case 2:return s=y.sent(),o=[30,30,30,30],l={pageSize:i.pageSize||"A4",pageOrientation:i.pageOrientation||"portrait",pageMargins:i.pageMargins||o,defaultStyle:{font:i.font?i.font.name:void 0},content:[]},u=this.adapter.apply("title",{title:this.title,options:i}).title,h=0,u&&(l.content.push({text:u,fontSize:i.fontSize||14,bold:!0,margin:[0,0,0,15]}),h+=50),i.addURL&&(l.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:i.fontSize,margin:[0,0,0,15]}),h+=50),e!="pdfdata"&&l.content.push({image:n,alignment:i.align||"left",fit:this.getPageSizeFit(l.pageSize,l.pageMargins,h)}),e=="pdfdata"||i.addData?(d=(p=l.content).push,c={},[4,this.getPDFData("pdf",i)]):[3,4];case 3:d.apply(p,[(c.table=y.sent(),c.fontSize=i.fontSize||14,c)]),y.label=4;case 4:return l=this.adapter.apply("pdfmakeDocument",{doc:l,options:i}).doc,f=null,m=null,i.font&&(f={},m={},r(i.font),i.extraFonts&&K(i.extraFonts,r)),[4,new Promise(function(g,v){s.createPdf(l,null,f,m).getDataUrl(function(b){g(b)})})];case 5:return[2,y.sent()]}})})},t.prototype.getPDFData=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l,u,h=this;return Ue(this,function(p){if(r={body:[]},n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,s=this.data,i.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,la(n,function(d,c){var f=[];i.addColumnNames&&f.push(c);for(var m=s.length,y=0;y<m;y++){var g=s[y][d];f.push(h.convertToSpecialFormat(d,g,i,!0))}r.body.push(h.getPDFDataRow(f,i,void 0,!0))},function(d,c){var f=o.indexOf(d),m=o.indexOf(c);return f>m?1:f<m?-1:0});else for(i.addColumnNames&&(r.body.push(this.getPDFDataRow(n,i,void 0,!0)),r.headerRows=1),l=s.length,u=0;u<l;u++)r.body.push(this.getPDFDataRow(s[u],i,n));return[2,this.adapter.apply("pdfmakeTable",{table:r,options:i}).table]})})},t.prototype.getPDFDataRow=function(e,i,r,n){var s=this;n===void 0&&(n=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return la(r,function(u,h){var p=s.convertEmptyValue(u,e[u],i),d=n?p:s.convertToSpecialFormat(u,p,i);d=""+d,o.push(d)},function(u,h){var p=l.indexOf(u),d=l.indexOf(h);return p>d?1:p<d?-1:0}),o},t.prototype.getPageSizeFit=function(e,i,r){r===void 0&&(r=0);var n=[0,0,0,0];typeof i=="number"?n=[i,i,i,i]:i.length==2?n=[i[0],i[1],i[0],i[1]]:i.length==4&&(n=i);var s={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},o=s[e];return o[0]-=n[0]+n[2],o[1]-=n[1]+n[3]+r,o},t.prototype.getExcel=function(e,i){return ct(this,void 0,void 0,function(){var r,n,s,o,l,u,h,p,d,c,f=this;return Ue(this,function(m){switch(m.label){case 0:return C(i)||(i=this.getFormatOptions("xlsx")),[4,this.xlsx];case 1:if(r=m.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{xlsx:r,options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,s=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{xlsx:r,name:this.title||this.language.translate("Data")}).name),o={SheetNames:[s],Sheets:{}},l=[],u=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,i.pivot)h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,la(u,function(y,g){var v=[];i.addColumnNames&&v.push(g);for(var b=f.data.length,P=0;P<b;P++){var w=f.data[P][y];v.push(f.convertToSpecialFormat(y,w,i,!0))}l.push(f.getExcelRow(v,i,void 0,!0))},function(y,g){var v=h.indexOf(y),b=h.indexOf(g);return v>b?1:v<b?-1:0});else for(i.addColumnNames&&l.push(this.getExcelRow(u,i,void 0,!0)),p=this.data.length,d=0;d<p;d++)l.push(this.getExcelRow(this.data[d],i,u));return o.Sheets[s]=r.utils.aoa_to_sheet(l),o=this.adapter.apply("xlsxWorkbook",{xlsx:r,workbook:o,options:i}).workbook,c=this.adapter.apply("getExcel",{data:"data:"+this.getContentType(e)+";base64,"+r.write(o,n),options:i}).data,[2,c]}})})},t.prototype.normalizeExcelSheetName=function(e){return e=e.replace(/([:\\\/?*\[\]]+)/g," "),Co(e,31,"...",!0)},t.prototype.getExcelRow=function(e,i,r,n){var s=this;n===void 0&&(n=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return la(r,function(u,h){var p=s.convertEmptyValue(u,e[u],i),d=n?p:s.convertToSpecialFormat(u,p,i,!0);o.push(d)},function(u,h){var p=l.indexOf(u),d=l.indexOf(h);return p>d?1:p<d?-1:0}),o},t.prototype.getCSV=function(e,i,r){return r===void 0&&(r=!0),ct(this,void 0,void 0,function(){var n,s,o,l,u,h,p,d,c,f,m=this;return Ue(this,function(y){if(C(i)||(i=this.getFormatOptions("csv")),n="",s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,o="",l=this.data,i.pivot)u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,la(s,function(g,v){var b=[];i.addColumnNames&&b.push(v);for(var P=l.length,w=0;w<P;w++){var T=l[w][g];b.push(m.convertToSpecialFormat(g,T,i,!0))}n+=o+m.getCSVRow(b,i,void 0,!0),o=`
|
|
6
|
-
`},function(g,v){var b=u.indexOf(g),P=u.indexOf(v);return b>P?-1:b<P?1:0});else{for(h=l.length,p=0;p<h;p++)d=this.getCSVRow(l[p],i,s),i.reverse?n=d+o+n:n+=o+d,o=`
|
|
7
|
-
`;i.addColumnNames&&(n=this.getCSVRow(s,i,void 0,!0)+o+n)}return c=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:i}).charset,f=this.adapter.apply("getCSV",{data:r?"data:"+this.getContentType(e)+";"+c+","+encodeURIComponent(n):n,options:i}).data,[2,f]})})},t.prototype.getCSVRow=function(e,i,r,n){var s=this;n===void 0&&(n=!1);var o=i.separator||",",l=[];r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return la(r,function(h,p){var d=s.convertEmptyValue(h,e[h],i),c=n?d:s.convertToSpecialFormat(h,d,i);c=""+c,c=c.replace(/"/g,'""'),(i.forceQuotes||c.search(new RegExp(`"|
|
|
8
|
-
|`+o,"g"))>=0)&&(c='"'+c+'"'),l.push(c)},function(h,p){var d=u.indexOf(h),c=u.indexOf(p);return d>c?1:d<c?-1:0}),l.join(o)},t.prototype.getHTML=function(e,i,r){return r===void 0&&(r=!0),ct(this,void 0,void 0,function(){var n,s,o,l,u,h,p,d,c=this;return Ue(this,function(f){if(C(i)||(i=this.getFormatOptions("html")),n="<table>",i.tableClass&&(n='<table class="'+i.tableClass+'">'),s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,i.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,n+=`
|
|
9
|
-
<tbody>`,la(s,function(m,y){var g=[];i.addColumnNames&&g.push(y);for(var v=o.length,b=0;b<v;b++){var P=o[b][m];g.push(c.convertToSpecialFormat(m,P,i,!0))}n+=`
|
|
10
|
-
`+c.getHTMLRow(g,i,void 0,!0)},function(m,y){var g=l.indexOf(m),v=l.indexOf(y);return g>v?-1:g<v?1:0}),n+=`
|
|
11
|
-
</tbody>`;else{for(i.addColumnNames&&(n+=`
|
|
12
|
-
<thead>
|
|
13
|
-
`+this.getHTMLRow(s,i,void 0,!0,!0)+`
|
|
14
|
-
</thead>`),n+=`
|
|
15
|
-
<tbody>`,u=o.length,h=0;h<u;h++)n+=`
|
|
16
|
-
`+this.getHTMLRow(o[h],i,s);n+=`
|
|
17
|
-
</tbody>`}return n+=`
|
|
18
|
-
</table>`,p=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:i}).charset,d=this.adapter.apply("getHTML",{data:r?"data:"+this.getContentType(e)+";"+p+","+encodeURIComponent(n):n,options:i}).data,[2,d]})})},t.prototype.getHTMLRow=function(e,i,r,n,s){var o=this;n===void 0&&(n=!1),s===void 0&&(s=!1);var l=" <tr>";i.rowClass&&(l=' <tr class="'+i.rowClass+'">'),r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,h=s?"th":"td",p=!0;return la(r,function(d,c){var f=o.convertEmptyValue(d,e[d],i),m=n?f:o.convertToSpecialFormat(d,f,i);m=""+m,m=m.replace(/[\u00A0-\u9999<>\&]/gim,function(g){return"&#"+g.charCodeAt(0)+";"});var y=h;i.pivot&&p&&(y="th"),i.cellClass?l+=`
|
|
19
|
-
<`+y+' class="'+i.cellClass+'">'+m+"</"+y+">":l+=`
|
|
20
|
-
<`+y+">"+m+"</"+y+">",p=!1},function(d,c){var f=u.indexOf(d),m=u.indexOf(c);return f>m?1:f<m?-1:0}),l+=`
|
|
21
|
-
</tr>`,l},t.prototype.getJSON=function(e,i,r){return r===void 0&&(r=!0),ct(this,void 0,void 0,function(){var n,s,o,l,u,h,p,d,c,f=this;return Ue(this,function(m){if(C(i)||(i=this.getFormatOptions("json")),s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)n=this.data;else for(n=[],o=this.data,l=function(y,g){var v=o[g];if(typeof v=="object"){var b={};se(v,function(P,w){C(s[P])&&(b[s[P]]=f.convertToSpecialFormat(P,w,i))}),n.push(b)}},u=o.length,h=0;h<u;h++)l(u,h);return p=JSON.stringify(n,function(y,g){return typeof g=="object"&&se(g,function(v,b){g[v]=f.convertToSpecialFormat(v,b,i)}),g},i.indent),d=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:i}).charset,c=this.adapter.apply("getJSON",{data:r?"data:"+this.getContentType(e)+";"+d+","+encodeURIComponent(p):p,options:i}).data,[2,c]})})},t.prototype.convertToSpecialFormat=function(e,i,r,n){if(typeof i=="number")if(this.isDateField(e))i=new Date(i);else{if(this.isDurationField(e))return this.durationFormatter.format(i,this.durationFormat);if(this.isNumberField(e)&&this.numberFormat)return this.numberFormatter.format(i,this.numberFormat)}return i instanceof Date?r.useTimestamps?i=i.getTime():r.useLocale?n||(i=i.toLocaleString()):i=this.dateFormatter.format(i,this.dateFormat):ye(i)&&this.isDateField(e)&&this.dateFormat&&(i=this.dateFormatter.format(this.dateFormatter.parse(i),this.dateFormat)),i},t.prototype.convertEmptyValue=function(e,i,r){return C(i)?i:r.emptyAs},t.prototype.download=function(e,i,r){return r===void 0&&(r=!1),ct(this,void 0,void 0,function(){var y,g,o,n,h,p,d,c,s,y,g,o,l,u,h,p,d,c,f,m,y,g,v,b;return Ue(this,function(P){if(this.msBlobDownloadSupport()){if(y=e.split(";"),g=y.shift().replace(/data:/,""),e=decodeURIComponent(y.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv"].indexOf(g)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return n=new Blob([e],{type:g}),window.navigator.msSaveBlob(n,i),[2,!0];for(h=new Array(e.length),p=0;p<e.length;++p)d=e.charCodeAt(p),h[p]=d;c=new Blob([new Uint8Array(h)],{type:g}),window.navigator.msSaveBlob(c,i)}else if(this.blobDownloadSupport()){if(s=document.createElement("a"),s.download=i,document.body.appendChild(s),y=e.split(";"),g=y.shift().replace(/data:/,""),e=decodeURIComponent(y.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(g)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return r&&(e="\uFEFF"+e),l=new Blob([e],{type:g}),u=window.URL.createObjectURL(l),s.href=u,s.download=i,s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(u)},100),[2,!0];for(h=new Array(e.length),p=0;p<e.length;++p)d=e.charCodeAt(p),h[p]=d;r&&(h=[239,187,191].concat(h)),c=new Blob([new Uint8Array(h)],{type:g}),f=window.URL.createObjectURL(c),s.href=f,s.download=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),setTimeout(function(){window.URL.revokeObjectURL(f)},100)}else this.linkDownloadSupport()?(m=document.createElement("a"),m.download=i,m.href=e,document.body.appendChild(m),m.click(),document.body.removeChild(m)):this.legacyIE()?(y=e.match(/^data:(.*);[ ]*([^,]*),(.*)$/),y.length===4&&(y[2]=="base64"?y[1].match(/^image\//)&&this.showModal('<img src="'+e+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(g=void 0,i.match(/\.svg$/)?g="image/svg+xml":(g="text/plain",i+=".txt"),v=document.createElement("iframe"),v.width="1px",v.height="1px",v.style.display="none",document.body.appendChild(v),b=v.contentDocument,b.open(g,"replace"),b.write(decodeURIComponent(y[3])),b.close(),b.execCommand("SaveAs",!0,i),document.body.removeChild(v)))):window.location.href=e;return[2,!0]})})},t.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},t.prototype.linkDownloadSupport=function(){var e=S.getCache("linkDownloadSupport");if(e===!1||e===!0)return e;var i=document.createElement("a"),r=typeof i.download<"u";return S.setCache("linkDownloadSupport",r),r},t.prototype.blobDownloadSupport=function(){return C(window.Blob)},t.prototype.msBlobDownloadSupport=function(){return C(window.navigator.msSaveOrOpenBlob)},t.prototype.legacyIE=function(){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",e.getElementsByTagName("i").length==1},t.prototype.print=function(e,i,r){return ct(this,void 0,void 0,function(){return Ue(this,function(n){return i.printMethod=="css"?[2,this.printViaCSS(e,i,r)]:[2,this.printViaIframe(e,i,r)]})})},t.prototype.printViaCSS=function(e,i,r){return ct(this,void 0,void 0,function(){var n,s,o,l,u;return Ue(this,function(h){return n=document.documentElement.scrollTop||document.body.scrollTop,s=new et(Io(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),r&&document&&document.title&&(o=document.title,document.title=r),l=new Image,l.src=e,l.style.maxWidth="100%",l.style.display="block",l.style.position="relative",l.style.visibility="visible",l.style.opacity="1",l.style.clipPath="none",document.body.appendChild(l),this.setTimeout(function(){window.print()},50),u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u&&i.delay<1e3?i.delay=1e3:i.delay<100&&(i.delay=100),this.setTimeout(function(){document.body.removeChild(l),s.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},i.delay||500),[2,!0]})})},t.prototype.printViaIframe=function(e,i,r){return ct(this,void 0,void 0,function(){var n,s,o;return Ue(this,function(l){return n=document.createElement("iframe"),n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),s=new Image,s.src=e,s.style.maxWidth="100%",s.style.height="auto",r&&(n.contentWindow.document.title=r),n.contentWindow.document.body.appendChild(s),n.load=function(){n.contentWindow.document.body.appendChild(s)},this.setTimeout(function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},i.delay||50),o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o&&i.delay<1e3?i.delay=1e3:i.delay<100&&(i.delay=100),this.setTimeout(function(){document.body.removeChild(n)},i.delay+50||100),[2,!0]})})},t.prototype.findBackgroundColor=function(e){var i=1,r=Ph(e,"background-color");if((r.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||r=="transparent")&&(i=0),i==0){var n=e.parentElement;return n?this.findBackgroundColor(n):oe("#fff")}else return oe(r,i)},Object.defineProperty(t.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(e){this._container=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(e){this._sprite=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(e){this._extraSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(e){this._validateSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(e){this._dataFields=e,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),t.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var e=this.data.length>0;this._prevHasData!=e&&(this._prevHasData=e,this.menu&&this.menu.invalidate())},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new Ia,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(e){this._dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new we),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(e){this._dateFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new Eo,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(e){this._numberFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new we),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(e){this._numberFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new Mo,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(e){this._durationFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(e){this._durationFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new we),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(e){this._durationFields=e},enumerable:!0,configurable:!0}),t.prototype.generateDataFields=function(){var e=this;this._dataFields={},this.data.length&&K(this.data,function(i){se(i,function(r,n){C(e._dataFields[r])||(e._dataFields[r]=e.adapter.apply("dataFieldName",{name:r,field:r}).name)})})},t.prototype.isDateField=function(e){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(e),field:e}).isDateField},t.prototype.isNumberField=function(e){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(e),field:e}).isNumberField},t.prototype.isDurationField=function(e){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(e),field:e}).isDurationField},t.prototype.getContentType=function(e){var i="";switch(e){case"png":case"gif":i="image/"+e;break;case"jpg":i="image/jpeg";break;case"svg":i="image/svg+xml";break;case"csv":i="text/csv";break;case"json":i="application/json";break;case"html":i="text/html";break;case"pdf":case"pdfdata":i="application/pdf";break;case"xlsx":i="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break}return this.adapter.apply("contentType",{contentType:i,type:e}).contentType},Object.defineProperty(t.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(e){this._filePrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(e){this._backgroundColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),t.prototype.showPreloader=function(){var e=this.preloader;e&&(e.progress=.5,e.label.text="...")},t.prototype.hidePreloader=function(){var e=this.preloader;e&&(e.progress=1)},Object.defineProperty(t.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),t.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},t.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(t.prototype,"language",{get:function(){return this._language||(this._language=new Ui),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return this._modal||(this._modal=new ou,this._modal.adapter.add("classPrefix",function(e){return e=Ce.classNamePrefix+e,e})),this._modal},enumerable:!0,configurable:!0}),t.prototype.showModal=function(e,i){this.hideModal(),this.hidePreloader();var r=this.modal;r.container=this.sprite.svgContainer.SVGContainer,r.content=e,r.readerTitle=i,r.open()},t.prototype.hideModal=function(){this._modal&&this.modal.close()},t.prototype._canvg=function(){return ct(this,void 0,void 0,function(){var e;return Ue(this,function(i){switch(i.label){case 0:return[4,import("./SXJYUHC3.js")];case 1:return e=i.sent(),e.default!=null?[2,e.default]:[2,e]}})})},Object.defineProperty(t.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfmake",{get:function(){return Uc==null&&(Uc=$P()),Uc},enumerable:!0,configurable:!0}),t.prototype._xlsx=function(){return ct(this,void 0,void 0,function(){return Ue(this,function(e){switch(e.label){case 0:return[4,import("./LZNL4CV3.js")];case 1:return[2,e.sent()]}})})},Object.defineProperty(t.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),t.prototype.setFormatOptions=function(e,i){this._formatOptions.setKey(e,i)},t.prototype.getFormatOptions=function(e){return this._formatOptions.getKey(e)},Object.defineProperty(t.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),t.prototype._disablePointers=function(){C(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},t.prototype._releasePointers=function(){C(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},t.prototype.hideNonExportableSprites=function(){var e=this;if(!this._objectsAlreadyHidden){var i=this.sprite.svgContainer;i&&K(i.nonExportableSprites,function(r){!r.isHidden&&!r.isHiding&&r.visible&&e._hiddenObjects.push(r),r.hide(0)}),this._objectsAlreadyHidden=!0}},t.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(K(this._hiddenObjects,function(e){e.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},t.prototype.awaitValidSprites=function(){return ct(this,void 0,void 0,function(){var e;return Ue(this,function(i){switch(i.label){case 0:return e=[],this.validateSprites.length&&K(this.validateSprites,function(r,n){r.invalid&&e.push(new Promise(function(s,o){r.events.once("validated",function(l){s()})}))}),e.length?[4,Promise.all(e)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.processConfig=function(e){S.registeredClasses.ExportMenu=zc,e&&(C(e.menu)&&!C(e.menu.type)&&(e.menu.type="ExportMenu"),C(e.dataFields)&&He(e.dataFields)&&(this.dataFields=e.dataFields,delete e.dataFields)),a.prototype.processConfig.call(this,e)},t.XLINK="http://www.w3.org/1999/xlink",t})(uu);var ot=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],ne=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.properties={},e._eventDispatcher=new Vc(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new st,e._positionPrecision=3,e._language=new st,e._exporting=new st,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",W(50)),e.setPropertyValue("tooltipX",W(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new Fe(function(){se(e._bindings,function(i,r){r.dispose()})})),e.setPropertyValue("interactionsEnabled",!0),e}return Object.defineProperty(t.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new Bt(this)),this._adapterO},enumerable:!0,configurable:!0}),t.prototype.applyTheme=function(){a.prototype.applyTheme.call(this),Ce.autoSetClassName&&this.setClassName()},t.prototype.getCurrentThemes=function(){var e=this._themes;if(e)return e;var i=this._parent;return i?i.getCurrentThemes():S.themes},t.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},t.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,S.addToInvalidSprites(this),De.requestFrame())},t.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,S.removeFromInvalidSprites(this),this.afterDraw()},t.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,S.addToInvalidPositions(this),De.requestFrame())},t.prototype.validatePosition=function(){var e=this.pixelX,i=this.pixelY,r=this.dx,n=this.dy,s=e+r,o=i+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var l=this.measure(),u=this.group.transformString;this.group.moveTo({x:s,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(u!=this.group.transformString||l)&&(u==null?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),(this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.updateTooltipPosition()),e+r==s&&i+n==o&&(S.removeFromInvalidPositions(this),this.positionInvalid=!1);var h=this._maskRectangle;h&&this._clipElement.moveTo({x:h.x-e,y:h.y-i})},t.prototype.beforeDraw=function(){},t.prototype.draw=function(){},t.prototype.afterDraw=function(){var e,i;if((this.isMeasured||this.horizontalCenter!=="none"||this.verticalCenter!=="none")&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var r=ps(this._adapterO.keys()),n=r.next();!n.done;n=r.next()){var s=n.value;switch(s){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[s]=this[s];break}}}catch(o){e={error:o}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}this.showTooltipOn=="always"&&(this.visible&&!this.disabled&&!this.__disabled?this.showTooltip():this.hideTooltip(0))},t.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},t.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},t.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},t.prototype.updateFilterScale=function(){var e=this;j(this.filters.iterator(),function(i){i.scale=e.globalScale})},t.prototype.removeFromInvalids=function(){S.removeFromInvalidSprites(this),S.removeFromInvalidPositions(this)},t.prototype.copyFrom=function(e){var i=this;a.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each(function(r){i.filters.push(r.clone())}),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,Hi(e.propertyFields,this.propertyFields),Hi(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone()),e.focusFilter&&(this.focusFilter=e.focusFilter.clone())},t.prototype.dispose=function(){if(!this.isDisposed()){if(this.showTooltipOn=="always"&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(a.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){var i=this._clones.getIndex(e);i.dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var r=this.stroke;r&&!(r instanceof _e)&&r.dispose&&(this.clonedFrom&&this.clonedFrom.stroke==r||r.dispose());var n=this.fill;if(n&&!(n instanceof _e)&&n.dispose&&(this.clonedFrom&&this.clonedFrom.fill==n||n.dispose()),C(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var s=this._filters.getIndex(0);s.dispose(),this._filters.removeValue(s)}this._alwaysShowDisposers=void 0}},Object.defineProperty(t.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(e){e=bt(e),this._isTemplate!=e&&(this._isTemplate=e,this instanceof te&&j(this.children.iterator(),function(i){i.isTemplate=e}),e?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showSystemTooltip",{get:function(){return C(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:this._parent?this._parent.showSystemTooltip:!1},set:function(e){e=bt(e),this._showSystemTooltip!=e&&(this._showSystemTooltip=e,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topParent",{get:function(){if(this._topParent)return this._topParent;if(this._parent)return this._parent.topParent},set:function(e){this._topParent=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(e){if(!this._isTemplate){this.paper;var i=this._parent;i!=e&&(i&&i.children.removeValue(this),this._parent=e,e?(this.topParent=e.topParent,e.isTemplate&&(this.isTemplate=!0),this.baseId=e.baseId,e.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=e.tooltipContainer),this._dataItem||(this.dataItem=e.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),t.prototype.handleAlwaysShow=function(){this.showTooltip()},t.prototype.handleAlwaysShowTooltip=function(){var e=this,i=this._alwaysShowDisposers;if(i&&K(i,function(n){n.dispose()}),this._alwaysShowDisposers=[],this.showTooltipOn=="always")for(;e!=null;){var r=e.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(r),this._alwaysShowDisposers.push(r),e=e.parent}},Object.defineProperty(t.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(e){this._virtualParent=e,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),t.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var e=this.fill;e&&e.element&&this.paper.appendDef(e.element);var i=this.stroke;if(i&&i.element&&this.paper.appendDef(i.element),this.fillModifier&&this.fill instanceof _e){var r=this.fillModifier.modify(this.fill);r&&r.element&&this.paper.appendDef(r.element)}if(this.strokeModifier&&this.stroke instanceof _e){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),this._exportable===!1&&(this.exportable=!1)},Object.defineProperty(t.prototype,"map",{get:function(){var e=this.topParent;return e?e.map:(this._map||(this._map=new Ve),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delayedMap",{get:function(){var e=this.topParent;return e?e.delayedMap:(this._delayedMap||(this._delayedMap=new Ve),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){if(this._id!=e){if(this._id=e,this.map.hasKey(e))throw Error("Duplicate id ("+e+") used on multiple objects.");this.map.setKey(e,this),Ce.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paper",{get:function(){if(this._paper)return this._paper;var e=this._parent;return e?e.paper:da()},set:function(e){this.setPaper(e)},enumerable:!0,configurable:!0}),t.prototype.setPaper=function(e){var i=this._paper;return i!=e?(this._paper=e,this.appendDefs(),!0):!1},Object.defineProperty(t.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var e=this._parent;if(e)return e.htmlContainer},set:function(e){this._htmlContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters||(this._filters=new we,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new Ie(this._filters))),this._filters},enumerable:!0,configurable:!0}),t.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},t.prototype.setSVGAttribute=function(e){this.group.attr(e)},t.prototype.removeSVGAttribute=function(e){this.group.removeAttr(e)},t.prototype.setClassName=function(){var e=this.className,i=Ce.classNamePrefix;this.element&&this.element.addClass(i+e),this.group.addClass(i+e+"-group"),C(this.id)&&this.group.addClass(i+this.id),this.userClassName&&this.group.addClass(this.userClassName)},t.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},t.prototype.updateClipPath=function(){var e=this._clipElement;e&&e.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},t.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var e=S.getUniqueId();this._clipPath.attr({id:e}),this.group.attr({"clip-path":'url("'+Sn()+e+'")'})}},t.prototype.applyMask=function(){var e=this.mask;if(this._clipPath&&e)if(e instanceof te){this._clipElement.attr({width:fe(0,e.pixelWidth),height:fe(0,e.pixelHeight)});var i=oi({x:e.pixelX,y:e.pixelY},e.parent,this);this._clipPath.x=i.x,this._clipPath.y=i.y}else e.element&&e.element!=this._clipElement&&(this._clipElement=e.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=e.scale,this._clipPath.x=e.pixelX,this._clipPath.y=e.pixelY,this._clipPath.rotation=e.rotation},t.prototype.applyFilters=function(){var e=this;if(this._filters&&this._filters.length>0){var i=100,r=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),j(this.filters.iterator(),function(l){l.sprite=e,l.paper=e.paper,e.filterElement.attr({filterUnits:l.filterUnits}),l.appendPrimitives(e.filterElement),l.width>i&&(i=l.width),l.height>r&&(r=l.height),l.scale=e.globalScale});var s=i+"%",o=r+"%";this.filterElement.attr({width:s,height:o,x:-(i-100)/2+"%",y:-(r-100)/2+"%"}),this.group.attr({filter:'url("'+Sn()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},t.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},t.prototype.setElement=function(e){this.element=e,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},set:function(e){this.removeElement(),this._element=e,this.group.add(e),e.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),Ce.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"svgContainer",{get:function(){if(this._svgContainer)return this._svgContainer;if(this._parent)return this._parent.svgContainer},set:function(e){this._svgContainer=e},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var e=this.element.getBBox();this._bbox={x:e.x,y:e.y,width:e.width,height:e.height}}},t.prototype.updateCenter=function(){if(this.element){var e=this.element.transformString,i=this.bbox,r=0,n=0,s=i.x,o=i.y,l=i.width,u=i.height,h=this.pixelPaddingLeft,p=this.pixelPaddingRight,d=this.pixelPaddingTop,c=this.pixelPaddingBottom,f=fe(l+h+p,this.pixelWidth),m=fe(u+d+c,this.pixelHeight),y=i.x,g=i.x+f,v=i.y,b=i.y+m,P=this.horizontalCenter,w=this.verticalCenter;switch(P){case"none":r=s+h;break;case"left":r=h;break;case"middle":r=h-(l+p+h)/2;break;case"right":r=-p-l;break}switch(w){case"none":n=o+d;break;case"top":n=d;break;case"middle":n=d-(u+c+d)/2;break;case"bottom":n=-c-u;break}this._measuredHeight=m,this._measuredWidth=f;var T=z(r-s,this._positionPrecision,!0),F=z(n-o,this._positionPrecision,!0);this.ex=T-h,this.ey=F-d,this.maxLeft=y+T-h,this.maxRight=g+T-h,this.maxTop=v+F-d,this.maxBottom=b+F-d,this.pixelPerfect&&Ce.pixelPerfectPrecision==0&&(T-=.5,F-=.5),this.element.moveTo({x:T,y:F}),e!=this.element.transformString&&this.dispatchImmediately("transformed")}},t.prototype.measure=function(){this.updateCenter();var e=this._measuredWidth,i=this._measuredHeight,r=this.maxLeft,n=this.maxRight,s=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=e,this._measuredHeightSelf=i;var l=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,this.rotation!==0||this.scale!==1||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var u=this.paper.svg,h=u.createSVGMatrix(),p=this.rotation,d=this.scale;this.nonScaling&&(d=this.scale/this.globalScale),h.a=Q(p)*d,h.c=-Z(p)*d,h.e=0,h.b=Z(p)*d,h.d=Q(p)*d,h.f=0;var c=u.createSVGPoint();c.x=r,c.y=s;var f=u.createSVGPoint();f.x=n,f.y=s;var m=u.createSVGPoint();m.x=n,m.y=o;var y=u.createSVGPoint();y.x=r,y.y=o;var g=c.matrixTransform(h),v=f.matrixTransform(h),b=m.matrixTransform(h),P=y.matrixTransform(h);r=Math.min(g.x,v.x,b.x,P.x),n=Math.max(g.x,v.x,b.x,P.x),s=Math.min(g.y,v.y,b.y,P.y),o=Math.max(g.y,v.y,b.y,P.y),e=n-r,i=o-s,this.maxLeft=z(r,l,!0),this.maxRight=z(n,l,!0),this.maxTop=z(s,l,!0),this.maxBottom=z(o,l,!0)}return this._measuredWidth=z(e,l,!0),this._measuredHeight=z(i,l,!0),this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight?(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.tooltip&&this.tooltip.visible&&(C(this.tooltipText)||C(this.tooltipHTML))&&this.updateTooltipPosition(),!0):!1},t.prototype.insertBefore=function(e){var i=this._parent;if(i){var r=i.children.indexOf(e);r!==-1&&(i.children.moveValue(this,r),i.sortChildren())}return this},t.prototype.insertAfter=function(e){var i=this._parent;if(i){var r=i.children.indexOf(e);r!==-1&&(i.children.moveValue(this,r+1),i.sortChildren())}return this},t.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},t.prototype.getRelativeX=function(e){return e instanceof xe?e.value:this._parent?e/this._parent.innerWidth:0},t.prototype.getRelativeY=function(e){return e instanceof xe?e.value:this._parent?e/this._parent.innerHeight:0},t.prototype.getPixelX=function(e){var i=0;if(x(e))i=e;else if(e instanceof xe){var r=e.value;this._parent&&(i=z(this._parent.innerWidth*r,this._positionPrecision,!0))}return i},t.prototype.getPixelY=function(e){var i=0;if(x(e))i=e;else if(e instanceof xe){var r=e.value;this._parent&&(i=z(this._parent.innerHeight*r,this._positionPrecision,!0))}return i},t.prototype.moveTo=function(e,i,r,n){this.isDragged&&!n||(e&&(x(e.x)&&this.setPropertyValue("x",z(e.x,this._positionPrecision,!0)),x(e.y)&&this.setPropertyValue("y",z(e.y,this._positionPrecision,!0))),x(i)&&(this.rotation=i),x(r)&&(this.scale=r),this.invalidatePosition())},Object.defineProperty(t.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(e){var i=this;this._mask.get()!==e&&(e?(this.createClipPath(),e instanceof te?this._clipElement=this.paper.add("rect"):(e.isMeasured=!1,e.element&&(this._clipElement=e.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(e,new Me([e.events.on("maxsizechanged",function(){i.inited&&i.applyMask()},void 0,!1),e.events.on("validated",this.applyMask,this,!1),e.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(e){e?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:e.width,height:e.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(e){e=bt(e),e||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=e&&(this._isMeasured=e,this.invalidatePosition())},enumerable:!0,configurable:!0}),t.prototype.hitTest=function(e){this.invalid&&this.validate(),e.invalid&&e.validate();var i=this.pixelX+this.maxLeft,r=this.pixelY+this.maxTop,n=i+this.maxRight,s=r+this.maxBottom,o=e.pixelX+e.maxLeft,l=e.pixelY+e.maxTop,u=o+e.maxRight,h=l+e.maxBottom;return!(o>n||u<i||l>s||h<r)},Object.defineProperty(t.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),t.prototype.isReady=function(){return this._ready},Object.defineProperty(t.prototype,"states",{get:function(){if(!this._states){var e=new ws;this._states=new Oa(e),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new mr(this._states)),this._disposers.push(e)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var e=this.states.create("hidden");e.properties.opacity=0,e.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultState",{get:function(){if(!this.states.getKey("default")){var e=this.states.create("default");e.properties.opacity=1}return this.states.getKey("default")},enumerable:!0,configurable:!0}),t.prototype.processState=function(e){var i=e.newValue;if(i.sprite=this,i.name=e.key,(this.states.hasKey("hover")||this.showTooltipOn=="hover"&&(C(this.tooltipHTML)||C(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||this.showTooltipOn=="hover"&&(C(this.tooltipHTML)||C(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var r=this.clones.values,n=r.length,s=0;s<n;++s){var o=r[s];o.isDisposed()||o.states.setKey(i.name,i)}},Object.defineProperty(t.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Kr(this._animations))),this._animations},enumerable:!0,configurable:!0}),t.prototype.getSvgPoint=function(e){try{var i=this.htmlContainer.getBoundingClientRect();return{x:e.x-i.left,y:e.y-i.top}}catch{return e}},t.prototype.animate=function(e,i,r){return new bi(this,e,i,r).start()},t.prototype.setState=function(e,i,r){var n;if(e instanceof ws)this.states.setKey(e.name,e),n=e;else if(n=this.states.getKey(e),!n)return;if(n.name=="hover"){if(this.isHidden)return;this.isHover=!0}return n.name=="hidden"?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),n.name=="active"&&(this.isActive=!0),x(i)||(i=n.transitionDuration),C(r)||(r=n.transitionEasing),this.transitTo(n,i,r)},t.prototype.applyCurrentState=function(e){var i=this.setState(this.defaultState,e);return this.isHover&&(i=this.setState("hover",e)),this.isDown&&this.interactions.downPointers.length&&(i=this.setState("down",e)),this.isFocused=this.isFocused,this.isActive&&(i=this.setState("active",e),this.isHover&&this.states.hasKey("hoverActive")&&(i=this.setState("hoverActive",e))),i},t.prototype.transitTo=function(e,i,r){var n=this,s=[],o=e.allValues,l;if(se(o,function(h,p){var d=n[h];if(p!=d&&n.defaultState.properties[h]==null&&(n.defaultState.properties[h]=d),p!="__unset"){var c={from:d,to:p,property:h};s.push(c)}}),s.length>0&&(l=this.animate(s,i,r),l&&!l.isFinished()?this._disposers.push(l.events.on("animationended",function(){n.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),e.filters.length>0){var u=[];j(e.filters.iterator(),function(h){var p=h.clone();u.push(p);var d=[];j(n.filters.iterator(),function(c){c.className==p.className&&(vo(n.defaultState.filters.iterator(),function(f){return f.className===p.className})||n.defaultState.filters.push(c),se(p.properties,function(f,m){var y=c.properties[f];y!=m&&d.push({property:f,from:y,to:m})}))}),p.animate(d,i,r)}),this.filters.clear(),this.filters.pushAll(u)}return l},t.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(t.prototype,"isHover",{get:function(){return this.isInteractive()?this.interactions.isHover:!1},set:function(e){e=bt(e),e!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=e,e?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDown",{get:function(){return this.isInteractive()?this.interactions.isDown:!1},set:function(e){e=bt(e),this.isInteractive()&&this.isDown!=e&&(this.interactions.isDown=e,e?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return this.isInteractive()?this.interactions.isFocused:!1},set:function(e){e=bt(e),this.focusable&&this.isFocused!=e&&this.isInteractive()&&(this.interactions.isFocused=e,e===!0?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},set:function(e){this.setActive(e)},enumerable:!0,configurable:!0}),t.prototype.setActive=function(e){e=bt(e),this._isActive!==e&&(this._isActive=e,e&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(t.prototype,"disabled",{get:function(){var e=this.getPropertyValue("disabled");return C(e)?e:this.virtualParent?this.virtualParent.disabled:this._parent?this._parent.disabled:!1},set:function(e){this.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){e=bt(e);var i=this.getPropertyValue("disabled");if(i!=e){if(this.setPropertyValue("disabled",e,!0),e)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var r=this._parent.element;r.hasChild(this.group)||r.add(this.group)}this instanceof te?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),De.requestFrame(),!0}return!1},Object.defineProperty(t.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(e){this._internalDisabled!=e&&(this._internalDisabled=e,this._updateDisabled=!0,this.invalidatePosition(),e||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new Eo,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(e){this._numberFormatter=e,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new Ia,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(e){this._dateFormatter=e,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new Mo,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(e){this._durationFormatter=e,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){var e=this._language.get();return e||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(e=new Ui,this.language=e,e))},set:function(e){var i=this;this._language.get()!==e&&this._language.set(e,e.events.on("localechanged",function(r){if(i._numberFormatter&&(i._numberFormatter.language=i.language),i._dateFormatter&&(i._dateFormatter.language=i.language),i._durationFormatter&&(i._durationFormatter.language=i.language),i._exporting.get()){var n=i._exporting.get();n.numberFormatter.language=i.language,n.dateFormatter.language=i.language,n.durationFormatter.language=i.language,n.language=i.language}i instanceof te&&i.deepInvalidate()}))},enumerable:!0,configurable:!0}),t.prototype.populateString=function(e,i){if(C(e)){e=lo(e),e=ar().escape(e);var r=e.match(/\{([^}]+)\}/g),n=void 0;if(r)for(n=0;n<r.length;n++){var s=r[n].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(s,"",i);C(o)||(o=""),e=e.split(r[n]).join(o)}e=ar().unescape(e)}else e="";return this._adapterO?this._adapterO.apply("populateString",e):e},t.prototype.getTagValue=function(e,i,r){var n;C(r)||(r=this.dataItem);for(var s=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g,l;l=o.exec(e),l!==null;)if(l[3])s.push({prop:l[3]});else{var u=[];if(Hl(l[2])!="")for(var h=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,p=void 0;p=h.exec(l[2]),p!==null;)u.push(p[1]||p[2]||p[3]);s.push({method:l[1],params:u})}if(r){n=this.getTagValueFromObject(s,r.values),(!C(n)||He(n))&&(n=this.getTagValueFromObject(s,r));var d=r.dataContext;!C(n)&&d&&(n=this.getTagValueFromObject(s,r.dataContext),C(n)||(n=this.getTagValueFromObject([{prop:e}],d)),!C(n)&&d.dataContext&&(n=this.getTagValueFromObject(s,d.dataContext))),!C(n)&&r.component&&r.component.dataItem!==r&&(n=r.component.getTagValue(e,i))}return C(n)||(n=this.getTagValueFromObject(s,this.populateStringFrom||this)),!C(n)&&this._parent&&(n=this._parent.getTagValue(e,i)),n},t.prototype.getTagValueFromObject=function(e,i,r){for(var n=i,s=!1,o=0,l=e.length;o<l;o++){var u=e[o];if(u.prop){if(n=n[u.prop],!C(n))return}else switch(u.method){case"formatNumber":var h=Po(n);C(h)&&(n=this.numberFormatter.format(h,r||u.params[0]||void 0),s=!0);break;case"formatDate":var p=void 0;if(ye(n)?p=this.dateFormatter.parse(n):p=Ul(n),!yn(p)||Zt(p.getTime()))return;C(p)&&(n=this.dateFormatter.format(p,r||u.params[0]||void 0),s=!0);break;case"formatDuration":var d=Po(n);C(d)&&(n=this.durationFormatter.format(d,r||u.params[0]||void 0,u.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[u.method]&&n[u.method].apply(this,u.params);break}}if(!s){var c=[{method:"",params:r}];if(!C(r))x(n)?(c[0].method="formatNumber",c[0].params=""):yn(n)&&(c[0].method="formatDate",c[0].params="");else{var f=hc(r);f===ms?c[0].method="formatNumber":f===ys?c[0].method="formatDate":f===bo&&(c[0].method="formatDuration")}c[0].method&&(n=this.getTagValueFromObject(c,n))}return n},Object.defineProperty(t.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(e){this.setDataItem(e)},enumerable:!0,configurable:!0}),t.prototype.setDataItem=function(e){var i=this;if(this._dataItem!=e){if(this._dataItem=e,e){if(this.configField){var r=e.dataContext;r&&(this.config=r[this.configField],!this.config&&r.dataContext&&(this.config=r.dataContext[this.configField]))}var n=e.dataContext;if(n){var s=n.dataContext;se(this.propertyFields,function(o,l){if(C(n[l])){var u=i;u[o]=n[l]}else if(s){var h=s[l];if(C(h)){var u=i;u[o]=h}}})}}this.invalidate()}},t.prototype.getPropertyValue=function(e){var i=this.properties[e];return this._isTemplate||(this._adapterO&&(i=this._adapterO.apply(e,i)),i=iu.applyAll(this,e,i)),i},t.prototype.setColorProperty=function(e,i,r){var n=this.properties[e];return i instanceof _e&&n instanceof _e&&i.toString()==n.toString()?!1:this.setPropertyValue(e,i,r)},t.prototype.setPercentProperty=function(e,i,r,n,s,o){if(i=_y(i),x(i))return x(s)&&(i=z(i,s,o)),this.setPropertyValue(e,i,r,n);var l=this.properties[e];return i instanceof xe&&l instanceof xe&&i.value==l.value?!1:this.setPropertyValue(e,i,r,n)},t.prototype.setPropertyValue=function(e,i,r,n){if(this.properties[e]!==i&&!this.isDisposed()){if(this.properties[e]=i,this.events.isEnabled("propertychanged")){var s={type:"propertychanged",target:this,property:e};this.events.dispatchImmediately("propertychanged",s)}if(r&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,l=o.length,u=0;u<l;++u){var h=o[u];h.isDisposed()||(h[e]=i)}return!0}return!1},t.prototype.bind=function(e,i,r,n){var s=this;r===void 0&&(r=e),C(this._bindings[e])&&this._bindings[e].dispose(),this[e]=i[r],this._bindings[e]=i.events.on("propertychanged",function(o){if(o.property===r){var l=i[r];n&&(l=n(l)),s[e]=l}})},t.prototype.observe=function(e,i,r,n){var s=this;return new Me(Ga(ph(e),function(o){return s.events.on("propertychanged",function(l){l.property===o&&i.call(r,l)},r,n)}))},t.prototype.applyAccessibility=function(){var e=this.readerTitle,i=this.readerDescription,r=this.role,n=this.readerHidden,s=this.readerChecked,o=this.readerControls,l=this.readerLive,u=this.readerOrientation,h=this.readerValueNow,p=this.readerValueText,d=[],c=[],f=this.readerLabelledBy;f&&d.push(f);var m=this.readerDescribedBy;if(m&&c.push(m),e)if(d.length||this.showSystemTooltip){var y=this.titleElement,g=this.uid+"-title";y.node.textContent!=e&&(y.node.textContent=e,y.attr({id:g})),d.push(g)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this.setSVGAttribute({"aria-label":e});else this.removeSVGAttribute("aria-label"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);if(i){var v=this.descriptionElement,b=this.uid+"-description";v.node.textContent!=i&&(v.node.textContent=i,v.attr({id:b})),c.push(b)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);d.length?this.setSVGAttribute({"aria-labelledby":d.join(" ")}):this.removeSVGAttribute("aria-labelledby"),c.length?this.setSVGAttribute({"aria-describedby":c.join(" ")}):this.removeSVGAttribute("aria-describedby"),r?this.setSVGAttribute({role:r}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),s?this.setSVGAttribute({"aria-checked":"true"}):s===!1?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),l?this.setSVGAttribute({"aria-live":l}):this.removeSVGAttribute("aria-live"),u?this.setSVGAttribute({"aria-orientation":u}):this.removeSVGAttribute("aria-orientation"),h?this.setSVGAttribute({"aria-valuenow":h}):this.removeSVGAttribute("aria-valuenow"),p?this.setSVGAttribute({"aria-valuetext":p}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(t.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return C(e)&&this.dataItem?this.populateString(e):e},set:function(e){e=pi(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerDescription",{get:function(){var e=this.getPropertyValue("readerDescription");return C(e)&&this.dataItem?this.populateString(e):this.getPropertyValue("readerDescription")},set:function(e){e=pi(e),this.setPropertyValue("readerDescription",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(e){e=pi(e),this.setPropertyValue("role",e)&&(this.applyAccessibility(),e=="slider"&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(e){e=bt(e),this.setPropertyValue("readerHidden",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(e){e=bt(e),this.setPropertyValue("readerChecked",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(e){e=pi(e),this.setPropertyValue("readerControls",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(e){e=pi(e),this.setPropertyValue("readerLive",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(e){e=pi(e),this.setPropertyValue("readerLabelledBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(e){e=pi(e),this.setPropertyValue("readerDescribedBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(e){e=pi(e),this.setPropertyValue("readerOrientation",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(e){e=pi(e),this.setPropertyValue("readerValueNow",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")},set:function(e){e=pi(e),this.setPropertyValue("readerValueText",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interactions",{get:function(){if(!this._interaction){var e=me().getInteraction(this.dom);this._interaction=e,e.clickable=this.clickable,e.hoverable=this.hoverable,e.trackable=this.trackable,e.draggable=this.draggable,e.swipeable=this.swipeable,e.resizable=this.resizable,e.wheelable=this.wheelable,e.contextMenuDisabled=this.contextMenuDisabled,e.inert=this.inert,e.sprite=this,this._disposers.push(e)}return this._interaction},enumerable:!0,configurable:!0}),t.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(t.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("focusable",e)&&(!e&&!this.isInteractive()||(this.interactions.focusable=e,e?(this.setSVGAttribute({focusable:e}),C(this._tabindex)||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",e,function(){return new Me([i.events.on("blur",i.handleBlur,i,!1),i.events.on("focus",i.handleFocus,i,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleFocus=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0,this.topParent.focusedElement=this),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},t.prototype.handleBlur=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1,this.topParent.focusedElement=void 0),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(t.prototype,"focusFilter",{get:function(){var e=this._focusFilter;if(e)return e;if(this.virtualParent)return this.virtualParent.focusFilter;if(this._parent)return this._parent.focusFilter},set:function(e){this._focusFilter=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(e){e!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabindex",{get:function(){var e=this._tabindex;if(e!=null)return e;if(this.virtualParent)return this.virtualParent.tabindex;if(this._parent)return this._parent.tabindex},set:function(e){e=qe(e),this.setPropertyValue("tabindex",e)&&x(e)&&(this.interactions.tabindex=e,this.setSVGAttribute({tabindex:e}),this._tabindex=e,this.focusable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("draggable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.draggable=e,this.interactions.setEventDisposer("sprite-draggable",e,function(){return new Me([i.events.on("down",i.handleDown,i,!1),i.events.on("dragstart",i.handleDragStart,i,!1),i.events.on("drag",i.handleDragMove,i,!1),i.events.on("dragstop",i.handleDragStop,i,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleDragStart=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},t.prototype.dragStart=function(e){this._isDragged=!0,me().dragStart(this.interactions,e)},t.prototype.handleDragStop=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},t.prototype.dragStop=function(e,i){this._isDragged=!1,me().dragStop(this.interactions,e,i)},t.prototype.handleDragMove=function(e){if(!this.interactions.isTouchProtected||!e.touch){var i=this.interactions.originalPosition;if(i&&this._isDragged){var r=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:i.x+e.shift.x/r,y:i.y+e.shift.y/r},void 0,void 0,!0)}this.dispatchImmediately("dragged",e)}},Object.defineProperty(t.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(e){e=bt(e),this.setPropertyValue("inert",e)&&(!e&&!this.isInteractive()||(this.interactions.inert=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("hoverable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.hoverable=e,this.interactions.setEventDisposer("sprite-hoverable",e,function(){return new Me([i.events.on("over",i.handleOver,i,!1),i.events.on("out",i.handleOut,i,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleOver=function(e){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var i=void 0;e&&e.pointer&&(i=ua(e.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),this.showTooltipOn=="hover"&&this.showTooltip(i)}else this.showTooltipOn=="hover"&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},t.prototype.handleOut=function(e){var i=this;if(this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover){this._outTimeout=this.setTimeout(function(){i.tooltip.isHover||(i.tooltip.targetSprite==i&&i.hideTooltip(),i._outTimeout=i.setTimeout(i.handleOutReal.bind(i),i.rollOutDelay))},10);return}this.showTooltipOn=="hover"&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay)},t.prototype.handleOutReal=function(){!this.isHidden&&!this.isHiding&&this.states.hasKey("hover")&&this.applyCurrentState()},Object.defineProperty(t.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),t.prototype.handleDown=function(e){this.interactions.downPointers.length===1&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},t.prototype.handleUp=function(e){var i=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),this.showTooltipOn=="hit"&&(this.updateTooltipPosition(e.pointer?e.pointer.point:void 0),this._disposers.push(S.events.once("exitframe",function(){i.showTooltip()})),this._disposers.push(me().body.events.once("down",function(r){i.hideTooltip()})))},Object.defineProperty(t.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("clickable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.clickable=e,this.interactions.setEventDisposer("sprite-clickable",e,function(){return new Me([i.events.on("down",i.handleDown,i,!1),i.events.on("up",i.handleUp,i,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("togglable",e)&&(!e&&!this.isInteractive()||this.interactions.setEventDisposer("sprite-togglable",e,function(){return i.events.on("hit",i.handleToggle,i,!1)}))},enumerable:!0,configurable:!0}),t.prototype.handleToggle=function(e){this.isActive=!this.isActive},Object.defineProperty(t.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(e){e=bt(e),this.setPropertyValue("contextMenuDisabled",e)&&(this.interactions.contextMenuDisabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(e){this.setPropertyValue("url",e)&&(this._urlDisposer&&this._urlDisposer.dispose(),vs(e)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=Mt.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(e){this.setBaseId(e)},enumerable:!0,configurable:!0}),t.prototype.setBaseId=function(e){e!=this._baseId&&(this.invalid&&(this.invalid=!1,S.removeFromInvalidSprites(this),this.invalidate()),this._baseId=e)},Object.defineProperty(t.prototype,"baseSprite",{get:function(){if(this.isBaseSprite)return this;if(this._parent)return this._parent.baseSprite},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(e){this.setPropertyValue("urlTarget",e)},enumerable:!0,configurable:!0}),t.prototype.urlHandler=function(e){if(vs(this.url)){var i=this.populateString(this.url);this.urlTarget==="_self"?window.location.href=i:window.open(i,this.urlTarget)}},Object.defineProperty(t.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(e){e=bt(e),this.setPropertyValue("swipeable",e)&&(this.applyCursorStyle(),!e&&!this.isInteractive()||(this.interactions.swipeable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(e){e=bt(e),this.setPropertyValue("trackable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.trackable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(e){this.setPropertyValue("wheelable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.wheelable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(e){var i=this;e=bt(e),this.setPropertyValue("resizable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.resizable=e,this.interactions.setEventDisposer("sprite-resizable",e,function(){return new Me([i.events.on("down",i.handleDown,i,!1),i.events.on("resize",i.handleResize,i,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleResize=function(e){if((!this.interactions.isTouchProtected||!e.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*e.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var i=ua(e.point1,this.htmlContainer,this.svgContainer.cssScale),r=ua(e.point2,this.htmlContainer,this.svgContainer.cssScale),n=us(i,r),s=Da(e.startPoint1,this._parent),o=Da(e.startPoint2,this._parent),l=this.interactions.originalPosition,u=this.interactions.originalScale;if(l){var h={x:(s.x-l.x)/u,y:(s.y-l.y)/u},p={x:(o.x-l.x)/u,y:(o.y-l.y)/u},d=us(h,p),c=Ti(n,this._parent);this.moveTo({x:c.x-d.x*this.scale,y:c.y-d.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(t.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorOverStyle",{set:function(e){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=e,me().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorDownStyle",{set:function(e){this.cursorOptions.downStyle=e},enumerable:!0,configurable:!0}),t.prototype.applyCursorStyle=function(){},Object.defineProperty(t.prototype,"interactionsEnabled",{get:function(){var e=this.getPropertyValue("interactionsEnabled");return e===!1?!1:this.virtualParent?this.virtualParent.interactionsEnabled:this._parent?this._parent.interactionsEnabled:!0},set:function(e){if(e=bt(e),this.setPropertyValue("interactionsEnabled",e)){var i=null;e?this.group.node.style.pointerEvents="":i="none",this.group.node.style.pointerEvents=i}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exporting",{get:function(){return this.getExporting()},set:function(e){this._exporting.set(e,e)},enumerable:!0,configurable:!0}),t.prototype.getExporting=function(){var e=this._exporting.get();if(e)return e;if(this.isStandaloneInstance||!this._parent)e=new Gc(this.svgContainer.SVGContainer),e.sprite=this,e.language=this.language,e.numberFormatter=this.numberFormatter,e.dateFormatter=this.dateFormatter,e.durationFormatter=this.durationFormatter,this._exporting.set(e,e);else return this._parent.exporting;return e},Object.defineProperty(t.prototype,"exportable",{get:function(){return this._exportable},set:function(e){var i=this.svgContainer;this._exportable=e,i&&(e?de(i.nonExportableSprites,this):Di(i.nonExportableSprites,this)==-1&&i.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),t.prototype.modalPrefix=function(e){return e=Ce.classNamePrefix+e,e},Object.defineProperty(t.prototype,"modal",{get:function(){var e=this.svgContainer;if(e){var i=e.modal;return i.adapter.has("classPrefix",this.modalPrefix)||i.adapter.add("classPrefix",this.modalPrefix),i}},enumerable:!0,configurable:!0}),t.prototype.openModal=function(e,i){var r=this.svgContainer;if(r)return r.openModal(e,i)},t.prototype.closeModal=function(){var e=this.svgContainer;e&&e.closeModal()},Object.defineProperty(t.prototype,"popups",{get:function(){var e=this.svgContainer;if(e){var i=e.popups;return i.template.sprite=this,i.template.adapter.has("classPrefix",this.modalPrefix)||i.template.adapter.add("classPrefix",this.modalPrefix),i}},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(e,i){var r=this.svgContainer;if(r)return r.openPopup(e,i)},t.prototype.closeAllPopups=function(){var e=this.svgContainer;e&&e.closeAllPopups()},Object.defineProperty(t.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(e){this.isDragged||this.setPercentProperty("x",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelX",{get:function(){var e=ee(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("minX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("maxX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(e){this.isDragged||this.setPercentProperty("y",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelY",{get:function(){var e=ee(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("minY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("maxY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("dx",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(e){x(e)&&(e=z(e,this._positionPrecision,!0),this.setPropertyValue("dy",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(e){e=qe(e),x(e)||(e=0),this.setPropertyValue("rotation",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(e){e=pi(e),this.setPropertyValue("align",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(e){e=pi(e),this.setPropertyValue("valign",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(e){e=pi(e),this.setPropertyValue("horizontalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(e){e=pi(e),this.setPropertyValue("verticalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){var e=this.getPropertyValue("maxWidth");if(!x(e)&&this._parent){var i=this._parent.maxWidth;return this._parent.layout!="absolute"&&this.align!="none"&&this.align!=null&&(i=i-this.pixelMarginLeft-this.pixelMarginRight),i}return e},set:function(e){this.setMaxWidth(e)},enumerable:!0,configurable:!0}),t.prototype.setMaxWidth=function(e){var i=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxWidth",e)){x(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:i,previousHeight:r};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(t.prototype,"maxHeight",{get:function(){var e=this.getPropertyValue("maxHeight");if(!x(e)&&this._parent){var i=this._parent.maxHeight;return this._parent.layout!="absolute"&&this.valign!="none"&&this.valign!=null&&(i=i-this.pixelMarginTop-this.pixelMarginBottom),i}return e},set:function(e){this.setMaxHeight(e)},enumerable:!0,configurable:!0}),t.prototype.setMaxHeight=function(e){var i=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxHeight",e)){x(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:i,previousHeight:r};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){var i=this.setPercentProperty("width",e,!0,!1,this._positionPrecision,!0);i&&(this.percentWidth=void 0,this.relativeWidth=void 0,e instanceof xe?(this.percentWidth=e.percent,x(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(e),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){var i=this.setPercentProperty("height",e,!0,!1,this._positionPrecision,!0);i&&(this.percentHeight=void 0,this._relativeHeight=void 0,e instanceof xe?(this.percentHeight=e.percent,x(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(e),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelWidth",{get:function(){var e;x(this.percentWidth)?e=this.maxWidth:x(this._pixelWidth)?e=this._pixelWidth:e=0;var i=this.minWidth;i!=null&&e<i&&(e=i);var r=z(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelHeight",{get:function(){var e;x(this.percentHeight)?e=this.maxHeight:x(this._pixelHeight)?e=this._pixelHeight:e=0;var i=this.minHeight;i!=null&&e<i&&(e=i);var r=z(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeWidth",{get:function(){var e=this._relativeWidth;if(x(e))return this._adapterO?this._adapterO.apply("relativeWidth",e):e},set:function(e){this._relativeWidth!=e&&(this._relativeWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeHeight",{get:function(){var e=this._relativeHeight;if(x(e))return this._adapterO?this._adapterO.apply("relativeHeight",e):e},set:function(e){this._relativeHeight!=e&&(this._relativeHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerWidth",{get:function(){var e=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerHeight",{get:function(){var e=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerWidth",{get:function(){var e=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerHeight",{get:function(){var e=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalScale",{get:function(){var e=this.scale;return this._parent&&(e=e*this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(e){e=qe(e),e<0&&(e=0),e!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",e,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),t.prototype.margin=function(e,i,r,n){return this.marginTop=e,this.marginRight=i,this.marginBottom=r,this.marginLeft=n,this},Object.defineProperty(t.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(e){this.setPercentProperty("marginLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(e){this.setPercentProperty("marginRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(e){this.setPercentProperty("marginTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(e){this.setPercentProperty("marginBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelMarginRight",{get:function(){var e=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeMarginRight",{get:function(){var e=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelMarginLeft",{get:function(){var e=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeMarginLeft",{get:function(){var e=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelMarginTop",{get:function(){var e=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeMarginTop",{get:function(){var e=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelMarginBottom",{get:function(){var e=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeMarginBottom",{get:function(){var e=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",e):e},enumerable:!0,configurable:!0}),t.prototype.padding=function(e,i,r,n){return this.paddingTop=e,this.paddingRight=i,this.paddingBottom=r,this.paddingLeft=n,this},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(e){this.setPercentProperty("paddingLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(e){this.setPercentProperty("paddingRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(e){this.setPercentProperty("paddingTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(e){this.setPercentProperty("paddingBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPath(e)},enumerable:!0,configurable:!0}),t.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this._adapterO&&(e=this._adapterO.apply("path",e)),this._isPath||((!this.element||this.element.node&&!(this.element.node instanceof SVGPathElement))&&(this.element=this.paper.add("path")),this._isPath=!0),C(e)?this.element.attr({d:e}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0):!1},Object.defineProperty(t.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(e){this.setPropertyValue("fillModifier",e)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(e){this.setPropertyValue("strokeModifier",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(e){e=sh(e,0,1),this.setPropertyValue("fillOpacity",e)&&this.setSVGAttribute({"fill-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(e){this.setFill(e)},enumerable:!0,configurable:!0}),t.prototype.setFill=function(e){if((!He(e)||"r"in e)&&(e=ji(e)),this.setColorProperty("fill",e)||this.fillModifier){if(e instanceof _e&&this.fillModifier&&(e=this.fillModifier.modify(e)),this.realFill=e,e instanceof _e)this.setSVGAttribute({fill:e.toString()});else if(!C(e))this.removeSVGAttribute("fill");else if(e instanceof ca||e instanceof fi||e instanceof yr){var i=e;i.paper=this.paper,this.setSVGAttribute({fill:'url("'+Sn()+i.id+'")'})}}},Object.defineProperty(t.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(e){e=sh(e,0,1),this.setPropertyValue("opacity",e)&&this.setSVGAttribute({opacity:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(e){this.setStroke(e)},enumerable:!0,configurable:!0}),t.prototype.setStroke=function(e){if((!He(e)||"r"in e)&&(e=ji(e)),this.setColorProperty("stroke",e)||this.strokeModifier){if(e instanceof _e&&this.strokeModifier&&(e=this.strokeModifier.modify(e)),this.realStroke=e,e instanceof _e)e.hex=="none"?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:e.toString()});else if(!C(e))this.removeSVGAttribute("stroke");else if(e instanceof ca||e instanceof fi||e instanceof yr){var i=e;i.paper=this.paper,this.setSVGAttribute({stroke:'url("'+Sn()+i.id+'")'})}}},Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(e){e=sh(e,0,1),this.setPropertyValue("strokeOpacity",e)&&this.setSVGAttribute({"stroke-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(e){e=bt(e),this.setPropertyValue("nonScalingStroke",e)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(e){e=bt(e),this.setPropertyValue("nonScaling",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(e){e=qe(e),this.setPropertyValue("strokeWidth",e,!0),this.nonScalingStroke&&(x(e)||(e=1),e=e/this.globalScale),this.setSVGAttribute({"stroke-width":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(e){e=pi(e),this.setPropertyValue("strokeDasharray",e)&&this.setSVGAttribute({"stroke-dasharray":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(e){e=qe(e),this.setPropertyValue("strokeDashoffset",e)&&this.setSVGAttribute({"stroke-dashoffset":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(e){this.setPropertyValue("strokeLinecap",e)&&this.setSVGAttribute({"stroke-linecap":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(e){this.setPropertyValue("strokeLinejoin",e)&&this.setSVGAttribute({"stroke-linejoin":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(e){e=pi(e),this.setPropertyValue("shapeRendering",e)&&this.setSVGAttribute({"shape-rendering":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(e){e=bt(e),e?this._positionPrecision=Ce.pixelPerfectPrecision:this._positionPrecision=3,this.setPropertyValue("pixelPerfect",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtl",{get:function(){return C(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=bt(e),this.isBaseSprite&&(this.topParent.rtl=e),this._rtl=e},enumerable:!0,configurable:!0}),t.prototype.show=function(e){return this.showReal(e)},t.prototype.showReal=function(e){var i=this;if(!this.preventShow){var r,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||n.opacity!=null&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),x(e)||(e=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,r=this.applyCurrentState(e),r&&!r.isFinished()?(this._showHideDisposer=r.events.on("animationended",function(){i.isShowing=!1}),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var s=this.defaultState.properties.visible;C(s)||(s=!0),this.visible=s,this.readerHidden=!1,this.dispatchImmediately("shown")}return r}},t.prototype.hide=function(e){return this.hideReal(e)},t.prototype.hideReal=function(e){var i=this,r;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var n=this.hiddenState;n?(r=this.setState(n,e,void 0),r&&!r.isFinished()?(this._hideAnimation=r,this._showHideDisposer=r.events.on("animationended",function(){i.isHiding=!1,i._isHidden=!0,n.properties.visible==!1&&(i.visible=!1)},this),this._disposers.push(this._showHideDisposer),this._disposers.push(r)):(this.isHiding=!1,this._isHidden=!0)):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return x(e)||(e=this.hiddenState.transitionDuration),r},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisibility()},set:function(e){e=bt(e),this.setVisibility(e)},enumerable:!0,configurable:!0}),t.prototype.getVisibility=function(){var e=this.getPropertyValue("visible");return C(e)||(e=!0),e},t.prototype.setVisibility=function(e){if(this.setPropertyValue("visible",e)&&(e?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var i={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",i)}},Object.defineProperty(t.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(e){e=qe(e),this.setPropertyValue("zIndex",e)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),t.prototype.toFront=function(){var e=this._parent;e&&e.children.indexOf(this)!=e.children.length-1&&(e.children.moveValue(this,e.children.length-1),this.dispatch("zIndexChanged"))},t.prototype.toBack=function(){var e=this._parent;e&&e.children.indexOf(this)!=0&&(e.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(t.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")},set:function(e){this.setPropertyValue("userClassName",e)&&(!e&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){if(this._tooltip)return this._tooltip;if(this.virtualParent)return this.virtualParent.tooltip;if(this._parent)return this._parent.tooltip},set:function(e){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=e,e&&(e.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipDataItem",{get:function(){var e=this._tooltipDataItem;return e||this.dataItem},set:function(e){this._tooltipDataItem=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(e){this._tooltipColorSource=e},enumerable:!0,configurable:!0}),t.prototype.showTooltip=function(e){this.showTooltipOn=="always"&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!e&&this.tooltipPosition=="pointer"&&this.isHover&&(e=ua(me().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var i=this;i!=null;){if(!i.visible||i.disabled||i.__disabled){this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0);return}i=i.parent}if(C(this.tooltipText)||C(this.tooltipHTML)){var r=this.tooltip,n=this.tooltipDataItem;if(r){r.targetSprite=this;var s=this,o=this.tooltipColorSource;if((r.getStrokeFromObject||r.getFillFromObject)&&o&&(o.isTemplate?n&&mo(n.sprites,function(c){return c.clonedFrom==o?(s=c,!1):!0}):s=o),r.getStrokeFromObject){for(var l=this.stroke,u=s;u.parent!=null&&(l=u.stroke,l==null&&(u=u.parent),l==null););l instanceof _e?r.background.animate({property:"stroke",to:l},r.animationDuration):r.background.stroke=l}if(r.dataItem=n,r.label.populateStringFrom=this,r.getFillFromObject){for(var h=this.fill,u=s;u.parent!=null;)if(h=u.fill,h==null||h instanceof _e&&h.rgb==null)u=u.parent;else if(h!=null)break;h==null&&(h=oe("#000000")),h instanceof _e&&r.visible?r.background.animate({property:"fill",to:h},r.animationDuration):r.background.fill=h,r.autoTextColor&&h instanceof _e&&(r.label.fill=h.alternative)}var p="";if(this.tooltipHTML&&(r.html=this.tooltipHTML,p=this.tooltipHTML),this.tooltipText&&(r.text=this.tooltipText,p=this.tooltipText),this.updateTooltipPosition(e))if(r.readerDescribedBy=this.uidAttr(),r.label.invalid&&r.label.validate(),p!=null&&p!=""&&r.label.currentText!=""){r&&!r.parent&&(r.parent=this.tooltipContainer);var d=r.defaultState.transitionDuration;return d<=0&&(d=1),r.show(d),r.currentSprite=this,!0}else this.hideTooltip(0);else this.hideTooltip(0)}}return!1},t.prototype.updateTooltipPosition=function(e){var i=this;if(this.tooltipPosition=="pointer"){if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=me().body.events.on("track",function(n){return i.pointTooltipTo(ua(n.point,i.svgContainer.SVGContainer,i.svgContainer.cssScale),!0)}),e)return this.pointTooltipTo(e,!0)}else{var r=Bi({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(r)}},t.prototype.pointTooltipTo=function(e,i){var r=this.tooltip;return r&&this.topParent&&(r.showInViewport||uh(e,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))?(r.pointTo(e,i),!0):!1},t.prototype.hideTooltip=function(e){if(this.showTooltipOn!="always"){var i=this.tooltip;i&&(i.targetSprite==this&&(i.targetSprite=void 0),i.hide(e),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(t.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(e){e=pi(e),this.hoverable=!0,this.setPropertyValue("tooltipHTML",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(e){e=pi(e),e&&(this.hoverable=!0),this.setPropertyValue("tooltipText",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipContainer",{get:function(){if(this._tooltipContainer)return this._tooltipContainer;if(this._parent)return this._parent.tooltipContainer},set:function(e){this._tooltipContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(e){this.setPercentProperty("tooltipX",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alwaysShowTooltip",{get:function(){return this.getPropertyValue("showTooltipOn")=="always"},set:function(e){e=bt(e),e&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(e){this.setPropertyValue("showTooltipOn",e)&&(e=="hit"&&(this.clickable=!0),this.tooltip&&(e=="always"?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(e){this.setPropertyValue("tooltipPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(e){this.setPercentProperty("tooltipY",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),t.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");C(e)||(e=W(50));var i;return x(e)&&(i=e),e instanceof xe&&(i=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),x(i)||(i=0),i},t.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");C(e)||(e=W(50));var i;return x(e)&&(i=e),e instanceof xe&&(i=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),x(i)||(i=0),i},t.prototype.raiseCriticalError=function(e,i){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",e).message:this.modal.content=e.message,i?this.modal.closable=!0:this.disabled=!0,Ce.suppressErrors||this.modal.open()),Ce.verbose&&console.log(e)},t.prototype.processConfig=function(e){e&&(C(e.tooltipColorSource)&&ye(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),C(e.cursorOverStyle)&&ye(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),C(e.cursorDowntyle)&&ye(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),C(e.cursorOptions)&&(C(e.cursorOptions.overStyle)&&ye(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),C(e.cursorOptions.downStyle)&&ye(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),a.prototype.processConfig.call(this,e),this.processDelayedMap()},t.prototype.getCursorStyle=function(e){switch(e){case"grab":return Mt.grab;case"grabbing":return Mt.grabbing;case"pointer":return Mt.pointer;case"horizontalResize":return Mt.horizontalResize;case"verticalResize":return Mt.verticalResize;default:return Mt.default}},t.prototype.configOrder=function(e,i){return e==i?0:e=="tooltipColorSource"?1:i=="tooltipColorSource"?-1:a.prototype.configOrder.call(this,e,i)},Object.defineProperty(t.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:this._parent?this._parent.isHidden:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(e){e=bt(e),this.setShowOnInit(e)},enumerable:!0,configurable:!0}),t.prototype.setShowOnInit=function(e){this.setPropertyValue("showOnInit",e)&&(this.isTemplate||(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer=new Me([S.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer)):this._showOnInitDisposer&&this._showOnInitDisposer.dispose()))},t.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},t.prototype.appear=function(){var e=this;if(this.appeared=!1,!this.hidden&&!this.isHidden&&this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var i=this.show();i&&!i.isFinished()?this.addDisposer(i.events.on("animationended",function(){e.appeared=!0,e.dispatch("appeared")})):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(t.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(e){e=bt(e),this.setPropertyValue("hidden",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"plugins",{get:function(){var e=this;return this._plugins||(this._plugins=new we,this._disposers.push(this._plugins.events.on("inserted",function(i){i.newValue.target=e,i.newValue.init()})),this._disposers.push(new Ie(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),t.prototype._systemUpdate=function(e){this.validate()},t.prototype._systemCheckIfValidate=function(){return!0},t.prototype._systemValidatePositions=function(){this.validatePosition()},t.prototype._systemValidateLayouts=function(){},t})(ci);S.registeredClasses.Sprite=ne;var Yc=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._rules=new we,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new Bt(e),e._enabled=!1,e._responsiveDisposers=[],e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",function(){e.checkRules()},!0),e.rules.events.on("removed",function(){e.checkRules()},!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return Object.defineProperty(t.prototype,"component",{get:function(){return this._component},set:function(e){var i=this;e!=this._component&&(this.disposeResponsiveHandlers(),this._component=e,this._responsiveDisposers.push(Ze(this.component).events.on("sizechanged",function(){i.checkRules()},this)),this._responsiveDisposers.push(Ze(this.component).events.once("datavalidated",function(){i._component.isReady()&&i.checkRules(!0)},this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(e){this._enabled!=e&&(this._enabled=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(e){this._useDefault!=e&&(this._useDefault=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(e){this._rules=e,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",Dt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allRules",{get:function(){var e=new we;return this.useDefault&&e.copyFrom(this.defaultRules),e.copyFrom(this.rules),this.adapter.apply("allRules",e)},enumerable:!0,configurable:!0}),t.prototype.isApplied=function(e){var i=this._appliedRules[e];return C(i)?i:!1},t.prototype.checkRules=function(e){var i=this;e===void 0&&(e=!1);var r=this.allRules;if(!(!r||r.length==0)){var n=!1,s=Ze(this.component);if(!(s.pixelWidth==0||s.pixelHeight==0)&&(j(r.iterator(),function(o){o.id||(o.id=S.getUniqueId());var l=o.relevant(s);(l&&!i.isApplied(o.id)||!l&&i.isApplied(o.id))&&(n=!0),i._appliedRules[o.id]=l}),e&&(n=!0),n)){if(!this.component.isReady()){s.hidden=!0,s.events.once("ready",function(o){o.target.show(0),i._applyRules()});return}this.dispatchImmediately("ruleschanged"),this._applyRules()}}},t.prototype._applyRules=function(){var e=this;this._timeout&&this._timeout.dispose(),this._timeout=this.setTimeout(function(){e.applyRules()},10)},t.prototype.applyRules=function(e){var i=this,r=C(e)?e:Ze(this.component),n=!1;if(this.enabled){var s=!1;j(this.allRules.iterator(),function(o){var l=i.getState(o,r);l&&(n||(Di(i._appliedTargets,r.uid)!==-1&&r.setState(i.getDefaultState(r),0),n=!0),i.isApplied(Ze(o.id))&&(l.transitionDuration=0,i.setTargetState(r,l),i.dispatchImmediately("ruleapplied",{rule:o}),s=!0))}),s?qy(this._appliedTargets,r.uid):de(this._appliedTargets,r.uid)}r.children&&j(r.children.iterator(),function(o){i.applyRules(o)})},t.prototype.getState=function(e,i){var r="responsive-"+e.id,n=i.uid+"_"+r;if(Di(this._noStates,n)===-1){if(i.states.hasKey(r))return i.states.getKey(r);var s=e.state(i,r);return s||this._noStates.push(n),s}},t.prototype.getDefaultState=function(e){return e.states.hasKey("responsive-default")?e.states.getKey("responsive-default"):e.states.create("responsive-default")},t.prototype.setTargetState=function(e,i){var r=this,n=this.getDefaultState(e);se(i.properties,function(s,o){C(n.properties[s])||(n.properties[s]=r.getValue(e,s))}),e.setState(i)},t.prototype.getValue=function(e,i){var r=e.getPropertyValue(i);return!C(r)&&C(e[i])&&(r=e[i]),r},t.prototype.dispose=function(){this.disposeResponsiveHandlers(),a.prototype.dispose.call(this)},t.prototype.disposeResponsiveHandlers=function(){for(var e=this._responsiveDisposers.pop();e;)e.dispose(),e=this._responsiveDisposers.pop()},t})(ci);var Dt=new we;Dt.events.on("inserted",function(a){a.newValue.id=S.getUniqueId()});var Nt=(function(){function a(){}return a.widthXXS=function(t){return t.pixelWidth<=a.XXS},a.widthXS=function(t){return t.pixelWidth<=a.XS},a.widthS=function(t){return t.pixelWidth<=a.S},a.widthM=function(t){return t.pixelWidth<=a.M},a.widthL=function(t){return t.pixelWidth<=a.L},a.widthXL=function(t){return t.pixelWidth<=a.XL},a.widthXXL=function(t){return t.pixelWidth<=a.XXL},a.heightXXS=function(t){return t.pixelHeight<=a.XXS},a.heightXS=function(t){return t.pixelHeight<=a.XS},a.heightS=function(t){return t.pixelHeight<=a.S},a.heightM=function(t){return t.pixelHeight<=a.M},a.heightL=function(t){return t.pixelHeight<=a.L},a.heightXL=function(t){return t.pixelHeight<=a.XL},a.heightXXL=function(t){return t.pixelHeight<=a.XXL},a.isXXS=function(t){return t.pixelWidth<=a.XXS&&t.pixelHeight<=a.XXS},a.isXS=function(t){return t.pixelWidth<=a.XS&&t.pixelHeight<=a.XS},a.isS=function(t){return t.pixelWidth<=a.S&&t.pixelHeight<=a.S},a.isM=function(t){return t.pixelWidth<=a.M&&t.pixelHeight<=a.M},a.isL=function(t){return t.pixelWidth<=a.L&&t.pixelHeight<=a.L},a.isXL=function(t){return t.pixelWidth<=a.XL&&t.pixelHeight<=a.XL},a.isXXL=function(t){return t.pixelWidth<=a.XXL&&t.pixelHeight<=a.XXL},a.maybeXXS=function(t){return t.pixelWidth<=a.XXS||t.pixelHeight<=a.XXS},a.maybeXS=function(t){return t.pixelWidth<=a.XS||t.pixelHeight<=a.XS},a.maybeS=function(t){return t.pixelWidth<=a.S||t.pixelHeight<=a.S},a.maybeM=function(t){return t.pixelWidth<=a.M||t.pixelHeight<=a.M},a.maybeL=function(t){return t.pixelWidth<=a.L||t.pixelHeight<=a.L},a.maybeXL=function(t){return t.pixelWidth<=a.XL||t.pixelHeight<=a.XL},a.maybeXXL=function(t){return t.pixelWidth<=a.XXL||t.pixelHeight<=a.XXL},a.XXS=100,a.XS=200,a.S=300,a.M=400,a.L=600,a.XL=800,a.XXL=1e3,a})();var Rt=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=new ue().getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="\u2026",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",function(){e.inited&&e.handleMaxSize()},e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return t.prototype.afterDraw=function(){a.prototype.afterDraw.call(this),this.validatePosition()},t.prototype.setPaper=function(e){var i=a.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},t.prototype.handleValidate=function(){(this.currentText||this.text)&&(this.bbox.width==0||this.bbox.height==0)&&S.events.once("exitframe",this.hardInvalidate,this)},t.prototype.handleMaxSize=function(){(this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized)&&this.invalidate()},t.prototype.arrange=function(){},t.prototype.updateCurrentText=function(){var e,i;vs(this.html)&&this.paper.supportsForeignObject()?(e="html",i=this.html):(e="svg",i=this.text),He(i)&&(i=i.toString()),C(i)&&i!==""&&(i=this.populateString(i,this.dataItem)),e=="html"?this._adapterO&&(i=this._adapterO.apply("htmlOutput",i)):this._adapterO&&(i=this._adapterO.apply("textOutput",i));var r=i!=this.currentText||e!=this._currentFormat;return this.currentText=i,this._currentFormat=e,r},t.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},t.prototype.getLineBBox=function(e){var i=e&&e.element,r=i&&i.node;r&&r.parentNode&&(e.bbox=i.getBBox())},t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.bbox.width,i=this.bbox.height,r=this.topParent;if(r&&(!r.maxWidth||!r.maxHeight)){r.events.once("maxsizechanged",this.hardInvalidate,this,!1);return}var n=fe(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),s=fe(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=s+","+n+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(!(!this.updateCurrentText()&&this.inited&&this._prevStatus==o)){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var l=this._currentFormat,u=this.currentText;if(!C(u)||u==""){this.element.attr({display:"none"});return}var h=u.split(`
|
|
22
|
-
`);this._prevStatus=o,this.textAlign=this.textAlign;var p=this.group.getAttr("display");if(p=="none"&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),l==="svg"){this.element.removeAttr("display");var d=this.element;this.resetBBox();for(var c=0,f="",m=0;m<h.length;m++){var y=h[m];if(y==""){var g=this.getSVGLineElement("",0);g.add(this.getSvgElement(".",ar().translateStyleShortcuts(f))),d.add(g);var v=Math.ceil(g.getBBox().height);v>0&&(c+=v),d.removeElement(g);var b=this.getLineInfo(m);b&&(b.text="",b.element.textContent="");continue}var P=ar().chunk(y,null,this.ignoreFormatting),w=0,T=!0,F=!1,D=this.getLineInfo(m);D?(D.text="",D.element.textContent=""):(D={text:"",element:this.getSVGLineElement("",0),complex:!1},d.add(D.element)),D.element.removeAttr("display"),D.element.removeChildren(),this.textPathElement&&D.element.add(this.textPathElement);for(var O=0;O<P.length;O++){O&&(D.complex=!0);var N=P[O];if(N.type==="format")f=N.text;else{if(F)continue;if(D.text=N.text,D.style=ar().translateStyleShortcuts(f),this.textPathElement?this.getSvgElement(D.text,D.style,this.textPathElement):this.getSvgElement(D.text,D.style,D.element),this.getLineBBox(D),D.bbox.width=Math.ceil(D.bbox.width),w<D.bbox.height&&(w=D.bbox.height),(this.wrap||this.truncate)&&D.bbox.width>n){this.isOversized=!0;var L=D.element.textContent,E=D.bbox.width/L.length,B=Se(Math.ceil((D.bbox.width-n)/E),L.length);if(this.truncate){var U=!1,q=D.element.node;if(q&&q.childNodes)for(var Y=D.element.node.childNodes.length-1;Y>=0;Y--){var he=D.element.node.childNodes[Y];if(U&&D.bbox.width<=n&&(he.textContent+=" "+this.ellipsis,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),D.bbox.width<=n))break;U=!1;var re=he.textContent;for(L=D.element.textContent,B=Se(Math.ceil((D.bbox.width-n)/E),L.length);D.bbox.width>n&&B<=L.length&&B>0;){var pe=fe(L.length-B-this.ellipsis.length,1);pe<=1&&(B=0,Y>0&&(U=!0,D.element.node.removeChild(he))),re=Co(re,pe,this.ellipsis,this.fullWords,this.rtl),re.length>pe&&this.fullWords&&(re=Co(re,pe,this.ellipsis,!1,this.rtl)),he.textContent=re,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),B=Math.ceil(B*1.1)}F=!0}}else{var le=D.element.node;if(le){for(var Pe=D.element.node.lastChild,ae=void 0;D.bbox.width>n&&B<=L.length&&B>0;){var pe=fe(N.text.length-B,1);if(T?ae=zl(N.text,pe,!0,this.rtl):(ae=zl(N.text,pe,!0,this.rtl,!1),(ae[0].length>pe||pe===1)&&(D.element.node.removeChild(Pe),B=0)),B>0){var Oe=ae.shift();T&&(Oe=Hl(Oe)),Pe.textContent=ar().cleanUp(Oe)}D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),B++}if(ae.length>0){var ve="";C(ae)&&(this.rtl?ve+=ae.join("")+f:ve+=f+ae.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var Ye=O+1;Ye<P.length;Ye++)P[Ye].type=="value"?ve+=P[Ye].text.replace(/([\[\]]{1})/g,"$1$1"):ve+=P[Ye].text;h.splice(m+1,0,ve)}F=!0}}}this.bbox.width<D.bbox.width&&(this.bbox.width=D.bbox.width),this.bbox.height=c+w,this.textPathElement?D.element.attr({dy:-this.paddingBottom.toString()}):D.element.attr({x:"0",y:c+w,dy:z(this.baseLineRatio*w,3).toString()}),T=!1}}var Qe=D.element.node;if(Qe){var Pe=Qe.lastChild;Pe&&(Pe.textContent=this.rtl?uc(Pe.textContent):lc(Pe.textContent))}c+=w,this.addLineInfo(D,m)}this.maybeHideOversized(),this.measureFailed=!1,(this.bbox.width==0||this.bbox.height==0)&&(this.measureFailed=!0),this._measuredWidth=z(fe(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=z(fe(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,(i!=this._measuredHeight||e!=this._measuredWidth)&&this.dispatch("transformed"),this.hideUnused(h.length)}else{this.element.removeAttr("display"),this.resetBBox();var d=this.element;d.removeChildren(),this.setCache("lineInfo",[],0);var rt=this.paper.foreignObject();d.add(rt),this.maxWidth&&rt.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&rt.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var zt=this.getHTMLLineElement(u);rt.node.appendChild(zt),zt.style.display="inline-block";var Gt=zt.clientWidth,at=zt.clientHeight;zt.style.display="block",this._bbox={x:0,y:0,width:Gt,height:at},rt.attr({width:Gt+1,height:at}),this.maybeHideOversized(),this._measuredWidth=fe(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=fe(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(zt.style.overflow="hidden"),(Gt>n||at>s)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),p=="none"&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}},t.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},t.prototype.alignSVGText=function(){var e=this.element,i=e.node.children||e.node.childNodes;if(!(!i||i&&i.length==0)){var r=this._measuredWidth,n=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom,this.rtl?e.attr({direction:"rtl"}):e.removeAttr("direction");for(var s=i.length-1;s>=0;s--){var o=i[s];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(r/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",r.toString());break;default:this.rtl?o.setAttribute("x",r.toString()):o.removeAttribute("text-anchor");break}var l=qe(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((l||0)+(n-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((l||0)+n-this.bbox.height).toString());break;default:o.setAttribute("y",(l||0).toString());break}}}}},t.prototype.getSVGLineElement=function(e,i){var r=this.paper.addGroup("text");return r.textContent=e,r.attr({x:"0"}),C(i)&&r.attr({y:i.toString()}),(this.truncate||this.wrap)&&r.attr({overflow:"hidden"}),r},Object.defineProperty(t.prototype,"rtl",{get:function(){return C(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=bt(e),this._rtl=e,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),t.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},t.prototype.getHTMLLineElement=function(e){var i=document.createElement("div");switch(i.innerHTML=e,this.textAlign){case"middle":i.style.textAlign="center";break;case"end":i.style.textAlign="right";break}return this.wrap?i.style.wordWrap="break-word":i.style.whiteSpace="nowrap",this.rtl&&(i.style.direction="rtl"),C(this.fill)&&(i.style.color=this.fill.toString()),i},t.prototype.setStyles=function(){var e=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?e.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(e.removeStyle("webkitUserSelect"),e.removeStyle("msUserSelect"))},t.prototype.hideUnused=function(e){this.initLineCache();var i=this.getCache("lineInfo");if(i.length>=e)for(var r=e;r<i.length;r++){var n=i[r];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(t.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(e){this.setPropertyValue("text",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPropertyValue("path",e,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:e}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(Oo,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:e}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(e){this.setPropertyValue("locationOnPath",e),this.textPathElement&&this.textPathElement.attr({startOffset:e*100+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(e){this.setPropertyValue("baseLineRatio",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(e){this.resetBBox(),this.setPropertyValue("wrap",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(e){this.resetBBox(),this.setPropertyValue("truncate",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(e){this.setPropertyValue("fullWords",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(e){this.setPropertyValue("ellipsis",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(e){this.setPropertyValue("selectable",e,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(e){this.setPropertyValue("textAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(e){this.setPropertyValue("textValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(e){if(this.setPropertyValue("html",e,!0),!C(e)){var i=this.element;i.removeChildrenByTag("foreignObject")}},enumerable:!0,configurable:!0}),t.prototype.setFill=function(e){if(a.prototype.setFill.call(this,e),this.html)for(var i=this.element,r=i.node.getElementsByTagName("div"),n=0;n<r.length;n++){var s=r[n];C(this.fill)&&(s.style.color=this.fill.toString())}},Object.defineProperty(t.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(e){this.setPropertyValue("hideOversized",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(e){this.setPropertyValue("ignoreFormatting",e,!0)},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){},t.prototype.getLineInfo=function(e){this.initLineCache();var i=this.getCache("lineInfo");return i.length>e?i[e]:void 0},t.prototype.addLineInfo=function(e,i){this.initLineCache(),this.getCache("lineInfo")[i]=e},t.prototype.initLineCache=function(){C(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},t.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new Me([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),a.prototype.setDataItem.call(this,e)},Object.defineProperty(t.prototype,"availableWidth",{get:function(){return C(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availableHeight",{get:function(){return C(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),t.prototype.getSvgElement=function(e,i,r){var n=this.paper.add("tspan");if(n.textContent=e,i)if(Ce.nonce&&r){var s="amcharts_element_style_"+btoa(i).replace(/[^\w]*/g,"");n.node.setAttribute("class",s);var o=document.createElementNS(wn,"defs");r.node.appendChild(o);var l=document.createElement("style");l.type="text/css",l.innerHTML="."+s+" { "+i+"}",l.setAttribute("nonce",Ce.nonce),o.appendChild(l)}else n.node.setAttribute("style",i);return r&&r.add(n),n},t.prototype.deepInvalidate=function(){a.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(t.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return e?this.dataItem&&(e=this.populateString(e)):e=this.populateString(wo(vs(this.html)?this.html:this.text)),e},set:function(e){e=pi(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.Label=Rt;Dt.push({relevant:Nt.heightXS,state:function(a,t){if(a instanceof Rt&&a.parent&&a.parent.isBaseSprite){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var xi=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(x(e)&&x(i)){var r=Se(e,i)/2,n=Ke(this.cornerRadiusTopLeft,r),s=Ke(this.cornerRadiusTopRight,r),o=Ke(this.cornerRadiusBottomRight,r),l=Ke(this.cornerRadiusBottomLeft,r),u=Se(Math.abs(e/2),Math.abs(i/2)),h=ee(n,0,u),p=ee(s,0,u),d=ee(o,0,u),c=ee(l,0,u),f="M"+h+",0 L"+(e-p)+",0",m=" L"+c+","+i,y=" L0,"+h,g=" L"+e+","+(i-d),v=" a"+p+","+p+" 0 0 1 "+p+","+p,b=" a"+d+","+d+" 0 0 1 -"+d+","+d,P=" a"+c+","+c+" 0 0 1 -"+c+",-"+c,w=" a"+h+","+h+" 0 0 1 "+h+",-"+h,T=f+v+g+b+m+P+y+w+" Z";this.path=T}},t.prototype.cornerRadius=function(e,i,r,n){this.cornerRadiusTopLeft=e,this.cornerRadiusTopRight=i,this.cornerRadiusBottomLeft=r,this.cornerRadiusBottomRight=n},Object.defineProperty(t.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(e){this.setPercentProperty("cornerRadiusTopLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(e){this.setPercentProperty("cornerRadiusTopRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(e){this.setPercentProperty("cornerRadiusBottomRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(e){this.setPercentProperty("cornerRadiusBottomLeft",e,!0)},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){},Object.defineProperty(t.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.RoundedRectangle=xi;var hu=(function(){function a(){}return a.prototype.parse=function(t){return[]},Object.defineProperty(a.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),a.prototype.maybeToNumber=function(t,e){return this.options.numberFields.indexOf(t)!==-1?Po(e):e},Object.defineProperty(a.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),a.prototype.maybeToDate=function(t,e){return this.options.dateFields.indexOf(t)!==-1?this.options.dateFormatter.parse(e,this.dateFormat):e},a.prototype.maybeToEmpty=function(t){return(!C(t)||t=="")&&C(this.options.emptyAs)?this.options.emptyAs:t},Object.defineProperty(a.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new Ia,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),a})();var AP=[",",";"," "],Ps=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return t.isCSV=function(e){return!!t.getDelimiterFromData(e)},t.getDelimiterFromData=function(e){var i=e.split(`
|
|
23
|
-
`),r=i.length,n;return K(AP,function(s){for(var o=0,l=0,u=0;u<r;++u)if(o=i[u].split(s).length,o>1){if(l===0)l=o;else if(o!=l){l=0;break}}else{l=0;break}l&&(n=s)}),n},t.prototype.parse=function(e){this.options.delimiter||(this.options.delimiter=t.getDelimiterFromData(e));var i=this.CSVToArray(e,this.options.delimiter),r=C(this.options.emptyAs),n=this.parsableNumbers,s=this.parsableDates,o=[],l=[],u,h;for(h=0;h<this.options.skipRows;h++)i.shift();if(this.options.useColumnNames){l=i.shift();for(var p=0;p<l.length;p++)u=C(l[p])?l[p].replace(/^\s+|\s+$/gm,""):"",u===""&&(u="col"+p),l[p]=u}for(var d;d=this.options.reverse?i.pop():i.shift(),!!d;)if(!(this.options.skipEmpty&&d.length===1&&d[0]==="")){var c={};for(h=0;h<d.length;h++)u=l[h]===void 0?"col"+h:l[h],c[u]=d[h]===""?this.options.emptyAs:d[h],r&&(c[u]=this.maybeToEmpty(c[u])),n&&(c[u]=this.maybeToNumber(u,c[u])),s&&(c[u]=this.maybeToDate(u,c[u]));o.push(c)}return o},t.prototype.CSVToArray=function(e,i){i=i||",";for(var r=new RegExp("(\\"+i+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+i+"\\r\\n]*))","gi"),n=[[]],s=null;s=r.exec(e),!!s;){var o=s[1];o.length&&o!==i&&n.push([]);var l=void 0;s[2]?l=s[2].replace(new RegExp('""',"g"),'"'):l=s[3],n[n.length-1].push(l)}return n},t})(hu);var $n=(function(a){_(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return t.isJSON=function(e){try{return JSON.parse(e),!0}catch{return!1}},t.prototype.parse=function(e){var i=this,r;try{C(JSON)&&(r=JSON.parse(e))}catch{return}var n=C(this.options.emptyAs),s=this.parsableNumbers,o=this.parsableDates;if(Array.isArray(r)&&(s||o||n))for(var l=function(p,d){var c=r[p];se(c,function(f,m){n&&(c[f]=i.maybeToEmpty(c[f])),s&&(c[f]=i.maybeToNumber(f,c[f])),o&&(c[f]=i.maybeToDate(f,c[f]))})},u=0,h=r.length;u<h;u++)l(u,h);return r},t})(hu);var Dg=(function(){function a(){this.adapter=new Bt(this)}return a.prototype.load=function(t){var e=Array.isArray(t)?t:[t],i=Ga(e,function(r){return r.dispatchImmediately("started"),r.dispatchImmediately("loadstarted"),No(r.url,r,r.requestOptions)});Promise.all(i).then(function(r){K(r,function(n){var s=n.target;s.dispatchImmediately("loadended"),n.error?s.events.isEnabled("error")&&s.events.dispatchImmediately("error",{type:"error",code:n.xhr.status,message:s.language.translate("Unable to load file: %1",null,s.url),target:s}):s.processData(n.response,n.type),s.dispatchImmediately("ended")})}).catch(function(r){r.target&&(r.target.dispatchImmediately("loadended"),r.target.events.isEnabled("error")&&r.target.events.dispatchImmediately("error",{type:"error",code:r.xhr.status,message:r.target.language.translate("Unable to load file: %1",null,r.target.url),target:r.target}),r.target.dispatchImmediately("ended"))})},a.prototype.getParserByType=function(t){var e=this.adapter.apply("getParserByType",{parser:null,type:t}).parser;if(e)return e;if(t=="csv"||t=="text/csv"||t=="application/vnd.ms-excel")return new Ps;if(t=="json"||t=="application/json")return new $n},a.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e),i)return i;if($n.isJSON(t))return this.getParserByType("json");if(Ps.isCSV(t))return this.getParserByType("csv")}return i},a})();var pu=new Dg;var Xc=(function(a){_(t,a);function t(e,i){var r=a.call(this)||this;return r.adapter=new Bt(r),r._requestOptions={},r._incremental=!1,r._incrementalParams={},r._keepCount=!1,r._updateCurrentData=!1,r.showPreloader=!0,r.className="DataSource",e&&(r.url=e),i&&(typeof i=="string"?r.parser=pu.getParserByType(i):r.parser=i),r}return t.prototype.processData=function(e,i){if(this.dispatchImmediately("parsestarted"),!this.parser&&(this.parser=pu.getParserByData(e,i),!this.parser)){if(this.events.isEnabled("parseerror")){var r={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",r)}this.dispatchImmediately("parseended");return}if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",e))),!C(this.data)&&this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended"),C(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date},Object.defineProperty(t.prototype,"url",{get:function(){var e=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(e=this.addUrlParams(e,this.incrementalParams)),this.adapter.apply("url",e)},set:function(e){this._url=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(e){this._requestOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._parser||(this._parser=new $n),this.adapter.apply("parser",this._parser)},set:function(e){this._parser=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(e){var i=this;this._reloadFrequency!=e&&(this._reloadFrequency=e,e?C(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",function(r){i._reloadTimeout=setTimeout(function(){i.load()},i.reloadFrequency)})):C(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(e){this._incremental=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(e){this._incrementalParams=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(e){this._keepCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(e){this._updateCurrentData=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new Ui,this.language)},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new Ia,this.dateFormatter)},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),t.prototype.timestampUrl=function(e){var i=new Date().getTime().toString(),r={};return r[i]="",this.addUrlParams(e,r)},t.prototype.dispose=function(){a.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),C(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},t.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),pu.load(this))},t.prototype.addUrlParams=function(e,i){var r=e.match(/\?/)?"&":"?",n=[];return se(i,function(s,o){o!=""?n.push(s+"="+encodeURIComponent(o)):n.push(s)}),n.length?e+r+n.join("&"):e},t.prototype.processConfig=function(e){S.registeredClasses.json=$n,S.registeredClasses.JSONParser=$n,S.registeredClasses.csv=Ps,S.registeredClasses.CSVParser=Ps,a.prototype.processConfig.call(this,e)},t})(ci);var gr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new Bt(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.component&&this._index!=null?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Kr(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this._hidden?!1:this._visible},set:function(e){e&&(this.hidden=!1),this._visible!=e&&this.setVisibility(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden!=e&&(this._hidden=e,e?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,K(this.sprites,function(i){i.__disabled=e})},enumerable:!0,configurable:!0}),t.prototype.setVisibility=function(e,i){if(K(this.sprites,function(n){e?n.visible=n.defaultState.properties.visible:n.hiddenState?n.visible=n.hiddenState.properties.visible:n.visible=!1}),this._visible=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var r={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",r)}},t.prototype.show=function(e,i,r){var n=this;if(!this.hidden){this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer);var s;return r&&K(r,function(o){s=n.setWorkingValue(o,n.values[o].value,e,i)}),K(this.sprites,function(o){var l=o.show(e);l!=null&&!l.isFinished()&&(n._disposers.push(l),i!=null&&i>0&&l.delay(i))}),s}},t.prototype.dispose=function(){a.prototype.dispose.call(this),K(this.sprites,function(e){e.dispose()}),this.sprites=[]},t.prototype.hide=function(e,i,r,n){var s=this;if(this.isHiding=!0,K(this.sprites,function(l){var u=l.hide(e);u!=null&&!u.isFinished()&&(s._disposers.push(u),i!=null&&i>0&&u.delay(i))}),x(r)&&n){var o;if(K(n,function(l){var u=s.setWorkingValue(l,r,e,i);u&&(o=u)}),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",function(){s.setVisibility(!1,!0),s.isHiding=!1}),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},t.prototype.getDuration=function(e){if(!x(e)){var i=this.component;i&&(e=i.interpolationDuration)}if(e!=null)return this._adapterO?this._adapterO.apply("duration",e):e},t.prototype.getValue=function(e,i){if(e&&this.component){i||(i=this.component.dataFields[e+"Show"],i||(i="value"));var r=this.values[e][i];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:r,field:e}).value:r}},t.prototype.getWorkingValue=function(e){if(e&&this.component){var i=this.component.dataFields[e+"Show"];return i||(i="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[e][i],field:e}).workingValue:this.values[e][i]}},t.prototype.getActualWorkingValue=function(e){return this.values[e].workingValue},t.prototype.setValue=function(e,i,r,n){var s=this.values[e].value,o=this.getDuration(r);if(i=qe(i),s!==i){if(this.values[e].value=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var l={type:"valuechanged",target:this,property:e};this.events.dispatchImmediately("valuechanged",l)}this.component&&this.component.handleDataItemValueChange(this,e)}this.setWorkingValue(e,i,o,n)},t.prototype.setCalculatedValue=function(e,i,r){var n=this.values[e][r];if(n!==i&&x(i)){if(this.values[e][r]=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var s={type:"calculatedvaluechanged",target:this,property:e};this.events.dispatchImmediately("calculatedvaluechanged",s)}this.component&&this.component.handleDataItemCalculatedValueChange(this,e)}},t.prototype.setWorkingValue=function(e,i,r,n){if(x(this.values[e].value)){var s=this.getDuration(r),o=this.values[e].workingValue;if(s!=null&&s>0&&x(o)&&this.component)if(o!=i){var l=this.animate({childObject:this.values[e],property:"workingValue",from:o,to:i,dummyData:e},s,this.component.interpolationEasing);return n!=null&&l.delay(n),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[e]=l,l}else{var u=this._valueAnimations[e];u&&u.stop(),this.values[e].workingValue=i}else{var u=this._valueAnimations[e];if(u&&u.stop(),this.values[e].workingValue=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var h={type:"workingvaluechanged",target:this,property:e};this.events.dispatchImmediately("workingvaluechanged",h)}this.component&&this.component.handleDataItemWorkingValueChange(this,e)}}},t.prototype.setLocation=function(e,i,r,n){var s=this.locations[e];if(s!==i){if(this.locations[e]=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var o={type:"locationchanged",target:this,property:e};this.events.dispatchImmediately("locationchanged",o)}this.component&&this.component.handleDataItemValueChange(this,e),this.setWorkingLocation(e,i,r,n)}},t.prototype.setWorkingLocation=function(e,i,r,n){var s=this.getDuration(r),o=this.workingLocations[e];if(s!=null&&s>0&&x(o)&&this.component)if(o!=i){var l=this.animate({childObject:this.workingLocations,property:e,from:o,to:i,dummyData:e},s,this.component.interpolationEasing);return n!=null&&l.delay(n),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[e]=l,l}else{var u=this._locationAnimations[e];u&&u.stop(),this.workingLocations[e]=i}else{var u=this._locationAnimations[e];if(u&&u.stop(),this.workingLocations[e]=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var h={type:"workinglocationchanged",target:this,property:e};this.events.dispatchImmediately("workinglocationchanged",h)}this.component&&this.component.handleDataItemWorkingLocationChange(this,e)}},t.prototype.setDate=function(e,i,r){!yn(i)&&this.component&&(i=this.component.dateFormatter.parse(i));var n=this.dates[e];n!==i&&(this.dates[e]=i,this.setValue(e,i.getTime(),r))},t.prototype.getDate=function(e){return this._adapterO?this._adapterO.apply("date",{date:this.dates[e],field:e}).date:this.dates[e]},t.prototype.setProperty=function(e,i){if(this.properties[e]!==i){if(this.hasProperties=!0,this.properties[e]=i,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:e,value:i};this.events.dispatchImmediately("propertychanged",r)}this.component&&this.component.handleDataItemPropertyChange(this,e)}},t.prototype.setCategory=function(e,i){ye(i)||(i=lo(i)),this.categories[e]!==i&&(this.categories[e]=i)},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=sc(e.dataContext,{})),Hi(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(t.prototype,"opacity",{set:function(e){K(this.sprites,function(i){i.opacity=e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){if(this._ignoreMinMax=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:"ignoreMinMax",value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),t.prototype.animate=function(e,i,r){return new bi(this,e,i,r).start()},t.prototype.handleInterpolationProgress=function(e){var i=e.target,r=i.animationOptions[0];if(r){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var n={type:"workingvaluechanged",target:this,property:r.dummyData};this.events.dispatchImmediately("workingvaluechanged",n)}this.component&&this.component.handleDataItemWorkingValueChange(this,r.dummyData)}},t.prototype.hasValue=function(e){for(var i=0,r=e.length;i<r;i++){var n=this.values[e[i]];if(!n||!C(n.value))return!1}return!0},Object.defineProperty(t.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataContext",{get:function(){return this._dataContext},set:function(e){this._dataContext=e},enumerable:!0,configurable:!0}),t.prototype.addSprite=function(e){e.dataItem&&e.dataItem!=this&&de(e.dataItem.sprites,e),this.visible||e.hide(0),this.isHiding&&e.hide(),this.sprites.push(e),e.dataItem=this},t})(ci);var vr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=Xr,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=Xr,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new _n(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new Ie(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new Me(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return t.prototype.createDataItem=function(){return new gr},t.prototype.handleDataUserAdded=function(e){var i=e.newValue;i.dataProvider=this},t.prototype.handleDataItemValueChange=function(e,i){this.dataItemsInvalid||this.invalidateDataItems()},t.prototype.handleDataItemWorkingValueChange=function(e,i){},t.prototype.handleDataItemWorkingLocationChange=function(e,i){},t.prototype.handleDataItemCalculatedValueChange=function(e,i){},t.prototype.handleDataItemPropertyChange=function(e,i){},t.prototype.processDataItem=function(e,i){var r=this;if(e){i||(i={}),e.dataContext=i;var n=!1;se(this.dataFields,function(s,o){var l=s,u=i[o];if(r._adapterO&&r._adapterO.isEnabled("dataContextValue")&&(u=r._adapterO.apply("dataContextValue",{field:l,value:u,dataItem:e}).value),C(u))if(n=!0,e.hasChildren[l]){var h=r.createDataItem();h.copyFrom(r.mainDataSet.template);var p=new _n(h);p.events.on("inserted",r.handleDataItemAdded,r,!1),p.events.on("removed",r.handleDataItemRemoved,r,!1),r._dataDisposers.push(new Ie(p));for(var d=u.length,c=0;c<d;c++){var f=u[c],m=p.create();m.parent=e,r.processDataItem(m,f)}var y=e;y[l]=p}else e[l]=u}),se(this.propertyFields,function(s,o){var l=s,u=i[o];C(u)&&(n=!0,e.setProperty(l,u))}),!this._addAllDataItems&&!n&&this.mainDataSet.remove(e)}},t.prototype.updateDataItem=function(e){var i=this;if(e){var r=e.dataContext;se(this.dataFields,function(n,s){var o=n,l=r[s];if(i._adapterO&&(l=i._adapterO.apply("dataContextValue",{field:o,value:l,dataItem:e}).value),C(l))if(e.hasChildren[o]){var u=e,h=u[o];h.each(function(p){i.updateDataItem(p)})}else e[o]=l}),se(this.propertyFields,function(n,s){var o=n,l=r[s];C(l)&&e.setProperty(o,l)})}},t.prototype.validateDataElements=function(){for(var e=this.endIndex,i=this.startIndex;i<e;i++){var r=this.dataItems.getIndex(i);r&&this.validateDataElement(r)}},t.prototype.validate=function(){this.validateDataElements(),a.prototype.validate.call(this)},t.prototype.validateDataElement=function(e){},t.prototype.addData=function(e,i,r){var n=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),r||(e instanceof Array?K(e,function(s){n.data.push(s)}):this.data.push(e)),this.inited)this.removeData(i,r);else if(x(i))for(;i>0;)this.data.shift(),i--;this.invalidateData()},t.prototype.removeData=function(e,i){if(x(e)&&e>0){for(;e>0;){var r=this.mainDataSet.getIndex(0);r&&this.mainDataSet.remove(r),this.dataUsers.each(function(n){if(!n.data||n.data.length==0){var s=n.mainDataSet.getIndex(0);s&&n.mainDataSet.remove(s)}}),i||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,e--}this.invalidateDataItems()}},t.prototype.invalidateData=function(){this.disabled||this.isTemplate||(S.addToInvalidComponents(this),De.requestFrame(),this.dataInvalid=!0,j(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},t.prototype.invalidateDataUsers=function(){j(this.dataUsers.iterator(),function(e){e.invalidate()})},t.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(zi(S.invalidDataItems,this),De.requestFrame(),this.dataItemsInvalid=!0,j(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},t.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,zi(S.invalidDataRange,this),De.requestFrame())},t.prototype.validateDataRange=function(){de(S.invalidDataRange,this),this.dataRangeInvalid=!1,(this.startIndex!=this._prevStartIndex||this.endIndex!=this._prevEndIndex)&&(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},t.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},t.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},t.prototype.appendDataItems=function(){for(var e=this.endIndex,i=this.startIndex;i<e;i++){var r=this.dataItems.getIndex(i);r&&(r.__disabled=!1)}for(var i=0;i<this.startIndex;i++){var r=this.dataItems.getIndex(i);r&&(r.__disabled=!0)}for(var i=this.endIndex;i<this.dataItems.length;i++){var r=this.dataItems.getIndex(i);r&&(r.__disabled=!0)}},t.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(zi(S.invalidRawDatas,this),De.requestFrame(),this.rawDataInvalid=!0,j(this.dataUsers.iterator(),function(e){e.invalidateRawData()}))},t.prototype.validateRawData=function(){var e=this;de(S.invalidRawDatas,this),j(this.mainDataSet.iterator(),function(i){i&&e.updateDataItem(i)})},t.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),se(this._dataSources,function(i,r){e.removeDispose(r)}),this.disposeData(),a.prototype.dispose.call(this)},t.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),K(this._dataDisposers,function(e){e.dispose()}),j(this.dataUsers.iterator(),function(e){e.disposeData()}),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},t.prototype.getDataItem=function(e){return this.mainDataSet.create()},t.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,S.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var e=this.dataItem.dataContext;this._data=e[this.dataFields.data]}if(this._parseDataFrom===0&&this.data.length>0&&this.disposeData(),this.data.length>0){var i=this.preloader;j(this.dataUsers.iterator(),function(p){p._startIndex=void 0,p._endIndex=void 0});var r=0,n=Date.now(),s=this._parseDataFrom,o=this.data.length,l=function(){var p=u.data[s];if(u._usesData){var d=u.getDataItem(p);u.processDataItem(d,p)}if(u.dataUsers.each(function(f){if(f.data.length==0){var m=f.getDataItem(p);f.processDataItem(m,p)}}),r++,r==100){r=0;var c=Date.now()-n;if(c>u.parsingStepDuration&&s<u.data.length-10)return u._parseDataFrom=s+1,i&&(s/u.data.length>.5&&!i.visible||(i.progress=s/u.data.length)),u.dataValidationProgress=s/u.data.length,s=u.data.length,u.invalidateData(),{value:void 0}}},u=this;for(s;s<o;s++){var h=l();if(typeof h=="object")return h.value}i&&(i.progress=1),this.dataUsers.each(function(p){(p.hidden||p.appeared&&!p.visible&&p.stacked)&&p.hide(0)})}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},t.prototype.validateDataItems=function(){de(S.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(e){this.setData(e)},enumerable:!0,configurable:!0}),t.prototype.setData=function(e){this.isDisposed()||(this._parseDataFrom=0,this.disposeData(),this._data=e,e&&e.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},t.prototype.getDataSource=function(e){var i=this;return C(this._dataSources[e])||(this._dataSources[e]=new Xc,this._dataSources[e].component=this,this.setDataSourceEvents(this._dataSources[e],e),this._dataSources[e].adapter.add("dateFields",function(r){return i.dataSourceDateFields(r)}),this._dataSources[e].adapter.add("numberFields",function(r){return i.dataSourceNumberFields(r)}),this.events.on("inited",function(){i.loadData(e)},this,!1)),this._dataSources[e]},Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(e){var i=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=e,this._dataSources.data.component=this,this.events.on("inited",function(){i.loadData("data")},this,!1),this.setDataSourceEvents(e,"data")},enumerable:!0,configurable:!0}),t.prototype.loadData=function(e){this._dataSources[e].load()},t.prototype.dataSourceDateFields=function(e){return e},t.prototype.dataSourceNumberFields=function(e){return e},t.prototype.populateDataSourceFields=function(e,i,r){return K(r,function(n){i[n]&&Di(e,i[n])===-1&&e.push(i[n])}),e},t.prototype.setDataSourceEvents=function(e,i){var r=this;e.events.on("started",function(n){var s=r.preloader;s&&(s.progress=0)},void 0,!1),e.events.on("loadstarted",function(n){var s=r.preloader;s&&(s.progress=.25)},void 0,!1),e.events.on("loadended",function(n){var s=r.preloader;s&&(s.progress=.5)},void 0,!1),e.events.on("parseended",function(n){var s=r.preloader;s&&(s.progress=.75)},void 0,!1),e.events.on("ended",function(n){var s=r.preloader;s&&(s.progress=1)},void 0,!1),e.events.on("error",function(n){var s=r.preloader;s&&(s.progress=1),r.openModal(n.message)},void 0,!1),i&&e.events.on("done",function(n){var s=r.preloader;s&&(s.progress=1),i=="data"&&!Je(n.data)&&(n.data=[n.data]),e.incremental&&i=="data"&&r.data.length?r.addData(n.data,e.keepCount?n.data.length:0):e.updateCurrentData&&i=="data"&&r.data.length?(K(r.data,function(o,l){C(n.data[l])&&se(o,function(u,h){C(n.data[l][u])&&(o[u]=n.data[l][u])})}),r.invalidateRawData()):r[i]=n.data})},Object.defineProperty(t.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new Yc,this._responsive.component=this),this._responsive},set:function(e){this._responsive=e,this._responsive.component=this},enumerable:!0,configurable:!0}),t.prototype.zoom=function(e,i,r,n){var s=this;i===void 0&&(i=!1),r===void 0&&(r=!1);var o=e.start,l=e.end,u=e.priority;if(e.start==e.end&&(e.start=e.start-.5/this.maxZoomFactor,e.end=e.end+.5/this.maxZoomFactor),u=="end"&&l==1&&o!=0&&o<this.start&&(u="start"),u=="start"&&o==0&&l>this.end&&(u="end"),x(n)||(n=this.maxZoomDeclination),!x(o)||!x(l))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=l){var h=this.maxZoomFactor/this.minZoomCount,p=this.maxZoomFactor/this.maxZoomCount;if(u=="start"?(this.maxZoomCount>0&&1/(l-o)<p&&(l=o+1/p),1/(l-o)>h&&(l=o+1/h),l>1&&l-o<1/h&&(o=l-1/h)):(this.maxZoomCount>0&&1/(l-o)<p&&(o=l-1/p),1/(l-o)>h&&(o<=0?l=o+1/h:o=l-1/h),o<0&&l-o<1/h&&(l=o+1/h)),o<-n&&(o=-n),1/(l-o)>h&&(l=o+1/h),l>1+n&&(l=1+n),1/(l-o)>h&&(o=l-1/h),this._finalEnd=l,this._finalStart=o,this.skipRangeEvent=i,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!r){var d=this.rangeChangeAnimation;if(d&&d.progress<1){var c=d.animationOptions;if(c.length>1){if(c[0].to==o&&c[1].to==l)return{start:o,end:l};d.isDisposed()||d.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),d=this.animate([{property:"start",to:o},{property:"end",to:l}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=d,d&&!d.isFinished()?d.events.on("animationended",function(){s.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=l,this.dispatch("rangechangeended")}return{start:o,end:l}},t.prototype.zoomToIndexes=function(e,i,r,n){if(!(!x(e)||!x(i))){var s=e/this.dataItems.length,o=i/this.dataItems.length;this.zoom({start:s,end:o},r,n)}},Object.defineProperty(t.prototype,"zoomFactor",{get:function(){return ee(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(e){this.setPropertyValue("maxZoomFactor",e)&&(e==1&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(e){this.setPropertyValue("maxZoomDeclination",e)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startIndex",{get:function(){return x(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(e){this._startIndex=ee(Math.round(e),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),t.prototype.indexToPosition=function(e){return e/this.dataItems.length},Object.defineProperty(t.prototype,"endIndex",{get:function(){var e=this.dataItems.length;return(!x(this._endIndex)||this._endIndex>e)&&(this._endIndex=e),this._endIndex},set:function(e){this._endIndex=ee(Math.round(e),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(e){if(this._start!=e){this._start=e;var i=Math.max(0,Math.floor(this.dataItems.length*e)||0);this._startIndex=Math.min(i,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(e){this._end!=e&&(this._end=e,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*e)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),t.prototype.removeFromInvalids=function(){a.prototype.removeFromInvalids.call(this),S.removeFromInvalidComponents(this),de(S.invalidDataItems,this),de(S.invalidDataRange,this),de(S.invalidRawDatas,this)},Object.defineProperty(t.prototype,"dataItems",{get:function(){if(this._currentDataSetId!=""){var e=this.dataSets.getKey(this._currentDataSetId);if(e)return e}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new Ve),this._dataSets},enumerable:!0,configurable:!0}),t.prototype.setDataSet=function(e){if(this._currentDataSetId!=e){var i=this.dataSets.getKey(e);if(i)return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId=e,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0;if(this._currentDataSetId!="")return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0}return!1},Object.defineProperty(t.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),t.prototype._updateDataItemIndexes=function(e){for(var i=this.mainDataSet.values,r=i.length,n=e;n<r;++n)i[n]._index=n},t.prototype.handleDataItemAdded=function(e){e.newValue.component=this,this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},t.prototype.handleDataItemRemoved=function(e){this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},t.prototype.bindDataField=function(e,i){this.dataFields[e]=i,this.invalidateDataRange()},t.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},t.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(t.prototype,"dataUsers",{get:function(){var e=this;return this._dataUsers||(this._dataUsers=new we,this._disposers.push(new Fe(function(){j(e._dataUsers.iterator(),function(i){i.dispose()})}))),this._dataUsers},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=a.prototype.clone.call(this);return e.dataFields=Hi(this.dataFields,{}),e},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},t.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},t.prototype.getExporting=function(){var e=a.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",function(i){e.handleDataUpdated()})),e},t.prototype._exportData=function(e){return e.data=this.data,e},t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return i&&this.invalidateData(),i},t.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2)):this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2)),a.prototype.setShowOnInit.call(this,e)},t.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,S.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),a.prototype.setBaseId.call(this,e)},Object.defineProperty(t.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(e){this.setPropertyValue("minZoomCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(e){this.setPropertyValue("maxZoomCount",e)},enumerable:!0,configurable:!0}),t.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},t.prototype.asFunction=function(e){return e=="interpolationEasing"||e=="rangeChangeEasing"||a.prototype.asIs.call(this,e)},t})(te);S.registeredClasses.Component=vr;var Yi=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var i=new ue,r=e.background;r.fill=i.getFor("secondaryButton"),r.stroke=i.getFor("secondaryButtonStroke"),r.fillOpacity=1,r.strokeOpacity=1,r.cornerRadius(3,3,3,3),e.label=new Rt,e.label.fill=i.getFor("secondaryButtonText"),e.label.shouldClone=!1;var n=r.states.create("hover");n.properties.fillOpacity=1,n.properties.fill=i.getFor("secondaryButtonHover");var s=r.states.create("down");return s.transitionDuration=100,s.properties.fill=i.getFor("secondaryButtonDown"),s.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(e){var i=this._icon;i&&(i.parent=void 0),e&&(this._icon=e,e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(e){this.setPropertyValue("iconPosition",e),this.icon&&(e=="left"?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._label&&this.removeDispose(this._label),this._label=e,e&&(e.parent=this,e.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),t.prototype.createBackground=function(){return new xi},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},t})(te);S.registeredClasses.Button=Yi;function _s(a){var t=R(a[0]),e={x:0,y:0},i=Ce.minPolylineStep;x(i)||(i=.5);for(var r=0,n=a.length;r<n;r++){var s=a[r];Ee(s,e)>i&&(t+=R(s),e=s)}return t}function X(a){return" M"+z(a.x,4)+","+z(a.y,4)+" "}function R(a){return" L"+z(a.x,4)+","+z(a.y,4)+" "}function La(a,t){return" Q"+z(t.x,4)+","+z(t.y,4)+" "+z(a.x,4)+","+z(a.y,4)}function Qa(a,t,e){return" C"+z(t.x,4)+","+z(t.y,4)+" "+z(e.x,4)+","+z(e.y,4)+" "+z(a.x,4)+","+z(a.y,4)}function it(){return" Z"}function qt(a,t,e,i){if(t==0)return"";x(i)||(i=e);var r="",n=",",s=Math.ceil(Math.abs(t)/180),o=1;t<0&&(o=0);var l=0,u=0,h=-Q(a)*e,p=-Z(a)*i;if(t<.5&&e>3e3){var d=a+t,c=z(Q(d)*e,4),f=z(Z(d)*i,4);return R({x:c,y:f})}for(var m=0;m<s;m++){var d=a+t/s*(m+1),c=z(Q(d)*e+h-l,4),f=z(Z(d)*i+p-u,4);r+=" a"+e+n+i+n+0+n+0+n+o+n+c+n+f,l=c,u=f}return r}function Zr(a,t,e,i,r,n,s){if(t==0||(x(i)||(i=0),e==0&&i<=0))return"";if(e<i){var o=e;e=i,i=o,x(r)&&(r=r/i*e)}t=Se(t,360),t==360&&(n=0,s=0);var l=a+t,u=Z(Se(t,45)/2);r=x(r)?r:e,n=n||0,s=x(s)?s:n;var h=r/e*i,p=r/e*n,d=r/e*s;n=ee(n,0,(e-i)/2),p=ee(p,0,(r-h)/2),s=ee(s,0,(e-i)/2),d=ee(d,0,(r-h)/2),n=z(ee(n,0,e*u),4),p=z(ee(p,0,r*u),4),s=z(ee(s,0,i*u),4),d=z(ee(d,0,h*u),4);var c=Math.asin(n/e/2)*_a*2,f=Math.asin(p/r/2)*_a*2;i<s&&(i=s),h<d&&(h=d);var m=Math.asin(s/i/2)*_a*2,y=Math.asin(d/h/2)*_a*2;x(m)||(m=0),x(y)||(y=0);var g=a+t/2,v={x:z(Q(g)*i,4),y:Z(g)*h},b={x:Q(a)*(i+s),y:Z(a)*(h+d)},P={x:Q(a)*(e-n),y:Z(a)*(r-p)},w={x:Q(l)*(e-n),y:Z(l)*(r-p)},T={x:Q(l)*(i+s),y:Z(l)*(h+d)},F={x:Q(a+c)*e,y:Z(a+f)*r},D={x:Q(l-m)*i,y:Z(l-y)*h};s+=s*Z(m/2),d+=d*Z(y/2),m>(l-a)/2&&(D=v);var O="";return t==360?O=X(P):(O=X(b),O+=R(P),O+=br(F,n,p,!0)),O+=qt(a+c,t-2*c,e,r),x(i)&&i!=0?(t==360&&n==0?O+=X(T):(O+=br(w,n,p,!0),O+=R(T),O+=br(D,s,d,!0)),O+=qt(l-m,-(t-2*m),i,h),(t<360||n>0)&&(O+=br(b,s,d,!0)),O+=R(b)):(O+=br(w,n,p,!0),t<360&&(O+=R(b))),O}function br(a,t,e,i,r,n){if(t==0)return"";n=n||0,r=!!r,i=!!i;var s=",",o=+i,l=+r;return" A"+t+s+e+s+n+s+l+s+o+s+z(a.x,4)+s+z(a.y,4)}function Mh(a,t,e,i){return x(e)||(e=0),x(i)||(i=0),X({x:e,y:i})+R({x:e+a,y:i})+R({x:e+a,y:i+t})+R({x:e,y:i+t})+it()}function Er(a,t){var e=",",i=" L";return t?"M"+a.x+e+a.y+i+a.x+e+(a.y+a.height)+i+(a.x+a.width)+e+(a.y+a.height)+i+(a.x+a.width)+e+a.y+i+a.x+e+a.y:"M"+a.x+e+a.y+i+(a.x+a.width)+e+a.y+i+(a.x+a.width)+e+(a.y+a.height)+i+a.x+e+(a.y+a.height)+i+a.x+e+a.y}var Kc=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Grip";var i=new ue;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var r=new ne;r.element=e.paper.add("path");var n=X({x:-6,y:0});return n+=R({x:6,y:0}),n+=X({x:-8,y:-6}),n+=R({x:0,y:-12}),n+=R({x:8,y:-6}),n+=X({x:-8,y:6}),n+=R({x:0,y:12}),n+=R({x:8,y:6}),r.path=n,r.strokeWidth=2,r.fillOpacity=0,r.pixelPerfect=!0,r.padding(0,4,0,4),r.stroke=i.getFor("text"),r.strokeOpacity=.7,r.align="center",r.valign="middle",e.icon=r,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",function(s){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.events.on("down",function(s){e._autoHideTimeout&&e._autoHideTimeout.dispose()}),e.events.on("out",function(s){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.applyTheme(),e}return Object.defineProperty(t.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){if(this.setPropertyValue("position",e))switch(e){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=W(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=W(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=W(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=W(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=W(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(e){this.setPropertyValue("autoHideDelay",e)},enumerable:!0,configurable:!0}),t})(Yi);S.registeredClasses.Grip=Kc;var du=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return t})(gr);var Ea=(function(a){_(t,a);function t(){var e=a.call(this)||this;if(e._legend=new st,e.constructor===t)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");e.className="Chart";var i=new Rt;e.titles=new We(i),e._disposers.push(new Ie(e.titles)),e._disposers.push(i),e.width=W(100),e.height=W(100),e.layout="vertical";var r=e.createChild(te);r.shouldClone=!1,r.layout="vertical",r.width=W(100),r.height=W(100),e.chartAndLegendContainer=r;var n=r.createChild(te);return n.shouldClone=!1,n.width=W(100),n.height=W(100),e.chartContainer=n,e.showOnInit=!0,e._disposers.push(e._legend),e.titles.events.on("inserted",function(s){e.processTitle(s),e.updateReaderTitleReferences()},e,!1),e.titles.events.on("removed",function(s){e.updateReaderTitleReferences()},e,!1),e.role="region",e.defaultState.transitionDuration=1,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},t.prototype.draw=function(){this.fixLayout(),a.prototype.draw.call(this)},t.prototype.fixLayout=function(){var e=this.legend;if(e){var i=this.chartAndLegendContainer,r=this.chartContainer;switch(r.x=void 0,r.y=void 0,e.position!="absolute"&&(e.x=void 0,e.y=void 0),e.position){case"left":i.layout="horizontal",e.toBack();break;case"right":i.layout="horizontal",e.toFront();break;case"top":i.layout="vertical",e.toBack();break;case"bottom":i.layout="vertical",e.toFront();break;case"absolute":e.isMeasured=!1;break}}},t.prototype.feedLegend=function(){},t.prototype.processTitle=function(e){var i=e.newValue;return i.parent=this,i.toBack(),i.shouldClone=!1,i.align="center",i.uidAttr(),i},t.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var e=[];j(this.titles.iterator(),function(i){e.push(i.uid)}),this.setSVGAttribute({"aria-labelledby":e.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(t.prototype,"legend",{get:function(){return this._legend.get()},set:function(e){this.setLegend(e)},enumerable:!0,configurable:!0}),t.prototype.setLegend=function(e){var i=this;this._legend.get()!==e&&(e?(e.parent=this.chartAndLegendContainer,this._legend.set(e,e.events.on("propertychanged",function(r){r.property=="position"&&i.fixLayout()},void 0,!1)),e.addDisposer(new Fe(function(){i.legend=void 0}))):this._legend.reset(),this.feedLegend())},t.prototype.dispose=function(){this.legend&&this.legend.dispose(),a.prototype.dispose.call(this)},t.prototype.processConfig=function(e){e&&C(e.legend)&&!C(e.legend.type)&&(e.legend.type="Legend"),a.prototype.processConfig.call(this,e)},t.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),a.prototype.copyFrom.call(this,e)},Object.defineProperty(t.prototype,"dragGrip",{get:function(){var e=this;if(!this._dragGrip){var i=this.tooltipContainer.createChild(Kc);i.align="right",i.valign="middle",i.hide(0),i.events.on("down",function(r){r.touch&&(e.interactionsEnabled=!1)}),i.events.on("up",function(r){e.interactionsEnabled=!0}),this.events.on("down",function(r){r.touch&&i.show()}),this._dragGrip=i}return this._dragGrip},set:function(e){this._dragGrip=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(e){this.parent.focusable=e},enumerable:!0,configurable:!0}),t})(vr);S.registeredClasses.Chart=Ea;Dt.push({relevant:Nt.widthXS,state:function(a,t){if(a instanceof Ea){var e=a.states.create(t);return a.pixelPaddingLeft>10&&(e.properties.paddingLeft=10),a.pixelPaddingRight>10&&(e.properties.paddingRight=10),e}return null}});Dt.push({relevant:Nt.heightXS,state:function(a,t){if(a instanceof Ea){var e=a.states.create(t);return a.pixelPaddingTop>10&&(e.properties.paddingTop=10),a.pixelPaddingBottom>10&&(e.properties.paddingBottom=10),e}return null}});Dt.push({relevant:Nt.widthXXS,state:function(a,t){if(a instanceof Ea){var e=a.states.create(t);return e.properties.paddingLeft=0,e.properties.paddingRight=0,e}return null}});Dt.push({relevant:Nt.heightXXS,state:function(a,t){if(a instanceof Ea){var e=a.states.create(t);return e.properties.paddingTop=0,e.properties.paddingBottom=0,e}return null}});var kr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new we,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",function(i){e._disposers.push(i.newValue)}),e.width=120,e.height=120,e.applyTheme(),e}return t.prototype.appendPrimitives=function(e){j(this.filterPrimitives.iterator(),function(i){e.add(i)})},t.prototype.animate=function(e,i,r){var n=new bi(this,e,i,r).start();return n},Object.defineProperty(t.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;a.prototype.copyFrom.call(this,e),se(e.properties,function(r,n){i[r]=n})},Object.defineProperty(t.prototype,"paper",{get:function(){return this._paper?this._paper:da()},set:function(e){this._paper!=e&&(this._paper=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Kr(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale=e,this.updateScale()},enumerable:!0,configurable:!0}),t.prototype.updateScale=function(){},Object.defineProperty(t.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(e){this.properties.filterUnits=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(e){this._nonScaling=e,e||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sprite",{set:function(e){this.setSprite(e)},enumerable:!0,configurable:!0}),t.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.filters.removeValue(this),this._sprite=e},t})(Tt);var Nh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="DropShadowFilter",e.color=oe("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.feFlood&&this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feFlood.attr({"flood-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dx",{get:function(){return this.properties.dx},set:function(e){this.properties.dx=e,this.feOffset.attr({dx:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dy",{get:function(){return this.properties.dy},set:function(e){this.properties.dy=e,this.feOffset.attr({dy:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),t.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},t})(kr);S.registeredClasses.DropShadowFilter=Nh;var Zc=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this),x(this.pointerX)||(this.pointerX=this.pixelWidth/2),x(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(t.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(e){this.setPropertyValue("pointerBaseWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(e){this.setPropertyValue("pointerLength",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(e){this.setPropertyValue("pointerX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(e){this.setPropertyValue("pointerY",e,!0)},enumerable:!0,configurable:!0}),t})(ne);var Qc=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.cornerRadius,i=this.innerWidth,r=this.innerHeight;if(i>0&&r>0){var n=this.pointerX,s=this.pointerY,o=this.pointerBaseWidth/2,l=Se(i/2,r/2),u=ee(e,0,l),h=ee(e,0,l),p=ee(e,0,l),d=ee(e,0,l),c=0,f=0,m=i,y=0,g=i,v=r,b=0,P=r,w=void 0,T=void 0,F=void 0,D=void 0,O=(n-c)*(v-f)-(s-f)*(g-c),N=(n-b)*(y-P)-(s-P)*(m-b);if(O>0&&N>0){var L=ee(n,u+o,i-o-h);s=ee(s,-1/0,0),w="M"+u+",0 L"+(L-o)+",0 L"+n+","+s+" L"+(L+o)+",0 L"+(i-h)+",0"}else w="M"+u+",0 L"+(i-h)+",0";if(O<0&&N<0){var L=ee(n,d+o,i-o-p);s=ee(s,r,1/0),F=" L"+(i-p)+","+r+" L"+(L+o)+","+r+" L"+n+","+s+" L"+(L-o)+","+r+" L"+d+","+r}else F=" L"+d+","+r;if(O<0&&N>0){var E=ee(s,u+o,r-d-o);n=ee(n,-1/0,0),D=" L0,"+(r-d)+" L0,"+(E+o)+" L"+n+","+s+" L0,"+(E-o)+" L0,"+u}else D=" L0,"+u;if(O>0&&N<0){var E=ee(s,h+o,r-o-p);n=ee(n,i,1/0),T=" L"+i+","+h+" L"+i+","+(E-o)+" L"+n+","+s+" L"+i+","+(E+o)+" L"+i+","+(r-p)}else T=" L"+i+","+(r-p);var B=" a"+h+","+h+" 0 0 1 "+h+","+h,U=" a"+p+","+p+" 0 0 1 -"+p+","+p,q=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,Y=" a"+u+","+u+" 0 0 1 "+u+",-"+u;this.path=w+B+T+U+F+q+D+Y}},Object.defineProperty(t.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),t})(Zc);var On=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.fixDoc=!0,e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=oe("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var r=new Nh;r.dy=1,r.dx=1,r.opacity=.5,i.filters.push(r),e.autoTextColor=!0;var n=e.createChild(Rt);return n.shouldClone=!1,e.label=n,n.padding(7,12,4,12),n.interactionsEnabled=!1,n.horizontalCenter="middle",n.fill=oe("#ffffff"),e._disposers.push(n),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=Xr,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return t.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(t.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(e){this.setPropertyValue("getStrokeFromObject",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(e){this.setPropertyValue("autoTextColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(e){var i=this;this.setPropertyValue("keepTargetHover",e,!0)&&e&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",function(r){i.targetSprite&&i.targetSprite.hoverable&&(i.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(r){i.targetSprite&&i.targetSprite.hoverable&&(i.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(e){this.setPropertyValue("showInViewport",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(e){this.setPropertyValue("getFillFromObject",e,!0)},enumerable:!0,configurable:!0}),t.prototype.createBackground=function(){return new Qc},Object.defineProperty(t.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(e){this.setPropertyValue("pointerOrientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.label.html},set:function(e){this.label.html!=e&&(this.label.html=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text!=e&&(this.label.text=e,this.invalidate())},enumerable:!0,configurable:!0}),t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i=this._pointTo.x,r=this._pointTo.y,n=this._boundingRect,s=e.measuredWidth,o=e.measuredHeight,l=this.background.pointerLength,u,h;if(this.ignoreBounds&&(n=void 0),n&&this.fixDoc&&s>n.width){$o({x:n.x,y:n.y},this.parent);var p=$o({x:n.x+n.width,y:n.y+n.height},this.parent),d=document.body.offsetWidth;document.body.offsetHeight,p.x>d/2?n.x=n.width-s:n.width=n.x+s}var c=this.pointerOrientation;c=="horizontal"||c=="left"||c=="right"?(h=-o/2,c=="horizontal"?n&&i>n.x+n.width/2?u=-s/2-l:u=s/2+l:c=="left"?u=s/2+l:u=-s/2-l):(n&&(u=ee(0,n.x-i+s/2,n.x-i+n.width-s/2)),c=="vertical"?n&&r>n.y+o+l?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down"):c=="down"?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down")),n&&(h=ee(h,n.y-r,n.y+n.height-o-r)),e.x=u,e.y=h,this.drawBackground()},t.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},t.prototype.drawBackground=function(){var e=this.label,i=this.background,r=e.measuredWidth,n=e.measuredHeight,s=this._boundingRect,o=r,l=e.pixelX-r/2,u=n,h=e.pixelY,p=this._pointTo.x,d=this._pointTo.y,c=s.x-p,f=c+s.width,m=s.y-d,y=m+s.height;i.x=l,i.y=h,i.width=o,i.height=u,this.fitPointerToBounds?(i.pointerX=ee(-i.x,c-i.x,f-i.x),i.pointerY=ee(-i.y,m-i.y,y-i.y)):(i.pointerX=-i.x,i.pointerY=-i.y),i.validate()},t.prototype.delayedPointTo=function(e,i){var r=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=S.events.once("exitframe",function(){r.pointTo(e,i)}),this.addDisposer(this._pointToDisposer)},t.prototype.pointTo=function(e,i){(this._pointTo.x!=e.x||this._pointTo.y!=e.y)&&(this._pointTo=e,this.invalidate(),!this.visible||i?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):this.pixelX==0&&this.pixelY==0?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new bi(this,[{property:"x",to:e.x,from:this.pixelX},{property:"y",to:e.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},t.prototype.setBounds=function(e){var i=this._boundingRect;(i.x!=e.x||i.y!=e.y||i.width!=e.width||i.height!=e.height)&&(this._boundingRect=e,this.invalidate())},Object.defineProperty(t.prototype,"boundingContainer",{set:function(e){this._boundingContainer=e,e.events.on("sizechanged",this.updateBounds,this),e.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),t.prototype.updateBounds=function(){var e=this._boundingContainer,i=xs({x:e.pixelX,y:e.pixelY,width:e.maxWidth,height:e.maxHeight},e);this.setBounds(i)},Object.defineProperty(t.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(e){this.setPropertyValue("ignoreBounds",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},t.prototype.asFunction=function(e){return e=="animationEasing"||a.prototype.asIs.call(this,e)},t})(te);S.registeredClasses.Tooltip=On;var cu=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var i=new ne;i.element=e.paper.add("path");var r=X({x:-2,y:-6});return r+=R({x:-2,y:6}),r+=X({x:2,y:-6}),r+=R({x:2,y:6}),i.path=r,i.pixelPerfect=!0,i.padding(0,4,0,4),i.stroke=new ue().getFor("alternativeText"),i.strokeOpacity=.7,e.icon=i,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"orientation",{set:function(e){var i=this.icon;i&&(e=="horizontal"?i.rotation=0:i.rotation=-90)},enumerable:!0,configurable:!0}),t})(Yi);S.registeredClasses.ResizeButton=cu;var Dn=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=Xr,e.margin(10,10,10,10);var i=new ue,r=e.background;return r.cornerRadius(10,10,10,10),r.fill=i.getFor("fill"),r.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new cu,e.endGrip=new cu,e.events.on("transformed",function(){e.updateThumb()},e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",function(){e._previousStart=void 0,e.dispatchRangeChange()},void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.orientation==="horizontal"?(C(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),C(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),C(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),C(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(C(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),C(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),C(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),C(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},t.prototype.validateLayout=function(){this.updateSize(),a.prototype.validateLayout.call(this),this.updateExtremes()},t.prototype.processBackground=function(){a.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},t.prototype.handleBgHit=function(e){this.makeBusy();var i=e.spritePoint;i=oi(i,this.background,this);var r=this.thumb;if(this.orientation=="horizontal"){var n=i.x-r.pixelWidth/2;n=ee(n,0,this.innerWidth-r.pixelWidth),this._thumbAnimation=r.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var s=i.y-r.pixelHeight/2;s=ee(s,0,this.innerHeight-r.pixelHeight),this._thumbAnimation=r.animate({property:"y",to:s},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},t.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},t.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},t.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),this.animationDuration*1.1)},t.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},t.prototype.dispatchRangeChange=function(){(this._previousEnd!=this.end||this._previousStart!=this.start)&&(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},t.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),!!this.parent){var i=this.thumb,r=this.start,n=this.end,s=this.startGrip,o=this.endGrip,l=this.adapter.apply("positionValueDirection",{flipped:!1}).flipped,u=l?"To %1":"From %1",h=l?"From %1":"To %1",p,d;if(this.orientation=="horizontal"){var c=this.innerWidth;i.width=c*(n-r),i.maxX=c-i.pixelWidth,i.x=r*c,s.moveTo({x:i.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:i.pixelX+i.pixelWidth,y:0},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round(r*100)+"%",position:r}).value,d=this.adapter.apply("positionValue",{value:Math.round(n*100)+"%",position:n}).value,s.readerTitle=this.language.translate(u,void 0,p),s.readerValueNow=""+Math.round(r*100),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(h,void 0,d),o.readerValueNow=""+Math.round(n*100),o.readerValueText=o.readerTitle}else{var f=this.innerHeight;i.height=f*(n-r),i.maxY=f-i.pixelHeight,i.y=(1-n)*f,s.moveTo({x:0,y:i.pixelY+i.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:i.pixelY},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round((1-r)*100)+"%",position:1-r}).value,d=this.adapter.apply("positionValue",{value:Math.round((1-n)*100)+"%",position:1-n}).value,s.readerTitle=this.language.translate(h,void 0,p),s.readerValueNow=""+Math.round(r*100),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(u,void 0,d),o.readerValueNow=""+Math.round(n*100),o.readerValueText=o.readerTitle}i.readerTitle=this.language.translate("From %1 to %2",void 0,p,d),i.readerValueNow=""+Math.round(r*100),i.readerValueText=i.readerTitle,this.readerValueNow=""+Math.round(r*100),this.readerValueText=i.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&e&&this.dispatchRangeChange()}},t.prototype.updateExtremes=function(){var e=this.orientation,i=0,r=0,n=0,s=0;e=="horizontal"?(n=this.innerWidth,r=s=this.innerHeight/2):(s=this.innerHeight,i=n=this.innerWidth/2);var o=this.startGrip;o.minX=i,o.maxX=n,o.minY=r,o.maxY=s;var l=this.endGrip;l.minX=i,l.maxX=n,l.minY=r,l.maxY=s;var u=this.thumb;u.minX=i,u.maxX=n,u.minY=r,u.maxY=s},t.prototype.updateSize=function(){var e=this.orientation,i=this.startGrip;i&&(i.orientation=e),this.endGrip&&(this.endGrip.orientation=e);var r=this.thumb;r&&(e=="horizontal"?(x(this._pixelWidth)||this.width instanceof xe||(this.width=W(100)),C(this.percentHeight)&&(this.height=this.minHeight),r.height=this.innerHeight,r.verticalCenter="middle",r.horizontalCenter="left"):(x(this._pixelHeight)||this.height instanceof xe||(this.height=W(100)),C(this.percentWidth)&&(this.width=this.minWidth),r.width=this.innerWidth,r.verticalCenter="top",r.horizontalCenter="middle"))},Object.defineProperty(t.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__start",{get:function(){return this._start},set:function(e){this._start=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__end=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__end",{get:function(){return this._end},set:function(e){this._end=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),t.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},t.prototype.fixRange=function(e){(e.start!=z(this._start,2)||e.end!=z(this._end,2))&&(this._start=e.start,this._end=e.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},t.prototype.getPosition=function(e){return ee(z(e,4),0,1)},Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(e==="horizontal"?(this.startGrip.cursorOverStyle=Mt.horizontalResize,this.endGrip.cursorOverStyle=Mt.horizontalResize):(this.startGrip.cursorOverStyle=Mt.verticalResize,this.endGrip.cursorOverStyle=Mt.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),t.prototype.updateByOrientation=function(){},Object.defineProperty(t.prototype,"startGrip",{get:function(){return this._startGrip},set:function(e){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endGrip",{get:function(){return this._endGrip},set:function(e){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),t.prototype.processGrip=function(e){e.parent=this,e.isMeasured=!1,e.focusable=!0,e.shouldClone=!1,e.zIndex=100,e.events.on("drag",this.handleGripDrag,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("down",this.makeBusy,this,!1),e.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(e)},t.prototype.handleGripDrag=function(e){this.makeBusy(),e.target===this._startGrip?this._usingGrip="start":this._usingGrip="end",this.orientation=="horizontal"?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(t.prototype,"thumb",{get:function(){if(!this._thumb){var e=new Yi;e.background.cornerRadius(10,10,10,10),e.padding(0,0,0,0),this.thumb=e}return this._thumb},set:function(e){var i=this;e&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=e,e.parent=this,e.isMeasured=!1,e.inert=!0,e.draggable=!0,e.clickable=!0,e.hoverable=!0,e.focusable=!0,e.shouldClone=!1,e.zIndex=0,e.cursorOverStyle=Mt.grab,e.cursorDownStyle=Mt.grabbing,e.events.on("dragstart",this.makeBusy,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("positionchanged",this.handleThumbPosition,this,!1),e.events.on("sizechanged",this.handleThumbPosition,this,!1),e.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(me().body.events.on("keyup",function(r){Gi.isKey(r.event,["space","enter"])&&i.thumb.isFocused&&(r.event.preventDefault(),i.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),t.prototype.handleDoubleClick=function(){this.makeBusy();var e=0,i=1;this.start!=0||this.end!=1?(this._prevStart=this.start,this._prevEnd=this.end):(e=this._prevStart,i=this._prevEnd);var r=this.animate([{property:"__start",to:e},{property:"__end",to:i}],this.animationDuration,this.animationEasing);r&&!r.isFinished()?(r.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=r):this.makeUnbusy()},t.prototype.handleThumbPosition=function(){var e=this.thumb;if(this.orientation=="horizontal"){var i=this.innerWidth,r=e.innerWidth,n=e.pixelX;this._start=n/i,this._end=(n+r)/i,this.updateThumb()}else{var s=this.innerHeight,o=e.innerHeight,l=e.pixelY;l+o>s&&(l=s-o,e.y=l),this._start=1-(l+o)/s,this._end=1-l/s,this.updateThumb()}},t.prototype.createBackground=function(){return new xi},Object.defineProperty(t.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(e){var i=this;this._hideGrips=e,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),e?(this._overDisposer=this.events.on("over",function(){i.startGrip.show(),i.endGrip.show()},void 0,!1),this._outDisposer=this.events.on("out",function(){i.startGrip.hide(),i.endGrip.hide()},void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),t.prototype.asFunction=function(e){return e=="animationEasing"||a.prototype.asIs.call(this,e)},t})(te);S.registeredClasses.Scrollbar=Dn;var Fg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"label",{get:function(){var e=this;if(!this._label){var i=this.component.labels.create();this._label=i,this.addSprite(i),this._disposers.push(i),i.parent=this.itemContainer,this._disposers.push(new Fe(function(){C(e.component)&&e.component.labels.removeValue(i)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueLabel",{get:function(){var e=this;if(!this._valueLabel){var i=this.component.valueLabels.create();this._valueLabel=i,this.addSprite(i),this._disposers.push(i),i.parent=this.itemContainer,this._disposers.push(new Fe(function(){C(e.component)&&e.component.valueLabels.removeValue(i)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemContainer",{get:function(){var e=this;if(!this._itemContainer){var i=this.component,r=i.itemContainers.create();r.parent=i,this._itemContainer=r,this.addSprite(r),this._disposers.push(r),r.togglable&&r.events.on("toggled",function(o){i.toggleDataItem(o.target.dataItem)},void 0,!1),r.focusable&&(r.events.on("hit",function(o){i.focusedItem=void 0},void 0,!1),r.events.on("focus",function(o){i.focusedItem=o.target.dataItem},void 0,!1),r.events.on("blur",function(o){i.focusedItem=void 0},void 0,!1)),this._disposers.push(new Fe(function(){C(e.component)&&e.component.itemContainers.removeValue(r)})),this.dataContext.uidAttr&&(r.readerControls=this.dataContext.uidAttr(),r.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;if((n instanceof gr||n instanceof ne)&&!n.isDisposed()){var s=function(o){r.readerChecked=o.visible,r.events.disableType("toggled"),r.isActive=!o.visible,r.events.enableType("toggled")};n.addDisposer(new Fe(function(){e.component&&e.component.dataItems.remove(e)})),n instanceof ne?(r.addDisposer(n.events.on("visibilitychanged",s,void 0,!1)),r.addDisposer(n.events.on("hidden",function(o){r.readerChecked=!1,r.events.disableType("toggled"),r.isActive=!0,r.events.enableType("toggled")},void 0,!1)),r.addDisposer(n.events.on("shown",function(o){r.readerChecked=!0,r.events.disableType("toggled"),r.isActive=!1,r.events.enableType("toggled")},void 0,!1))):r.addDisposer(n.events.on("visibilitychanged",s,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){var e=this;if(!this._marker){var i=this.component.markers.create();this._marker=i,i.parent=this.itemContainer,this.addSprite(i),this._disposers.push(i),this._disposers.push(new Fe(function(){C(e.component)&&e.component.markers.removeValue(i)}))}return this._marker},enumerable:!0,configurable:!0}),t})(gr);var fu=(function(){function a(){this.createMarker=!0}return a})();var mu=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var i=new te;i.applyOnClones=!0,i.padding(8,0,8,0),i.margin(0,10,0,10),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=Mt.pointer,i.background.fillOpacity=0,e.itemContainers=new We(i),e._disposers.push(new Ie(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(me().body.events.on("keyup",function(h){if(Gi.isKey(h.event,"enter")&&e.focusedItem){var p=e.focusedItem,d=p.itemContainer;d.togglable?e.toggleDataItem(p):d.clickable&&d.events.isEnabled("hit")&&(d.dispatchImmediately("hit",{event:h}),e.focusedItem=p)}},e));var r=new ue,n=new te;n.width=23,n.height=23,n.interactionsEnabled=!1,n.applyOnClones=!0,n.setStateOnChildren=!0,n.background.fillOpacity=0,n.background.strokeOpacity=0,n.propertyFields.fill="fill",n.valign="middle";var s=r.getFor("disabledBackground");n.events.on("childadded",function(h){var p=h.newValue,d=p.states.create("active");d.properties.stroke=s,d.properties.fill=s}),e.markers=new We(n),e._disposers.push(new Ie(e.markers)),e._disposers.push(e.markers.template);var o=n.createChild(xi);o.width=W(100),o.height=W(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var l=new Rt;l.text="{name}",l.margin(0,5,0,5),l.valign="middle",l.applyOnClones=!0,l.states.create("active").properties.fill=r.getFor("disabledBackground"),e.labels=new We(l),e._disposers.push(new Ie(e.labels)),e._disposers.push(e.labels.template),l.interactionsEnabled=!1,l.truncate=!0,l.fullWords=!1;var u=new Rt;return u.margin(0,5,0,0),u.valign="middle",u.width=50,u.align="right",u.textAlign="end",u.applyOnClones=!0,u.states.create("active").properties.fill=r.getFor("disabledBackground"),u.interactionsEnabled=!1,e.valueLabels=new We(u),e._disposers.push(new Ie(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.events.on("parentset",function(){var h=e.parent;h&&e._disposers.push(h.events.on("maxsizechanged",function(){e.scrollable&&e.setTimeout(function(){e.updateMasks(),e.handleScrollbar(),e._handleWheelReal(1)},100)}))}),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},t.prototype.createDataItem=function(){return new Fg},t.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),a.prototype.validateDataElements.call(this)},t.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e);var i=e.itemContainer,r=e.marker;e.label;var n=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var s=e.label.maxWidth;e.label.width instanceof xe||(e.label.width=void 0),s>0&&(e.label.maxWidth=s),n.align=="right"&&(n.width=void 0);var o=e.dataContext.legendSettings,l=e.dataContext;l.createLegendMarker&&(!this.useDefaultMarker||!(l instanceof ne))?e.childrenCreated||(l.createLegendMarker(r),e.childrenCreated=!0):this.markers.template.propertyFields.fill=void 0,l.updateLegendValue&&l.updateLegendValue(),l.component&&l.component.updateLegendValue&&l.component.updateLegendValue(l),n.invalid&&n.validate(),n.text==""||n.text==null?n.__disabled=!0:n.__disabled=!1,o&&(o.itemValueText!=null||o.valueText!=null)&&(n.__disabled=!1);var u=e.dataContext.visible;u===void 0&&(u=!0),u=bt(u),e.dataContext.visible=u,i.events.disableType("toggled"),i.isActive=!u,i.isActive?i.setState("active",0):i.setState("default",0),i.events.enableType("toggled")},t.prototype.afterDraw=function(){var e=this,i=this.getPropertyValue("maxWidth"),r=0;this.labels.each(function(p){p.invalid&&(p.maxWidth=void 0,p.validate()),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>r&&(r=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var n=0;this.valueLabels.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>n&&(n=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var s=0;this.markers.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>s&&(s=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,u,h=r+n+s;x(i)?(i=i-l,i>h&&(i=h),u=i-s-n):u=r,this.labels.each(function(p){(e.valueLabels.template.align=="right"||p.measuredWidth>u)&&(p.width instanceof xe||(p.width=Math.min(p.maxWidth,u-p.pixelMarginLeft-p.pixelMarginRight),p.maxWidth=p.width))}),this.valueLabels.template.align=="right"&&this.valueLabels.each(function(p){p.width=n-p.pixelMarginRight-p.pixelMarginLeft}),a.prototype.afterDraw.call(this)},t.prototype.handleScrollbar=function(){var e=this.scrollbar;if(this.scrollable&&e){var i=this.maxHeight;e.height=i,e.x=this.measuredWidth-e.pixelWidth-e.pixelMarginLeft,this.contentHeight>i?(e.visible=!0,e.thumb.height=e.height*i/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight):(e.thumb.height=e.height*i/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight,e.visible=!1,e.start=0,e.end=1),e.handleThumbPosition(),this.updateMasks()}},Object.defineProperty(t.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){this.setPropertyValue("position",e)&&(e=="left"||e=="right"?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",x(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=W(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(e){this.setPropertyValue("useDefaultMarker",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(e){if(this.setPropertyValue("scrollable",e,!0))if(e){var i=this.createChild(Dn);this.scrollbar=i,i.isMeasured=!1,i.orientation="vertical",i.endGrip.__disabled=!0,i.startGrip.__disabled=!0,i.visible=!1,i.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(i.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),t.prototype.handleWheel=function(e){this._handleWheelReal(e.shift.y)},t.prototype._handleWheelReal=function(e){var i=this.scrollbar;if(i){var r=e/1e3*this.measuredHeight/this.contentHeight,n=i.end-i.start;e>0?(i.start=fe(0,i.start-r),i.end=i.start+n):(i.end=Se(1,i.end-r),i.start=i.end-n)}},t.prototype.updateMasks=function(){var e=this;this.scrollbar&&this.itemContainers.each(function(i){i.dy=-e.scrollbar.thumb.pixelY*e.contentHeight/e.maxHeight,i.maskRectangle={x:0,y:-i.dy,width:e.measuredWidth,height:e.maxHeight}}),this.invalidatePosition()},t.prototype.toggleDataItem=function(e){var i=e.dataContext;!i.visible||i.isHiding||i instanceof ne&&i.isHidden?(e.color=e.colorOrig,i.appeared=!0,e.itemContainer.isActive=!1,i.hidden===!0&&(i.hidden=!1),i.show?i.show():i.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,e.label.readerTitle))):(e.itemContainer.isActive=!0,i.appeared=!0,i.hide?i.hide():i.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,e.label.readerTitle)),e.color=new ue().getFor("disabledBackground"))},Object.defineProperty(t.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),t.prototype.handleDataItemPropertyChange=function(e,i){e.valueLabel.invalidate(),e.label.invalidate()},t})(vr);S.registeredClasses.Legend=mu;Dt.push({relevant:Nt.widthXS,state:function(a,t){if(a instanceof mu&&(a.position=="left"||a.position=="right")){var e=a.states.create(t);return e.properties.position="bottom",e}return null}});Dt.push({relevant:Nt.heightXS,state:function(a,t){if(a instanceof mu&&(a.position=="top"||a.position=="bottom")){var e=a.states.create(t);return e.properties.position="right",e}return null}});Dt.push({relevant:Nt.isXS,state:function(a,t){if(a instanceof mu){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var Fi=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){if(this.setPropertyValue("locationX",e)){var i=this.dataItem;i&&i.component&&i.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){if(this.setPropertyValue("locationY",e)){var i=this.dataItem;i&&i.component&&i.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(e){this.setPropertyValue("xField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(e){this.setPropertyValue("yField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(e){this.setPropertyValue("isDynamic",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(e){this.setPropertyValue("copyToLegendMarker",e)},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.Bullet=Fi;Dt.push({relevant:Nt.isXS,state:function(a,t){if(a instanceof Fi){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var Ts=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return Object.defineProperty(t.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new Ve,this._disposers.push(new mr(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.bullets.clear(),a.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),t})(gr);var Fn=(function(a){_(t,a);function t(){var e=a.call(this)||this;if(e._ignoreMinMax=!1,e._showBullets=!0,e.legendSettings=new fu,e._tmin=new Ve,e._tmax=new Ve,e._smin=new Ve,e._smax=new Ve,e.dataItemsByAxis=new Ve,e.skipFocusThreshold=20,e._itemReaderTextChanged=!1,e.calculatePercent=!1,e.usePercentHack=!0,e.autoDispose=!0,e.simplifiedProcessing=!1,e.constructor===t)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");e.className="Series",e.isMeasured=!1,e.layout="none",e.shouldClone=!1,e.setPropertyValue("hidden",!1),e.axisRanges=new we,e.axisRanges.events.on("inserted",e.processAxisRange,e,!1),e.minBulletDistance=0,e.mainContainer=e.createChild(te),e.mainContainer.shouldClone=!1,e.mainContainer.mask=e.createChild(ne),e._disposers.push(e.mainContainer);var i=e.mainContainer.createChild(te);return e._shouldBeReady.push(i),i.shouldClone=!1,i.layout="none",i.virtualParent=e,e._disposers.push(i),e.bulletsContainer=i,e.tooltip=new On,e.tooltip.virtualParent=e,e._disposers.push(e.tooltip),e.hiddenState.transitionEasing=kc,e.dataItem=e.createDataItem(),e._disposers.push(e.dataItem),e.dataItem.component=e,e.role="group",e.applyTheme(),e}return t.prototype.applyTheme=function(){a.prototype.applyTheme.call(this),Ce.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},t.prototype.createDataItem=function(){return new Ts},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),t.prototype.positionBullet=function(e){},t.prototype.processBullet=function(e){var i=this,r=e.newValue;r.isTemplate=!0,this.events.once("datavalidated",function(n){i.itemsFocusable()&&(r.focusable=!0)}),this.invalidate()},t.prototype.removeBullet=function(e){var i=e.oldValue;this.dataItems.each(function(r){var n=r.bullets.getKey(i.uid);n&&n.dispose()}),this.invalidate()},t.prototype.validateDataItems=function(){a.prototype.validateDataItems.call(this),this.processValues(!1)},t.prototype.getFirstValue=function(e,i){for(var r=i;r>=0;r--){var n=this.dataItems.getIndex(r),s=n.getActualWorkingValue(e);if(x(s))return s}return null},t.prototype.getAbsoluteFirstValue=function(e){for(var i=0;i<this.dataItems.length;i++){var r=this.dataItems.getIndex(i),n=r.values[e].value;if(x(n))return n}return null},t.prototype.rangeChangeUpdate=function(){a.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},t.prototype.processValues=function(e){var i=this;if(!this.simplifiedProcessing){var r=this.dataItems,n={},s={},o={},l={},u={},h={},p={},d={},c={},f={},m=fe(0,this.startIndex);m=Se(m,this.dataItems.length);var y=Se(this.endIndex,this.dataItems.length);if(x(m)||(m=0),x(y)||(y=this.dataItems.length),m>0){var g=r.getIndex(m-1);se(g.values,function(F,D){var O=g.getActualWorkingValue(F);x(O)&&(d[F]=O)})}for(var v=function(F){var D=r.getIndex(F);se(D.values,function(O,N){var L=D.getActualWorkingValue(O);if(x(L)){x(n[O])||(n[O]=0),n[O]++,x(s[O])||(s[O]=0),s[O]+=L,x(o[O])||(o[O]=0),o[O]+=Math.abs(L),x(h[O])||(h[O]=L),p[O]=L,x(l[O])?l[O]>L&&(l[O]=L):l[O]=L,x(u[O])?u[O]<L&&(u[O]=L):u[O]=L,x(c[O])||(c[O]=i.getFirstValue(O,m)),x(f[O])||(f[O]=i.getAbsoluteFirstValue(O)),D.setCalculatedValue(O,L-c[O],"change"),D.setCalculatedValue(O,(L-c[O])/c[O]*100,"changePercent"),D.setCalculatedValue(O,L-f[O],"startChange"),D.setCalculatedValue(O,(L-f[O])/f[O]*100,"startChangePercent");var E=d[O];x(E)||(E=L),D.setCalculatedValue(O,L-E,"previousChange"),D.setCalculatedValue(O,(L-E)/E*100,"previousChangePercent"),d[O]=L}})},b=m;b<y;b++)v(b);if(this.calculatePercent)for(var P=function(F){var D=r.getIndex(F);se(D.values,function(O){var N=o[O],L=D.getActualWorkingValue(O);if(x(L))if(N>0){i.usePercentHack&&L==N&&(N=D.values[O].value);var E=L/N*100;D.setCalculatedValue(O,E,"percent")}else D.setCalculatedValue(O,0,"percent")})},b=m;b<y;b++)P(b);if(m>0){var w=r.getIndex(m-1);se(w.values,function(F){var D=w.values[F].value;w.setCalculatedValue(F,D-h[F],"change"),w.setCalculatedValue(F,(D-h[F])/h[F]*100,"changePercent")})}var T=this.dataItem;se(T.values,function(F){T.setCalculatedValue(F,s[F],"sum"),T.setCalculatedValue(F,o[F],"absoluteSum"),T.setCalculatedValue(F,s[F]/n[F],"average"),T.setCalculatedValue(F,h[F],"open"),T.setCalculatedValue(F,p[F],"close"),T.setCalculatedValue(F,l[F],"low"),T.setCalculatedValue(F,u[F],"high"),T.setCalculatedValue(F,n[F],"count")})}},t.prototype.validate=function(){Fa()&&this.filters.clear(),j(this.axisRanges.iterator(),function(n){n.validate()}),a.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++){var r=this.dataItems.getIndex(i);r&&r.bullets.each(function(n,s){s.__disabled=!0})}for(var i=this.dataItems.length-1;i>this.endIndex;i--){var r=this.dataItems.getIndex(i);r&&r.bullets.each(function(o,l){l.__disabled=!0})}}else this.bulletsContainer.children.each(function(n){n.__disabled=!0});this.updateTooltipBounds()},t.prototype.updateTooltipBounds=function(){if(this.topParent){var e=0,i=0,r=this.topParent.maxWidth,n=this.topParent.maxHeight,s={x:e,y:i,width:r,height:n};this.tooltip.setBounds(s)}},t.prototype.shouldCreateBullet=function(e,i){return!0},t.prototype.validateDataElement=function(e){var i=this;a.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(r){var n=e.bullets.getKey(r.uid);if(i.shouldCreateBullet(e,r)){if(!n){var s=r.propertyFields.disabled,o=e.dataContext;s&&o&&o[s]===!1?(r.applyOnClones=!1,r.disabled=!1,n=r.clone(),r.disabled=!0,r.applyOnClones=!0):n=r.clone(),n.shouldClone=!1,e.addSprite(n),(!i.visible||i.isHiding)&&n.hide(0)}var l=n.dataItem;if(l!=e){l&&l.bullets.setKey(r.uid,void 0);var u=i.itemReaderText;n instanceof Fi&&(u||(u="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",function(h){n.readerTitle=i.populateString(u,n.dataItem)},void 0,!1),n.events.on("blur",function(h){n.readerTitle=""},void 0,!1)),n.hoverable&&(n.events.on("over",function(h){n.readerTitle=i.populateString(u,n.dataItem)},void 0,!1),n.events.on("out",function(h){n.readerTitle=""},void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(r.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}else n&&(n.__disabled=!0)})):this.bulletsContainer.visible=!1},t.prototype.handleDataItemWorkingValueChange=function(e,i){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(t.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this.invalidateDataItems()},enumerable:!0,configurable:!0}),t.prototype.createMask=function(){},t.prototype.processAxisRange=function(e){this.rangesContainer||(this.rangesContainer=this.createChild(te),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var i=e.newValue;i&&(i.contents.parent=this.rangesContainer,i.isRange=!0,i.events.on("valuechanged",this.invalidateDataItems,this,!1))},t.prototype.getAxisField=function(e){},t.prototype.showTooltipAtPosition=function(e,i){},Object.defineProperty(t.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(e){this.setPropertyValue("minBulletDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new We(new Fi),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new Ie(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e){},Object.defineProperty(t.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(e){this.setPropertyValue("hiddenInLegend",e)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e);var i=this.legendDataItem;i&&(i.component.invalidate(),i.component.invalidateRawData()),this.readerTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemReaderText",{get:function(){var e=this._itemReaderText;return e||(this.tooltipText?e=wo(this.tooltipText):this.tooltipHTML&&(e=wo(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",e):e},set:function(e){this._itemReaderText=e,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),t.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(t.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),t.prototype.updateLegendValue=function(e,i){if(this.legendDataItem){var r=this.legendSettings,n=this.legendDataItem,s=n.label,o=n.valueLabel;e&&!e.isDisposed()||i?(o&&(r.itemValueText&&(o.text=r.itemValueText),o.dataItem=e),s&&(r.itemLabelText&&(s.text=r.itemLabelText),s.dataItem=e)):(s&&((r.labelText||r.itemLabelText!=null)&&(s.text=r.labelText),s.dataItem=this.dataItem),o&&((r.valueText||r.itemValueText!=null)&&(o.text=r.valueText),o.dataItem=this.dataItem))}},t.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,a.prototype.copyFrom.call(this,e)},t.prototype.raiseCriticalError=function(e){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",e).message,this._chart.modal.closable=!1,Ce.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),Ce.verbose&&console.log(e)},t.prototype.applyFilters=function(){var e=this;a.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),j(this.filters.iterator(),function(i){e.bulletsContainer.filters.push(i.clone())})},Object.defineProperty(t.prototype,"heatRules",{get:function(){var e=this;return this._heatRules||(this._heatRules=new we,this._heatRules.events.on("inserted",function(i){var r=i.newValue,n=r.target;if(n){var s=r.dataField;C(s)||(s="value");var o=e.dataItem,l=r.property,u=qe(r.minValue),h=qe(r.maxValue);!x(u)&&!x(h)&&e.dataItem.events.on("calculatedvaluechanged",function(p){p.property==s&&j(e.dataItems.iterator(),function(d){var c=!1;K(d.sprites,function(f){if(f.clonedFrom==n){var m=f;m[l]=m[l],c=!0}}),c||K(d.sprites,function(f){f instanceof te&&j(f.children.iterator(),function(m){if(m.className==n.className){var y=m;y[l]=y[l]}else m instanceof te&&m.deepInvalidate()})})})}),e.dataItems.template.events.on("workingvaluechanged",function(p){if(p.property==s){var d=p.target,c=!1;K(d.sprites,function(f){if(f.clonedFrom==n){var m=f;m[l]=m[l],c=!0}}),c||K(d.sprites,function(f){f instanceof te&&j(f.children.iterator(),function(m){if(m.className==n.className){var y=m;y[l]=y[l]}else m instanceof te&&m.deepInvalidate()})})}}),n.adapter.add(l,function(p,d,c){var f=qe(r.minValue),m=qe(r.maxValue),y=r.min,g=r.max;if(d instanceof ne){var v=d,b=v.propertyFields[c];if(b&&d.dataItem){var P=d.dataItem.dataContext;if(P&&C(P[b]))return p}}var w=d.dataItem;if(x(f)||(f=o.values[s].low),x(m)||(m=o.values[s].high),w){var T=w.values[s];if(T){var F=w.getActualWorkingValue(s);if(C(y)&&C(g)&&x(f)&&x(m)&&x(F)){var D=void 0;if(r.logarithmic?D=(Math.log(F)*Math.LOG10E-Math.log(f)*Math.LOG10E)/(Math.log(m)*Math.LOG10E-Math.log(f)*Math.LOG10E):D=(F-f)/(m-f),x(F)&&(!x(D)||Math.abs(D)==1/0)&&(D=.5),x(y))return y+(g-y)*D;if(y instanceof _e)return new _e(hs(y.rgb,g.rgb,D))}}}return p})}})),this._heatRules},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i;if(e){if(C(e.bullets)&&Je(e.bullets))for(var r=0,n=e.bullets.length;r<n;r++){var s=e.bullets[r];C(s.type)||(s.type="Bullet")}C(e.heatRules)&&Je(e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(a.prototype.processConfig.call(this,e),i){for(var r=0,n=i.length;r<n;r++){var o=i[r],l=this;if(C(o.target)&&ye(o.target))if(this.map.hasKey(o.target))l=this.map.getKey(o.target);else for(var u=o.target.split("."),h=0;h<u.length;h++)if(l instanceof we){var p=l.getIndex(qe(u[h]));p?l=p:l=l[u[h]]}else{var d=u[h].match(/^(.*)\[([0-9]+)\]/);d?l[d[1]]instanceof we?l=l[d[1]].getIndex(qe(d[2])):l=l[d[1]][qe(d[2])]:l=l[u[h]]}o.target=l,C(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),C(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}a.prototype.processConfig.call(this,{heatRules:i})}},t.prototype.configOrder=function(e,i){return e==i?0:e=="heatRules"?1:i=="heatRules"?-1:a.prototype.configOrder.call(this,e,i)},t.prototype.setVisibility=function(e){a.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},t})(vr);S.registeredClasses.Series=Fn;S.registeredClasses.SeriesDataItem=Ts;var ka=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new _e({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return Object.defineProperty(t.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),t.prototype.getReusableColor=function(e){if(this._list.length==0)return this.generate(1),this.list[0];var i=e-Math.floor(e/this._list.length)*this.list.length;return this.list[i]},t.prototype.next=function(){var e;return this.list.length<=this._currentStep?this.reuse?e=this.getReusableColor(this._currentStep):(this.generate(fe(this.minColors,this._currentStep+1)),e=this.list[this._currentStep]):e=this.list[this._currentStep],this._currentStep+=this.step,e.saturate(this.saturation)},t.prototype.getIndex=function(e){var i;return this.list.length<=e?this.reuse?i=this.getReusableColor(e):(this.generate(this.minColors),i=this.getIndex(e)):i=this.list[e],i.saturate(this.saturation)},t.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(t.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),t.prototype.generate=function(e){var i=this.currentColor,r=Ml(Ze(i.rgb)),n=C(this.stepOptions.hue)?this.stepOptions.hue:1/e,s={brighten:0,lighten:0,hue:r.h,lightness:r.l,saturation:r.s},o=[],l=this.list.length==0?0:1;if(this.reuse)for(var u=l;u<=e;u++)o.push(Ml(Ze(this._list[u].rgb)).h);else for(var u=l;u<=e;u++){var h=r.h+n*u;this.wrap&&h>1&&(h-=1),o.push(h)}this.shuffle&&o.sort(function(f,m){return Math.random()-.5});for(var u=0;u<e;u++){this.reuse?r=Ml(Ze(this._list[u].rgb)):r.h=o.shift(),this.applyStepOptions(r,s,u,this._currentPass);var p=oe(Ud(r)),d=(this.stepOptions.brighten||0)*u+(this.passOptions.brighten||0)*this._currentPass;d!=0&&(this.wrap?d=Yl(d,this.minLightness,this.maxLightness):d=Gl(d,this.minLightness,this.maxLightness),p=p.brighten(d));var c=(this.stepOptions.lighten||0)*u+(this.passOptions.lighten||0)*this._currentPass;c!=0&&(this.wrap?c=Yl(c,this.minLightness,this.maxLightness):c=Gl(c,this.minLightness,this.maxLightness),p=p.lighten(c)),this._list.push(p)}this._currentPass++},Object.defineProperty(t.prototype,"currentColor",{get:function(){return this._list.length==0?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),t.prototype.applyStepOptions=function(e,i,r,n){e.l=i.lightness+(this.stepOptions.lightness||0)*r+(this.passOptions.lightness||0)*n,this.wrap?(e.l>1?e.l=e.l-Math.floor(e.l):e.l<0&&(e.l=-(e.l-Math.floor(e.l))),e.l=Yl(e.l,this.minLightness,this.maxLightness)):(e.l>1?e.l=1:e.l<0&&(e.l=0),e.l=Gl(e.l,this.minLightness,this.maxLightness))},t.prototype.processConfig=function(e){if(e){if(C(e.list)&&Je(e.list))for(var i=0,r=e.list.length;i<r;i++)e.list[i]instanceof _e||(e.list[i]=oe(e.list[i]));C(e.baseColor)&&!(e.baseColor instanceof _e)&&(e.baseColor=oe(e.baseColor))}a.prototype.processConfig.call(this,e)},t})(Tt);S.registeredClasses.ColorSet=ka;var yu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return t})(du);var Ro=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._exitDP={},e.className="SerialChart",e.colors=new ka,e._usesData=!1;var i=e.chartContainer.createChild(te);i.shouldClone=!1,i.width=W(100),i.height=W(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var r=e.chartContainer.createChild(te);return r.shouldClone=!1,r.width=W(100),r.height=W(100),r.isMeasured=!1,r.zIndex=3,r.layout="none",e.bulletsContainer=r,e.applyTheme(),e}return t.prototype.dispose=function(){a.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(t.prototype,"series",{get:function(){return this._series||(this._series=new We(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new Ie(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),t.prototype.handleSeriesRemoved=function(e){var i=e.oldValue;this.dataUsers.removeValue(i),this.dataUsers.each(function(u){u.invalidateDataItems()}),this._exitDP[i.uid]&&(this._exitDP[i.uid].dispose(),delete this._exitDP[i.uid]),i.autoDispose?i.dispose():(i.parent=void 0,i.bulletsContainer.parent=void 0);var r=this.legend;if(r){for(var n=this.legend.dataItems,s=n.length-1;s>=0;s--){var o=n.getIndex(s);o&&o.dataContext==i&&r.dataItems.remove(o)}for(var s=r.data.length-1;s>=0;s--){var l=r.data[s];l&&l==i&&de(r.data,l)}}},t.prototype.handleSeriesAdded=function(e){var i=this,r=e.newValue;r.isDisposed()||(r.chart=this,r.parent=this.seriesContainer,r.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(r),r.addDisposer(new Fe(function(){i.dataUsers.removeValue(r)})),this.handleSeriesAdded2(r),this.handleLegendSeriesAdded(r))},t.prototype.handleLegendSeriesAdded=function(e){e.hiddenInLegend||this.legend&&this.legend.addData(e)},t.prototype.handleSeriesAdded2=function(e){var i=this;this.dataInvalid||(this._exitDP[e.uid]=S.events.once("exitframe",function(){(!e.data||e.data.length==0)&&(e.data=i.data,e.showOnInit&&(e.reinit(),e.setPropertyValue("showOnInit",!1),e.showOnInit=!0),e.isDisposed()||e.events.once("datavalidated",function(){e.data==i.data&&(e._data=[])}))}),this._disposers.push(this._exitDP[e.uid]))},t.prototype.feedLegend=function(){var e=this.legend;if(e){var i=[];j(this.series.iterator(),function(r){r.hiddenInLegend||i.push(r)}),e.dataFields.name="name",e.data=i}},t.prototype.createSeries=function(){return new Fn},Object.defineProperty(t.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},t.prototype.appear=function(){a.prototype.appear.call(this),this.series.each(function(e){e.showOnInit&&e.inited&&e.appear()})},t})(Ea);S.registeredClasses.SerialChart=Ro;var Ii=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=oe(),e.x1=0,e.y1=0,e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(t.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(e){x(e)||(e=0);var i=0;this.pixelPerfect&&this.stroke instanceof fi&&(i=1e-5),this.setPropertyValue("x1",e,!0),this.element.attr({x1:e+i})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){var e=this.getPropertyValue("x2");return x(e)||(e=this.pixelWidth),e},set:function(e){x(e)||(e=0),this.setPropertyValue("x2",e,!0),this.element.attr({x2:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(e){x(e)||(e=0);var i=0;this.pixelPerfect&&this.stroke instanceof fi&&(i=1e-5),this.setPropertyValue("y1",e,!0),this.element.attr({y1:e+i})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){var e=this.getPropertyValue("y2");return x(e)||(e=this.pixelHeight),e},set:function(e){x(e)||(e=0),this.setPropertyValue("y2",e,!0),this.element.attr({y2:e})},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e){var i={x:this.x1,y:this.y1},r={x:this.x2,y:this.y2},n=us(i,r,e),s=kt(i,r);return{x:n.x,y:n.y,angle:s}},t})(ne);S.registeredClasses.Line=Ii;var Vr=(function(){function a(t,e){this._tensionX=t,this._tensionY=e}return a.prototype.smooth=function(t){for(var e=t.length-1;e>0;e--){var i=t[e],r=t[e-1];Math.abs(i.x-r.x)<.1&&Math.abs(i.y-r.y)<.1&&t.splice(e-1,1)}var n=this._tensionX,s=this._tensionY;if(t.length<3||n>=1&&s>=1)return _s(t);var o=t[0],l=t[t.length-1],u=!1;z(o.x,3)==z(l.x)&&z(o.y)==z(l.y)&&(u=!0);for(var h="",e=0,p=t.length-1;e<p;e++){var i=t[e-1],r=t[e],d=t[e+1],c=t[e+2];e===0?u?i=t[t.length-2]:i=t[e]:e==t.length-2&&(u?c=t[1]:c=t[e+1]);var f=oh(i,r,d,c,n,s),m=lh(i,r,d,c,n,s);h+=Qa(d,f,m)}return h},a})();function $s(a,t,e,i,r,n){var s=a.x,o=a.y,l=t.x,u=t.y,h=Ee(a,t);n&&(e=h/Math.round(h/e));var p=S.getCache(xh(["wavedLine",a.x,t.x,a.y,t.y,e,i]));if(!p){if(h>0){var d=Math.atan2(u-o,l-s),c=Math.cos(d),f=Math.sin(d),m=e*c,y=e*f;if(e<=1||i<=1)p=R(t);else{var g=Math.round(2*h/e),v=[],b=1;l<s&&(b*=-1),u<o&&(b*=-1);for(var P=0;P<=g;P++){b*=-1;var w=s+P*m/2+b*i/2*f,T=o+P*y/2-b*i/2*c;v.push({x:w,y:T})}p=new Vr(r,r).smooth(v)}}else p="";S.setCache(xh(["wavedLine",a.x,t.x,a.y,t.y,e,i]),p)}return p}var Eg=(function(){function a(t,e){this._reversed=t,this._closed=e.closed}return a.prototype._curve=function(t,e,i,r,n,s){var o=(e-t)/3;return this._reversed?Qa({x:r,y:e},{x:i+o*n,y:t+o},{x:r-o*s,y:e-o}):Qa({x:e,y:r},{x:t+o,y:i+o*n},{x:e-o,y:r-o*s})},a.prototype.smooth=function(t){var e=this,i=NaN,r=NaN,n=NaN,s=NaN,o=NaN,l=0,u="";switch(K(t,function(h){var p=h.x,d=h.y;if(e._reversed){var c=p;p=d,d=c}var f=NaN;if(!(p===r&&d===s)){switch(l){case 0:l=1,e._reversed?u+=R({x:d,y:p}):u+=R({x:p,y:d});break;case 1:l=2;break;case 2:l=3,u+=e._curve(i,r,n,s,Ag(i,r,n,s,f=Lg(i,r,n,s,p,d)),f);break;default:u+=e._curve(i,r,n,s,o,f=Lg(i,r,n,s,p,d));break}i=r,r=p,n=s,s=d,o=f}}),l){case 2:this._reversed?u+=R({x:s,y:r}):u+=R({x:r,y:s});break;case 3:u+=this._curve(i,r,n,s,o,Ag(i,r,n,s,o));break}return this._closed&&(u+=it()),u},a})();function Ig(a){return a<0?-1:1}function Ag(a,t,e,i,r){var n=t-a;return n?(3*(i-e)/n-r)/2:r}function Lg(a,t,e,i,r,n){var s=t-a,o=r-t,l=(i-e)/(s||o<0&&-0),u=(n-i)/(o||s<0&&-0),h=(l*o+u*s)/(s+o);return(Ig(l)+Ig(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(h))||0}var Jc=(function(a){_(t,a);function t(e){return a.call(this,!1,e)||this}return t})(Eg);var ef=(function(a){_(t,a);function t(e){return a.call(this,!0,e)||this}return t})(Eg);var LP=(function(){function a(t){this._closed=t.closed}return a.prototype.smooth=function(t){var e=this,i=NaN,r=NaN,n=NaN,s=NaN,o=NaN,l=NaN,u=NaN,h=NaN,p=NaN,d=NaN,c=0,f="",m=function(g,v){f+=Qa({x:(i+4*r+g)/6,y:(l+4*u+v)/6},{x:(2*i+r)/3,y:(2*l+u)/3},{x:(i+2*r)/3,y:(l+2*u)/3})},y=function(g){var v=g.x,b=g.y;switch(c){case 0:c=1,e._closed?(n=v,h=b):f+=R({x:v,y:b});break;case 1:c=2,e._closed&&(s=v,p=b);break;case 2:if(c=3,e._closed){o=v,d=b,f+=X({x:(i+4*r+v)/6,y:(l+4*u+b)/6});break}else f+=R({x:(5*i+r)/6,y:(5*l+u)/6});default:m(v,b);break}i=r,r=v,l=u,u=b};if(K(t,y),this._closed)switch(c){case 1:f+=X({x:n,y:h}),f+=it();break;case 2:f+=X({x:(n+2*s)/3,y:(h+2*p)/3}),f+=R({x:(s+2*n)/3,y:(p+2*h)/3}),f+=it();break;case 3:y({x:n,y:h}),y({x:s,y:p}),y({x:o,y:d});break}else{switch(c){case 3:m(r,u);case 2:f+=R({x:r,y:u});break}f+=it()}return f},a})();var fa=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=oe(),e.applyTheme(),e}return t.prototype.draw=function(){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2};this.path=X(e)+$s(e,i,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(t.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),t})(Ii);var In=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._axis=new st,e.dataItems=new we,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new ue,r=new fa;r.fill=i.getFor("background"),r.stroke=oe(),r.fillOpacity=.9,r.zIndex=0,e._fillShape=r;var n=new fa;n.fill=oe(),n.stroke=i.getFor("grid"),n.strokeOpacity=.3,n.zIndex=1,e._startLine=n;var s=new fa;return s.fill=oe(),s.stroke=oe("#000000"),s.strokeOpacity=.3,s.zIndex=2,e._endLine=s,e._disposers.push(e._axis),e.applyTheme(),e}return t.prototype.dispose=function(){a.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(t.prototype,"startLine",{get:function(){return this._startLine},set:function(e){this._startLine&&this._startLine.dispose(),this._startLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLine",{get:function(){return this._endLine},set:function(e){this._endLine&&this._endLine.dispose(),this._endLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillShape",{get:function(){return this._fillShape},set:function(e){this._fillShape&&this._fillShape.dispose(),this._fillShape=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),t.prototype.addBreakSprite=function(e){e.parent=this,e.isMeasured=!1,this._disposers.push(e)},Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this._axis.get()!==e){this._axis.set(e,e.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),e.renderer.createBreakSprites(this);var i=e.axisBreaks.template;this.startLine.copyFrom(i.startLine),this.endLine.copyFrom(i.endLine),this.fillShape.copyFrom(i.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(e){this.setPropertyValue("breakSize",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),t.prototype.draw=function(){if(a.prototype.draw.call(this),this.axis){var e=this.axis.renderer;e.updateBreakElement(this)}},Object.defineProperty(t.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.AxisBreak=In;var Ja=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"grid",{get:function(){if(!this._grid){var e=this.component;if(e){var i=void 0,r;if(this.isRange){if(i=e.axisRanges.template.grid,i.disabled)return;r=i.clone()}else{if(i=e.renderer.grid.template,i.disabled)return;r=e.renderer.grid.create(),this._disposers.push(new Fe(function(){e.renderer.grid.removeValue(r)}))}this.grid=r,r.shouldClone=!1,this._disposers.push(r),r.axis=this.component}}return this._grid},set:function(e){this._grid&&this._grid!=e&&(de(this.sprites,this._grid),this._grid.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(de(e.dataItem.sprites,e),e.dataItem.grid=void 0),this.addSprite(e)),this._grid=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tick",{get:function(){if(!this._tick){var e=this.component;if(e){var i=void 0,r;if(this.isRange){if(i=e.axisRanges.template.tick,i.disabled)return;r=i.clone()}else{if(i=e.renderer.ticks.template,i.disabled)return;r=e.renderer.ticks.create(),this._disposers.push(new Fe(function(){e.renderer.ticks.removeValue(r)}))}this.tick=r,r.axis=this.component,r.shouldClone=!1,this._disposers.push(r)}}return this._tick},set:function(e){this._tick&&this._tick!=e&&(de(this.sprites,this._tick),this._tick.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(de(e.dataItem.sprites,e),e.dataItem.tick=void 0),this.addSprite(e)),this._tick=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){if(!this._label){var e=this.component;if(e){var i=void 0,r;if(this.isRange){if(i=e.axisRanges.template.label,i.disabled)return;r=i.clone()}else{if(i=e.renderer.labels.template,i.disabled)return;r=e.renderer.labels.create(),this._disposers.push(new Fe(function(){e.renderer.labels.removeValue(r)}))}this._disposers.push(r),this.label=r,r.shouldClone=!1,r.axis=this.component,r.virtualParent=e}}return this._label},set:function(e){this._label&&this._label!=e&&(de(this.sprites,this._label),this._label.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(de(e.dataItem.sprites,e),e.dataItem.label=void 0),this.addSprite(e)),this._label=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axisFill",{get:function(){if(!this._axisFill){var e=this.component;if(e){var i=void 0,r;if(this.isRange){if(i=e.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;r=i.clone()}else{if(i=e.renderer.axisFills.template,i.disabled)return;r=e.renderer.axisFills.create(),this._disposers.push(new Fe(function(){e.renderer.axisFills.removeValue(r)}))}this.axisFill=r,r.shouldClone=!1,this._disposers.push(r)}}return this._axisFill},set:function(e){this._axisFill&&this._axisFill!=e&&(de(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(de(e.dataItem.sprites,e),e.dataItem.axisFill=void 0),e.axis=this.component,this.addSprite(e)),this._axisFill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this._label&&(this._label.text=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contents",{get:function(){if(!this._contents){var e=new te;this.addSprite(e),e.isMeasured=!1,this._contents=e;var i=this.component;if(i){var r=i.renderer.createFill(this.component);r.disabled=!1,r.axis=i,this.addSprite(r),this._mask=r,e.mask=r}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(e){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),e&&e.dataItems.push(this),this._axisBreak=e},enumerable:!0,configurable:!0}),t.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},t.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},t.prototype.hasProperty=function(e){return e=="component"?!0:a.prototype.hasProperty.call(this,e)},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},t.prototype.setVisibility=function(e,i){a.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(t.prototype,"bullet",{get:function(){return this._bullet},set:function(e){this._bullet&&this._bullet!=e&&(de(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=e,e&&this.addSprite(e)},enumerable:!0,configurable:!0}),t})(gr);var kg;(function(a){a[a.Start=0]="Start",a[a.Middle=.5]="Middle",a[a.End=1]="End"})(kg||(kg={}));var Os=(function(a){_(t,a);function t(){var e=a.call(this)||this;if(e._gridCount=10,e._series=new we,e.autoDispose=!0,e._axisItemCount=0,e.constructor===t)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");e.hideTooltipWhileZooming=!0,e.minWidth=1e-4,e.minHeight=1e-4,e.className="Axis",e.shouldClone=!1,e.setPropertyValue("cursorTooltipEnabled",!0),e.toggleZoomOutButton=!0,e.zoomable=!0;var i=new ue;e.title=new Rt,e.title.shouldClone=!1,e._disposers.push(e.title),e.setPropertyValue("startLocation",0),e.setPropertyValue("endLocation",1),e._dataItemsIterator=new fs(e.dataItems,function(){return e.dataItems.create()}),e._dataItemsIterator.createNewItems=!0;var r=new On;e._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=e;var n=r.background;return n.cornerRadius=0,n.fill=i.getFor("alternativeBackground"),n.stroke=n.fill,n.strokeWidth=1,n.fillOpacity=1,r.label.fill=i.getFor("alternativeText"),e.tooltip=r,e.readerHidden=!0,e.events.on("rangechangestarted",function(){e.series.each(function(s){s.hideTooltipWhileZooming&&(s.tooltip.hide(),s.tooltip.preventShow=!0)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!0)},void 0,!1),e.events.on("rangechangeended",function(){e.series.each(function(s){s.hideTooltipWhileZooming&&(s.tooltip.hide(),s.tooltip.preventShow=!1)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!1)},void 0,!1),e.applyTheme(),e}return t.prototype.fillRule=function(e,i){x(i)||(i=e.index),i/2==Math.round(i/2)?(e.axisFill.__disabled=!0,e.axisFill.opacity=0):(e.axisFill.opacity=1,e.axisFill.__disabled=!1)},t.prototype.createDataItem=function(){return new Ja},t.prototype.invalidateLayout=function(){a.prototype.invalidateLayout.call(this),j(this.series.iterator(),function(e){e.invalidateLayout()})},t.prototype.invalidateSeries=function(){j(this.series.iterator(),function(e){e.invalidate()})},t.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},t.prototype.updateGridCount=function(){if(this.renderer){var e=this.axisLength/this.renderer.minGridDistance;e!=this._gridCount&&(this._gridCount=e,this.clearCache())}},t.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),a.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},t.prototype.initRenderer=function(){},t.prototype.appendDataItem=function(e){var i=this.renderer,r=e.tick;r&&(r.above?r.parent=i.bulletsContainer:r.parent=i.gridContainer),e.label&&(e.label.parent=i);var n=e.axisFill;n&&(n.above?n.parent=i.bulletsContainer:n.parent=i.gridContainer);var s=e.grid;s&&(s.above?s.parent=i.bulletsContainer:s.parent=i.gridContainer),e.bullet&&(e.bullet.parent=i.bulletsContainer)},t.prototype.validate=function(){a.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},t.prototype.validateAxisRanges=function(){var e=this;j(this.axisRanges.iterator(),function(i){e.appendDataItem(i),e.validateDataElement(i),i.grid&&i.grid.validate(),i.tick&&i.tick.validate(),i.axisFill&&i.axisFill.validate(),i.label&&i.label.validate()})},t.prototype.validateBreaks=function(){this._axisBreaks&&j(this._axisBreaks.iterator(),function(e){e.invalidate()})},t.prototype.processBreak=function(e){var i=e.newValue;i.parent=this.renderer.breakContainer,i.axis=this},t.prototype.registerSeries=function(e){var i=this;return this.series.moveValue(e),new Me([new Fe(function(){i.series.removeValue(e)}),this.events.on("lengthchanged",e.invalidate,e,!1),this.events.on("lengthchanged",e.createMask,e,!1),this.events.on("startchanged",e.invalidate,e,!1),this.events.on("endchanged",e.invalidate,e,!1)])},Object.defineProperty(t.prototype,"renderer",{get:function(){return this._renderer},set:function(e){if(e!=this._renderer){this._renderer=e,e.chart=this.chart,e.axis=this,e.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(e.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var i=this.renderer.labels.create();this._disposers.push(i),i.dataItem=this.dataItems.template.clone(),i.text="L",i.parent=this.renderer,i.shouldClone=!1,i.fillOpacity=0,i.opacity=0,i.strokeOpacity=0,i.interactionsEnabled=!1,i.validate(),this.ghostLabel=i,this.events.on("beforedatavalidated",function(){i.text="L"},void 0,!1)}},enumerable:!0,configurable:!0}),t.prototype.positionToAngle=function(e){return this.renderer.positionToAngle(e)},t.prototype.pointToPosition=function(e){return this.renderer.pointToPosition(e)},t.prototype.positionToCoordinate=function(e){return this.renderer.positionToCoordinate(e)},t.prototype.getAnyRangePath=function(e,i){return this.renderer.getPositionRangePath(e,i)},t.prototype.anyToPosition=function(e){return 0},t.prototype.anyToPoint=function(e){return{x:0,y:0,angle:0}},t.prototype.getPositionRangePath=function(e,i){return this.renderer?this.renderer.getPositionRangePath(e,i):""},Object.defineProperty(t.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)&&(e&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(e){this.setPropertyValue("toggleZoomOutButton",e)},enumerable:!0,configurable:!0}),t.prototype.hideTooltip=function(e){a.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},t.prototype.showTooltipAtPosition=function(e,i){var r=this._tooltip;if(!r||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(i||(e=this.toAxisPosition(e)),!x(e)||e<this.start||e>this.end){r.hide(0),this._tooltipPosition=void 0;return}var n=this.renderer;r.parent||(r.parent=this.tooltipContainer);var s=n.tooltipLocation,o=this.getCellStartPosition(e),l=this.getCellEndPosition(e);if(this.tooltipPosition=="fixed"&&(e=o+(l-o)*s),e=ee(e,this.start,this.end),this._tooltipPosition!=e){this._tooltipPosition=e;var u=n.tooltipLocation2,h=n.positionToPoint(o,u),p=n.positionToPoint(l,u);this.currentItemStartPoint=h,this.currentItemEndPoint=p,n.fullWidthTooltip&&(r.width=p.x-h.x,r.height=p.y-h.y);var d=n.positionToPoint(e,u),c=Bi(d,this.renderer.line);r.text=this.getTooltipText(e),r.text&&(r.delayedPointTo(c),r.show())}(!this.cursorTooltipEnabled||this.tooltip.disabled)&&r.hide(0)}},t.prototype.toAxisPosition=function(e){if(e=this.renderer.toAxisPosition(e),e!=null)return e=e*(this.end-this.start),this.renderer.inversed?e=this.end-e:e=this.start+e,e},t.prototype.toGlobalPosition=function(e){return this.renderer.inversed?e=this.end-e:e=e-this.start,e/(this.end-this.start)},t.prototype.getTooltipText=function(e){},t.prototype.updateTooltip=function(e,i){var r=this._tooltip;r&&(r.fixDoc=!1,r.pointerOrientation=e,r.setBounds(xs(i,this.renderer.line)))},t.prototype.roundPosition=function(e,i,r){return e},t.prototype.getCellStartPosition=function(e){return e},t.prototype.getCellEndPosition=function(e){return e},Object.defineProperty(t.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var e=this.createDataItem();e.isRange=!0,e.axisFill=this.renderer.axisFills.template.clone(),e.grid=this.renderer.grid.template.clone(),e.tick=this.renderer.ticks.template.clone(),e.label=this.renderer.labels.template.clone(),e.isTemplate=!0,e.component=this,e.axisFill.disabled=!1,e.tick.disabled=!1,e.grid.disabled=!1,e.label.disabled=!1,this._axisRanges=new We(e),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new Ie(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),t.prototype.processAxisRange=function(e){var i=e.newValue;i.component=this,i.isRange=!0},Object.defineProperty(t.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new tu(this.createAxisBreak(),function(e,i){return rr(e.adjustedStartValue,i.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new Ie(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),t.prototype.createAxisBreak=function(){return new In},Object.defineProperty(t.prototype,"series",{get:function(){return this._series||(this._series=new we),this._series},enumerable:!0,configurable:!0}),t.prototype.processSeriesDataItems=function(){},t.prototype.processSeriesDataItem=function(e,i){},t.prototype.postProcessSeriesDataItems=function(e){},t.prototype.postProcessSeriesDataItem=function(e){},t.prototype.updateAxisBySeries=function(){},t.prototype.hideUnusedDataItems=function(){var e=this,i=this._dataItemsIterator;i.createNewItems=!1,j(i.iterator(),function(r){e.validateDataElement(r),r.__disabled=!0}),i.clear(),i.createNewItems=!0},t.prototype.getSeriesDataItem=function(e,i,r){},t.prototype.getAngle=function(e,i,r,n,s){},t.prototype.getX=function(e,i,r,n,s){},t.prototype.getPositionX=function(e,i,r,n,s){},t.prototype.getY=function(e,i,r,n,s){},t.prototype.getPositionY=function(e,i,r,n,s){},Object.defineProperty(t.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),t.prototype.dataChangeUpdate=function(){},t.prototype.seriesDataChangeUpdate=function(e){},t.prototype.adjustDifference=function(e,i){var r=i-e;if(x(r))return this._axisBreaks&&ii(this._axisBreaks.iterator(),function(n){var s=n.adjustedStartValue,o=n.adjustedEndValue;if(x(s)&&x(o)){if(s>i)return!1;if(o>=e&&x(s)&&x(o)){var l=n.breakSize,u=$y({start:s,end:o},{start:e,end:i});u&&(r-=(u.end-u.start)*(1-l))}return!0}}),r},t.prototype.isInBreak=function(e){if(this._axisBreaks)return eg(this._axisBreaks.iterator(),function(i){return e>=i.adjustedStartValue&&e<=i.adjustedEndValue})},t.prototype.fixAxisBreaks=function(){var e=this;if(this._axisBreaks){var i=this._axisBreaks;if(i.length>0){K(cs(i.iterator()),function(s){var o=Se(s.startValue,s.endValue),l=fe(s.startValue,s.endValue);s.adjustedStartValue=o,s.adjustedEndValue=l,e._axisBreaks.update(s)});var r=i.first,n=Math.min(r.startValue,r.endValue);j(i.iterator(),function(s){var o=s.adjustedStartValue,l=s.adjustedEndValue;o<n&&(o=n,l<n&&(l=n)),s.adjustedStartValue=o,s.adjustedEndValue=l})}}},Object.defineProperty(t.prototype,"startIndex",{get:function(){return 0},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.getPositionLabel=function(e){return Math.round(e*100)+"%x"},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),t.prototype.createSeriesRange=function(e){var i=this.axisRanges.create();return i.component=this,i.axisFill=this.renderer.axisFills.template.clone(),i.axisFill.disabled=!1,i.axisFill.fillOpacity=0,i.grid=this.renderer.grid.template.clone(),i.grid.disabled=!0,i.tick=this.renderer.ticks.template.clone(),i.tick.disabled=!0,i.label=this.renderer.labels.template.clone(),i.label.disabled=!0,i.addDisposer(new Fe(function(){e.axisRanges.removeValue(i)})),e.axisRanges.push(i),i},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},t.prototype.resetIterators=function(){this._dataItemsIterator.reset()},t.prototype.processConfig=function(e){if(e&&C(e.axisRanges)&&Je(e.axisRanges))for(var i=0,r=e.axisRanges.length;i<r;i++){var n=e.axisRanges[i];C(n.series)&&ye(n.series)&&this.map.hasKey(n.series)&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(n.series)),delete n.series,e.axisRanges[i].config=n)}a.prototype.processConfig.call(this,e)},t.prototype.configOrder=function(e,i){return e==i?0:e=="title"?1:i=="title"||e=="component"?-1:i=="component"?1:a.prototype.configOrder.call(this,e,i)},Object.defineProperty(t.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title&&this._title!=e&&this._title.dispose(),e&&(this._title=e,e.parent=this,e.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoomable",{get:function(){return this.getPropertyValue("zoomable")},set:function(e){this.setPropertyValue("zoomable",e)},enumerable:!0,configurable:!0}),t})(vr);S.registeredClasses.Axis=Os;S.registeredClasses.AxisDataItem=Ja;Dt.push({relevant:Nt.maybeXS,state:function(a,t){if(a instanceof Os&&a.tooltip){var e=a.states.create(t);return e.properties.cursorTooltipEnabled=!1,e}return null}});var jo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},t})(Rt);S.registeredClasses.AxisLabel=jo;var jh=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new ue;return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=oe(),e.applyTheme(),e.interactionsEnabled=!1,e}return t})(ne);S.registeredClasses.AxisLine=jh;var An=(function(a){_(t,a);function t(e){var i=a.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var r=new ue;return i.fill=r.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},t.prototype.draw=function(){a.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis&&x(this.startPosition)&&x(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(t.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(e){this.setPropertyValue("startPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(e){this.setPropertyValue("endPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this.element.attr({d:e}),!0):!1},Object.defineProperty(t.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.AxisFill=An;var Ln=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new ue;return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=oe(),e.applyTheme(),e}return Object.defineProperty(t.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},t})(ne);S.registeredClasses.Grid=Ln;Dt.push({relevant:Nt.maybeXS,state:function(a,t){if(a instanceof Ln){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var Va=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Tick";var i=new ue;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(e){this.setPropertyValue("length",e,!0)},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Tick=Va;var Bh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},t})(Va);S.registeredClasses.AxisTick=Bh;var En=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._chart=new st,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(te);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=W(100),i.height=W(100),e.gridContainer=i,i.events.on("maxsizechanged",function(){e.inited&&e.invalidateAxisItems()},e,!1);var r=e.createChild(te);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=W(100),r.height=W(100),e.breakContainer=r;var n=e.createChild(te);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=W(100),n.height=W(100),e.bulletsContainer=n,e.line=e.createChild(jh),e.line.shouldClone=!1,e.line.strokeOpacity=0;var s=e.createChild(Ln);s.shouldClone=!1,e.baseGrid=s;var o=e._disposers;return o.push(s),o.push(e.line),o.push(i),o.push(r),o.push(n),o.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},set:function(e){this.setAxis(e)},enumerable:!0,configurable:!0}),t.prototype.setAxis=function(e){this._axis=e,this.baseGrid.parent=e,this.line.parent=e,this.gridContainer.bind("opacity",e)},t.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},t.prototype.updateTooltip=function(){},Object.defineProperty(t.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),t.prototype.positionItem=function(e,i){e&&e.moveTo(i)},t.prototype.positionToPoint=function(e,i){return{x:0,y:0}},t.prototype.positionToAngle=function(e){return 0},t.prototype.positionToCoordinate=function(e){var i,r=this.axis,n=r.axisFullLength;return r.renderer.inversed?i=(r.end-e)*n:i=(e-r.start)*n,i},t.prototype.updateGridContainer=function(){},t.prototype.getHeight=function(){var e=this.gridContainer;return e.parent?e.parent.pixelHeight:this.gridContainer.pixelHeight||0},t.prototype.getWidth=function(){var e=this.gridContainer;return e.parent?e.parent.pixelWidth:this.gridContainer.pixelWidth||0},t.prototype.coordinateToPosition=function(e,i){var r,n=this.axis,s=n.axisFullLength;return n.renderer.inversed?r=n.end-e/s:r=e/s+n.start,z(r,5)},t.prototype.pointToPosition=function(e){return 0},t.prototype.getPositionRangePath=function(e,i){return""},t.prototype.invalidateAxisItems=function(){var e=this.axis;e&&e.invalidateDataItems()},t.prototype.updateGridElement=function(e,i,r){},t.prototype.updateTickElement=function(e,i,r){},t.prototype.updateBullet=function(e,i,r){},t.prototype.updateLabelElement=function(e,i,r,n){},t.prototype.updateFillElement=function(e,i,r){e.startPosition=i,e.endPosition=r},t.prototype.updateAxisLine=function(){},t.prototype.updateBaseGridElement=function(){},t.prototype.updateBreakElement=function(e){this.positionItem(e.startLine,e.startPoint),this.toggleVisibility(e.startLine,e.startPosition,0,1),this.positionItem(e.endLine,e.endPoint),this.toggleVisibility(e.endLine,e.endPosition,0,1)},Object.defineProperty(t.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(e){this.setPropertyValue("minGridDistance",e)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),t.prototype.toggleVisibility=function(e,i,r,n){var s=this.axis,o=e.dataItem;o&&o instanceof Ja&&(x(o.minPosition)&&(r=o.minPosition),x(o.maxPosition)&&(n=o.maxPosition));var l=s.start+(s.end-s.start)*(r-1e-4),u=s.start+(s.end-s.start)*(n+1e-4);e.disabled||(i<l||i>u?e.__disabled=!0:e.__disabled=!1)},t.prototype.createBreakSprites=function(e){},Object.defineProperty(t.prototype,"axisFills",{get:function(){if(!this._axisFills){var e=this.createFill(this.axis);this._axisFills=new We(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new Ie(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),t.prototype.createFill=function(e){return new An(e)},Object.defineProperty(t.prototype,"grid",{get:function(){if(!this._grid){var e=this.createGrid();this._grid=new We(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new Ie(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),t.prototype.createGrid=function(){return new Ln},Object.defineProperty(t.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,e.isMeasured=!1,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new We(e),this._disposers.push(new Ie(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),t.prototype.createTick=function(){return new Bh},Object.defineProperty(t.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();this._labels=new We(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new Ie(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),t.prototype.createLabel=function(){return new jo},Object.defineProperty(t.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e)&&this.axis&&this.axis.invalidate(),e?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(e){this.setPropertyValue("opposite",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(e){this.setPropertyValue("fullWidthTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(e){this.setPropertyValue("tooltipLocation2",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(e){this.setPropertyValue("cellStartLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(e){this.setPropertyValue("cellEndLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(e){this.setPropertyValue("inversed",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(e){this.setPropertyValue("minLabelPosition",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(e){this.setPropertyValue("maxLabelPosition",e,!0)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},t.prototype.toAxisPosition=function(e){return e},t.prototype.setVisibility=function(e){a.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},t})(te);S.registeredClasses.AxisRenderer=En;var gu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight;if(e>0&&i>0){var r={x:0,y:0},n={x:e,y:0},s={x:e,y:i},o={x:0,y:i},l=Math.min(e,this.waveLength),u=Math.min(i,this.waveHeight),h=Math.min(i,this.waveLength),p=Math.min(e,this.waveHeight),d="",c="",f="",m="";this.wavedTop&&(d=$s(r,n,l,u,this.tension,!0)),this.wavedRight&&(c=$s(n,s,h,p,this.tension,!0)),this.wavedBottom&&(f=$s(s,o,l,u,this.tension,!0)),this.wavedLeft&&(m=$s(o,r,h,p,this.tension,!0)),this.path=X(r)+d+R(n)+c+R(s)+f+R(o)+m+"z"}},Object.defineProperty(t.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.setWavedSides=function(e,i,r,n){this.wavedTop=e,this.wavedRight=i,this.wavedBottom=r,this.wavedLeft=n},Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(e){this.setPropertyValue("wavedRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(e){this.setPropertyValue("wavedLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(e){this.setPropertyValue("wavedTop",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(e){this.setPropertyValue("wavedBottom",e,!0)},enumerable:!0,configurable:!0}),t})(Tn);var Ma=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(t.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){var i=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},t})(te);S.registeredClasses.AxisBullet=Ma;var Ai=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=W(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return t.prototype.setAxis=function(e){a.prototype.setAxis.call(this,e),e.layout="horizontal"},t.prototype.updateGridContainer=function(){var e=this.axis;if(e){var i=this.gridContainer;i.y=e.pixelY,i.height=e.axisLength}},t.prototype.toAxisPosition=function(e){var i=this.axis;if(i){var r=1-e,n=i.relativePositionSprite,s=i.pixelY;if(n?s=oi({x:0,y:this.pixelY},this.parent,n).y:n=i.parent,n){var o=s/n.innerHeight,l=i.axisLength/n.innerHeight;return 1-(r-o)/l}}return e},t.prototype.processRenderer=function(){a.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof xe||(e.height=W(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},t.prototype.updateTooltip=function(){var e=this.axis;if(e){var i=2e3,r=0,n=0,s=i,o=this.axisLength;this.opposite?this.inside&&(r=-i,s=i):this.inside||(r=-i,s=i),this.axis.updateTooltip("horizontal",{x:r,y:n,width:s,height:o})}},Object.defineProperty(t.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredHeight-e.pixelPaddingTop-e.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,i){return{x:0,y:this.positionToCoordinate(e)}},t.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.y,e.x)},t.prototype.coordinateToPosition=function(e,i){var r,n=this.axis,s=n.axisFullLength;return n.renderer.inversed?r=1-n.start-e/s:r=e/s+(1-n.end),z(r,5)},t.prototype.getPositionRangePath=function(e,i){var r=ee(this.positionToCoordinate(e),0,this.axisLength),n=ee(this.positionToCoordinate(i),0,this.axisLength),s=Math.abs(n-r),o=this.getWidth(),l=Math.min(r,n),u=0;return Er({x:u,y:l,width:o,height:s},!0)},t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);e.path=X({x:0,y:0})+R({x:this.getWidth(),y:0}),this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateTickElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i),s=e.length;try{this.axis.title.measuredWidth}catch{}n.x=oi({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?s*=e.inside?-1:1:s*=e.inside?1:-1,e.path=X({x:0,y:0})+R({x:s,y:0}),this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateAxisLine=function(){this.line.path=X({x:0,y:0})+R({x:0,y:this.axisLength})},t.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),r=this.axisLength,n=e.basePoint.y,s=this.baseGrid;if(n<-.2||n>r+.2)s.hide(0);else{var o=oi({x:0,y:0},this.gridContainer,s.parent).x;s.path=X({x:0,y:0})+R({x:i,y:0}),s.moveTo({x:o,y:n}),s.show(0)}},t.prototype.updateLabelElement=function(e,i,r,n){C(n)||(n=e.location),i=i+(r-i)*n,e.isMeasured=!e.inside;var s=this.positionToPoint(i),o,l=0,u=this.gridContainer.maxWidth;this.opposite?(e.inside?(o="right",e.align=="left"&&(l=-u,o="left"),e.align=="center"&&(l=-u/2,o="middle")):o="left",s.x=0+l):(e.inside?(o="left",e.align=="right"&&(l=u,o="right"),e.align=="center"&&(l=u/2,o="middle")):o="right",s.x=this.measuredWidth+l),e.rotation==0&&(e.horizontalCenter=o),this.positionItem(e,s),this.toggleVisibility(e,i,this.minLabelPosition,this.maxLabelPosition)},t.prototype.updateBreakElement=function(e){a.prototype.updateBreakElement.call(this,e);var i=e.startLine,r=e.endLine,n=e.fillShape,s=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;s.y=ee(s.y,-1,this.axisLength+1),o.y=ee(o.y,-1,this.axisLength+1),s.y==o.y&&(s.y<0||s.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(u-l);i.x=l,i.height=0,i.width=h,r.x=l,r.height=0,r.width=h,n.width=h,n.height=Math.abs(o.y-s.y),n.x=l,n.y=o.y},t.prototype.createBreakSprites=function(e){e.startLine=new fa,e.endLine=new fa;var i=new gu;i.setWavedSides(!0,!1,!0,!1),e.fillShape=i},t.prototype.positionToCoordinate=function(e){var i,r=this.axis,n=r.axisFullLength;return r.renderer.inversed?i=(e-r.start)*n:i=(r.end-e)*n,i},t.prototype.updateBullet=function(e,i,r){var n=.5;e instanceof Ma&&(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i);s.x=oi({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(e,s),this.toggleVisibility(e,i,0,1)},t})(En);S.registeredClasses.AxisRendererY=Ai;Dt.push({relevant:Nt.widthS,state:function(a,t){if(a instanceof Ai){var e=a.states.create(t);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});Dt.push({relevant:Nt.widthXS,state:function(a,t){if(a instanceof Ai){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var Bo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return Object.defineProperty(t.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),t})(In);S.registeredClasses.ValueAxisBreak=Bo;var Ds=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return Object.defineProperty(t.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(e){this.setValue("endValue",e)},enumerable:!0,configurable:!0}),t})(Ja);var $e=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return t.prototype.fillRule=function(e){var i=e.value,r=e.component;e.axisFill.disabled||(z(i/r.step/2,5)==Math.round(i/r.step/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1)},t.prototype.createDataItem=function(){return new Ds},t.prototype.createAxisBreak=function(){return new Bo},t.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(this._start!=0&&this.dispatchImmediately("startchanged"),this._end!=1&&this.dispatchImmediately("endchanged"),(this._start!=0||this._end!=1)&&this.dispatchImmediately("startendchanged")):(this._start!=0||this._end!=1)&&(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},t.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var e=this.series.getIndex(0),i=e.startIndex;if(e.dataItems.length>0){i>0&&i--;var r=e.endIndex;r<e.dataItems.length&&r++;for(var n=function(l){var u={},h={};s.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&se(d.values,function(c){var f=d.values[c].workingValue;x(f)&&(x(u[c])?u[c]+=Math.abs(f):u[c]=Math.abs(f),x(h[c])?h[c]+=f:h[c]=f)})}}),s.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&se(d.values,function(c){var f=d.values[c].workingValue;x(f)&&(d.setCalculatedValue(c,u[c],"total"),d.setCalculatedValue(c,100*f/u[c],"totalPercent"),d.setCalculatedValue(c,h[c],"sum"))})}})},s=this,o=i;o<r;++o)n(o)}}},t.prototype.validate=function(){this.axisLength<=0||(a.prototype.validate.call(this),this.getMinMax(),x(this._minAdjusted)||this.dataItems.each(function(e){e.value=null}),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},t.prototype.calculateZoom=function(){if(x(this.min)&&x(this.max)){var e=this.positionToValue(this.start),i=this.positionToValue(this.end),r=this.adjustDifference(e,i),n=this.adjustMinMax(e,i,r,this._gridCount,!0),s=gc(n.step);this._stepDecimalPlaces=s,e=z(e,s),i=z(i,s),n=this.adjustMinMax(e,i,r,this._gridCount,!0);var o=n.step;if(this.syncWithAxis){var l=this.getCache(e+"-"+i);x(l)&&(o=l)}else e=n.min,i=n.max;(this._minZoomed!=e||this._maxZoomed!=i||this._step!=o||this._dsc)&&(this._dsc=!1,this._minZoomed=e,this._maxZoomed=i,this._step=o,this.dispatchImmediately("selectionextremeschanged"))}},t.prototype.fixSmallStep=function(e){return 1+e==1?(e*=2,this.fixSmallStep(e)):e},t.prototype.validateAxisElements=function(){var e=this;if(x(this.max)&&x(this.min)){var i=this.minZoomed-this._step*2;if(!this.logarithmic)i=Math.floor(i/this._step)*this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?i=Math.pow(10,Math.log(this.min)*Math.LOG10E):(i=Math.floor(this.minZoomed/this._step)*this._step,i==0&&(i=this.minZoomed))}var n=this._maxZoomed+this._step;this.resetIterators();var s=this._dataItemsIterator;if(this._step==0)return;this._step=this.fixSmallStep(this._step);var o=0,l=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;i<=n;){var u=this.isInBreak(i);if(!u){var h=s.find(function(y){return y.value===i});h.__disabled&&(h.__disabled=!1),this.appendDataItem(h),h.axisBreak=void 0,(h.value!=i||l)&&(h.value=i,h.text=this.formatLabel(i),h.label&&h.label.invalid&&h.label.validate(),h.value>=this.min&&h.value<=this.max&&h.label&&(this.axisLetter=="Y"&&h.label.measuredWidth>this.ghostLabel.measuredWidth||this.axisLetter=="X"&&h.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=h.label.currentText,this.ghostLabel.validate())),this.validateDataElement(h)}o++;var p=i;if(!this.logarithmic)i+=this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?i=Math.pow(10,Math.log(this.min)*Math.LOG10E+o):i+=this._step}var d=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(d<1){var c=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+2;if(c=Math.min(13,c),i=z(i,c),p==i){i=n;break}}}var f=this._axisBreaks;if(f){var m=this.renderer;j(f.iterator(),function(y){if(y.breakSize>0&&Ee(y.startPoint,y.endPoint)>m.minGridDistance)for(var g=y.adjustedMin;g<=y.adjustedMax;){if(g>=y.adjustedStartValue&&g<=y.adjustedEndValue){var v=s.find(function(b){return b.value===g});v.__disabled&&(v.__disabled=!1),e.appendDataItem(v),v.axisBreak=y,v.value!=g&&(v.value=g,v.text=e.formatLabel(g),v.label&&v.label.invalid&&v.label.validate()),e.validateDataElement(v)}g+=y.adjustedStep}})}}},t.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,r=e.value,n=e.endValue,s=this.valueToPosition(r);e.position=s;var o=s,l=this.valueToPosition(r+this._step);x(n)&&(o=this.valueToPosition(n),l=o),e.point=i.positionToPoint(s);var u=e.tick;u&&!u.disabled&&i.updateTickElement(u,s,o);var h=e.grid;h&&!h.disabled&&i.updateGridElement(h,s,o);var p=e.label;p&&!p.disabled&&i.updateLabelElement(p,s,o);var d=e.axisFill;d&&!d.disabled&&(i.updateFillElement(d,s,l),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,s,o);var c=e.mask;c&&i.updateFillElement(c,s,l)},t.prototype.formatLabel=function(e){return this.adjustLabelPrecision&&e!=0?this.numberFormatter.format(e,void 0,this._stepDecimalPlaces):this.numberFormatter.format(e)},Object.defineProperty(t.prototype,"basePoint",{get:function(){var e=this.baseValue,i=this.valueToPosition(e),r=this.renderer.positionToPoint(i);return r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseValue",{get:function(){var e=this._baseValue;return this.logarithmic&&(e=this.min),this._adapterO?this._adapterO.apply("baseValue",e):e},set:function(e){this._baseValue=e,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),t.prototype.anyToPosition=function(e){return this.valueToPosition(e)},t.prototype.valueToPoint=function(e){var i=this.valueToPosition(e),r=this.renderer.positionToPoint(i),n=this.renderer.positionToAngle(i);return{x:r.x,y:r.y,angle:n}},t.prototype.anyToPoint=function(e){return this.valueToPoint(e)},t.prototype.valueToPosition=function(e){if(x(e)){var i=this.min,r=this.max;if(x(i)&&x(r)){var n=this._difference,s=this._axisBreaks;s&&s.length>0&&ii(s.iterator(),function(u){var h=u.adjustedStartValue,p=u.adjustedEndValue;if(x(h)&&x(p)){if(e<h)return!1;if(ho({start:h,end:p},{start:i,end:r})){h=Math.max(h,i),p=Math.min(p,r);var d=u.breakSize;e>p?i+=(p-h)*(1-d):e<h||(e=h+(e-h)*d)}}return!0});var o=void 0;if(!this.logarithmic)o=(e-i)/n;else{var l=this.treatZeroAs;x(l)&&e<=l&&(e=l),o=(Math.log(e)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)}return o}}return 0},t.prototype.invalidateLabels=function(){a.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each(function(e){e.value=void 0}),this.invalidate())},t.prototype.positionToValue=function(e){var i=this.min,r=this.max;if(x(i)&&x(r)){var n=r-i,s=null,o=this._axisBreaks;return o&&o.length>0&&ii(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;if(x(p)&&x(d)){if(p>r)return!1;if(ho({start:p,end:d},{start:i,end:r})){p=fe(p,i),d=Se(d,r);var c=l.breakSize;if(n-=(d-p)*(1-c),e>h)i+=(d-p)*(1-c);else if(!(e<u)){var f=(e-u)/(h-u);return s=p+f*(d-p),!1}}return!0}}),x(s)||(this.logarithmic?s=Math.pow(Math.E,(e*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):s=e*n+i),s}},t.prototype.xToValue=function(e){return this.positionToValue(this.pointToPosition({x:e,y:0}))},t.prototype.yToValue=function(e){return this.positionToValue(this.pointToPosition({x:0,y:e}))},t.prototype.pointToPosition=function(e){return this.renderer instanceof Ai?1-this.renderer.pointToPosition(e):this.renderer.pointToPosition(e)},t.prototype.animateMinMax=function(e,i){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:i}],this.rangeChangeDuration,this.rangeChangeEasing)},t.prototype.getMinMax=function(){var e=this;this.updateGridCount();var i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if((!x(this._minDefined)||!x(this._maxDefined))&&(this.series.each(function(d){if(!d.ignoreMinMax){var c=d.min(e);x(c)&&c<i&&(i=c);var f=d.max(e);x(f)&&f>r&&(r=f)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(d){if(!d.ignoreMinMax){var c=Se(d.value,d.endValue),f=fe(d.value,d.endValue);(c<i||!x(i))&&(i=c),(f>r||!x(r))&&(r=f)}})),this.logarithmic){var n=this.treatZeroAs;x(n)&&i<=0&&(i=n),i<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(i==0&&r==0&&(r=.9,i=-.9),x(this._minDefined)&&(i=this._minDefined),x(this._maxDefined)&&(r=this._maxDefined),this._adapterO&&(i=this._adapterO.apply("min",i)),this._adapterO&&(r=this._adapterO.apply("max",r)),!(!x(i)||!x(r))){this._minReal=i,this._maxReal=r,i==Number.POSITIVE_INFINITY&&(i=void 0),r==Number.NEGATIVE_INFINITY&&(r=void 0);var s=this.adjustDifference(i,r);if(i=this.fixMin(i),r=this.fixMax(r),r-i<=1/Math.pow(10,15)){if(r-i!=0)this._deltaMinMax=(r-i)/2;else{var o=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l=l/10,this._deltaMinMax=l}i-=this._deltaMinMax,r+=this._deltaMinMax}i-=(r-i)*this.extraMin,r+=(r-i)*this.extraMax;var u=this.strictMinMax;x(this._maxDefined)&&(u=!0);var h=this.adjustMinMax(i,r,s,this._gridCount,u);if(i=h.min,r=h.max,s=r-i,h=this.adjustMinMax(i,r,r-i,this._gridCount,!0),i=h.min,r=h.max,this.strictMinMax&&(x(this._minDefined)?i=this._minDefined:i=this._minReal,x(this._maxDefined)?r=this._maxDefined:r=this._maxReal,r-i<=1e-8&&(i-=this._deltaMinMax,r+=this._deltaMinMax),i-=(r-i)*this.extraMin,r+=(r-i)*this.extraMax),this._adapterO&&(i=this._adapterO.apply("min",i)),this._adapterO&&(r=this._adapterO.apply("max",r)),this._step=h.step,!x(i)&&!x(r)&&(this.start=0,this.end=1,this.renderer.labels.each(function(d){d.dataItem.text=""})),(this._minAdjusted!=i||this._maxAdjusted!=r)&&x(i)&&x(r)){var p=this._minMaxAnimation;if(this._extremesChanged&&x(this._minAdjusted)&&x(this._maxAdjusted)&&this.inited){if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==i)return;this._finalMin=i,this._finalMax=r,p=this.animateMinMax(i,r),p&&!p.isFinished()?(p.events.on("animationprogress",this.validateDataItems,this),p.events.on("animationended",function(){e.series.each(function(d){d.validate()}),e.validateDataItems(),e.handleSelectionExtremesChange()}),this._minMaxAnimation=p):this.series.each(function(d){d.invalidate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==i)return;this._minAdjusted=i,this._maxAdjusted=r,this._finalMin=i,this._finalMax=r,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged"),this._saveMinMax(i,r)}}this._extremesChanged=!1,this._difference=this.adjustDifference(i,r)}},t.prototype.fixMin=function(e){return e},t.prototype.fixMax=function(e){return e},t.prototype.adjustMinMax=function(e,i,r,n,s){n<=1&&(n=1),n=Math.round(n);var o=e,l=i;r===0&&(r=Math.abs(i));var u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u));h=h/10;var p=h;s&&(p=0),this.logarithmic?(e<=0&&(e=this.baseValue),e==1/0&&(e=1),i==-1/0&&(i=10),this.strictMinMax?(this._minDefined>0?e=this._minDefined:e=e,this._maxDefined>0&&(i=i)):(e=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),i=Math.pow(10,Math.ceil(Math.log(Math.abs(i))*Math.LOG10E)))):(s?(e=Math.floor(e/h)*h,i=Math.ceil(i/h)*h):(e=Math.ceil(e/h)*h-p,i=Math.floor(i/h)*h+p),e<0&&o>=0&&(e=0),i>0&&l<=0&&(i=0)),u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u)),h=h/10;var d=Math.ceil(r/n/h)*h,c=Math.pow(10,Math.floor(Math.log(Math.abs(d))*Math.LOG10E)),f=Math.ceil(d/c);f>5?f=10:f<=5&&f>2&&(f=5),d=Math.ceil(d/(c*f))*c*f,this.maxPrecision<Number.MAX_VALUE&&d!=Wd(d,this.maxPrecision)&&(d=Wd(d,this.maxPrecision));var m=0;if(c<1&&(m=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1,d=z(d,m)),!this.logarithmic){var y=Math.floor(e/d);e=z(d*y,m);var g=void 0;s?g=Math.floor(i/d):g=Math.ceil(i/d),g==y&&g++,i=z(d*g,m),i<l&&(i=i+d),e>o&&(e=e-d)}return{min:e,max:i,step:d}},Object.defineProperty(t.prototype,"min",{get:function(){var e=this._minAdjusted;return x(e)||(e=this._minDefined),e},set:function(e){this._minDefined!=e&&(this._minDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(e){this.setPropertyValue("extraMin",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(e){this.setPropertyValue("extraMax",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){var e=this._maxAdjusted;return x(e)||(e=this._maxDefined),e},set:function(e){this._maxDefined!=e&&(this._maxDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(e){this.setPropertyValue("adjustLabelPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.registerSeries=function(e){return new Me([a.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},t.prototype.handleSelectionExtremesChange=function(){var e=this,i,r,n=!0;if(j(this.series.iterator(),function(c){if(!c.ignoreMinMax&&!c.isHidden&&!c.outOfRange){c.visible&&!c.isHiding&&(n=!1);var f=c.selectionMin(e),m=c.selectionMax(e);x(f)&&(!x(i)||f<i)&&(i=f),x(m)&&(!x(r)||m>r)&&(r=m)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(c){if(!c.ignoreMinMax){var f=Se(c.value,c.endValue),m=fe(c.value,c.endValue);f<i&&(i=f),m>r&&(r=m)}}),x(this._minDefined)?this.strictMinMax?i=this._minDefined:i=this.min:this.strictMinMax&&(i=this._minReal),x(this._maxDefined)?this.strictMinMax?r=this._maxDefined:r=this.max:this.strictMinMax&&(r=this._maxReal),i==r){i-=this._deltaMinMax,r+=this._deltaMinMax;var s=this.adjustMinMax(i,r,0,this._gridCount,this.strictMinMax);i=s.min,r=s.max}var o=this.adjustDifference(i,r),l=this.adjustMinMax(i,r,o,this._gridCount);i=l.min,r=l.max,i-=(r-i)*this.extraMin,r+=(r-i)*this.extraMax,i=ee(i,this.min,this.max),r=ee(r,this.min,this.max),o=this.adjustDifference(i,r),l=this.adjustMinMax(i,r,o,this._gridCount,!0),i=l.min,r=l.max,this.strictMinMax&&(i=fe(i,this._minDefined),r=Se(r,this._maxDefined));var u=l.step;this.syncWithAxis&&(l=this.syncAxes(i,r,u),i=l.min,r=l.max,this.invalidate()),u=l.step,this._difference=this.adjustDifference(this.min,this.max);var h=this.valueToPosition(i),p=this.valueToPosition(r);n&&!this.syncWithAxis&&(h=0,p=1);var d=0;this.syncWithAxis?(d=5,this.setCache(i+"-"+r,u)):((this._step!=u||this._minZoomed!=i||this._maxZoomed!=r)&&(this._dsc=!0),this._step=u,this._minZoomed=i,this._maxZoomed=r),this.keepSelection||this.zoom({start:h,end:p},!1,!1,d)},Object.defineProperty(t.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(e){this.setPropertyValue("strictMinMax",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(e){this.setPropertyValue("logarithmic",e)&&(this.invalidate(),this.series.each(function(i){i.invalidateDataItems()}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(e){this.setPropertyValue("keepSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(e){this.setPropertyValue("includeRangesInMinMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(e){this.setPropertyValue("maxPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(e){this.setPropertyValue("extraTooltipPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.handleExtremesChange=function(){var e=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var i=0;this.dataItems.each(function(r){r.label&&r.label.pixelWidth>i&&(e.ghostLabel.text=r.label.currentText)})}},t.prototype.getX=function(e,i,r,n,s){return this.renderer.positionToPoint(this.getPositionX(e,i,r,n,s)).x},t.prototype.getPositionX=function(e,i,r,n,s){var o=e.getWorkingValue(i);C(n)||(n="valueX");var l=e.getValue(n,"stack");x(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return s&&(u=ee(u,s.start,s.end)),u},t.prototype.getY=function(e,i,r,n,s){return this.renderer.positionToPoint(this.getPositionY(e,i,r,n,s)).y},t.prototype.getPositionY=function(e,i,r,n,s){var o=e.getWorkingValue(i);C(n)||(n="valueY");var l=e.getValue(n,"stack");x(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return s&&(u=ee(u,s.start,s.end)),u},t.prototype.getAngle=function(e,i,r,n,s){var o=e.getWorkingValue(i),l=e.getValue(n,"stack");x(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ee(u,s.start,s.end)),this.positionToAngle(u)},t.prototype.getAnyRangePath=function(e,i,r){var n=this.valueToPosition(e),s=this.valueToPosition(i);return this.getPositionRangePath(n,s)},t.prototype.getTooltipText=function(e){var i=z(this.positionToValue(e),this._stepDecimalPlaces+this.extraTooltipPrecision),r=this.tooltip.numberFormatter.format(i);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},t.prototype.zoomToValues=function(e,i,r,n){var s=(e-this.min)/(this.max-this.min),o=(i-this.min)/(this.max-this.min);this.zoom({start:s,end:o},r,n)},Object.defineProperty(t.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:fe(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:Se(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),t.prototype.fixAxisBreaks=function(){var e=this;a.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each(function(r){var n=r.adjustedStartValue,s=r.adjustedEndValue,o=s-n,l=Math.ceil(o*r.breakSize)*e._gridCount/(e.max-e.min),u=e.adjustMinMax(n,s,o,l,!0);r.adjustedStep=u.step,r.adjustedMin=u.min,r.adjustedMax=u.max}),this._difference=this.adjustDifference(this.min,this.max)},t.prototype.getPositionLabel=function(e){var i=this.positionToValue(e);return this.numberFormatter.format(i)},t.prototype.showTooltipAt=function(e){this.showTooltipAtPosition(this.valueToPosition(e))},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(t.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(e){var i=this;this.setPropertyValue("syncWithAxis",e,!0)&&e&&(this._disposers.push(e.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",function(){i.clearCache(),i._disposers.push(S.events.once("exitframe",function(){i.handleSelectionExtremesChange()}))},this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(e){this.setPropertyValue("treatZeroAs",e,!0)},enumerable:!0,configurable:!0}),t.prototype.syncAxes=function(e,i,r){var n=this.syncWithAxis;if(n){x(e)||(e=this.min),x(i)||(i=this.max),x(r)||(r=this._step);var s=Math.round((n.maxZoomed-n.minZoomed)/n.step),o=Math.round((i-e)/r);if(x(s)&&x(o))for(var l=!1,u=0,h=(i-e)*.01,p=e,d=i,c=r;l!=!0;)if(l=this.checkSync(p,d,c,s),u++,u>1e3&&(l=!0),l)e=p,i=d,r=c;else{u/3==Math.round(u/3)?(p=e-h*u,e>=0&&p<0&&(p=0)):(d=i+h*u,d<=0&&d>0&&(d=0));var f=this.adjustMinMax(p,d,d-p,this._gridCount,!0);p=f.min,d=f.max,c=f.step}}return{min:e,max:i,step:r}},t.prototype.checkSync=function(e,i,r,n){for(var s=(i-e)/r,o=1;o<n;o++)if(z(s/o,1)==n||s*o==n)return!0;return!1},t.prototype.processConfig=function(e){e&&C(e.syncWithAxis)&&ye(e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),a.prototype.processConfig.call(this,e)},t.prototype._saveMinMax=function(e,i){},t})(Os);S.registeredClasses.ValueAxis=$e;S.registeredClasses.ValueAxisDataItem=Ds;var Wh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return Object.defineProperty(t.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(e){this.setPropertyValue("startDate",e)&&(this.startValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(e){this.setPropertyValue("endDate",e)&&(this.endValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),t})(Bo);S.registeredClasses.DateAxisBreak=Wh;var tf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return Object.defineProperty(t.prototype,"date",{get:function(){return this.dates.date},set:function(e){this.setDate("date",e),this.value=e.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(e){this.setDate("endDate",e),this.endValue=e.getTime()},enumerable:!0,configurable:!0}),t})(Ds);var ft=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new we,e.groupIntervals=new we,e.dateFormats=new Ve,e.periodChangeDateFormats=new Ve,e._baseIntervalReal={timeUnit:"day",count:1},e._prevSeriesTime={},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e._intervalMax={},e._intervalMin={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.setPropertyValue("groupData",!1),e.groupCount=200,e.events.on("parentset",e.getDFFormatter,e,!1),e.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),e.groupIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}]),e.axisFieldName="date",e.applyTheme(),e}return t.prototype.fillRule=function(e){var i=e.value,r=e.component,n=r._gridInterval,s=Wt(n.timeUnit,n.count);Math.round((i-r.min)/s)/2==Math.round(Math.round((i-r.min)/s)/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},t.prototype.createDataItem=function(){return new tf},t.prototype.createAxisBreak=function(){return new Wh},t.prototype.validateDataItems=function(){var e=this.start,i=this.end,r=this.baseDuration,n=(this.max-this.min)/r;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),a.prototype.validateDataItems.call(this);var s=Wt(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/s),this._deltaMinMax=this.baseDuration/2;var o=(this.max-this.min)/r;e=e+(i-e)*(1-n/o),this.zoom({start:e,end:i},!1,!0)},t.prototype.handleSelectionExtremesChange=function(){},t.prototype.getIntervalMax=function(e){return this._intervalMax[e.timeUnit+e.count]},t.prototype.getIntervalMin=function(e){return this._intervalMin[e.timeUnit+e.count]},t.prototype.calculateZoom=function(){var e=this;a.prototype.calculateZoom.call(this);var i=this.adjustDifference(this._minZoomed,this._maxZoomed),r=!1;if(this.groupData&&C(i)){var n=this.mainBaseInterval,s=this.getIntervalMin(n),o=this.getIntervalMax(n),l=s+(o-s)*this.start,u=s+(o-s)*this.end,h=this.adjustDifference(l,u),p=h+(this.startLocation+(1-this.endLocation))*this.baseDuration,d=void 0;this.groupInterval?d=Lr({},this.groupInterval):(d=this.chooseInterval(0,p,this.groupCount,this.groupIntervals),Wt(d.timeUnit,d.count)<Wt(n.timeUnit,n.count)&&(d=Lr({},n))),this._groupInterval=d;var c=d.timeUnit+d.count;this._currentDataSetId!=c&&(this._currentDataSetId=c,this.dispatch("groupperiodchanged")),this.series.each(function(m){m.baseAxis==e&&m.setDataSet(e._currentDataSetId)&&(r=!0)})}var f=this.chooseInterval(0,i,this._gridCount);Wt(f.timeUnit,f.count)<this.baseDuration&&(f=Lr({},this.baseInterval)),this._gridInterval=f,this._nextGridUnit=Ic(f.timeUnit),this._intervalDuration=Wt(f.timeUnit,f.count),this._gridDate=ri(new Date(this.minZoomed-Wt(f.timeUnit,f.count)),f.timeUnit,f.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),j(this.series.iterator(),function(m){if(m.baseAxis==e){var y=m.getAxisField(e),g=ri(new Date(e._minZoomed+e.baseDuration*.05),e.baseInterval.timeUnit,e.baseInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone).getTime(),v=g.toString(),b=m.dataItemsByAxis.getKey(e.uid).getKey(v+m.currentDataSetId),P=0;e.start!=0&&(b?(b=e.findFirst(b,g,y),P=b.index):P=m.dataItems.findClosestIndex(e._minZoomed,function(N){return N[y]},"left"));var w=e.baseInterval,T=$i(ri(new Date(e._maxZoomed),w.timeUnit,w.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone),w.timeUnit,w.count,e._df.utc).getTime(),F=T.toString(),D=m.dataItemsByAxis.getKey(e.uid).getKey(F+m.currentDataSetId),O=m.dataItems.length;e.end!=1&&(D?O=D.index:(T-=1,O=m.dataItems.findClosestIndex(T,function(N){return N[y]},"right"),O++)),m.max(e)<g?(m.startIndex=m.dataItems.length,m.endIndex=m.dataItems.length,m.outOfRange=!0):m.min(e)>T?(m.startIndex=0,m.endIndex=0,m.outOfRange=!0):(m.outOfRange=!1,m.startIndex=P,m.endIndex=O),!r&&m.dataRangeInvalid&&m.validateDataRange()}})},t.prototype.findFirst=function(e,i,r){var n=e.index;if(n>0){var s=e.component,o=s.dataItems.getIndex(n-1),l=o[r];return!l||l.getTime()<i?e:this.findFirst(o,i,r)}else return e},t.prototype.validateData=function(){a.prototype.validateData.call(this),x(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(t.prototype,"minDifference",{get:function(){var e=this,i=Number.MAX_VALUE;return this.series.each(function(r){i>e._minDifference[r.uid]&&(i=e._minDifference[r.uid])}),(i==Number.MAX_VALUE||i==0)&&(i=Wt("day")),i},enumerable:!0,configurable:!0}),t.prototype.seriesDataChangeUpdate=function(e){this._minDifference[e.uid]=Number.MAX_VALUE},t.prototype.postProcessSeriesDataItems=function(e){var i=this;this._firstWeekDay=this.getFirstWeekDay(),e?this.seriesGroupUpdate(e):this.series.each(function(r){i.seriesGroupUpdate(r)}),this.addEmptyUnitsBreaks()},t.prototype.seriesGroupUpdate=function(e){var i=this;JSON.stringify(e._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(e._baseInterval[this.uid]=this.mainBaseInterval,e.mainDataSet.each(function(r){i.postProcessSeriesDataItem(r)}),this.groupData&&this.groupSeriesData(e))},t.prototype.groupSeriesData=function(e){var i=this;if(e.baseAxis==this&&e.dataItems.length>0&&!e.dataGrouped){e.bulletsContainer.removeChildren();var r=[],n=this.mainBaseInterval,s=Wt(n.timeUnit,n.count);this.groupIntervals.each(function(o){var l=Wt(o.timeUnit,o.count);(l>s&&l<i.max-i.min||i.groupInterval)&&r.push(o)}),e._dataSets&&(e._dataSets.each(function(o,l){l.each(function(u){u.dispose()}),l.clear()}),e._dataSets.clear()),e.dataGrouped=!0,K(r,function(o){var l="date"+i.axisLetter,u=o.timeUnit+o.count,h=new _n(e.mainDataSet.template.clone());e.dataSets.setKey(u,h);var p=e.mainDataSet,d=Number.NEGATIVE_INFINITY,c=0,f,m=[];se(e.dataFields,function(g,v){var b=g;b!=l&&b.indexOf("Show")==-1&&m.push(b)});var y;p.each(function(g){var v=g.getDate(l);if(v){var b=v.getTime();y=ri(new Date(b),o.timeUnit,o.count,i._df.firstDayOfWeek,i._df.utc,void 0,i._df.timezoneMinutes,i._df.timezone);var P=y.getTime();d<P?(f&&e._adapterO&&K(m,function(w){f.values[w].value=e._adapterO.apply("groupDataItem",{dataItem:f,interval:o,dataField:w,date:y,value:f.values[w].value}).value,f.values[w].workingValue=f.values[w].value}),f=h.create(),f.dataContext={},f.setWorkingLocation("dateX",e.dataItems.template.locations.dateX,0),f.setWorkingLocation("openDateX",e.dataItems.template.locations.openDateX,0),f.setWorkingLocation("dateY",e.dataItems.template.locations.dateY,0),f.setWorkingLocation("openDateY",e.dataItems.template.locations.openDateY,0),f.component=e,f.setDate(l,y),f._index=c,c++,K(m,function(w){var T=g.values[w];if(T){var F=T.value;e._adapterO&&(F=e._adapterO.apply("groupValue",{dataItem:g,interval:o,dataField:w,date:y,value:F}).value);var D=f.values[w];x(F)?(D.value=F,D.workingValue=F,D.open=F,D.close=F,D.low=F,D.high=F,D.sum=F,D.average=F,D.count=1):D.count=0}}),i.postProcessSeriesDataItem(f,o),se(e.propertyFields,function(w,T){var F=w,D=g.properties[w];C(D)&&(f.hasProperties=!0,f.setProperty(F,D))}),f.groupDataItems=[g],d=P):f&&(K(m,function(w){var T=e.groupFields[w],F=g.values[w];if(F){var D=F.value;if(e._adapterO&&(D=e._adapterO.apply("groupValue",{dataItem:g,interval:o,dataField:w,date:y,value:D}).value),x(D)){var O=f.values[w];x(O.open)||(O.open=D),O.close=D,(O.low>D||!x(O.low))&&(O.low=D),(O.high<D||!x(O.high))&&(O.high=D),x(O.sum)?O.sum+=D:O.sum=D,O.count++,O.average=O.sum/O.count,x(O[T])&&(O.value=O[T],O.workingValue=O.value)}}}),Hi(g.properties,f.properties),se(e.propertyFields,function(w,T){var F=w,D=g.properties[w];C(D)&&(f.hasProperties=!0,f.setProperty(F,D))}),f.groupDataItems.push(g))}f&&Hi(g.dataContext,f.dataContext)}),f&&e._adapterO&&K(m,function(g){f.values[g].value=e._adapterO.apply("groupDataItem",{dataItem:f,interval:o,dataField:g,date:y,value:f.values[g].value}).value,f.values[g].workingValue=f.values[g].value})}),this.calculateZoom()}},t.prototype.getDFFormatter=function(){this._df=this.dateFormatter},t.prototype.postProcessSeriesDataItem=function(e,i){var r=this,n="";i?n=i.timeUnit+i.count:i=this.mainBaseInterval;var s=e.component,o=s.dataItemsByAxis.getKey(this.uid);se(e.dates,function(l){var u=e.getDate(l),h=u.getTime(),p=ri(new Date(h),i.timeUnit,i.count,r._firstWeekDay,r._df.utc,void 0,r._df.timezoneMinutes,r._df.timezone),d=p.getTime(),c=$i(new Date(d),i.timeUnit,i.count,r._df.utc);e.setCalculatedValue(l,d,"open"),e.setCalculatedValue(l,c.getTime(),"close"),o.setKey(d+n,e)})},t.prototype.addEmptyUnitsBreaks=function(){var e=this;if(this.skipEmptyPeriods&&x(this.min)&&x(this.max)){var i=this.baseInterval.timeUnit,r=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var n=ri(new Date(this.min),i,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),s=void 0,o=function(){$i(n,i,r,l._df.utc);var u=n.getTime(),h=u.toString(),p=vo(l.series.iterator(),function(d){return!!d.dataItemsByAxis.getKey(e.uid).getKey(h+d.currentDataSetId)});p?s&&(s.endDate=new Date(u-1),s=void 0):s||(s=l.axisBreaks.create(),s.startDate=new Date(u),l._gapBreaks=!0)},l=this;n.getTime()<this.max-this.baseDuration;)o()}},t.prototype.fixAxisBreaks=function(){var e=this;a.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each(function(r){var n=Math.ceil(e._gridCount*(Math.min(e.end,r.endPosition)-Math.max(e.start,r.startPosition))/(e.end-e.start));r.gridInterval=e.chooseInterval(0,r.adjustedEndValue-r.adjustedStartValue,n);var s=ri(new Date(r.adjustedStartValue),r.gridInterval.timeUnit,r.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);s.getTime()>r.startDate.getTime()&&$i(s,r.gridInterval.timeUnit,r.gridInterval.count,e._df.utc),r.gridDate=s})},t.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},t.prototype.getGridDate=function(e,i){var r=this._gridInterval.timeUnit,n=this._gridInterval.count;ri(e,r,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var s=e.getTime(),o=Cs(e),l=$i(o,r,i,this._df.utc).getTime(),u=this.isInBreak(l);u&&u.endDate&&(o=new Date(u.endDate.getTime()),ri(o,r,n,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o.getTime()<u.endDate.getTime()&&$i(o,r,n,this._df.utc),l=o.getTime());var h=this.adjustDifference(s,l),p=Math.round(h/Wt(r));return p<n?this.getGridDate(e,i+n):o},t.prototype.getBreaklessDate=function(e,i,r){var n=new Date(e.endValue);ri(n,i,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),$i(n,i,r,this._df.utc);var s=n.getTime();return e=this.isInBreak(s),e?this.getBreaklessDate(e,i,r):n},t.prototype.validateAxisElements=function(){var e=this;if(x(this.max)&&x(this.min)){this.calculateZoom();var i=this._gridDate.getTime(),r=this._gridInterval.timeUnit,n=this._gridInterval.count,s=Cs(this._gridDate),o=this._dataItemsIterator;this.resetIterators();for(var l=function(){var p=u.getGridDate(Cs(s),n);i=p.getTime();var d=Cs(p);d=$i(d,r,n,u._df.utc);var c=u.dateFormats.getKey(r);u.markUnitChange&&s&&Oh(p,s,u._nextGridUnit,u._df.utc)&&r!=="year"&&(c=u.periodChangeDateFormats.getKey(r));var f=u._df.format(p,c),m=o.find(function(y){return y.text===f});m.__disabled&&(m.__disabled=!1),u.appendDataItem(m),m.axisBreak=void 0,m.date=p,m.endDate=d,m.text=f,u.validateDataElement(m),s=p},u=this;i<=this._maxZoomed;)l();var h=this.renderer;this._axisBreaks&&j(this._axisBreaks.iterator(),function(p){if(p.breakSize>0){var d=p.gridInterval.timeUnit,c=p.gridInterval.count;if(Ee(p.startPoint,p.endPoint)>h.minGridDistance*4)for(var f=p.gridDate.getTime(),m,y=0,g=function(){var v=Cs(p.gridDate);if(f=$i(v,d,c*y,e._df.utc).getTime(),y++,f>p.adjustedStartValue&&f<p.adjustedEndValue){var b=Cs(v);b=$i(b,d,c,e._df.utc);var P=e.dateFormats.getKey(d);e.markUnitChange&&m&&Oh(v,m,e._nextGridUnit,e._df.utc)&&d!=="year"&&(P=e.periodChangeDateFormats.getKey(d));var w=e._df.format(v,P),T=o.find(function(F){return F.text===w});T.__disabled&&(T.__disabled=!1),e.appendDataItem(T),T.axisBreak=p,p.dataItems.moveValue(T),T.date=v,T.endDate=b,T.text=w,m=v,e.validateDataElement(T)}};f<=p.adjustedMax;)g()}})}},t.prototype.validateDataElement=function(e){if(e.itemIndex=this._axisItemCount,this._axisItemCount++,x(this.max)&&x(this.min)){var i=this.renderer,r=e.value,n=e.endValue;x(n)||(n=r);var s=this.valueToPosition(r),o=this.valueToPosition(n),l=o;!e.isRange&&this._gridInterval.count>this.baseInterval.count&&(o=s+(o-s)/(this._gridInterval.count/this.baseInterval.count)),e.position=s;var u=e.tick;u&&!u.disabled&&i.updateTickElement(u,s,o);var h=e.grid;h&&!h.disabled&&i.updateGridElement(h,s,o);var p=e.axisFill;p&&!p.disabled&&(i.updateFillElement(p,s,l),e.isRange||this.fillRule(e));var d=e.mask;d&&i.updateFillElement(d,s,o),e.bullet&&i.updateBullet(e.bullet,s,o);var c=e.label;if(c&&!c.disabled){var f=c.location;f==0&&(this._gridInterval.count==1&&this._gridInterval.timeUnit!="week"&&!e.isRange?f=.5:f=0),i.updateLabelElement(c,s,o,f)}}},Object.defineProperty(t.prototype,"baseDuration",{get:function(){return Wt(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),t.prototype.adjustMinMax=function(e,i){return{min:e,max:i,step:this.baseDuration}},t.prototype.fixMin=function(e){var i=this.baseInterval,r=ri(new Date(e),i.timeUnit,i.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=$i(new Date(r),i.timeUnit,i.count,this._df.utc).getTime();return r+(n-r)*this.startLocation},t.prototype.fixMax=function(e){var i=this.baseInterval,r=ri(new Date(e),i.timeUnit,i.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=$i(new Date(r),i.timeUnit,i.count,this._df.utc).getTime();return r+(n-r)*this.endLocation},t.prototype.chooseInterval=function(e,i,r,n){n||(n=this.gridIntervals);var s=n.getIndex(e),o=Wt(s.timeUnit,s.count),l=n.length-1;if(e>=l)return Lr({},n.getIndex(l));var u=Math.ceil(i/o);return i<o&&e>0?Lr({},n.getIndex(e-1)):u<=r?Lr({},n.getIndex(e)):e+1<n.length?this.chooseInterval(e+1,i,r,n):Lr({},n.getIndex(e))},t.prototype.formatLabel=function(e){return this._df.format(e)},t.prototype.dateToPosition=function(e){return this.valueToPosition(e.getTime())},t.prototype.anyToPosition=function(e){return e instanceof Date?this.dateToPosition(e):this.valueToPosition(e)},t.prototype.dateToPoint=function(e){var i=this.dateToPosition(e),r=this.renderer.positionToPoint(i),n=this.renderer.positionToAngle(i);return{x:r.x,y:r.y,angle:n}},t.prototype.anyToPoint=function(e){return e instanceof Date?this.dateToPoint(e):this.valueToPoint(e)},t.prototype.positionToDate=function(e){return new Date(this.positionToValue(e))},t.prototype.getPositionX=function(e,i,r,n,s){var o=this.getTimeByLocation(e,i,r);x(o)||(o=this.baseValue);var l=this.valueToPosition(o);return s&&(l=ee(l,s.start,s.end)),l},t.prototype.getPositionY=function(e,i,r,n,s){var o=this.getTimeByLocation(e,i,r),l=e.getValue("valueX","stack");x(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ee(u,s.start,s.end)),u},t.prototype.getAngle=function(e,i,r,n,s){var o=this.getTimeByLocation(e,i,r),l=e.getValue(n,"stack");x(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ee(u,s.start,s.end)),this.positionToAngle(u)},t.prototype.getTimeByLocation=function(e,i,r){if(C(i)){x(r)||(r=e.workingLocations[i],x(r)||(r=0));var n=e.values[i].open,s=e.values[i].close,o=e.values[i].workingValue,l=e.values[i].value,u=l-o;if(n-=u,s-=u,x(n)&&x(s))return n+(s-n)*r}},t.prototype.processSeriesDataItem=function(e,i){var r=e.component,n,s=e["date"+i];if(x(this.timezoneOffset)?(s.setTime(s.getTime()+(s.getTimezoneOffset()-this.timezoneOffset)*6e4),e.setValue("date"+i,s.getTime(),0)):C(this.timezone)&&(s=ko(s,this.timezone),e.setValue("date"+i,s.getTime(),0),e["date"+i]=s),s)n=s.getTime();else return;var o=e["openDate"+i],l=this._prevSeriesTime[r.uid],u;if(o&&(u=o.getTime()),x(u)){var h=Math.abs(n-u);this._minDifference[r.uid]>h&&(this._minDifference[r.uid]=h)}var p=n-l;p>0&&this._minDifference[r.uid]>p&&(this._minDifference[r.uid]=p),this._prevSeriesTime[r.uid]=n,r._baseInterval[this.uid]&&this.postProcessSeriesDataItem(e)},t.prototype.updateAxisBySeries=function(){a.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=Wt("day",27)&&e.timeUnit=="week"&&(e.timeUnit="month",e.count=1),e.timeUnit=="month"&&(this.minDifference>=Wt("day",58)&&e.count==1&&(e.count=2),this.minDifference>=Wt("day",87)&&e.count==2&&(e.count=3),this.minDifference>=Wt("day",174)&&e.count==5&&(e.count=6)),this.minDifference>=Wt("hour",23)&&e.timeUnit=="hour"&&(e.timeUnit="day",e.count=1),this.minDifference>=Wt("week",1)-Wt("hour",1)&&e.timeUnit=="day"&&(e.timeUnit="week",e.count=1),this.minDifference>=Wt("year",1)-Wt("day",1.01)&&e.timeUnit=="month"&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(t.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(e){JSON.stringify(this._baseInterval)!=JSON.stringify(e)&&(this._baseInterval=e,this._mainBaseInterval=e,x(e.count)||(e.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(e){if(e){var i=this.axisBreaks.template;i.startLine.disabled=!0,i.endLine.disabled=!0,i.fillShape.disabled=!0,i.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",e)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(e){this.setPropertyValue("tooltipDateFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(e){this.setPropertyValue("markUnitChange",e)&&this.invalidateData()},enumerable:!0,configurable:!0}),t.prototype.getTooltipText=function(e){var i,r=this.positionToDate(e);if(r=ri(r,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=r,C(this.tooltipDateFormat))i=this._df.format(r,this.tooltipDateFormat,["day","month","week","year"].indexOf(this.baseInterval.timeUnit)==-1);else{var n=this.dateFormats.getKey(this.baseInterval.timeUnit);n?i=this._df.format(r,n):i=this.getPositionLabel(e)}return this._adapterO?this._adapterO.apply("getTooltipText",i):i},t.prototype.roundPosition=function(e,i,r){var n=this.baseInterval,s=n.timeUnit,o=n.count,l=this.positionToDate(e);if(ri(l,s,o,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),i>0&&$i(l,s,i*o,this._df.utc),r>0&&r<1&&l.setTime(l.getTime()+this.baseDuration*r),this.isInBreak(l.getTime()))for(;l.getTime()<this.max&&($i(l,s,o,this._df.utc),!!this.isInBreak(l.getTime())););return this.dateToPosition(l)},t.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},t.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},t.prototype.getSeriesDataItem=function(e,i,r){var n=this.positionToValue(i),s=.5;this.axisLetter=="Y"?s=e.dataItems.template.locations.dateY:s=e.dataItems.template.locations.dateX;var o=n-s*this.baseDuration,l=ri(new Date(n),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),u=ri(new Date(n+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);u.getTime()>l.getTime()&&Math.abs(u.getTime()-o)<Math.abs(o-l.getTime())&&(l=u);var h=e.dataItemsByAxis.getKey(this.uid),p=h.getKey(l.getTime()+e.currentDataSetId);if(!p&&r){var d;this.axisLetter=="Y"?d="dateY":d="dateX",p=e.dataItems.getIndex(e.dataItems.findClosestIndex(l.getTime(),function(c){return c[d]?c[d].getTime():-1/0},"any"))}return p},t.prototype.getPositionLabel=function(e){var i=this.positionToDate(e);return this._df.format(i,this.getCurrentLabelFormat())},t.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},t.prototype.initRenderer=function(){a.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(t.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),t.prototype.animateMinMax=function(e,i){var r=this,n=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:i}],this.rangeChangeDuration,this.rangeChangeEasing);return n.events.on("animationprogress",function(){r.dispatch("extremeschanged")}),n},t.prototype.handleExtremesChange=function(){if(a.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this._finalMin,this.groupMax[e]=this._finalMax}},t.prototype.zoomToDates=function(e,i,r,n,s){e=this._df.parse(e),i=this._df.parse(i),this.zoomToValues(e.getTime(),i.getTime(),r,n,s)},t.prototype.zoomToValues=function(e,i,r,n,s){var o=this;if(this.groupData){var h=this.adjustDifference(e,i),p=!1;i==this.max&&(p=!0);var d=!1;if(e==this.min&&(d=!0),C(h)){var c=this.mainBaseInterval,f=this.chooseInterval(0,h,this.groupCount,this.groupIntervals);(f.timeUnit==c.timeUnit&&f.count<c.count||Wt(f.timeUnit,1)<Wt(c.timeUnit,1))&&(f=Lr({},c));var m=f.timeUnit+f.count,y=this.groupMin[m],g=this.groupMax[m];(!x(y)||!x(g))&&(y=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,this.series.each(function(P){var w=P.min(o),T=P.max(o);if(P._dataSets){var F=P._dataSets.getKey(f.timeUnit+f.count);if(F){var D=F.getIndex(0),O=F.getIndex(F.length-1);D&&(P.xAxis==o?w=D.dateX.getTime():P.yAxis==o&&(w=D.dateY.getTime())),O&&(P.xAxis==o?T=O.dateX.getTime():P.yAxis==o&&(T=O.dateY.getTime()))}}T=ri($i(new Date(T),f.timeUnit,1,o._df.utc),f.timeUnit,1,o._df.firstDayOfWeek,o._df.utc,void 0,o._df.timezoneMinutes,o._df.timezone).getTime(),w<y&&(y=w),T>g&&(g=T)}),this.groupMin[m]=y,this.groupMax[m]=g),e=ee(e,y,g),i=ee(i,y,g),s&&(p&&(e=i-h,e=ee(e,y,g)),d&&(i=e+h,i=ee(i,y,g)));var l=(e-y)/(g-y),u=(i-y)/(g-y);this.zoom({start:l,end:u},r,n)}}else{var l=this.valueToPosition(e),u=this.valueToPosition(i);this.zoom({start:l,end:u},r,n)}},t.prototype.asIs=function(e){return e=="baseInterval"||a.prototype.asIs.call(this,e)},t.prototype.copyFrom=function(e){var i=this;a.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each(function(r){i.groupIntervals.push(Lr({},r))}),this.gridIntervals.clear(),e.gridIntervals.each(function(r){i.gridIntervals.push(Lr({},r))}),e._baseInterval&&(this.baseInterval=e._baseInterval)},t.prototype.showTooltipAtPosition=function(e,i){var r=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var n=this.positionToDate(e),s=n.getTime(),o;if(this.series.each(function(h){if(h.baseAxis==r){var p=r.getSeriesDataItem(h,e,!0);if(p){var d=void 0;h.xAxis==r&&(d=p.dateX),h.yAxis==r&&(d=p.dateY),o?Math.abs(o.getTime()-s)>Math.abs(d.getTime()-s)&&(o=d):o=d}}}),o){var l=o.getTime();o=ri(new Date(l),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),l=o.getTime();var u=this.renderer.tooltipLocation;u==0&&(u=1e-4),o=new Date(o.getTime()+this.baseDuration*u),e=this.dateToPosition(o),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each(function(h){var p=h.dataItemsByAxis.getKey(r.uid).getKey(l+h.currentDataSetId),d=h.showTooltipAtDataItem(p);d?r.chart._seriesPoints.push({series:h,point:d}):(h.tooltipText||h.tooltipHTML)&&h.hideTooltip()})}}a.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(t.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(e){var i=this;this.setPropertyValue("groupData",e)&&(this.series.each(function(r){r.setDataSet(""),e&&!r.dataGrouped&&r.inited&&(r._baseInterval[i.uid]=i.mainBaseInterval,i.groupSeriesData(r))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(e){this.setPropertyValue("groupInterval",e)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(e){this.setPropertyValue("groupCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(e){this.setPropertyValue("timezoneOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(e){this.setPropertyValue("timezone",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),t.prototype.makeGap=function(e,i){var r=e.component;if(e&&i&&!r.connect&&x(r.autoGapCount)&&r.baseAxis==this){var n=e.dates["date"+this.axisLetter],s=i.dates["date"+this.axisLetter];if(n&&s){var o=n.getTime(),l=s.getTime();if(o-l>r.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(t.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),t.prototype._saveMinMax=function(e,i){var r=this.groupInterval;r||(r=this.mainBaseInterval);var n=r.timeUnit+r.count;this._intervalMin[n]=e,this._intervalMax[n]=i},t})($e);S.registeredClasses.DateAxis=ft;S.registeredClasses.DateAxisDataItem=tf;var xr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=W(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return t.prototype.setAxis=function(e){a.prototype.setAxis.call(this,e),e.layout="vertical"},t.prototype.updateGridContainer=function(){var e=this.axis;if(e){var i=this.gridContainer;i.x=e.pixelX,i.width=e.axisLength}},t.prototype.processRenderer=function(){a.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof xe||(e.width=W(100)),this.line;var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},t.prototype.updateTooltip=function(){var e=this.axis;if(e){var i=1e3,r=this.line.pixelX,n=this.line.pixelY,s=this.axisLength,o=i;this.opposite?this.inside||(n=-i,o=i):this.inside&&(n=-i,o=i),this.axis.updateTooltip("vertical",{x:r,y:n,width:s,height:o})}},t.prototype.updateLabelElement=function(e,i,r,n){C(n)||(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i);e.isMeasured=!e.inside;var o=0,l,u=this.gridContainer.maxHeight;this.opposite?(e.inside?(l="top",e.valign=="bottom"&&(o=u,l="bottom"),e.valign=="middle"&&(o=u/2,l="middle")):l="bottom",s.y=o):(e.inside?(l="bottom",e.valign=="top"&&(o=-u,l="top"),e.valign=="middle"&&(o=-u/2,l="middle")):l="top",s.y+=o),e.rotation==0&&(e.verticalCenter=l),this.positionItem(e,s),this.toggleVisibility(e,i,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(t.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredWidth-e.pixelPaddingRight-e.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,i){return{x:this.positionToCoordinate(e),y:0}},t.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.x,e.y)},t.prototype.getPositionRangePath=function(e,i){var r=ee(this.positionToCoordinate(e),0,this.axisLength),n=ee(this.positionToCoordinate(i),0,this.axisLength),s=Math.abs(n-r),o=this.getHeight(),l=Math.min(r,n),u=0;return Er({x:l,y:u,width:s,height:o},!0)},t.prototype.updateBreakElement=function(e){a.prototype.updateBreakElement.call(this,e);var i=e.startLine,r=e.endLine,n=e.fillShape,s=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;s.x=ee(s.x,-1,this.axisLength+1),o.x=ee(o.x,-1,this.axisLength+1),s.x==o.x&&(s.x<0||s.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=l,i.width=0,i.height=u,r.y=l,r.width=0,r.height=u,n.height=u,n.width=Math.abs(o.x-s.x),n.y=l,n.x=s.x},t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);e.path=X({x:0,y:0})+R({x:0,y:this.getHeight()}),this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateTickElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i),s=e.length;n.y=oi({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?s*=e.inside?1:-1:s*=e.inside?-1:1,e.path=X({x:0,y:0})+R({x:0,y:s}),this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateAxisLine=function(){this.line.path=X({x:0,y:0})+R({x:this.axisLength,y:0})},t.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),r=this.axisLength,n=this.baseGrid,s=e.basePoint.x;if(s<-.2||s>r+.2)n.hide(0);else{var o=oi({x:0,y:0},this.gridContainer,n.parent).y;n.path=X({x:0,y:0})+R({x:0,y:i}),n.moveTo({x:s,y:o}),n.show(0)}},t.prototype.createBreakSprites=function(e){e.startLine=new fa,e.endLine=new fa;var i=new gu;i.setWavedSides(!1,!0,!1,!0),e.fillShape=i},t.prototype.toAxisPosition=function(e){var i=e,r=this.axis;if(r){var n=r.relativePositionSprite,s=r.pixelX;if(n?s=oi({x:this.pixelX,y:0},this.parent,n).x:n=r.parent,n){var o=s/n.innerWidth,l=r.axisLength/n.innerWidth;return(i-o)/l}}return e},t.prototype.updateBullet=function(e,i,r){var n=.5;e instanceof Ma&&(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i);s.y=oi({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(e,s),this.toggleVisibility(e,i,0,1)},t})(En);S.registeredClasses.AxisRendererX=xr;Dt.push({relevant:Nt.heightXS,state:function(a,t){if(a instanceof xr){var e=a.states.create(t);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});Dt.push({relevant:Nt.heightXXS,state:function(a,t){if(a instanceof xr){var e=a.states.create(t);return e.properties.disabled=!0,e}return null}});var qh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(e){this.setPropertyValue("startCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(e){this.setPropertyValue("endCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startValue",{get:function(){var e=this.getPropertyValue("startCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endValue",{get:function(){var e=this.getPropertyValue("endCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),t})(In);S.registeredClasses.CategoryAxisBreak=qh;var rf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(e){var i=this.properties.category;this.setProperty("category",e),C(i)&&i!=e&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(e){this.setProperty("endCategory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(e){e!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",e),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),t})(Ja);var $t=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.dataItemsByCategory=new Ve,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var i=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",function(r){i.removeKey(r.oldValue.category)})),e}return t.prototype.createDataItem=function(){return new rf},t.prototype.createAxisBreak=function(){return new qh},t.prototype.processSeriesDataItem=function(e,i){a.prototype.processSeriesDataItem.call(this,e,i);var r=e["category"+this.axisLetter];if(C(r)){var n=this.dataItemsByCategory.getKey(r);if(n){var s=e.component.uid,o=n.seriesDataItems[s];o||(o=[],n.seriesDataItems[s]=o),o.push(e)}}else e.component.dataItems.remove(e)},t.prototype.validateDataRange=function(){var e=this;a.prototype.validateDataRange.call(this),j(this._series.iterator(),function(i){if(i.xAxis instanceof t&&i.yAxis instanceof t)i.invalidateDataRange();else{var r=e.positionToIndex(e.start),n=e.positionToIndex(e.end);n>=e.dataItems.length&&n--;for(var s=i.uid,o=void 0,l=void 0,u=r;u<=n;u++){var h=e.dataItems.getIndex(u);if(h){var p=h.seriesDataItems[s];if(p)for(var d=0;d<p.length;d++){var c=p[d];if(c){var f=c.index;(!x(o)||f<o)&&(o=f),(!x(l)||f>l)&&(l=f)}}}}x(o)?i.startIndex=o:i.start=e.start,x(l)?i.endIndex=l+1:i.end=e.end,e._axisBreaks&&e._axisBreaks.length>0&&i.invalidateDataRange()}})},t.prototype.validate=function(){var e=this;a.prototype.validate.call(this);var i=this.dataItems.length,r=ee(Math.floor(this.start*i-1),0,i),n=ee(Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var s=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),o=Math.min(this.dataItems.length,Math.ceil((n-r)/s));if(this._startIndex=Math.floor(r/o)*o,this._endIndex=Math.ceil(this.end*i),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=o,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),r=fe(0,this._startIndex-this._frequency),n=Se(this.dataItems.length,this._endIndex+this._frequency);for(var l=0,u=0;u<r;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=n,p=this.dataItems.length;u<p;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=r;u<n;u++)if(u<this.dataItems.length){var h=this.dataItems.getIndex(u);if(u/this._frequency==Math.round(u/this._frequency)){var d=this.isInBreak(u);d||(this.appendDataItem(h),this.validateDataElement(h,l)),l++}else h.__disabled=!0}if(this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,l+1,this.dataItems.length),this._axisBreaks){var c=this._axisBreaks;c.each(function(f){var m=f.adjustedStartValue,y=f.adjustedEndValue;if(ho({start:m,end:y},{start:e._startIndex,end:e._endIndex})){for(var g=m;g<=y;g++){var v=e.dataItems.getIndex(g);v.__disabled=!0}var b=ee(Math.ceil(e._frequency/f.breakSize),1,y-m),P=0;if(f.breakSize>0)for(var g=m;g<=y;g=g+b){var v=e.dataItems.getIndex(g);v.__disabled=!1,e.appendDataItem(v),e.validateDataElement(v,P),P++}}})}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},t.prototype.validateDataElement=function(e,i,r){a.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var n=this.renderer;x(r)||(r=this.categoryToIndex(e.category));var s=this.categoryToIndex(e.endCategory);x(s)||(s=r);var o=this.indexToPosition(r,e.locations.category),l=this.indexToPosition(s,e.locations.endCategory);e.position=o;var u,h,p;e.isRange&&(u=s,h=this.indexToPosition(r,e.locations.category),p=this.indexToPosition(u,e.locations.endCategory)),e.point=n.positionToPoint(o);var d=e.tick;d&&!d.disabled&&n.updateTickElement(d,o,l);var c=e.grid;c&&!c.disabled&&n.updateGridElement(c,o,l);var f=e.label;f&&!f.disabled&&((!e.isRange||f.text==null)&&(e.text=e.text),n.updateLabelElement(f,o,l),(n instanceof Ai&&e.label.measuredWidth>this.ghostLabel.measuredWidth||n instanceof xr&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var m=e.axisFill;m&&!m.disabled&&(e.isRange||(u=r+this._frequency,h=this.indexToPosition(r,m.location),p=this.indexToPosition(u,m.location)),n.updateFillElement(m,h,p),e.isRange||this.fillRule(e,i)),e.bullet&&n.updateBullet(e.bullet,o,l);var y=e.mask;y&&n.updateFillElement(y,h,p)},t.prototype.disposeData=function(){this.dataItemsByCategory.clear(),a.prototype.disposeData.call(this)},t.prototype.processDataItem=function(e,i){e&&(a.prototype.processDataItem.call(this,e,i),C(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},t.prototype.getDataItem=function(e){var i=e[this.dataFields.category];if(C(i)){var r=this.dataItemsByCategory.getKey(i);return r||this.dataItems.create()}},t.prototype.indexToPosition=function(e,i){x(i)||(i=.5);var r=this.startIndex,n=this.endIndex,s=this.adjustDifference(r,n),o=this.startLocation,l=this.endLocation;if(s-=o,s-=1-l,this._axisBreaks){var u=this._axisBreaks;ii(u.iterator(),function(d){var c=d.adjustedStartValue,f=d.adjustedEndValue;if(e<r||!x(c)||!x(f))return!1;if(ho({start:c,end:f},{start:r,end:n})){c=Math.max(r,c),f=Math.min(n,f);var m=d.breakSize;e>f?r+=(f-c)*(1-m):e<c||(e=c+(e-c)*m)}return!0})}var h=0,p=this.dataItems.getIndex(e);return p&&(h=p.deltaPosition),z(h+(e+i-o-r)/s,5)},t.prototype.categoryToPosition=function(e,i){var r=this.categoryToIndex(e);return this.indexToPosition(r,i)},t.prototype.categoryToPoint=function(e,i){var r=this.categoryToPosition(e,i),n=this.renderer.positionToPoint(r),s=this.renderer.positionToAngle(r);return{x:n.x,y:n.y,angle:s}},t.prototype.anyToPoint=function(e,i){return this.categoryToPoint(e,i)},t.prototype.anyToPosition=function(e,i){return this.categoryToPosition(e,i)},t.prototype.categoryToIndex=function(e){if(C(e)){var i=this.dataItemsByCategory.getKey(e);if(i)return i.index}},t.prototype.zoomToCategories=function(e,i){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(i)+1)},t.prototype.getAnyRangePath=function(e,i,r,n){var s=this.categoryToPosition(e,r),o=this.categoryToPosition(i,n);return this.getPositionRangePath(s,o)},t.prototype.roundPosition=function(e,i){var r=this.positionToIndex(e);return this.indexToPosition(r,i)},t.prototype.getFirstSeriesDataItem=function(e,i){for(var r=0;r<e.dataItems.length;r++){var n=e.dataItems.getIndex(r);if(e.xAxis==this&&n.categoryX==i||e.yAxis==this&&n.categoryY==i)return n}},t.prototype.getLastSeriesDataItem=function(e,i){for(var r=e.dataItems.length-1;r>=0;r--){var n=e.dataItems.getIndex(r);if(e.xAxis==this&&n.categoryX==i||e.yAxis==this&&n.categoryY==i)return n}},t.prototype.getSeriesDataItemByCategory=function(e,i){var r=this,n;return i.dataItems.each(function(s){i.xAxis==r?s.categoryX==e&&(n=s):i.yAxis==r&&s.categoryY==e&&(n=s)}),n},t.prototype.getSeriesDataItem=function(e,i,r){var n=this;if(x(i)){var s=this.positionToIndex(i);s>=this.dataItems.length&&s--;var o=this.dataItems.getIndex(s);if(o){var l=o.category,u,h=e.dataItems.getIndex(s);return h&&(e.xAxis==this&&h.categoryX==l||e.yAxis==this&&h.categoryY==l)?h:(e.dataItems.each(function(p){e.xAxis==n&&p.categoryX==l&&(u||(u=p),Math.abs(s-u.index)>Math.abs(s-p.index)&&(u=p)),e.yAxis==n&&p.categoryY==l&&(u||(u=p),Math.abs(s-u.index)>Math.abs(s-p.index)&&(u=p))}),u)}}},t.prototype.getX=function(e,i,r,n,s){var o=this.getPositionX(e,i,r,n,s);return Zt(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},t.prototype.getPositionX=function(e,i,r,n,s){var o;return C(i)&&(o=this.categoryToPosition(e.categories[i],r)),s&&(o=ee(o,s.start,s.end)),o},t.prototype.getY=function(e,i,r,n,s){var o=this.getPositionY(e,i,r,n,s);return Zt(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},t.prototype.getPositionY=function(e,i,r,n,s){var o;return C(i)&&(o=this.categoryToPosition(e.categories[i],r)),s&&(o=ee(o,s.start,s.end)),o},t.prototype.getAngle=function(e,i,r,n,s){var o=this.categoryToPosition(e.categories[i],r);return s&&(o=ee(o,s.start,s.end)),this.positionToAngle(o)},t.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},t.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},t.prototype.getTooltipText=function(e){var i=this.dataItems.getIndex(this.positionToIndex(e));if(i)return this.tooltipDataItem=i,this.tooltip.dataItem=i,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",i.category):i.category},t.prototype.positionToIndex=function(e){e=z(e,10),e<0&&(e=0),e>1&&(e=1);var i=this.startIndex,r=this.endIndex,n=r-i-this.startLocation-(1-this.endLocation);e+=1/n*this.startLocation;var s=null;if(this._axisBreaks){var o=this._axisBreaks;ii(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;p=fe(p,i),d=Se(d,r);var c=l.breakSize;if(n-=(d-p)*(1-c),e>h)i+=(d-p)*(1-c);else if(!(e<u)){var f=(e-u)/(h-u);return s=p+Math.round(f*(d-p)),!1}return!0})}return x(s)||(s=Math.floor(e*n+i)),s>=this.dataItems.length&&(s=this.dataItems.length-1),s},t.prototype.positionToCategory=function(e){return this.getPositionLabel(e)},t.prototype.getPositionLabel=function(e){var i=this.dataItems.getIndex(this.positionToIndex(e));if(i)return i.category},Object.defineProperty(t.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),t.prototype.initRenderer=function(){a.prototype.initRenderer.call(this);var e=this.renderer;e.baseGrid.disabled=!0},Object.defineProperty(t.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(e){this.setPropertyValue("sortBySeries",e,!0)},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){e&&C(e.sortBySeries)&&ye(e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),a.prototype.processConfig.call(this,e)},t})(Os);S.registeredClasses.CategoryAxis=$t;S.registeredClasses.CategoryAxisDataItem=rf;var zh=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new ue,r=e.background;r.cornerRadius(20,20,20,20),r.fill=i.getFor("primaryButton"),r.stroke=i.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var n=new ne;n.element=e.paper.add("path");var s=X({x:0,y:0});return s+=R({x:11,y:0}),n.path=s,n.pixelPerfect=!0,n.padding(8,3,8,3),n.stroke=i.getFor("primaryButtonText"),e.icon=n,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},t})(Yi);S.registeredClasses.ZoomOutButton=zh;var Fs=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(e){this.properties.saturation=e,this.feColorMatrix.attr({values:e.toString()})},enumerable:!0,configurable:!0}),t})(kr);S.registeredClasses.DesaturateFilter=Fs;var en=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._chart=new st,e.className="XYChartScrollbar";var i=new ue;e.padding(0,0,0,0);var r=e.createChild(Xi);if(r.shouldClone=!1,r.margin(0,0,0,0),r.padding(0,0,0,0),r.interactionsEnabled=!1,e._scrollbarChart=r,!Fa()){var n=new Fs;n.filterUnits="userSpaceOnUse",r.plotContainer.filters.push(n)}e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var s=e.createChild(ne);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.fill=i.getFor("background"),s.fillOpacity=.8,s.interactionsEnabled=!1,s.isMeasured=!1,s.toBack(),e._unselectedOverlay=s,e._disposers.push(e._unselectedOverlay),r.toBack(),e.background.cornerRadius(0,0,0,0);var o=e.thumb.background;o.cornerRadius(0,0,0,0),o.fillOpacity=0,o.fill=i.getFor("background");var l=o.states.getKey("hover");l&&(l.properties.fillOpacity=.2);var u=o.states.getKey("down");return u&&(u.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return Object.defineProperty(t.prototype,"series",{get:function(){return this._series||(this._series=new we,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),t.prototype.handleSeriesAdded=function(e){var i=this,r=e.newValue;if(!(!r.xAxis||!r.yAxis)){var n=this.scrollbarChart;n.zoomOutButton.disabled=!0,this.chart=r.chart,n.dateFormatter.inputDateFormat=this.chart.dateFormatter.inputDateFormat,n.language.locale=this.chart.language.locale;var s=!0,o=!0;j(this.series.iterator(),function(b){b!=r&&(b.xAxis==r.xAxis&&i.scrollbarChart.xAxes.length>0&&(s=!1),b.yAxis==r.yAxis&&i.scrollbarChart.yAxes.length>0&&(o=!1))}),r.events.on("beforedisposed",function(){i.series.removeValue(r)});var l=new ue,u=r.clone();if((Ce.onlyShowOnViewport||Ce.queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",function(){n.invalidateData()})),Fa()&&(u.stroke=oe("#aaaaaa"),u.fill=u.stroke,u.propertyFields.fill=void 0,u.propertyFields.stroke=void 0),r.scrollbarSeries=u,s){var h=r.xAxis.clone();n.xAxes.moveValue(h),h.title.disabled=!0,h.rangeChangeDuration=0;var p=h.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.padding(0,0,0,0),p.chart=n,p.margin(0,0,0,0),h.width=W(100);var d=p.labels.template;if(d.fillOpacity=.5,h.maxZoomCount=void 0,h.minZoomCount=void 0,h instanceof ft){var c=h,f=r.xAxis;c.groupCount=f.groupCount*5,c.min=void 0,c.max=void 0,this._disposers.push(c.clonedFrom.events.on("extremeschanged",function(){x(c.clonedFrom.minDefined)&&(c.min=c.clonedFrom.minDefined),x(c.clonedFrom.maxDefined)&&(c.max=c.clonedFrom.maxDefined)},void 0,!1))}else if(h instanceof $e){var m=h;m.min=void 0,m.max=void 0,x(m.clonedFrom.minDefined)||(m.min=void 0),x(m.clonedFrom.maxDefined)||(m.max=void 0),this._disposers.push(m.clonedFrom.events.on("extremeschanged",function(){x(m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.min),x(m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.max)},void 0,!1))}u.xAxis=h}else this.scrollbarChart.xAxes.each(function(b){b.clonedFrom==r.xAxis&&(u.xAxis=b)});if(o){var y=r.yAxis.clone();n.yAxes.moveValue(y),y.title.disabled=!0,y.rangeChangeDuration=0;var p=y.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.grid.template.stroke=l.getFor("background"),p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.chart=n,p.padding(0,0,0,0),p.margin(0,0,0,0),y.height=W(100);var d=p.labels.template;if(d.fillOpacity=.5,u.yAxis=y,y.maxZoomCount=void 0,y.minZoomCount=void 0,y instanceof ft){var g=y;g.min=void 0,g.max=void 0;var f=r.yAxis;y.groupCount=f.groupCount*5,this._disposers.push(g.clonedFrom.events.on("extremeschanged",function(){x(g.clonedFrom.minDefined)&&(g.min=g.clonedFrom.minDefined),x(g.clonedFrom.maxDefined)&&(g.max=g.clonedFrom.maxDefined)}))}else if(y instanceof $e){var v=y;v.min=void 0,v.max=void 0,x(v.clonedFrom.minDefined)||(v.min=void 0),x(v.clonedFrom.maxDefined)||(v.max=void 0),this._disposers.push(v.clonedFrom.events.on("extremeschanged",function(){x(v.clonedFrom.minDefined)&&(v.min=v.clonedFrom.minDefined),x(v.clonedFrom.maxDefined)&&(v.max=v.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(b){b.clonedFrom==r.yAxis&&(u.yAxis=b)});u.rangeChangeDuration=0,u.interpolationDuration=0,u.defaultState.transitionDuration=0,u.showOnInit=!1,this._disposers.push(u.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(r.events.on("datavalidated",function(){u.data!=r.data&&(u.data=r.data)},void 0,!1)),u.defaultState.properties.visible=!0,n.series.push(u),this.updateByOrientation()}},t.prototype.updateByOrientation=function(){var e=this;this._scrollbarChart&&(j(this._scrollbarChart.xAxes.iterator(),function(i){var r=i.renderer;e.orientation=="vertical"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=i.clonedFrom.renderer.minGridDistance)}),j(this._scrollbarChart.yAxes.iterator(),function(i){var r=i.renderer;e.orientation=="horizontal"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=i.clonedFrom.renderer.minGridDistance)}))},t.prototype.handleSeriesRemoved=function(e){var i=e.oldValue,r=this.scrollbarChart;r.series.each(function(n){n&&n.clonedFrom==i&&r.series.removeValue(n)}),r.series.length==0&&(r.xAxes.clear(),r.yAxes.clear());try{i.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(t.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.get()!==e&&(this._chart.set(e,e.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),t.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},t.prototype.zoomOutAxes=function(){var e=this.scrollbarChart;j(e.xAxes.iterator(),function(i){i.zoom({start:0,end:1},!0,!0)}),j(e.yAxes.iterator(),function(i){i.zoom({start:0,end:1},!0,!0)})},t.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),a.prototype.updateThumb.call(this,e),this._unselectedOverlay){var i=this.thumb,r=i.pixelX||0,n=i.pixelY||0,s=i.pixelWidth||0,o=i.pixelHeight||0,l="";this.orientation=="horizontal"?(l=Er({x:-1,y:0,width:r,height:o}),l+=Er({x:r+s,y:0,width:(this.pixelWidth||0)-r-s,height:o})):(l=Er({x:0,y:0,width:s,height:n}),l+=Er({x:0,y:n+o,width:s,height:(this.pixelHeight||0)-n-o})),this._unselectedOverlay.path=l}},t.prototype.processConfig=function(e){if(e&&C(e.series)&&Je(e.series))for(var i=0,r=e.series.length;i<r;i++){var n=e.series[i];if(C(n)&&ye(n))if(this.map.hasKey(n))e.series[i]=this.map.getKey(n);else throw Error("XYChartScrollbar error: Series with id `"+n+"` does not exist.")}a.prototype.processConfig.call(this,e)},t})(Dn);S.registeredClasses.XYChartScrollbar=en;var Is=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return t})(yu);var Xi=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._axisRendererX=xr,e._axisRendererY=Ai,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var i=e.chartContainer;i.layout="vertical",e.padding(15,15,15,15);var r=i.createChild(te);r.shouldClone=!1,r.layout="vertical",r.width=W(100),r.zIndex=1,e.topAxesContainer=r;var n=i.createChild(te);n.shouldClone=!1,n.layout="horizontal",n.width=W(100),n.height=W(100),n.zIndex=0,e.yAxesAndPlotContainer=n;var s=i.createChild(te);s.shouldClone=!1,s.width=W(100),s.layout="vertical",s.zIndex=1,e.bottomAxesContainer=s;var o=n.createChild(te);o.shouldClone=!1,o.layout="horizontal",o.height=W(100),o.contentAlign="right",o.events.on("transformed",e.updateXAxesMargins,e,!1),o.zIndex=1,e.leftAxesContainer=o;var l=n.createChild(te);l.shouldClone=!1,l.height=W(100),l.width=W(100),l.background.fillOpacity=0,e.plotContainer=l,e.mouseWheelBehavior="none",e._cursorContainer=l;var u=n.createChild(te);u.shouldClone=!1,u.layout="horizontal",u.height=W(100),u.zIndex=1,u.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=u,e.seriesContainer.parent=l,e.bulletsContainer.parent=l;var h=l.createChild(zh);h.shouldClone=!1,h.align="right",h.valign="top",h.zIndex=Number.MAX_SAFE_INTEGER,h.marginTop=5,h.marginRight=5,h.hide(0),e.zoomOutButton=h;var p=e.plotContainer.createChild(te);return p.shouldClone=!1,p.width=W(100),p.height=W(100),p.isMeasured=!1,p.zIndex=4,p.layout="none",e.axisBulletsContainer=p,e._bulletMask=e.plotContainer,e.events.on("beforedatavalidated",function(){e.series.each(function(d){d.dataGrouped=!1,d._baseInterval={}})},e,!1),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,C(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},t.prototype.draw=function(){a.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},t.prototype.updatePlotElements=function(){j(this.series.iterator(),function(e){e.invalidate()})},t.prototype.validateData=function(){this._parseDataFrom==0&&(j(this.xAxes.iterator(),function(e){e.dataChangeUpdate()}),j(this.yAxes.iterator(),function(e){e.dataChangeUpdate()}),j(this.series.iterator(),function(e){e.dataChangeUpdate()})),a.prototype.validateData.call(this)},t.prototype.updateXAxesMargins=function(){var e=this.leftAxesContainer.measuredWidth,i=this.rightAxesContainer.measuredWidth,r=this.bottomAxesContainer;(r.paddingLeft!=e||r.paddingRight!=i)&&(r.paddingLeft=e,r.paddingRight=i);var n=this.topAxesContainer;(n.paddingLeft!=e||n.paddingRight!=i)&&(n.paddingLeft=e,n.paddingRight=i)},t.prototype.reinit=function(){a.prototype.reinit.call(this),this.series.each(function(e){e.appeared=!1})},t.prototype.handleXAxisChange=function(e){this.updateXAxis(e.target)},t.prototype.handleYAxisChange=function(e){this.updateYAxis(e.target)},t.prototype.processXAxis=function(e){var i=e.newValue;i.chart=this,i.renderer||(i.renderer=new this._axisRendererX,i.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),i.axisLetter="X",i.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),i.dataProvider=this,this.updateXAxis(i.renderer),this.processAxis(i)},t.prototype.processYAxis=function(e){var i=e.newValue;i.chart=this,i.renderer||(i.renderer=new this._axisRendererY,i.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),i.axisLetter="Y",i.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),i.dataProvider=this,this.updateYAxis(i.renderer),this.processAxis(i)},t.prototype.handleXAxisRangeChange=function(){var e=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,e)},t.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var e=!1;ii(this.xAxes.iterator(),function(i){if(i.toggleZoomOutButton){if(i.maxZoomCount>0){var r=i.maxZoomFactor/i.maxZoomCount;if(z(i.end-i.start,3)<1/r)return e=!0,!1}else if(z(i.start,3)>0||z(i.end,3)<1)return e=!0,!1}return!0}),ii(this.yAxes.iterator(),function(i){if(i.toggleZoomOutButton){if(i.maxZoomCount>0){var r=i.maxZoomFactor/i.maxZoomCount;if(z(i.end-i.start,3)<1/r)return e=!0,!1}else if(z(i.start,3)>0||z(i.end,3)<1)return e=!0,!1;return!0}}),this.seriesAppeared||(e=!1),e?this.zoomOutButton.show():this.zoomOutButton.hide()}},t.prototype.seriesAppeared=function(){var e=!1;return j(this.series.iterator(),function(i){if(!i.appeared)return e=!1,!1}),e},t.prototype.handleYAxisRangeChange=function(){var e=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,e)},t.prototype.updateScrollbar=function(e,i){e&&(e.skipRangeEvents(),e.start=i.start,e.end=i.end)},t.prototype.getCommonAxisRange=function(e){var i,r;return e.each(function(n){if(!(!n.zoomable||n instanceof $e&&n.syncWithAxis)){var s=n.start,o=n.end;n.renderer.inversed&&(s=1-n.end,o=1-n.start),(!x(i)||s<i)&&(i=s),(!x(r)||o>r)&&(r=o)}}),{start:i,end:r}},t.prototype.updateXAxis=function(e){var i=e.axis;e.opposite?(i.parent=this.topAxesContainer,i.toFront()):(i.parent=this.bottomAxesContainer,i.toBack()),i.renderer&&i.renderer.processRenderer()},t.prototype.updateYAxis=function(e){var i=e.axis;e.opposite?(i.parent=this.rightAxesContainer,i.toBack()):(i.parent=this.leftAxesContainer,i.toFront()),i.renderer&&i.renderer.processRenderer()},t.prototype.processAxis=function(e){var i=this;e instanceof $t&&this._dataUsers.moveValue(e);var r=e.renderer;r.gridContainer.parent=this.plotContainer,r.gridContainer.toBack(),r.breakContainer.parent=this.plotContainer,r.breakContainer.toFront(),r.breakContainer.zIndex=10,e.addDisposer(new Fe(function(){i.dataUsers.removeValue(e)})),r.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(e.events.on("positionchanged",function(){var n=oi({x:0,y:0},e,i.axisBulletsContainer);e.renderer instanceof Ai&&(r.bulletsContainer.y=n.y),e.renderer instanceof xr&&(r.bulletsContainer.x=n.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){i.inited&&(e.invalidateDataItems(),i.updateSeriesMasks())},e,!1)},t.prototype.updateSeriesMasks=function(){Fa()&&this.series.each(function(e){var i=e.mainContainer.mask;e.mainContainer.mask=void 0,e.mainContainer.mask=i})},t.prototype.handleSeriesRemoved=function(e){var i=e.oldValue;i&&(i.xAxis&&(i.xAxis.series.removeValue(i),i.xAxis.invalidateProcessedData()),i.yAxis&&(i.yAxis.series.removeValue(i),i.yAxis.invalidateProcessedData()),this.series.each(function(r){r.resetExtremes()})),a.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(t.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new we,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new Ie(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),t.prototype.handleAxisRemoval=function(e){var i=e.oldValue;this.dataUsers.removeValue(i),i.autoDispose&&i.dispose()},Object.defineProperty(t.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new we,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new Ie(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),t.prototype.handleSeriesAdded=function(e){try{a.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;(this.xAxes.length==0||this.yAxes.length==0)&&(S.removeFromInvalidComponents(i),i.dataInvalid=!1),i.xAxis,i.yAxis,i.maskBullets=i.maskBullets,i.fill==null&&(this.patterns?(C(i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),C(i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof _e&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next()),C(i.stroke)||(i.stroke=i.fill)}catch(r){this.raiseCriticalError(r)}},Object.defineProperty(t.prototype,"cursor",{get:function(){return this._cursor},set:function(e){this._cursor!=e&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=e,e&&(this._disposers.push(e),e.chart=this,e.shouldClone=!1,e.parent=this._cursorContainer,e.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),e.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),e.events.on("zoomended",this.handleCursorZoomEnd,this,!1),e.events.on("panstarted",this.handleCursorPanStart,this,!1),e.events.on("panning",this.handleCursorPanning,this,!1),e.events.on("panended",this.handleCursorPanEnd,this,!1),e.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),e.events.on("hidden",this.handleHideCursor,this,!1),e.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),t.prototype.handleCursorPositionChange=function(){var e=this.cursor;if(e.visible&&!e.isHiding){var i=this.cursor.xPosition,r=this.cursor.yPosition;this.showSeriesTooltip({x:i,y:r});var n=[],s=e.snapToSeries;if(s&&!e.downPoint){s instanceof Qr&&(s=[s]);var o=[];K(s,function(u){if(!u.isHidden&&!u.isHiding){var h=u.xAxis,p=u.yAxis;h instanceof $e&&!(h instanceof ft)&&p instanceof $e&&!(p instanceof ft)?(u.dataItems.each(function(d){o.push(d)}),zi(n,u.yAxis),zi(n,u.xAxis)):(u.baseAxis==u.xAxis&&(zi(n,u.yAxis),o.push(h.getSeriesDataItem(u,h.toAxisPosition(i),!0))),u.baseAxis==u.yAxis&&(zi(n,u.xAxis),o.push(p.getSeriesDataItem(u,p.toAxisPosition(r),!0))))}});var l=this.getClosest(o,i,r);l&&(this.series.each(function(u){var h=l.component;u!=h&&(u.hideTooltip(),u.xAxis!=h.xAxis&&(u.xAxis.hideTooltip(),n.push(u.xAxis)),u.yAxis!=h.yAxis&&(u.yAxis.hideTooltip(),n.push(u.yAxis)))}),l.component.showTooltipAtDataItem(l),e.handleSnap(l.component))}this._seriesPoints=[],this._cursorXPosition!=i&&this.showAxisTooltip(this.xAxes,i,n),this._cursorYPosition!=r&&this.showAxisTooltip(this.yAxes,r,n),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},t.prototype.getClosest=function(e,i,r){var n=1/0,s;return mo(e,function(o){if(o){var l=o.component.xAxis,u=o.component.yAxis,h=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(i))),p=u.positionToCoordinate(u.toGlobalPosition(u.toAxisPosition(r))),d=o.component.xField,c=o.component.yField;if(l instanceof $e&&!x(o.getValue(d))||u instanceof $e&&!x(o.getValue(c)))return!0;var f=l.positionToCoordinate(l.toGlobalPosition(l.getPositionX(o,d,o.locations[d],"valueX"))),m=u.positionToCoordinate(u.toGlobalPosition(u.getPositionY(o,c,o.locations[c],"valueY"))),y=Math.sqrt(Math.pow(h-f,2)+Math.pow(p-m,2));return y<n&&(n=y,s=o),!0}}),s},t.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},t.prototype.updateSeriesLegend=function(){j(this.series.iterator(),function(e){e.updateLegendValue()})},t.prototype.hideObjectTooltip=function(e){j(e.iterator(),function(i){i.cursorTooltipEnabled&&i.hideTooltip(0)})},t.prototype.showSeriesTooltip=function(e){var i=this;if(!e){this.series.each(function(n){n.hideTooltip()});return}var r=[];this.series.each(function(n){if(!(n.xAxis instanceof ft&&n.xAxis.snapTooltip||n.yAxis instanceof ft&&n.yAxis.snapTooltip)){var s=n.showTooltipAtPosition(e.x,e.y);s&&(n.tooltip.setBounds(xs({x:0,y:0,width:i.pixelWidth,height:i.pixelHeight},i)),r.push({series:n,point:s}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(r)},t.prototype.sortSeriesTooltips=function(e){if(e.length>0){var i=this.cursor;if(i&&x(i.maxTooltipDistance)){var r=Bi({x:i.point.x,y:i.point.y},i),n,s,o=1/0;K(e,function(L){var E=L.series,B=L.point;if(B){var U={x:B.x,y:B.y},q=Math.abs(Ee(U,r));q<o&&(s=U,o=q,n=E)}});var l=[];n&&(K(e,function(L){if(Math.abs(Ee(L.point,s))<=Math.abs(i.maxTooltipDistance))l.push({series:L.series,point:L.point});else{var E=L.series.tooltipDataItem;E&&K(E.sprites,function(B){B.isHover=!1,B.handleOutReal()}),L.series.hideTooltip(0)}}),i.maxTooltipDistance<0&&(l.length>0&&K(l,function(L){n!=L.series&&L.series.hideTooltip(0)}),l=[{series:n,point:s}])),e=l}var u=Bi({x:-.5,y:-.5},this.plotContainer),h=Bi({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),p=0,d=[];K(e,function(L){var E=L.point;E&&uh(E,{x:u.x,y:u.y,width:h.x-u.x,height:h.y-u.y})&&(d.push({point:E,series:L.series}),p+=E.y)}),e=d;var c=this.series.getIndex(0),f=!1;c&&c.yAxis&&c.yAxis.renderer.inversed&&(f=!0),f?e.sort(function(L,E){return rr(L.point.y,E.point.y)}):(e.sort(function(L,E){return rr(E.point.y,L.point.y)}),e.reverse());var m=p/e.length,y=wh({x:0,y:0},this.svgContainer.SVGContainer).y;if(e.length>0){var g=u.y,v=h.y;$o({x:0,y:g},this);var b=!1;if(m>g+(v-g)/2)for(var P=v,w=e.length-1;w>=0;w--){var T=e[w].series,F=T.tooltip,D=e[w].point.y;if(F.setBounds({x:0,y:-y,width:this.pixelWidth,height:P+y}),F.invalid&&F.validate(),F.toBack(),P=Bi({x:0,y:F.label.pixelY-F.pixelY+D-F.pixelMarginTop},F).y,P<-y){b=!0;break}}if(m<=g+(v-g)/2||b)for(var O=g,w=0,N=e.length;w<N;w++){var T=e[w].series,D=e[w].point.y,F=T.tooltip;F.setBounds({x:0,y:O,width:this.pixelWidth,height:v}),F.invalid&&F.validate(),F.toBack(),O=Bi({x:0,y:F.label.pixelY+F.label.measuredHeight-F.pixelY+D+F.pixelMarginBottom},F).y}}}},t.prototype.showAxisTooltip=function(e,i,r){var n=this;j(e.iterator(),function(s){(!r||r.indexOf(s)==-1)&&(n.dataItems.length>0||s.dataItems.length>0)&&s.showTooltipAtPosition(i)})},t.prototype.getUpdatedRange=function(e,i){if(e){var r,n,s=e.renderer.inversed;s?(po(i),r=1-e.end,n=1-e.start):(r=e.start,n=e.end);var o=n-r;return{start:r+i.start*o,end:r+i.end*o}}},t.prototype.handleCursorZoomEnd=function(e){var i=this.cursor,r=i.behavior;if(r=="zoomX"||r=="zoomXY"){var n=i.xRange;n&&this.xAxes.length>0&&(n=this.getUpdatedRange(this.xAxes.getIndex(0),n),n.priority="start",this.zoomAxes(this.xAxes,n))}if(r=="zoomY"||r=="zoomXY"){var s=i.yRange;s&&this.yAxes.length>0&&(s=this.getUpdatedRange(this.yAxes.getIndex(0),s),s.priority="start",this.zoomAxes(this.yAxes,s))}this.handleHideCursor()},t.prototype.handleCursorPanStart=function(e){var i=this.xAxes.getIndex(0);i&&(this._panStartXRange={start:i.start,end:i.end},i.renderer.inversed&&(this._panStartXRange=po(this._panStartXRange)));var r=this.yAxes.getIndex(0);r&&(this._panStartYRange={start:r.start,end:r.end},r.renderer.inversed&&(this._panStartYRange=po(this._panStartYRange)))},t.prototype.handleCursorPanEnd=function(e){var i=this.cursor,r=i.behavior;if(this._panEndXRange&&(r=="panX"||r=="panXY")){var n=this._panEndXRange,s=this._panStartXRange,o=0;n.start<0&&(o=n.start),s.end>1?n.end>s.end&&(o=n.end-s.end):n.end>1&&(o=n.end-1),this.zoomAxes(this.xAxes,{start:n.start-o,end:n.end-o},!1,i.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&(r=="panY"||r=="panXY")){var n=this._panEndYRange,o=0;n.start<0&&(o=n.start),n.end>1&&(o=n.end-1),this.zoomAxes(this.yAxes,{start:n.start-o,end:n.end-o},!1,i.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0}},t.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},t.prototype.handleCursorPanning=function(e){var i=this.cursor,r=i.behavior,n=i.maxPanOut;if(this._panStartXRange&&(r=="panX"||r=="panXY")){var s=this._panStartXRange,o=i.xRange,l=this.getCommonAxisRange(this.xAxes),u=s.end-s.start,h=o.start*(l.end-l.start),p=Math.max(-n,h+s.start),d=Math.min(h+s.end,1+n);p<=0&&(d=p+u),d>=1&&(p=d-u);var c={start:p,end:d};this._panEndXRange=c,this.zoomAxes(this.xAxes,c,!1,!1,i.maxPanOut)}if(this._panStartYRange&&(r=="panY"||r=="panXY")){var s=this._panStartYRange,o=i.yRange,l=this.getCommonAxisRange(this.yAxes),u=s.end-s.start,h=o.start*(l.end-l.start),p=Math.max(-n,h+s.start),d=Math.min(h+s.end,1+n);p<=0&&(d=p+u),d>=1&&(p=d-u);var c={start:p,end:d};this._panEndYRange=c,this.zoomAxes(this.yAxes,c,!1,!1,i.maxPanOut)}this.handleHideCursor()},t.prototype.handleYAxisSet=function(e){},t.prototype.handleCursorZoomStart=function(e){},Object.defineProperty(t.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(e){var i=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=e,e&&(this._disposers.push(e),e.parent=this.topAxesContainer,e.shouldClone=!1,e.startGrip.exportable=!1,e.endGrip.exportable=!1,e.toBack(),e.orientation="horizontal",e.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var n=i.xAxes.getIndex(0);return n&&(r.value=n.getPositionLabel(n.renderer.inversed?1-r.position:r.position)),r}),e.adapter.add("positionValueDirection",function(r){var n=i.xAxes.getIndex(0);return n&&(r.flipped=n.renderer.inversed),r}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(e){var i=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=e,e&&(this._disposers.push(e),e.parent=this.rightAxesContainer,e.startGrip.exportable=!1,e.shouldClone=!1,e.endGrip.exportable=!1,e.toFront(),e.orientation="vertical",e.events.on("rangechanged",this.handleYScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var n=i.yAxes.getIndex(0);return n&&(r.value=n.getPositionLabel(n.renderer.inversed?r.position:1-r.position)),r}),e.adapter.add("positionValueDirection",function(r){var n=i.yAxes.getIndex(0);return n&&(r.flipped=!n.renderer.inversed),r}))},enumerable:!0,configurable:!0}),t.prototype.handleXScrollbarChange=function(e){if(this.inited){var i=e.target,r=i.range;r.start==0&&(r.priority="start"),r.end==1&&(r.priority="end"),r=this.zoomAxes(this.xAxes,r),i.fixRange(r)}},t.prototype.handleYScrollbarChange=function(e){if(this.inited){var i=e.target,r=i.range;r.end==1&&(r.priority="end"),r.start==0&&(r.priority="start"),r=this.zoomAxes(this.yAxes,r),i.fixRange(r)}},t.prototype.zoomAxes=function(e,i,r,n,s,o){var l={start:0,end:1};this.showSeriesTooltip();var u=i;return this.dataInvalid||j(e.iterator(),function(h){var p=h.maxZoomFactor;if(x(h.minZoomCount)&&(p=p/h.minZoomCount),!(o&&1/(i.end-i.start)>=p)){if(h.zoomable){if(h.renderer.inversed?i=po(u):i=u,h.hideTooltip(0),n)if(h instanceof $t){var d=h.getCellEndPosition(0)-h.getCellStartPosition(0);i.start=h.roundPosition(i.start+d/2-h.startLocation*d,h.startLocation),i.end=h.roundPosition(i.end-d/2+(1-h.endLocation)*d,h.endLocation)}else{var c=1e-4;i.start=h.roundPosition(i.start+c,0,h.startLocation),i.end=h.roundPosition(i.end+c,0,h.endLocation)}var f=h.zoom(i,r,r,s);h.renderer.inversed&&(f=po(f)),l=f}}}),l},Object.defineProperty(t.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)&&this.bulletsContainer&&(e?this.bulletsContainer.mask=this._bulletMask:this.bulletsContainer.mask=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(e){this.setPropertyValue("arrangeTooltips",e,!0)},enumerable:!0,configurable:!0}),t.prototype.handleWheel=function(e){var i=this.plotContainer,r=ua(e.point,this.htmlContainer,this.svgContainer.cssScale),n=Ti(r,i),s=e.shift.y;this.handleWheelReal(s,this.mouseWheelBehavior,n)},t.prototype.handleHorizontalWheel=function(e){var i=this.plotContainer,r=ua(e.point,this.htmlContainer,this.svgContainer.cssScale),n=Ti(r,i);this.handleWheelReal(e.shift.x,this.horizontalMouseWheelBehavior,n)},t.prototype.handleWheelReal=function(e,i,r){if(e!=0){var n=this.plotContainer,s=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes),l=.1,u=0;if(i=="panX"||i=="panXY"){var h=this.xAxes.getIndex(0),p=!1,d=l;h instanceof $t&&(d=.5/((s.end-s.start)*h.dataItems.length),p=!0),l=Math.max(.2,d);var c=s.end-s.start,f=Math.max(-u,s.start+l*e/100*(s.end-s.start)),m=Math.min(s.end+l*e/100*(s.end-s.start),1+u);f<=0&&(m=f+c),m>=1&&(f=m-c),this.zoomAxes(this.xAxes,{start:f,end:m},void 0,p)}if(i=="panY"||i=="panXY"){var y=this.yAxes.getIndex(0),d=l,p=!1;y instanceof $t&&(d=.5/((s.end-s.start)*y.dataItems.length),p=!0),l=Math.max(.2,d),e*=-1;var g=o.end-o.start,v=Math.max(-u,o.start+l*e/100*(o.end-o.start)),b=Math.min(o.end+l*e/100*(o.end-o.start),1+u);v<=0&&(b=v+g),b>=1&&(v=b-g),this.zoomAxes(this.yAxes,{start:v,end:b},void 0,p)}if(i=="zoomX"||i=="zoomXY"){var P=r.x/n.maxWidth,w=this.xAxes.getIndex(0).toAxisPosition(P),f=Math.max(-u,s.start-l*(s.end-s.start)*e/100*P);f=Math.min(f,w);var m=Math.min(s.end+l*(s.end-s.start)*e/100*(1-P),1+u);m=Math.max(m,w),this.zoomAxes(this.xAxes,{start:f,end:m},void 0)}if(i=="zoomY"||i=="zoomXY"){var T=r.y/n.maxHeight,F=this.yAxes.getIndex(0).toAxisPosition(T),v=Math.max(-u,o.start-l*(o.end-o.start)*e/100*(1-T));v=Math.min(v,F);var b=Math.min(o.end+l*e/100*T*(o.end-o.start),1+u);b=Math.max(b,F),this.zoomAxes(this.yAxes,{start:v,end:b},void 0)}}},Object.defineProperty(t.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(e){this.setPropertyValue("mouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(e){this.setPropertyValue("horizontalMouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),t.prototype.dataSourceDateFields=function(e){var i=this;return e=a.prototype.dataSourceDateFields.call(this,e),j(this.series.iterator(),function(r){e=i.populateDataSourceFields(e,r.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},t.prototype.dataSourceNumberFields=function(e){var i=this;return e=a.prototype.dataSourceDateFields.call(this,e),j(this.series.iterator(),function(r){e=i.populateDataSourceFields(e,r.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},t.prototype.processConfig=function(e){if(e){var i=[],r=[];if(C(e.xAxes)&&Je(e.xAxes))for(var n=0,s=e.xAxes.length;n<s;n++)if(e.xAxes[n].type){if(C(e.xAxes[n].axisRanges)){for(var o=0,l=e.xAxes[n].axisRanges.length;o<l;o++){var u=e.xAxes[n].axisRanges[o];C(u.date)&&ye(u.date)&&(u.date=this.dateFormatter.parse(u.date)),C(u.endDate)&&ye(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}i.push({axisRanges:e.xAxes[n].axisRanges,index:n}),delete e.xAxes[n].axisRanges}}else throw Error("[XYChart error] No type set for xAxes["+n+"].");if(C(e.yAxes)&&Je(e.yAxes))for(var n=0,s=e.yAxes.length;n<s;n++)if(e.yAxes[n].type){if(C(e.yAxes[n].axisRanges)){for(var o=0,h=e.yAxes[n].axisRanges.length;o<h;o++){var u=e.yAxes[n].axisRanges[o];C(u.date)&&ye(u.date)&&(u.date=this.dateFormatter.parse(u.date)),C(u.endDate)&&ye(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}r.push({axisRanges:e.yAxes[n].axisRanges,index:n}),delete e.yAxes[n].axisRanges}}else throw Error("[XYChart error] No type set for yAxes["+n+"].");if(C(e.series)&&Je(e.series))for(var n=0,s=e.series.length;n<s;n++)e.series[n].type=e.series[n].type||"LineSeries";if(C(e.cursor)&&!C(e.cursor.type)&&(e.cursor.type="XYCursor"),C(e.scrollbarX)&&!C(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),C(e.scrollbarY)&&!C(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),a.prototype.processConfig.call(this,e),r.length)for(var n=0,s=r.length;n<s;n++)this.yAxes.getIndex(r[n].index).config={axisRanges:r[n].axisRanges};if(i.length)for(var n=0,s=i.length;n<s;n++)this.xAxes.getIndex(i[n].index).config={axisRanges:i[n].axisRanges}}},t.prototype.configOrder=function(e,i){return e==i?0:e=="scrollbarX"?1:i=="scrollbarX"?-1:e=="scrollbarY"?1:i=="scrollbarY"?-1:e=="cursor"?1:i=="cursor"?-1:e=="series"?1:i=="series"?-1:a.prototype.configOrder.call(this,e,i)},t.prototype.createSeries=function(){return new Qr},Object.defineProperty(t.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(e){var i=this;this._zoomOutButton=e,e&&e.events.on("hit",function(){i.zoomAxes(i.xAxes,{start:0,end:1}),i.zoomAxes(i.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){var i=this;e.xAxes.each(function(r){var n=i.xAxes.push(r.clone());n.chart=i,n.renderer.chart=i}),e.yAxes.each(function(r){var n=i.yAxes.push(r.clone());n.renderer.chart=i,n.chart=i}),a.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},t.prototype.disposeData=function(){a.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof en&&e.scrollbarChart.disposeData();var i=this.scrollbarY;i&&i instanceof en&&i.scrollbarChart.disposeData(),this.xAxes.each(function(r){r instanceof $t&&r.disposeData()}),this.yAxes.each(function(r){r instanceof $t&&r.disposeData()})},t.prototype.addData=function(e,i){this.scrollbarX instanceof en&&this.addScrollbarData(this.scrollbarX,i),this.scrollbarY instanceof en&&this.addScrollbarData(this.scrollbarY,i),a.prototype.addData.call(this,e,i)},t.prototype.addScrollbarData=function(e,i){var r=e.scrollbarChart;r._parseDataFrom=r.data.length,r.invalidateData()},t.prototype.removeScrollbarData=function(e,i){var r=e.scrollbarChart;if(x(i)){for(;i>0;){var n=this.dataItems.getIndex(0);n&&r.dataItems.remove(n),r.dataUsers.each(function(s){var o=s.dataItems.getIndex(0);o&&s.dataItems.remove(o)}),r._parseDataFrom--,i--}r.invalidateData()}},t.prototype.removeData=function(e){this.scrollbarX instanceof en&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof en&&this.removeScrollbarData(this.scrollbarY,e),a.prototype.removeData.call(this,e)},t.prototype.setTapToActivate=function(e){a.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},t.prototype.handleTapToActivate=function(){a.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},t.prototype.handleTapToActivateDeactivation=function(){a.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},t})(Ro);S.registeredClasses.XYChart=Xi;Dt.push({relevant:Nt.maybeXS,state:function(a,t){if(a instanceof Xi&&a.scrollbarX){var e=a.states.create(t),i=a.scrollbarX.states.create(t);return i.properties.disabled=!0,e}return null}});Dt.push({relevant:Nt.maybeXS,state:function(a,t){if(a instanceof Xi&&a.scrollbarY){var e=a.states.create(t),i=a.scrollbarY.states.create(t);return i.properties.disabled=!0,e}return null}});var As=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return Object.defineProperty(t.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(e){this.setValue("customValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(e){this.setDate("dateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(e){this.setDate("dateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(e){this.setCategory("categoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(e){this.setCategory("categoryY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(e){this.setValue("openValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(e){this.setValue("openValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(e){this.setDate("openDateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(e){this.setDate("openDateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(e){this.setCategory("openCategoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(e){this.setCategory("openCategoryY",e)},enumerable:!0,configurable:!0}),t.prototype.getMin=function(e,i,r){var n=this,s;return x(r)||(r=0),K(e,function(o){var l;i?l=n.getWorkingValue(o):l=n.getValue(o),l+=r,(l<s||!x(s))&&(s=l)}),s},t.prototype.getMax=function(e,i,r){var n=this,s;return x(r)||(r=0),K(e,function(o){var l;i?l=n.getWorkingValue(o):l=n.getValue(o),l+=r,(l>s||!x(s))&&(s=l)}),s},t})(Ts);var Qr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.groupFields={},e._xAxis=new st,e._yAxis=new st,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new ne,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(ot,function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())},void 0,!1),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},t.prototype.createDataItem=function(){return new As},t.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},t.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},t.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),a.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!C(this.dataFields[this._xField])||!C(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},t.prototype.processDataItem=function(e,i){try{a.prototype.processDataItem.call(this,e,i),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(r){this._chart&&this._chart.raiseCriticalError(r)}},t.prototype.updateDataItem=function(e){a.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},t.prototype.setInitialWorkingValues=function(e){},t.prototype.disposeData=function(){a.prototype.disposeData.call(this);var e=this.xAxis,i=this.yAxis;if(e){var r=this.dataItemsByAxis.getKey(e.uid);r&&r.clear(),e instanceof $t&&this.clearCatAxis(e)}if(i){var n=this.dataItemsByAxis.getKey(i.uid);n&&n.clear(),i instanceof $t&&this.clearCatAxis(i)}},t.prototype.clearCatAxis=function(e){var i=this.uid;e.dataItems.each(function(r){r.seriesDataItems[i]&&(r.seriesDataItems[i]=[])})},t.prototype.defineFields=function(){var e=this.xAxis,i=this.yAxis;if(e&&i){var r=e.axisFieldName,n=r+"X",s="open"+bs(r)+"X",o=i.axisFieldName,l=o+"Y",u="open"+bs(o)+"Y";this._xField=n,this._yField=l,this.dataFields[s]&&(this._xOpenField=s),this.dataFields[u]&&(this._yOpenField=u),!this.dataFields[u]&&this.baseAxis==i&&(this._yOpenField=l),!this.dataFields[s]&&this.baseAxis==e&&(this._xOpenField=n),this.stacked&&this.baseAxis==e&&(this._xOpenField=n),this.stacked&&this.baseAxis==i&&(this._yOpenField=l),e instanceof $t&&i instanceof $t&&(this._yOpenField||(this._yOpenField=l)),this._xValueFields=[],this._yValueFields=[],this.addValueField(e,this._xValueFields,this._xField),this.addValueField(e,this._xValueFields,this._xOpenField),this.addValueField(i,this._yValueFields,this._yField),this.addValueField(i,this._yValueFields,this._yOpenField)}},t.prototype.addValueField=function(e,i,r){e instanceof $e&&C(this.dataFields[r])&&i.indexOf(r)==-1&&i.push(r)},t.prototype.setCategoryAxisField=function(e,i){C(this.dataFields[e])||(this.dataFields[e]=i.dataFields.category)},t.prototype.setDateAxisField=function(e,i){C(this.dataFields[e])||(this.dataFields[e]=i.dataFields.date)},t.prototype.afterDraw=function(){a.prototype.afterDraw.call(this),this.createMask()},t.prototype.createMask=function(){if(this.mainContainer.mask){var e=this.getMaskPath();j(this.axisRanges.iterator(),function(i){i.axisFill.fillPath&&(i.axisFill.validate(),e+=i.axisFill.fillPath)}),this.mainContainer.mask.path=e}},t.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?Er({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},t.prototype.getAxisField=function(e){if(e==this.xAxis)return this.xField;if(e==this.yAxis)return this.yField},t.prototype.validateDataItems=function(){var e=this.chart;e&&(this._maxxX=fe(1e5,e.plotContainer.maxWidth*2),this._maxxY=fe(1e5,e.plotContainer.maxHeight*2));var i=this.xAxis,r=this.yAxis;i&&r&&(i.updateAxisBySeries(),r.updateAxisBySeries()),a.prototype.validateDataItems.call(this),i&&r&&(i.postProcessSeriesDataItems(this),r.postProcessSeriesDataItems(this))},t.prototype.validateDataRange=function(){var e=this.xAxis,i=this.yAxis;e&&i&&(e.dataRangeInvalid&&e.validateDataRange(),i.dataRangeInvalid&&i.validateDataRange()),a.prototype.validateDataRange.call(this)},t.prototype.validate=function(){var e=this.xAxis,i=this.yAxis;if(e&&i){e.invalid&&e.validate(),i.invalid&&i.validate(),this.y=i.pixelY,this.x=e.pixelX,this._showBullets=!0;var r=this.minBulletDistance;x(r)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<r&&(this._showBullets=!1)}if(this.updateTooltip(),!(e instanceof ft&&e.groupData&&!this.dataGrouped||i instanceof ft&&i.groupData&&!this.dataGrouped)){a.prototype.validate.call(this);var n=this.chart,s=this.maskBullets;n&&s&&n.className=="XYChart"&&((n.leftAxesContainer.layout=="vertical"||n.rightAxesContainer.layout=="vertical")&&(this.yAxis?this.bulletsContainer.mask=this.yAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0),(n.topAxesContainer.layout=="horizontal"||n.bottomAxesContainer.layout=="horizontal")&&(this.xAxis?this.bulletsContainer.mask=this.xAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0))}},Object.defineProperty(t.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var e=this.chart.xAxes.getIndex(0);if(!e)throw Error("There are no X axes on chart.");this.xAxis=e}return this._xAxis.get()}},set:function(e){this.setXAxis(e)},enumerable:!0,configurable:!0}),t.prototype.setXAxis=function(e){var i=this._xAxis.get();i!=e&&(i&&(this.dataItemsByAxis.removeKey(i.uid),this._xAxis.dispose(),i.series.removeValue(this)),this._xAxis.set(e,e.registerSeries(this)),this.dataItemsByAxis.setKey(e.uid,new Ve),this.invalidateData())},Object.defineProperty(t.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var e=this.chart.yAxes.getIndex(0);if(!e)throw Error("There are no Y axes on chart.");this.yAxis=e}return this._yAxis.get()}},set:function(e){this.setYAxis(e)},enumerable:!0,configurable:!0}),t.prototype.setYAxis=function(e){var i=this._yAxis.get();i!=e&&(i&&(this.dataItemsByAxis.removeKey(i.uid),this._yAxis.dispose(),i.series.removeValue(this)),this._yAxis.set(e,e.registerSeries(this)),e.chart instanceof Xi&&e.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(e.uid,new Ve),this.invalidateData())},Object.defineProperty(t.prototype,"baseAxis",{get:function(){var e=this.xAxis,i=this.yAxis;return!this._baseAxis&&e&&i&&(i instanceof ft&&(this._baseAxis=i),e instanceof ft&&(this._baseAxis=e),i instanceof $t&&(this._baseAxis=i),e instanceof $t&&(this._baseAxis=e),this._baseAxis||(this._baseAxis=e)),this._baseAxis},set:function(e){this._baseAxis!=e&&(this._baseAxis=e,this.invalidate())},enumerable:!0,configurable:!0}),t.prototype.addData=function(e,i,r){a.prototype.addData.call(this,e,i,r);var n=this.scrollbarSeries;n&&(this.scrollbarSeries.addData(e,i,!0),this.scrollbarSeries._parseDataFrom=this._parseDataFrom)},t.prototype.setData=function(e){a.prototype.setData.call(this,e),this.scrollbarSeries&&this.scrollbarSeries.setData(e)},t.prototype.setDataSet=function(e){var i=a.prototype.setDataSet.call(this,e);if(i){this._dataSetChanged=!0;var r=this.dataItems;if(this.resetExtremes(),r&&r.length>0){var n=this.xAxis,s=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),n instanceof ft&&n==this.baseAxis&&(this._tmin.setKey(n.uid,r.getIndex(0).dateX.getTime()),this._tmax.setKey(n.uid,r.getIndex(r.length-1).dateX.getTime()),this.dispatch("extremeschanged")),s instanceof ft&&s==this.baseAxis&&(this._tmin.setKey(s.uid,r.getIndex(0).dateY.getTime()),this._tmax.setKey(s.uid,r.getIndex(r.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return i},t.prototype.processValues=function(e){a.prototype.processValues.call(this,e);var i=this.xAxis,r=this.yAxis;if(!(!i||!r)){var n=this.dataItems,s=1/0,o=-1/0,l=1/0,u=-1/0,h=this.startIndex,p=this.endIndex,d=h,c=p;e||(h=0,p=this.dataItems.length);for(var f=h;f<p;f++){var m=n.getIndex(f);this.getStackValue(m,e);var y=m.getValue("valueX","stack"),g=m.getValue("valueY","stack");e||(y=m.getValue("valueX","stackTrue"),g=m.getValue("valueY","stackTrue")),s=Se(m.getMin(this._xValueFields,e,y),s),l=Se(m.getMin(this._yValueFields,e,g),l),o=fe(m.getMax(this._xValueFields,e,y),o),u=fe(m.getMax(this._yValueFields,e,g),u),this.stacked&&(this.baseAxis==i&&(g<l&&(l=g),g>u&&(u=g)),this.baseAxis==r&&(y<s&&(s=y),y>o&&(o=y)))}i.processSeriesDataItems(),r.processSeriesDataItems();var v=i.uid,b=r.uid;if(this.xAxis instanceof $e&&(s==1/0||o==-1/0)){this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof $e&&(l==1/0||u==-1/0)){this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(!e&&(this._tmin.getKey(v)!=s||this._tmax.getKey(v)!=o||this._tmin.getKey(b)!=l||this._tmax.getKey(b)!=u)){this._tmin.setKey(v,s),this._tmax.setKey(v,o),this._tmin.setKey(b,l),this._tmax.setKey(b,u);var P=this.stackedSeries;P&&(P.isDisposed()?this.stackedSeries=void 0:P.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=d||p!=c){s=1/0,o=-1/0,l=1/0,u=-1/0;for(var f=d;f<c;f++){var m=n.getIndex(f);this.getStackValue(m,e);var y=m.getValue("valueX","stack"),g=m.getValue("valueY","stack");e||(y=m.getValue("valueX","stackTrue"),g=m.getValue("valueY","stackTrue")),s=Se(m.getMin(this._xValueFields,e,y),s),l=Se(m.getMin(this._yValueFields,e,g),l),o=fe(m.getMax(this._xValueFields,e,y),o),u=fe(m.getMax(this._yValueFields,e,g),u),this.stacked&&(this.baseAxis==i&&(g<l&&(l=g),g>u&&(u=g)),this.baseAxis==r&&(y<s&&(s=y),y>o&&(o=y)))}}if(this.xAxis instanceof $e&&(s==1/0||o==-1/0)){this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof $e&&(l==1/0||u==-1/0)){this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),this.dispatchImmediately("selectionextremeschanged");return}if((this._smin.getKey(v)!=s||this._smax.getKey(v)!=o||this._smin.getKey(b)!=l||this._smax.getKey(b)!=u)&&(this._smin.setKey(v,s),this._smax.setKey(v,o),this._smin.setKey(b,l),this._smax.setKey(b,u),this.appeared||this.start!=0||this.end!=1||this.dataItems!=this.mainDataSet)){var w=!1;if(r instanceof $e&&!(r instanceof ft)){var T=this._tmin.getKey(b);(!x(T)||(this.usesShowFields||this._dataSetChanged||i instanceof ft&&i.groupData&&this.isShowing)&&l<T||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(b,l),w=!0);var F=this._tmax.getKey(b);(!x(F)||(this.usesShowFields||this._dataSetChanged||i instanceof ft&&i.groupData&&this.isShowing)&&u>F||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(b,u),w=!0)}if(i instanceof $e&&!(i instanceof ft)){var T=this._tmin.getKey(v);(!x(T)||(this.usesShowFields||this._dataSetChanged||r instanceof ft&&r.groupData&&this.isShowing)&&s<T||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(v,s),w=!0);var F=this._tmax.getKey(v);(!x(F)||(this.usesShowFields||this._dataSetChanged||r instanceof ft&&r.groupData&&this.isShowing)&&o>F||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(v,o),w=!0)}w&&this.dispatchImmediately("extremeschanged"),this.start==0&&this.end==1&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},t.prototype.hideTooltip=function(e){a.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},t.prototype.showTooltipAtPosition=function(e,i){var r;if(this.visible&&!this.isHiding&&!this.isShowing){var n=this._xAxis.get(),s=this._yAxis.get();n==this.baseAxis&&(r=n.getSeriesDataItem(this,n.toAxisPosition(e),this.snapTooltip)),s==this.baseAxis&&(r=s.getSeriesDataItem(this,s.toAxisPosition(i),this.snapTooltip));var o=this.showTooltipAtDataItem(r);if(o)return o;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},t.prototype.getAdjustedXLocation=function(e,i,r){return e.locations[i]},t.prototype.getAdjustedYLocation=function(e,i,r){return e.locations[i]},t.prototype.showTooltipAtDataItem=function(e){var i,r,n=this.chart.cursor;if(n&&n.hideSeriesTooltipsOnSelection&&n.selection.visible&&n.downPoint){this.hideTooltip();return}if(this.returnBulletDefaultState(e),e&&e.visible){if(this.updateLegendValue(e),this.cursorTooltipEnabled){this.tooltipDataItem=e;var s=this.tooltipXField,o=this.tooltipYField;if(C(e[s])&&C(e[o])){var l=this.getPoint(e,s,o,this.getAdjustedXLocation(e,s),this.getAdjustedYLocation(e,o));if(l&&!(this.chart.className=="XYChart"&&(l.y<-1||l.y>this.yAxis.pixelHeight+1||l.x<-1||l.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=l.x,this.tooltipY=l.y,this._prevTooltipDataItem!=e&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:e}),this._prevTooltipDataItem=e),this.cursorHoverEnabled)try{for(var u=ps(e.sprites),h=u.next();!h.done;h=u.next()){var p=h.value;!p.parent.visible||p.isHidden||p.__disabled||p.disabled||p.isHiding||(p.interactions.isRealHover||(p.dispatchImmediately("over"),p.interactions.isRealHover=!0),p.isHover=!0)}}catch(d){i={error:d}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return this.showTooltip()?Bi({x:l.x,y:l.y},this):void 0}}}}else this.updateLegendValue(e,!0)},t.prototype.returnBulletDefaultState=function(e){var i,r;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=e)try{for(var n=ps(this._prevTooltipDataItem.sprites),s=n.next();!s.done;s=n.next()){var o=s.value;if(o.isDisposed())this._prevTooltipDataItem=void 0;else{var l=o.interactions.isRealHover;o.isHover=!1,l&&o.dispatchImmediately("out")}}}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}},t.prototype.shouldCreateBullet=function(e,i){var r=i.xField;C(r)||(r=this.xField);var n=i.yField;if(C(n)||(n=this.yField),this.xAxis instanceof $e&&!e.hasValue([r])||this.yAxis instanceof $e&&!e.hasValue([n]))return!1;if(i.disabled){var s=i.propertyFields.disabled,o=e.dataContext;return!!(o&&o[s]===!1)}return!0},t.prototype.updateTooltip=function(){!this.hideTooltipWhileZooming&&this.tooltip&&!this.tooltip.isHidden&&!this.isHiding&&!this.isHidden&&this.tooltipDataItem&&this.showTooltipAtDataItem(this.tooltipDataItem)},t.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var i=e.dataItem,r=e.xField;C(r)||(r=this.xField);var n=e.yField;C(n)||(n=this.yField);var s=this.xAxis,o=this.yAxis;if(s instanceof $e&&!i.hasValue([r])||o instanceof $e&&!i.hasValue([n]))e.visible=!1;else{var l=this.getBulletLocationX(e,r),u=this.getBulletLocationY(e,n),h=this.getPoint(i,r,n,l,u);if(h){var p=this.xOpenField,d=this.yOpenField,c=void 0,f=void 0;if(s instanceof ft){x(l)||(l=0);var m=void 0,y=i.getWorkingValue(r);p?m=i.getWorkingValue(p):s==this.baseAxis&&(m=s.baseValue),x(m)||(m=y);var g=i.getValue("valueX","stack");if(m+=g,y+=g,m==y){var v=s.baseInterval,b=s.dateFormatter;m=ri(new Date(m),v.timeUnit,v.count,b.firstDayOfWeek,b.utc,void 0,b.timezoneMinutes,b.timezone).getTime(),y=$i(new Date(m),v.timeUnit,v.count,b.utc).getTime()}var P=void 0;s==this.baseAxis?P=m+(y-m)*l:P=m+(y-m)*(1-l),c=s.valueToPosition(P)}else if(s instanceof $e){x(l)||(l=0);var m=void 0,y=i.getWorkingValue(r);p?m=i.getWorkingValue(p):m=s.baseValue;var g=i.getValue("valueX","stack");m+=g,y+=g;var P=m+(y-m)*(1-l);c=s.valueToPosition(P)}else if(s instanceof $t){var w=this.getAdjustedXLocation(i,r,e.locationX),T=this.getAdjustedXLocation(i,p,e.locationX);c=s.categoryToPosition(i[r],w);var F=void 0;p&&(F=s.categoryToPosition(i[p],T)),x(F)||(F=1),c=F+(c-F)*l}if(o instanceof ft){x(u)||(u=0);var m=void 0,y=i.getWorkingValue(n);d?m=i.getWorkingValue(d):o==this.baseAxis&&(m=o.baseValue),x(m)||(m=y);var g=i.getValue("valueY","stack");if(m+=g,y+=g,m==y){var v=o.baseInterval,b=o.dateFormatter;m=ri(new Date(m),v.timeUnit,v.count,b.firstDayOfWeek,b.utc,void 0,b.timezoneMinutes,b.timezone).getTime(),y=$i(new Date(m),v.timeUnit,v.count,b.utc).getTime()}var P=void 0;o==this.baseAxis?P=m+(y-m)*u:P=m+(y-m)*(1-u),f=o.valueToPosition(P)}else if(o instanceof $e){x(u)||(u=0);var m=void 0,y=i.getWorkingValue(n);d?m=i.getWorkingValue(d):m=o.baseValue;var g=i.getValue("valueY","stack");m+=g,y+=g;var P=m+(y-m)*(1-u);f=o.valueToPosition(P)}else if(o instanceof $t){f=o.categoryToPosition(i[n],u);var D=this.getAdjustedYLocation(i,n,e.locationY),O=this.getAdjustedYLocation(i,d,e.locationY);f=o.categoryToPosition(i[n],D);var N=void 0;d&&(N=o.categoryToPosition(i[d],O)),x(N)||(N=1),f=N+(f-N)*u}e.visible=!0,this.positionBulletReal(e,c,f)}else e.visible=!1}},t.prototype.positionBulletReal=function(e,i,r){e.x=this.xAxis.renderer.positionToPoint(i,r).x,e.y=this.yAxis.renderer.positionToPoint(r,i).y},t.prototype.getBulletLocationX=function(e,i){var r=e.locationX,n=e.dataItem;return x(r)||(r=n.workingLocations[i]),r},t.prototype.getBulletLocationY=function(e,i){var r=e.locationY,n=e.dataItem;return x(r)||(r=n.workingLocations[i]),r},t.prototype.updateStacking=function(){var e=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(i){i.baseAxis==e.baseAxis&&(i.stackedSeries=void 0,i.invalidateDataItems(),i.invalidateProcessedData())})},Object.defineProperty(t.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(e){if(this.setPropertyValue("stacked",e,!0)){this.updateStacking();var i=this.xAxis,r=this.yAxis;if(!e){var n;i!=this.baseAxis&&i instanceof $e&&(n=this.xField),r!=this.baseAxis&&r instanceof $e&&(n=this.yField),n&&this.dataItems.each(function(s){s.setCalculatedValue(n,0,"stack"),s.setCalculatedValue(n,0,"stackTrue")})}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),t.prototype.show=function(e){var i=this;this.isHidden&&(this.appeared&&this.xAxis instanceof ft&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof ft&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0)));var r;this.xAxis instanceof $e&&this.xAxis!=this.baseAxis&&(r=this._xValueFields),this.yAxis instanceof $e&&this.yAxis!=this.baseAxis&&(r=this._yValueFields);var n=this.startIndex,s=this.endIndex,o=0,l=this.defaultState.transitionDuration;x(e)&&(l=e),Ce.animationsEnabled||(l=0);var u;j(Gr(this.dataItems.iterator()),function(p){var d=p[0],c=p[1],f=l;(d<i.startIndex-10||d>i.endIndex+10)&&(f=0,o=0),i.sequencedInterpolation&&f>0&&(o=i.sequencedInterpolationDelay*d+l*(d-n)/(s-n)),u=c.show(f,o,r)}),this.dataSets.each(function(p,d){d!=i.dataItems&&d.each(function(c){c.events.disable(),c.show(0,0,r),c.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(p){p.events.disable(),p.show(0,0,r),p.events.enable()});var h=a.prototype.show.call(this,e);return u&&!u.isFinished()&&(h=u),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},t.prototype.hide=function(e){var i=this,r,n,s=this.xAxis;s instanceof $e&&s!=this.baseAxis&&(r=this._xValueFields,this.stacked||s.minZoomed<s.baseValue&&s.maxZoomed>s.baseValue||this.stackedSeries?n=s.baseValue:n=s.min);var o=this.yAxis;o instanceof $e&&o!=this.baseAxis&&(r=this._yValueFields,this.stacked||o.minZoomed<o.baseValue&&o.maxZoomed>o.baseValue||this.stackedSeries?n=o.baseValue:n=o.min);var l=this.startIndex,u=this.endIndex,h=this.hiddenState.transitionDuration;x(e)&&(h=e),Ce.animationsEnabled||(h=0);var p=0,d;j(Gr(this.dataItems.iterator()),function(f){var m=f[0],y=f[1],g=h;(m<i.startIndex-10||m>i.endIndex+10)&&(g=0),g==0?y.hide(0,0,n,r):(i.sequencedInterpolation&&g>0&&(p=i.sequencedInterpolationDelay*m+h*(m-l)/(u-l)),d=y.hide(g,p,n,r))}),this.dataSets.each(function(f,m){m!=i.dataItems&&m.each(function(y){y.events.disable(),y.hide(0,0,n,r),y.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(f){f.events.disable(),f.hide(0,0,n,r),f.events.enable()});var c=a.prototype.hide.call(this,h);return c&&!c.isFinished()&&c.delay(p),d&&!d.isFinished()&&(c=d),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),c},t.prototype.handleDataItemWorkingValueChange=function(e,i){a.prototype.handleDataItemWorkingValueChange.call(this,e,i);var r=this.baseAxis.series;j(r.iterator(),function(n){(n.stacked||n.stackedSeries)&&n.invalidateProcessedData()})},t.prototype.getStackValue=function(e,i){var r=this,n=this.xAxis,s=this.yAxis;if(!(!this.stacked||!n||!s)){var o=this.chart,l=o.series.indexOf(this),u;if(n!=this.baseAxis&&n instanceof $e&&(u=this.xField),s!=this.baseAxis&&s instanceof $e&&(u=this.yField),!u)return;e.setCalculatedValue(u,0,"stack"),e.setCalculatedValue(u,0,"stackTrue"),ii(o.series.range(0,l).backwards().iterator(),function(h){if(h.xAxis==n&&h.yAxis==s&&h.className==r.className){h.stackedSeries=r;var p=h.dataItems.getIndex(e.index);if(p&&p.hasValue(r._xValueFields)&&p.hasValue(r._yValueFields)){var d=e.getValue(u),c=void 0,f=p.getValue(u,"stackTrue");f==null&&(f=0);var m=p.getValue(u)+f;if(c=p.getWorkingValue(u)+p.getValue(u,"stack"),r.stackToNegative){if(d>=0&&m>=0||d<0&&m<0)return e.setCalculatedValue(u,c,"stack"),e.setCalculatedValue(u,m,"stackTrue"),!1;if(!h.stacked)return!1}else return e.setCalculatedValue(u,c,"stack"),e.setCalculatedValue(u,m,"stackTrue"),!1}else if(!h.stacked)return!1}return!0})}},Object.defineProperty(t.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(e){this.setPropertyValue("stackToNegative",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(e){this._tooltipXField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(e){this._tooltipYField=e},enumerable:!0,configurable:!0}),t.prototype.min=function(e){return this._tmin.getKey(e.uid)},t.prototype.max=function(e){return this._tmax.getKey(e.uid)},t.prototype.selectionMin=function(e){var i=this._smin.getKey(e.uid);return i},t.prototype.selectionMax=function(e){var i=this._smax.getKey(e.uid);return i},t.prototype.processConfig=function(e){if(e){if(C(e.baseAxis)&&ye(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),C(e.xAxis)&&ye(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),C(e.yAxis)&&ye(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),C(e.axisRanges)&&Je(e.axisRanges))for(var i=0,r=e.axisRanges.length;i<r;i++){var n=e.axisRanges[i];C(n.type)||(n.type="AxisDataItem"),C(n.axis)&&ye(n.axis)&&this.map.hasKey(n.axis)?n.component=this.map.getKey(n.axis):C(n.component)&&ye(n.component)&&this.map.hasKey(n.component)&&(n.component=this.map.getKey(n.component))}(!C(e.dataFields)||!He(e.dataFields))&&this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}a.prototype.processConfig.call(this,e)},t.prototype.getPoint=function(e,i,r,n,s,o,l){if(this.xAxis&&this.yAxis){var u=this.xAxis.getX(e,i,n),h=this.yAxis.getY(e,r,s);return u=ee(u,-this._maxxX,this._maxxX),h=ee(h,-this._maxxY,this._maxxY),{x:u,y:h}}},t.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var e="";se(this.dataFields,function(i,r){e+="{"+i+"} "}),this.itemReaderText=e,this._itemReaderTextChanged=!1}},Object.defineProperty(t.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(e){this.setPropertyValue("cursorHoverEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(e){this.setPropertyValue("excludeFromTotal",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e);var i=this.chart;i&&(e?this.bulletsContainer.parent=i.bulletsContainer:this.bulletsContainer.parent=i.axisBulletsContainer)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){this.groupFields=Hi(e.groupFields,{}),a.prototype.copyFrom.call(this,e)},t.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),a.prototype.dispose.call(this)},t})(Fn);S.registeredClasses.XYSeries=Qr;S.registeredClasses.XYSeriesDataItem=As;var Wo=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(ne);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var r=e.createChild(ne);return e.strokeSprite=r,r.shouldClone=!1,r.fill=oe(),r.setElement(e.paper.add("path")),r.isMeasured=!1,e._disposers.push(r),e}return t.prototype.drawSegment=function(e,i,r,n){if(!this.disabled)if(e.length>0&&i.length>0&&x(e[0].x)&&x(e[0].y)){var s=X({x:e[0].x-.2,y:e[0].y-.2})+X(e[0]),o=this.series;o.smoothing=="bezier"?s+=new Vr(r,n).smooth(e):o.smoothing=="monotoneX"?s+=new Jc({closed:!1}).smooth(e):o.smoothing=="monotoneY"&&(s+=new ef({closed:!1}).smooth(e)),this.strokeOpacity==0||this.strokeSprite.strokeOpacity==0||(this.strokeSprite.path=s),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&x(i[0].x)&&x(i[0].y)&&(s+=R(i[0]),o.smoothing=="bezier"?s+=new Vr(r,n).smooth(i):o.smoothing=="monotoneX"?s+=new Jc({closed:!1}).smooth(i):o.smoothing=="monotoneY"&&(s+=new ef({closed:!1}).smooth(i)),s+=R(e[0]),s+=it(),this.fillSprite.path=s)}else this.fillSprite.path="",this.strokeSprite.path=""},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e);var i=this.strokeSprite;xt(e,i.properties,ot),i.events.copyFrom(e.strokeSprite.events),i.fillOpacity=0;var r=this.fillSprite;xt(e,r.properties,ot),r.events.copyFrom(e.fillSprite.events),r.strokeOpacity=0},t})(te);S.registeredClasses.LineSeriesSegment=Wo;var Vg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return t})(Ds);var vu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return t.prototype.formatLabel=function(e,i){return this.durationFormatter.format(e,i||this.axisDurationFormat)},t.prototype.adjustMinMax=function(e,i,r,n,s){var o,l,u,h=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),h=="millisecond"||h=="second"||h=="minute"||h=="hour"){n<=1&&(n=1),n=Math.round(n);var p=e,d=i;r===0&&(r=Math.abs(i));var c=r/n,f=[60,30,20,15,10,2,1],m=1;h=="hour"&&(f=[24,12,6,4,2,1]);try{for(var y=ps(f),g=y.next();!g.done;g=y.next()){var v=g.value;if(r/v>n){m=v;break}}}catch(D){o={error:D}}finally{try{g&&!g.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}var b=Math.ceil((i-e)/m/n),P=Math.log(Math.abs(b))*Math.LOG10E,w=Math.pow(10,Math.floor(P))/10,T=b/w,F=Ty(f,T);b=F*w,c=m*b,this.durationFormatter.getValueUnit(c,this.baseUnit),e=Math.floor(e/c)*c,i=Math.ceil(i/c)*c,s&&(e-=c,e<0&&p>=0&&(e=0),i+=c,i>0&&d<=0&&(i=0)),u={min:e,max:i,step:c}}else u=a.prototype.adjustMinMax.call(this,e,i,r,n,s);return this.axisDurationFormat=this.durationFormatter.getFormat(u.step,u.max,this.baseUnit),u},Object.defineProperty(t.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(e){this._tooltipDurationFormat=e},enumerable:!0,configurable:!0}),t.prototype.getTooltipText=function(e){var i=z(this.positionToValue(e),this._stepDecimalPlaces),r=this.formatLabel(i,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},Object.defineProperty(t.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit!=e&&(this._baseUnit=e,this.durationFormatter.baseUnit=e,this.invalidate())},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},t})($e);S.registeredClasses.DurationAxis=vu;S.registeredClasses.DurationAxisDataItem=Vg;var Ls=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="LineSeriesDataItem",e}return t})(As);var qo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.minDistance=.5,e.segments=new We(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new Ie(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new fs(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(te),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},t.prototype.createSegment=function(){return new Wo},t.prototype.createDataItem=function(){return new Ls},t.prototype.setInitialWorkingValues=function(e){var i=this._yAxis.get(),r=this._xAxis.get();if(this.appeared&&this.visible){var n=this.dataItems.getIndex(e.index-1);if(e.component=this,this.baseAxis==r&&i instanceof $e){var s=i.minZoomed;if(n&&(s=n.values.valueY.workingValue),e.setWorkingValue("valueY",s,0),e.setWorkingValue("valueY",e.values.valueY.value),r instanceof ft)e.setWorkingLocation("dateX",e.locations.dateX-1,0),e.setWorkingLocation("dateX",e.locations.dateX);else if(r instanceof vu&&n){var o=e.valueX;e.setWorkingValue("valueX",n.valueX,0),e.setWorkingValue("valueX",o)}}if(this.baseAxis==i&&r instanceof $e){var l=r.minZoomed;if(n&&(l=n.values.valueX.workingValue),e.setWorkingValue("valueX",l,0),e.setWorkingValue("valueX",e.values.valueX.value),i instanceof ft)e.setWorkingLocation("dateY",e.locations.dateX-1,0),e.setWorkingLocation("dateY",e.locations.dateY);else if(i instanceof vu&&n){var o=e.valueY;e.setWorkingValue("valueY",n.valueY,0),e.setWorkingValue("valueY",o)}}}else this.baseAxis==r&&i instanceof $e&&(r instanceof ft&&e.setWorkingLocation("dateX",e.locations.dateX),r instanceof $t&&e.setWorkingLocation("categoryX",e.locations.categoryX)),this.baseAxis==i&&r instanceof $e&&(i instanceof ft&&e.setWorkingLocation("dateY",e.locations.dateY),i instanceof $t&&e.setWorkingLocation("categoryY",e.locations.categoryY))},t.prototype.updateLegendValue=function(e,i){a.prototype.updateLegendValue.call(this,e,i),e&&e.segment&&(this.tooltipColorSource=e.segment)},t.prototype.validate=function(){var e=this;a.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),j(this.axisRanges.iterator(),function(i){e.openSegmentWrapper(e._adjustedStartIndex,i)}),j(this._segmentsIterator.iterator(),function(i){i.__disabled=!0}))},t.prototype.sliceData=function(){for(var e=this.startIndex,i=this.endIndex,r=this.startIndex-1;r>=0;r--){var n=this.dataItems.getIndex(r);if(n&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){e=r;break}}this._adjustedStartIndex=this.findAdjustedIndex(e,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);for(var r=this.endIndex,s=this.dataItems.length;r<s;r++){var n=this.dataItems.getIndex(r);if(n&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){i=r+1;break}}this._workingStartIndex=e,this._workingEndIndex=i},t.prototype.findAdjustedIndex=function(e,i){var r=this,n=this.propertyFields,s=e;return K(i,function(o){if(C(n[o]))for(var l=s;l>=0;l--){var u=r.dataItems.getIndex(l);if(u&&C(u.properties[o])){e>l&&(e=l);break}}}),e},t.prototype.openSegmentWrapper=function(e,i){var r={index:e,axisRange:i};do r=this.openSegment(r.index,r.axisRange);while(r)},t.prototype.getSegment=function(){var e=this._segmentsIterator.getFirst();return e.series=this,e.isDisposed()?(this.segments.removeValue(e),this.getSegment()):e},t.prototype.openSegment=function(e,i){var r=!1,n=[];e=Math.min(e,this.dataItems.length);var s=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var o,l=!1,u=this.getSegment();u.strokeDasharray=void 0,u.__disabled=!1,i?(u.parent=i.contents,xt(i.contents,u,ot)):(xt(this,u,ot),u.filters.clear(),u.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var h=this.connect,p=!1,d=e;d<s;d++){var c=this.dataItems.getIndex(d);if(c.segment=u,c.hasProperties&&(d==e?this.updateSegmentProperties(c.properties,u):l=this.updateSegmentProperties(c.properties,u,!0)),c.hasValue(this._xValueFields)&&c.hasValue(this._yValueFields))this.addPoints(n,c,this.xField,this.yField),p=!0;else{if(d==e)continue;if(!h&&p){o=d;break}}if(o=d,this.baseAxis instanceof ft){var f=this.dataItems.getIndex(d+1);if(f&&this.baseAxis.makeGap(f,c)){r=!0;break}}if(l)break}return this.closeSegment(u,n,e,o,i,r)},t.prototype.addPoints=function(e,i,r,n,s){var o=this.getPoint(i,r,n,i.workingLocations[r],i.workingLocations[n]);s||(i.point=o),e.push(o)},t.prototype.closeSegment=function(e,i,r,n,s,o){var l=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var u=n;u>=r;u--){var h=this.dataItems.getIndex(u);h.hasValue(this._xValueFields)&&h.hasValue(this._yValueFields)&&this.addPoints(l,h,this.xOpenField,this.yOpenField,!0)}else{var p=this.baseAxis,d=i.length,c=this.xAxis,f=this.yAxis;d>0&&(p==c?(l.push({x:i[d-1].x,y:f.basePoint.y}),l.push({x:i[0].x,y:f.basePoint.y})):(l.push({x:c.basePoint.x,y:i[d-1].y}),l.push({x:c.basePoint.x,y:i[0].y})))}return this.drawSegment(e,i,l),o&&n++,n<this._workingEndIndex-1?{index:n,axisRange:s}:null},t.prototype.drawSegment=function(e,i,r){e.drawSegment(i,r,this.tensionX,this.tensionY)},t.prototype.updateSegmentProperties=function(e,i,r){var n=!1;return se(e,function(s,o){if(C(o)){var l=i[s],u=void 0;l&&(l.toString?u=l.toString():u=l);var h=void 0;o&&(o.toString?h=o.toString():h=o),l==o||u!=null&&h!=null&&u==h||(r||(i[s]=o),n=!0)}}),n},Object.defineProperty(t.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(e){this.setPropertyValue("connect",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0)},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e){var i=this,r=e.pixelWidth,n=e.pixelHeight;e.disposeChildren();var s=e.createChild(Ii);if(s.shouldClone=!1,xt(this,s,ot),s.x2=r,s.y=n/2,s.y2=1e-5,s.visible=!0,this.fillOpacity>0){var o=e.createChild(Tn);xt(this,o,ot),o.width=r,o.height=n,o.y=0,o.strokeOpacity=0,o.visible=!0,s.y=0}var l=e.dataItem;l.color=this.stroke,l.colorOrig=this.fill,ii(this.bullets.iterator(),function(u){if(u instanceof Fi&&!u.copyToLegendMarker)return!1;var h=!1;if(u instanceof te&&j(u.children.iterator(),function(d){if(d instanceof Rt)return h=!0,!0}),!h){var p=u.clone();return p.parent=e,p.isMeasured=!0,p.tooltipText=void 0,p.x=r/2,i.fillOpacity>0?p.y=0:p.y=n/2,p.visible=!0,C(p.fill)||(p.fill=i.fill),C(p.stroke)||(p.stroke=i.stroke),!1}})},t.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(t.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(e){this.setPropertyValue("autoGapCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(e){this.setPropertyValue("smoothing",e,!0)},enumerable:!0,configurable:!0}),t})(Qr);S.registeredClasses.LineSeries=qo;S.registeredClasses.LineSeriesDataItem=Ls;var kn=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(t.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(e){if(this.setPropertyValue("relativeRotation",e,!0),!C(e)){this.rotation=void 0;var i=this.dataItem;i&&i.component&&i.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(e){this.setPropertyValue("bent",e,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),e?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),t.prototype.pixelRadius=function(e){var i=1;return this.inside&&(i=-1),Ke(this.radius,e)*i},t.prototype.pixelRadiusY=function(e,i){var r=1;this.inside&&(r=-1);var n=this.radius;return x(n)?(n*=i/e,Ke(n,e)*r):Ke(n,i)*r},t.prototype.fixPosition=function(e,i,r,n,s){x(r)||(r=i),x(n)||(n=0),x(s)||(s=0);var o={x:i*Q(e),y:r*Z(e)};this.invalid&&this.validate();var l=!1,u=this.radius;(u instanceof xe&&u.value<0||u<0)&&(l=!0);var h=this.relativeRotation,p=this.pixelRadius(i);if(this.bent){var d={x:(i+p)*Q(e+180),y:(r+p*r/i)*Z(e+180)};this.path=X(d)+qt(e+180,360,i+p,r+p*r/i),this.textPathElement&&this.textPathElement.attr({startOffset:this.locationOnPath*100+"%"});return}if(x(h)){this.horizontalCenter="none",this.verticalCenter="none",e=Ar(e,-180,180);var c=this.bbox.width,f=this.bbox.height,m=this.pixelPaddingBottom,y=this.pixelPaddingTop,g=this.pixelPaddingLeft,v=this.pixelPaddingRight;e>90||e<-90?h==-90&&(h=90,c=0):(h==-90&&(f=-f),h==90&&(h=-90,c=-g-v,f=-f-y-m)),this.rotation=h+e+90;var b=Z(h)/2,P=Q(h)/2,w=this.rotation;this.dx=f*b*Z(w)-c*P*Q(w),this.dy=-f*b*Q(w)-c*P*Z(w),this.inside?e>90||e<-90?p-=(m+y)*Q(h)+(g+v)*Z(h):p+=(m+this.bbox.height+y)*Q(h)+(g+v+this.bbox.width)*Z(h):p+=(f+m+y)*Q(h)+(c+g+v)*Z(h),o.x+=Q(e)*p,o.y+=Z(e)*p*r/i}else this.horizontalCenter="middle",this.verticalCenter="middle",l?(this.dx=0,this.dy=0,o.x=(i+p)*Q(e),o.y=(r+p*r/i)*Z(e)):(this.dy=this._measuredHeight/2*Z(e),this.dx=this._measuredWidth/2*Q(e),o.x+=Q(e)*p,o.y+=Z(e)*p*r/i);o.x+=n,o.y+=s,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},t})(jo);S.registeredClasses.AxisLabelCircular=kn;var zo=(function(a){_(t,a);function t(e){var i=a.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=W(100),i.applyTheme(),i}return t.prototype.draw=function(){if(a.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,C(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),t})(An);S.registeredClasses.AxisFillCircular=zo;var Hh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),t})(Ln);S.registeredClasses.GridCircular=Hh;var Uh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=W(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return t.prototype.setAxis=function(e){var i=this;a.prototype.setAxis.call(this,e),e.isMeasured=!1;var r=e.tooltip;r.adapter.add("dx",function(n,s){var o=Ti({x:s.pixelX,y:s.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(o.y,o.x))-o.x}),r.adapter.add("dy",function(n,s){var o=Ti({x:s.pixelX,y:s.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(o.y,o.x))-o.y})},t.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},Object.defineProperty(t.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return Vt(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){var e=this.chart,i=this.getPropertyValue("innerRadius");if(e){if(!C(i))i=e.innerRadius,i instanceof xe&&e&&(i=W(i.value*e.innerRadiusModifyer*100));else if(i instanceof xe&&e){var r=e.mr,n=i.value;n=Math.max(r*n,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,i=W(n*100)}return i}},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(e){this.setPropertyValue("useChartAngles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return Vt(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,i){x(i)||(i=1);var r=this.positionToCoordinate(e),n=this.startAngle+(this.endAngle-this.startAngle)*r/this.axisLength,s=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var l=ee(this.axisRendererY.positionToCoordinate(i),0,1/0);l==0&&(l=1e-6);var u={x:l*Q(n),y:l*Z(n)};return u}return{x:Q(n)*o+(s-o)*Q(n)*i,y:Z(n)*o+(s-o)*Z(n)*i}},t.prototype.positionToAngle=function(e){var i=this.axis,r=(this.endAngle-this.startAngle)/(i.end-i.start),n;return i.renderer.inversed?n=this.startAngle+(i.end-e)*r:n=this.startAngle+(e-i.start)*r,z(n,3)},t.prototype.angleToPosition=function(e){var i=this.axis,r=(this.endAngle-this.startAngle)/(i.end-i.start),n;return i.renderer.inversed?n=i.end-(e-this.startAngle)/r:n=(e-this.startAngle)/r+i.start,z(n,5)},t.prototype.updateAxisLine=function(){var e=this.pixelRadius,i=this.startAngle,r=this.endAngle,n=Se(360,r-i);this.line.path=X({x:e*Q(i),y:e*Z(i)})+qt(i,n,e,e)},t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);if(x(n.x)&&x(n.y)&&e.element){var s=_a*Math.atan2(n.y,n.x),o=Vt(C(e.radius)?e.radius:W(100),this.pixelRadius),l=Vt(e.innerRadius,this.pixelRadius);e.zIndex=0;var u=Vt(x(l)?l:this.innerRadius,this.pixelRadiusReal,!0);x(u)||(u=0),e.path=X({x:u*Q(s),y:u*Z(s)})+R({x:o*Q(s),y:o*Z(s)})}this.toggleVisibility(e,i,0,1)},t.prototype.updateTickElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);if(e.element){var s=this.pixelRadius,o=_a*Math.atan2(n.y,n.x),l=e.length;e.inside&&(l=-l),e.zIndex=1,e.path=X({x:s*Q(o),y:s*Z(o)})+R({x:(s+l)*Q(o),y:(s+l)*Z(o)})}this.toggleVisibility(e,i,0,1)},t.prototype.updateBullet=function(e,i,r){var n=.5;e instanceof Ma&&(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i),o=this.pixelRadius,l=_a*Math.atan2(s.y,s.x);s={x:o*Q(l),y:o*Z(l)},this.positionItem(e,s),this.toggleVisibility(e,i,0,1)},t.prototype.updateLabelElement=function(e,i,r,n){C(n)||(n=e.location),i=i+(r-i)*n,e.fixPosition(this.positionToAngle(i),this.pixelRadius),e.zIndex=2,this.toggleVisibility(e,i,this.minLabelPosition,this.maxLabelPosition)},t.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),t.prototype.getPositionRangePath=function(e,i,r,n,s){var o="";if(x(e)&&x(i)){C(r)||(r=this.radius),e=fe(e,this.axis.start),i=Se(i,this.axis.end),i<e&&(i=e);var l=Vt(r,this.pixelRadius),u=Vt(n,this.pixelRadius,!0),h=this.positionToAngle(e),p=this.positionToAngle(i),d=p-h;o=Zr(h,d,l,u,l,s)}return o},t.prototype.createGrid=function(){return new Hh},t.prototype.createFill=function(e){return new zo(e)},t.prototype.createLabel=function(){return new kn},t.prototype.pointToPosition=function(e){var i=Ar(kt(e),this.startAngle,this.endAngle);return this.coordinateToPosition((i-this.startAngle)/360*this.axisLength)},t})(En);S.registeredClasses.AxisRendererCircular=Uh;var Sr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",W(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return Ke(this.radius,Se(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){var e=this.pixelRadius;this._bbox={x:-e,y:-e,width:e*2,height:e*2}},t})(ne);S.registeredClasses.Circle=Sr;var Gh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=W(100),e.bottomSide=W(100),e.leftSide=W(100),e.rightSide=W(100),e.isMeasured=!1,e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,r=Ke(this.topSide,e),n=Ke(this.bottomSide,e),s=Ke(this.leftSide,i),o=Ke(this.rightSide,i),l=(e-r)/2,u=(i-s)/2,h=e-(e-r)/2,p=(i-o)/2,d=e-(e-n)/2,c=i-(i-o)/2,f=(e-n)/2,m=i-(i-s)/2,y="",g="",v="",b="";if(C(this.horizontalNeck)){var P=this.horizontalNeck.value;y=R({x:e*P,y:Math.max(u,p)}),v=R({x:e*P,y:Math.min(c,m)})}if(C(this.verticalNeck)){var w=this.verticalNeck.value;g=R({x:Math.min(h,d),y:i*w}),b=R({x:Math.max(l,f),y:i*w})}var T=X({x:l,y:u})+y+R({x:h,y:p})+g+R({x:d,y:c})+v+R({x:f,y:m})+b;this.path=T},Object.defineProperty(t.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(e){this.setPercentProperty("topSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(e){this.setPercentProperty("bottomSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(e){this.setPercentProperty("leftSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(e){this.setPercentProperty("rightSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(e){this.setPropertyValue("horizontalNeck",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(e){this.setPropertyValue("verticalNeck",e,!0)},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Trapezoid=Gh;var Yh=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._axis=new st,e.className="ClockHand";var i=new ue;e.fill=i.getFor("alternativeBackground"),e.stroke=e.fill;var r=new Sr;r.radius=5,e.pin=r,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=W(100),e.height=W(100),e.radius=W(100),e.innerRadius=W(0);var n=new Gh;return e.hand=n,e._disposers.push(e._axis),e.applyTheme(),e}return t.prototype.validate=function(){a.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var i=Math.max(this.startWidth,this.endWidth);if(e.height=i,e.leftSide=W(this.startWidth/i*100),e.rightSide=W(this.endWidth/i*100),this.axis){var r=this.axis.renderer,n=Vt(this.innerRadius,r.pixelRadius),s=Vt(this.radius,r.pixelRadius);e.x=n,e.y=-i/2,e.width=s-n}},Object.defineProperty(t.prototype,"pin",{get:function(){return this._pin},set:function(e){this._pin&&this.removeDispose(this._pin),e&&(this._pin=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hand",{get:function(){return this._hand},set:function(e){this._hand&&this.removeDispose(this._hand),e&&(this._hand=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(e){this.setPropertyValue("startWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(e){this.setPropertyValue("endWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(e){this.setPropertyValue("rotationDirection",e)},enumerable:!0,configurable:!0}),t.prototype.showValue=function(e,i,r){if(this._value=e,e!=null&&(x(i)||(i=0),this.axis)){var n=this.axis.renderer,s=n.positionToAngle(this.axis.anyToPosition(e)),o=this.rotation;this.rotationDirection=="clockWise"&&s<o&&(this.rotation=o-360),this.rotationDirection=="counterClockWise"&&s>o&&(this.rotation=o+360),this.animate({property:"rotation",to:s},i,r)}},Object.defineProperty(t.prototype,"currentPosition",{get:function(){if(this.axis){var e=this.axis.renderer;return e.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this.showValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this.axis!=e&&this._axis.set(e,new Me([e.events.on("datavalidated",this.updateValue,this,!1),e.events.on("datarangechanged",this.updateValue,this,!1),e.events.on("dataitemsvalidated",this.updateValue,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),e){var i=e.chart;i&&(this.rotation=i.startAngle)}this.parent=e.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),t.prototype.updateValue=function(){this.value=this.value},t.prototype.processConfig=function(e){e&&C(e.axis)&&ye(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),a.prototype.processConfig.call(this,e)},t})(te);S.registeredClasses.ClockHand=Yh;var af=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return t})(Ls);var Xh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return t.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},t.prototype.createDataItem=function(){return new af},t.prototype.getPoint=function(e,i,r,n,s,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,s,l),h=this.yAxis.getY(e,r,s,l),p=Ee({x:u,y:h});p==0&&(p=1e-5);var d=this.xAxis.getAngle(e,i,n,o),c=this.chart.startAngle,f=this.chart.endAngle;if(!(d<c||d>f))return{x:p*Q(d),y:p*Z(d)}},t.prototype.addPoints=function(e,i,r,n,s){var o=this.getPoint(i,r,n,i.locations[r],i.locations[n]);o&&e.push(o)},t.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Zr(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},t.prototype.drawSegment=function(e,i,r){var n=this.yAxis,s=n.renderer;this.connectEnds&&Math.abs(s.endAngle-s.startAngle)==360&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),r.length>0&&r.unshift(r[r.length-1])),a.prototype.drawSegment.call(this,e,i,r)},Object.defineProperty(t.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(e){this.setPropertyValue("connectEnds",e,!0)},enumerable:!0,configurable:!0}),t.prototype.positionBulletReal=function(e,i,r){var n=this.xAxis,s=this.yAxis;(i<n.start||i>n.end||r<s.start||r>s.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(i,r))},t.prototype.setXAxis=function(e){a.prototype.setXAxis.call(this,e),this.updateRendererRefs()},t.prototype.setYAxis=function(e){a.prototype.setYAxis.call(this,e),this.updateRendererRefs()},t.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,i=this.yAxis.renderer;e.axisRendererY=i},t})(qo);S.registeredClasses.RadarSeries=Xh;S.registeredClasses.RadarSeriesDataItem=af;var Ho=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return t.prototype.draw=function(){var e="",i=this.pixelRadius;if(i>0){var r=this.getPoints(i);e=X(r[0])+new Vr(this.tension,this.tension).smooth(r)}var n=this.pixelInnerRadius;if(n>0){var r=this.getPoints(n);r.reverse(),e+=X(r[0])+new Vr(this.tension,this.tension).smooth(r)}this.path=e},t.prototype.getPoints=function(e){for(var i=e*Math.PI*2,r=this.waveHeight/2,n=i/Math.round(i/this.waveLength),s=n/2,o=[],l=i/n,u=0;u<=l;u++){var h=u*n/i*360,p=(u*n+s)/i*360;o.push({x:(e-r)*Q(h),y:(e-r)*Z(h)}),o.push({x:(e+r)*Q(p),y:(e+r)*Z(p)})}return o.pop(),o},Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return Ke(this.innerRadius,Se(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),t})(Sr);S.registeredClasses.WavedCircle=Ho;var Kh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._chart=new st,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=W(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return t.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},Object.defineProperty(t.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return Vt(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){var e=this.chart,i=this.getPropertyValue("innerRadius");if(e){if(!C(i))i=e.innerRadius,i instanceof xe&&e&&(i=W(i.value*e.innerRadiusModifyer*100));else if(i instanceof xe&&e){var r=e.mr,n=i.value;n=Math.max(r*n,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,i=W(n*100)}}return i},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return Vt(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,i){var r=ee(this.positionToCoordinate(e),0,1/0);return{x:r*Q(this.axisAngle),y:r*Z(this.axisAngle)}},t.prototype.updateAxisLine=function(){this.line.path=X({x:this.pixelInnerRadius*Q(this.axisAngle),y:this.pixelInnerRadius*Z(this.axisAngle)})+R({x:this.pixelRadius*Q(this.axisAngle),y:this.pixelRadius*Z(this.axisAngle)});var e=this.axis.title;e.valign="none",e.horizontalCenter="middle",e.verticalCenter="bottom",e.y=-this.axisLength/2;var i=90;this.opposite?this.inside||(i=-90):this.inside&&(i=-90),e.rotation=i},t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i),s,o=Ee(n),l=this.startAngle,u=this.endAngle,h=this.chart;if(x(o)&&e.element&&h){var p=h.xAxes.getIndex(0),d=0,c=h.series.getIndex(0);if(c&&(d=c.dataItems.length),this.gridType=="polygons"&&d>0&&c&&p&&p instanceof $t){var f=p.renderer.grid.template.location,m=p.getAngle(c.dataItems.getIndex(0),"categoryX",f);s=X({x:o*Q(m),y:o*Z(m)});for(var y=1;y<d;y++)m=p.getAngle(c.dataItems.getIndex(y),"categoryX",f),s+=R({x:o*Q(m),y:o*Z(m)});m=p.getAngle(c.dataItems.getIndex(d-1),"categoryX",p.renderer.cellEndLocation),s+=R({x:o*Q(m),y:o*Z(m)})}else s=X({x:o*Q(l),y:o*Z(l)})+qt(l,u-l,o,o);e.path=s}this.toggleVisibility(e,i,0,1)},t.prototype.updateLabelElement=function(e,i,r,n){C(n)||(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i);this.positionItem(e,s),this.toggleVisibility(e,i,this.minLabelPosition,this.maxLabelPosition)},t.prototype.updateBaseGridElement=function(){},t.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(e){this.setPropertyValue("axisAngle",Pa(e)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridType",{get:function(){var e=this.chart.xAxes.getIndex(0);return e instanceof $t?this.getPropertyValue("gridType"):"circles"},set:function(e){this.setPropertyValue("gridType",e,!0)},enumerable:!0,configurable:!0}),t.prototype.getPositionRangePath=function(e,i){var r=this.pixelInnerRadius,n=this.axisLength+r,s=ee(this.positionToCoordinate(e),r,n),o=ee(this.positionToCoordinate(i),r,n),l=this.startAngle,u=this.endAngle,h=u-l,p,d=this.chart,c=d.xAxes.getIndex(0),f=d.series.getIndex(0),m=0;if(f&&(m=f.dataItems.length),this.gridType=="polygons"&&m>0&&f&&c&&c instanceof $t){var y=c.renderer.grid.template.location,g=c.getAngle(f.dataItems.getIndex(0),"categoryX",y);p=X({x:o*Q(g),y:o*Z(g)});for(var v=1;v<m;v++)g=c.getAngle(f.dataItems.getIndex(v),"categoryX",y),p+=R({x:o*Q(g),y:o*Z(g)});g=c.getAngle(f.dataItems.getIndex(m-1),"categoryX",c.renderer.cellEndLocation),p+=R({x:o*Q(g),y:o*Z(g)}),p+=X({x:s*Q(g),y:s*Z(g)});for(var v=m-1;v>=0;v--)g=c.getAngle(f.dataItems.getIndex(v),"categoryX",y),p+=R({x:s*Q(g),y:s*Z(g)})}else p=Zr(l,h,o,s);return p},t.prototype.updateBreakElement=function(e){var i=e.startLine,r=e.endLine,n=e.fillShape,s=e.startPoint,o=e.endPoint;i.radius=Math.abs(s.y),r.radius=Math.abs(o.y),n.radius=Math.abs(o.y),n.innerRadius=Math.abs(s.y)},t.prototype.createBreakSprites=function(e){e.startLine=new Ho,e.endLine=new Ho,e.fillShape=new Ho},t.prototype.updateTooltip=function(){var e=this.axis;if(e){var i=4e3,r=-4e3,n=-4e3,s=i*2,o=i*2,l=this.axisAngle;l<0&&(l+=360);var u="vertical";(l>45&&l<135||l>225&&l<315)&&(u="horizontal"),this.axis.updateTooltip(u,{x:r,y:n,width:s,height:o})}},t.prototype.updateTickElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);if(e.element){var s=Pa(this.axisAngle+90);s/90!=Math.round(s/90)?e.pixelPerfect=!1:e.pixelPerfect=!0;var o=-e.length;e.inside&&(o*=-1),e.path=X({x:0,y:0})+R({x:o*Q(s),y:o*Z(s)})}this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateBullet=function(e,i,r){var n=.5;e instanceof Ma&&(n=e.location),i=i+(r-i)*n;var s=this.positionToPoint(i);this.positionItem(e,s),this.toggleVisibility(e,i,0,1)},t.prototype.positionToCoordinate=function(e){var i,r=this.axis,n=r.axisFullLength,s=this.pixelInnerRadius;return r.renderer.inversed?i=(r.end-e)*n+s:i=(e-r.start)*n+s,z(i,1)},t.prototype.pointToPosition=function(e){var i=Ee(e)-this.pixelInnerRadius;return this.coordinateToPosition(i)},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),t})(Ai);S.registeredClasses.AxisRendererRadial=Kh;var nf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return t})(Is);var Zh=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._axisRendererX=Uh,e._axisRendererY=Kh,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=W(80),e.innerRadius=0;var i=e.plotContainer.createChild(te);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e.axisBulletsContainer=i,e._cursorContainer=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=i.createChild(Sr),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},t.prototype.processAxis=function(e){a.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},t.prototype.handleXAxisRangeChange=function(){a.prototype.handleXAxisRangeChange.call(this),j(this.yAxes.iterator(),function(e){e.invalidate()})},t.prototype.handleYAxisRangeChange=function(){a.prototype.handleYAxisRangeChange.call(this),j(this.xAxes.iterator(),function(e){e.invalidate()})},t.prototype.processConfig=function(e){if(e&&(C(e.cursor)&&!C(e.cursor.type)&&(e.cursor.type="RadarCursor"),C(e.series)&&Je(e.series)))for(var i=0,r=e.series.length;i<r;i++)e.series[i].type=e.series[i].type||"RadarSeries";a.prototype.processConfig.call(this,e)},t.prototype.beforeDraw=function(){a.prototype.beforeDraw.call(this);var e=this.plotContainer,i=ir(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},n=e.innerWidth/i.width,s=e.innerHeight/i.height,o=this.innerRadius;if(o instanceof xe){var l=o.value,u=Math.min(n,s);this.mr=u,l=Math.max(u*l,u-Math.min(e.innerHeight,e.innerWidth))/u,r=ir(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/o.value,o=W(l*100)}i=Ta([i,r]);var h=Math.min(e.innerWidth/i.width,e.innerHeight/i.height),p=Vt(this.radius,h)*2||0,d=p/2,c=this.startAngle,f=this.endAngle;this._pixelInnerRadius=Vt(o,d),this._bulletMask.path=Zr(c,f-c,d,this._pixelInnerRadius),j(this.xAxes.iterator(),function(y){y.renderer.useChartAngles&&(y.renderer.startAngle=c,y.renderer.endAngle=f),y.width=p,y.height=p,y.renderer.pixelRadiusReal=d}),j(this.yAxes.iterator(),function(y){y.renderer.startAngle=c,y.renderer.endAngle=f,y.width=p,y.height=p,y.renderer.pixelRadiusReal=d});var m=this.cursor;m&&(m.width=p,m.height=p,m.startAngle=c,m.endAngle=f),this.radarContainer.definedBBox={x:d*i.x,y:d*i.y,width:d*i.width,height:d*i.height},this.radarContainer.validatePosition()},t.prototype.createSeries=function(){return new Xh},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),t.prototype.updateXAxis=function(e){e&&e.processRenderer()},t.prototype.updateYAxis=function(e){e&&e.processRenderer()},t})(Xi);S.registeredClasses.RadarChart=Zh;var EP=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return t})(nf);var Mg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new We(new Yh),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new Ie(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},t.prototype.processHand=function(e){var i=e.newValue;i.axis||(i.axis=this.xAxes.getIndex(0))},t.prototype.configOrder=function(e,i){return e==i?0:e=="hands"?1:i=="hands"?-1:a.prototype.configOrder.call(this,e,i)},t})(Zh);S.registeredClasses.GaugeChart=Mg;var Mr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(ne),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&e==0&&(e=.01),this.slice.path=Zr(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof yr&&this.updateGradient(this.realFill),this.realStroke instanceof yr&&this.updateGradient(this.realStroke)},t.prototype.updateGradient=function(e){e.element.attr({gradientUnits:"userSpaceOnUse"}),e.element.attr({r:this.radius}),e.cx=0,e.cy=0,e.element.attr({radius:this.radius})},Object.defineProperty(t.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var e=ir(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),i=ir(this.startAngle,this.startAngle+this.arc,this.radius);return Ta([e,i])}else return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",Pa(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){x(e)||(e=0),this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){var e=this.getPropertyValue("radius");return x(e)||(e=0),e},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return x(e)||(e=this.radius),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return Ke(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(e){this.setPropertyValue("innerCornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(e){this.setPropertyValue("shiftRadius",e),e=this.getPropertyValue("shiftRadius"),this.dx=e*this.radius*this.ix,this.dy=e*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ix",{get:function(){return Q(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iy",{get:function(){return Z(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),t.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");if(x(e))return e;var i=.5;e instanceof xe&&(i=e.value);var r=Ke(this.innerRadius,this.radius);return this.ix*(r+(this.radius-r)*i)},t.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");if(x(e))return e;var i=.5;e instanceof xe&&(i=e.value);var r=Ke(this.innerRadius,this.radius);return this.iy*(r+(this.radius-r)*i)+this.slice.dy},t})(te);S.registeredClasses.Slice=Mr;var Uo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return t.prototype.uidAttr=function(){return this.slice.uidAttr()},t.prototype.hide=function(e,i,r,n){return n||(n=["value"]),a.prototype.hide.call(this,e,i,0,n)},t.prototype.setVisibility=function(e,i){i||(e?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),a.prototype.setVisibility.call(this,e,i)},t.prototype.show=function(e,i,r){return r||(r=["value"]),a.prototype.show.call(this,e,i,r)},Object.defineProperty(t.prototype,"category",{get:function(){return this.properties.category},set:function(e){this.setProperty("category",e)},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e){this.component.createLegendMarker(e,this)},Object.defineProperty(t.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tick",{get:function(){var e=this;if(!this._tick){var i=this.component.ticks.create();this._tick=i,this.addSprite(i),this._disposers.push(i),i.parent=this.component.ticksContainer,this._disposers.push(new Fe(function(){e.component&&e.component.ticks.removeValue(i)})),i.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){var e=this;if(!this._label){var i=this.component.labels.create();this.addSprite(i),this._label=i,this._disposers.push(i),i.parent=this.component.labelsContainer,this._disposers.push(new Fe(function(){e.component&&e.component.labels.removeValue(i)})),i.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"slice",{get:function(){var e=this;if(!this._slice){var i=this.component,r=i.slices.create();this.addSprite(r),this._slice=r,this._disposers.push(r),r.parent=i.slicesContainer,this._disposers.push(new Fe(function(){i.slices.removeValue(r)})),r.visible=this.visible,i.itemsFocusable()?(C(this.component.role)||(this.component.role="menu"),C(r.role)||(r.role="menuitem"),r.focusable=!0):(C(this.component.role)||(this.component.role="list"),C(r.role)||(r.role="listitem"),r.focusable=!1),r.focusable&&(r.events.on("focus",function(n){r.readerTitle=i.populateString(i.itemReaderText,e)},void 0,!1),r.events.on("blur",function(n){r.readerTitle=""},void 0,!1)),r.hoverable&&(r.events.on("over",function(n){r.readerTitle=i.populateString(i.itemReaderText,e)},void 0,!1),r.events.on("out",function(n){r.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(e){this.setProperty("hiddenInLegend",e)},enumerable:!0,configurable:!0}),t})(Ts);var Vn=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new ka,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var i=e.createChild(te);i.shouldClone=!1,i.isMeasured=!1,e.slicesContainer=i;var r=e.createChild(te);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.ticksContainer=r;var n=e.createChild(te);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",e.labelsContainer=n,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50;var s=e.defaultState;return s.transitionEasing=Ec,e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}return t.prototype.createSlice=function(){return new ne},t.prototype.createTick=function(){return new Va},t.prototype.createLabel=function(){return new Rt},Object.defineProperty(t.prototype,"slices",{get:function(){if(!this._slices){var e=this.createSlice();e.applyOnClones=!0,this._disposers.push(e),this.initSlice(e),this._slices=new We(e),this._disposers.push(new Ie(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,this._disposers.push(e),this.initTick(e),this._ticks=new We(e),this._disposers.push(new Ie(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();e.applyOnClones=!0,this._disposers.push(e),this.initLabel(e),this._labels=new We(e),this._disposers.push(new Ie(this._labels))}return this._labels},enumerable:!0,configurable:!0}),t.prototype.createDataItem=function(){return new Uo},t.prototype.initSlice=function(e){},t.prototype.initLabel=function(e){e.text="{category}: {value.percent.formatNumber('#.0p')}",e.isMeasured=!1,e.padding(5,5,5,5)},t.prototype.initTick=function(e){},t.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),a.prototype.validateDataItems.call(this)},t.prototype.validateDataElement=function(e){var i=e.slice;i&&(i.fill==null?this.patterns?(C(i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),C(i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof _e&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next():this.colors.currentStep+=this.colors.step,i.stroke==null&&(i.stroke=i.fill)),a.prototype.validateDataElement.call(this,e),i&&e.bullets.each(function(r,n){n.fill==null&&(n.fill=i.fill),n.stroke==null&&(n.stroke=i.stroke)}),this.updateLegendValue(e)},t.prototype.validateData=function(){a.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},t.prototype.arrangeLabels=function(e){for(var i=0,r=e.length;i<r;i++){var n=e[i],s=n.label;if(s){s.invalid&&s.validate();var o=s.measuredHeight;s.visible||(o=0),s.pixelY-o/2<-this.maxHeight/2&&(s.y=-this.maxHeight/2+o/2);var l=this.getNextLabel(i+1,e),u=s.pixelY+o/2;if(l){l.invalid&&l.validate();var h=l.measuredHeight;l.visible||(h=0);var p=l.pixelY;p==null&&(p=0),p-h/2<u&&(l.y=u+h/2)}}}},t.prototype.arrangeLabels2=function(e){for(var i=this.maxHeight/2,r=e.length-1;r>=0;r--){var n=e[r],s=n.label;if(s){s.invalid&&s.validate();var o=s.measuredHeight;s.visible||(o=0),s.pixelY+o/2>i&&(s.y=i-o/2,i=s.y-o/2)}}},t.prototype.getNextLabel=function(e,i){if(i.length>=e){var r=i[e];if(r)return r.label?r.visible?r.label:this.getNextLabel(e+1,i):this.getNextLabel(e+1,i)}},Object.defineProperty(t.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e,i){j(e.children.iterator(),function(r){var n=i.slice;r.defaultState.properties.fill=n.fill,r.defaultState.properties.stroke=n.stroke,r.defaultState.properties.fillOpacity=n.fillOpacity,r.defaultState.properties.strokeOpacity=n.strokeOpacity,r.fill=n.fill,r.stroke=n.stroke,r.fillOpacity=n.fillOpacity,r.strokeOpacity=n.strokeOpacity,r.fill==null&&(r.__disabled=!0);var s=e.dataItem;s.color=n.fill,s.colorOrig=n.fill,r.addDisposer(n.events.on("propertychanged",function(o){o.property=="fill"&&(r.__disabled=!1,r.isActive||(r.fill=n.fill),r.defaultState.properties.fill=n.fill,s.color=n.fill,s.colorOrig=n.fill),o.property=="stroke"&&(r.isActive||(r.stroke=n.stroke),r.defaultState.properties.stroke=n.stroke),o.property=="strokeOpacity"&&(r.isActive||(r.strokeOpacity=n.strokeOpacity),r.defaultState.properties.strokeOpacity=n.strokeOpacity)},void 0,!1))})},t.prototype.handleSliceScale=function(e){var i=this,r=e.target,n=r.dataItem;n&&n.bullets&&j(n.bullets.iterator(),function(s){var o=s[1];i.positionBullet(o)})},t.prototype.handleSliceMove=function(e){},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(t.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(e){this.setAlignLabels(e)},enumerable:!0,configurable:!0}),t.prototype.setAlignLabels=function(e){this.setPropertyValue("alignLabels",e,!0)},Object.defineProperty(t.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(e){this.setPropertyValue("ignoreZeroValues",e,!0)},enumerable:!0,configurable:!0}),t.prototype.updateLegendValue=function(e){if(e){var i=e.legendDataItem,r=e.legendSettings;i&&r&&r&&(r.labelText&&(i.label.text=r.labelText),r.itemLabelText&&(i.label.text=r.itemLabelText),r.valueText&&(i.valueLabel.text=r.valueText),r.itemValueText&&(i.valueLabel.text=r.itemValueText))}},t})(Fn);S.registeredClasses.PercentSeries=Vn;S.registeredClasses.PercentSeriesDataItem=Uo;Dt.push({relevant:Nt.maybeXS,state:function(a,t){if(a instanceof Vn){var e=a.states.create(t),i=a.labels.template.states.create(t);i.properties.disabled=!0;var r=a.ticks.template.states.create(t);return r.properties.disabled=!0,e}return null}});var Qh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._label=new st,e._slice=new st,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.slice,i=this.label,r=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var n=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,s=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,o=void 0,l=void 0,u=void 0,h=void 0;if(r.alignLabels)o=i.pixelX-this.length,l=i.pixelY,u=i.pixelX,h=l,i.horizontalCenter=="right"&&(o+=2*this.length,u=o-this.length);else{var p=i.pixelRadius(e.radius);o=n+p*e.ix,l=s+p*e.iy,u=o,h=l}this.element.attr({points:[n,s,o,l,u,h]})}},Object.defineProperty(t.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Me([e.events.on("transformed",this.invalidate,this),e.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),t})(Va);S.registeredClasses.PieTick=Qh;var bu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return Object.defineProperty(t.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(e){this.setValue("radiusValue",e)},enumerable:!0,configurable:!0}),t.prototype.hide=function(e,i,r,n){return a.prototype.hide.call(this,e,i,0,["value","radiusValue"])},t.prototype.show=function(e,i,r){return a.prototype.show.call(this,e,i,["value","radiusValue"])},t})(Uo);var Go=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=W(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return t.prototype.createSlice=function(){return new Mr},t.prototype.createTick=function(){return new Qh},t.prototype.createLabel=function(){return new kn},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},t.prototype.createDataItem=function(){return new bu},t.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var i=e.states.create("hover");i.properties.scale=1.05;var r=e.defaultState;r.properties.shiftRadius=0,e.togglable=!0,e.events.on("toggled",function(s){s.target.hideTooltip(),s.target.interactions.lastHitPointer&&s.target.interactions.lastHitPointer.touch&&!s.target.isActive&&(s.target.isHover=!1)});var n=e.states.create("active");n.properties.shiftRadius=.1},t.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=ir(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e),r=i.values.radiusValue.percent;r>this._maxRadiusPercent&&(this._maxRadiusPercent=r)}a.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(n,s){var o=(n.slice.middleAngle+360)%360,l=(s.slice.middleAngle+360)%360;return o>270&&(o-=360),l>270&&(l-=360),o<l?-1:o>l?1:0}),this._leftItems.sort(function(n,s){var o=(n.slice.middleAngle+360)%360,l=(s.slice.middleAngle+360)%360;return o<l?1:o>l?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},t.prototype.validateDataElement=function(e){if(this.pixelRadius>0){this.ignoreZeroValues&&(e.value==0||e.value==null)?e.__disabled=!0:e.__disabled=!1;var i=e.slice;if(i.radius=this.pixelRadius,x(e.radiusValue)&&(i.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof xe||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var r=e.label,n=e.tick;n.slice=i,n.label=r;var s=(i.middleAngle+360)%360,o=void 0;if(this.alignLabels){var l=r.pixelRadius(i.radius),u=n.length+l;r.dx=0,r.dy=0,r.verticalCenter="middle";var h=this._arcRect;s>270||s<=90?(u+=(h.width+h.x)*this.pixelRadius,r.horizontalCenter="left",this._rightItems.push(e)):(u-=h.x*this.pixelRadius,r.horizontalCenter="right",this._leftItems.push(e),u*=-1);var p=i.radius+n.length+l;o={x:u,y:i.iy*p},r.moveTo(o)}else{var d=i.depth;x(d)||(d=0),r.fixPosition(i.middleAngle,i.radius,i.radiusY,0,-d)}}this._currentStartAngle+=i.arc,a.prototype.validateDataElement.call(this,e)}},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(e){this._pixelRadius!=e&&(this._pixelRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(e){this._pixelInnerRadius!=e&&(this._pixelInnerRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){var e=this.getPropertyValue("startAngle");return x(e)?e:this._startAngleInternal},set:function(e){this.setPropertyValue("startAngle",Pa(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){var e=this.getPropertyValue("endAngle");return x(e)?e:this._endAngleInternal},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),t.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var i=e.dataItem,r=i.slice,n=e.locationX;x(n)||(n=.5);var s=e.locationY;x(s)||(s=1);var o=r.startAngle+r.arc*n;e.x=s*r.radius*Q(o),e.y=s*r.radiusY*Z(o)},t.prototype.handleSliceMove=function(e){if(!this.alignLabels){var i=e.target,r=i.dataItem;if(r){var n=r.label;n&&(n.dx=n.fdx+i.dx+i.pixelX,n.dy=n.fdy+i.dy+i.pixelY)}}},Object.defineProperty(t.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var e=this.chart;return e?ir(e.startAngle,e.endAngle,this.pixelRadius):ir(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),t})(Vn);S.registeredClasses.PieSeries=Go;S.registeredClasses.PieSeriesDataItem=bu;var xu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return t})(yu);var Su=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return t.prototype.validateData=function(){a.prototype.validateData.call(this),this.feedLegend()},t.prototype.feedLegend=function(){var e=this.legend;if(e){var i=[];j(this.series.iterator(),function(r){r.hiddenInLegend||j(r.dataItems.iterator(),function(n){n.hiddenInLegend||(i.push(n),n.legendSettings||(n.legendSettings=r.legendSettings))})}),e.data=i,e.dataFields.name="category"}},t.prototype.createSeries=function(){return new Vn},t.prototype.setLegend=function(e){a.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",function(i){var r=i.target.dataItem.dataContext;if(r.visible&&!r.isHiding){var n=r.slice;n.dispatchImmediately("over"),n.isHover=!0,n.interactions.isRealHover=!0}}),e.itemContainers.template.events.on("out",function(i){var r=i.target.dataItem.dataContext,n=r.slice;n.dispatchImmediately("out"),n.isHover=!1}))},t})(Ro);S.registeredClasses.PercentChart=Su;S.registeredClasses.PercentChartDataItem=xu;var Jh=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return t})(xu);var Yo=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=W(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e._disposers.push(e.seriesContainer.events.on("positionchanged",function(){e.bulletsContainer.x=e.seriesContainer.x,e.bulletsContainer.y=e.seriesContainer.y})),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},t.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.updateRadius()},t.prototype.handleSeriesAdded=function(e){a.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},t.prototype.updateSeriesAngles=function(){var e=this;this.series.each(function(i){i._startAngleInternal=e.startAngle,i._endAngleInternal=e.endAngle})},t.prototype.updateRadius=function(){var e=this.chartContainer,i=ir(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},n=this.innerRadius;n instanceof xe&&(r=ir(this.startAngle,this.endAngle,n.value)),i=Ta([i,r]);var s=Math.min(e.innerWidth/i.width,e.innerHeight/i.height);x(s)||(s=0);var o=Vt(this.radius,s),l=Vt(this.innerRadius,s),u=(o-l)/this.series.length;(o!=this._chartPixelRadius||l!=this._chartPixelInnerRadius)&&(this._chartPixelRadius=o,this._chartPixelInnerRadius=l,j(Gr(this.series.iterator()),function(h){var p=h[0],d=h[1],c=l+Vt(d.radius,o-l),f=l+Vt(d.innerRadius,o-l);x(c)||(c=l+u*(p+1)),x(f)||(f=l+u*p),d.pixelRadius=c,d.pixelInnerRadius=f}),this.seriesContainer.definedBBox={x:o*i.x,y:o*i.y,width:o*i.width,height:o*i.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),t.prototype.createSeries=function(){return new Go},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),t})(Su);S.registeredClasses.PieChart=Yo;S.registeredClasses.PieChartDataItem=Jh;var Cr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Column",e.width=W(80),e.height=W(80),e.events.disableType("transformed"),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return t.prototype.handleKidAdded=function(){this.layout=="none"&&(this.layout="absolute")},t.prototype.createAssets=function(){this.column=this.createChild(xi),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},t.prototype.validate=function(){a.prototype.validate.call(this);var e=this.column;e&&(e.width=Se(this.pixelWidth,this.maxWidth),e.height=Se(this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(t.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:Se(this.pixelWidth,this.maxWidth),height:Se(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.Column=Cr;var nr=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"column",{get:function(){return this._column},set:function(e){this.setColumn(e)},enumerable:!0,configurable:!0}),t.prototype.setColumn=function(e){var i=this;if(this._column&&e!=this._column&&de(this.sprites,this._column),this._column=e,e){var r=e.dataItem;r&&r!=this&&(r.column=void 0),this.addSprite(e),this._disposers.push(new Fe(function(){i.component&&i.component.columns.removeValue(e)}))}},Object.defineProperty(t.prototype,"width",{get:function(){var e=this.properties.width;return this._adapterO&&(e=this._adapterO.apply("width",e)),e},set:function(e){this.properties.width!=e&&(this.properties.width=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.properties.height;return this._adapterO&&(e=this._adapterO.apply("height",e)),e},set:function(e){this.properties.height!=e&&(this.properties.height=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new Ve),this._rangesColumns},enumerable:!0,configurable:!0}),t})(As);var wr=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=W(100),e.height=W(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var i=e.mainContainer.createChild(te);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e._columnsContainer=i,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return Object.defineProperty(t.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},t.prototype.createDataItem=function(){return new nr},t.prototype.validate=function(){var e=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var i=this.chart.series,r=0,n=0,s=[];j(i.iterator(),function(m){if(m instanceof t&&e.baseAxis==m.baseAxis){var y;e.baseAxis==e.xAxis?y=e.chart.yAxes.indexOf(m.yAxis):y=e.chart.xAxes.indexOf(m.xAxis),s.push({series:m,axis:y})}}),s.sort(function(m,y){return m.axis-y.axis});var o;K(s,function(m){var y=m.series;y instanceof t&&((!y.stacked&&y.clustered||o!=m.axis&&y.clustered)&&r++,y==e&&(n=r-1)),o=m.axis}),this.clustered||(n=0,r=1);var l=this.baseAxis.renderer,u=l.cellStartLocation,h=l.cellEndLocation;this._startLocation=u+n/r*(h-u),this._endLocation=u+(n+1)/r*(h-u);var p=this.xAxis,d=this.yAxis;p instanceof $t&&d instanceof $e&&p.sortBySeries==this&&this.sortCategoryAxis(p,"valueY"),d instanceof $t&&p instanceof $e&&d.sortBySeries==this&&this.sortCategoryAxis(d,"valueX")}a.prototype.validate.call(this);for(var c=0;c<this.startIndex;c++){var f=this.dataItems.getIndex(c);this.disableUnusedColumns(f)}for(var c=this.dataItems.length-1;c>this.endIndex;c--){var f=this.dataItems.getIndex(c);this.disableUnusedColumns(f)}this._propertiesChanged=!1},t.prototype.sortCategoryAxis=function(e,i){var r=this;this.dataItems.values.sort(function(s,o){return o.values[i].workingValue-s.values[i].workingValue});var n=0;this.dataItems.each(function(s){s._index=n,n++}),e.dataItems.each(function(s){var o=s.component,l=o.categoryToPosition(s.category)-s.deltaPosition,u=o.getSeriesDataItemByCategory(s.category,r);if(u){var h=r.dataItems.indexOf(u);s._index=h;var p=z((h+.5)/r.dataItems.length-l,3);s.deltaAnimation&&!s.deltaAnimation.isDisposed()&&s.deltaAnimation.animationOptions[0].to==p||p!=z(s.deltaPosition,3)&&(s.deltaAnimation&&s.deltaAnimation.stop(),s.deltaAnimation=s.animate({property:"deltaPosition",from:-p,to:0},o.interpolationDuration,o.interpolationEasing),r._disposers.push(s.deltaAnimation))}}),e.dataItems.values.sort(function(s,o){return s.index-o.index})},t.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),a.prototype.validateDataElement.call(this,e))},t.prototype.getStartLocation=function(e){var i=this._startLocation;return this.baseAxis==this.xAxis?i+=e.locations[this.xOpenField]-.5:i+=e.locations[this.yOpenField]-.5,i},t.prototype.getEndLocation=function(e){var i=this._endLocation;return this.baseAxis==this.xAxis?i+=e.locations[this.xField]-.5:i+=e.locations[this.yField]-.5,i},t.prototype.validateDataElementReal=function(e){var i=this,r,n,s,o,l=this.getStartLocation(e),u=this.getEndLocation(e),h=this.xField,p=this.xOpenField,d=this.yField,c=this.yOpenField,f=this.columns.template,m=f.percentWidth,y=f.percentHeight,g=f.pixelWidth,v=f.pixelHeight,b=f.maxWidth,P=f.maxHeight,w=f.pixelPaddingLeft,T=f.pixelPaddingRight,F=f.pixelPaddingTop,D=f.pixelPaddingBottom,O=!1,N=e.width;C(N)&&(x(N)&&(g=N),N instanceof xe&&(m=N.value*100));var L=e.height;if(C(L)&&(x(L)&&(v=L),L instanceof xe&&(y=L.value*100)),this.xAxis instanceof $t&&this.yAxis instanceof $t){if(!e.hasValue(this._xValueFields)||!e.hasValue(this._yValueFields))return;if(l=0,u=1,!Zt(m)){var E=z((u-l)*(1-m/100)/2,5);l+=E,u-=E}if(r=this.xAxis.getX(e,p,l),n=this.xAxis.getX(e,h,u),Zt(m)){var E=(n-r-g)/2;r+=E,n-=E}if(!Zt(b)&&b<Math.abs(n-r)){var E=(n-r-b)/2;r+=E,n-=E}if(l=0,u=1,!Zt(y)){var E=z((1-y/100)/2,5);l+=E,u-=E}if(s=this.yAxis.getY(e,c,l),o=this.yAxis.getY(e,d,u),Zt(y)){var E=(o-s-v)/2;o+=E,s-=E}if(!Zt(P)&&P<Math.abs(o-s)){var E=(o-s-P)/2;o+=E,s-=E}n=this.fixHorizontalCoordinate(n),r=this.fixHorizontalCoordinate(r),s=this.fixVerticalCoordinate(s),o=this.fixVerticalCoordinate(o)}else if(this.baseAxis==this.xAxis){if(!e.hasValue(this._yValueFields))return;if(!Zt(m)){var E=z((u-l)*(1-m/100)/2,5);l+=E,u-=E}if(r=this.xAxis.getX(e,p,l),n=this.xAxis.getX(e,h,u),Zt(m)){var E=(n-r-g)/2;r+=E,n-=E}if(!Zt(b)&&b<Math.abs(n-r)){var E=(n-r-b)/2;r+=E,n-=E}var B=e.locations[c],U=e.locations[d];this.yAxis instanceof $e&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(B=0,U=0),o=this.yAxis.getY(e,c,B),s=this.yAxis.getY(e,d,U);var q=Math.ceil(this.yAxis.axisLength);(s<0&&o<0||s>q&&o>q)&&(O=!0),s=this.fixVerticalCoordinate(s),o=this.fixVerticalCoordinate(o),Math.abs(n-r)-w-T==0&&(O=!0)}else{if(!e.hasValue(this._xValueFields))return;if(!Zt(y)){var E=z((u-l)*(1-y/100)/2,5);l+=E,u-=E}if(s=this.yAxis.getY(e,c,l),o=this.yAxis.getY(e,d,u),Zt(y)){var E=(o-s-v)/2;o-=E,s+=E}if(!Zt(P)&&P<Math.abs(o-s)){var E=(o-s-P)/2;o-=E,s+=E}var Y=e.locations[h],he=e.locations[p];this.xAxis instanceof $e&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(Y=0,he=0),n=this.xAxis.getX(e,h,Y),r=this.xAxis.getX(e,p,he);var q=Math.ceil(this.xAxis.axisLength);(n<0&&r<0||n>q&&r>q)&&(O=!0),n=this.fixHorizontalCoordinate(n),r=this.fixHorizontalCoordinate(r),Math.abs(s-o)-F-D==0&&(O=!0)}var re=Math.abs(n-r),pe=Math.abs(o-s),le=Math.min(r,n),Pe=Math.min(s,o);if(O)this.disableUnusedColumns(e);else{var ae;e.column?(ae=e.column,this._propertiesChanged&&(xt(this,ae,ot),xt(this.columns.template,ae,ot),K(ot,function(Oe){ae[Oe]=ae[Oe]}))):(ae=this.columns.create(),xt(this,ae,ot),xt(this.columns.template,ae,ot),e.addSprite(ae),e.column=ae,ae.paper=this.paper,this.itemsFocusable()?(C(this.role)||(this.role="menu"),C(ae.role)||(ae.role="menuitem"),ae.focusable=!0):(C(this.role)||(this.role="list"),C(ae.role)||(ae.role="listitem"),ae.focusable=!1),ae.focusable&&(ae.events.on("focus",function(Oe){ae.readerTitle=i.populateString(i.itemReaderText,e)},void 0,!1),ae.events.on("blur",function(Oe){ae.readerTitle=""},void 0,!1)),ae.hoverable&&(ae.events.on("over",function(Oe){ae.readerTitle=i.populateString(i.itemReaderText,e)},void 0,!1),ae.events.on("out",function(Oe){ae.readerTitle=""},void 0,!1)),ae.parent=this.columnsContainer,ae.virtualParent=this),ae.width=re,ae.height=pe,ae.x=le,ae.y=Pe,ae.realX=r,ae.realY=s,ae.realWidth=n-r,ae.realHeight=o-s,this.setColumnStates(ae),ae.invalid&&ae.validate(),ae.__disabled=!1,j(this.axisRanges.iterator(),function(Oe){var ve=e.rangesColumns.getKey(Oe.uid);ve||(ve=i.columns.create(),xt(Oe.contents,ve,ot),e.addSprite(ve),e.rangesColumns.setKey(Oe.uid,ve),ve.paper=i.paper),ve.parent=Oe.contents,ve.width=re,ve.height=pe,ve.x=le,ve.y=Pe,i.setColumnStates(ve),ve.invalid&&ve.validate(),ve.__disabled=!1})}e.itemWidth=re,e.itemHeight=pe},t.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.width=0,e.column.height=0,e.column.__disabled=!0),j(this.axisRanges.iterator(),function(i){var r=e.rangesColumns.getKey(i.uid);r&&(r.width=0,r.height=0,r.__disabled=!0)}))},t.prototype.setColumnStates=function(e){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var i=e.dataItem;if(this.xAxis instanceof $e||this.yAxis instanceof $e){var r,n=void 0,s=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof $e&&(r=i.getValue(this.xOpenField),n=i.getValue(this.xField)),s=i.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof $e&&(r=i.getValue(this.yOpenField),n=i.getValue(this.yField)),s=i.getValue(this.yAxis.axisFieldName+"Y","previousChange")),n<r?(i.droppedFromOpen=!0,e.defaultState.copyFrom(this._dropFromOpenState),e.setState(this._dropFromOpenState,0)):(i.droppedFromOpen=!1,e.defaultState.copyFrom(this._riseFromOpenState),e.setState(this._riseFromOpenState,0)),s<0?(i.droppedFromPrevious=!0,e.defaultState.copyFrom(this._dropFromPreviousState),e.setState(this._dropFromPreviousState,0)):(i.droppedFromPrevious=!1,e.defaultState.copyFrom(this._riseFromPreviousState),e.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||(this._columns=new We(this.createColumnTemplate()),this._disposers.push(new Ie(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),t.prototype.createColumnTemplate=function(){return new Cr},Object.defineProperty(t.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(e){this.setPropertyValue("clustered",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(e){this._dropFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(e){this._dropFromPreviousState=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(e){this._riseFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(e){this._riseFromPreviousState=e},enumerable:!0,configurable:!0}),t.prototype.updateLegendValue=function(e,i){var r=this;if(a.prototype.updateLegendValue.call(this,e,i),this.legendDataItem){var n=this.legendDataItem.marker,s,o;e&&(e.droppedFromOpen?s=this._dropFromOpenState:s=this._riseFromOpenState,e.droppedFromPrevious?o=this._dropFromPreviousState:o=this._riseFromPreviousState),j(n.children.iterator(),function(l){e?(l.setState(o),l.setState(s)):(l.setState(r._riseFromPreviousState),l.setState(r._riseFromOpenState))})}},t.prototype.createLegendMarker=function(e){var i=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var n=e.createChild(xi);n.shouldClone=!1,xt(this,n,ot),n.copyFrom(this.columns.template),n.padding(0,0,0,0),n.width=i,n.height=r;var s=e.dataItem;s.color=this.fill,s.colorOrig=this.fill},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},t.prototype.getBulletLocationX=function(e,i){if(this.baseAxis==this.xAxis){var r=e.locationX;x(r)||(r=.5);var n=this.getEndLocation(e.dataItem),s=this.getStartLocation(e.dataItem);return n-(n-s)*r}else return a.prototype.getBulletLocationX.call(this,e,i)},t.prototype.getBulletLocationY=function(e,i){if(this.baseAxis==this.yAxis){var r=e.locationY;x(r)||(r=.5);var n=this.getEndLocation(e.dataItem),s=this.getStartLocation(e.dataItem);return n-(n-s)*r}else return a.prototype.getBulletLocationY.call(this,e,i)},t.prototype.getAdjustedXLocation=function(e,i,r){return x(r)||(e?r=e.locations[i]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*(1-r)},t.prototype.getAdjustedYLocation=function(e,i,r){return x(r)||(e?r=e.locations[i]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*r},t.prototype.fixVerticalCoordinate=function(e){var i=this.columns.template.pixelPaddingBottom,r=this.columns.template.pixelPaddingTop,n=-r,s=this.yAxis.axisLength+i;return ee(e,n,s)},t.prototype.fixHorizontalCoordinate=function(e){var i=this.columns.template.pixelPaddingLeft,r=this.columns.template.pixelPaddingRight,n=-i,s=this.xAxis.axisLength+r;return ee(e,n,s)},t.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.columns.clear()},t})(Qr);S.registeredClasses.ColumnSeries=wr;S.registeredClasses.ColumnSeriesDataItem=nr;var Es=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Candlestick",e.layout="none",e}return t.prototype.createAssets=function(){a.prototype.createAssets.call(this),this.lowLine=this.createChild(Ii),this.lowLine.shouldClone=!1,this.highLine=this.createChild(Ii),this.highLine.shouldClone=!1},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},t})(Cr);S.registeredClasses.Candlestick=Es;var Cu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(e){this.setValue("lowValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(e){this.setValue("lowValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(e){this.setValue("highValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(e){this.setValue("highValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),t})(nr);var ep=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var i=new ue,r=i.getFor("positive"),n=i.getFor("negative");return e.dropFromOpenState.properties.fill=n,e.dropFromOpenState.properties.stroke=n,e.riseFromOpenState.properties.fill=r,e.riseFromOpenState.properties.stroke=r,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},t.prototype.createDataItem=function(){return new Cu},t.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},t.prototype.validateCandlestick=function(e){var i=e.column;if(i){var r=i.lowLine,n=i.highLine;if(this.baseAxis==this.xAxis){var s=i.pixelWidth/2;r.x=s,n.x=s;var o=e.getWorkingValue(this.yOpenField),l=e.getWorkingValue(this.yField),u=this.yAxis.getY(e,this.yOpenField),h=this.yAxis.getY(e,this.yField),p=this.yAxis.getY(e,this.yLowField),d=this.yAxis.getY(e,this.yHighField),c=i.pixelY;r.y1=p-c,n.y1=d-c,o<l?(r.y2=u-c,n.y2=h-c):(r.y2=h-c,n.y2=u-c)}if(this.baseAxis==this.yAxis){var f=i.pixelHeight/2;r.y=f,n.y=f;var m=e.getWorkingValue(this.xOpenField),y=e.getWorkingValue(this.xField),g=this.xAxis.getX(e,this.xOpenField),v=this.xAxis.getX(e,this.xField),b=this.xAxis.getX(e,this.xLowField),P=this.xAxis.getX(e,this.xHighField),w=i.pixelX;r.x1=b-w,n.x1=P-w,m<y?(r.x2=g-w,n.x2=v-w):(r.x2=v-w,n.x2=g-w)}j(this.axisRanges.iterator(),function(T){var F=e.rangesColumns.getKey(T.uid);if(F){var D=F.lowLine;D.x=r.x,D.y=r.y,D.x1=r.x1,D.x2=r.x2,D.y1=r.y1,D.y2=r.y2;var O=F.highLine;O.x=n.x,O.y=n.y,O.x1=n.x1,O.x2=n.x2,O.y1=n.y1,O.y2=n.y2}})}},Object.defineProperty(t.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),t.prototype.defineFields=function(){a.prototype.defineFields.call(this);var e=this.xAxis,i=this.yAxis;if(e&&i){if(this.baseAxis==e){var r=bs(i.axisFieldName);this._yLowField="low"+r+"Y",this._yHighField="high"+r+"Y"}if(this.baseAxis==i){var n=bs(e.axisFieldName);this._xLowField="low"+n+"X",this._xHighField="high"+n+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(i,this._yValueFields,this._yLowField),this.addValueField(i,this._yValueFields,this._yHighField)}},t.prototype.createLegendMarker=function(e){var i=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var n=e.createChild(Es);n.shouldClone=!1,n.copyFrom(this.columns.template);var s,o,l=n.lowLine,u=n.highLine;this.baseAxis==this.yAxis?(s=i/3,o=r,l.y=r/2,u.y=r/2,l.x2=i/3,u.x2=i/3,u.x=i/3*2,n.column.x=i/3):(s=i,o=r/3,l.x=i/2,u.x=i/2,l.y2=r/3,u.y2=r/3,u.y=r/3*2,n.column.y=r/3),n.width=s,n.height=o,xt(this,e,ot),xt(this.columns.template,n,ot),n.stroke=this.riseFromOpenState.properties.stroke,n.fill=n.stroke;var h=e.dataItem;h.color=n.fill,h.colorOrig=n.fill},t.prototype.createColumnTemplate=function(){return new Es},t})(wr);S.registeredClasses.CandlestickSeries=ep;S.registeredClasses.CandlestickSeriesDataItem=Cu;var sf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="StepLineSeriesSegment",e}return t.prototype.drawSegment=function(e,i,r,n,s,o){if(e.length>0&&i.length>0)if(s){var l=X(e[0]);if(e.length>0)for(var u=1;u<e.length;u++){var h=e[u];u/2==Math.round(u/2)?l+=X(h):l+=R(h)}this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l=X(e[0])+_s(e),l+=R(i[0])+_s(i),l+=R(e[0]),l+=it(),this.fillSprite.path=l)}else{var l=X(e[0])+_s(e);this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l+=R(i[0])+_s(i),l+=R(e[0]),l+=it(),this.fillSprite.path=l)}else this.strokeSprite.path="",this.fillSprite.path=""},t})(Wo);S.registeredClasses.StepLineSeriesSegment=sf;var of=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return t})(Ls);var Ng=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return t.prototype.createDataItem=function(){return new of},t.prototype.addPoints=function(e,i,r,n,s){var o,l,u,h;this.baseAxis==this.xAxis&&(o=this.startLocation,l=this.endLocation,u=this.getAdjustedXLocation(i,this.yOpenField),h=this.getAdjustedXLocation(i,this.yField)),this.baseAxis==this.yAxis&&(u=this.startLocation,h=this.endLocation,o=this.getAdjustedXLocation(i,this.xOpenField),l=this.getAdjustedXLocation(i,this.xField));var p=this.xAxis.getX(i,r,o),d=this.yAxis.getY(i,n,u),c=this.xAxis.getX(i,r,l),f=this.yAxis.getY(i,n,h);if(p=ee(p,-1e5,1e5),d=ee(d,-1e5,1e5),c=ee(c,-1e5,1e5),f=ee(f,-1e5,1e5),!this.noRisers&&e.length>1){var m=e[e.length-1];this.baseAxis==this.xAxis&&(s?e.push({x:m.x,y:f}):e.push({x:p,y:m.y})),this.baseAxis==this.yAxis&&(s?e.push({x:c,y:m.y}):e.push({x:m.x,y:d}))}var y={x:p,y:d},g={x:c,y:f};s?e.push(g,y):e.push(y,g)},t.prototype.drawSegment=function(e,i,r){var n=!1;this.yAxis==this.baseAxis&&(n=!0),e.drawSegment(i,r,this.tensionX,this.tensionY,this.noRisers,n)},t.prototype.createSegment=function(){return new sf},Object.defineProperty(t.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(e){this.setPropertyValue("noRisers",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),t})(qo);S.registeredClasses.StepLineSeries=Ng;S.registeredClasses.StepLineSeriesDataItem=of;var tp=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=W(100),e.height=W(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var i=me();return e._disposers.push(i.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(i.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(i.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return t.prototype.handleCursorMove=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)){if((this._generalBehavior!="zoom"&&this._generalBehavior!="pan"||!this.downPoint)&&!me().isLocalElement(e.pointer,this.paper.svg,this.uid)){(!this.isHidden||!this.isHiding)&&this.hide();return}var i=Da(e.pointer.point,this);return this._stick=="hard"&&this._stickPoint&&(i=this._stickPoint),this._stick=="soft"&&this._stickPoint&&(this.fitsToBounds(i)||(i=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",i),this.triggerMove(i),i}},t.prototype.hideReal=function(e){if(!((this._stick=="hard"||this._stick=="soft")&&this._stickPoint))return a.prototype.hideReal.call(this,e)},t.prototype.triggerMove=function(e,i,r){e.x=z(e.x,1),e.y=z(e.y,1),i&&(this._stick=i),(i=="hard"||i=="soft")&&(this._stickPoint=e),this.triggerMoveReal(e,r)},t.prototype.triggerMoveReal=function(e,i){(this.point.x!=e.x||this.point.y!=e.y||i)&&(this.point=e,this.invalidatePosition(),this.fitsToBounds(e)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},t.prototype.triggerDown=function(e){this.triggerDownReal(e)},t.prototype.triggerDownReal=function(e){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),me().setGlobalStyle(Mt.grabbing);break}},t.prototype.triggerUp=function(e){this.triggerUpReal(e)},t.prototype.triggerUpReal=function(e){De.requestFrame(),this.updatePoint(this.upPoint);var i=me();if(Ee(this._upPointOrig,this._downPointOrig)>i.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),i.setGlobalStyle(Mt.default);break}this.downPoint=void 0,this.updateSelection()}},t.prototype.updateSelection=function(){},t.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},t.prototype.handleCursorDown=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch||!me().isLocalElement(e.pointer,this.paper.svg,this.uid))){Ss();var i=Da(e.pointer.point,this);this._stick=="hard"&&this._stickPoint&&(i=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",i),this.fitsToBounds(i)&&(this._downPointOrig={x:i.x,y:i.y},e.event.cancelable&&this.shouldPreventGestures(e.touch)&&this.fitsToBounds(i)&&e.event.preventDefault(),this.triggerMove(i),this.triggerDown(i))}},t.prototype.shouldPreventGestures=function(e){return!0},t.prototype.updatePoint=function(e){},t.prototype.handleCursorUp=function(e){if(this.interactionsEnabled&&!(!this.downPoint&&!me().isLocalElement(e.pointer,this.paper.svg,this.uid))){var i=Da(e.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",i),!(!this.downPoint||!this.fitsToBounds(this.downPoint))&&(this._stick=="hard"&&this._stickPoint&&(i=this._stickPoint),this._upPointOrig={x:i.x,y:i.y},this.triggerMove(i),this.triggerUp(i))}},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e,C(this._chart.plotContainer)&&me().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.Cursor=tp;var ip=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._lineX=new st,e._lineY=new st,e._xAxis=new st,e._yAxis=new st,e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new ue;e.snapOnPan=!0;var r=e.createChild(ne);r.shouldClone=!1,r.fillOpacity=.2,r.fill=i.getFor("alternativeBackground"),r.isMeasured=!1,r.visible=!1,r.interactionsEnabled=!1,e.selection=r,e._disposers.push(e.selection);var n=e.createChild(ne);n.shouldClone=!1,n.stroke=i.getFor("grid"),n.fill=oe(),n.strokeDasharray="3,3",n.isMeasured=!1,n.strokeOpacity=.4,n.interactionsEnabled=!1,n.y=0,e.lineX=n,e._disposers.push(e.lineX);var s=e.createChild(ne);return s.shouldClone=!1,s.stroke=i.getFor("grid"),s.fill=oe(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.x=0,e.lineY=s,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return t.prototype.updateSize=function(){this.lineX&&(this.lineX.path=X({x:0,y:0})+R({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=X({x:0,y:0})+R({x:this.innerWidth,y:0}))},t.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint,i=this.behavior;if(e){var r=this.point;this.lineX&&(r.x=this.lineX.pixelX),this.lineY&&(r.y=this.lineY.pixelY);var n=this.selection,s=Math.min(r.x,e.x),o=Math.min(r.y,e.y),l=z(Math.abs(e.x-r.x),this._positionPrecision),u=z(Math.abs(e.y-r.y),this._positionPrecision);switch(i){case"zoomX":o=0,u=this.pixelHeight;break;case"zoomY":s=0,l=this.pixelWidth;break;case"selectX":o=0,u=this.pixelHeight;break;case"selectY":s=0,l=this.pixelWidth;break}n.x=s,n.y=o,n.path=Mh(l,u),n.validatePosition()}else this._generalBehavior!="select"&&this.selection.hide()}},t.prototype.fixPoint=function(e){return e.x=Math.max(0,e.x),e.y=Math.max(0,e.y),e.x=Math.min(this.pixelWidth,e.x),e.y=Math.min(this.pixelHeight,e.y),e},t.prototype.triggerMoveReal=function(e,i){a.prototype.triggerMoveReal.call(this,e,i);var r=this.snapToSeries;if(r&&!this.downPoint)if(r instanceof Qr)r.isHidden&&this.updateLinePositions(e);else{var n=!0;K(r,function(s){s.isHidden||(n=!1)}),n&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&Ee(this.downPoint,e)>3&&this._generalBehavior=="pan"&&(this.getPanningRanges(),this.dispatch("panning"))},t.prototype.updateLinePositions=function(e){e=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=e.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=e.y),this.updateSelection()},t.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if(this._generalBehavior=="select"&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,r=this.downPoint.x,n=this.downPoint.y;this._usesSelection&&(i.x=r,i.y=n,i.path="",i.show()),a.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},t.prototype.updatePoint=function(e){this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY)},t.prototype.triggerUpReal=function(e){if(this.hasMoved())this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),this._generalBehavior!="pan"&&this.getRanges(),this._generalBehavior!="select"&&this.selection.hide(),a.prototype.triggerUpReal.call(this,e));else{if(this._generalBehavior!="select"?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),this._generalBehavior=="pan"){var i=me();i.setGlobalStyle(Mt.default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},t.prototype.hasMoved=function(){var e;return this.behavior=="zoomX"||this.behavior=="panX"?e=Oy(this._upPointOrig,this._downPointOrig):this.behavior=="zoomY"||this.behavior=="panY"?e=Dy(this._upPointOrig,this._downPointOrig):e=Ee(this._upPointOrig,this._downPointOrig),e>me().getHitOption(this.interactions,"hitTolerance")},t.prototype.getPanningRanges=function(){var e=z(this.downPoint.x/this.innerWidth,5),i=1-z(this.downPoint.y/this.innerHeight,5),r=z(this.point.x/this.innerWidth,5),n=1-z(this.point.y/this.innerHeight,5),s=e-r,o=i-n;this.xRange={start:s,end:1+s},this.yRange={start:o,end:1+o},this.behavior=="panX"&&(this.yRange.start=0,this.yRange.end=1),this.behavior=="panY"&&(this.xRange.start=0,this.xRange.end=1)},t.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var e=z(this.downPoint.x/this.innerWidth,5),i=z(this.upPoint.x/this.innerWidth,5),r=1-z(this.downPoint.y/this.innerHeight,5),n=1-z(this.upPoint.y/this.innerHeight,5);this.xRange={start:Se(e,i),end:fe(e,i)},this.yRange={start:Se(r,n),end:fe(r,n)}},Object.defineProperty(t.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(e){this.setPropertyValue("behavior",e,!0),this._usesSelection=!1,e.indexOf("zoom")!=-1&&(this._generalBehavior="zoom",this._usesSelection=!0),e.indexOf("select")!=-1&&(this._generalBehavior="select",this._usesSelection=!0),e.indexOf("pan")!=-1&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),t.prototype.shouldPreventGestures=function(e){return(!this.interactions.isTouchProtected||!e)&&this.behavior!="none"},Object.defineProperty(t.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(e){this.setPropertyValue("fullWidthLineX",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(e){this.setPropertyValue("fullWidthLineY",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(e){this.setPropertyValue("hideSeriesTooltipsOnSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(e){this.setPropertyValue("maxTooltipDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(e){this.setPropertyValue("maxPanOut",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(e){var i=this;this._xAxis.get()!=e&&this._xAxis.set(e,new Me([e.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){i.hide(0),i.preventShow=!0},void 0,!1),e.events.on("rangechangeended",function(r){i.preventShow=!1,i.hide(0),i.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(e){var i=this;this._yAxis.get()!=e&&this._yAxis.set(e,new Me([e.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){i.hide(0),i.__disabled=!0},void 0,!1),e.events.on("rangechangeended",function(r){i.__disabled=!1,i.hide(0),i.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),t.prototype.handleXTooltipPosition=function(e){var i=this.xAxis.tooltip,r=Ti({x:i.pixelX,y:i.pixelY},this),n=r.x;if(r.y=1,this.lineX&&(this.lineX.x=n,this.fitsToBounds(r)||this.hide()),this.xAxis&&this.fullWidthLineX){var s=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(s&&o){this.lineX.x=n;var l=o.x-s.x;this.lineX.path=Mh(l,this.innerHeight,-l/2)}}},t.prototype.handleYTooltipPosition=function(e){var i=this.yAxis.tooltip,r=Ti({x:i.pixelX,y:i.pixelY},this),n=r.y;if(r.x=1,this.lineY&&(this.lineY.y=n,this.fitsToBounds(r)||this.hide()),this.yAxis&&this.fullWidthLineY){var s=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(s&&o){this.lineY.y=n;var l=o.y-s.y;this.lineY.path=Mh(this.innerWidth,l,0,-l/2)}}},Object.defineProperty(t.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineX.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.interactionsEnabled=!1,e.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineY.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.parent=this,e.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){return this._selection},set:function(e){this._selection=e,e&&(e.element=this.paper.add("path"),e.parent=this)},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e&&(C(e.xAxis)&&ye(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),C(e.yAxis)&&ye(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),C(e.snapToSeries))){var r=Je(e.snapToSeries)?e.snapToSeries:[e.snapToSeries],n=!1;K(r,function(s,o){ye(s)&&(i.map.hasKey(s)?r[o]=i.map.getKey(s):(i.processingErrors.push('[XYCursor] No series with id "'+s+'" found for `series`'),n=!0))}),n?delete e.snapToSeries:e.snapToSeries=r}a.prototype.processConfig.call(this,e)},Object.defineProperty(t.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(e){var i=this;this.setPropertyValue("snapToSeries",e)&&(e instanceof Qr&&(e=[e]),this._snapToDisposers&&K(this._snapToDisposers,function(r){r.dispose()}),this._snapToDisposers=[],e&&K(e,function(r){i._snapToDisposers.push(r.events.on("tooltipshownat",function(){i.handleSnap(r)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(e){this.setPropertyValue("snapOnPan",e)},enumerable:!0,configurable:!0}),t.prototype.handleSnap=function(e){if(!this.downPoint){var i=e.getTooltipX()+e.xAxis.pixelX,r=e.getTooltipY()+e.yAxis.pixelY,n=e.xAxis,s=e.yAxis;n&&n.renderer.opposite&&(r-=this.pixelHeight),this.point={x:i,y:r},this.getPositions();var o=i,l=r;i-=this.pixelWidth,s&&s.renderer.opposite&&(i+=this.pixelWidth);var u=e.tooltip,h=u.animationDuration,p=u.animationEasing;n instanceof $e&&!(n instanceof ft)&&s instanceof $e&&!(s instanceof ft)?(e.yAxis.showTooltipAtPosition(this.yPosition),e.xAxis.showTooltipAtPosition(this.xPosition)):(e.baseAxis==e.xAxis&&e.yAxis.showTooltipAtPosition(this.yPosition),e.baseAxis==e.yAxis&&e.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=i,this.lineX.y=r,this.xAxis||this.lineX.animate([{property:"x",to:o}],h,p),this.yAxis||this.lineY.animate([{property:"y",to:l}],h,p)}},t.prototype.dispose=function(){this.hide(0),a.prototype.dispose.call(this)},t})(tp);S.registeredClasses.XYCursor=ip;var Xo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(e){this.properties.lightness=e;var i=e+1;this.feColorMatrix.attr({values:i+" 0 0 0 0 0 "+i+" 0 0 0 0 0 "+i+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),t})(kr);S.registeredClasses.LightenFilter=Xo;var lf=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(ne);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var r=e.createChild(ne);e.sideA=r,r.shouldClone=!1,r.isMeasured=!1;var n=e.createChild(ne);return e.sideB=n,n.shouldClone=!1,n.isMeasured=!1,e.applyTheme(),e}return t.prototype.setFill=function(e){a.prototype.setFill.call(this,e);var i;if(e instanceof _e)i=e.hex;else if(e instanceof fi||e instanceof yr)i=e.stops.getIndex(0).color.hex;else{var r=new Xo;r.lightness=-.25,this.edge.filters.push(r),this.sideA.filters.push(r.clone()),this.sideB.filters.push(r.clone())}if(i){var n=oe(i).lighten(-.25);this.edge.fill=n,this.sideA.fill=n,this.sideB.fill=n,this.edge.stroke=n,this.sideA.stroke=n,this.sideB.stroke=n}},t.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,a.prototype.draw.call(this),this.arc!==0&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,r=this.pixelInnerRadius||0,n=this.radiusY||0,s=this.radius,o=e+i,l=n/s*r,u={x:Q(e)*r,y:Z(e)*l},h={x:Q(e)*s,y:Z(e)*n},p={x:Q(o)*s,y:Z(o)*n},d={x:Q(o)*r,y:Z(o)*l},c=this.depth,f={x:u.x,y:u.y-c},m={x:h.x,y:h.y-c},y={x:p.x,y:p.y-c},g={x:d.x,y:d.y-c},v="",b=Math.ceil(i/5),P=i/b,w=e,T=m,F=0;F<b;F++)if(w+=P,w>0&&w<180){v+=X(T);var D={x:Q(w)*s,y:Z(w)*n-c};v+=R({x:T.x,y:T.y+c}),v+=br({x:D.x,y:D.y+c},s,n,!0),v+=R(D),v+=br(T,s,n),v+="z",T=D}else{v+=X(T);var D={x:Q(w)*s,y:Z(w)*n-c};v+=br(D,s,n,!0),v+=R({x:D.x,y:D.y+c}),v+=br({x:T.x,y:T.y+c},s,n),v+=R(T),v+="z",T=D}T=f,w=e;for(var F=0;F<b;F++)if(w+=P,w>0&&w<180){v+=X(T);var D={x:Q(w)*r,y:Z(w)*l-c};v+=R({x:T.x,y:T.y+c}),v+=br({x:D.x,y:D.y+c},r,l,!0),v+=R(D),v+=br(T,r,l),v+="z",T=D}else{v+=X(T);var D={x:Q(w)*r,y:Z(w)*l-c};v+=br(D,r,l,!0),v+=R({x:D.x,y:D.y+c}),v+=br({x:T.x,y:T.y+c},r,l),v+=R(T),v+="z",T=D}this.edge.path=v,this.sideA.path=X(u)+R(h)+R(m)+R(f)+it(),this.sideB.path=X(p)+R(d)+R(g)+R(y)+it(),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-c}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){var e=this.getPropertyValue("angle");return x(e)||(e=0),e},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return x(e)||(e=this.radius-this.radius*this.angle/90),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},t})(Mr);var uf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return Object.defineProperty(t.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(e){this.setValue("depthValue",e)},enumerable:!0,configurable:!0}),t})(bu);var rp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return t.prototype.createDataItem=function(){return new uf},t.prototype.createSlice=function(){return new lf},t.prototype.validateDataElement=function(e){var i=e.slice,r=this.depth;x(r)||(r=this.chart.depth);var n=e.values.depthValue.percent;x(n)||(n=100),i.depth=n*r/100;var s=this.angle;x(s)||(s=this.chart.angle),i.angle=s,a.prototype.validateDataElement.call(this,e)},t.prototype.validate=function(){a.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e),r=i.slice,n=r.startAngle;n>=-90&&n<90?r.toFront():n>=90&&r.toBack()}},Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e)},enumerable:!0,configurable:!0}),t.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var i=e.dataItem,r=i.slice;e.y=e.pixelY-r.depth},t})(Go);S.registeredClasses.PieSeries3D=rp;S.registeredClasses.PieSeries3DDataItem=uf;var kP=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return t})(Jh);var Rg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){e=ee(e,0,90),this.setPropertyValue("angle",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),t.prototype.createSeries=function(){return new rp},t})(Yo);S.registeredClasses.PieChart3D=Rg;var jg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return t})(xu);var Bg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},t.prototype.validate=function(){a.prototype.validate.call(this)},t})(Su);S.registeredClasses.SlicedChart=Bg;S.registeredClasses.SlicedChartDataItem=jg;var Mn=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.legendSettings=new fu,e.className="FlowDiagramNode",e.isMeasured=!1,new ue,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return t.prototype.handleHit=function(e){this.isHidden||this.isHiding?this.show():this.hide()},t.prototype.show=function(e){var i=a.prototype.show.call(this,e);return this.outgoingDataItems.each(function(r){(!r.toNode||r.toNode&&!r.toNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),this.incomingDataItems.each(function(r){(!r.fromNode||r.fromNode&&!r.fromNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),i},t.prototype.hide=function(e){var i=a.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),this.incomingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),i},t.prototype.validate=function(){this.isDisposed()||(a.prototype.validate.call(this),this.invalidateLinks())},t.prototype.invalidateLinks=function(){var e=this;this.outgoingDataItems.each(function(i){var r=i.link;if(r.colorMode=="fromNode"&&(r.fill=r.dataItem.fromNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var n=r.gradient.stops.getIndex(0);n&&(n.color=e.color,r.gradient.validate())}}),this.incomingDataItems.each(function(i){var r=i.link;if(r.colorMode=="toNode"&&(r.fill=r.dataItem.toNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var n=r.gradient.stops.getIndex(1);n&&(n.color=e.color,r.gradient.validate())}})},Object.defineProperty(t.prototype,"incomingDataItems",{get:function(){var e=this;if(!this._incomingDataItems){var i=new we;i.events.on("inserted",function(){e.chart.sortBy=="name"?e._incomingSorted=Ka(e._incomingDataItems.iterator(),function(r,n){return Wl(r.fromName,n.fromName)}):e.chart.sortBy=="value"?e._incomingSorted=Ka(e._incomingDataItems.iterator(),function(r,n){return Lo(rr(r.value,n.value))}):e._incomingSorted=e._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=i}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingDataItems",{get:function(){var e=this;if(!this._outgoingDataItems){var i=new we;i.events.on("inserted",function(){e.chart.sortBy=="name"?e._outgoingSorted=Ka(e._outgoingDataItems.iterator(),function(r,n){return Wl(r.fromName,n.fromName)}):e.chart.sortBy=="value"?e._outgoingSorted=Ka(e._outgoingDataItems.iterator(),function(r,n){return Lo(rr(r.value,n.value))}):e._outgoingSorted=e._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=i}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(e){this.setPropertyValue("total",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(e){this.setPropertyValue("totalIncoming",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(e){this.setPropertyValue("totalOutgoing",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(e){this.setColorProperty("color",e),this._background&&(this._background.fill=e),this.fill=e},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e){var i=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var n=e.createChild(xi);n.shouldClone=!1,xt(this,n,ot),n.stroke=this.fill,n.copyFrom(this),n.padding(0,0,0,0),n.width=i,n.height=r;var s=e.dataItem;s.color=n.fill,s.colorOrig=n.fill},Object.defineProperty(t.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.FlowDiagramNode=Mn;var tn=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=oe(),e.strokeOpacity=1,e.applyTheme(),e}return t.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){for(var i="",r=0,n=e.length;r<n;r++){var s=e[r];if(s.length>0){i+=X(s[0]);for(var o=1;o<s.length;o++){var l=s[o];i+=R(l),this._distance+=Ee(s[o-1],l)}}}this.path=i}this._realSegments=e},Object.defineProperty(t.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(e){this.setPropertyValue("segments",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e){var i=0;e<0&&(e=Math.abs(e),i=180);var r=this._realSegments;if(r){for(var n=this.distance,s=0,o=void 0,l=0,u=0,h=void 0,p=void 0,d=0;d<r.length;d++){var c=r[d];if(c.length>1){for(var f=1;f<c.length;f++)if(h=c[f-1],p=c[f],l=s/n,o=Ee(h,p),s+=o,u=s/n,l<=e&&u>e){d=r.length;break}}else c.length==1&&(h=c[0],p=c[0],l=0,u=1)}if(h&&p){var m=(e-l)/(u-l),y=us(h,p,m);return{x:y.x,y:y.y,angle:i+kt(h,p)}}}return{x:0,y:0,angle:0}},Object.defineProperty(t.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Polyline=tn;var Nn=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="FlowDiagramLink";var i=new ue;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}\u2192{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(ne),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=i.getFor("alternativeBackground"),e.applyTheme(),e}return t.prototype.positionBullets=function(){var e=this;j(this.bullets.iterator(),function(i){i.parent=e.bulletsContainer,i.maxWidth=e.maxWidth,i.maxHeight=e.maxHeight,e.positionBullet(i)})},Object.defineProperty(t.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var e=this.createChild(te);e.shouldClone=!1,e.layout="none",this._bulletsContainer=e}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var e=this.createChild(ne);e.shouldClone=!1,e.setElement(this.paper.add("path")),e.isMeasured=!1,this._bulletsMask=e}return this._bulletsMask},enumerable:!0,configurable:!0}),t.prototype.positionBullet=function(e){var i=e.locationX;x(i)||(i=e.locationY),x(i)||(i=.5);var r=this.middleLine.positionToPoint(i);e.moveTo(r);var n=e.propertyFields.rotation,s;if(e.dataItem){var o=e.dataItem.dataContext;s=o[n]}x(s)||(s=r.angle),e.rotation=s},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(e){if(e=="gradient"){var i=this.fill;this.gradient.stops.clear(),i instanceof _e&&(this.gradient.addColor(i),this.gradient.addColor(i)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setFill=function(e){a.prototype.setFill.call(this,e);var i=this._gradient;i&&e instanceof _e&&(i.stops.clear(),i.addColor(e),i.addColor(e))},t.prototype.measureElement=function(){},Object.defineProperty(t.prototype,"bullets",{get:function(){var e=this;return this._bullets||(this._bullets=new We(new Fi),this._disposers.push(new Ie(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(i){i.newValue.events.on("propertychanged",function(r){(r.property=="locationX"||r.property=="locationY")&&e.positionBullet(r.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var i=this.middleLine;i&&(i instanceof Ii&&e.middleLine instanceof Ii&&i.copyFrom(e.middleLine),i instanceof tn&&e.middleLine instanceof tn&&i.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},t.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},t.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(t.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new fi),this._gradient},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.FlowDiagramLink=Nn;var ap=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return t.prototype.modify=function(e){return e},t})(Tt);S.registeredClasses.ColorModifier=ap;var wu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return Object.defineProperty(t.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(e){this._lightnesses=e,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(e){this._brightnesses=e,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacities",{get:function(){return this._opacities},set:function(e){this._opacities=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsets",{get:function(){return this._offsets},set:function(e){this._offsets=e},enumerable:!0,configurable:!0}),t.prototype.modify=function(e){this.gradient.clear();var i=0;this.opacities&&(i=fe(i,this.opacities.length)),this.lightnesses&&(i=fe(i,this.lightnesses.length)),this.brightnesses&&(i=fe(i,this.brightnesses.length));for(var r=1,n,s,o=0;o<i;o++){var l=e;this.opacities&&x(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&x(this.lightnesses[o])&&(n=this.lightnesses[o],s=void 0),this.brightnesses&&x(this.brightnesses[o])&&(s=this.brightnesses[o],n=void 0),x(s)?l=e.brighten(this.brightnesses[o]):x(n)&&(l=e.lighten(this.lightnesses[o]));var u=this.offsets[o];this.gradient.addColor(l,r,u)}return this.gradient},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},t})(ap);S.registeredClasses.GradientModifier=wu;var ks=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new fi,e.applyTheme(),e}return t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},t})(wu);S.registeredClasses.LinearGradientModifier=ks;var Ko=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return Object.defineProperty(t.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(e){this.setProperty("fromName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toName",{get:function(){return this.properties.toName},set:function(e){this.setProperty("toName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",ji(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"link",{get:function(){var e=this;if(!this._link){var i=this.component.links.create();this._link=i,this.addSprite(i),this._disposers.push(new Fe(function(){e.component&&e.component.links.removeValue(i)}))}return this._link},enumerable:!0,configurable:!0}),t})(du);var Zo=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.colors=new ka,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var i=e.chartContainer.createChild(te);i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.linksContainer=i;var r=e.chartContainer.createChild(te);return r.shouldClone=!1,r.layout="none",r.isMeasured=!1,e.nodesContainer=r,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return t.prototype.dispose=function(){a.prototype.dispose.call(this),this.dataItem.dispose()},t.prototype.validateData=function(){var e=this;this._parseDataFrom==0&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),a.prototype.validateData.call(this);var i=0,r=0,n,s;j(this.dataItems.iterator(),function(l){var u=l.fromName;if(u){var h=e.nodes.getKey(u);h||(h=e.nodes.create(u),h.name=u,h.chart=e,h.dataItem=l),l.fromNode=h,l.fromNode.outgoingDataItems.push(l)}var p=l.toName;if(p){var h=e.nodes.getKey(p);h||(h=e.nodes.create(p),h.name=p,h.chart=e,h.dataItem=l),l.toNode=h,l.toNode.incomingDataItems.push(l)}if(!l.fromNode){var d=new ks;d.opacities=[0,1],l.link.strokeModifier=d}if(!l.toNode){var c=new ks;c.opacities=[1,0],l.link.strokeModifier=c}var f=l.value;x(f)&&(i+=f,r++,(n>f||!x(n))&&(n=f),(s<f||!x(s))&&(s=f))});var o="value";this.dataItem.setCalculatedValue(o,s,"high"),this.dataItem.setCalculatedValue(o,n,"low"),this.dataItem.setCalculatedValue(o,i,"sum"),this.dataItem.setCalculatedValue(o,i/r,"average"),this.dataItem.setCalculatedValue(o,r,"count"),j(this.nodes.iterator(),function(l){var u=l[1];u.fill instanceof _e&&(u.color=u.fill),u.color==null&&(u.color=e.colors.next()),u.dataItem.color!=null&&(u.color=u.dataItem.color),u.dataItem.visible||u.hide(0),e.getNodeValue(u)}),this.sortNodes(),this.feedLegend()},t.prototype.handleDataItemWorkingValueChange=function(e,i){this.invalidate()},t.prototype.sortNodes=function(){this.sortBy=="name"?this._sorted=this.nodes.sortedIterator():this.sortBy=="value"?this._sorted=Ka(this.nodes.iterator(),function(e,i){return Lo(rr(e[1].total,i[1].total))}):this._sorted=this.nodes.iterator()},t.prototype.getNodeValue=function(e){var i=0,r=0;j(e.incomingDataItems.iterator(),function(n){var s=n.getWorkingValue("value");x(s)&&(i+=s)}),j(e.outgoingDataItems.iterator(),function(n){var s=n.getWorkingValue("value");x(s)&&(r+=s)}),e.total=i+r,e.totalIncoming=i,e.totalOutgoing=r},t.prototype.changeSorting=function(){this.sortNodes()},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},t.prototype.createDataItem=function(){return new Ko},Object.defineProperty(t.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(e){this.setPropertyValue("nodePadding",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(e){this.setPropertyValue("sortBy",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(e){this.setPropertyValue("minNodeSize",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){if(!this._nodes){var e=this.createNode();e.events.on("hit",function(i){i.target.handleHit(i)}),this._nodes=new Oa(e),this._disposers.push(new mr(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),t.prototype.createNode=function(){var e=new Mn;return this._disposers.push(e),e},Object.defineProperty(t.prototype,"links",{get:function(){return this._links||(this._links=new We(this.createLink()),this._disposers.push(new Ie(this._links))),this._links},enumerable:!0,configurable:!0}),t.prototype.createLink=function(){var e=new Nn;return this._disposers.push(e),e},t.prototype.feedLegend=function(){var e=this.legend;if(e){var i=[];this.nodes.each(function(r,n){i.push(n)}),e.data=i,e.dataFields.name="name"}},t.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.nodes.clear()},t})(Ea);S.registeredClasses.FlowDiagram=Zo;var Pu=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="LabelBullet";var i=e.createChild(Rt);return i.shouldClone=!1,i.verticalCenter="middle",i.horizontalCenter="middle",i.truncate=!0,i.hideOversized=!1,i.maxWidth=500,i.maxHeight=500,i.stroke=oe(),i.strokeOpacity=0,i.fill=new ue().getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=i,e.applyTheme(),e}return t.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},t})(Fi);S.registeredClasses.LabelBullet=Pu;var np=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var i=e.createChild(Pu);i.shouldClone=!1,i.locationX=1,i.locationY=.5,i.label.text="{name}",i.width=150,i.height=150,i.label.horizontalCenter="left",i.label.padding(0,5,0,5),e.nameLabel=i;var r=e.createChild(Pu);r.shouldClone=!1,r.label.hideOversized=!1,r.locationX=.5,r.locationY=.5,r.width=150,r.height=150,r.label.horizontalCenter="middle",e.valueLabel=r;var n=e.hiddenState;return n.properties.fill=new ue().getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,e.background.hiddenState.copyFrom(n),e}return t.prototype.invalidateLinks=function(){var e=this;a.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var i=this.chart;if(i){var r=i.orientation;this._incomingSorted&&j(this._incomingSorted,function(n){var s=n.link,o=n.getWorkingValue("value");if(x(o)){s.parent=e.chart.linksContainer;var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(l=e.pixelX+e.dx,u=e.nextInCoord+e.pixelY+e.dy,h=0):(u=e.pixelY+e.dy,l=e.nextInCoord+e.pixelX+e.dx,h=90),s.endX=l,s.endY=u,s.startAngle=h,s.endAngle=h,s.gradient.rotation=h,s.linkWidth=o*i.valueHeight,!n.fromNode){r=="horizontal"?(s.maxWidth=200,s.startX=e.pixelX+e.dx-s.maxWidth,s.startY=s.endY):(s.maxHeight=200,s.startX=s.endX,s.startY=e.pixelY+e.dy-s.maxHeight),s.gradient,s.fill=n.toNode.color;var p=s.gradient.stops.getIndex(0);p&&(s.colorMode=="gradient"&&(p.color=e.color),p.opacity=0,s.fill=s.gradient,s.stroke=s.gradient,s.gradient.validate())}e.nextInCoord+=s.linkWidth}}),this._outgoingSorted&&j(this._outgoingSorted,function(n){var s=n.link;s.parent=e.chart.linksContainer;var o=n.getWorkingValue("value");if(x(o)){var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(h=0,l=e.pixelX+e.pixelWidth+e.dx-1,u=e.nextOutCoord+e.pixelY+e.dy):(h=90,l=e.nextOutCoord+e.pixelX+e.dx,u=e.pixelY+e.pixelHeight+e.dy-1),s.startX=l,s.startY=u,s.startAngle=h,s.endAngle=h,s.gradient.rotation=h,s.linkWidth=o*e.chart.valueHeight,!n.toNode){r=="horizontal"?(s.maxWidth=200,s.endX=e.pixelX+s.maxWidth+e.dx,s.endY=s.startY):(s.maxHeight=200,s.endX=s.startX,s.endY=e.pixelY+s.maxHeight+e.dy),s.opacity=e.opacity;var p=s.gradient.stops.getIndex(1);p&&(s.colorMode=="gradient"&&(p.color=e.color),p.opacity=0,s.fill=s.gradient,s.stroke=s.gradient,s.gradient.validate())}e.nextOutCoord+=s.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},t.prototype.positionBullet=function(e){e&&(e.x=this.measuredWidth*e.locationX,e.y=this.measuredHeight*e.locationY)},Object.defineProperty(t.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(e){this.setPropertyValue("level",e,!0)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},t})(Mn);S.registeredClasses.SankeyNode=np;var Vs=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return t.prototype.makePath=function(){this._distance=0;var e=this.segments,i=this.tensionX,r=this.tensionY;if(this.allPoints=[],e&&e.length>0){var n="";this._realSegments=[];for(var s=0,o=e.length;s<o;s++){var l=e[s],u=[];if(this._realSegments.push(u),l.length>0){var h=l[0],p=l[l.length-1],d=!1;z(h.x,3)==z(p.x)&&z(h.y)==z(p.y)&&(d=!0),n+=X(l[0]);for(var c=0;c<l.length-1;c++){var f=l[c-1],m=l[c],y=l[c+1],g=l[c+2];c===0?f=l[c]:c==l.length-2&&(g=l[c+1]),g||(g=y),c===0?d?f=l[l.length-2]:f=l[s]:c==l.length-2&&(d?g=l[1]:g=l[c+1]);var v=oh(f,m,y,g,i,r),b=lh(f,m,y,g,i,r);n+=Qa(y,v,b);var P=Math.ceil(Fy(m,y,v,b,20))*1.2,w=m;if(P>0)for(var T=0;T<=P;T++){var F=Vl(m,y,v,b,T/P);if(!(F.x==w.x&&F.y==w.y)){u.push(F);var D=z(kt(w,F),5);this._distance+=Ee(w,F),this.allPoints[Math.floor(this._distance)]={x:F.x,y:F.y,angle:D},w=F}}else u.push(f)}}var O=this.allPoints;if(O.length>1){for(var N=0;N<O.length;N++)if(!O[N]){if(N>1)O[N]=O[N-1];else for(var L=1;L<O.length;L++)if(O[L]){O[N]=O[L];break}}}}this.path=n}},t.prototype.getClosestPointIndex=function(e){var i=this.allPoints,r,n=1/0;if(i.length>1)for(var s=1;s<i.length;s++){var o=Ee(e,i[s]);o<n&&(r=s,n=o)}return r},Object.defineProperty(t.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0),this.makePath()},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,i){var r=0,n=this.allPoints,s=n.length;if(x(e)||(e=0),s>1){if(i&&s>3){if(e<0){e<-.01&&(e=-.01);var o=n[0],l=n[1],u=o.x-(o.x-l.x)*s*e,h=o.y-(o.y-l.y)*s*e;return{x:u,y:h,angle:kt(o,l)}}else if(e>1){e>1.01&&(e=1.01);var o=n[n.length-2],l=n[n.length-3],u=o.x+(o.x-l.x)*s*(e-1),h=o.y+(o.y-l.y)*s*(e-1);return{x:u,y:h,angle:kt(o,{x:u,y:h})}}else if(e==1){var p=n[n.length-1];return{x:p.x,y:p.y,angle:p.angle}}}else e<0&&(e=Math.abs(e),r=180),e>=1&&(e=.9999999999999);var d=n[Math.floor(e*s)];return{x:d.x,y:d.y,angle:d.angle+r}}else if(s==1){var d=n[0];return{x:d.x,y:d.y,angle:d.angle}}else return{x:0,y:0,angle:0}},t})(tn);S.registeredClasses.Polyspline=Vs;var sp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SankeyLink",new ue,e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(Vs),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return t.prototype.makeBackwards=function(){this.states.getKey("backwards")!=null&&this.setState("backwards")},t.prototype.validate=function(){var e,i,r,n;if(a.prototype.validate.call(this),!this.isTemplate){var s=this.startX,o=this.startY,l=this.endX,u=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var h=this.dataItem.component;h&&(h.orientation=="horizontal"?l<s&&(e=gn([l,s],2),s=e[0],l=e[1],i=gn([u,o],2),o=i[0],u=i[1],this.makeBackwards()):u<o&&(r=gn([u,o],2),o=r[0],u=r[1],n=gn([l,s],2),s=n[0],l=n[1],this.makeBackwards()))}x(l)||(l=s),x(u)||(u=o);var p=this.startAngle,d=this.endAngle,c=this.linkWidth,f="",m=s,y=o,g=l,v=u,b=s+c*Z(p),P=l+c*Z(d),w=o+c*Q(p),T=u+c*Q(d),F=s+c/2*Z(p),D=l+c/2*Z(d),O=o+c/2*Q(p),N=u+c/2*Q(d);this.zIndex=this.zIndex||this.dataItem.index;var L=this.tension+(1-this.tension)*Z(p),E=this.tension+(1-this.tension)*Q(p);if(this.middleLine.tensionX=L,this.middleLine.tensionY=E,x(c)&&x(s)&&x(l)&&x(o)&&x(u)){z(m,3)==z(g,3)&&(g+=.01),z(y,3)==z(v,3)&&(v+=.01),z(b,3)==z(P,3)&&(P+=.01),z(w,3)==z(T,3)&&(T+=.01);var B=Math.min(b,P,m,g),U=Math.min(w,T,y,v),q=Math.max(b,P,m,g),Y=Math.max(w,T,y,v);this._bbox={x:B,y:U,width:q-B,height:Y-U};var he=this.controlPointDistance,re=m+(g-m)*he*Q(p),pe=y+(v-y)*he*Z(p),le=g-(g-m)*he*Q(d),Pe=v-(v-y)*he*Z(d),ae=F+(D-F)*he*Q(p),Oe=O+(N-O)*he*Z(p),ve=D-(D-F)*he*Q(d),Ye=N-(N-O)*he*Z(d),Qe=kt({x:re,y:pe},{x:le,y:Pe}),rt=(c/Q(Qe)-c)/qd(Qe)*Q(p),zt=(c/Z(Qe)-c)*qd(Qe)*Z(p),Gt=-rt/2+b+(P-b)*he*Q(p),at=-zt/2+w+(T-w)*he*Z(p),mt=-rt/2+P-(P-b)*he*Q(d),mi=-zt/2+T-(T-w)*he*Z(d);N==O&&(N+=.01),this.middleLine.segments=[[{x:F,y:O},{x:ae,y:Oe},{x:ve,y:Ye},{x:D,y:N}]],re+=rt/2,pe+=zt/2,le+=rt/2,Pe+=zt/2,f+=X({x:m,y}),f+=new Vr(L,E).smooth([{x:m,y},{x:re,y:pe},{x:le,y:Pe},{x:g,y:v}]),f+=R({x:P,y:T}),f+=new Vr(L,E).smooth([{x:P,y:T},{x:mt,y:mi},{x:Gt,y:at},{x:b,y:w}]),f+=it()}this.link.path=f,this.maskBullets&&(this.bulletsMask.path=f,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(t.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(e){this.setPropertyValue("startX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(e){this.setPropertyValue("endX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(e){this.setPropertyValue("startY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(e){this.setPropertyValue("endY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(e){this.setPropertyValue("linkWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),t})(Nn);S.registeredClasses.SankeyLink=sp;var Wg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return t})(Ko);var qg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=W(100),e.nodesContainer.height=W(100),e.linksContainer.width=W(100),e.linksContainer.height=W(100),e.applyTheme(),e}return t.prototype.validateData=function(){var e=this;this._valueHeight=void 0,a.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(i,r){r.level=void 0}),this.nodes.each(function(i,r){r.level=e.getNodeLevel(r,0),e._levelCount=fe(e._levelCount,r.level)})},t.prototype.getNodeLevel=function(e,i){var r=this,n=[i];return j(e.incomingDataItems.iterator(),function(s){s.fromNode&&(x(s.fromNode.level)?n.push(s.fromNode.level+1):(r._counter=0,r.checkLoop(s.fromNode),r._counter<r.dataItems.length&&n.push(r.getNodeLevel(s.fromNode,i+1))))}),Math.max.apply(Math,Ua(n))},t.prototype.checkLoop=function(e){var i=this;this._counter++,!(this._counter>this.dataItems.length)&&j(e.incomingDataItems.iterator(),function(r){i.checkLoop(r.fromNode)})},t.prototype.calculateValueHeight=function(){var e=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var i=this.dataItem.values.value.sum;j(this._sorted,function(p){var d=p[1];e.getNodeValue(d)}),this.nodes.each(function(p,d){var c=d.level,f=Math.max(d.totalIncoming,d.totalOutgoing);f/i<e.minNodeSize&&(f=i*e.minNodeSize),x(e._levelSum[c])?e._levelSum[c]+=f:e._levelSum[c]=f,x(e._levelNodesCount[c])?e._levelNodesCount[c]++:e._levelNodesCount[c]=1});var r;this.orientation=="horizontal"?r=this.chartContainer.maxHeight-1:r=this.chartContainer.maxWidth-1;var n,s;se(this._levelSum,function(p,d){var c=d,f=e._levelNodesCount[p],m=(r-(f-1)*e.nodePadding)/c;m==1/0&&(m=0),(s>m||!x(s))&&(s=m,e.maxSum=c,n=qe(p))}),this._maxSumLevel=n;var o=this._levelNodesCount[this._maxSumLevel],l=(r-(o-1)*this.nodePadding)/this.maxSum;if(l==1/0&&(l=0),!x(this.valueHeight))this.valueHeight=l;else{var u=void 0;try{u=this._heightAnimation.animationOptions[0].to}catch{}if(u!=l){var h=this.interpolationDuration;try{h=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new bi(this,{property:"valueHeight",from:this.valueHeight,to:l},h,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}},t.prototype.validate=function(){var e=this;a.prototype.validate.call(this),this.calculateValueHeight();var i=this.nodesContainer,r={},n=this._levelNodesCount[this._maxSumLevel],s=this.dataItem.values.value.sum,o;this.orientation=="horizontal"?o=this.chartContainer.maxHeight-1:o=this.chartContainer.maxWidth-1,j(this._sorted,function(l){var u=l[1],h=u.level,p=0,d=e._levelNodesCount[h];switch(e.nodeAlign){case"bottom":p=(e.maxSum-e._levelSum[h])*e.valueHeight-(d-n)*e.nodePadding;break;case"middle":p=(e.maxSum-e._levelSum[h])*e.valueHeight/2-(d-n)*e.nodePadding/2;break}if(e.maxSum==0)switch(e.nodeAlign){case"bottom":p=o-d*(e.minNodeSize*o+e.nodePadding);break;case"middle":p=o/2-d/2*(e.minNodeSize*o+e.nodePadding);break}u.parent=i;var c,f,m,y=Math.max(u.totalIncoming,u.totalOutgoing);if(y/s<e.minNodeSize&&(y=s*e.minNodeSize),e.orientation=="horizontal"){c=(e.innerWidth-u.pixelWidth)/e._levelCount,f=c*u.level,m=r[h]||p;var g=y*e.valueHeight;s==0&&g==0&&(g=e.minNodeSize*o),u.height=g,u.minX=f,u.maxX=f,r[h]=m+g+e.nodePadding}else{c=(e.innerHeight-u.pixelHeight)/e._levelCount,f=r[h]||p,m=c*u.level;var v=y*e.valueHeight;s==0&&v==0&&(v=e.minNodeSize*o),u.width=v,u.minY=m,u.maxY=m,r[h]=f+v+e.nodePadding}u.x=f,u.y=m})},t.prototype.showReal=function(e){var i=this;if(!this.preventShow){if(this.interpolationDuration>0){var r=this.nodesContainer,n=0;j(this.links.iterator(),function(s){s.hide(0)}),j(this._sorted,function(s){var o=s[1],l;i.orientation=="horizontal"?(o.dx=-(r.pixelWidth-o.pixelWidth)/Math.max(i._levelCount,1),l="dx"):(o.dy=-(r.pixelHeight-o.pixelHeight)/Math.max(i._levelCount,1),l="dy");var u=0,h=i.interpolationDuration;i.sequencedInterpolation&&(u=i.sequencedInterpolationDelay*n+h*n/Zy(i.nodes.iterator())),o.opacity=0,o.invalidateLinks(),o.animate([{property:"opacity",from:0,to:1},{property:l,to:0}],i.interpolationDuration,i.interpolationEasing).delay(u),j(o.outgoingDataItems.iterator(),function(p){var d=p.link.show(i.interpolationDuration);d&&!d.isFinished()&&d.delay(u)}),j(o.incomingDataItems.iterator(),function(p){if(!p.fromNode){var d=p.link.show(i.interpolationDuration);d&&!d.isFinished()&&d.delay(u)}}),n++})}return a.prototype.showReal.call(this)}},t.prototype.changeSorting=function(){var e=this;this.sortNodes();var i={};j(this._sorted,function(r){var n=r[1],s=n.level,o=(e.maxSum-e._levelSum[s])*e.valueHeight/2,l,u;e.orientation=="horizontal"?(l="y",u=n.pixelHeight):(l="x",u=n.pixelWidth),n.animate({property:l,to:i[s]||o},e.interpolationDuration,e.interpolationEasing),i[s]=(i[s]||o)+u+e.nodePadding,n.invalidateLinks()})},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},t.prototype.createDataItem=function(){return new Wg},Object.defineProperty(t.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(e){this.setPropertyValue("nodeAlign",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var i=this.nodes.template.nameLabel;e=="vertical"?(this.nodes.template.width=void 0,i.label.horizontalCenter="middle",i.locationX=.5):(this.nodes.template.height=void 0,i.label.horizontalCenter="left",i.locationX=1)},enumerable:!0,configurable:!0}),t.prototype.createNode=function(){var e=new np;return this._disposers.push(e),e},t.prototype.createLink=function(){var e=new sp;return this._disposers.push(e),e},Object.defineProperty(t.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(e){e!=this._valueHeight&&(this._valueHeight=e,this.invalidate())},enumerable:!0,configurable:!0}),t.prototype.disposeData=function(){a.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},t})(Zo);S.registeredClasses.SankeyDiagram=qg;var op=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="ChordNode";var i=e.createChild(kn);i.location=.5,i.radius=5,i.text="{name}",i.zIndex=1,i.shouldClone=!1,e.label=i,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(Mr),e.slice.isMeasured=!1;var r=e.hiddenState;return r.properties.fill=new ue().getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(n,s){return s.slice.ix*(s.slice.radius-(s.slice.radius-s.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(n,s){return s.slice.iy*(s.slice.radius-(s.slice.radius-s.slice.pixelInnerRadius)/2)}),e}return t.prototype.invalidateLinks=function(){var e=this;a.prototype.invalidateLinks.call(this);var i=this.label,r=this.slice,n=this.chart;if(n&&r){var s=this.total,o=r.arc,l=r.startAngle;this.children.each(function(p){if(p instanceof Fi){var d=p.locationX;x(d)||(d=.5);var c=p.locationY;x(c)||(c=1);var f=l+o*d,m=c*r.radius;p.x=m*Q(f),p.y=m*Z(f)}});var u=l+o*i.location,h=l+(1-s/this.adjustedTotal)*o*.5;Zt(h)&&(h=l),i.fixPosition(u,r.radius),this.nextAngle=h,this._outgoingSorted&&j(this._outgoingSorted,function(p){var d=p.link;d.parent=e.chart.linksContainer;var c=p.getWorkingValue("value");if(x(c)){if(n.nonRibbon){var f=d.percentWidth;x(f)||(f=5),f=f/100,d.startAngle=l+o/2-o/2*f,d.arc=o*f}else d.arc=c*n.valueAngle,d.startAngle=e.nextAngle,e.nextAngle+=d.arc;p.toNode||(d.endAngle=d.startAngle),d.radius=r.pixelInnerRadius}}),this._incomingSorted&&j(this._incomingSorted,function(p){var d=p.link;if(d.radius=r.pixelInnerRadius,n.nonRibbon){var c=d.percentWidth;x(c)||(c=5),c=c/100,d.endAngle=l+o/2-o/2*c,d.arc=o*c}else{d.endAngle=e.nextAngle;var f=p.getWorkingValue("value");x(f)&&(d.arc=f*n.valueAngle,e.nextAngle+=d.arc)}p.fromNode||(d.startAngle=d.endAngle)})}},t.prototype.updateRotation=function(){var e=this.slice,i=this.trueStartAngle+e.arc/2,r=e.radius,n=r*Q(i),s=r*Z(i),o=kt({x:n+this.pixelX,y:s+this.pixelY});e.startAngle=this.trueStartAngle+(o-i),this.dx=-this.pixelX,this.dy=-this.pixelY},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},t})(Mn);S.registeredClasses.ChordNode=op;var zg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=oe(),e.applyTheme(),e}return t.prototype.draw=function(){if(x(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},r={x:this.cpx,y:this.cpy},n=X(e)+La(i,r);this.path=n}},Object.defineProperty(t.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(e){this.setPropertyValue("cpx",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(e){this.setPropertyValue("cpy",e,!0)},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e){var i={x:this.x1,y:this.y1},r={x:this.cpx,y:this.cpy},n={x:this.x2,y:this.y2},s=zd(i,n,r,e),o=zd(i,n,r,e+.001);return{x:s.x,y:s.y,angle:kt(s,o)}},t})(Ii);var lp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(zg),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return t.prototype.validate=function(){if(a.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,r=this.arc,n=this.radius,s=this.dataItem.fromNode,o=this.dataItem.toNode,l=0,u=0;s&&(l=s.pixelX+s.dx,u=s.pixelY+s.dy);var h=0,p=0;if(o&&(h=o.pixelX+o.dx,p=o.pixelY+o.dy),n>0){var d=n*Q(e)+l,c=n*Z(e)+u,f=n*Q(i)+h,m=n*Z(i)+p,y={x:0,y:0},g=X({x:d,y:c});g+=qt(e,r,n),g+=La({x:f,y:m},y),g+=qt(i,r,n),g+=La({x:d,y:c},y),r>0?this.link.path=g:this.link.path="",this.maskBullets&&(this.bulletsMask.path=g,this.bulletsContainer.mask=this.bulletsMask);var v=e+r/2,b=i+r/2,P=this.middleLine;P.x1=n*Q(v)+l,P.y1=n*Z(v)+u,P.x2=n*Q(b)+h,P.y2=n*Z(b)+p,P.cpx=0,P.cpy=0,P.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),t})(Nn);S.registeredClasses.ChordLink=lp;var Hg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return t})(Ko);var Ug=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=W(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(te);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return t.prototype.validate=function(){var e=this,i=this.chartContainer,r=this.endAngle,n=this.startAngle+this.nodePadding/2,s=ir(this.startAngle,this.endAngle,1),o={x:0,y:0,width:0,height:0};s=Ta([s,o]);var l=Math.min(i.innerWidth/s.width,i.innerHeight/s.height);x(l)||(l=0);var u=Vt(this.radius,l),h=Vt(this.innerRadius,u,!0),p=this.dataItem.values.value.sum,d=0,c=0;j(this._sorted,function(f){var m=f[1];e.getNodeValue(m),d++;var y=m.total;m.total/p<e.minNodeSize&&(y=p*e.minNodeSize),c+=y}),this.valueAngle=(r-this.startAngle-this.nodePadding*d)/c,j(this._sorted,function(f){var m=f[1],y=m.slice;y.radius=u,y.innerRadius=h;var g=m.total;m.total/p<e.minNodeSize&&(g=p*e.minNodeSize),m.adjustedTotal=g;var v;e.nonRibbon?v=(r-e.startAngle)/d-e.nodePadding:v=e.valueAngle*g,y.arc=v,y.startAngle=n,m.trueStartAngle=n,m.parent=e.nodesContainer,m.validate(),n+=v+e.nodePadding}),this.chordContainer.definedBBox={x:u*s.x,y:u*s.y,width:u*s.width,height:u*s.height},this.chordContainer.invalidateLayout(),a.prototype.validate.call(this)},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},t.prototype.createDataItem=function(){return new Hg},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(e){this.setPropertyValue("nonRibbon",e,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),t.prototype.createNode=function(){var e=new op;return this._disposers.push(e),e},t.prototype.createLink=function(){var e=new lp;return this._disposers.push(e),e},t})(Zo);S.registeredClasses.ChordDiagram=Ug;var hf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"parentName",{get:function(){var e=this.treeMapDataItem;if(e&&e.parent)return e.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.treeMapDataItem;if(e)return e.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),t.prototype.hide=function(e,i,r,n){var s=this.treeMapDataItem;return s&&s.hide(e),a.prototype.hide.call(this,e,i,r,n)},t.prototype.show=function(e,i,r){var n=this.treeMapDataItem;return n&&n.show(e,i,r),a.prototype.show.call(this,e,i,r)},t})(nr);var _u=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var i=new ue;return e.stroke=i.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return t.prototype.processDataItem=function(e,i){i.seriesDataItem=e,a.prototype.processDataItem.call(this,e,i)},t.prototype.createDataItem=function(){return new hf},t.prototype.show=function(e){if(!this.preventShow){var i=this.defaultState.transitionDuration;return x(e)&&(i=e),this.dataItems.each(function(r){r.show(e)}),a.prototype.showReal.call(this,i)}},t.prototype.hide=function(e){var i=this.defaultState.transitionDuration;x(e)&&(i=e);var r=a.prototype.hideReal.call(this,i);return this.dataItems.each(function(n){n.hide(e)}),r},t.prototype.processValues=function(){},t.prototype.getStartLocation=function(e){return 0},t.prototype.getEndLocation=function(e){return 1},t.prototype.dataChangeUpdate=function(){},t.prototype.processConfig=function(e){e&&(!C(e.dataFields)||!He(e.dataFields))&&(e.dataFields={}),a.prototype.processConfig.call(this,e)},t.prototype.createLegendMarker=function(e){var i=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var n=e.createChild(xi);n.shouldClone=!1,xt(this,n,ot),n.padding(0,0,0,0),n.width=i,n.height=r;var s=e.dataItem;s.color=n.fill,s.colorOrig=n.fill},t.prototype.disableUnusedColumns=function(e){a.prototype.disableUnusedColumns.call(this,e),e.column&&(e.column.__disabled=!1)},t})(wr);S.registeredClasses.TreeMapSeries=_u;S.registeredClasses.TreeMapSeriesDataItem=hf;var Gg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={workingValue:0},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),t.prototype.getDuration=function(){return 0},Object.defineProperty(t.prototype,"value",{get:function(){var e=0;return!this.children||this.children.length==0?e=this.values.value.workingValue:j(this.children.iterator(),function(i){var r=i.value;x(r)&&(e+=r)}),e},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x0",{get:function(){return this.values.x0.value},set:function(e){this.setValue("x0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x1",{get:function(){return this.values.x1.value},set:function(e){this.setValue("x1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y0",{get:function(){return this.values.y0.value},set:function(e){this.setValue("y0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this.values.y1.value},set:function(e){this.setValue("y1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties.children},set:function(e){this.setProperty("children",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){var e=this.properties.color;return e==null&&this.parent&&(e=this.parent.color),e==null&&this.component&&(e=this.component.colors.getIndex(this.component.colors.step*this.index)),e},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){e!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=e,this._disposers.push(e))},enumerable:!0,configurable:!0}),t.prototype.hide=function(e,i,r,n){this.setWorkingValue("value",0),this.children&&this.children.each(function(o){o.hide(e,i,r,n)});var s=this.seriesDataItem;return s&&s.bullets.each(function(o,l){l.hide(),l.preventShow=!0}),a.prototype.hide.call(this,e,i,r,n)},t.prototype.show=function(e,i,r){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(s){s.show(e,i,r)});var n=this.seriesDataItem;return n&&n.bullets.each(function(s,o){o.preventShow=!1}),a.prototype.show.call(this,e,i,r)},t})(Is);var Yg=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e._usesData=!0,e.maxLevels=2,e.currentLevel=0,e.hideParentColumns=!1,e.colors=new ka,e.sorting="descending";var i=e.xAxes.push(new $e);i.title.disabled=!0,i.strictMinMax=!0;var r=i.renderer;r.inside=!0,r.labels.template.disabled=!0,r.ticks.template.disabled=!0,r.grid.template.disabled=!0,r.axisFills.template.disabled=!0,r.minGridDistance=100,r.line.disabled=!0,r.baseGrid.disabled=!0;var n=e.yAxes.push(new $e);n.title.disabled=!0,n.strictMinMax=!0;var s=n.renderer;s.inside=!0,s.labels.template.disabled=!0,s.ticks.template.disabled=!0,s.grid.template.disabled=!0,s.axisFills.template.disabled=!0,s.minGridDistance=100,s.line.disabled=!0,s.baseGrid.disabled=!0,s.inversed=!0,e.xAxis=i,e.yAxis=n;var o=new _u;return e.seriesTemplates=new Oa(o),o.virtualParent=e,e._disposers.push(new mr(e.seriesTemplates)),e._disposers.push(o),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(l){l.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(e){var i=this;this._navigationBar!=e&&(this._navigationBar=e,e.parent=this,e.toBack(),e.links.template.events.on("hit",function(r){var n=r.target.dataItem.dataContext;n.isDisposed()||(i.zoomToChartDataItem(n),i.createTreeSeries(n))},void 0,!0),this._disposers.push(e))},enumerable:!0,configurable:!0}),t.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],a.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,j(this.dataItems.iterator(),function(n){n.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var i=1e3,r=Math.round(i*this.pixelHeight/this.pixelWidth/10)*10||1e3;e.x1=i,e.y1=r,this.xAxis.min=0,this.xAxis.max=i,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=r,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e),this.feedLegend()},t.prototype.layoutItems=function(e,i){if(e){var r=e.children;i||(i=this.sorting),i=="ascending"&&r.values.sort(function(l,u){return l.value-u.value}),i=="descending"&&r.values.sort(function(l,u){return u.value-l.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(e);for(var n=0,s=r.length;n<s;n++){var o=r.getIndex(n);o.children&&this.layoutItems(o)}}},t.prototype.createTreeSeries=function(e){var i=this;this._tempSeries=[];for(var r=[e],n=e.parent;n!=null;)this.initSeries(n),r.push(n),n=n.parent;r.reverse(),this.navigationBar&&(this.navigationBar.data=r),this.createTreeSeriesReal(e),K(this._tempSeries,function(s){i.series.indexOf(s)==-1&&i.series.push(s),s.zIndex=s.level})},t.prototype.createTreeSeriesReal=function(e){if(e.children){var i=e.level;if(i<this.currentLevel+this.maxLevels){this.initSeries(e);for(var r=0;r<e.children.length;r++){var n=e.children.getIndex(r);n.children&&this.createTreeSeriesReal(n)}}}},t.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,a.prototype.setData.call(this,e)},t.prototype.seriesAppeared=function(){return!0},t.prototype.initSeries=function(e){var i=this;if(!e.series){var r=void 0,n=this.seriesTemplates.getKey(e.level.toString());n?r=n.clone():r=this.series.create(),r.dataItem.dataContext=e,r.name=e.name,r.parentDataItem=e,e.series=r;var s=e.level;r.level=s;var o=e.dataContext;o&&(r.config=o.config),this.dataUsers.removeValue(r),r.data=e.children.values,r.fill=e.color,r.columnsContainer.hide(0),r.bulletsContainer.hide(0),r.columns.template.adapter.add("fill",function(l,u){var h=u.dataItem;if(h){var p=h.treeMapDataItem;if(p)return u.fill=p.color,u.adapter.remove("fill"),p.color}}),this.zoomable&&(e.level>this.currentLevel||e.children&&e.children.length>0)&&(r.columns.template.cursorOverStyle=Mt.pointer,this.zoomable&&r.columns.template.events.on("hit",function(l){var u=l.target.dataItem;e.level>i.currentLevel?i.zoomToChartDataItem(u.treeMapDataItem.parent):i.zoomToSeriesDataItem(u)},this,void 0))}this._tempSeries.push(e.series)},t.prototype.toggleBullets=function(e){var i=this;j(this.series.iterator(),function(r){i._tempSeries.indexOf(r)==-1?(r.columnsContainer.hide(),r.bulletsContainer.hide(e)):(r.columnsContainer.show(),r.bulletsContainer.show(e),r.dataItems.each(function(n){n.bullets.each(function(s,o){o.show()})}),r.level<i.currentLevel?(i.hideParentColumns&&r.columnsContainer.hide(),r.bulletsContainer.hide(e)):r.level==i.currentLevel&&i.maxLevels>1&&r.dataItems.each(function(n){n.treeMapDataItem.children&&n.bullets.each(function(s,o){o.hide()})}))})},t.prototype.zoomToSeriesDataItem=function(e){this.zoomToChartDataItem(e.treeMapDataItem)},t.prototype.zoomToChartDataItem=function(e){var i=this;e||(e=this._homeDataItem);var r=this.zoomOutButton;if(r&&(e!=this._homeDataItem?r.show():r.hide()),e&&e.children){this.xAxis.zoomToValues(e.x0,e.x1),this.yAxis.zoomToValues(e.y0,e.y1),this.currentLevel=e.level,this.currentlyZoomed=e,this.createTreeSeries(e);var n=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;n&&!n.isDisposed()&&!n.isFinished()?(this._dataDisposers.push(n),n.events.once("animationended",function(){i.toggleBullets()})):this.toggleBullets()}},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},t.prototype.createDataItem=function(){return new Gg},Object.defineProperty(t.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(e){this.setPropertyValue("maxLevels",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(e){this.setPropertyValue("currentLevel",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(e){this.setPropertyValue("hideParentColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(e){this.setPropertyValue("sorting",e,!0)},enumerable:!0,configurable:!0}),t.prototype.createSeries=function(){return new _u},Object.defineProperty(t.prototype,"homeText",{get:function(){return this._homeText},set:function(e){this._homeText=e,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){if(e){if(C(e.layoutAlgorithm)&&ye(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm;break}C(e.navigationBar)&&!C(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),a.prototype.processConfig.call(this,e)}},t.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},t.prototype.validateDataItems=function(){a.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),j(this.series.iterator(),function(e){e.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},t.prototype.binaryTree=function(e){var i=e.children,r,n=i.length,s,o=new Array(n+1);for(o[0]=s=r=0;r<n;++r)o[r+1]=s+=i.getIndex(r).value;n>0&&l(0,n,e.value,e.x0,e.y0,e.x1,e.y1);function l(u,h,p,d,c,f,m){if(u>=h-1){var y=i.getIndex(u);y.x0=d,y.y0=c,y.x1=f,y.y1=m;return}for(var g=o[u],v=p/2+g,b=u+1,P=h-1;b<P;){var w=b+P>>>1;o[w]<v?b=w+1:P=w}v-o[b-1]<o[b]-v&&u+1<b&&--b;var T=o[b]-g,F=p-T;if(p==0){var y=i.getIndex(u);y.x0=d,y.y0=c,y.x1=f,y.y1=m;return}if(f-d>m-c){var D=(d*F+f*T)/p;l(u,b,T,d,c,D,m),l(b,h,F,D,c,f,m)}else{var O=(c*F+m*T)/p;l(u,b,T,d,c,f,O),l(b,h,F,d,O,f,m)}}},t.prototype.slice=function(e){for(var i=e.x0,r=e.x1,n=e.y0,s=e.y1,o=e.children,l,u=-1,h=o.length,p=e.value&&(s-n)/e.value;++u<h;)l=o.getIndex(u),l.x0=i,l.x1=r,l.y0=n,n+=l.value*p,l.y1=n},t.prototype.dice=function(e){for(var i=e.x0,r=e.x1,n=e.y0,s=e.y1,o=e.children,l,u=-1,h=o.length,p=e.value&&(r-i)/e.value;++u<h;)l=o.getIndex(u),l.y0=n,l.y1=s,l.x0=i,i+=l.value*p,l.x1=i},t.prototype.sliceDice=function(e){e.level&1?this.slice(e):this.dice(e)},t.prototype.squarify=function(e){for(var i=(1+Math.sqrt(5))/2,r=e.x0,n=e.x1,s=e.y0,o=e.y1,l=e.children,u,h=0,p=0,d=l.length,c,f,m=e.value,y,g,v,b,P,w,T;h<d;){c=n-r,f=o-s;do y=l.getIndex(p++).value;while(!y&&p<d);for(g=v=y,w=Math.max(f/c,c/f)/(m*i),T=y*y*w,P=Math.max(v/T,T/g);p<d;++p){if(y+=u=l.getIndex(p).value,u<g&&(g=u),u>v&&(v=u),T=y*y*w,b=Math.max(v/T,T/g),b>P){y-=u;break}P=b}var F=this.dataItems.template.clone();F.value=y,F.dice=c<f,F.children=l.slice(h,p),F.x0=r,F.y0=s,F.x1=n,F.y1=o,F.dice?(F.y1=m?s+=f*y/m:o,this.dice(F)):(F.x1=m?r+=c*y/m:n,this.slice(F)),m-=y,h=p}},t.prototype.handleSeriesAdded2=function(){},t.prototype.handleDataItemValueChange=function(e,i){i=="value"&&this.invalidateDataItems()},t.prototype.handleDataItemWorkingValueChange=function(e,i){i=="value"&&this.invalidateDataItems()},t.prototype.getLegendLevel=function(e){if(e&&e.children){if(e.children.length>1)return e;if(e.children.length==1){var i=e.children.getIndex(0);return i.children?this.getLegendLevel(i):e}else return e}},t.prototype.handleLegendSeriesAdded=function(e){},Object.defineProperty(t.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),t.prototype.feedLegend=function(){var e=this.legend;if(e){e.dataFields.name="name";var i=this.getLegendLevel(this._homeDataItem);if(i){var r=[];i.children.each(function(n){r.push(n)}),e.data=r}}},t.prototype.disposeData=function(){a.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},t.prototype.getExporting=function(){var e=this,i=a.prototype.getExporting.call(this);return i.adapter.add("formatDataFields",function(r){return(r.format=="csv"||r.format=="xlsx")&&C(e.dataFields.children)&&delete r.dataFields[e.dataFields.children],r}),i},t})(Xi);S.registeredClasses.TreeMap=Yg;var up=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._chart=new st,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);if(e.element){var s=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getHeight();e.path=X({x:s,y:o})+R({x:s,y:l+o})+R({x:0,y:l})}this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D||0,r=this.chart.dy3D||0;this.baseGrid.path=X({x:i,y:r})+R({x:0,y:0})+R({x:0,y:e})},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),t.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},t})(xr);S.registeredClasses.AxisRendererX3D=up;var pf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._chart=new st,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return t.prototype.updateGridElement=function(e,i,r){i=i+(r-i)*e.location;var n=this.positionToPoint(i);if(e.element){var s=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getWidth();e.path=X({x:0,y:0})+R({x:s,y:o})+R({x:l+s,y:o})}this.positionItem(e,n),this.toggleVisibility(e,i,0,1)},t.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,i=this.chart.dy3D||0,r=this.getWidth();this.baseGrid.path=X({x:0,y:0})+R({x:r,y:0})+R({x:r+e,y:i})},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),t.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},t})(Ai);var df=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(ne);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var r=e.createChild(ne);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideBottom=r,e._disposers.push(e.sideBottom);var n=e.createChild(ne);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideLeft=n,e._disposers.push(e.sideLeft);var s=e.createChild(ne);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideRight=s,e._disposers.push(e.sideRight);var o=e.createChild(ne);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var l=e.createChild(ne);return l.shouldClone=!1,l.setElement(e.paper.add("path")),l.isMeasured=!1,e.sideFront=l,e._disposers.push(e.sideFront),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,r=this.depth,n=this.angle,s=Z(n),o=Q(n),l={x:0,y:0},u={x:e,y:0},h={x:e,y:i},p={x:0,y:i},d={x:r*o,y:-r*s},c={x:r*o+e,y:-r*s},f={x:r*o+e,y:-r*s+i},m={x:r*o,y:-r*s+i};this.sideFront.path=X(l)+R(u)+R(h)+R(p)+it(),this.sideBack.path=X(d)+R(c)+R(f)+R(m)+it(),this.sideLeft.path=X(l)+R(d)+R(m)+R(p)+it(),this.sideRight.path=X(u)+R(c)+R(f)+R(h)+it(),this.sideBottom.path=X(p)+R(m)+R(f)+R(h)+it(),this.sideTop.path=X(l)+R(d)+R(c)+R(u)+it()},Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),t.prototype.setFill=function(e){a.prototype.setFill.call(this,e),(!He(e)||"r"in e)&&(e=ji(e));var i;if(e instanceof _e)i=e.hex;else if(e instanceof fi||e instanceof yr)i=e.stops.getIndex(0).color.hex;else{var r=new Xo;r.lightness=-.2,this.sideBack.filters.push(r);var n=r.clone();n.lightness=-.4,this.sideLeft.filters.push(n);var s=r.clone();s.lightness=-.2,this.sideRight.filters.push(s);var o=r.clone();o.lightness=-.1,this.sideTop.filters.push(o);var l=r.clone();l.lightness=-.5,this.sideBottom.filters.push(l)}i&&(this.sideBack.fill=oe(i).lighten(-.2),this.sideLeft.fill=oe(i).lighten(-.4),this.sideRight.fill=oe(i).lighten(-.2),this.sideTop.fill=oe(i).lighten(-.1),this.sideBottom.fill=oe(i).lighten(-.5))},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},t})(te);var hp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Column3D",e}return t.prototype.createAssets=function(){this.column3D=this.createChild(df),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},t.prototype.validate=function(){a.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},t.prototype.setFill=function(e){a.prototype.setFill.call(this,e),this.column.fill=e},t})(Cr);S.registeredClasses.Column3D=hp;var Xg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return t})(nr);var Tu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return Object.defineProperty(t.prototype,"columnsContainer",{get:function(){var e=this.chart;return e&&e.columnsContainer&&e.leftAxesContainer.layout!="vertical"&&e.rightAxesContainer.layout!="vertical"&&e.bottomAxesContainer.layout!="horizontal"&&e.topAxesContainer.layout!="horizontal"?e.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),t.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},t.prototype.validateDataElements=function(){a.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},t.prototype.createColumnTemplate=function(){return new hp},Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0);var i=this.columns.template;i.column3D.depth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e);var i=this.columns.template;i.column3D.angle=e},enumerable:!0,configurable:!0}),t})(wr);S.registeredClasses.ColumnSeries3D=Tu;S.registeredClasses.ColumnSeries3DDataItem=Xg;var VP=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return t})(Is);var Kg=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._axisRendererX=up,e._axisRendererY=pf,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(te);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(ne),e.applyTheme(),e}return t.prototype.updateSeriesMasks=function(){if(a.prototype.updateSeriesMasks.call(this),Fa()){var e=this.columnsContainer,i=e.mask;e.mask=void 0,e.mask=i}},Object.defineProperty(t.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dx3D",{get:function(){return Q(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dy3D",{get:function(){return-Z(this.angle)*this.depth},enumerable:!0,configurable:!0}),t.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.fixColumns()},t.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),a.prototype.fixLayout.call(this)},t.prototype.fixColumns=function(){var e=this,i=1,r=0;j(this.series.iterator(),function(s){s instanceof Tu&&(!s.clustered&&r>0&&i++,s.depthIndex=i-1,r++)});var n=0;j(this.series.iterator(),function(s){if(s instanceof Tu){s.depth=e.depth/i,s.angle=e.angle,s.columnsContainer==e.columnsContainer&&(s.dx=e.depth/i*Q(e.angle)*s.depthIndex,s.dy=-e.depth/i*Z(e.angle)*s.depthIndex);var o=!1;(s.baseAxis==s.xAxis&&s.xAxis.renderer.inversed||s.baseAxis==s.yAxis&&s.yAxis.renderer.inversed)&&(o=!0);var l=1;s.dataItems.each(function(u){var h=u.column;h&&(o?h.zIndex=1e3*(1e3-l)+n-s.depthIndex*100:h.zIndex=1e3*l+n-s.depthIndex*100),l++}),o?n--:n++}}),this.maskColumns()},t.prototype.processConfig=function(e){if(e&&C(e.series)&&Je(e.series))for(var i=0,r=e.series.length;i<r;i++)e.series[i].type=e.series[i].type||"ColumnSeries3D";a.prototype.processConfig.call(this,e)},t.prototype.maskColumns=function(){var e=this.plotContainer.pixelWidth,i=this.plotContainer.pixelHeight,r=this.dx3D,n=this.dy3D,s=X({x:0,y:0})+R({x:r,y:n})+R({x:e+r,y:n})+R({x:e+r,y:i+n})+R({x:e,y:i})+R({x:e,y:i})+R({x:0,y:i})+it(),o=this.columnsContainer;o&&o.mask&&(o.mask.path=s)},t})(Xi);S.registeredClasses.XYChart3D=Kg;var Zg=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(te),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new xi;return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new We(i),e._disposers.push(new Ie(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return t.prototype.getMinFromRules=function(e){var i=this.series;if(i){var r;return ii(i.heatRules.iterator(),function(n){return n.property==e?(r=n.min,!1):!0}),r}},t.prototype.getMaxFromRules=function(e){var i=this.series;if(i){var r;return j(i.heatRules.iterator(),function(n){return n.property==e?(r=n.max,!1):!0}),r}},t.prototype.validate=function(){a.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,i=this.minColor,r=this.maxColor;if(C(i)||(i=ji(this.getMinFromRules("fill"))),C(r)||(r=ji(this.getMaxFromRules("fill"))),e){var n=e.fill;!C(i)&&n instanceof _e&&(i=n),!C(r)&&n instanceof _e&&(r=n)}C(r)||(r=ji(this.getMaxFromRules("fill")));var s=qe(this.getMinFromRules("fillOpacity"));x(s)||(s=1);var o=qe(this.getMaxFromRules("fillOpacity"));x(o)||(o=1);var l=qe(this.getMinFromRules("strokeOpacity"));x(l)||(l=1);var u=qe(this.getMaxFromRules("strokeOpacity"));x(u)||(u=1);for(var h=ji(this.getMinFromRules("stroke")),p=ji(this.getMaxFromRules("stroke")),d=0;d<this.markerCount;d++){var c=this.markers.getIndex(d);if(c||(c=this.markers.create(),c.parent=this.markerContainer,c.height=W(100),c.width=W(100)),this.markerCount==1){var f=new fi;if(this.reverseOrder?(f.addColor(r,o),f.addColor(i,s)):(f.addColor(i,s),f.addColor(r,o)),this.orientation=="vertical"&&(f.rotation=-90),c.fill=f,C(h)&&C(p)){var m=new fi;this.reverseOrder?(m.addColor(p,u),m.addColor(h,l)):(m.addColor(h,l),m.addColor(p,u)),this.orientation=="vertical"&&(m.rotation=-90),c.stroke=m}}else{var y=d;this.reverseOrder&&(y=this.markerCount-d-1);var g=new _e(hs(i.rgb,r.rgb,y/this.markerCount));c.fill=g;var v=s+(o-s)*y/this.markerCount;if(c.fillOpacity=v,C(h)&&C(p)){var b=new _e(hs(h.rgb,p.rgb,y/this.markerCount));c.stroke=b;var P=l+(u-l)*y/this.markerCount;c.strokeOpacity=P}}}var w=this.valueAxis.renderer;this.markerCount>1&&(this.orientation=="horizontal"?w.minGridDistance=this.measuredWidth/this.markerCount:w.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();for(var d=this.markerCount,T=this.markers.length;d<T;d++)this.markers.getIndex(d).parent=void 0},Object.defineProperty(t.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(e){e instanceof _e||(e=ji(e)),this.setColorProperty("minColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(e){e instanceof _e||(e=ji(e)),this.setColorProperty("maxColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(e){this.setPropertyValue("markerCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e),this.valueAxis.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e),this.valueAxis.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var i=this.markerContainer,r=this.valueAxis;e=="horizontal"?(C(this.width)||(this.width=200),this.height=void 0,r.width=W(100),r.height=void 0,r.tooltip.pointerOrientation="vertical",this.layout="vertical",i.width=W(100),i.height=void 0,r.renderer instanceof xr||(r.renderer=new xr)):(C(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",i.width=void 0,i.height=W(100),r.height=W(100),r.width=void 0,r.tooltip.pointerOrientation="horizontal",r.renderer instanceof Ai||(r.renderer=new Ai),r.renderer.inside=!0,r.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=r.renderer;n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.baseGrid.disabled=!0,n.labels.template.padding(2,3,2,3),n.minHeight=void 0,n.minWidth=void 0,this.markerContainer.layout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild($e),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(e){this._valueAxis=e,e.parent=this,e.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var i=this;this._series=e;var r="value";try{var n=e.heatRules.getIndex(0).dataField;n&&(r=n)}catch{}this.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high),e.dataItem.events.on("calculatedvaluechanged",function(s){i.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high)},void 0,!1),e.heatRules.events.on("inserted",this.invalidate,this,!1),e.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),t.prototype.updateMinMax=function(e,i){var r=this.valueAxis;x(this.minValue)||(r.min=e,r.invalidate()),x(this.maxValue)||(r.max=i,r.invalidate())},t.prototype.processConfig=function(e){if(e&&C(e.series)&&ye(e.series)&&ye(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,r=this.map.events.on("insertKey",function(n){n.key==i&&(this.series=n.newValue,r.dispose())},this);this._disposers.push(r),delete e.series}a.prototype.processConfig.call(this,e)},t})(te);S.registeredClasses.HeatLegend=Zg;var $u=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="OHLC",e.layout="none",e}return t.prototype.createAssets=function(){this.openLine=this.createChild(Ii),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(Ii),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(Ii),this.closeLine.shouldClone=!1},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},t})(Es);S.registeredClasses.OHLC=$u;var cf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return t})(Cu);var Qg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},t.prototype.createDataItem=function(){return new cf},t.prototype.validateCandlestick=function(e){var i=e.column;if(i){var r=i.openLine,n=i.highLowLine,s=i.closeLine;if(this.baseAxis==this.xAxis){var o=i.pixelWidth/2;n.x=o,e.getWorkingValue(this.yOpenField),e.getWorkingValue(this.yField);var l=this.yAxis.getY(e,this.yOpenField),u=this.yAxis.getY(e,this.yField),h=this.yAxis.getY(e,this.yLowField),p=this.yAxis.getY(e,this.yHighField),d=i.pixelY;r.y1=l-d,r.y2=l-d,r.x1=0,r.x2=o,s.y1=u-d,s.y2=u-d,s.x1=o,s.x2=2*o,n.y1=p-d,n.y2=h-d}if(this.baseAxis==this.yAxis){var c=i.pixelHeight/2;n.y=c,e.getWorkingValue(this.xOpenField),e.getWorkingValue(this.xField);var f=this.xAxis.getX(e,this.xOpenField),m=this.xAxis.getX(e,this.xField),y=this.xAxis.getX(e,this.xLowField),g=this.xAxis.getX(e,this.xHighField),v=i.pixelX;r.x1=f-v,r.x2=f-v,r.y1=c,r.y2=2*c,s.x1=m-v,s.x2=m-v,s.y1=0,s.y2=c,n.x1=g-v,n.x2=y-v}j(this.axisRanges.iterator(),function(b){var P=e.rangesColumns.getKey(b.uid);if(P){var w=P.openLine;w.x=r.x,w.y=r.y,w.x1=r.x1,w.x2=r.x2,w.y1=r.y1,w.y2=r.y2;var T=P.closeLine;T.x=s.x,T.y=s.y,T.x1=s.x1,T.x2=s.x2,T.y1=s.y1,T.y2=s.y2;var F=P.highLowLine;F.x=n.x,F.y=n.y,F.x1=n.x1,F.x2=n.x2,F.y1=n.y1,F.y2=n.y2}})}},t.prototype.createLegendMarker=function(e){var i=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var n=e.createChild($u);n.shouldClone=!1,n.copyFrom(this.columns.template);var s,o,l=n.openLine,u=n.closeLine,h=n.highLowLine;this.baseAxis==this.yAxis?(s=i/3,o=r,h.y=r/2,h.x2=i,l.x=i/3*2,l.y2=r/2,u.x=i/3,u.y2=r,u.y1=r/2):(s=i,o=r/3,h.x=i/2,h.y2=r,l.y=r/3*2,l.x2=i/2,u.y=r/3,u.x2=i,u.x1=i/2),n.width=s,n.height=o,xt(this,e,ot),xt(this.columns.template,n,ot),n.stroke=this.riseFromOpenState.properties.stroke;var p=e.dataItem;p.color=n.stroke,p.colorOrig=n.stroke},t.prototype.createColumnTemplate=function(){return new $u},t})(ep);S.registeredClasses.OHLCSeries=Qg;S.registeredClasses.OHLCSeriesDataItem=cf;var pp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarColumn",e}return t.prototype.createAssets=function(){this.radarColumn=this.createChild(Mr),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},t.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");return x(e)?e:this.radarColumn.getTooltipX()},t.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipX");return x(e)?e:this.radarColumn.getTooltipY()},t})(Cr);S.registeredClasses.RadarColumn=pp;var Jg=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return t})(nr);var ev=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return t.prototype.createColumnTemplate=function(){return new pp},t.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},t.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.__disabled=!0),j(this.axisRanges.iterator(),function(i){var r=e.rangesColumns.getKey(i.uid);r&&(r.__disabled=!0)}))},t.prototype.validateDataElementReal=function(e){var i=this,r=this.chart.startAngle,n=this.chart.endAngle,s=this.yField,o=this.yOpenField,l=this.xField,u=this.xOpenField,h,p,d,c,f=this.getStartLocation(e),m=this.getEndLocation(e),y=(n-r)/(this.dataItems.length*(this.end-this.start)),g=e.column;g||(g=this.columns.create(),e.column=g,xt(this,g,ot),xt(this.columns.template,g,ot),e.addSprite(g),g.paper=this.paper,this.setColumnStates(g));var v=g.width,b=100;v instanceof xe&&(b=v.percent);var P=z((m-f)*(1-b/100)/2,5);if(f+=P,m-=P,this.xAxis instanceof $t&&this.yAxis instanceof $t)d=Ee({x:this.yAxis.getX(e,s,0,"valueY"),y:this.yAxis.getY(e,s,0,"valueY")}),c=Ee({x:this.yAxis.getX(e,o,1,"valueY"),y:this.yAxis.getY(e,o,1,"valueY")}),h=this.xAxis.getAngle(e,u,0,"valueX"),p=this.xAxis.getAngle(e,l,1,"valueX"),r=r+f*y,n=n-(1-m)*y;else if(this.baseAxis==this.xAxis)d=Ee({x:this.yAxis.getX(e,s,e.locations[s],"valueY"),y:this.yAxis.getY(e,s,e.locations[s],"valueY")}),c=Ee({x:this.yAxis.getX(e,o,e.locations[o],"valueY"),y:this.yAxis.getY(e,o,e.locations[o],"valueY")}),h=this.xAxis.getAngle(e,u,f,"valueX"),p=this.xAxis.getAngle(e,l,m,"valueX"),r=r+f*y,n=n-(1-m)*y;else{if(d=Ee({x:this.yAxis.getX(e,s,f,"valueY"),y:this.yAxis.getY(e,s,f,"valueY")}),c=Ee({x:this.yAxis.getX(e,o,m,"valueY"),y:this.yAxis.getY(e,o,m,"valueY")}),x(v)){var w=Math.abs(d-c);if(w>v){var T=(w-v)/2;d+=T,c-=T}}h=this.xAxis.getAngle(e,l,e.locations[l],"valueX"),p=this.xAxis.getAngle(e,u,e.locations[u],"valueX")}if(p<h){var F=p;p=h,h=F}h=ee(h,r,n),p=ee(p,r,n);var D=g.radarColumn;D.startAngle=h;var O=p-h;O>0?(D.arc=O,D.radius=d,D.innerRadius=c,g.__disabled=!1,g.parent=this.columnsContainer,j(this.axisRanges.iterator(),function(N){var L=e.rangesColumns.getKey(N.uid);L||(L=i.columns.create(),Ky(i.columns.template,L,ot),xt(N.contents,L,ot),L.dataItem&&de(L.dataItem.sprites,L),e.addSprite(L),L.paper=i.paper,i.setColumnStates(L),e.rangesColumns.setKey(N.uid,L));var E=L.radarColumn;E.startAngle=h,E.arc=O,E.radius=d,E.innerRadius=c,E.invalid&&(E.paper=i.paper,E.validate()),L.__disabled=!1,L.parent=N.contents})):this.disableUnusedColumns(e)},t.prototype.getPoint=function(e,i,r,n,s,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,s,l),h=this.yAxis.getY(e,r,s,l),p=Ee({x:u,y:h});p==0&&(p=1e-5);var d=this.xAxis.getAngle(e,i,n,o);return{x:p*Q(d),y:p*Z(d)}},t.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Zr(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},t.prototype.positionBulletReal=function(e,i,r){var n=this.xAxis,s=this.yAxis;(i<n.start||i>n.end||r<s.start||r>s.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(i,r))},t.prototype.setXAxis=function(e){a.prototype.setXAxis.call(this,e),this.updateRendererRefs()},t.prototype.setYAxis=function(e){a.prototype.setYAxis.call(this,e),this.updateRendererRefs()},t.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,i=this.yAxis.renderer;e.axisRendererY=i},t})(wr);S.registeredClasses.RadarColumnSeries=ev;S.registeredClasses.RadarColumnSeriesDataItem=Jg;var Ou=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.slice=e.createChild(ne),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=W(100),e.topWidth=W(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelPaddingTop,i=this.pixelPaddingBottom,r=this.pixelPaddingRight,n=this.pixelPaddingLeft,s=this.pixelWidth-r-n,o=this.pixelHeight-e-i,l=this.expandDistance,u="";if(this.orientation=="vertical"){var h=Ke(this.topWidth,s),p=Ke(this.bottomWidth,s),d={x:(s-h)/2+n,y:e},c={x:(s+h)/2+n,y:e},f={x:(s+p)/2+n,y:e+o},m={x:(s-p)/2+n,y:e+o},y={x:c.x+(f.x-c.x)/2+l*o,y:c.y+.5*o},g={x:d.x+(m.x-d.x)/2-l*o,y:d.y+.5*o},v=R(f),b=R(d);l!=0&&(v=La(f,y),b=La(d,g)),u=X(d)+R(c)+v+R(m)+b,this.tickPoint={x:c.x+(f.x-c.x)/2,y:c.y+(f.y-c.y)/2}}else{var h=Ke(this.topWidth,o),p=Ke(this.bottomWidth,o),P={x:n,y:(o-h)/2+e},w={x:n,y:(o+h)/2+e},T={x:n+s,y:(o-p)/2+e},F={x:n+s,y:(o+p)/2+e},y={y:P.y+(T.y-P.y)/2-l*s,x:P.x+.5*s},g={y:w.y+(F.y-w.y)/2+l*s,x:w.x+.5*s},v=R(T),b=R(w);l!=0&&(v=La(T,y),b=La(w,g)),u=X(w)+R(P)+v+R(F)+b,this.tickPoint={y:w.y+(F.y-w.y)/2,x:w.x+(F.x-w.x)/2}}this.slice.path=u,this.invalidateLayout()},t.prototype.getPoint=function(e,i){var r=this.pixelPaddingTop,n=this.pixelPaddingBottom,s=this.pixelPaddingRight,o=this.pixelPaddingLeft,l=this.pixelWidth-s-o,u=this.pixelHeight-r-n;if(this.orientation=="vertical"){var h=Ke(this.topWidth,l),p=Ke(this.bottomWidth,l),d={x:(l-h)/2+o,y:r},c={x:(l+h)/2+o,y:r},f={x:(l+p)/2+o,y:r+u},m={x:(l-p)/2+o,y:r+u},y=d.x+(m.x-d.x)*i,g=c.x+(f.x-c.x)*i;return{x:y+(g-y)*e,y:c.y+(f.y-c.y)*i}}else{var h=Ke(this.topWidth,u),p=Ke(this.bottomWidth,u),v={x:o,y:(u-h)/2+r},b={x:o,y:(u+h)/2+r},P={x:o+l,y:(u-p)/2+r},w={x:o+l,y:(u+p)/2+r},T=v.y+(P.y-v.y)*e,F=b.y+(w.y-b.y)*e;return{y:T+(F-T)*i,x:v.x+(P.x-v.x)*e}}},Object.defineProperty(t.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(e){this.setPropertyValue("expandDistance",e,!0)},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},t})(te);S.registeredClasses.FunnelSlice=Ou;var ff=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._label=new st,e._slice=new st,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.slice,i=e.getPoint(this.locationX,this.locationY);if(i){var r=this.label,n=e.dataItem.component,s=void 0,o=void 0,l=void 0;if(n.orientation=="vertical"){var u=r.pixelX,h=r.pixelY;n.labelsOpposite||(u+=r.maxRight),s=oi(i,e,this.parent),l=oi({x:u,y:h},r.parent,this.parent),o={x:r.parent.pixelX-this.length,y:l.y},n.labelsOpposite||(o.x=r.parent.measuredWidth+this.length)}else{var u=r.pixelX,h=r.pixelY;n.labelsOpposite||(h+=r.maxBottom),s=oi(i,e,this.parent),l=oi({x:u,y:h},r.parent,this.parent),o={x:l.x,y:r.parent.pixelY-this.length},n.labelsOpposite||(o.y=r.parent.measuredHeight+this.length)}this.path=X(s)+R(o)+R(l)}},Object.defineProperty(t.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Me([e.events.on("transformed",this.invalidate,this,!1),e.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){this.setPropertyValue("locationX",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){this.setPropertyValue("locationY",e,!1,!0)},enumerable:!0,configurable:!0}),t})(Va);S.registeredClasses.FunnelTick=ff;var Du=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",function(){e.component&&e.component.invalidateDataItems()},e,!1),e.applyTheme(),e}return Object.defineProperty(t.prototype,"sliceLink",{get:function(){var e=this;if(!this._sliceLink){var i=this.component.sliceLinks.create();this._sliceLink=i,this._disposers.push(i),i.parent=this.component.slicesContainer,this._disposers.push(new Fe(function(){e.component&&e.component.sliceLinks.removeValue(i)})),this.addSprite(i),i.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),t})(Uo);var dp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=W(100),e.height=W(100),e.slicesContainer.width=W(100),e.slicesContainer.height=W(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return t.prototype.createSlice=function(){return new Ou},t.prototype.createTick=function(){return new ff},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},t.prototype.createDataItem=function(){return new Du},t.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var i=e.states.create("hover");i.properties.expandDistance=.2},t.prototype.initLabel=function(e){a.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},t.prototype.validate=function(){a.prototype.validate.call(this),this._nextY=0},t.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer,r=this.labelsContainer,n=this.labels.template;this.alignLabels?(n.interactionsEnabled=!0,i.isMeasured=!0,r.isMeasured=!0):(n.interactionsEnabled=!1,i.isMeasured=!1,r.isMeasured=!1);var s=0,o=0;this.dataItems.each(function(l){C(l.value)&&(o++,l.value>0?s+=Math.abs(l.getWorkingValue("value")/l.value):e.ignoreZeroValues||!l.visible||l.__disabled||l.isHiding?o--:s+=1)}),this._total=1/o*s,this._count=o,a.prototype.validateDataElements.call(this),this.arrangeLabels()},t.prototype.getNextValue=function(e){var i=e.index,r=e.getWorkingValue("value");if(i<this.dataItems.length-1){var n=this.dataItems.getIndex(i+1);if(r=n.getWorkingValue("value"),!n.visible||n.isHiding||n.__disabled||n.value==0&&this.ignoreZeroValues)return this.getNextValue(n)}return r},t.prototype.formDataElement=function(){},t.prototype.validateDataElement=function(e){var i=this,r=e.slice;r.orientation=this.orientation;var n=e.sliceLink;n.orientation=this.orientation;var s=e.tick,o=e.label;s.slice=r,s.label=o,C(e.value)?(this.decorateSlice(e),K(e.sprites,function(l){e.value==0&&i.ignoreZeroValues?l.__disabled=!0:l.__disabled=!1})):K(e.sprites,function(l){l.__disabled=!0}),e.index==this.dataItems.length-1&&(n.disabled=!0),a.prototype.validateDataElement.call(this,e),n.fill=r.fill},t.prototype.decorateSlice=function(e){var i=e.slice,r=e.sliceLink,n=e.label,s=e.tick,o=this.slicesContainer.innerWidth,l=this.slicesContainer.innerHeight,u=this.getNextValue(e),h=Math.abs(e.getWorkingValue("value")),p=this.bottomRatio,d=1;if(e.value!=0?d=h/Math.abs(e.value):(e.__disabled||e.isHiding||!e.visible)&&(d=1e-6),this.ignoreZeroValues&&e.value==0){e.__disabled=!0;return}else e.__disabled=!1;if(this._nextY==1/0&&(this._nextY=0),this.orientation=="vertical"){var c=r.pixelHeight*d;l=l+c,i.topWidth=h/this.dataItem.values.value.high*o,i.bottomWidth=(h-(h-u)*p)/this.dataItem.values.value.high*o,r.topWidth=i.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*o,i.y=this._nextY,i.height=Math.min(1e5,fe(0,l/this._count*d/this._total-c)),i.x=o/2,this.alignLabels?n.x=void 0:n.x=i.x,n.y=i.pixelY+i.pixelHeight*s.locationY,this._nextY+=i.pixelHeight+c,r.y=this._nextY-c,r.x=i.x}else{var f=r.pixelWidth*d;o=o+f,i.topWidth=h/this.dataItem.values.value.high*l,i.bottomWidth=(h-(h-u)*p)/this.dataItem.values.value.high*l,r.topWidth=i.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*l,i.x=this._nextY,i.width=Math.min(1e5,o/this._count*d*1/this._total-f),i.y=l/2,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=i.y,n.x=i.pixelX+i.pixelWidth*s.locationX,this._nextY+=i.pixelWidth+f,r.x=this._nextY-f,r.y=i.y}},t.prototype.getLastLabel=function(e){if(e>0){var i=this.labels.getIndex(e);return i.__disabled||!i.visible?this.getLastLabel(e-1):i}},t.prototype.arrangeLabels=function(){if(this.alignLabels){var e=this.labels.length;if(e>1){var i=this.getLastLabel(e-1);if(i){var r=i.pixelY,n=i.pixelX;if(e>1){for(var s=e-2;s>=0;s--){var o=this.labels.getIndex(s);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY+o.measuredHeight>r&&(o.y=Math.min(1e6,r-o.measuredHeight)):o.pixelX+o.measuredWidth>n&&(o.x=Math.min(1e6,n-o.measuredWidth)),r=o.pixelY,n=o.pixelX)}r=0,n=0;for(var s=0;s<e;s++){var o=this.labels.getIndex(s);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY<r&&(o.y=Math.min(1e6,r)):o.pixelX<n&&(o.x=Math.min(1e6,n)),r+=o.measuredHeight,n+=o.measuredWidth)}}}}}},t.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var i=e.dataItem,r=i.slice,n=e.locationX;x(n)||(n=.5);var s=e.locationY;x(s)||(s=1),e.x=r.pixelX+r.measuredWidth*n,e.y=r.pixelY+r.measuredHeight*s},Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),e=="vertical"?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(e){this.setPropertyValue("bottomRatio",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var e=new Ou;e.applyOnClones=!0,e.fillOpacity=.5,e.expandDistance=-.3,e.hiddenState.properties.opacity=0,this._disposers.push(e),this._sliceLinks=new We(e),this._disposers.push(new Ie(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),t.prototype.show=function(e){var i=this,r=this.startIndex,n=this.endIndex,s=this.defaultState.transitionDuration;x(e)&&(s=e),Ce.animationsEnabled||(s=0);var o=0;j(Gr(this.dataItems.iterator()),function(u){var h=u[0],p=u[1];i.sequencedInterpolation&&(o=i.sequencedInterpolationDelay*h+s*(h-r)/(n-r)),p.show(s,o,["value"])});var l=a.prototype.show.call(this,e);return l},t.prototype.hide=function(e){var i=this,r=["value"],n=0,s=this.startIndex,o=this.endIndex,l=0,u=this.hiddenState.transitionDuration;x(e)&&(u=e),Ce.animationsEnabled||(u=0),j(Gr(this.dataItems.iterator()),function(p){var d=p[0],c=p[1];i.sequencedInterpolation&&(l=i.sequencedInterpolationDelay*d+u*(d-s)/(o-s)),c.hide(u,l,n,r)});var h=a.prototype.hide.call(this,e);return h&&!h.isFinished()&&h.delay(l),h},t.prototype.setAlignLabels=function(e){a.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var i=this.labelsContainer;i&&(e?(i.height=void 0,i.width=void 0,i.margin(10,10,10,10)):(i.width=W(100),i.height=W(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(t.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(e){this.setPropertyValue("labelsOpposite",e);var i=this.labels.template,r="none",n="none";this.alignLabels?e?(this.labelsContainer.toFront(),this.orientation=="vertical"?(this.ticks.template.locationX=1,i.horizontalCenter="left",r="right"):(this.ticks.template.locationY=1,i.horizontalCenter="right",n="bottom")):(this.labelsContainer.toBack(),this.orientation=="vertical"?(this.ticks.template.locationX=0,r="left"):(n="top",this.ticks.template.locationY=0)):this.orientation=="vertical"?r="center":n="middle",i.align=r,i.valign=n,this.validateLayout(),this.ticks.each(function(s){s.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),t})(Vn);S.registeredClasses.FunnelSeries=dp;S.registeredClasses.FunnelSeriesDataItem=Du;var Fu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return t})(Du);var cp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PyramidSeries",e.topWidth=W(0),e.bottomWidth=W(100),e.pyramidHeight=W(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},t.prototype.createDataItem=function(){return new Fu},t.prototype.validate=function(){a.prototype.validate.call(this),this._nextWidth=void 0},t.prototype.getNextValue=function(e){var i=e.index,r=e.getWorkingValue("value");if(i<this.dataItems.length-1){var n=this.dataItems.getIndex(i+1);r=n.getWorkingValue("value")}return r==0&&(r=1e-6),r},t.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer.innerWidth,r=this.slicesContainer.innerHeight;if(this.dataItems.each(function(o){if(o.value>0){var l=o.getWorkingValue("value")/o.value,u=o.sliceLink;e.orientation=="vertical"?r-=u.pixelHeight*l:i-=u.pixelWidth*l}}),this._pyramidHeight=Ke(this.pyramidHeight,r),this._pyramidWidth=Ke(this.pyramidHeight,i),this.orientation=="vertical"){var n=(r-this._pyramidHeight)/2;this.slicesContainer.y=n,this.labelsContainer.y=n,this.ticksContainer.y=n}else{var s=(i-this._pyramidWidth)/2;this.slicesContainer.x=s,this.labelsContainer.x=s,this.ticksContainer.x=s}a.prototype.validateDataElements.call(this)},t.prototype.decorateSlice=function(e){var i=this.dataItem.values.value.absoluteSum;if(i!=0){var r=e.slice,n=e.sliceLink,s=e.label,o=e.tick;this.getNextValue(e);var l=Math.abs(e.getWorkingValue("value")),u=this._pyramidWidth,h=this._pyramidHeight,p=this.slicesContainer.innerWidth,d=this.slicesContainer.innerHeight,c=n.pixelWidth,f=n.pixelHeight;if((e.value==0||e.value==null)&&this.ignoreZeroValues?e.__disabled=!0:e.__disabled=!1,this.orientation=="vertical"){var m=Ke(this.topWidth,p);x(this._nextWidth)||(this._nextWidth=m);var y=Ke(this.bottomWidth,p),g=this._nextWidth,v=Math.atan2(h,m-y),b=Math.tan(Math.PI/2-v);b==0&&(b=1e-8);var P=void 0,w=void 0;if(this.valueIs=="area"){var T=(m+y)/2*h,F=T*l/i,D=Math.abs(g*g-2*F*b);P=(g-Math.sqrt(D))/b,P>0?w=(2*F-P*g)/P:w=g}else P=h*l/i,w=g-P*b;r.height=P,r.width=p,r.bottomWidth=w,r.topWidth=g,n.topWidth=r.bottomWidth,n.bottomWidth=r.bottomWidth,r.y=this._nextY,this.alignLabels?s.x=0:s.x=p/2,s.y=r.pixelY+r.pixelHeight*o.locationY+r.dy,this._nextY+=r.pixelHeight+f*l/Math.max(Math.abs(e.value),1e-8),n.y=this._nextY-f,n.x=p/2}else{var m=Ke(this.topWidth,d);x(this._nextWidth)||(this._nextWidth=m);var y=Ke(this.bottomWidth,d),g=this._nextWidth,v=Math.atan2(u,m-y),b=Math.tan(Math.PI/2-v);b==0&&(b=1e-8);var O=void 0,w=void 0;if(this.valueIs=="area"){var T=(m+y)/2*u,F=T*l/i;O=(g-Math.sqrt(g*g-2*F*b))/b,w=(2*F-O*g)/O}else O=u*l/i,w=g-O*b;r.width=O,r.height=d,r.bottomWidth=w,r.topWidth=g,n.topWidth=r.bottomWidth,n.bottomWidth=r.bottomWidth,r.x=this._nextY,this.alignLabels?s.y=this.labelsContainer.measuredHeight:s.y=d/2,s.x=r.pixelX+r.pixelWidth*o.locationX+r.dx,this._nextY+=r.pixelWidth+c*l/Math.max(Math.abs(e.value),1e-8),n.x=this._nextY-c,n.y=d/2}this._nextWidth=r.bottomWidth}},Object.defineProperty(t.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(e){this.setPercentProperty("pyramidHeight",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(e){this.setPropertyValue("valueIs",e)&&this.invalidate()},enumerable:!0,configurable:!0}),t})(dp);S.registeredClasses.PyramidSeries=cp;S.registeredClasses.PyramidSeriesDataItem=Fu;var mf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return t})(Fu);var tv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=W(100),e.bottomWidth=W(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(ne),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return t.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,r=this._maskSprite,n=r.measuredWidth/r.scale,s=r.measuredHeight/r.scale,o=Se(i/s,e/n);o==1/0&&(o=1),o=fe(.001,o);var l=this.startLocation,u=this.endLocation,h=Se(e,n*o),p=Se(i,s*o);r.scale=o,this.orientation=="vertical"?(this.topWidth=h+4,this.bottomWidth=h+4,this.pyramidHeight=p*(u-l),r.x=e/2,r.y=p/2):(this.topWidth=p+4,this.bottomWidth=p+4,this.pyramidHeight=h*(u-l),r.valign="middle",r.x=h/2,r.y=i/2),r.verticalCenter="middle",r.horizontalCenter="middle",a.prototype.validateDataElements.call(this);var d,c;this.orientation=="vertical"?(this.valign=="bottom"&&(d=i-p),this.valign=="middle"&&(d=(i-p)/2),this.valign=="top"&&(d=0),this.align=="left"&&(c=-(e-h)/2),this.align=="center"&&(c=0),this.align=="right"&&(c=(e-h)/2),this.slices.template.dy=l*p,this.alignLabels&&(this.slicesContainer.dx=c)):(this.valign=="bottom"&&(d=(i-p)/2),this.valign=="middle"&&(d=0),this.valign=="top"&&(d=-(i-p)/2),this.align=="left"&&(c=0),this.align=="center"&&(c=(e-h)/2),this.align=="right"&&(c=e-h),this.slices.template.dx=l*h,this.alignLabels&&(this.slicesContainer.dy=d)),this.slicesContainer.x=c,this.labelsContainer.x=c,this.ticksContainer.x=c,this.slicesContainer.y=d,this.labelsContainer.y=d,this.ticksContainer.y=d,h>0&&p>0&&(this.slicesContainer.mask=r)},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},t.prototype.createDataItem=function(){return new mf},Object.defineProperty(t.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),t.prototype.initSlice=function(e){a.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},Object.defineProperty(t.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),t})(cp);S.registeredClasses.PictorialStackedSeries=tv;S.registeredClasses.PictorialStackedSeriesDataItem=mf;var Iu=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(t.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(e){this.height=e*2,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(e){this.width=e*2,this.invalidate()},enumerable:!0,configurable:!0}),t})(Sr);S.registeredClasses.Ellipse=Iu;var yf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Cone",e.angle=30,e.radius=W(100),e.topRadius=W(100),e.top=e.createChild(Iu),e.top.shouldClone=!1,e.bottom=e.createChild(Iu),e.bottom.shouldClone=!1,e.body=e.createChild(ne),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new ks,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this),xt(this,this.top,ot),xt(this,this.bottom,ot),xt(this,this.body,ot);var e=this.innerWidth,i=this.innerHeight,r=this.bottom,n=this.top,s=this.angle,o,l,u;this.orientation=="horizontal"?(o=i/2,r.y=i/2,r.x=0,n.y=i/2,n.x=e,l=(90-s)/90,u=0,this.bodyFillModifier.gradient.rotation=90):(l=0,u=(90-s)/90,o=e/2,r.y=i,r.x=e/2,n.x=e/2,this.bodyFillModifier.gradient.rotation=0);var h=this.radius.value*o,p=this.topRadius.value*o;r.radius=h-h*l,r.radiusY=h-h*u,n.radius=p-p*l,n.radiusY=p-p*u;var d;this.orientation=="horizontal"?d=X({x:0,y:i/2-r.radiusY})+qt(-90,-180,r.radius,r.radiusY)+R({x:e,y:i/2+n.radiusY})+qt(90,180,n.radius,n.radiusY)+it():d=X({x:e/2-n.radius,y:0})+qt(180,-180,n.radius,n.radiusY)+R({x:e/2+r.radius,y:i})+qt(0,180,r.radius,r.radiusY)+it(),this.body.path=d},Object.defineProperty(t.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(e){this.setPropertyValue("topRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),t})(te);var fp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ConeColumn",e}return t.prototype.createAssets=function(){this.coneColumn=this.createChild(yf),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},t})(Cr);S.registeredClasses.ConeColumn=fp;var iv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return t})(nr);var rv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return t.prototype.createColumnTemplate=function(){return new fp},t.prototype.getMaskPath=function(){var e=0,i=0,r=this.columns.getIndex(0);if(r)return this.baseAxis==this.xAxis?i=r.coneColumn.innerWidth/2+1:e=r.coneColumn.innerHeight/2+1,Er({x:-e,y:0,width:this.xAxis.axisLength+e,height:this.yAxis.axisLength+i})},t.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i){var r=e.column.coneColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?r.orientation="horizontal":r.orientation="vertical"}},t})(wr);S.registeredClasses.ConeSeries=rv;S.registeredClasses.ConeSeriesDataItem=iv;var mp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="CurvedColumn",e}return t.prototype.createAssets=function(){this.curvedColumn=this.createChild(ne),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=W(120),this.height=W(120),this.column=this.curvedColumn},t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.realWidth,i=this.realHeight,r=this.realX-this.pixelX,n=this.realY-this.pixelY,s;this.width;var o=1,l=1;this.orientation=="vertical"?(o=this.tension,s=[{x:0,y:i+n},{x:e/2,y:n},{x:e,y:i+n}]):(l=this.tension,i=Math.abs(i),s=[{x:r,y:i},{x:r+e,y:i/2},{x:r,y:0}]);var u=X(s[0])+new Vr(o,l).smooth(s);this.column.path=u},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),t})(Cr);S.registeredClasses.CurvedColumn=mp;var av=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return t})(nr);var nv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return t.prototype.createColumnTemplate=function(){return new mp},t.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i=e.column,i){var r=e.column.curvedColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},t})(wr);S.registeredClasses.CurvedColumnSeries=nv;S.registeredClasses.CurvedColumnSeriesDataItem=av;var sv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="CircleBullet";var i=e.createChild(Sr);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e.applyTheme(),e}return t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},t})(Fi);S.registeredClasses.CircleBullet=sv;var ov=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(ne),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return t.prototype.validatePosition=function(){a.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=X({x:-e,y:-i})+R({x:e,y:-i})+X({x:0,y:-i})+R({x:0,y:i})+X({x:-e,y:i})+R({x:e,y:i})},t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},t})(Fi);S.registeredClasses.ErrorBullet=ov;var Au=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="TextLink",e.selectable=!0;var i=new ue;e.fill=i.getFor("primaryButton").brighten(.3);var r=e.states.create("hover");r.properties.fill=i.getFor("primaryButtonHover").brighten(.3);var n=e.states.create("down");return n.properties.fill=i.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=Mt.pointer,e.applyTheme(),e}return t})(Rt);S.registeredClasses.TextLink=Au;var Qo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return t.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,r;switch(this.direction){case"right":r=X({x:0,y:0})+R({x:e,y:i/2})+R({x:0,y:i})+it();break;case"left":r=X({x:e,y:0})+R({x:0,y:i/2})+R({x:e,y:i})+it();break;case"bottom":r=X({x:0,y:0})+R({x:e,y:0})+R({x:e/2,y:i})+it();break;case"top":r=X({x:e/2,y:0})+R({x:e,y:i})+R({x:0,y:i})+it();break}this.path=r},Object.defineProperty(t.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(e){this.setPropertyValue("direction",e,!0)},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Triangle=Qo;var lv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),t})(gr);var uv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="NavigationBar";var i=new ue,r=new Au;r.valign="middle",r.paddingTop=8,r.paddingBottom=8,e.paddingBottom=2,e.links=new We(r),e._disposers.push(new Ie(e.links)),e._disposers.push(r),e._linksIterator=new fs(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var n=new Qo;n.direction="right",n.width=8,n.height=12,n.fill=i.getFor("alternativeBackground"),n.fillOpacity=.5,n.valign="middle",n.marginLeft=10,n.marginRight=10,e.separators=new We(n),e._disposers.push(new Ie(e.separators)),e._disposers.push(n);var s=new Au;return e.activeLink=s,s.copyFrom(r),s.valign="middle",s.fontWeight="bold",e.width=W(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return t.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),a.prototype.validateDataElements.call(this)},t.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e);var i;if(e.index<this.dataItems.length-1){i=this._linksIterator.getLast(),i.parent=this;var r=this.separators.create();r.parent=this,r.valign="middle"}else i=this.activeLink,i.events.copyFrom(this.links.template.events),i.hide(0),i.show(),i.parent=this;i.dataItem=e,i.text=e.name,i.validate()},t})(vr);S.registeredClasses.NavigationBar=uv;S.registeredClasses.NavigationBarDataItem=lv;var hv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadarCursor",e.radius=W(100),e.innerRadius=W(0),e.applyTheme(),e.mask=void 0,e}return t.prototype.fitsToBounds=function(e){var i=Ee(e);return i<this.truePixelRadius+1&&i>this.pixelInnerRadius-1},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),t.prototype.triggerMoveReal=function(e,i){(!this.xAxis||this.xAxis&&(!this.xAxis.cursorTooltipEnabled||this.xAxis.tooltip.disabled))&&this.updateLineX(this.point),(!this.yAxis||this.yAxis&&(!this.yAxis.cursorTooltipEnabled||this.yAxis.tooltip.disabled))&&this.updateLineY(this.point),this.updateSelection(),a.prototype.triggerMoveReal.call(this,e,i)},t.prototype.updateLineX=function(e){var i=this.pixelRadius,r=this.startAngle,n=this.endAngle,s=this.pixelInnerRadius;if(i>0&&x(r)&&x(n)&&x(s)){var o=Ar(kt(e),r,n),l=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var u=this.xAxis.currentItemStartPoint,h=this.xAxis.currentItemEndPoint;if(u&&h){var p=Ar(kt(u),r,n),d=Ar(kt(h),r,n),c=d-p;r<n?c<0&&(c+=360):c>0&&(c-=360),o-=c/2,l=X({x:s*Q(o),y:s*Z(o)})+R({x:i*Q(o),y:i*Z(o)})+qt(o,c,i)+R({x:s*Q(o+c),y:s*Z(o+c)})+qt(o+c,-c,s)}}l||(l=X({x:s*Q(o),y:s*Z(o)})+R({x:i*Q(o),y:i*Z(o)})),this.lineX.path=l}}},t.prototype.updateLineY=function(e){if(this.lineY&&this.lineY.visible){var i=this.startAngle,r=this.endAngle,n=this.truePixelRadius,s=ee(Ee(e),0,this.truePixelRadius);if(x(s)&&x(i)){this.lineY.moveTo({x:0,y:0});var o=void 0,l=r-i;if(this.yAxis&&this.fullWidthLineY){var u=this.yAxis.currentItemStartPoint,h=this.yAxis.currentItemEndPoint;if(u&&h){var p=ee(Ee(u),0,n);s=ee(Ee(h),0,n),o=X({x:s*Q(i),y:s*Z(i)})+qt(i,l,s),o+=X({x:p*Q(r),y:p*Z(r)})+qt(r,-l,p)}}o||(o=X({x:s*Q(i),y:s*Z(i)})+qt(i,r-i,s)),this.lineY.path=o}}},t.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint;if(e){var i=this.point,r=this.pixelRadius,n=this.truePixelRadius,s=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),l=Math.max(this.startAngle,this.endAngle),u=Ar(kt(e),o,l),h=Ar(kt(i),o,l),p=Ee(e);if(p<n){var d=ee(Ee(i),0,n);this._prevAngle=h;var c=X({x:0,y:0}),f=Z(u),m=Q(u),y=Z(h),g=Q(h),v=this.behavior;v=="zoomX"||v=="selectX"?c+=R({x:r*m,y:r*f})+qt(u,h-u,r)+R({x:s*g,y:s*y})+qt(h,u-h,s):v=="zoomY"||v=="selectY"?c=X({x:d*Q(o),y:d*Z(o)})+qt(o,l-o,d)+R({x:p*Q(l),y:p*Z(l)})+qt(l,o-l,p)+it():v=="zoomXY"&&(c=X({x:d*Q(u),y:d*Z(u)})+qt(u,h-u,d)+R({x:p*Q(h),y:p*Z(h)})+qt(h,u-h,p)+it()),this.selection.path=c}this.selection.moveTo({x:0,y:0})}}},t.prototype.getPositions=function(){var e=this.chart;if(e){var i=this.pixelInnerRadius,r=this.truePixelRadius-i,n=this.startAngle,s=this.endAngle,o=Ar(kt(this.point),n,s),l=(o-n)/(s-n);this.xPosition=l,this.yPosition=ee((Ee(this.point)-i)/r,0,1)}},t.prototype.updatePoint=function(e){},t.prototype.handleXTooltipPosition=function(e){if(this.xAxis.cursorTooltipEnabled){var i=this.xAxis.tooltip;this.updateLineX(Ti({x:i.pixelX,y:i.pixelY},this))}},t.prototype.handleYTooltipPosition=function(e){if(this.yAxis.cursorTooltipEnabled){var i=this.yAxis.tooltip;this.updateLineY(Ti({x:i.pixelX,y:i.pixelY},this))}},t.prototype.updateLinePositions=function(e){},t.prototype.getRanges=function(){var e=this.downPoint;if(e){var i=this.upPoint,r=this.chart;if(r){var n=this.pixelRadius,s=this.startAngle,o=this.endAngle,l=Ar(kt(e),this.startAngle,this.endAngle),u=Ar(kt(i),this.startAngle,this.endAngle),h=ee(Ee(e),0,n),p=ee(Ee(i),0,n),d=0,c=1,f=0,m=1,y=this.behavior;if(y=="zoomX"||y=="selectX"||y=="zoomXY"||y=="selectXY"){var g=o-s;d=z((l-s)/g,5),c=z((u-s)/g,5)}(y=="zoomY"||y=="selectY"||y=="zoomXY"||y=="selectXY")&&(f=z(h/n,5),m=z(p/n,5)),this.xRange={start:Math.min(d,c),end:Math.max(d,c)},this.yRange={start:Math.min(f,m),end:Math.max(f,m)},this.behavior=="selectX"||this.behavior=="selectY"||this.behavior=="selectXY"||this.selection.hide()}}},t.prototype.updateSize=function(){},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return Vt(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"truePixelRadius",{get:function(){return Ke(W(100),Se(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){var e=this.innerRadius;return e instanceof xe&&(e=W(100*e.value*this.chart.innerRadiusModifyer)),Vt(e,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),t.prototype.fixPoint=function(e){return e},t})(ip);S.registeredClasses.RadarCursor=hv;var Jo=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return t.prototype.draw=function(){if(a.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,i=this.height,r="";if(!this.gap)Math.round(this.rotation/90)!=this.rotation/90?(r=X({x:-e,y:i/2})+R({x:e*2,y:i/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r=X({x:0,y:0})+R({x:e,y:0});else for(var n=this.gap+this.strokeWidth,s=this.height/n,o=-s/2;o<s*1.5;o++)Math.round(this.rotation/90)!=this.rotation/90?(r+=X({x:-e,y:(o+.5)*n})+R({x:e*2,y:(o+.5)*n}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r+=X({x:-e,y:o*n})+R({x:e*2,y:o*n});this._line.attr({d:r})}},Object.defineProperty(t.prototype,"gap",{get:function(){return this.properties.gap},set:function(e){this.properties.gap=e,this.draw()},enumerable:!0,configurable:!0}),t})(ca);S.registeredClasses.LinePattern=Jo;var el=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return t.prototype.draw=function(){a.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(t.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(e){this.properties.rectWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(e){this.properties.rectHeight=e,this.draw()},enumerable:!0,configurable:!0}),t})(ca);S.registeredClasses.RectPattern=el;var gf=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":new ue().getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return Object.defineProperty(t.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.feMorphology.attr({radius:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+e+" 0"})},enumerable:!0,configurable:!0}),t.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),a.prototype.setSprite.call(this,e)},t})(kr);var yp=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="Preloader",e.width=W(100),e.height=W(100);var i=new ue,r=e.createChild(te);r.shouldClone=!1;var n=r.createChild(Mr);n.shouldClone=!1,n.radius=53,n.arc=360,n.fill=i.getFor("fill"),n.fillOpacity=.8,n.innerRadius=42,n.isMeasured=!1,e.backgroundSlice=n;var s=r.createChild(Mr);s.shouldClone=!1,s.radius=50,s.innerRadius=45,s.fill=i.getFor("alternativeBackground"),s.fillOpacity=.2,s.isMeasured=!1,e.progressSlice=s;var o=r.createChild(Rt);o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=i.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=i.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300;var l=e.states.create("hidden");return l.properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(r),e}return Object.defineProperty(t.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(e){var i=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",e),this.progressSlice.arc=360*e,this.label&&(this.label.text=Math.round(e*100)+"%"),e>=1?(this._started&&(this._started=void 0),S.events.once("enterframe",function(){var r=i.hide();r&&!r.isFinished()?r.events.once("animationended",function(){i.__disabled=!0}):i.__disabled=!0}),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):e>0&&(this.delay?this._started?this._started+this.delay<=new Date().getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=new Date().getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(e){this.setPropertyValue("delay",e)},enumerable:!0,configurable:!0}),t})(te);S.registeredClasses.Preloader=yp;var pv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";var i=.3;e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=220*i,e.height=70*i,e.background.opacity=0;var r=oe("#474758");new ue().getFor("background").alternative.hex=="#ffffff"&&(r=oe("#ffffff"));var n=new fi;n.addColor(r),n.addColor(r,1,.75),n.addColor(oe("#3cabff"),1,.755),n.rotation=-10;var s=n,o=e.createChild(Vs);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:50*i,y:50*i},{x:90*i,y:50*i},{x:120*i,y:20*i},{x:135*i,y:35*i},{x:150*i,y:20*i},{x:180*i,y:50*i},{x:200*i,y:50*i}]],o.strokeWidth=6*i,o.tensionX=.8,o.tensionY=1,o.stroke=oe("#3cabff");var l=e.createChild(Vs);l.shouldClone=!1,l.isMeasured=!1,l.segments=[[{x:20*i,y:50*i},{x:50*i,y:50*i},{x:90*i,y:12*i},{x:133*i,y:50*i},{x:170*i,y:50*i},{x:200*i,y:50*i}]],l.strokeWidth=6*i,l.tensionX=.75,l.tensionY=1,l.stroke=s,e._disposers.push(l);var u=new Fs;e.filters.push(u);var h=new Fs;h.saturation=1;var p=e.states.create("hover");return p.properties.opacity=1,p.filters.push(h),e.applyTheme(),e}return t})(te);function MP(a,t){var e=Kl(a),i=!1;if(e||(e=document.createElement("div"),e.style.width="200px",e.style.height="200px",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.position="absolute",document.body.appendChild(e),i=!0),e){e.innerHTML="";var r=new lu(e),n=new Vh(r.SVGContainer,"svg-"+(kh.length-1)),s=new te;s.htmlContainer=e,s.svgContainer=r,s.width=W(100),s.height=W(100),s.background.fillOpacity=0,s.paper=n,n.append(s.group),i&&wc(function(){s.moveHtmlContainer(a)}),s.relativeWidth=1,s.relativeHeight=1,r.container=s;var o=s.createChild(t);o.topParent=s;var l=o.uid;S.invalidSprites[l]=[],S.invalidDatas[l]=[],S.invalidPositions[l]=[],S.invalidLayouts[l]=[],s.baseId=l,o.isBaseSprite=!0,o.focusFilter=new gf,S.baseSprites.push(o),S.baseSpritesByUid[l]=o,o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)},s.events.on("maxsizechanged",function(b){(b.previousWidth==0||b.previousHeight==0)&&s.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)})});var u=null,h=function(){o.isDisposed()?u=null:_h(o.dom)==null?(Ce.autoDispose?(s.htmlContainer=void 0,r.htmlElement=void 0,o.dispose()):Vo("Chart was not disposed",o.uid),u=null):u=window.setTimeout(h,1e3)};h(),o.addDisposer(new Fe(function(){u!==null&&clearTimeout(u),de(S.baseSprites,o),S.baseSpritesByUid[o.uid]=void 0})),o.addDisposer(s);var p=s.createChild(te);p.topParent=s,p.width=W(100),p.height=W(100),p.isMeasured=!1,s.tooltipContainer=p,o.tooltip=new On,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight}),p.events.on("maxsizechanged",function(){Ze(o.tooltip).setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight})},void 0,!1);var d=new yp;if(d.events.on("inited",function(){d.__disabled=!0},void 0,!1),s.preloader=d,o instanceof te&&!o.hasLicense()){var c=p.createChild(pv);p.events.on("maxsizechanged",function(b){p.maxWidth<=100||p.maxHeight<=50?c.hide():(c.isHidden||c.isHiding)&&c.show()},void 0,!1),o.logo=c,c.align="left",c.valign="bottom"}if(o.numberFormatter,s.isStandaloneInstance=!0,Ce.onlyShowOnViewport)if(Th(e,Ce.viewportTarget))Ce.queue&&vf(o);else{o.__disabled=!0,o.tooltipContainer.__disabled=!0;var f=[_t(window,"DOMContentLoaded",function(){Ms(o)}),_t(window,"load",function(){Ms(o)}),_t(window,"resize",function(){Ms(o)}),_t(window,"scroll",function(){Ms(o)})];if(Ce.viewportTarget)for(var m=Je(Ce.viewportTarget)?Ce.viewportTarget:Ce.viewportTarget?[Ce.viewportTarget]:[],y=0;y<m.length;y++){var g=m[y];f.push(_t(g,"resize",function(){Ms(o)})),f.push(_t(g,"scroll",function(){Ms(o)}))}var v=new Me(f);o.addDisposer(v),o.vpDisposer=v}else Ce.queue&&vf(o);return o}else throw De.log("html container not found"),new Error("html container not found")}function vf(a){S.queue.indexOf(a)==-1&&(a.__disabled=!0,a.tooltipContainer.__disabled=!0,a.events.disableType("appeared"),S.queue.length==0&&(S.events.once("exitframe",function(){dv(a)}),De.requestFrame()),a.addDisposer(new Fe(function(){gp(a)})),S.queue.push(a))}function gp(a){var t=S.queue.indexOf(a);if(t>=0){S.queue.splice(S.queue.indexOf(a),1);var e=S.queue[t];e&&dv(e)}}function Ms(a){a.__disabled&&Th(a.htmlContainer,Ce.viewportTarget)&&(a.vpDisposer&&a.vpDisposer.dispose(),vf(a))}function dv(a){a&&a.tooltipContainer&&(a.__disabled=!1,a.tooltipContainer.__disabled=!1,a.events.enableType("appeared"),a.dispatch("removedfromqueue"),a.showOnInit&&a.events.on("appeared",function(){gp(a)}),a.vpDisposer&&a.vpDisposer.dispose(),a instanceof te&&a.invalidateLabels(),a.tooltipContainer&&a.tooltipContainer.invalidateLayout(),a instanceof vr?(a.invalidateData(),a.reinit(),a.events.once("datavalidated",function(){a.showOnInit?a.appear():gp(a)})):(a.reinit(),a.events.once("inited",function(){gp(a)}),a.showOnInit&&a.appear()))}function NP(a,t){var e;ye(t)&&(C(S.registeredClasses[t])?t=S.registeredClasses[t]:(t=S.registeredClasses.Container,e=new Error("Class ["+t+"] is not loaded.")));var i=MP(a,t);return e&&i.raiseCriticalError(e),i}function RP(a){S.themes.indexOf(a)===-1&&S.themes.push(a)}function jP(a){de(S.themes,a)}var cv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return t.prototype.draw=function(){if(a.prototype.draw.call(this),this.href){var e=this.innerWidth,i=this.innerHeight;x(this.widthRatio)&&(e=i*this.widthRatio,this.width=e),x(this.heightRatio)&&(i=e*this.heightRatio,this.height=i),this.element.attr({width:e,height:i}),this.element.attrNS(Oo,"xlink:href",this.href)}},Object.defineProperty(t.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(e){this.setPropertyValue("href",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(e){this.setPropertyValue("widthRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(e){this.setPropertyValue("heightRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Image=cv;var fv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return t.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){var i="";this._realSegments=[];for(var r=0,n=e.length;r<n;r++){var s=e[r],o=[];if(this._realSegments.push(o),s.length>0){i+=X(s[0]);for(var l=1;l<s.length;l++){var u=s[l-1],h=s[l],p=Ee(h,u),d=p*this.controlPointDistance,c=this.controlPointPosition,f=-kt(u,h),m=u.x+(h.x-u.x)*c*.5-d*Z(f),y=u.y+(h.y-u.y)*c*.5-d*Q(f),g={x:m,y},v=u.x+(h.x-u.x)*c*1.5-d*Z(f),b=u.y+(h.y-u.y)*c*1.5-d*Q(f),P={x:v,y:b};i+=Qa(h,g,P);var w=Math.ceil(p),T=u;if(w>0)for(var F=0;F<=w;F++){var D=Vl(u,h,g,P,F/w);o.push(D),this._distance+=Ee(T,D),T=D}else o.push(u)}}}this.path=i}},Object.defineProperty(t.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(e){this.setPropertyValue("controlPointPosition",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e),this.makePath()},enumerable:!0,configurable:!0}),t})(tn);S.registeredClasses.Polyarc=fv;var bf=(function(a){_(t,a);function t(e){var i=a.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=Xr,i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return t.prototype.morphToPolygon=function(e,i,r){var n=this.morphable.currentPoints;if(n&&e){this.sortPoints(n),this.sortPoints(e),this._morphFromPointsReal=[],this._morphToPointsReal=[],C(i)||(i=this.morphDuration),C(r)||(r=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(e,n),this._morphToPointsReal=this.normalizePoints(n,e),this.morphable.currentPoints=this._morphFromPointsReal;var s=new bi(this,{property:"morphProgress",from:0,to:1},i,r);return this._disposers.push(s),s.start(),s}},t.prototype.normalizePoints=function(e,i){for(var r=0,n=e.length;r<n;r++){var s=e[r][0],o=e[r][1],l=Ze(co(s)),u=l.x+l.width,h=l.y+l.height;if(i[r]||(i[r]=[]),s&&!i[r][0]&&(i[r][0]=[{x:u,y:h},{x:u,y:h}]),i[r][0]){i[r][0]=this.addPoints(i[r][0],s.length);for(var p=1/0,d=0,c=0;c<i[r][0].length;c++){var f=Ee(i[r][0][c],s[0]);f<p&&(d=c,p=f)}var m=i[r][0].slice(0,d),y=i[r][0].slice(d);i[r][0]=y.concat(m)}o&&(i[r][1]||(i[r][1]=[{x:u,y:h},{x:u,y:h}]),i[r][1]=this.addPoints(i[r][1],o.length))}return i},t.prototype.sortPoints=function(e){e.sort(function(o,l){var u=Ze(co(o[0])),h=Ze(co(l[0]));return u.width*u.height>h.width*h.height?-1:1});for(var i=[],r=0,n=e.length;r<n;r++){var s=e[r][0];s&&i.push(Ze(co(s)))}return Ta(i)},t.prototype.morphToCircle=function(e,i,r){var n=this.morphable.points,s=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],C(i)||(i=this.morphDuration),C(r)||(r=this.morphEasing);for(var o=0,l=n.length;o<l;o++){var u=n[o][0],h=n[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var p=u,d=u,c=Ze(co(d));this.morphToSingle&&(c=Ze(s));var f=c.x+c.width/2,m=c.y+c.height/2,y=e;x(y)||(y=Math.min(c.width/2,c.height/2)),p=[];var g=kt({x:f,y:m},u[0]),v=100;u.length>v&&(v=u.length),d=this.addPoints(u,v),v=d.length;for(var b=360/(v-1),P=0;P<v;P++){var w=b*P+g,T={x:f+y*Q(w),y:m+y*Z(w)};p[P]=T}if(h&&h.length>0)for(var F=0,D=h.length;F<D;F++)p.push({x:f,y:m});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var O=new bi(this,{property:"morphProgress",from:0,to:1},i,r);return this._disposers.push(O),O.start(),O},t.prototype.addPoints=function(e,i){for(var r=Math.round(i/e.length),n=[],s=0,o=e.length;s<o;s++){var l=e[s],u=void 0;s==e.length-1?u=e[0]:u=e[s+1],n.push(l);for(var h=1;h<r;h++){var p=h/r,d={x:l.x+(u.x-l.x)*p,y:l.y+(u.y-l.y)*p};n.push(d)}n.length+e.length-s==i&&(r=0)}if(n.length<i&&e.length>0)for(var c=e[e.length-1],h=n.length;h<i;h++)n.push({x:c.x,y:c.y});return n},t.prototype.morphToRectangle=function(e,i,r,n){var s=this.morphable.points;this.sortPoints(s),this._morphFromPointsReal=[],this._morphToPointsReal=[],C(r)||(r=this.morphDuration),C(n)||(n=this.morphEasing);for(var o=0,l=s.length;o<l;o++){var u=s[o][0],h=s[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var p=u,d=u,c=this._bboxes[o];this.morphToSingle;var f=c.x,m=c.y,y=e,g=i;if(x(y)||(y=c.width),x(g)||(g=c.height),p=[{x:f,y:m},{x:f+y,y:m},{x:f+y,y:m+g},{x:f,y:m+g}],p=this.addPoints(p,u.length),u.length<4)for(var v=u.length;v<4;v++)p.push({x:u[v].x,y:u[v].y});if(h&&h.length>0)for(var b=c.x+c.width/2,P=c.y+c.height/2,w=0,T=h.length;w<T;w++)p.push({x:b,y:P});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var F=new bi(this,{property:"morphProgress",from:0,to:1},r,n);return this._disposers.push(F),F.start(),F},Object.defineProperty(t.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(e){this._morphProgress=e;var i=[];if(e!=null){var r=this._morphFromPointsReal,n=this._morphToPointsReal;if(r!=null&&n!=null)for(var s=0,o=r.length;s<o;s++){var l=[];i.push(l);var u=r[s][0],h=r[s][1],p=n[s][0],d=n[s][1];if(u&&u.length>0&&p&&p.length>0){for(var c=[],f=0,m=u.length;f<m;f++){var y=u[f],g=p[f],v={x:y.x+(g.x*this.scaleRatio-y.x)*e,y:y.y+(g.y*this.scaleRatio-y.y)*e};c.push(v)}l[0]=c}if(h&&h.length>0&&d&&d.length>0){for(var b=[],P=0,w=h.length;P<w;P++){var y=h[P],g=d[P],v={x:y.x+(g.x*this.scaleRatio-y.x)*e,y:y.y+(g.y*this.scaleRatio-y.y)*e};b.push(v)}l[1]=b}}}this.morphable.currentPoints=i},enumerable:!0,configurable:!0}),t.prototype.morphBack=function(e,i){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,C(e)||(e=this.morphDuration),C(i)||(i=this.morphEasing);var r=new bi(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r},Object.defineProperty(t.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Kr(this._animations))),this._animations},enumerable:!0,configurable:!0}),t})(Tt);var mv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return Object.defineProperty(t.prototype,"points",{get:function(){var e=this.getPropertyValue("points"),i=this.path;if(i&&(!e||e.length==0)){for(var r=i.slice(1,i.length-1),n=r.split("ZM"),s=0;s<n.length;s++){var o=n[s];if(o.length>0){var l=o.split("M"),u=l[0],h=l[1];if(u&&u.length>0){var p=u.split("L");if(p.length>0){var d=[],c=[d];e.push(c);for(var f=0;f<p.length;f++){var m=p[f].split(",");d.push({x:+m[0],y:+m[1]})}if(h&&h.length>0){var y=h.split("L");if(y.length>0){var g=[];c.push(g);for(var f=y.length-1;f>=0;f--){var m=y[f].split(",");g.push({x:+m[0],y:+m[1]})}}}}}}}this.setPropertyValue("points",e),this._currentPoints=e}return e},set:function(e){this.setPropertyValue("points",e,!0),this._currentPoints=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPoints",{get:function(){return(!this._currentPoints||this._currentPoints.length==0)&&this.path&&(this._currentPoints=this.points),this._currentPoints},set:function(e){this._currentPoints!=e&&(this._currentPoints=e,this.draw())},enumerable:!0,configurable:!0}),t.prototype.draw=function(){var e="",i=this._currentPoints,r,n,s,o;if(i.length>0){for(var l=0,u=i.length;l<u;l++){var h=i[l][0],p=i[l][1];if(h&&h.length>0){var d=h[0];e+=X(d);for(var c=0;c<h.length;c++)d=h[c],e+=R(d),(!x(n)||n<d.x)&&(n=d.x),(!x(r)||r>d.x)&&(r=d.x),(!x(s)||s>d.y)&&(s=d.y),(!x(o)||o<d.y)&&(o=d.y)}if(p&&p.length>0){var d=p[0];e+=X(d);for(var f=0,m=p.length;f<m;f++)d=p[f],e+=R(d)}}e&&(e+=it()),this.bbox.x=r,this.bbox.y=s,this.bbox.width=n-r,this.bbox.height=o-s,a.prototype.setPath.call(this,e)}},t.prototype.setPath=function(e){return a.prototype.setPath.call(this,e)?(this.points=[],this._bbox=this.group.getBBox(),!0):!1},t.prototype.measureElement=function(){},Object.defineProperty(t.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new bf(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),t})(ne);S.registeredClasses.Polygon=mv;var yv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var i=new ue;e.cursorOverStyle=Mt.pointer;var r=e.background;r.cornerRadius(20,20,20,20);var n=i.getFor("background");r.fill=n,r.stroke=i.getFor("primaryButton"),r.strokeOpacity=1,r.strokeWidth=1;var s=i.getFor("primaryButtonActive"),o=r.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=n;var l=r.states.getKey("down");l.properties.stroke=s,l.properties.fill=n;var u=new ne;return u.element=e.paper.add("path"),u.stroke=r.stroke,e.icon=u,e.applyTheme(),e}return t.prototype.validate=function(){a.prototype.validate.call(this);var e=this.pixelWidth/3,i=this.pixelHeight/3,r=X({x:-e/2,y:-i/2});r+=R({x:e/2,y:i/2}),r+=X({x:e/2,y:-i/2}),r+=R({x:-e/2,y:i/2}),this.icon.path=r,this.invalidateLayout()},t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},t})(Yi);S.registeredClasses.CloseButton=yv;var gv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var i=new ue,r=new Rt;r.fillOpacity=.3;var n=r.states.create("active");n.properties.fillOpacity=1,r.isActive=!0,e.leftLabel=r;var s=new Yi,o=new Sr;s.contentValign="none",s.padding(0,0,0,0),o.radius=10,s.icon=o,s.icon.valign="middle",s.label=void 0;var l=W(100);s.background.cornerRadius(l,l,l,l),s.width=o.radius*3.5,s.height=o.radius*2.1,s.marginLeft=8,s.marginRight=8,s.togglable=!0,o.dx=-o.radius*.7,o.fill=i.getFor("primaryButton");var u=o.states.create("hover");u.properties.fill=i.getFor("primaryButtonHover");var h=o.states.create("active");h.properties.fill=i.getFor("primaryButtonActive"),h.properties.dx=o.radius*.7,e.switchButton=s,e.events.on("toggled",function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive});var p=new Rt;p.fillOpacity=.3;var d=p.states.create("active");return d.properties.fillOpacity=1,e.rightLabel=p,e.role="button",e.focusable=!0,p.valign="middle",r.valign="middle",s.valign="middle",e.applyTheme(),e}return Object.defineProperty(t.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(e){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(e){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"switchButton",{get:function(){return this._switchButton},set:function(e){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=e,e&&(e.parent=this,e.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},t})(te);S.registeredClasses.SwitchButton=gv;var vv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y}),e.applyTheme(),e}return Object.defineProperty(t.prototype,"__end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),t})(Dn);S.registeredClasses.Slider=vv;var bv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new ue,r=e.background;r.cornerRadius(25,25,25,25),r.fill=i.getFor("primaryButton"),r.stroke=i.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var n=new Qo;n.direction="right",n.width=9,n.height=11,n.marginLeft=1,n.marginRight=1,n.horizontalCenter="middle",n.verticalCenter="middle",n.stroke=i.getFor("primaryButtonText"),n.fill=n.stroke,e.icon=n;var s=new xi;s.width=11,s.height=11,s.horizontalCenter="middle",s.verticalCenter="middle",s.cornerRadius(0,0,0,0),s.stroke=i.getFor("primaryButtonText"),s.fill=n.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=s,e.defaultState.transitionDuration=0,e.applyTheme(),e}return t.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),C(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},t})(Yi);S.registeredClasses.PlayButton=bv;var xv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new yr,e.applyTheme(),e}return t.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},t})(wu);S.registeredClasses.RadialGradientModifier=xv;var vp=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return t.prototype.draw=function(){a.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(t.prototype,"radius",{get:function(){return this.properties.radius},set:function(e){this.properties.radius=e,this.draw()},enumerable:!0,configurable:!0}),t})(ca);S.registeredClasses.CirclePattern=vp;var Sv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return t.prototype.applyFilter=function(){var e=this.intensity,i=1-e,r,n,s,o=this.color;o&&o.rgb?(r=o.rgb.r/255*e,n=o.rgb.g/255*e,s=o.rgb.b/255*e):(r=0,n=0,s=0),this.feColorMatrix.attr({values:i+" 0 0 0 "+r+" 0 "+i+" 0 0 "+n+" 0 0 "+i+" 0 "+s+" 0 0 0 1 0"})},Object.defineProperty(t.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(e){this.properties.intensity=e,this.applyFilter()},enumerable:!0,configurable:!0}),t})(kr);S.registeredClasses.ColorizeFilter=Sv;var Cv=(function(a){_(t,a);function t(){var e=a.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return Object.defineProperty(t.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),t})(kr);S.registeredClasses.BlurFilter=Cv;var wv=(function(a){_(t,a);function t(){var e=a.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new _e({r:103,g:183,b:220}),e.className="PatternSet";var i=new ue;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=i.getFor("stroke"),e.applyTheme(),e}return t.prototype.getLinePattern=function(e,i,r,n,s){var o=new Jo;return o.width=e,o.height=e,o.stroke=this.baseColor,o.gap=n,o.strokeDasharray=s,o.strokeWidth=r,o.rotation=i,o},t.prototype.getRectPattern=function(e,i,r,n){var s=new el;return s.width=e,s.height=e,s.rectWidth=r,s.rectHeight=r,n?(s.stroke=this.baseColor,s.strokeWidth=1,s.fillOpacity=0):(s.fill=this.baseColor,s.strokeWidth=0),i!=0&&(s.shapeRendering="auto"),s.rotation=i,s},t.prototype.getCirclePattern=function(e,i,r){var n=new vp;return n.width=e,n.height=e,n.shapeRendering="auto",n.radius=i,r?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),t.prototype.next=function(){var e=this.getIndex(this.currentStep);return this._currentStep++,e},t.prototype.getIndex=function(e){for(var i;this.list.length<=e;)this.generatePatterns();return i=this.list[e],i.clone()},t.prototype.generatePatterns=function(){var e=this.list.length/(this._currentPass+1);this._currentPass++;for(var i=0;i<e;i++)this.list.push(this.list[i].clone())},t.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(t.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){a.prototype.processConfig.call(this,e)},t})(Tt);S.registeredClasses.PatternSet=wv;var BP=(function(){function a(){this._disposed=!1,this._disposers=[]}return a.prototype.init=function(){},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;t.length!==0;){var e=t.shift();e.dispose()}}},a})();var an=class extends Error{},Df=class extends an{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Ff=class extends an{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},If=class extends an{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Bn=class extends an{},Tp=class extends an{constructor(t){super(`Invalid unit ${t}`)}},Li=class extends an{},Na=class extends an{constructor(){super("Zone is an abstract class")}},ce="numeric",ga="short",jr="long",$p={year:ce,month:ce,day:ce},eb={year:ce,month:ga,day:ce},WP={year:ce,month:ga,day:ce,weekday:ga},tb={year:ce,month:jr,day:ce},ib={year:ce,month:jr,day:ce,weekday:jr},rb={hour:ce,minute:ce},ab={hour:ce,minute:ce,second:ce},nb={hour:ce,minute:ce,second:ce,timeZoneName:ga},sb={hour:ce,minute:ce,second:ce,timeZoneName:jr},ob={hour:ce,minute:ce,hourCycle:"h23"},lb={hour:ce,minute:ce,second:ce,hourCycle:"h23"},ub={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ga},hb={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:jr},pb={year:ce,month:ce,day:ce,hour:ce,minute:ce},db={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},cb={year:ce,month:ga,day:ce,hour:ce,minute:ce},fb={year:ce,month:ga,day:ce,hour:ce,minute:ce,second:ce},qP={year:ce,month:ga,day:ce,weekday:ga,hour:ce,minute:ce},mb={year:ce,month:jr,day:ce,hour:ce,minute:ce,timeZoneName:ga},yb={year:ce,month:jr,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:ga},gb={year:ce,month:jr,day:ce,weekday:jr,hour:ce,minute:ce,timeZoneName:jr},vb={year:ce,month:jr,day:ce,weekday:jr,hour:ce,minute:ce,second:ce,timeZoneName:jr},Bs=class{get type(){throw new Na}get name(){throw new Na}get ianaName(){return this.name}get isUniversal(){throw new Na}offsetName(t,e){throw new Na}formatOffset(t,e){throw new Na}offset(t){throw new Na}equals(t){throw new Na}get isValid(){throw new Na}},xf=null,Op=class a extends Bs{static get instance(){return xf===null&&(xf=new a),xf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return Db(t,e,i)}formatOffset(t,e){return Mu(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},Af=new Map;function zP(a){let t=Af.get(a);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Af.set(a,t)),t}var HP={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function UP(a,t){let e=a.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,r,n,s,o,l,u,h]=i;return[s,r,n,o,l,u,h]}function GP(a,t){let e=a.formatToParts(t),i=[];for(let r=0;r<e.length;r++){let{type:n,value:s}=e[r],o=HP[n];n==="era"?i[o]=s:Ne(o)||(i[o]=parseInt(s,10))}return i}var Sf=new Map,qn=class a extends Bs{static create(t){let e=Sf.get(t);return e===void 0&&Sf.set(t,e=new a(t)),e}static resetCache(){Sf.clear(),Af.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=a.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return Db(t,e,i,this.name)}formatOffset(t,e){return Mu(this.offset(t),e)}offset(t){if(!this.valid)return NaN;let e=new Date(t);if(isNaN(e))return NaN;let i=zP(this.name),[r,n,s,o,l,u,h]=i.formatToParts?GP(i,e):UP(i,e);o==="BC"&&(r=-Math.abs(r)+1);let d=Ep({year:r,month:n,day:s,hour:l===24?0:l,minute:u,second:h,millisecond:0}),c=+e,f=c%1e3;return c-=f>=0?f:1e3+f,(d-c)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},Pv={};function YP(a,t={}){let e=JSON.stringify([a,t]),i=Pv[e];return i||(i=new Intl.ListFormat(a,t),Pv[e]=i),i}var Lf=new Map;function Ef(a,t={}){let e=JSON.stringify([a,t]),i=Lf.get(e);return i===void 0&&(i=new Intl.DateTimeFormat(a,t),Lf.set(e,i)),i}var kf=new Map;function XP(a,t={}){let e=JSON.stringify([a,t]),i=kf.get(e);return i===void 0&&(i=new Intl.NumberFormat(a,t),kf.set(e,i)),i}var Vf=new Map;function KP(a,t={}){let{base:e,...i}=t,r=JSON.stringify([a,i]),n=Vf.get(r);return n===void 0&&(n=new Intl.RelativeTimeFormat(a,t),Vf.set(r,n)),n}var Eu=null;function ZP(){return Eu||(Eu=new Intl.DateTimeFormat().resolvedOptions().locale,Eu)}var Mf=new Map;function bb(a){let t=Mf.get(a);return t===void 0&&(t=new Intl.DateTimeFormat(a).resolvedOptions(),Mf.set(a,t)),t}var Nf=new Map;function QP(a){let t=Nf.get(a);if(!t){let e=new Intl.Locale(a);t="getWeekInfo"in e?e.getWeekInfo():e.weekInfo,"minimalDays"in t||(t={...xb,...t}),Nf.set(a,t)}return t}function JP(a){let t=a.indexOf("-x-");t!==-1&&(a=a.substring(0,t));let e=a.indexOf("-u-");if(e===-1)return[a];{let i,r;try{i=Ef(a).resolvedOptions(),r=a}catch{let l=a.substring(0,e);i=Ef(l).resolvedOptions(),r=l}let{numberingSystem:n,calendar:s}=i;return[r,n,s]}}function e_(a,t,e){return(e||t)&&(a.includes("-u-")||(a+="-u"),e&&(a+=`-ca-${e}`),t&&(a+=`-nu-${t}`)),a}function t_(a){let t=[];for(let e=1;e<=12;e++){let i=lt.utc(2009,e,1);t.push(a(i))}return t}function i_(a){let t=[];for(let e=1;e<=7;e++){let i=lt.utc(2016,11,13+e);t.push(a(i))}return t}function bp(a,t,e,i){let r=a.listingMode();return r==="error"?null:r==="en"?e(t):i(t)}function r_(a){return a.numberingSystem&&a.numberingSystem!=="latn"?!1:a.numberingSystem==="latn"||!a.locale||a.locale.startsWith("en")||bb(a.locale).numberingSystem==="latn"}var Rf=class{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;let{padTo:r,floor:n,...s}=i;if(!e||Object.keys(s).length>0){let o={useGrouping:!1,...i};i.padTo>0&&(o.minimumIntegerDigits=i.padTo),this.inf=XP(t,o)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}else{let e=this.floor?Math.floor(t):Zf(t,3);return Si(e,this.padTo)}}},jf=class{constructor(t,e,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&qn.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let n={...this.opts};n.timeZone=n.timeZone||r,this.dtf=Ef(e,n)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(e=>{if(e.type==="timeZoneName"){let i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:i}}else return e}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Bf=class{constructor(t,e,i){this.opts={style:"long",...i},!e&&$b()&&(this.rtf=KP(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):P_(e,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}},xb={firstDay:1,minimalDays:4,weekend:[6,7]},Ut=class a{static fromOpts(t){return a.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,i,r,n=!1){let s=t||Qt.defaultLocale,o=s||(n?"en-US":ZP()),l=e||Qt.defaultNumberingSystem,u=i||Qt.defaultOutputCalendar,h=zf(r)||Qt.defaultWeekSettings;return new a(o,l,u,h,s)}static resetCache(){Eu=null,Lf.clear(),kf.clear(),Vf.clear(),Mf.clear(),Nf.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:i,weekSettings:r}={}){return a.create(t,e,i,r)}constructor(t,e,i,r,n){let[s,o,l]=JP(t);this.locale=s,this.numberingSystem=e||o||null,this.outputCalendar=i||l||null,this.weekSettings=r,this.intl=e_(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=r_(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),e=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&e?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:a.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,zf(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return bp(this,t,Ab,()=>{let i=this.intl==="ja"||this.intl.startsWith("ja-");e&=!i;let r=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";if(!this.monthsCache[n][t]){let s=i?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[n][t]=t_(s)}return this.monthsCache[n][t]})}weekdays(t,e=!1){return bp(this,t,kb,()=>{let i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=i_(n=>this.extract(n,i,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return bp(this,void 0,()=>Vb,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[lt.utc(2016,11,13,9),lt.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t){return bp(this,t,Mb,()=>{let e={era:t};return this.eraCache[t]||(this.eraCache[t]=[lt.utc(-40,1,1),lt.utc(2017,1,1)].map(i=>this.extract(i,e,"era"))),this.eraCache[t]})}extract(t,e,i){let r=this.dtFormatter(t,e),n=r.formatToParts(),s=n.find(o=>o.type.toLowerCase()===i);return s?s.value:null}numberFormatter(t={}){return new Rf(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new jf(t,this.intl,e)}relFormatter(t={}){return new Bf(this.intl,this.isEnglish(),t)}listFormatter(t={}){return YP(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||bb(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ob()?QP(this.locale):xb}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Cf=null,ia=class a extends Bs{static get utcInstance(){return Cf===null&&(Cf=new a(0)),Cf}static instance(t){return t===0?a.utcInstance:new a(t)}static parseSpecifier(t){if(t){let e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new a(kp(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Mu(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Mu(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Mu(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Wf=class extends Bs{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function jn(a,t){if(Ne(a)||a===null)return t;if(a instanceof Bs)return a;if(u_(a)){let e=a.toLowerCase();return e==="default"?t:e==="local"||e==="system"?Op.instance:e==="utc"||e==="gmt"?ia.utcInstance:ia.parseSpecifier(e)||qn.create(a)}else return Wn(a)?ia.instance(a):typeof a=="object"&&"offset"in a&&typeof a.offset=="function"?a:new Wf(a)}var Gf={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},_v={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},a_=Gf.hanidec.replace(/[\[|\]]/g,"").split("");function n_(a){let t=parseInt(a,10);if(isNaN(t)){t="";for(let e=0;e<a.length;e++){let i=a.charCodeAt(e);if(a[e].search(Gf.hanidec)!==-1)t+=a_.indexOf(a[e]);else for(let r in _v){let[n,s]=_v[r];i>=n&&i<=s&&(t+=i-n)}}return parseInt(t,10)}else return t}var qf=new Map;function s_(){qf.clear()}function ma({numberingSystem:a},t=""){let e=a||"latn",i=qf.get(e);i===void 0&&(i=new Map,qf.set(e,i));let r=i.get(t);return r===void 0&&(r=new RegExp(`${Gf[e]}${t}`),i.set(t,r)),r}var Tv=()=>Date.now(),$v="system",Ov=null,Dv=null,Fv=null,Iv=60,Av,Lv=null,Qt=class{static get now(){return Tv}static set now(t){Tv=t}static set defaultZone(t){$v=t}static get defaultZone(){return jn($v,Op.instance)}static get defaultLocale(){return Ov}static set defaultLocale(t){Ov=t}static get defaultNumberingSystem(){return Dv}static set defaultNumberingSystem(t){Dv=t}static get defaultOutputCalendar(){return Fv}static set defaultOutputCalendar(t){Fv=t}static get defaultWeekSettings(){return Lv}static set defaultWeekSettings(t){Lv=zf(t)}static get twoDigitCutoffYear(){return Iv}static set twoDigitCutoffYear(t){Iv=t%100}static get throwOnInvalid(){return Av}static set throwOnInvalid(t){Av=t}static resetCaches(){Ut.resetCache(),qn.resetCache(),lt.resetCache(),s_()}},Rr=class{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},Sb=[0,31,59,90,120,151,181,212,243,273,304,334],Cb=[0,31,60,91,121,152,182,213,244,274,305,335];function ea(a,t){return new Rr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${a}, which is invalid`)}function Yf(a,t,e){let i=new Date(Date.UTC(a,t-1,e));a<100&&a>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);let r=i.getUTCDay();return r===0?7:r}function wb(a,t,e){return e+(Ru(a)?Cb:Sb)[t-1]}function Pb(a,t){let e=Ru(a)?Cb:Sb,i=e.findIndex(n=>n<t),r=t-e[i];return{month:i+1,day:r}}function Xf(a,t){return(a-t+7)%7+1}function Dp(a,t=4,e=1){let{year:i,month:r,day:n}=a,s=wb(i,r,n),o=Xf(Yf(i,r,n),e),l=Math.floor((s-o+14-t)/7),u;return l<1?(u=i-1,l=Nu(u,t,e)):l>Nu(i,t,e)?(u=i+1,l=1):u=i,{weekYear:u,weekNumber:l,weekday:o,...Vp(a)}}function Ev(a,t=4,e=1){let{weekYear:i,weekNumber:r,weekday:n}=a,s=Xf(Yf(i,1,t),e),o=nl(i),l=r*7+n-s-7+t,u;l<1?(u=i-1,l+=nl(u)):l>o?(u=i+1,l-=nl(i)):u=i;let{month:h,day:p}=Pb(u,l);return{year:u,month:h,day:p,...Vp(a)}}function wf(a){let{year:t,month:e,day:i}=a,r=wb(t,e,i);return{year:t,ordinal:r,...Vp(a)}}function kv(a){let{year:t,ordinal:e}=a,{month:i,day:r}=Pb(t,e);return{year:t,month:i,day:r,...Vp(a)}}function Vv(a,t){if(!Ne(a.localWeekday)||!Ne(a.localWeekNumber)||!Ne(a.localWeekYear)){if(!Ne(a.weekday)||!Ne(a.weekNumber)||!Ne(a.weekYear))throw new Bn("Cannot mix locale-based week fields with ISO-based week fields");return Ne(a.localWeekday)||(a.weekday=a.localWeekday),Ne(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),Ne(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function o_(a,t=4,e=1){let i=Lp(a.weekYear),r=ta(a.weekNumber,1,Nu(a.weekYear,t,e)),n=ta(a.weekday,1,7);return i?r?n?!1:ea("weekday",a.weekday):ea("week",a.weekNumber):ea("weekYear",a.weekYear)}function l_(a){let t=Lp(a.year),e=ta(a.ordinal,1,nl(a.year));return t?e?!1:ea("ordinal",a.ordinal):ea("year",a.year)}function _b(a){let t=Lp(a.year),e=ta(a.month,1,12),i=ta(a.day,1,Fp(a.year,a.month));return t?e?i?!1:ea("day",a.day):ea("month",a.month):ea("year",a.year)}function Tb(a){let{hour:t,minute:e,second:i,millisecond:r}=a,n=ta(t,0,23)||t===24&&e===0&&i===0&&r===0,s=ta(e,0,59),o=ta(i,0,59),l=ta(r,0,999);return n?s?o?l?!1:ea("millisecond",r):ea("second",i):ea("minute",e):ea("hour",t)}function Ne(a){return typeof a>"u"}function Wn(a){return typeof a=="number"}function Lp(a){return typeof a=="number"&&a%1===0}function u_(a){return typeof a=="string"}function h_(a){return Object.prototype.toString.call(a)==="[object Date]"}function $b(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Ob(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function p_(a){return Array.isArray(a)?a:[a]}function Mv(a,t,e){if(a.length!==0)return a.reduce((i,r)=>{let n=[t(r),r];return i&&e(i[0],n[0])===i[0]?i:n},null)[1]}function d_(a,t){return t.reduce((e,i)=>(e[i]=a[i],e),{})}function ll(a,t){return Object.prototype.hasOwnProperty.call(a,t)}function zf(a){if(a==null)return null;if(typeof a!="object")throw new Li("Week settings must be an object");if(!ta(a.firstDay,1,7)||!ta(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(t=>!ta(t,1,7)))throw new Li("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function ta(a,t,e){return Lp(a)&&a>=t&&a<=e}function c_(a,t){return a-t*Math.floor(a/t)}function Si(a,t=2){let e=a<0,i;return e?i="-"+(""+-a).padStart(t,"0"):i=(""+a).padStart(t,"0"),i}function Rn(a){if(!(Ne(a)||a===null||a===""))return parseInt(a,10)}function Ns(a){if(!(Ne(a)||a===null||a===""))return parseFloat(a)}function Kf(a){if(!(Ne(a)||a===null||a==="")){let t=parseFloat("0."+a)*1e3;return Math.floor(t)}}function Zf(a,t,e="round"){let i=10**t;switch(e){case"expand":return a>0?Math.ceil(a*i)/i:Math.floor(a*i)/i;case"trunc":return Math.trunc(a*i)/i;case"round":return Math.round(a*i)/i;case"floor":return Math.floor(a*i)/i;case"ceil":return Math.ceil(a*i)/i;default:throw new RangeError(`Value rounding ${e} is out of range`)}}function Ru(a){return a%4===0&&(a%100!==0||a%400===0)}function nl(a){return Ru(a)?366:365}function Fp(a,t){let e=c_(t-1,12)+1,i=a+(t-e)/12;return e===2?Ru(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function Ep(a){let t=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(t=new Date(t),t.setUTCFullYear(a.year,a.month-1,a.day)),+t}function Nv(a,t,e){return-Xf(Yf(a,1,t),e)+t-1}function Nu(a,t=4,e=1){let i=Nv(a,t,e),r=Nv(a+1,t,e);return(nl(a)-i+r)/7}function Hf(a){return a>99?a:a>Qt.twoDigitCutoffYear?1900+a:2e3+a}function Db(a,t,e,i=null){let r=new Date(a),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(n.timeZone=i);let s={timeZoneName:t,...n},o=new Intl.DateTimeFormat(e,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function kp(a,t){let e=parseInt(a,10);Number.isNaN(e)&&(e=0);let i=parseInt(t,10)||0,r=e<0||Object.is(e,-0)?-i:i;return e*60+r}function Fb(a){let t=Number(a);if(typeof a=="boolean"||a===""||!Number.isFinite(t))throw new Li(`Invalid unit value ${a}`);return t}function Ip(a,t){let e={};for(let i in a)if(ll(a,i)){let r=a[i];if(r==null)continue;e[t(i)]=Fb(r)}return e}function Mu(a,t){let e=Math.trunc(Math.abs(a/60)),i=Math.trunc(Math.abs(a%60)),r=a>=0?"+":"-";switch(t){case"short":return`${r}${Si(e,2)}:${Si(i,2)}`;case"narrow":return`${r}${e}${i>0?`:${i}`:""}`;case"techie":return`${r}${Si(e,2)}${Si(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Vp(a){return d_(a,["hour","minute","second","millisecond"])}var f_=["January","February","March","April","May","June","July","August","September","October","November","December"],Ib=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m_=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ab(a){switch(a){case"narrow":return[...m_];case"short":return[...Ib];case"long":return[...f_];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Lb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Eb=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],y_=["M","T","W","T","F","S","S"];function kb(a){switch(a){case"narrow":return[...y_];case"short":return[...Eb];case"long":return[...Lb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Vb=["AM","PM"],g_=["Before Christ","Anno Domini"],v_=["BC","AD"],b_=["B","A"];function Mb(a){switch(a){case"narrow":return[...b_];case"short":return[...v_];case"long":return[...g_];default:return null}}function x_(a){return Vb[a.hour<12?0:1]}function S_(a,t){return kb(t)[a.weekday-1]}function C_(a,t){return Ab(t)[a.month-1]}function w_(a,t){return Mb(t)[a.year<0?0:1]}function P_(a,t,e="always",i=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(a)===-1;if(e==="auto"&&n){let p=a==="days";switch(t){case 1:return p?"tomorrow":`next ${r[a][0]}`;case-1:return p?"yesterday":`last ${r[a][0]}`;case 0:return p?"today":`this ${r[a][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,u=r[a],h=i?l?u[1]:u[2]||u[1]:l?r[a][0]:a;return s?`${o} ${h} ago`:`in ${o} ${h}`}function Rv(a,t){let e="";for(let i of a)i.literal?e+=i.val:e+=t(i.val);return e}var __={D:$p,DD:eb,DDD:tb,DDDD:ib,t:rb,tt:ab,ttt:nb,tttt:sb,T:ob,TT:lb,TTT:ub,TTTT:hb,f:pb,ff:cb,fff:mb,ffff:gb,F:db,FF:fb,FFF:yb,FFFF:vb},Nr=class a{static create(t,e={}){return new a(t,e)}static parseFormat(t){let e=null,i="",r=!1,n=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((i.length>0||r)&&n.push({literal:r||/^\s+$/.test(i),val:i===""?"'":i}),e=null,i="",r=!r):r||o===e?i+=o:(i.length>0&&n.push({literal:/^\s+$/.test(i),val:i}),i=o,e=o)}return i.length>0&&n.push({literal:r||/^\s+$/.test(i),val:i}),n}static macroTokenToFormatOpts(t){return __[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,i=void 0){if(this.opts.forceSimple)return Si(t,e);let r={...this.opts};return e>0&&(r.padTo=e),i&&(r.signDisplay=i),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){let i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(c,f)=>this.loc.extract(t,c,f),s=c=>t.isOffsetFixed&&t.offset===0&&c.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,c.format):"",o=()=>i?x_(t):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,f)=>i?C_(t,c):n(f?{month:c}:{month:c,day:"numeric"},"month"),u=(c,f)=>i?S_(t,c):n(f?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),h=c=>{let f=a.macroTokenToFormatOpts(c);return f?this.formatWithSystemDefault(t,f):c},p=c=>i?w_(t,c):n({era:c},"era"),d=c=>{switch(c){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?n({day:"numeric"},"day"):this.num(t.day);case"dd":return r?n({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):this.num(t.month);case"MM":return r?n({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):this.num(t.year);case"yy":return r?n({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):this.num(t.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(c)}};return Rv(a.parseFormat(e),d)}formatDurationFromString(t,e){let i=this.opts.signMode==="negativeLargestOnly"?-1:1,r=h=>{switch(h[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(h,p)=>d=>{let c=r(d);if(c){let f=p.isNegativeDuration&&c!==p.largestUnit?i:1,m;return this.opts.signMode==="negativeLargestOnly"&&c!==p.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(h.get(c)*f,d.length,m)}else return d},s=a.parseFormat(e),o=s.reduce((h,{literal:p,val:d})=>p?h:h.concat(d),[]),l=t.shiftTo(...o.map(r).filter(h=>h)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Rv(s,n(l,u))}},Nb=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ul(...a){let t=a.reduce((e,i)=>e+i.source,"");return RegExp(`^${t}$`)}function hl(...a){return t=>a.reduce(([e,i,r],n)=>{let[s,o,l]=n(t,r);return[{...e,...s},o||i,l]},[{},null,1]).slice(0,2)}function pl(a,...t){if(a==null)return[null,null];for(let[e,i]of t){let r=e.exec(a);if(r)return i(r)}return[null,null]}function Rb(...a){return(t,e)=>{let i={},r;for(r=0;r<a.length;r++)i[a[r]]=Rn(t[e+r]);return[i,null,e+r]}}var jb=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,T_=`(?:${jb.source}?(?:\\[(${Nb.source})\\])?)?`,Qf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Bb=RegExp(`${Qf.source}${T_}`),Jf=RegExp(`(?:[Tt]${Bb.source})?`),$_=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,O_=/(\d{4})-?W(\d\d)(?:-?(\d))?/,D_=/(\d{4})-?(\d{3})/,F_=Rb("weekYear","weekNumber","weekDay"),I_=Rb("year","ordinal"),A_=/(\d{4})-(\d\d)-(\d\d)/,Wb=RegExp(`${Qf.source} ?(?:${jb.source}|(${Nb.source}))?`),L_=RegExp(`(?: ${Wb.source})?`);function sl(a,t,e){let i=a[t];return Ne(i)?e:Rn(i)}function E_(a,t){return[{year:sl(a,t),month:sl(a,t+1,1),day:sl(a,t+2,1)},null,t+3]}function dl(a,t){return[{hours:sl(a,t,0),minutes:sl(a,t+1,0),seconds:sl(a,t+2,0),milliseconds:Kf(a[t+3])},null,t+4]}function ju(a,t){let e=!a[t]&&!a[t+1],i=kp(a[t+1],a[t+2]),r=e?null:ia.instance(i);return[{},r,t+3]}function Bu(a,t){let e=a[t]?qn.create(a[t]):null;return[{},e,t+1]}var k_=RegExp(`^T?${Qf.source}$`),V_=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function M_(a){let[t,e,i,r,n,s,o,l,u]=a,h=t[0]==="-",p=l&&l[0]==="-",d=(c,f=!1)=>c!==void 0&&(f||c&&h)?-c:c;return[{years:d(Ns(e)),months:d(Ns(i)),weeks:d(Ns(r)),days:d(Ns(n)),hours:d(Ns(s)),minutes:d(Ns(o)),seconds:d(Ns(l),l==="-0"),milliseconds:d(Kf(u),p)}]}var N_={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function em(a,t,e,i,r,n,s){let o={year:t.length===2?Hf(Rn(t)):Rn(t),month:Ib.indexOf(e)+1,day:Rn(i),hour:Rn(r),minute:Rn(n)};return s&&(o.second=Rn(s)),a&&(o.weekday=a.length>3?Lb.indexOf(a)+1:Eb.indexOf(a)+1),o}var R_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function j_(a){let[,t,e,i,r,n,s,o,l,u,h,p]=a,d=em(t,r,i,e,n,s,o),c;return l?c=N_[l]:u?c=0:c=kp(h,p),[d,new ia(c)]}function B_(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var W_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,q_=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,z_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jv(a){let[,t,e,i,r,n,s,o]=a;return[em(t,r,i,e,n,s,o),ia.utcInstance]}function H_(a){let[,t,e,i,r,n,s,o]=a;return[em(t,o,e,i,r,n,s),ia.utcInstance]}var U_=ul($_,Jf),G_=ul(O_,Jf),Y_=ul(D_,Jf),X_=ul(Bb),qb=hl(E_,dl,ju,Bu),K_=hl(F_,dl,ju,Bu),Z_=hl(I_,dl,ju,Bu),Q_=hl(dl,ju,Bu);function J_(a){return pl(a,[U_,qb],[G_,K_],[Y_,Z_],[X_,Q_])}function eT(a){return pl(B_(a),[R_,j_])}function tT(a){return pl(a,[W_,jv],[q_,jv],[z_,H_])}function iT(a){return pl(a,[V_,M_])}var rT=hl(dl);function aT(a){return pl(a,[k_,rT])}var nT=ul(A_,L_),sT=ul(Wb),oT=hl(dl,ju,Bu);function lT(a){return pl(a,[nT,qb],[sT,oT])}var Bv="Invalid Duration",zb={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},uT={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...zb},Jr=146097/400,tl=146097/4800,hT={years:{quarters:4,months:12,weeks:Jr/7,days:Jr,hours:Jr*24,minutes:Jr*24*60,seconds:Jr*24*60*60,milliseconds:Jr*24*60*60*1e3},quarters:{months:3,weeks:Jr/28,days:Jr/4,hours:Jr*24/4,minutes:Jr*24*60/4,seconds:Jr*24*60*60/4,milliseconds:Jr*24*60*60*1e3/4},months:{weeks:tl/7,days:tl,hours:tl*24,minutes:tl*24*60,seconds:tl*24*60*60,milliseconds:tl*24*60*60*1e3},...zb},js=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],pT=js.slice(0).reverse();function rn(a,t,e=!1){let i={values:e?t.values:{...a.values,...t.values||{}},loc:a.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||a.conversionAccuracy,matrix:t.matrix||a.matrix};return new Ei(i)}function Hb(a,t){let e=t.milliseconds??0;for(let i of pT.slice(1))t[i]&&(e+=t[i]*a[i].milliseconds);return e}function Wv(a,t){let e=Hb(a,t)<0?-1:1;js.reduceRight((i,r)=>{if(Ne(t[r]))return i;if(i){let n=t[i]*e,s=a[r][i],o=Math.floor(n/s);t[r]+=o*e,t[i]-=o*s*e}return r},null),js.reduce((i,r)=>{if(Ne(t[r]))return i;if(i){let n=t[i]%1;t[i]-=n,t[r]+=n*a[i][r]}return r},null)}function qv(a){let t={};for(let[e,i]of Object.entries(a))i!==0&&(t[e]=i);return t}var Ei=class a{constructor(t){let e=t.conversionAccuracy==="longterm"||!1,i=e?hT:uT;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||Ut.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,e){return a.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(t==null||typeof t!="object")throw new Li(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new a({values:Ip(t,a.normalizeUnit),loc:Ut.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Wn(t))return a.fromMillis(t);if(a.isDuration(t))return t;if(typeof t=="object")return a.fromObject(t);throw new Li(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){let[i]=iT(t);return i?a.fromObject(i,e):a.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){let[i]=aT(t);return i?a.fromObject(i,e):a.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new Li("need to specify a reason the Duration is invalid");let i=t instanceof Rr?t:new Rr(t,e);if(Qt.throwOnInvalid)throw new If(i);return new a({invalid:i})}static normalizeUnit(t){let e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!e)throw new Tp(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){let i={...e,floor:e.round!==!1&&e.floor!==!1};return this.isValid?Nr.create(this.loc,i).formatDurationFromString(this,t):Bv}toHuman(t={}){if(!this.isValid)return Bv;let e=t.showZeros!==!1,i=js.map(r=>{let n=this.values[r];return Ne(n)||n===0&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Zf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},lt.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Hb(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let e=a.fromDurationLike(t),i={};for(let r of js)(ll(e.values,r)||ll(this.values,r))&&(i[r]=e.get(r)+this.get(r));return rn(this,{values:i},!0)}minus(t){if(!this.isValid)return this;let e=a.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;let e={};for(let i of Object.keys(this.values))e[i]=Fb(t(this.values[i],i));return rn(this,{values:e},!0)}get(t){return this[a.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let e={...this.values,...Ip(t,a.normalizeUnit)};return rn(this,{values:e})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:i};return rn(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Wv(this.matrix,t),rn(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=qv(this.normalize().shiftToAll().toObject());return rn(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>a.normalizeUnit(s));let e={},i={},r=this.toObject(),n;for(let s of js)if(t.indexOf(s)>=0){n=s;let o=0;for(let u in i)o+=this.matrix[u][s]*i[u],i[u]=0;Wn(r[s])&&(o+=r[s]);let l=Math.trunc(o);e[s]=l,i[s]=(o*1e3-l*1e3)/1e3}else Wn(r[s])&&(i[s]=r[s]);for(let s in i)i[s]!==0&&(e[n]+=s===n?i[s]:i[s]/this.matrix[n][s]);return Wv(this.matrix,e),rn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let e of Object.keys(this.values))t[e]=this.values[e]===0?0:-this.values[e];return rn(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=qv(this.values);return rn(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function e(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(let i of js)if(!e(this.values[i],t.values[i]))return!1;return!0}},il="Invalid Interval";function dT(a,t){return!a||!a.isValid?ol.invalid("missing or invalid start"):!t||!t.isValid?ol.invalid("missing or invalid end"):t<a?ol.invalid("end before start",`The end of an interval must be after its start, but you had start=${a.toISO()} and end=${t.toISO()}`):null}var ol=class a{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new Li("need to specify a reason the Interval is invalid");let i=t instanceof Rr?t:new Rr(t,e);if(Qt.throwOnInvalid)throw new Ff(i);return new a({invalid:i})}static fromDateTimes(t,e){let i=Lu(t),r=Lu(e),n=dT(i,r);return n??new a({start:i,end:r})}static after(t,e){let i=Ei.fromDurationLike(e),r=Lu(t);return a.fromDateTimes(r,r.plus(i))}static before(t,e){let i=Ei.fromDurationLike(e),r=Lu(t);return a.fromDateTimes(r.minus(i),r)}static fromISO(t,e){let[i,r]=(t||"").split("/",2);if(i&&r){let n,s;try{n=lt.fromISO(i,e),s=n.isValid}catch{s=!1}let o,l;try{o=lt.fromISO(r,e),l=o.isValid}catch{l=!1}if(s&&l)return a.fromDateTimes(n,o);if(s){let u=Ei.fromISO(r,e);if(u.isValid)return a.after(n,u)}else if(l){let u=Ei.fromISO(i,e);if(u.isValid)return a.before(o,u)}}return a.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;let i=this.start.startOf(t,e),r;return e?.useLocaleWeeks?r=this.end.reconfigure({locale:i.locale}):r=this.end,r=r.startOf(t,e),Math.floor(r.diff(i,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:e}={}){return this.isValid?a.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];let e=t.map(Lu).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),i=[],{s:r}=this,n=0;for(;r<this.e;){let s=e[n]||this.e,o=+s>+this.e?this.e:s;i.push(a.fromDateTimes(r,o)),r=o,n+=1}return i}splitBy(t){let e=Ei.fromDurationLike(t);if(!this.isValid||!e.isValid||e.as("milliseconds")===0)return[];let{s:i}=this,r=1,n,s=[];for(;i<this.e;){let o=this.start.plus(e.mapUnits(l=>l*r));n=+o>+this.e?this.e:o,s.push(a.fromDateTimes(i,n)),i=n,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:a.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;let e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return a.fromDateTimes(e,i)}static merge(t){let[e,i]=t.sort((r,n)=>r.s-n.s).reduce(([r,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[r,n.union(s)]:[r.concat([n]),s]:[r,s],[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0,r=[],n=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,u)=>l.time-u.time);for(let l of o)i+=l.type==="s"?1:-1,i===1?e=l.time:(e&&+e!=+l.time&&r.push(a.fromDateTimes(e,l.time)),e=null);return a.merge(r)}difference(...t){return a.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:il}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=$p,e={}){return this.isValid?Nr.create(this.s.loc.clone(e),t).formatInterval(this):il}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:il}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:il}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:il}toFormat(t,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:il}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Ei.invalid(this.invalidReason)}mapEndpoints(t){return a.fromDateTimes(t(this.s),t(this.e))}},al=class{static hasDST(t=Qt.defaultZone){let e=lt.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return qn.isValidZone(t)}static normalizeZone(t){return jn(t,Qt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||Ut.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||Ut.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||Ut.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||Ut.create(e,i,n)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||Ut.create(e,i,n)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Ut.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||Ut.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ut.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return Ut.create(e,null,"gregory").eras(t)}static features(){return{relative:$b(),localeWeek:Ob()}}};function zv(a,t){let e=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=e(t)-e(a);return Math.floor(Ei.fromMillis(i).as("days"))}function cT(a,t,e){let i=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{let h=zv(l,u);return(h-h%7)/7}],["days",zv]],r={},n=a,s,o;for(let[l,u]of i)e.indexOf(l)>=0&&(s=l,r[l]=u(a,t),o=n.plus(r),o>t?(r[l]--,a=n.plus(r),a>t&&(o=a,r[l]--,a=n.plus(r))):a=o);return[a,r,o,s]}function fT(a,t,e,i){let[r,n,s,o]=cT(a,t,e),l=t-r,u=e.filter(p=>["hours","minutes","seconds","milliseconds"].indexOf(p)>=0);u.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(n[o]=(n[o]||0)+l/(s-r)));let h=Ei.fromObject(n,i);return u.length>0?Ei.fromMillis(l,i).shiftTo(...u).plus(h):h}var mT="missing Intl.DateTimeFormat.formatToParts support";function Ft(a,t=e=>e){return{regex:a,deser:([e])=>t(n_(e))}}var yT="\xA0",Ub=`[ ${yT}]`,Gb=new RegExp(Ub,"g");function gT(a){return a.replace(/\./g,"\\.?").replace(Gb,Ub)}function Hv(a){return a.replace(/\./g,"").replace(Gb," ").toLowerCase()}function ya(a,t){return a===null?null:{regex:RegExp(a.map(gT).join("|")),deser:([e])=>a.findIndex(i=>Hv(e)===Hv(i))+t}}function Uv(a,t){return{regex:a,deser:([,e,i])=>kp(e,i),groups:t}}function xp(a){return{regex:a,deser:([t])=>t}}function vT(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function bT(a,t){let e=ma(t),i=ma(t,"{2}"),r=ma(t,"{3}"),n=ma(t,"{4}"),s=ma(t,"{6}"),o=ma(t,"{1,2}"),l=ma(t,"{1,3}"),u=ma(t,"{1,6}"),h=ma(t,"{1,9}"),p=ma(t,"{2,4}"),d=ma(t,"{4,6}"),c=y=>({regex:RegExp(vT(y.val)),deser:([g])=>g,literal:!0}),m=(y=>{if(a.literal)return c(y);switch(y.val){case"G":return ya(t.eras("short"),0);case"GG":return ya(t.eras("long"),0);case"y":return Ft(u);case"yy":return Ft(p,Hf);case"yyyy":return Ft(n);case"yyyyy":return Ft(d);case"yyyyyy":return Ft(s);case"M":return Ft(o);case"MM":return Ft(i);case"MMM":return ya(t.months("short",!0),1);case"MMMM":return ya(t.months("long",!0),1);case"L":return Ft(o);case"LL":return Ft(i);case"LLL":return ya(t.months("short",!1),1);case"LLLL":return ya(t.months("long",!1),1);case"d":return Ft(o);case"dd":return Ft(i);case"o":return Ft(l);case"ooo":return Ft(r);case"HH":return Ft(i);case"H":return Ft(o);case"hh":return Ft(i);case"h":return Ft(o);case"mm":return Ft(i);case"m":return Ft(o);case"q":return Ft(o);case"qq":return Ft(i);case"s":return Ft(o);case"ss":return Ft(i);case"S":return Ft(l);case"SSS":return Ft(r);case"u":return xp(h);case"uu":return xp(o);case"uuu":return Ft(e);case"a":return ya(t.meridiems(),0);case"kkkk":return Ft(n);case"kk":return Ft(p,Hf);case"W":return Ft(o);case"WW":return Ft(i);case"E":case"c":return Ft(e);case"EEE":return ya(t.weekdays("short",!1),1);case"EEEE":return ya(t.weekdays("long",!1),1);case"ccc":return ya(t.weekdays("short",!0),1);case"cccc":return ya(t.weekdays("long",!0),1);case"Z":case"ZZ":return Uv(new RegExp(`([+-]${o.source})(?::(${i.source}))?`),2);case"ZZZ":return Uv(new RegExp(`([+-]${o.source})(${i.source})?`),2);case"z":return xp(/[a-z_+-/]{1,256}?/i);case" ":return xp(/[^\S\n\r]/);default:return c(y)}})(a)||{invalidReason:mT};return m.token=a,m}var xT={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ST(a,t,e){let{type:i,value:r}=a;if(i==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let n=t[i],s=i;i==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=e.hour12?"hour12":"hour24");let o=xT[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function CT(a){return[`^${a.map(e=>e.regex).reduce((e,i)=>`${e}(${i.source})`,"")}$`,a]}function wT(a,t,e){let i=a.match(t);if(i){let r={},n=1;for(let s in e)if(ll(e,s)){let o=e[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(i.slice(n,n+l))),n+=l}return[i,r]}else return[i,{}]}function PT(a){let t=n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},e=null,i;return Ne(a.z)||(e=qn.create(a.z)),Ne(a.Z)||(e||(e=new ia(a.Z)),i=a.Z),Ne(a.q)||(a.M=(a.q-1)*3+1),Ne(a.h)||(a.h<12&&a.a===1?a.h+=12:a.h===12&&a.a===0&&(a.h=0)),a.G===0&&a.y&&(a.y=-a.y),Ne(a.u)||(a.S=Kf(a.u)),[Object.keys(a).reduce((n,s)=>{let o=t(s);return o&&(n[o]=a[s]),n},{}),e,i]}var Pf=null;function _T(){return Pf||(Pf=lt.fromMillis(1555555555555)),Pf}function TT(a,t){if(a.literal)return a;let e=Nr.macroTokenToFormatOpts(a.val),i=Kb(e,t);return i==null||i.includes(void 0)?a:i}function Yb(a,t){return Array.prototype.concat(...a.map(e=>TT(e,t)))}var Ap=class{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=Yb(Nr.parseFormat(e),t),this.units=this.tokens.map(i=>bT(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){let[i,r]=CT(this.units);this.regex=RegExp(i,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[e,i]=wT(t,this.regex,this.handlers),[r,n,s]=i?PT(i):[null,null,void 0];if(ll(i,"a")&&ll(i,"H"))throw new Bn("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:i,result:r,zone:n,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Xb(a,t,e){return new Ap(a,e).explainFromTokens(t)}function $T(a,t,e){let{result:i,zone:r,specificOffset:n,invalidReason:s}=Xb(a,t,e);return[i,r,n,s]}function Kb(a,t){if(!a)return null;let i=Nr.create(t,a).dtFormatter(_T()),r=i.formatToParts(),n=i.resolvedOptions();return r.map(s=>ST(s,a,n))}var _f="Invalid DateTime",Gv=864e13;function ku(a){return new Rr("unsupported zone",`the zone "${a.name}" is not supported`)}function Tf(a){return a.weekData===null&&(a.weekData=Dp(a.c)),a.weekData}function $f(a){return a.localWeekData===null&&(a.localWeekData=Dp(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Rs(a,t){let e={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new lt({...e,...t,old:e})}function Zb(a,t,e){let i=a-t*60*1e3,r=e.offset(i);if(t===r)return[i,t];i-=(r-t)*60*1e3;let n=e.offset(i);return r===n?[i,r]:[a-Math.min(r,n)*60*1e3,Math.max(r,n)]}function Sp(a,t){a+=t*60*1e3;let e=new Date(a);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function wp(a,t,e){return Zb(Ep(a),t,e)}function Yv(a,t){let e=a.o,i=a.c.year+Math.trunc(t.years),r=a.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,n={...a.c,year:i,month:r,day:Math.min(a.c.day,Fp(i,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Ei.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Ep(n),[l,u]=Zb(o,e,a.zone);return s!==0&&(l+=s,u=a.zone.offset(l)),{ts:l,o:u}}function rl(a,t,e,i,r,n){let{setZone:s,zone:o}=e;if(a&&Object.keys(a).length!==0||t){let l=t||o,u=lt.fromObject(a,{...e,zone:l,specificOffset:n});return s?u:u.setZone(o)}else return lt.invalid(new Rr("unparsable",`the input "${r}" can't be parsed as ${i}`))}function Cp(a,t,e=!0){return a.isValid?Nr.create(Ut.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(a,t):null}function Of(a,t,e){let i=a.c.year>9999||a.c.year<0,r="";if(i&&a.c.year>=0&&(r+="+"),r+=Si(a.c.year,i?6:4),e==="year")return r;if(t){if(r+="-",r+=Si(a.c.month),e==="month")return r;r+="-"}else if(r+=Si(a.c.month),e==="month")return r;return r+=Si(a.c.day),r}function Xv(a,t,e,i,r,n,s){let o=!e||a.c.millisecond!==0||a.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Si(a.c.hour),s==="hour")break;if(t){if(l+=":",l+=Si(a.c.minute),s==="minute")break;o&&(l+=":",l+=Si(a.c.second))}else{if(l+=Si(a.c.minute),s==="minute")break;o&&(l+=Si(a.c.second))}if(s==="second")break;o&&(!i||a.c.millisecond!==0)&&(l+=".",l+=Si(a.c.millisecond,3))}return r&&(a.isOffsetFixed&&a.offset===0&&!n?l+="Z":a.o<0?(l+="-",l+=Si(Math.trunc(-a.o/60)),l+=":",l+=Si(Math.trunc(-a.o%60))):(l+="+",l+=Si(Math.trunc(a.o/60)),l+=":",l+=Si(Math.trunc(a.o%60)))),n&&(l+="["+a.zone.ianaName+"]"),l}var Qb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},OT={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},DT={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pp=["year","month","day","hour","minute","second","millisecond"],FT=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],IT=["year","ordinal","hour","minute","second","millisecond"];function _p(a){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!t)throw new Tp(a);return t}function Kv(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _p(a)}}function AT(a){if(Vu===void 0&&(Vu=Qt.now()),a.type!=="iana")return a.offset(Vu);let t=a.name,e=Uf.get(t);return e===void 0&&(e=a.offset(Vu),Uf.set(t,e)),e}function Zv(a,t){let e=jn(t.zone,Qt.defaultZone);if(!e.isValid)return lt.invalid(ku(e));let i=Ut.fromObject(t),r,n;if(Ne(a.year))r=Qt.now();else{for(let l of Pp)Ne(a[l])&&(a[l]=Qb[l]);let s=_b(a)||Tb(a);if(s)return lt.invalid(s);let o=AT(e);[r,n]=wp(a,o,e)}return new lt({ts:r,zone:e,loc:i,o:n})}function Qv(a,t,e){let i=Ne(e.round)?!0:e.round,r=Ne(e.rounding)?"trunc":e.rounding,n=(o,l)=>(o=Zf(o,i||e.calendary?0:2,e.calendary?"round":r),t.loc.clone(e).relFormatter(e).format(o,l)),s=o=>e.calendary?t.hasSame(a,o)?0:t.startOf(o).diff(a.startOf(o),o).get(o):t.diff(a,o).get(o);if(e.unit)return n(s(e.unit),e.unit);for(let o of e.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(a>t?-0:0,e.units[e.units.length-1])}function Jv(a){let t={},e;return a.length>0&&typeof a[a.length-1]=="object"?(t=a[a.length-1],e=Array.from(a).slice(0,a.length-1)):e=Array.from(a),[t,e]}var Vu,Uf=new Map,lt=class a{constructor(t){let e=t.zone||Qt.defaultZone,i=t.invalid||(Number.isNaN(t.ts)?new Rr("invalid input"):null)||(e.isValid?null:ku(e));this.ts=Ne(t.ts)?Qt.now():t.ts;let r=null,n=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,n]=[t.old.c,t.old.o];else{let o=Wn(t.o)&&!t.old?t.o:e.offset(this.ts);r=Sp(this.ts,o),i=Number.isNaN(r.year)?new Rr("invalid input"):null,r=i?null:r,n=i?null:o}this._zone=e,this.loc=t.loc||Ut.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=n,this.isLuxonDateTime=!0}static now(){return new a({})}static local(){let[t,e]=Jv(arguments),[i,r,n,s,o,l,u]=e;return Zv({year:i,month:r,day:n,hour:s,minute:o,second:l,millisecond:u},t)}static utc(){let[t,e]=Jv(arguments),[i,r,n,s,o,l,u]=e;return t.zone=ia.utcInstance,Zv({year:i,month:r,day:n,hour:s,minute:o,second:l,millisecond:u},t)}static fromJSDate(t,e={}){let i=h_(t)?t.valueOf():NaN;if(Number.isNaN(i))return a.invalid("invalid input");let r=jn(e.zone,Qt.defaultZone);return r.isValid?new a({ts:i,zone:r,loc:Ut.fromObject(e)}):a.invalid(ku(r))}static fromMillis(t,e={}){if(Wn(t))return t<-Gv||t>Gv?a.invalid("Timestamp out of range"):new a({ts:t,zone:jn(e.zone,Qt.defaultZone),loc:Ut.fromObject(e)});throw new Li(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Wn(t))return new a({ts:t*1e3,zone:jn(e.zone,Qt.defaultZone),loc:Ut.fromObject(e)});throw new Li("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};let i=jn(e.zone,Qt.defaultZone);if(!i.isValid)return a.invalid(ku(i));let r=Ut.fromObject(e),n=Ip(t,Kv),{minDaysInFirstWeek:s,startOfWeek:o}=Vv(n,r),l=Qt.now(),u=Ne(e.specificOffset)?i.offset(l):e.specificOffset,h=!Ne(n.ordinal),p=!Ne(n.year),d=!Ne(n.month)||!Ne(n.day),c=p||d,f=n.weekYear||n.weekNumber;if((c||h)&&f)throw new Bn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&h)throw new Bn("Can't mix ordinal dates with month/day");let m=f||n.weekday&&!c,y,g,v=Sp(l,u);m?(y=FT,g=OT,v=Dp(v,s,o)):h?(y=IT,g=DT,v=wf(v)):(y=Pp,g=Qb);let b=!1;for(let N of y){let L=n[N];Ne(L)?b?n[N]=g[N]:n[N]=v[N]:b=!0}let P=m?o_(n,s,o):h?l_(n):_b(n),w=P||Tb(n);if(w)return a.invalid(w);let T=m?Ev(n,s,o):h?kv(n):n,[F,D]=wp(T,u,i),O=new a({ts:F,zone:i,o:D,loc:r});return n.weekday&&c&&t.weekday!==O.weekday?a.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${O.toISO()}`):O.isValid?O:a.invalid(O.invalid)}static fromISO(t,e={}){let[i,r]=J_(t);return rl(i,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){let[i,r]=eT(t);return rl(i,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){let[i,r]=tT(t);return rl(i,r,e,"HTTP",e)}static fromFormat(t,e,i={}){if(Ne(t)||Ne(e))throw new Li("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:n=null}=i,s=Ut.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),[o,l,u,h]=$T(s,t,e);return h?a.invalid(h):rl(o,l,i,`format ${e}`,t,u)}static fromString(t,e,i={}){return a.fromFormat(t,e,i)}static fromSQL(t,e={}){let[i,r]=lT(t);return rl(i,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new Li("need to specify a reason the DateTime is invalid");let i=t instanceof Rr?t:new Rr(t,e);if(Qt.throwOnInvalid)throw new Df(i);return new a({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){let i=Kb(t,Ut.fromObject(e));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(t,e={}){return Yb(Nr.parseFormat(t),Ut.fromObject(e)).map(r=>r.val).join("")}static resetCache(){Vu=void 0,Uf.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Tf(this).weekYear:NaN}get weekNumber(){return this.isValid?Tf(this).weekNumber:NaN}get weekday(){return this.isValid?Tf(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$f(this).weekday:NaN}get localWeekNumber(){return this.isValid?$f(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$f(this).weekYear:NaN}get ordinal(){return this.isValid?wf(this.c).ordinal:NaN}get monthShort(){return this.isValid?al.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?al.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?al.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?al.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,e=6e4,i=Ep(this.c),r=this.zone.offset(i-t),n=this.zone.offset(i+t),s=this.zone.offset(i-r*e),o=this.zone.offset(i-n*e);if(s===o)return[this];let l=i-s*e,u=i-o*e,h=Sp(l,s),p=Sp(u,o);return h.hour===p.hour&&h.minute===p.minute&&h.second===p.second&&h.millisecond===p.millisecond?[Rs(this,{ts:l}),Rs(this,{ts:u})]:[this]}get isInLeapYear(){return Ru(this.year)}get daysInMonth(){return Fp(this.year,this.month)}get daysInYear(){return this.isValid?nl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Nu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Nu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:e,numberingSystem:i,calendar:r}=Nr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(ia.instance(t),e)}toLocal(){return this.setZone(Qt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if(t=jn(t,Qt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||i){let n=t.offset(this.ts),s=this.toObject();[r]=wp(s,n,t)}return Rs(this,{ts:r,zone:t})}else return a.invalid(ku(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){let r=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i});return Rs(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let e=Ip(t,Kv),{minDaysInFirstWeek:i,startOfWeek:r}=Vv(e,this.loc),n=!Ne(e.weekYear)||!Ne(e.weekNumber)||!Ne(e.weekday),s=!Ne(e.ordinal),o=!Ne(e.year),l=!Ne(e.month)||!Ne(e.day),u=o||l,h=e.weekYear||e.weekNumber;if((u||s)&&h)throw new Bn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Bn("Can't mix ordinal dates with month/day");let p;n?p=Ev({...Dp(this.c,i,r),...e},i,r):Ne(e.ordinal)?(p={...this.toObject(),...e},Ne(e.day)&&(p.day=Math.min(Fp(p.year,p.month),p.day))):p=kv({...wf(this.c),...e});let[d,c]=wp(p,this.o,this.zone);return Rs(this,{ts:d,o:c})}plus(t){if(!this.isValid)return this;let e=Ei.fromDurationLike(t);return Rs(this,Yv(this,e))}minus(t){if(!this.isValid)return this;let e=Ei.fromDurationLike(t).negate();return Rs(this,Yv(this,e))}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;let i={},r=Ei.normalizeUnit(t);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(r==="weeks")if(e){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(i.weekNumber=this.weekNumber-1),i.weekday=n}else i.weekday=1;if(r==="quarters"){let n=Math.ceil(this.month/3);i.month=(n-1)*3+1}return this.set(i)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?Nr.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):_f}toLocaleString(t=$p,e={}){return this.isValid?Nr.create(this.loc.clone(e),t).formatDateTime(this):_f}toLocaleParts(t={}){return this.isValid?Nr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_p(s);let o=t==="extended",l=Of(this,o,s);return Pp.indexOf(s)>=3&&(l+="T"),l+=Xv(this,o,e,i,r,n,s),l}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?Of(this,t==="extended",_p(e)):null}toISOWeekDate(){return Cp(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_p(o),(r&&Pp.indexOf(o)>=3?"T":"")+Xv(this,s==="extended",e,t,i,n,o)):null}toRFC2822(){return Cp(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Cp(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Of(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(i&&(r+=" "),e?r+="z":t&&(r+="ZZ")),Cp(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():_f}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return Ei.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...i},n=p_(e).map(Ei.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,u=fT(o,l,n,r);return s?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(a.now(),t,e)}until(t){return this.isValid?ol.fromDateTimes(this,t):this}hasSame(t,e,i){if(!this.isValid)return!1;let r=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e,i)<=r&&r<=n.endOf(e,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let e=t.base||a.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],n=t.unit;return Array.isArray(t.unit)&&(r=t.unit,n=void 0),Qv(e,this.plus(i),{...t,numeric:"always",units:r,unit:n})}toRelativeCalendar(t={}){return this.isValid?Qv(t.base||a.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(a.isDateTime))throw new Li("min requires all arguments be DateTimes");return Mv(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(a.isDateTime))throw new Li("max requires all arguments be DateTimes");return Mv(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(t,e,i={}){let{locale:r=null,numberingSystem:n=null}=i,s=Ut.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return Xb(s,t,e)}static fromStringExplain(t,e,i={}){return a.fromFormatExplain(t,e,i)}static buildFormatParser(t,e={}){let{locale:i=null,numberingSystem:r=null}=e,n=Ut.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new Ap(n,t)}static fromFormatParser(t,e,i={}){if(Ne(t)||Ne(e))throw new Li("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:n=null}=i,s=Ut.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});if(!s.equals(e.locale))throw new Li(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${e.locale}`);let{result:o,zone:l,specificOffset:u,invalidReason:h}=e.explainFromTokens(t);return h?a.invalid(h):rl(o,l,i,`format ${e.format}`,t,u)}static get DATE_SHORT(){return $p}static get DATE_MED(){return eb}static get DATE_MED_WITH_WEEKDAY(){return WP}static get DATE_FULL(){return tb}static get DATE_HUGE(){return ib}static get TIME_SIMPLE(){return rb}static get TIME_WITH_SECONDS(){return ab}static get TIME_WITH_SHORT_OFFSET(){return nb}static get TIME_WITH_LONG_OFFSET(){return sb}static get TIME_24_SIMPLE(){return ob}static get TIME_24_WITH_SECONDS(){return lb}static get TIME_24_WITH_SHORT_OFFSET(){return ub}static get TIME_24_WITH_LONG_OFFSET(){return hb}static get DATETIME_SHORT(){return pb}static get DATETIME_SHORT_WITH_SECONDS(){return db}static get DATETIME_MED(){return cb}static get DATETIME_MED_WITH_SECONDS(){return fb}static get DATETIME_MED_WITH_WEEKDAY(){return qP}static get DATETIME_FULL(){return mb}static get DATETIME_FULL_WITH_SECONDS(){return yb}static get DATETIME_HUGE(){return gb}static get DATETIME_HUGE_WITH_SECONDS(){return vb}};function Lu(a){if(lt.isDateTime(a))return a;if(a&&a.valueOf&&Wn(a.valueOf()))return lt.fromJSDate(a);if(a&&typeof a=="object")return lt.fromObject(a);throw new Li(`Unknown datetime argument: ${a}, of type ${typeof a}`)}var Bp=function(){return Bp=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Bp.apply(this,arguments)},tm={exports:{}},ai={},im={exports:{}},Ws={};function rx(){var a={};return a["align-content"]=!1,a["align-items"]=!1,a["align-self"]=!1,a["alignment-adjust"]=!1,a["alignment-baseline"]=!1,a.all=!1,a["anchor-point"]=!1,a.animation=!1,a["animation-delay"]=!1,a["animation-direction"]=!1,a["animation-duration"]=!1,a["animation-fill-mode"]=!1,a["animation-iteration-count"]=!1,a["animation-name"]=!1,a["animation-play-state"]=!1,a["animation-timing-function"]=!1,a.azimuth=!1,a["backface-visibility"]=!1,a.background=!0,a["background-attachment"]=!0,a["background-clip"]=!0,a["background-color"]=!0,a["background-image"]=!0,a["background-origin"]=!0,a["background-position"]=!0,a["background-repeat"]=!0,a["background-size"]=!0,a["baseline-shift"]=!1,a.binding=!1,a.bleed=!1,a["bookmark-label"]=!1,a["bookmark-level"]=!1,a["bookmark-state"]=!1,a.border=!0,a["border-bottom"]=!0,a["border-bottom-color"]=!0,a["border-bottom-left-radius"]=!0,a["border-bottom-right-radius"]=!0,a["border-bottom-style"]=!0,a["border-bottom-width"]=!0,a["border-collapse"]=!0,a["border-color"]=!0,a["border-image"]=!0,a["border-image-outset"]=!0,a["border-image-repeat"]=!0,a["border-image-slice"]=!0,a["border-image-source"]=!0,a["border-image-width"]=!0,a["border-left"]=!0,a["border-left-color"]=!0,a["border-left-style"]=!0,a["border-left-width"]=!0,a["border-radius"]=!0,a["border-right"]=!0,a["border-right-color"]=!0,a["border-right-style"]=!0,a["border-right-width"]=!0,a["border-spacing"]=!0,a["border-style"]=!0,a["border-top"]=!0,a["border-top-color"]=!0,a["border-top-left-radius"]=!0,a["border-top-right-radius"]=!0,a["border-top-style"]=!0,a["border-top-width"]=!0,a["border-width"]=!0,a.bottom=!1,a["box-decoration-break"]=!0,a["box-shadow"]=!0,a["box-sizing"]=!0,a["box-snap"]=!0,a["box-suppress"]=!0,a["break-after"]=!0,a["break-before"]=!0,a["break-inside"]=!0,a["caption-side"]=!1,a.chains=!1,a.clear=!0,a.clip=!1,a["clip-path"]=!1,a["clip-rule"]=!1,a.color=!0,a["color-interpolation-filters"]=!0,a["column-count"]=!1,a["column-fill"]=!1,a["column-gap"]=!1,a["column-rule"]=!1,a["column-rule-color"]=!1,a["column-rule-style"]=!1,a["column-rule-width"]=!1,a["column-span"]=!1,a["column-width"]=!1,a.columns=!1,a.contain=!1,a.content=!1,a["counter-increment"]=!1,a["counter-reset"]=!1,a["counter-set"]=!1,a.crop=!1,a.cue=!1,a["cue-after"]=!1,a["cue-before"]=!1,a.cursor=!1,a.direction=!1,a.display=!0,a["display-inside"]=!0,a["display-list"]=!0,a["display-outside"]=!0,a["dominant-baseline"]=!1,a.elevation=!1,a["empty-cells"]=!1,a.filter=!1,a.flex=!1,a["flex-basis"]=!1,a["flex-direction"]=!1,a["flex-flow"]=!1,a["flex-grow"]=!1,a["flex-shrink"]=!1,a["flex-wrap"]=!1,a.float=!1,a["float-offset"]=!1,a["flood-color"]=!1,a["flood-opacity"]=!1,a["flow-from"]=!1,a["flow-into"]=!1,a.font=!0,a["font-family"]=!0,a["font-feature-settings"]=!0,a["font-kerning"]=!0,a["font-language-override"]=!0,a["font-size"]=!0,a["font-size-adjust"]=!0,a["font-stretch"]=!0,a["font-style"]=!0,a["font-synthesis"]=!0,a["font-variant"]=!0,a["font-variant-alternates"]=!0,a["font-variant-caps"]=!0,a["font-variant-east-asian"]=!0,a["font-variant-ligatures"]=!0,a["font-variant-numeric"]=!0,a["font-variant-position"]=!0,a["font-weight"]=!0,a.grid=!1,a["grid-area"]=!1,a["grid-auto-columns"]=!1,a["grid-auto-flow"]=!1,a["grid-auto-rows"]=!1,a["grid-column"]=!1,a["grid-column-end"]=!1,a["grid-column-start"]=!1,a["grid-row"]=!1,a["grid-row-end"]=!1,a["grid-row-start"]=!1,a["grid-template"]=!1,a["grid-template-areas"]=!1,a["grid-template-columns"]=!1,a["grid-template-rows"]=!1,a["hanging-punctuation"]=!1,a.height=!0,a.hyphens=!1,a.icon=!1,a["image-orientation"]=!1,a["image-resolution"]=!1,a["ime-mode"]=!1,a["initial-letters"]=!1,a["inline-box-align"]=!1,a["justify-content"]=!1,a["justify-items"]=!1,a["justify-self"]=!1,a.left=!1,a["letter-spacing"]=!0,a["lighting-color"]=!0,a["line-box-contain"]=!1,a["line-break"]=!1,a["line-grid"]=!1,a["line-height"]=!1,a["line-snap"]=!1,a["line-stacking"]=!1,a["line-stacking-ruby"]=!1,a["line-stacking-shift"]=!1,a["line-stacking-strategy"]=!1,a["list-style"]=!0,a["list-style-image"]=!0,a["list-style-position"]=!0,a["list-style-type"]=!0,a.margin=!0,a["margin-bottom"]=!0,a["margin-left"]=!0,a["margin-right"]=!0,a["margin-top"]=!0,a["marker-offset"]=!1,a["marker-side"]=!1,a.marks=!1,a.mask=!1,a["mask-box"]=!1,a["mask-box-outset"]=!1,a["mask-box-repeat"]=!1,a["mask-box-slice"]=!1,a["mask-box-source"]=!1,a["mask-box-width"]=!1,a["mask-clip"]=!1,a["mask-image"]=!1,a["mask-origin"]=!1,a["mask-position"]=!1,a["mask-repeat"]=!1,a["mask-size"]=!1,a["mask-source-type"]=!1,a["mask-type"]=!1,a["max-height"]=!0,a["max-lines"]=!1,a["max-width"]=!0,a["min-height"]=!0,a["min-width"]=!0,a["move-to"]=!1,a["nav-down"]=!1,a["nav-index"]=!1,a["nav-left"]=!1,a["nav-right"]=!1,a["nav-up"]=!1,a["object-fit"]=!1,a["object-position"]=!1,a.opacity=!1,a.order=!1,a.orphans=!1,a.outline=!1,a["outline-color"]=!1,a["outline-offset"]=!1,a["outline-style"]=!1,a["outline-width"]=!1,a.overflow=!1,a["overflow-wrap"]=!1,a["overflow-x"]=!1,a["overflow-y"]=!1,a.padding=!0,a["padding-bottom"]=!0,a["padding-left"]=!0,a["padding-right"]=!0,a["padding-top"]=!0,a.page=!1,a["page-break-after"]=!1,a["page-break-before"]=!1,a["page-break-inside"]=!1,a["page-policy"]=!1,a.pause=!1,a["pause-after"]=!1,a["pause-before"]=!1,a.perspective=!1,a["perspective-origin"]=!1,a.pitch=!1,a["pitch-range"]=!1,a["play-during"]=!1,a.position=!1,a["presentation-level"]=!1,a.quotes=!1,a["region-fragment"]=!1,a.resize=!1,a.rest=!1,a["rest-after"]=!1,a["rest-before"]=!1,a.richness=!1,a.right=!1,a.rotation=!1,a["rotation-point"]=!1,a["ruby-align"]=!1,a["ruby-merge"]=!1,a["ruby-position"]=!1,a["shape-image-threshold"]=!1,a["shape-outside"]=!1,a["shape-margin"]=!1,a.size=!1,a.speak=!1,a["speak-as"]=!1,a["speak-header"]=!1,a["speak-numeral"]=!1,a["speak-punctuation"]=!1,a["speech-rate"]=!1,a.stress=!1,a["string-set"]=!1,a["tab-size"]=!1,a["table-layout"]=!1,a["text-align"]=!0,a["text-align-last"]=!0,a["text-combine-upright"]=!0,a["text-decoration"]=!0,a["text-decoration-color"]=!0,a["text-decoration-line"]=!0,a["text-decoration-skip"]=!0,a["text-decoration-style"]=!0,a["text-emphasis"]=!0,a["text-emphasis-color"]=!0,a["text-emphasis-position"]=!0,a["text-emphasis-style"]=!0,a["text-height"]=!0,a["text-indent"]=!0,a["text-justify"]=!0,a["text-orientation"]=!0,a["text-overflow"]=!0,a["text-shadow"]=!0,a["text-space-collapse"]=!0,a["text-transform"]=!0,a["text-underline-position"]=!0,a["text-wrap"]=!0,a.top=!1,a.transform=!1,a["transform-origin"]=!1,a["transform-style"]=!1,a.transition=!1,a["transition-delay"]=!1,a["transition-duration"]=!1,a["transition-property"]=!1,a["transition-timing-function"]=!1,a["unicode-bidi"]=!1,a["vertical-align"]=!1,a.visibility=!1,a["voice-balance"]=!1,a["voice-duration"]=!1,a["voice-family"]=!1,a["voice-pitch"]=!1,a["voice-range"]=!1,a["voice-rate"]=!1,a["voice-stress"]=!1,a["voice-volume"]=!1,a.volume=!1,a["white-space"]=!1,a.widows=!1,a.width=!0,a["will-change"]=!1,a["word-break"]=!0,a["word-spacing"]=!0,a["word-wrap"]=!0,a["wrap-flow"]=!1,a["wrap-through"]=!1,a["writing-mode"]=!1,a["z-index"]=!1,a}function LT(a,t,e){}function ET(a,t,e){}var kT=/javascript\s*\:/img;function VT(a,t){return kT.test(t)?"":t}Ws.whiteList=rx();Ws.getDefaultWhiteList=rx;Ws.onAttr=LT;Ws.onIgnoreAttr=ET;Ws.safeAttrValue=VT;var MT={indexOf:function(a,t){var e,i;if(Array.prototype.indexOf)return a.indexOf(t);for(e=0,i=a.length;e<i;e++)if(a[e]===t)return e;return-1},forEach:function(a,t,e){var i,r;if(Array.prototype.forEach)return a.forEach(t,e);for(i=0,r=a.length;i<r;i++)t.call(e,a[i],i,a)},trim:function(a){return String.prototype.trim?a.trim():a.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(a){return String.prototype.trimRight?a.trimRight():a.replace(/(\s*$)/g,"")}},Wu=MT;function NT(a,t){a=Wu.trimRight(a),a[a.length-1]!==";"&&(a+=";");var e=a.length,i=!1,r=0,n=0,s="";function o(){if(!i){var h=Wu.trim(a.slice(r,n)),p=h.indexOf(":");if(p!==-1){var d=Wu.trim(h.slice(0,p)),c=Wu.trim(h.slice(p+1));if(d){var f=t(r,s.length,d,c,h);f&&(s+=f+"; ")}}}r=n+1}for(;n<e;n++){var l=a[n];if(l==="/"&&a[n+1]==="*"){var u=a.indexOf("*/",n+2);if(u===-1)break;n=u+1,r=n+1,i=!1}else l==="("?i=!0:l===")"?i=!1:l===";"?i||o():l===`
|
|
24
|
-
`&&o()}return Wu.trim(s)}var RT=NT,Mp=Ws,jT=RT;function Jb(a){return a==null}function BT(a){var t={};for(var e in a)t[e]=a[e];return t}function ax(a){a=BT(a||{}),a.whiteList=a.whiteList||Mp.whiteList,a.onAttr=a.onAttr||Mp.onAttr,a.onIgnoreAttr=a.onIgnoreAttr||Mp.onIgnoreAttr,a.safeAttrValue=a.safeAttrValue||Mp.safeAttrValue,this.options=a}ax.prototype.process=function(a){if(a=a||"",a=a.toString(),!a)return"";var t=this,e=t.options,i=e.whiteList,r=e.onAttr,n=e.onIgnoreAttr,s=e.safeAttrValue,o=jT(a,function(l,u,h,p,d){var c=i[h],f=!1;if(c===!0?f=c:typeof c=="function"?f=c(p):c instanceof RegExp&&(f=c.test(p)),f!==!0&&(f=!1),p=s(h,p),!!p){var m={position:u,sourcePosition:l,source:d,isWhite:f};if(f){var y=r(h,p,m);return Jb(y)?h+":"+p:y}else{var y=n(h,p,m);if(!Jb(y))return y}}});return o};var WT=ax;(function(a,t){var e=Ws,i=WT;function r(s,o){var l=new i(o);return l.process(s)}t=a.exports=r,t.FilterCSS=i;for(var n in e)t[n]=e[n]})(im,im.exports);var rm=im.exports,am={indexOf:function(a,t){var e,i;if(Array.prototype.indexOf)return a.indexOf(t);for(e=0,i=a.length;e<i;e++)if(a[e]===t)return e;return-1},forEach:function(a,t,e){var i,r;if(Array.prototype.forEach)return a.forEach(t,e);for(i=0,r=a.length;i<r;i++)t.call(e,a[i],i,a)},trim:function(a){return String.prototype.trim?a.trim():a.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(a){var t=/\s|\n|\t/,e=t.exec(a);return e?e.index:-1}},qT=rm.FilterCSS,zT=rm.getDefaultWhiteList,Wp=am;function nx(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var sx=new qT;function HT(a,t,e){}function UT(a,t,e){}function GT(a,t,e){}function YT(a,t,e){}function ox(a){return a.replace(KT,"<").replace(ZT,">")}function XT(a,t,e,i){if(e=cx(e),t==="href"||t==="src"){if(e=Wp.trim(e),e==="#")return"#";if(!(e.substr(0,7)==="http://"||e.substr(0,8)==="https://"||e.substr(0,7)==="mailto:"||e.substr(0,4)==="tel:"||e.substr(0,11)==="data:image/"||e.substr(0,6)==="ftp://"||e.substr(0,2)==="./"||e.substr(0,3)==="../"||e[0]==="#"||e[0]==="/"))return""}else if(t==="background"){if(Np.lastIndex=0,Np.test(e))return""}else if(t==="style"){if(ex.lastIndex=0,ex.test(e)||(tx.lastIndex=0,tx.test(e)&&(Np.lastIndex=0,Np.test(e))))return"";i!==!1&&(i=i||sx,e=i.process(e))}return e=fx(e),e}var KT=/</g,ZT=/>/g,QT=/"/g,JT=/"/g,e$=/&#([a-zA-Z0-9]*);?/gim,t$=/:?/gim,i$=/&newline;?/gim,Np=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ex=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,tx=/u\s*r\s*l\s*\(.*/gi;function lx(a){return a.replace(QT,""")}function ux(a){return a.replace(JT,'"')}function hx(a){return a.replace(e$,function(e,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function px(a){return a.replace(t$,":").replace(i$," ")}function dx(a){for(var t="",e=0,i=a.length;e<i;e++)t+=a.charCodeAt(e)<32?" ":a.charAt(e);return Wp.trim(t)}function cx(a){return a=ux(a),a=hx(a),a=px(a),a=dx(a),a}function fx(a){return a=lx(a),a=ox(a),a}function r$(){return""}function a$(a,t){typeof t!="function"&&(t=function(){});var e=!Array.isArray(a);function i(s){return e?!0:Wp.indexOf(a,s)!==-1}var r=[],n=!1;return{onIgnoreTag:function(s,o,l){if(i(s))if(l.isClosing){var u="[/removed]",h=l.position+u.length;return r.push([n!==!1?n:l.position,h]),n=!1,u}else return n||(n=l.position),"[removed]";else return t(s,o,l)},remove:function(s){var o="",l=0;return Wp.forEach(r,function(u){o+=s.slice(l,u[0]),l=u[1]}),o+=s.slice(l),o}}}function n$(a){for(var t="",e=0;e<a.length;){var i=a.indexOf("<!--",e);if(i===-1){t+=a.slice(e);break}t+=a.slice(e,i);var r=a.indexOf("-->",i);if(r===-1)break;e=r+3}return t}function s$(a){var t=a.split("");return t=t.filter(function(e){var i=e.charCodeAt(0);return i===127?!1:i<=31?i===10||i===13:!0}),t.join("")}ai.whiteList=nx();ai.getDefaultWhiteList=nx;ai.onTag=HT;ai.onIgnoreTag=UT;ai.onTagAttr=GT;ai.onIgnoreTagAttr=YT;ai.safeAttrValue=XT;ai.escapeHtml=ox;ai.escapeQuote=lx;ai.unescapeQuote=ux;ai.escapeHtmlEntities=hx;ai.escapeDangerHtml5Entities=px;ai.clearNonPrintableCharacter=dx;ai.friendlyAttrValue=cx;ai.escapeAttrValue=fx;ai.onIgnoreTagStripAll=r$;ai.StripTagBody=a$;ai.stripCommentTag=n$;ai.stripBlankChar=s$;ai.cssFilter=sx;ai.getDefaultCSSWhiteList=zT;var qp={},zn=am;function o$(a){var t=zn.spaceIndex(a),e;return t===-1?e=a.slice(1,-1):e=a.slice(1,t+1),e=zn.trim(e).toLowerCase(),e.slice(0,1)==="/"&&(e=e.slice(1)),e.slice(-1)==="/"&&(e=e.slice(0,-1)),e}function l$(a){return a.slice(0,2)==="</"}function u$(a,t,e){var i="",r=0,n=!1,s=!1,o=0,l=a.length,u="",h="";e:for(o=0;o<l;o++){var p=a.charAt(o);if(n===!1){if(p==="<"){n=o;continue}}else if(s===!1){if(p==="<"){i+=e(a.slice(r,o)),n=o,r=o;continue}if(p===">"){i+=e(a.slice(r,n)),h=a.slice(n,o+1),u=o$(h),i+=t(n,i.length,u,h,l$(h)),r=o+1,n=!1;continue}if(p==='"'||p==="'")for(var d=1,c=a.charAt(o-d);c.trim()===""||c==="=";){if(c==="="){s=p;continue e}c=a.charAt(o-++d)}}else if(p===s){s=!1;continue}}return r<a.length&&(i+=e(a.substr(r))),i}var h$=/[^a-zA-Z0-9\\_:.-]/gim;function p$(a,t){var e=0,i=0,r=[],n=!1,s=a.length;function o(d,c){if(d=zn.trim(d),d=d.replace(h$,"").toLowerCase(),!(d.length<1)){var f=t(d,c||"");f&&r.push(f)}}for(var l=0;l<s;l++){var u=a.charAt(l),h,p;if(n===!1&&u==="="){n=a.slice(e,l),e=l+1,i=a.charAt(e)==='"'||a.charAt(e)==="'"?e:c$(a,l+1);continue}if(n!==!1&&l===i){if(p=a.indexOf(u,l+1),p===-1)break;h=zn.trim(a.slice(i+1,p)),o(n,h),n=!1,l=p,e=l+1;continue}if(/\s|\n|\t/.test(u))if(a=a.replace(/\s|\n|\t/g," "),n===!1)if(p=d$(a,l),p===-1){h=zn.trim(a.slice(e,l)),o(h),n=!1,e=l+1;continue}else{l=p-1;continue}else if(p=f$(a,l-1),p===-1){h=zn.trim(a.slice(e,l)),h=ix(h),o(n,h),n=!1,e=l+1;continue}else continue}return e<a.length&&(n===!1?o(a.slice(e)):o(n,ix(zn.trim(a.slice(e))))),zn.trim(r.join(" "))}function d$(a,t){for(;t<a.length;t++){var e=a[t];if(e!==" ")return e==="="?t:-1}}function c$(a,t){for(;t<a.length;t++){var e=a[t];if(e!==" ")return e==="'"||e==='"'?t:-1}}function f$(a,t){for(;t>0;t--){var e=a[t];if(e!==" ")return e==="="?t:-1}}function m$(a){return a[0]==='"'&&a[a.length-1]==='"'||a[0]==="'"&&a[a.length-1]==="'"}function ix(a){return m$(a)?a.substr(1,a.length-2):a}qp.parseTag=u$;qp.parseAttr=p$;var y$=rm.FilterCSS,va=ai,mx=qp,g$=mx.parseTag,v$=mx.parseAttr,jp=am;function Rp(a){return a==null}function b$(a){var t=jp.spaceIndex(a);if(t===-1)return{html:"",closing:a[a.length-2]==="/"};a=jp.trim(a.slice(t+1,-1));var e=a[a.length-1]==="/";return e&&(a=jp.trim(a.slice(0,-1))),{html:a,closing:e}}function x$(a){var t={};for(var e in a)t[e]=a[e];return t}function S$(a){var t={};for(var e in a)Array.isArray(a[e])?t[e.toLowerCase()]=a[e].map(function(i){return i.toLowerCase()}):t[e.toLowerCase()]=a[e];return t}function yx(a){a=x$(a||{}),a.stripIgnoreTag&&(a.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),a.onIgnoreTag=va.onIgnoreTagStripAll),a.whiteList||a.allowList?a.whiteList=S$(a.whiteList||a.allowList):a.whiteList=va.whiteList,a.onTag=a.onTag||va.onTag,a.onTagAttr=a.onTagAttr||va.onTagAttr,a.onIgnoreTag=a.onIgnoreTag||va.onIgnoreTag,a.onIgnoreTagAttr=a.onIgnoreTagAttr||va.onIgnoreTagAttr,a.safeAttrValue=a.safeAttrValue||va.safeAttrValue,a.escapeHtml=a.escapeHtml||va.escapeHtml,this.options=a,a.css===!1?this.cssFilter=!1:(a.css=a.css||{},this.cssFilter=new y$(a.css))}yx.prototype.process=function(a){if(a=a||"",a=a.toString(),!a)return"";var t=this,e=t.options,i=e.whiteList,r=e.onTag,n=e.onIgnoreTag,s=e.onTagAttr,o=e.onIgnoreTagAttr,l=e.safeAttrValue,u=e.escapeHtml,h=t.cssFilter;e.stripBlankChar&&(a=va.stripBlankChar(a)),e.allowCommentTag||(a=va.stripCommentTag(a));var p=!1;e.stripIgnoreTagBody&&(p=va.StripTagBody(e.stripIgnoreTagBody,n),n=p.onIgnoreTag);var d=g$(a,function(c,f,m,y,g){var v={sourcePosition:c,position:f,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(i,m)},b=r(m,y,v);if(!Rp(b))return b;if(v.isWhite){if(v.isClosing)return"</"+m+">";var P=b$(y),w=i[m],T=v$(P.html,function(F,D){var O=jp.indexOf(w,F)!==-1,N=s(m,F,D,O);return Rp(N)?O?(D=l(m,F,D,h),D?F+'="'+D+'"':F):(N=o(m,F,D,O),Rp(N)?void 0:N):N});return y="<"+m,T&&(y+=" "+T),P.closing&&(y+=" /"),y+=">",y}else return b=n(m,y,v),Rp(b)?u(y):b},u);return p&&(d=p.remove(d)),d};var C$=yx;(function(a,t){var e=ai,i=qp,r=C$;function n(o,l){var u=new r(l);return u.process(o)}t=a.exports=n,t.filterXSS=n,t.FilterXSS=r,(function(){for(var o in e)t[o]=e[o];for(var l in i)t[l]=i[l]})();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=a.exports)})(tm,tm.exports);var cl=tm.exports,w$=function(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;var t=Object.getPrototypeOf(a);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(a)===t},gx=(function(){function a(t,e){var i=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=Bp(Bp({},cl.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?i.sanitizeUrl(o):cl.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var r;t&&!e?r=t:t&&e?(r=Object.create(this.arcgisFilterOptions),r.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(n){if(n==="whiteList")r.whiteList=i._extendObjectOfArrays([i.arcgisWhiteList,t.whiteList||{}]);else if(n==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(o){return r.css.whiteList[o]=s[o]})}else r[n]=t[n]})):(r=Object.create(this.arcgisFilterOptions),r.whiteList=this.arcgisWhiteList,r.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=r,this._xssFilter=new cl.FilterXSS(r)}return a.prototype.sanitize=function(t,e){switch(e===void 0&&(e={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,e);default:return e.allowUndefined&&typeof t>"u"?void 0:null}},a.prototype.sanitizeUrl=function(t,e){var i=(e??{}).isProtocolRequired,r=i===void 0?!0:i,n=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",o=/^#/.test(t),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?cl.escapeAttrValue(t):!n&&!r?cl.escapeAttrValue("https://".concat(t)):""},a.prototype.sanitizeHTMLAttribute=function(t,e,i,r){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,e,i,r):cl.safeAttrValue(t,e,i,r)},a.prototype.validate=function(t,e){e===void 0&&(e={});var i=this.sanitize(t,e);return{isValid:t===i,sanitized:i}},a.prototype.encodeHTML=function(t){var e=this;return String(t).replace(/[&<>"'\/]/g,function(i){return e._entityMap[i]})},a.prototype.encodeAttrValue=function(t){var e=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(i,r){return e.test(i)?i:"&#x".concat(Number(t.charCodeAt(r)).toString(16),";")})},a.prototype._extendObjectOfArrays=function(t){var e={};return t.forEach(function(i){Object.keys(i).forEach(function(r){Array.isArray(i[r])&&Array.isArray(e[r])?e[r]=e[r].concat(i[r]):e[r]=i[r]})}),e},a.prototype._iterateOverObject=function(t,e){var i=this;e===void 0&&(e={});try{var r=!1,n=void 0;if(Array.isArray(t))n=t.reduce(function(o,l){var u=i.validate(l,e);return u.isValid?o.concat([l]):(r=!0,o.concat([u.sanitized]))},[]);else if(w$(t)){var s=Object.keys(t);n=s.reduce(function(o,l){var u=t[l],h=i.validate(u,e);return h.isValid?o[l]=u:(r=!0,o[l]=h.sanitized),o},{})}else return e.allowUndefined&&typeof t>"u"?void 0:null;return r?n:t}catch{return null}},a.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},a})();function vx(a){var t,e,i=a.length;if(i===1)t=0,e=a[0][1];else{for(var r=0,n=0,s=0,o=0,l,u,h,p=0;p<i;p++)l=a[p],u=l[0],h=l[1],r+=u,n+=h,s+=u*u,o+=u*h;t=(i*o-r*n)/(i*s-r*r),e=n/i-t*r/i}return{m:t,b:e}}function bx(a){return function(t){return a.b+a.m*t}}function xx(a,t){if(a.length<2)return 1;for(var e=0,i=0;i<a.length;i++)e+=a[i][1];for(var r=e/a.length,n=0,s=0;s<a.length;s++)n+=Math.pow(r-a[s][1],2);for(var o=0,l=0;l<a.length;l++)o+=Math.pow(a[l][1]-t(a[l][0]),2);return 1-o/n}var Sx=function(){this.totalCount=0,this.data={}};Sx.prototype.train=function(t,e){this.data[e]||(this.data[e]={});for(var i in t){var r=t[i];this.data[e][i]===void 0&&(this.data[e][i]={}),this.data[e][i][r]===void 0&&(this.data[e][i][r]=0),this.data[e][i][r]++}this.totalCount++};Sx.prototype.score=function(t){var e={},i;for(var r in t){var n=t[r];for(i in this.data)e[i]={},this.data[i][r]?e[i][r+"_"+n]=(this.data[i][r][n]||0)/this.totalCount:e[i][r+"_"+n]=0}var s={};for(i in e){s[i]=0;for(var o in e[i])s[i]+=e[i][o]}return s};var Cx=function(){this.weights=[],this.bias=0};Cx.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,i=0;i<this.weights.length;i++)e+=this.weights[i]*t[i];return e+=this.bias,e>0?1:0};Cx.prototype.train=function(t,e){if(e!==0&&e!==1)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var i=this.predict(t);if(typeof i=="number"&&i!==e){for(var r=e-i,n=0;n<this.weights.length;n++)this.weights[n]+=r*t[n];this.bias+=r}return this};var Qee=607/128,Jee=Math.log(Math.sqrt(2*Math.PI));var ete=Math.sqrt(2*Math.PI);var P$=Math.sqrt(2*Math.PI);function _$(a){for(var t=a,e=a,i=1;i<15;i++)e*=a*a/(2*i+1),t+=e;return Math.round((.5+t/P$*Math.exp(-a*a/2))*1e4)/1e4}var T$=[];for(zp=0;zp<=3.09;zp+=.01)T$.push(_$(zp));var zp;var QS=_w(wS(),1);var pn="25.0.0",Zi="arcgis_charts_pie_from_fields_name",ba="arcgis_charts_pie_from_fields_value",wD="arcgis_charts_bar_line_from_fields_name",PD="arcgis_charts_bar_line_from_fields_value",nn={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},TS={Count:"count",Start:"minValue",End:"maxValue"};function _D(a,t){let e=t.errors[a];throw new ki(t.modalHeaders.error,e??t.errors.simpleError)}function ja(a){return a.axes?.[0]?.valueFormat?.type}function $ie(a){return a.intlOptions}function Qi(a){return a?.type===$.NumberAxisFormat}function Oie(a){return Qi(a)&&a.intlOptions?.style==="percent"}function sn(a){return a?.type===$.CategoryAxisFormat}function Us(a){return a?.type===$.DateAxisFormat}function Die(a){let{oldConfig:t,newConfig:e,rotationChanged:i}=a;return i?[!0,!0]:[t.horizontalAxisLabelsBehavior!==e.horizontalAxisLabelsBehavior,t.verticalAxisLabelsBehavior!==e.verticalAxisLabelsBehavior]}function TD(a){return Qi(a?.[1]?.valueFormat)&&(a?.[2]?.valueFormat===void 0||Qi(a[2].valueFormat))}function $D(a){return Qi(a?.[1]?.valueFormat)&&(a?.[2]?.valueFormat===void 0||Qi(a[2].valueFormat))}function OD(a){return(sn(a?.[0]?.valueFormat)||Us(a?.[0]?.valueFormat))&&Qi(a?.[1]?.valueFormat)&&(a?.[2]?.valueFormat===void 0||Qi(a[2].valueFormat))}function DD(a){return sn(a?.[0]?.valueFormat)&&sn(a?.[1]?.valueFormat)||Us(a?.[0]?.valueFormat)&&sn(a?.[1]?.valueFormat)||Us(a?.[0]?.valueFormat)&&Us(a?.[1]?.valueFormat)}function FD(a){return(sn(a?.[0]?.valueFormat)||Us(a?.[0]?.valueFormat))&&Qi(a?.[1]?.valueFormat)}function ID(a){return Qi(a?.[0]?.valueFormat)&&Qi(a?.[1]?.valueFormat)}function AD(a){return Qi(a?.[0]?.valueFormat)&&Qi(a?.[1]?.valueFormat)}function LD(a){return Qi(a?.[0]?.valueFormat)}function Fie(a){let{chartType:t,axesConfig:e,errorStrings:i}=a,r,n;switch(t){case $.GaugeSeries:r=LD,n="invalidValueFormatForGauge";break;case $.ScatterSeries:r=ID,n="invalidValueFormatForScatterplot";break;case $.HistogramSeries:r=AD,n="invalidValueFormatForHistogram";break;case $.LineSeries:r=TD,n="invalidValueFormatForLineChart";break;case $.BarSeries:r=$D,n="invalidValueFormatForBarChart";break;case $.ComboLineAndBarSeries:r=FD,n="invalidValueFormatForComboBarLineChart";break;case $.BoxPlotSeries:r=OD,n="invalidValueFormatForBoxPlot";break;case $.HeatSeries:r=DD,n="invalidValueFormatForHeatChart";break}r!==void 0&&n!==void 0&&(r(e)||_D(n,i))}function ED(a){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=a;return t&&(sn(i)||e===$.HistogramSeries&&!r||e===$.BarSeries&&Qi(i))}var kD={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},Iie={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},ts={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},pt={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},VD=32,Zn="arcgis_charts_features_extent",It={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:El.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds",heatChartLowerBoundaryAlias:"lowerBoundary5x1",heatChartUpperBoundaryAlias:"upperBoundary5x1"},JS=["EXPR_1","Expr1","expr1","EXPR1"],eC=1,sr=.7,MD=25,tC=[156,156,156,255],ND=[156,156,156,255],Aie=Ri.Solid,Lie=2,on={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},Pl="arcgis_charts_box_plot_category",ht={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},Eie={min:1,max:10},iC=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],kie=[[90,180,255,255],[165,220,255,255],[90,215,80,255],[165,245,150,255],[255,80,85,255],[255,170,170,255],[255,165,70,255],[255,205,130,255],[155,110,255,255],[220,195,255,255]],RD=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],Vie=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]],Mie=[255,255,255,255],Nie=[43,43,43,255],Rie=[0,122,194,255],jie=[255,255,255,255],Bie=[0,0,0,255],cd=[150,150,150,178.5];function Pr(a){let{colorIndex:t,opacity:e,histogramOverlays:i}=a,r=Math.max(0,t??0),n=[...i===!0?RD:iC],[s,o,l,u]=n[r%n.length],h=e!==void 0?e*255:u;return[s,o,l,h]}function rC(a){return[0,0,0,(a??sr)*255]}function Wie(){return{type:$.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:dt.SLS,style:Ri.Dot,color:[211,211,211,255],width:1}}}function _d(a=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),a*255]}function Lt(a){let t={family:"Arial, Helvetica, sans-serif",size:10};switch(a){case pt.ChartTitle:t.size=18;break;case pt.AxisTitle:t.size=14;break;case pt.LegendText:t.size=12;break;case pt.LegendTitle:t.size=13;break;case pt.DescriptionText:t.size=11;break}return t}function aC(a="",t=Lt(),e){let i=nt.Center;return(e===pt.DataLabels||e===pt.GuideLabel)&&(i=void 0),{type:dt.TS,color:rC(),text:a,font:t,horizontalAlignment:i}}function St(a){let{text:t,visible:e,font:i,type:r}=a??{text:"",visible:!0,font:Lt()};return{type:$.Text,visible:e,content:aC(t,i,r)}}function Zu(a){let t=a?.useRandomColor??!1,e=a?.useRampColor,i=a?.width??1,r=a?.isHistogramOverlay,n=a?.color??rC(1);return t?n=_d():e!==void 0&&(r===!0?n=Pr({colorIndex:e.colorIndex,histogramOverlays:r}):n=Pr({colorIndex:e.colorIndex})),a?.opacity!==void 0&&(n[3]=a.opacity),{type:dt.SLS,style:Ri.Solid,color:n,width:i}}function jD(){return{type:$.CategoryAxisFormat,characterLimit:11}}function qie(){return{type:$.DateAxisFormat,intlOptions:{}}}function Em(){return{type:$.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function zie(){return{type:$.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Hie(){return{type:$.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function Dm(a="Category Axis"){let t=St({text:a,visible:!0,font:Lt(pt.AxisTitle)});t.content.horizontalAlignment=nt.Center,t.content.verticalAlignment=Pt.Middle;let e=St({text:a,visible:!0,font:Lt(pt.AxisLabels)});return{type:$.Axis,visible:!0,title:t,labels:e,valueFormat:jD(),lineSymbol:Zu({color:tC})}}function fd(a="Value Axis"){let t=St({text:a,visible:!0,font:Lt(pt.AxisTitle)}),e=St({text:a,visible:!0,font:Lt(pt.AxisLabels)});return t.content.verticalAlignment=Pt.Middle,t.content.horizontalAlignment=nt.Center,{type:$.Axis,visible:!0,title:t,labels:e,valueFormat:Em(),lineSymbol:Zu({color:tC})}}function is(){return{type:$.Legend,visible:!0,title:St({text:"",visible:!0,font:Lt(pt.LegendTitle)}),body:aC("",Lt(pt.LegendText)),position:Ll.Right}}function ud(a){return{type:$.Overlay,visible:!0,created:!1,symbol:Zu({useRampColor:{colorIndex:a},isHistogramOverlay:!0})}}function rs(){return[255,255,255,255]}function dn(a){return a.utilsStrings.chartType.chart}function cn(){return`Chart ${Date.now()}`}function Uie(a,t=!1){return{type:dt.SFS,style:_i.Solid,color:t?_d(sr):Pr({colorIndex:a??0,opacity:sr})}}function BD(a=0){return{type:dt.SMS,style:wa.Circle,color:Pr({colorIndex:a,opacity:sr}),size:5}}function WD(a){return{type:dt.SLS,style:Ri.Solid,color:Pr({colorIndex:a,opacity:sr}),width:2}}function qD(a=!1){return{type:dt.SMS,style:wa.Circle,color:a?_d(sr):Pr({colorIndex:0,opacity:sr}),size:7}}function Gie(){return{type:$.SizePolicy,field:"",scaleType:wy.Linear,minSize:5,maxSize:30}}function zD(a=!1){return{type:$.Overlays,trendLine:{type:$.Overlay,created:!1,visible:!0,symbol:{type:dt.SLS,style:Ri.Solid,color:a?_d():Pr({colorIndex:1}),width:2}}}}function HD(a,t){let e=a.countSeries;return{type:$.HeatSeries,id:e,name:e,y:"",x:"",dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels)}),query:{outStatistics:[{statisticType:ie.Count,onStatisticField:t??"ObjectID",outStatisticFieldName:`${ie.Count}_${t}_0`.toUpperCase()}],groupByFieldsForStatistics:[]},emptyCells:{symbol:{type:dt.SFS,style:_i.Solid,color:cd},text:a.utilsStrings.null}}}function UD(){return{type:$.ScatterSeries,id:$.ScatterSeries,name:$.ScatterSeries,x:"",y:"",markerSymbol:qD(),overlays:zD(),dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels)})}}function Ys(a,t){let e=[],i=a.xAxis,r=a.utilsStrings.statistics.count,n,s,o=Zu({opacity:MD});switch(t===$.HeatSeries?s=Dm(r):(s=fd(r),s.grid=o),t){case $.BarSeries:case $.HeatSeries:{n=Dm(i);break}case $.ScatterSeries:{n=fd(i),n.grid=o;break}case $.RadarSeries:case $.LineSeries:case $.HistogramSeries:{n=fd(i);break}case $.BoxPlotSeries:{n=Dm("");break}}return n!==void 0&&e.push(n,s),e}function GD(){return{type:$.GaugeNeedle,symbol:{type:dt.SFS,color:[0,0,0,200]}}}function YD(a){let t=[],e=a.xAxis,i=fd(e);return i.needle=GD(),t.push(i),t}function XD(a){let t=a.commonStrings,e=a.objectIDField??"ObjectID",i=`${ie.Count}_${e}_0`.toUpperCase(),r=t.countSeries;return{type:$.LineSeries,id:r,name:r,query:{outStatistics:[{statisticType:ie.Count,onStatisticField:e,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,lineSymbol:WD(a.seriesIndex),markerSymbol:BD(a.seriesIndex),dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels)}),temporalBinning:{unit:Le.Day,size:0,timeAggregationType:si.Start,trimIncompleteTimeInterval:!0,nullPolicy:dr.Interpolate}}}function Yie(a){return{...XD(a),type:$.RadarSeries}}function KD(a){return{type:dt.SFS,style:_i.Solid,color:Pr({colorIndex:a,opacity:sr})}}function Xie(a){let t=a.objectIDField??"*",e=a.commonStrings,i=`${ie.Count}_Y_0`.toUpperCase(),r=e.countSeries;return{type:$.BarSeries,id:r,name:r,query:{outStatistics:[{statisticType:ie.Count,onStatisticField:t,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:KD(a.seriesIndex),dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels),type:pt.DataLabels})}}function Kie(a,t){let e=a.countSeries;return{name:e,type:$.BoxPlotSeries,id:e,fillSymbol:{type:dt.SFS,style:_i.Solid,color:Pr({colorIndex:t,opacity:sr})},query:{},x:Pl,y:""}}function ZD(){return{type:$.PieTick,visible:!0,lineSymbol:Zu({width:1,color:ND})}}function gd(){return{type:dt.SFS,style:_i.Solid}}function Zie(a,t){let e=`${ie.Count}_${t}_0`.toUpperCase(),i=a.countSeries;return{type:$.PieSeries,id:i,name:i,query:{outStatistics:[{statisticType:ie.Count,onStatisticField:t??"ObjectID",outStatisticFieldName:e}],groupByFieldsForStatistics:[]},x:"",y:e,fillSymbol:gd(),dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels),type:pt.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...Em(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...Em(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:ZD()}}function Qie(a){let t=a.objectIDField??"ObjectID",e=`${ie.Count}_${t}_0`.toUpperCase(),i="Series0";return{type:$.GaugeSeries,id:i,name:i,query:{outStatistics:[{statisticType:ie.Count,onStatisticField:t,outStatisticFieldName:e}]},x:""}}function zu(){return!1}function Jie(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,rotated:zu(),orderOptions:{data:{orderType:cr.Category,orderBy:hi.Ascending}},title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),axes:Ys(a,$.BarSeries),series:[],legend:is()}}function ere(a,t=cn()){return{version:pn,type:$.Chart,id:t,rotated:zu(),colorMatch:!0,orderOptions:{data:{orderType:cr.Category,orderBy:hi.Ascending}},title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),series:[],legend:is(),axes:Ys(a,$.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function tre(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,rotated:zu(),orderOptions:{data:{orderType:cr.Category,orderBy:hi.Ascending}},title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),axes:Ys(a,$.LineSeries),series:[],legend:is()}}function ire(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,orderOptions:{data:{orderType:cr.Category,orderBy:hi.Ascending}},title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),axes:Ys(a,$.RadarSeries),series:[],legend:is()}}function rre(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,orderOptions:{data:{orderType:cr.YValue,orderBy:hi.Descending}},title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),series:[],legend:{...is(),displayNumericValue:!1,displayPercentage:!0}}}function are(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),series:[],axes:YD(a)}}function nre(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),axes:Ys(a,$.ScatterSeries),series:[UD()],legend:is()}}function sre(a,t){return{version:pn,type:$.Chart,id:cn(),title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),background:rs(),axes:Ys(a,$.HeatSeries),series:[HD(a,t)],legend:{...is(),position:Ll.Bottom}}}function QD(){return{type:$.Overlays,mean:ud(1),median:ud(2),standardDeviation:ud(3),comparisonDistribution:ud(4)}}function JD(){return{type:dt.SFS,style:_i.Solid,color:Pr({colorIndex:0,opacity:sr})}}function eF(){return{type:$.HistogramSeries,id:$.HistogramSeries,name:$.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:QD(),dataTransformationType:Yt.None,fillSymbol:JD(),dataLabels:St({text:"",visible:!1,font:Lt(pt.DataLabels)})}}function ore(a,t=cn()){return{version:pn,type:$.Chart,id:t,colorMatch:!0,title:St({text:dn(a),visible:!0,font:Lt(pt.ChartTitle)}),subtitle:St(),footer:St({text:"",visible:!0,font:Lt(pt.DescriptionText)}),background:rs(),axes:Ys(a,$.HistogramSeries),series:[eF()],legend:is()}}var Fm={behaviorAfterLimit:ts.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function Xs(a){let t={...Fm};return a!==void 0&&Object.keys(Fm).forEach(e=>{let i=e;t[i]=a[i]??Fm[i]}),t}function Td(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:50}}function lre(a,t){let e;switch(a){case ie.Average:{e=t.utilsStrings.statistics.mean;break}case ie.ContinuousPercentile:{e=t.utilsStrings.statistics.median;break}case ie.Sum:{e=t.utilsStrings.statistics.sum;break}case ie.Minimum:{e=t.utilsStrings.statistics.minimum;break}case ie.Maximum:{e=t.utilsStrings.statistics.maximum;break}case ie.Variance:{e=t.utilsStrings.statistics.variance;break}case ie.DiscretePercentile:{e=t.utilsStrings.statistics.discretePercentile;break}case ie.NoAggregation:{e=t.utilsStrings.statistics.noAggregation;break}case ie.Count:default:{e=t.utilsStrings.statistics.count;break}}return e}function ure(a,t){let e;switch(a){case si.End:{e=t.timeAggregationTypes.end;break}case si.Start:{e=t.timeAggregationTypes.start;break}default:e="";break}return e}function tF(){return Dr.Side}function hre(a){return a.utilsStrings.notAvailable}var iF=0,rF="_arcgis_charts_outliers",aF="_arcgis_charts_z_score",pre=[210,210,210,255*sr],dre=" percentage ";var V={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:Ll.Right},footer:{wrap:!0,horizontalCenter:nt.Center,verticalCenter:Pt.Middle,align:nt.Center},axisLabel:{rotation:0,align:nt.Center,horizontalCenter:nt.Center,verticalCenter:Pt.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:nt.Left,verticalCenter:Pt.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:nt.Center,verticalCenter:Pt.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:nt.Center,valign:Pt.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:nt.Center,valign:Pt.Middle,rotation:270,wrap:!0},titleLabel:{align:nt.Center,wrap:!0},subtitleLabel:{align:nt.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:nt.Right,align:nt.Right,verticalCenter:Pt.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:nt.Right,align:nt.Right,verticalCenter:Pt.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:nt.Center,verticalCenter:Pt.Top,valign:Pt.Top},verticalLineGuideLabels:{horizontalCenter:nt.Right,verticalCenter:Pt.Bottom,valign:Pt.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:dt.SLS,style:Ri.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:nt.Center,verticalCenter:Pt.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:nt.Center,horizontalCenter:nt.Center,valign:Pt.Bottom,verticalCenter:Pt.Top,dy:-3},dataLabelRotated:{align:nt.Right,horizontalCenter:nt.Right,valign:Pt.Middle,verticalCenter:Pt.Middle,dx:2},dataLabelStackedRotated:{align:nt.Center,horizontalCenter:nt.Center,valign:Pt.Middle,verticalCenter:Pt.Middle},dataLabelStackedNonRotated:{align:nt.Center,horizontalCenter:nt.Center,valign:Pt.Middle,verticalCenter:Pt.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:xy.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:Dr.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:wa.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:iF,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:on.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:dt.SFS,color:[210,210,210,255*sr]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:hi.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],grayColor:cd,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",guideTooltipPosition:"pointer",markerTooltipPosition:"fixed",sliceTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1,tileSize:50,diagonalTileSize:1200},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",rendererSymbolFieldForHistogram:"symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:dt.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:dt.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:kD.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:dt.SFS,color:cd,outline:{type:dt.SLS,style:Ri.Solid,color:cd,width:1}}},classBreaks:{breaksCount:5}},Ks={LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",SeriesOrder:"arcgisChartsJSSeriesOrder"};function Zs(a){return{detail:a,composed:!0,cancelable:!0,bubbles:!0}}function cre(a,t){t&&t.dispatchEvent(new window.CustomEvent(Ks.LegendItemVisibilityChange,Zs(a)))}function fre(a){a&&a.dispatchEvent(new window.CustomEvent(Ks.RenderingComplete,Zs()))}function mre(a){let{data:t,htmlContainer:e}=a;e&&e.dispatchEvent(new window.CustomEvent(Ks.SelectionComplete,Zs(t)))}function yre(a){a&&a.dispatchEvent(new window.CustomEvent(Ks.TooManySelectedElements,Zs()))}function gre(a){let{data:t,htmlContainer:e,chartId:i,colorMatchApplied:r}=a;e&&e.dispatchEvent(new window.CustomEvent(Ks.SeriesColorsChange,Zs({chartId:i,data:t,colorMatchApplied:r})))}function vre(a,t){t&&t.dispatchEvent(new window.CustomEvent(Ks.AxesMinMaxChange,Zs(a)))}function nF(a){let{data:t,htmlContainer:e}=a;e&&t&&e.dispatchEvent(new window.CustomEvent(Ks.SeriesOrder,Zs(t)))}function sF(a){return a!==void 0&&a!==_i.Solid&&a!==_i.Null}function oF(a,t){let e="",i=(t??0)/2,r=0-i,n=0+i,s=0-i,o=0+i;switch(a){case wa.Circle:e=`M ${r},0 a ${i},${i} 0 1,0 ${i*2},0 a ${i},${i} 0 1,0 ${-i*2},0`;break;case wa.Cross:e=`M ${r},0 L ${n},0 M 0,${s} L 0,${o} E`;break;case wa.Diamond:e=`M ${r},0 L 0,${s} L ${n},0 L 0,${o} L ${r},0 Z`;break;case wa.Square:e=`M ${r},${o} L ${r},${s} L ${n},${s} L ${n},${o} L ${r},${o} Z`;break;case wa.Triangle:e=`M ${r},${o} L 0,${s} L ${n},${o} L ${r},${o} Z`;break;case wa.X:e=`M ${r},${o} L ${n},${s} M ${r},${s} L ${n},${o} E`;break}return e}var gl={...V,titleAndSubtitlePaddingBottom:5,chartPadding:5,footerContainer:{...V.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...V.headerContainer,paddingBottom:18},chartContainer:{...V.chartContainer},dataLabel:{...V.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1,axisLineLayer:30},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:Ll.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,minMaxLabelPadding:3},emptyCells:{symbol:{type:dt.SFS,style:_i.Solid,color:V.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function lF(a){let t;return a?.[0]!==void 0&&(t=a.reduce((e,i)=>({...e,xmin:Math.min(e.xmin,i.xmin),xmax:Math.max(e.xmax,i.xmax),ymin:Math.min(e.ymin,i.ymin),ymax:Math.max(e.ymax,i.ymax)}),a[0])),t}function Hu(a){let{value:t,dataContext:e,specificField:i,keepNullValues:r=!1,useRendererLabel:n=!1,config:s}=a,o=t,{originalCategoryValue:l,originalDateValue:u}=V;if(e!==void 0){let h=n?y1(e):void 0;i!==void 0&&e[i]!==void 0?o=e[i]:h!==void 0?o=h:e[u]!==void 0?o=e[u]:e[l]!==void 0?o=e[l]:e[Zi]!==void 0&&(o=e[Zi]),!r&&o===null&&(o="null",s?.series?.[0].type===$.BarSeries&&(o=s.series?.[0]?.nullCategory?.text??gl.nullCategory?.text??o))}return o}function uF(a){return a?.[V.originalCategoryValue]}function Uu(a){let{arrayToSort:t,orderBy:e,sortingField:i,forceAscendingOrder:r,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=a;if(t!==void 0&&t.length>1){let u=e===hi.Descending&&r!==!0;t.sort((h,p)=>{let d=0,c=h[i];s===!0&&!l&&(c=Hu({value:`${h[i]?.toString()}`,dataContext:h,specificField:o?V.xAxisField:void 0}));let f=p[i];return s===!0&&!l&&(f=Hu({value:`${p[i]?.toString()}`,dataContext:p,specificField:o?V.xAxisField:void 0})),n===!0&&u&&s===!0&&(c=Number.isNaN(Number.parseFloat(`${c?.toString()}`))?c:Number.parseFloat(c),f=Number.isNaN(Number.parseFloat(`${f?.toString()}`))?f:Number.parseFloat(f)),s===!0&&(h[V.originalCategoryValue]===null||c===null)||h[on.defaultGroupOfSlicesId]===!0?d=1:s===!0&&(p[V.originalCategoryValue]===null||f===null)||p[on.defaultGroupOfSlicesId]===!0?d=-1:typeof c=="string"&&typeof f=="string"?(d=c.localeCompare(f,void 0,{numeric:!0}),u&&(d*=-1)):c===void 0?d=u?-1:1:f===void 0?d=u?1:-1:c!==null&&f!==null&&(c>f?d=u?-1:1:c<f&&(d=u?1:-1)),d})}}function hF(a){let{arrayToSort:t,orderBy:e,sortingField:i,fieldList:r,isByFieldsChart:n,preferLabel:s}=a;t!==void 0&&t.length>1&&!Ci(i)&&e!==void 0&&e.length>0&&t.sort((o,l)=>{let u=o[i];s&&n&&typeof u=="string"&&(u=Sd(r,u));let h=e.indexOf(u?.toString()??"");h===-1&&(h=e.length);let p=l[i];s&&n&&typeof p=="string"&&(p=Sd(r,p));let d=e.indexOf(p?.toString()??"");return d===-1&&(d=e.length),h-d})}function nC(a){let{statsMap:t,dataContext:e,chartLimits:i}=a,r=!1;if(t!==void 0){let{maxScatterPointsBeforeAggregation:n}=Xs(i),{queryNumberOfFeatures:s}=V.scatterplotAggregationFields;r=(t.get(s)??Number.NaN)>=n}else e!==void 0&&(r=V.scatterplotAggregationFields.dataContextXMinField in e);return r}function pF(a){let t=!0,e=Ae(a.series);if(e===$.BarSeries||e===$.LineSeries||e===$.ComboLineAndBarSeries){let i=Re(a.series);t=i!==A.BarAndLineNoAggregation&&i!==A.BarAndLineSplitByNoAggregation}return t}function dF(a){return Re(a.series)!==A.PieNoAggregation}function sC(a){let{dataContext:t,chartConfig:e,chartLimits:i}=a,r=!0;if(e!==void 0)switch(Ae(e.series)){case $.BarSeries:case $.LineSeries:case $.ComboLineAndBarSeries:r=pF(e);break;case $.ScatterSeries:r=nC({dataContext:t,chartLimits:i});break;case $.PieSeries:r=dF(e);break}return r}function cF(a,t){let e=a;switch(t){case Yt.Log:e=`log(${a})`;break;case Yt.Sqrt:e=`power(CAST(${a} AS FLOAT),0.5)`;break}return e}function vl(a){let t=new Date(a).valueOf();return Number.isNaN(t)||(t=new Intl.DateTimeFormat("en-US",V.dateFormatUTC).format(a).replace(",","")),t}function vd(a){let{dataToConvert:t,x:e,y:i,fieldList:r}=a,n=[];if(t){let s=t[Zn];Object.entries(t).forEach(([o])=>{if(o!==""&&o!==Zn&&o in t){let l={[e]:Sd(r,o),[i]:t[o],[V.xAxisField]:o,[V.originalCategoryValue]:o};s!==void 0&&(l[Zn]=s),t[`${V.rendererSymbolField}_${o}`]!==void 0&&(l[V.rendererSymbolField]=t[`${V.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function fF(a,t){let e=!0;if(a!==void 0&&a.length>1&&!Ci(t)){let i=0,r=0,n=0;a.forEach(s=>{let o=s[t];!UF(o)||o===0?n+=1:o>0?i+=1:r+=1}),e=n===a.length||i>=0&&r===0||i===0&&r>=0}return e}function hd(a){let{countTotal:t,countPerSeries:e,numberOfSeries:i}=a,r,n=[];return typeof t=="number"&&Number.isFinite(t)&&n.push(t),typeof e=="number"&&Number.isFinite(e)&&n.push(e*i),n.length>0&&(r=Math.min(...n)),r}function oC(a,t){let e,{maxBarChartSeriesCount:i,maxBarUniqueSeriesCountTotal:r,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:u,maxLineUniqueSeriesCountTotal:h,maxLineTwoSeriesCountPerSeries:p,maxLineTwoSeriesCountTotal:d,maxLineThreePlusSeriesCountPerSeries:c,maxLineThreePlusSeriesCountTotal:f,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Xs(t),g=Ae(a.series),v=a.series.length===0?1:a.series.length,b=Re(a.series);switch(g){case $.ComboLineAndBarSeries:case $.BarSeries:v<=i&&(v===1?e=r:v===2?e=hd({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(e=hd({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case $.LineSeries:v<=u&&(v===1?e=h:v===2?e=hd({countTotal:d,countPerSeries:p,numberOfSeries:v}):v>2&&(e=hd({countTotal:f,countPerSeries:c,numberOfSeries:v})));break;case $.PieSeries:e=m;break;case $.GaugeSeries:e=y;break;case $.ScatterSeries:case $.HistogramSeries:case $.BoxPlotSeries:}return(b===A.BarAndLineNoAggregation||b===A.BarAndLineMultiFields)&&e!==void 0&&(e=Math.ceil(e/v)),e}function $S(a,t){let e=a;if(Number.isFinite(a)){let{factor:i,offset:r}=t??{};Number.isFinite(i)&&(e*=i),Number.isFinite(r)&&(e+=r)}return e}function mF(a){let t=!1;if(a!==void 0){let e=a.replace(" ",""),i=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,r=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;t=i.test(e)||r.test(e)}return t}function bre(a){let t;if(mF(a)){let e=/%(\d{1,3}(.\d+)?)$/u,i=/(\d{1,3}(.\d+)?)%$/u,r=a.replace(" ",""),n=e.exec(r)?.[1]??i.exec(r)?.[1];n!==void 0&&(t=Number(n))}return t}function yF(a){let{stringToTruncate:t,characterLimit:e,ellipsis:i=V.chartEllipsis}=a,r=t;return typeof e=="number"&&Number.isFinite(e)&&e>0&&e<t.length&&(r=t.slice(0,e),r=`${r}${i}`),r}function xre(a,t=":"){return a?`\u200F${t}`:`\u200E${t}`}function Sre(a){return t=>{let e=typeof t!="string"?t?.toString()??"":t;return!Ci(e)&&e!==V.htmlEmptyContent&&(e=yF({stringToTruncate:e,characterLimit:a})),e}}function gF(a){let t=/[[]/gu,e=/[\]]/gu,i=/[{]/gu,r=/[}]/gu,n=/[']/gu;return a=a.replace(t,"[["),a=a.replace(e,"]]"),a=a.replace(i,"{{"),a=a.replace(r,"}}"),a=a.replace(n,"''"),a}function vF(a,t){let e="";return a!==void 0&&(e=`${t==="amChartsV5"?"fontStyle":"font-style"}:${a};`),e}function bF(a,t){let e="";return a===!0&&(e=`${t==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),e}function xF(a){let{textSymbol:t,placeholderString:e,format:i,axisLabelsBehavior:r,defaults:n}=a,s=vF(t?.font?.style,i),o=bF(t?.kerning,i),l=e??t?.text??"";if(i==="html"){let{wrap:u,maxWidth:h}=n??{};r===Sy.Wrap&&(u=!0,h=h??V.xAxisLabelMaxWidth);let p=u===!0&&Number.isFinite(h)?`max-width: ${h}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${p}">${l}</p>`}else l=gF(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function SF(a){return a?a.replace(/[A-Z]/gu,t=>`-${t.toLowerCase()}`):void 0}var Cre=[$.BarSeries,$.BoxPlotSeries,$.LineSeries,$.PieSeries,$.HistogramSeries,$.ScatterSeries],wre=1,Pre={PNG:"png"},ml={ChartRenderer:1,LayerRenderer:2},bd=new Map;function _re(a){a!==void 0&&bd.delete(a)}function Qs(a,t){let e=bd.get(a)??{};bd.set(a,{...e,...t})}function Js(a,t){return bd.get(a)?.[t]}function Tre(a,t){return Js(a,t)}function $re(a,t){Qs(a,t)}function Ore(a,t){return Js(a,t)}function Dre(a,t){Qs(a,t)}function Fre(a,t){return Js(a,t)}function Ire(a,t){Qs(a,t)}function Are(a,t){return Js(a,t)}function Lre(a,t){Qs(a,t)}function Ere(a,t){return Js(a,t)}function kre(a,t){Qs(a,t)}function CF(a,t){return Js(a,t)}function Vre(a,t){Qs(a,t)}function Mre(a,t){return Js(a,t)}function Nre(a,t){Qs(a,t)}function km(a,t){t===!1&&!a.isHiding?(a.visible=!1,a.hide()):a.isShowing||(a.visible=!0,a.show())}function Rre(a,t){for(let e=0;e<t.length;e+=1){let i=t[e][0],r=t[e][1],n=a.length;i>=0&&i<n&&r>=0&&r<n&&a.swap(t[e][0],t[e][1])}}function wF(a,t){let e;if(a!==void 0&&"rgb"in a&&a.rgb!==void 0){let i=a.rgb;if(i!==void 0){let{r,g:n,b:s}=i;e=[r,n,s,255]}}return e}function xd(a){let t=a??[0,0,0,255];return new _e({a:t[3]/255,b:t[2],g:t[1],r:t[0]})}function jre(a){return a.bullets.values.find(t=>CF(t.uid,"isBulletMarker"))}function Bre(a){return a!=null&&!a.isDisposed()}function Wre(a){return(a.isShowing||a.visible)&&!a.isHidden&&!a.isHiding&&!a.disabled&&!a.__disabled}function qre(a,t){return a.pixelX<0||a.pixelX>t?.plotContainer?.measuredWidth||a.pixelY<0||a.pixelY>t?.plotContainer?.measuredHeight}function PF(a){let t;return a.baseSprite instanceof Xi||a.baseSprite instanceof Yo?t=a.baseSprite:(a instanceof An||a instanceof zo)&&(t=a.axis.chart),t}function _F(a){return wF(a.background.fill)}var Ki={...V};function TF(a){let{fill:t,rotation:e,isLinePattern:i,chartBackgroundColor:r}=a,n;return i!==!1?(n=new Jo,n.width=Ki.patternLineProperties.width??Number.NaN,n.height=Ki.patternLineProperties.height??Number.NaN,n.strokeWidth=Ki.patternLineProperties.strokeWidth??Number.NaN,n.stroke=t,n.rotation=e??Number.NaN):(n=new el,n.rectWidth=Ki.patternRectProperties.rectWidth??Number.NaN,n.rectHeight=Ki.patternRectProperties.rectHeight??Number.NaN,n.width=Ki.patternRectProperties.width??Number.NaN,n.height=Ki.patternRectProperties.height??Number.NaN,n.fillOpacity=Ki.patternRectProperties.fillOpacity??Number.NaN,n.strokeWidth=Ki.patternRectProperties.strokeWidth??Number.NaN,n.fill=xd(r),n.stroke=t,n.rotation=e??Number.NaN),n}function zre(a){let t=Number.NaN;if(typeof a=="number")t=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(t=W(e))}return t}function $F(a){let{fill:t,style:e,chartBackgroundColor:i}=a,r,n,s=!0;switch(e){case _i.Horizontal:{n=0;break}case _i.Vertical:{n=90;break}case _i.ForwardDiagonal:{n=45;break}case _i.BackwardDiagonal:{n=135;break}case _i.Cross:{n=0,s=!1;break}case _i.DiagonalCross:{n=135,s=!1;break}case _i.Solid:}return n!==void 0&&(r=TF({fill:t,rotation:n,isLinePattern:s,chartBackgroundColor:i})),r}function Kn(a,t){let e;t!==void 0&&(e=xd(t));let i=e??new _e({r:0,g:0,b:0,a:0});if(a!=null){let[r,n,s,o]=a;i=new _e({r,g:n,b:s,a:o/255})}return i}function lC(a,t=0){return(a??t)%360}function OF(a,t){return t!==!0||a?.includes("Dot")===!0?"round":"square"}function DF(a,t){let e="none";switch(a??t){case nt.Justify:case nt.Center:e="center";break;case nt.Left:e="left";break;case nt.Right:e="right";break}return e}function FF(a,t){let e="middle";switch(a??t){case nt.Right:e="left";break;case nt.Left:e="right";break;case nt.Center:case nt.Justify:}return e}function IF(a,t){let e="none";switch(a??t){case Pt.Baseline:case Pt.Middle:e="middle";break;case Pt.Top:e="top";break;case Pt.Bottom:e="bottom";break}return e}function AF(a,t){let e=Pt.Middle;switch(a??t){case Pt.Top:e="bottom";break;case Pt.Bottom:e="top";break;case Pt.Baseline:case Pt.Middle:default:e="middle";break}return e}function LF(a,t){let e=a??Ri.Solid,i=t??Ki.lineWidth,r={[Ri.Solid]:"none",[Ri.Dot]:[1,i],[Ri.DashDotDot]:[4*i,i,1,i,1,i],[Ri.Dash]:[4*i,3*i],[Ri.DashDot]:[4*i,3*i,1,3*i],[Ri.Null]:"none"};return(r[e]??r[Ri.Null]).toString()}function uC(a,t){let e={stroke:Kn(),strokeWidth:Ki.lineWidth,strokeDasharray:"",strokeLinecap:t!==!0?"round":"square",strokeOpacity:eC};return a!=null&&(e.stroke=Kn(a.color),e.strokeOpacity=1,a.width!==void 0&&(e.strokeWidth=a.width),a.style!==void 0&&a.style!==Ri.Null&&(e.strokeDasharray=LF(a.style,e.strokeWidth),e.strokeLinecap=OF(a.style,t))),e}function hC(a,t){let e=a,[i,r,n,s]=a?.color??t??Ki.color,o=[i,r,n,s];return e==null?e={type:dt.SLS,color:o}:e.color===void 0&&(e.color=o),uC(e,!1)}function EF(a,t){let{color:e,outline:i,style:r}=a,n=Kn(e);return{pattern:$F({fill:n,style:r,chartBackgroundColor:t}),fill:n,outline:hC(i,e)}}function kF(a){let{color:t,outline:e,xoffset:i,yoffset:r,style:n,size:s,angle:o}=a,l=n!==void 0?oF(n,s):"",u=lC(o);return{path:l,fill:Kn(t),outline:hC(e,t),xOffset:i??0,yOffset:r??0,angle:u}}function Xm(a){let{symbol:t,defaultToColorFromRamp:e,colorRampIndex:i,isChartFillSymbol:r=!1,chartBackgroundColor:n}=a,s;if(e===!0){let o=r?sr:eC;if(t.color=t.color??Pr({colorIndex:i,opacity:o}),HS(t)||US(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??Pr({colorIndex:i}),t.outline={...l})}}return uE(t)?s=uC(t,!0):US(t)?(t.style??=Ki.lineSeries.marker.markerStyle,t.size??=Ki.lineSeries.marker.markerBigSize,s=kF(t)):HS(t)&&(s=EF(t,n)),s}function Hre(a,t,e){let i=FF(a.horizontalAlignment,e?.horizontalCenter),r=DF(a.horizontalAlignment,e?.align),n=AF(a.verticalAlignment,e?.verticalCenter),s=IF(a.verticalAlignment,e?.valign);return{fill:Kn(a.color,Ki.color),fontFamily:a.font?.family??"Arial, Helvetica, sans-serif",fontSize:a.font?.size??Ki.generalFontSize,fontWeight:a.font?.weight??"400",textDecoration:a.font?.decoration??"none",align:r,valign:s,verticalCenter:n,horizontalCenter:i,text:xF({textSymbol:a,format:"amChartsV4"}),angle:lC(a.angle,e?.rotation),xOffset:a.xoffset??e?.dx??0,yOffset:a.yoffset??e?.dy??0,backgroundFill:Kn(a.backgroundColor),borderFill:Kn(a.borderLineColor),borderWidth:a.borderLineSize??1,haloSize:a.haloSize??-1,haloColor:Kn(a.haloColor),rtl:a.rightToLeft??t,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function pC(a,t,e){e!==void 0&&a.tooltip!==void 0&&(a.tooltip.getFillFromObject=!1,a.tooltip.background.fill=t),a.fill=e??t,a.fillOpacity=oe(a.fill.toString()).alpha===0?0:1}function Km(a,t){a.stroke=t.stroke,a.strokeOpacity=t.stroke.alpha===0?0:1,a.strokeDasharray=t.strokeDasharray,a.strokeLinecap=t.strokeLinecap,a.strokeWidth=t.strokeWidth}function VF(a){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:n}=a,s;return e!==void 0?(s=Xm({symbol:e,defaultToColorFromRamp:r,colorRampIndex:n}),s!==void 0&&(t.path=s.path,t.rotation=s.angle,t.dx=s.xOffset,t.dy=s.yOffset,pC(t,s.fill),Km(t,s.outline)),km(t,i),t.disabled=i===!1):t.disabled=!0,s}function MF(a){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:n}=a,s;return e!==void 0?(s=Xm({symbol:e,defaultToColorFromRamp:r,colorRampIndex:n}),s!==void 0&&Km(t,s),km(t,i)):km(t,!1),s}function NF(a){let{element:t,fillSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:n,isChartFillSymbol:s}=a,o,l;if(e!==void 0){if(e.style===_i.Cross||e.style===_i.DiagonalCross){let u=PF(t);u!==void 0&&(l=_F(u))}o=Xm({symbol:e,defaultToColorFromRamp:r,colorRampIndex:n,isChartFillSymbol:s,chartBackgroundColor:l}),o!==void 0&&(pC(t,o.fill,o.pattern),Km(t,o.outline)),t.disabled=i===!1}else t.disabled=!0;return o}function RF(a){let{element:t,seriesIndex:e,colorMatch:i,seriesSymbol:r,isChartFillSymbol:n,rendererSymbol:s,seriesConfig:o}=a,l,u;i===!0&&s&&(l=C1({rendererSymbol:s,seriesSymbol:r,colorIndex:e}));let h={element:t,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},p=l??{...r};switch(r.type){case dt.SLS:u=MF({...h,lineSymbol:p});break;case dt.SFS:u=NF({...h,fillSymbol:p,isChartFillSymbol:n});break;case dt.SMS:u=VF({...h,markerSymbol:p});break}return{symbolWithColorInfo:p,stylingInfo:u}}function Ure(a,t){if(t!==void 0){let e=a.properties,{elementColor:i,elementOutlineColor:r,elementOutlineWidth:n,rotation:s,transformation:o}=t,{opacity:l,scale:u}=o??{};i!==void 0&&(e.fill=xd(i),e.fillOpacity=oe(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=xd(r)),n!==void 0&&(e.strokeWidth=n),s!==void 0&&(e.rotation=s),u!==void 0&&(e.scale=u),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}var ki=class extends Error{constructor(t,e,i){super(e),this.name=t,this.details=i}},Wi={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound",LayerNotSupported:"layerNotSupported"},A={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},Gre={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Zm(a){return a?.colorMatch??!1}function OS(a){let t=zu();if(a!==void 0){let e=Ae(a.series);(e===$.BarSeries||e===$.LineSeries||e===$.ComboLineAndBarSeries||e===$.BoxPlotSeries)&&(t=a.rotated??zu())}return t}function Yre(a){return a?.map(t=>t.type)??[]}function Qm(a){let t=a?.stackedType;if(t===void 0&&a!==void 0){let e=Ae(a.series);(e===$.BarSeries||e===$.LineSeries||e===$.ComboLineAndBarSeries||e===$.RadarSeries)&&(t=tF())}return t}function jF(a){let t=a;return t=t.replace(/'/gu,"''"),t=t.replace(/[/\\"|[\]\\]/gu,"\\$&"),t}function BF(a){let t=!1;if(typeof a!="number"){let e=new Intl.Segmenter;t=Array.from(e.segment(a),i=>i.segment).some(i=>i.charCodeAt(0)>255)}return t}function Vm(a){let t=a,e="";a.startsWith("'")&&a.endsWith("'")&&(t=a.slice(1,-1),e="'"),t=t.replace(/'/gu,"''");let i="";return BF(t)&&(i="N"),`${i}${e}${t}${e}`}function dC(a){let{value:t,keepSurroundingQuotes:e,escape:i}=a,r=t?.trim();if(!Ci(r)){let n="";r.startsWith("'")&&r.endsWith("'")&&(r=r.slice(1,-1),e&&(n="'")),i!==!1&&(r=jF(r)),r=`${n}${r}${n}`}return r}function ln(a){let{count:t,seriesCount:e,chartType:i,chartLimits:r}=a,{behaviorAfterLimit:n}=r??{},s=!0;if(n!==ts.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:u,maxBarTwoSeriesCountTotal:h,maxBarThreePlusSeriesCountPerSeries:p,maxBarThreePlusSeriesCountTotal:d,maxLineChartSeriesCount:c,maxLineUniqueSeriesCountTotal:f,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:g,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:b,maxGaugeByFeaturesLimit:P,maxBoxPlotSeriesCount:w,maxBoxUniqueSeriesCountTotal:T,maxBoxTwoSeriesCountTotal:F,maxBoxTwoSeriesCountPerSeries:D,maxBoxThreePlusSeriesCountTotal:O,maxBoxThreePlusSeriesCountPerSeries:N,maxHeatChartCellLimit:L}=Xs(r);switch(i){case $.BarSeries:case $.ComboLineAndBarSeries:{let E=t/e;e<=o?e===0?s=!0:e===1?s=t<=l:e===2?s=t<=h&&E<=u:e>2&&(s=t<=d&&E<=p):s=!1}break;case $.LineSeries:case $.RadarSeries:{let E=t/e;e<=c?e===0?s=!0:e===1?s=t<=f:e===2?s=t<=y&&E<=m:e>2&&(s=t<=v&&E<=g):s=!1}break;case $.PieSeries:s=t<=b;break;case $.BoxPlotSeries:{let E=t/e;e<=w?e===0?s=!0:e===1?s=t<=T:e===2?s=t<=F&&E<=D:e>2&&(s=t<=O&&E<=N):s=!1}break;case $.HeatSeries:s=t<=L;break;case $.GaugeSeries:s=t<=P;break}}return s}function Sd(a=[],t){let e=a.find(i=>i.name===t)?.alias;return e!==""?e??t:t}function Xre(a=[],t){let e=a.find(i=>i.alias===t)?.name;return e!==""?e??t:t}function Kre(a){let t=!1;switch(Ae(a)){case $.HeatSeries:case $.PieSeries:t=!0;break;case $.BarSeries:case $.LineSeries:case $.RadarSeries:case $.ComboLineAndBarSeries:case $.BoxPlotSeries:t=a.length>1;break;case $.HistogramSeries:case $.ScatterSeries:{let e=a[0];t=e.overlays!==void 0&&Object.values(e.overlays).some(i=>i.created===!0);break}}return t}function WF(a){let t=!0;return Ae(a.series)===$.ScatterSeries&&(t=a.series.length===1),t}function qF(a){let t=!0;return Ae(a.series)===$.HistogramSeries&&(t=a.series.length<=1&&a.series[0].type===$.HistogramSeries&&(!("dataTransformationType"in a.series[0])||a.series[0].dataTransformationType!==void 0&&Object.values(Yt).includes(a.series[0].dataTransformationType))),t}function zF(a){let t=!0;return Ae(a.series)===$.PieSeries&&(t=a.series.length<=1),t}function HF(a,t){let e=Ae(t?.series),i=e!==void 0&&a.includes(e);if(i&&t!==void 0)switch(e){case $.HistogramSeries:i=qF(t);break;case $.ScatterSeries:i=WF(t);break;case $.PieSeries:i=zF(t);break}return i}function Ci(a){return a==null||typeof a=="string"&&a.trim()===""}function md(a,t){let e=t.find(i=>i in a);return{isInItem:e!==void 0,expr:e}}function $d(a){return md(a,JS)}function Zre(a,t){let e;switch(a){case Le.Second:e=t.seconds??"";break;case Le.Minute:e=t.minutes??"";break;case Le.Hour:e=t.hours??"";break;case Le.Day:e=t.days??"";break;case Le.Week:e=t.weeks??"";break;case Le.Month:e=t.months??"";break;case Le.Year:e=t.years??"";break;default:e="";break}return e}function Qre(a){let t;switch(a){case nn.Mean:t=1;break;case nn.Median:t=2;break;case nn.StdDev:t=3;break;case nn.Normal:default:t=0;break}return t}function Jre(a,t){if(t!==void 0){let{seriesId:e,overlayType:i,visible:r}=a.detail,n;switch(i){case nn.Mean:t.series[0].type===$.HistogramSeries&&(n=t.series[0].overlays?.mean);break;case nn.Median:t.series[0].type===$.HistogramSeries&&(n=t.series[0].overlays?.median);break;case nn.StdDev:t.series[0].type===$.HistogramSeries&&(n=t.series[0].overlays?.standardDeviation);break;case nn.Normal:t.series[0].type===$.HistogramSeries&&(n=t.series[0].overlays?.comparisonDistribution);break;case nn.Trendline:t.series[0].type===$.ScatterSeries&&(n=t.series[0].overlays?.trendLine);break;default:n=t.series.find(s=>s.id===e);break}n!==void 0&&(n.visible=r)}}function eae(a){return new gx().sanitize(a)}function UF(a){return a!=null&&!Number.isNaN(a)&&Number.isFinite(a)}function GF(a,t){let e={fieldToSort:""};if(!Ci(a)){let i=a.trim(),r=i.split(" ").at(-1)?.toUpperCase();r===hi.Ascending||r===hi.Descending?e={fieldToSort:i.substring(0,i.lastIndexOf(" ")),orderBy:r}:(e={fieldToSort:i},t!==!1&&(e.orderBy=hi.Ascending))}return e}function cC(a){return a===A.BarAndLineSplitBy||a===A.BarAndLineSplitByNoAggregation||a===A.BoxPlotMonoFieldAndSplitBy||a===A.BoxPlotMultiFieldsAndSplitBy||a===A.BoxPlotMonoFieldAndCategoryAndSplitBy}function tae(a){return a?.selectionPixelTarget?Vd(a.selectionPixelTarget.pixelRanges):a?.selectionOIDs===void 0||a.selectionOIDs.length===0}function iae(a={arrayA:[],arrayB:[],getKey:t=>t}){let{arrayA:t,arrayB:e,getKey:i}=a;if(e.length===0||t.length===0)return t;let r=new Map;e.forEach((l,u)=>{let h=i(l);r.set(h,u)});let n=[],s=[];t.forEach((l,u)=>{let h=i(l);r.has(h)&&(n.push(u),s.push(l))}),s.sort((l,u)=>{let h=i(l),p=i(u);return r.get(h)-r.get(p)});let o=[...t];return n.forEach((l,u)=>{o[l]=s[u]}),o}function rae(a,t){return(a===A.BarAndLineNoAggregation||a===A.BarAndLineSplitByNoAggregation)&&t!==void 0?t.x:V.xAxisField}function aae(a){let{r:t,g:e,b:i,a:r=1}=a,n=Math.round((1-r)*255+r*t),s=Math.round((1-r)*255+r*e),o=Math.round((1-r)*255+r*i);return .299*n+.587*s+.114*o>128}var Qn=new Map;function YF(a,t){let e=lt.now().offset/60,i=lt.now().setZone(a)??e,r=i.offset/60,n=t?i.setZone(t).offset/60:0;return r-n}function fC(a){let{outTimeZone:t=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:e="UTC",runsOnClientQueryEngine:i}=a,r="",n=YF(t,e);if(n!==0)if(i)r=`${n>0?"+":"-"}1*INTERVAL '${Math.abs(n)}' HOUR `;else{let s=Math.abs(n%1),o=Math.round(s*60);n=Math.floor(n),r=n>0?`+INTERVAL '${Math.abs(n)}:${o!==0?o:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(n)-(o!==0?0:1)}:${o!==0?String(o-1):"59"}:59' HOUR TO SECOND`}return r}function XF(a){let{dateFieldName:t,unit:e,runsOnClientQueryEngine:i}=a,r=fC({runsOnClientQueryEngine:i}),n=`EXTRACT(YEAR FROM ${t} ${r})`,s=`EXTRACT(MONTH FROM ${t} ${r})`,o=`EXTRACT(DAY FROM ${t} ${r})`,l=`EXTRACT(HOUR FROM ${t} ${r})`,u=`EXTRACT(MINUTE FROM ${t} ${r})`,h=`EXTRACT(SECOND FROM ${t} ${r})`,p=[];switch(e){case Le.Second:p=[n,s,o,l,u,h];break;case Le.Minute:p=[n,s,o,l,u];break;case Le.Hour:p=[n,s,o,l];break;case Le.Day:case Le.Week:case Le.Month:case Le.Year:p=[n,s,o];break}return p}function KF(a){return a!==void 0&&"type"in a&&a.type==="imagery"}function ZF(a){return a!==void 0&&"type"in a&&a.type==="imagery-tile"}function QF(a){return a==="imagery"||a==="imagery-tile"}function Vi(a){return a!==void 0&&"type"in a&&QF(a.type)}function JF(a){let t=a?.iLayer?.layerType;return t==="ArcGISImageServiceLayer"||t==="ArcGISTiledImageServiceLayer"}function Cd(a,t){if(Vi(a))throw new Error(t??"Raster layer is not supported by this operation.")}function nae(a){return a!==void 0&&(!("url"in a)||!a.url)}function Ra(a){return a!==void 0&&"view"in a&&"layer"in a&&a.layer.type==="feature"}function mC(a){return a!==void 0&&"type"in a&&a.type==="feature"}function yC(a){return a!==void 0&&"type"in a&&a.type==="subtype-sublayer"}function eI(a){return mC(a)||yC(a)}function ur(a){return yC(a)?a.parent??void 0:a}function gC(a){return a?.capabilities?.query?.supportsDistance||ur(a)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function tI(a){return a?.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&a?.capabilities?.queryAttributeBins?.supportsStackBy}function Gu(a,t){return a!==void 0&&(Ra(a)||"capabilities"in a&&a.capabilities?.queryAttributeBins?.supportsDate===!0&&(Ci(t)||a.capabilities?.queryAttributeBins?.supportsStackBy))}function iI(a){let t=!1,e=ur(tt(a))?.sourceJSON;if(e){let i=e.queryBinsCapabilities?.supportsFixedIntervalBin,r=e.queryBinsCapabilities?.supportedStatisticTypes,n=[ie.Maximum,ie.Count].every(s=>r?.includes(s.toUpperCase())||r?.includes(s.toLowerCase()));t=i&&n}return t}function sae(a){let t;return Ra(a)?t=a.layer:t=a,t}function tt(a){let t;return Ra(a)?t=a.layer:t=a,t}function rI(a){let t=!1,e=ur(a)?.sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],i=a?.capabilities?.query.supportedSpatialAggregationStatistics??{};return t=e.includes("EnvelopeAggregate")||"envelope"in i&&i.envelope===!0,t}function oae(a){let{chartConfig:t,queryObject:e}=a,i;if(e){let r=tt(e);KF(r)?i={id:r.id,layerType:"ArcGISImageServiceLayer"}:ZF(r)?i={id:r.id,layerType:"ArcGISTiledImageServiceLayer"}:i={id:r.id,layerType:"ArcGISFeatureLayer"},r.url&&(i.url=r.url)}return{...t,iLayer:i}}function aI(a){let t;switch(a){case ls.Feet:t="esriSRUnit_Foot";break;case ls.Miles:t="esriSRUnit_StatuteMile";break;case ls.NauticalMiles:t="esriSRUnit_NauticalMile";break;case ls.USNauticalMiles:t="esriSRUnit_USNauticalMile";break;case ls.Meters:t="esriSRUnit_Meter";break;case ls.Kilometers:t="esriSRUnit_Kilometer";break}return t}async function nI(a){let{queryObject:t,queryConfig:e,outputFormat:i,dataFormat:r,outAnalytics:n}=a,{where:s,geometry:o,distance:l,units:u,timeExtent:h}=e,p,d=tt(t),c=ur(d);if(c){let f={where:Xt([s,c.definitionExpression])},m={query:f},y=_l(o)?.extent?.toJSON();if(y!==void 0){let v=aI(u),{xmin:b,ymin:P,xmax:w,ymax:T}=y;f.geometryType="esriGeometryEnvelope",f.geometry=`${b},${P},${w},${T}`,l!==void 0&&(f.distance=l.toString()),v!==void 0&&(f.units=v,o?.spatialReference?.wkid!=null&&(f.inSR=o.spatialReference.wkid.toString()))}h&&(f.time=`${h[0]},${h[1]}`);let g=`${c.url}/${c.layerId}/queryAnalytic?f=${i}&dataFormat=${r}&outAnalytics=${n}`;try{p=(await yd(g,m)).data?.features?.[0]?.attributes}catch(v){let b=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;throw new ki(Wi.QueryFeaturesError,b.errors.queryError,v)}}return p}function vC(a,t){return{lowerBoundaryAlias:`charts_lower_boundary_${a}`,upperBoundaryAlias:`charts_upper_boundary_${a}`,stackAlias:`charts_stack_alias_${t}`}}async function sI(a){let{chartConfig:t,queryObject:e,queryConfig:i,errorStrings:r,options:n}=a,s,o=tt(e),l=tI(o);if(l&&e&&"queryAttributeBins"in e){let{x:u,y:h,xTemporalBinning:p,yTemporalBinning:d}=t.series[0],{outTimeZone:c,firstDayOfWeek:f,includeLeapDay:m}=t,y=xI({queryObject:e,queryConfig:i,x:u,y:h,xTemporalBinning:p,yTemporalBinning:d,configTimeZone:c,firstDayOfWeek:f,includeLeapDay:m,options:n});try{s=await e.queryAttributeBins(y)}catch(g){throw new ki(Wi.QueryFeaturesError,r.errors.queryError,g)}}if(!l)throw new ki(Wi.QueryFeaturesError,r.errors.queryBinsNotSupported,r.errors.queryBinsNotSupported);return s}async function oI(a){let{chartConfig:t,queryObject:e,queryConfig:i,returnFeaturesExtent:r,errorStrings:n,abortKey:s}=a,o=t.series[0],l,{x:u,y:h}=o;i.groupByFieldsForStatistics=[u],u!==h&&i.groupByFieldsForStatistics.push(h),i&&r===!0&&!i.outStatistics?.some(p=>p.statisticType===ie.EnvelopeAggregate)&&i.outStatistics?.push({statisticType:ie.EnvelopeAggregate,onStatisticField:"1"});try{l=await ra({queryObject:e,queryConfig:i,abortKey:s})}catch(p){throw new ki(Wi.QueryFeaturesError,n.errors.queryError,p)}return l}async function lI(a){let{queryObject:t,queryConfig:e,xStep:i,xMin:r,xMax:n,x:s,y:o,yStep:l,errorStrings:u}=a,h;if(t&&"queryAttributeBins"in t&&Number.isFinite(i)&&Number.isFinite(l)&&Number.isFinite(r)&&Number.isFinite(n)&&i>0&&l>0){let p=SI({queryObject:t,queryConfig:e,xStep:i,xMin:r,xMax:n,x:s,y:o,yStep:l});try{h=await t.queryAttributeBins(p)}catch(d){throw new ki(Wi.QueryFeaturesError,u.errors.queryError,d)}}return h}async function uI(a){let{queryConfig:t,x:e,queryObject:i,chartSubType:r,isGaugeByFeature:n}=a,s,o=tt(i),{idField:l,isTraditionalTypeOID:u}=aa(o),h=ey({queryObject:i,queryConfig:t});h.outFields=n||r===A.PieNoAggregation||r===A.BarAndLineNoAggregation||r===A.BarAndLineSplitByNoAggregation?[u?l:"*"]:[e],h.outFields?.[0]===e&&(h.returnDistinctValues=!0);try{s=await i.queryFeatureCount(h)}catch{s=Number.NaN}return s}async function Qu(a){let{queryObject:t,queryConfig:e,abortKey:i}=a,{outStatistics:r}=e,n=new Map;if(r!==void 0&&r.length>0){let s=r.map(h=>{let{statisticType:p,onStatisticField:d,outStatisticFieldName:c}=h;return{statisticType:p,onStatisticField:d,outStatisticFieldName:c?.toUpperCase()}});e.outStatistics=s,delete e.num,delete e.orderByFields;let o=ey({queryObject:t,queryConfig:e}),l;try{l=await t.queryFeatures(o,{signal:i!==void 0?Qn.get(i)?.signal:void 0})}catch(h){if(!Ym.isAbortError(h)){let p=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;throw new ki(Wi.QueryFeaturesError,p.errors.queryError,h)}}let u=l?.features?.[0]?.attributes;u!==void 0&&r.forEach(h=>{let{outStatisticFieldName:p}=h;if(p!==void 0){let d=u[p.toLowerCase()]??u[p.toUpperCase()]??u[p];d!==void 0&&n.set(p,d)}})}return n}async function bC(a){let{queryObject:t,queryConfig:e,returnUniqueIdsOnly:i,abortKey:r}=a,n=[],s=tt(t),o=CI(s),l=ey({queryObject:t,queryConfig:e,maxRecordCountFactor:o});try{if(i===!0)if("queryObjectIds"in t)n=await t.queryObjectIds(l);else{let{idField:u,isTraditionalTypeOID:h}=aa(s),p=h?u:"*";l.outFields=[p],n=(await t.queryFeatures(l,{signal:r!==void 0?Qn.get(r)?.signal:void 0})).features.map(d=>d.getObjectId())}else n=(await t.queryFeatures(l,{signal:r!==void 0?Qn.get(r)?.signal:void 0})).features}catch(u){if(!Ym.isAbortError(u)){let h=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;throw new ki(Wi.QueryFeaturesError,h.errors.queryError,u)}}return n}async function hI(a){let t=[],{featureCount:e,maxRecords:i,queryConfig:r}=a,n=[],s=0,o=r?.start??0;for(;s<It.maxParallelRequests&&o<e;){let l={...a};l.queryConfig={...r,start:o,num:Math.min(i,e-o)},t.push(bC(l)),o+=i,s+=1}return n=(await Promise.all(t)).flat(),n}async function ra(a){let{queryObject:t,queryConfig:e,returnUniqueIdsOnly:i,featureCount:r,noBatch:n,abortKey:s}=a,o=[],l=tt(t),u=r??1,h=SC(l);if(n!==!0&&u>h&&l?.capabilities?.query.supportsPagination){let p=0,d=0,c=Math.ceil(u/h),f=Math.ceil(c/It.maxParallelRequests),m=[];for(;d<f;){p=d*It.maxParallelRequests*h;let y=hI({queryConfig:{...e,start:p},queryObject:t,maxRecords:h,featureCount:u,returnUniqueIdsOnly:i,abortKey:s});m.push(y),d+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(u)||u>=0)&&(o=await bC({queryObject:t,queryConfig:e,returnUniqueIdsOnly:i,abortKey:s}));return o}async function lae(a){let{queryObject:t,queryConfig:e,uniqueFeature:i,abortKey:r}=a,n={...e,returnDistinctValues:!0};return await ra({queryObject:t,abortKey:r,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:i===!0?1:void 0})}function pI(a){if(a!==void 0){let t=Qn.get(a);t!==void 0&&t.abort(),Qn.set(a,new AbortController)}}function xC(a){return{lowerBoundaryAlias:`charts_lower_boundary_${a}`,upperBoundaryAlias:`charts_upper_boundary_${a}`}}async function dI(a){let{queryObject:t,dateField:e,splitByField:i,queryConfig:r,temporalBinning:n}=a,s=[],o;if(n){let{unit:l}=n;try{if(l){let u=ur(tt(t))??void 0;if(o=Gu(u,i),o&&t&&"queryAttributeBins"in t){let h=vI({queryObject:t,queryConfig:r,temporalBinning:n,dateField:e,splitByField:i});s=(await t.queryAttributeBins(h)).features}}}catch(u){let h=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;throw new ki(Wi.QueryFeaturesError,h.errors.queryError,u)}}if(o===!1){let l=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;throw new ki(Wi.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function cI(a){let t=!a.geometry||a.geometry.type==="extent",e=(a.where??"").toUpperCase(),i=!e.includes("CURRENT_TIMESTAMP")&&!e.includes("CURRENT_DATE")&&!e.includes("CURRENT_TIME");return t&&i}function SC(a){let t=It.maxRecords;if(a&&"sourceJSON"in a&&a.sourceJSON?.maxRecordCount){let{sourceJSON:e}=a;t=e.maxRecordCount,e.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(t*=It.maxRecordCountFactor)}return t}function Xt(a,t){let e,i=Array.from(new Set(a)).filter(r=>r!=null&&r!==""&&!un(r));return i.sort((r,n)=>n.length-r.length),i.length===1?[e]=i:i?.forEach(r=>{r!==void 0&&(Ci(e)?e=`(${r})`:e?.includes(`(${r})`)||(e=`${e} ${t??"AND"} (${r})`))}),e??"1=1"}function fI(a,t){let e=t;if(a!==void 0){let i=tt(a),r=ur(i)?.timeExtent;r?.start!=null&&r?.end!=null&&(e=[r.start.valueOf(),r.end.valueOf()])}return e}function mI(a){let{queryObject:t,defaultGeometry:e,ignoreViewExtent:i}=a,r=e;if(!i&&Ra(t)){let n=t.view.extent,{xmin:s,xmax:o,ymin:l,ymax:u,zmin:h,zmax:p}=n;r={xmin:s,ymin:l,zmin:h,xmax:o,ymax:u,zmax:p,spatialReference:n.spatialReference.toJSON()}}return r}function _l(a){let t;return a!==void 0&&(t=Um.fromJSON(a)),t}function yI(a){return a===void 0?["*"]:Array.from(new Set(a))}function Od(a){let{queryType:t,queryObject:e,queryConfig:i}=a,{where:r,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:u,returnDistinctValues:h}=i??{},p=tt(e),d=ur(p)?.createQuery()??new uD,c,f=Dd(p).idFields;if(t==="AttributeBinsQuery"&&i?.objectIds?.[0]!==void 0&&f&&(c=`${f} IN (${i.objectIds.join(",")})`),t==="AttributeBinsQuery"&&(d=new lD(d.toJSON())),d.where=Xt([d.where,r,c]),"returnDistinctValues"in d&&(d.returnDistinctValues=h??!1),n!==void 0){let y=rI(p);d.outStatistics=n.filter(g=>g.statisticType!==ie.EnvelopeAggregate||y).map(g=>hD.fromJSON(g))}let m=_l(s);return m!==void 0&&(d.geometry=m,i?.spatialRelationship&&(d.spatialRelationship=i.spatialRelationship),gC(p)&&(o!==void 0&&(d.distance=o),l!==void 0&&(d.units=l))),u&&(d.timeExtent=new pD({start:u?.[0],end:u?.[1]})),cI(d)&&(d.cacheHint=!0),d}function gI(a){let t;switch(a){case si.Start:t="first";break;case si.End:t="last";break}return t}function vI(a){let{queryObject:t,queryConfig:e,temporalBinning:i,dateField:r,splitByField:n}=a,s=tt(t),o=Tr(t).find(g=>g.name===r)?.type,l=Od({queryType:"AttributeBinsQuery",queryObject:t,queryConfig:e}),{unit:u,size:h,timeAggregationType:p,start:d,end:c,offset:f,outTimeZone:m}=i,y=xC(r);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==wt.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:r,interval:{unit:u,value:h},start:d,end:c,offset:f?{unit:f.unit,value:f.size}:null},l.binParameters.type==="date"&&(s?.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=gI(p)),s?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Ci(n)){let g=ur(s)?.fields.find(v=>v.name===n)?.type;(!g||g==="string"||g==="integer"||g==="small-integer"||g==="big-integer"||g==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:g==="string"?"string":"integer"})}return l}function Jm(a){let{field:t,fieldType:e,unit:i,outTimeZone:r,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,addLeapDayExpression:l}=a,u,h,p=1,d=1;switch(i){case Fr.MinuteOfDay:e!==wt.DateOnly&&(h="MINUTE",p=0,d=59);break;case Fr.HourOfDay:e!==wt.DateOnly&&(h="HOUR",p=0,d=23);break;case Fr.DayOfWeek:h="DOW",d=7;break;case Fr.DayOfMonth:h="DAY",d=31;break;case Fr.DayOfYear:h="DOY",d=366;break;case Fr.WeekOfYear:h="WEEK",d=53;break;case Fr.MonthOfYear:h="MONTH",d=12;break;case Fr.QuarterOfYear:h="QUARTER",d=4;break}if(h){let c=o?` ${fC({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:r})}`:"";u=bI({addLeapDayExpression:l,temporalKey:h,field:t,intervalStatement:c})}return{expression:u,start:p,end:d}}function bI(a){let{addLeapDayExpression:t=!1,temporalKey:e,field:i,intervalStatement:r}=a,n;return t&&i.length&&e==="DAY"?n=`CASE WHEN (EXTRACT(MONTH FROM ${i})=2 AND EXTRACT(DAY FROM ${i})=29) THEN 0 ELSE EXTRACT (${e} FROM ${i}${r}) END`:n=`EXTRACT (${e} FROM ${i}${r})`,n}function DS(a){let{temporalBinning:t,xOrY:e,xOrYFieldType:i,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=a,{unit:u}=t??{},h,p,d,c;return i===wt.Date||i===wt.DateOnly||i===wt.TimestampOffset?{expression:p,start:d,end:c}=Jm({field:e,fieldType:i,unit:u,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,addLeapDayExpression:!l}):h=e,{field:h,expression:p,start:d,end:c}}function xI(a){let{queryObject:t,queryConfig:e,x:i,y:r,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,includeLeapDay:l,configTimeZone:u,options:h}=a,p=Tr(t),d=p.find(w=>w.name===i)?.type,c=p.find(w=>w.name===r)?.type,f=Od({queryType:"AttributeBinsQuery",queryObject:t,queryConfig:e});if(f.binParameters={type:"fixed-interval",interval:1},f.lowerBoundaryAlias=It.heatChartLowerBoundaryAlias,f.upperBoundaryAlias=It.heatChartUpperBoundaryAlias,d!==wt.DateOnly){let w=Intl.DateTimeFormat().resolvedOptions().timeZone,T=h?.view&&"timeZone"in h?.view?h.view.timeZone:void 0,F=u??T??w;F==="unknown"?F="Etc/UTC":F==="system"&&(F=w),f.outTimeZone=F}o!==void 0&&(f.binParameters.firstDayOfWeek=o);let m=DS({temporalBinning:n,xOrY:i,xOrYFieldType:d,addIntervalStatement:!1,includeLeapDay:l}),{field:y,expression:g,start:v,end:b}=m;y?f.binParameters.field=y:g&&(f.binParameters.expression=g,f.binParameters.expressionValueType="integer",f.binParameters.type==="fixed-interval"&&(v!==void 0&&(f.binParameters.start=v),b!==void 0&&(f.binParameters.end=b)));let P=DS({temporalBinning:s,xOrY:r,xOrYFieldType:c,addIntervalStatement:!1,includeLeapDay:l});return P.field?f.binParameters.stackBy={type:"field",value:P.field}:P.expression&&(f.binParameters.stackBy={type:"expression",value:P.expression,valueType:"integer",alias:r}),f}function SI(a){let{queryObject:t,queryConfig:e,xStep:i,xMin:r,xMax:n,x:s,y:o,yStep:l}=a,u=Od({queryType:"AttributeBinsQuery",queryObject:t,queryConfig:e}),h=vC(s,o);return u.lowerBoundaryAlias=h.lowerBoundaryAlias,u.upperBoundaryAlias=h.upperBoundaryAlias,u.binParameters={type:"fixed-interval",field:s,interval:i,start:r,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:h.stackAlias,valueType:"integer"}},u}function ey(a){let{queryObject:t,queryConfig:e,maxRecordCountFactor:i}=a,{groupByFieldsForStatistics:r,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:u}=e??{},h=Od({queryType:"Query",queryObject:t,queryConfig:e});h.returnGeometry=!1;let p=tt(t);return h.outFields=yI(u),h.groupByFieldsForStatistics=r??h.groupByFieldsForStatistics,h.orderByFields=n??[],h.objectIds=e?.objectIds,i!==void 0&&(h.maxRecordCountFactor=i),s!==void 0&&s!==""&&(h.gdbVersion=s),l!==void 0&&(h.num=l),o!==void 0&&(h.start=o,h.num=h.num??SC(p)),h}function CI(a){return a&&"sourceJSON"in a&&a.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?It.maxRecordCountFactor:void 0}var CC={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},Yn={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},ut={BadData:"badData",EmptyDataSet:"emptyDataSet",InvalidConfig:"invalidConfig",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"},wI=2048;function PI(a){let t;switch(a){case Yt.Log:t="log";break;case Yt.Sqrt:t="sqrt";break;case Yt.None:default:t=void 0;break}return t}async function _I(a){let{queryConfig:t,chartConfig:e,queryObject:i,options:r,abortKey:n}=a,s=e.series[0],{x:o,dataTransformationType:l,binCount:u}=s,h=tt(i);if(!Vi(h))throw new ki(Wi.LayerNotSupported);h.loaded||await h.load();let p=await h.generateRasterInfo(h.rasterFunction),d=r?.view,c=_l(t.geometry)??h.fullExtent,f=p.bandCount===1?0:p.bandInfos.findIndex(g=>g.name===o),m,y;if(d===void 0&&(l===void 0||l===Yt.None)&&u&&Array.isArray(p.histograms)&&p.histograms.length>f&&p.histograms[f].size%u===0&&Array.isArray(p.statistics)&&p?.statistics?.length>f)m=p.histograms[f],y=p.statistics[f];else{let g,v,b;if(d)g=d.resolution,v=d.resolution,b=d.spatialReference;else{let F=wI,D=2,O=p.width,N=p.height,L=Math.max(0,Math.ceil(Math.log(Math.max(O,N)/F)/Math.log(D))),E=D**L;g=p.pixelSize.x*E,v=p.pixelSize.y*E,b=h.spatialReference}let P=new CD({x:g,y:v,spatialReference:b}),w=PI(l),T=await nD(h,{bandIds:[f],geometry:c,histogramSize:u??void 0,pixelSize:P,transformType:w},{signal:n!==void 0?Qn.get(n)?.signal:void 0});y=T.statistics[0],m=T.histograms[0]}return{histogram:m,statistics:y}}function TI(a,t){let e=[],i=(a.max-a.min)/a.size;for(let r=0;r<a.size;r++){let n=a.min+r*i;e.push({minValue:n,maxValue:n+i,count:a.counts[r]})}if(t&&a.size!==t&&a.size%t===0){let r=a.size/t,n=[];for(let s=0;s<t;s++){let o=e[s*r].minValue,l=e[(s+1)*r-1].maxValue,u=0;for(let h=0;h<r;h++)u+=e[s*r+h].count;n.push({minValue:o,maxValue:l,count:u})}return n}return e}async function $I(a){let{chartConfig:t,queryConfig:e,queryObject:i,options:r,abortKey:n}=a;if(i===void 0)throw new Error("QueryObject is undefined!");let s,{statistics:o,histogram:l}=await _I({queryObject:i,chartConfig:t,queryConfig:e,options:r,abortKey:n});if(o&&l){let u=t.series[0].binCount??void 0,h=TI(l,u);h.length>0?s={valid:!0,count:h.length,data:{bins:h,min:o.min,max:o.max,mean:o.avg,median:o.median,stddev:o.stddev,sum:o.sum??o.avg*o.count,count:o.count}}:s={valid:!1,invalidType:ut.EmptyDataSet}}else s={valid:!1,invalidType:ut.BadData};return s}var OI=a=>a.series[0].x;function DI(a){let{chartConfig:t,layer:e,selectionDataItems:i}=a,r=Mm(e,OI(t)),n=i.map(l=>[l.minValue,l.maxValue]).reduce((l,u,h)=>{if(h===0)l.push([...u]);else{let p=l[l.length-1];p[1]===u[0]?p[1]=u[1]:l.push([...u])}return l},[]),s=t.series[0],{dataTransformationType:o}=s;switch(o){case Yt.Log:n.forEach(l=>{l[0]=Math.exp(l[0]),l[1]=Math.exp(l[1])});break;case Yt.Sqrt:n.forEach(l=>{l[0]=l[0]*l[0],l[1]=l[1]*l[1]});break;case Yt.None:}return n.length>0?{bandId:r,pixelRanges:n}:void 0}var FI={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};function Yu(a,t){let e,i,r=t??(n=>n);for(let n of a){let s=r(n);s==null||Number.isNaN(s)||((e===void 0||s<e)&&(e=s),(i===void 0||s>i)&&(i=s))}return{min:e,max:i}}function II(a,t){let e=0,i=0,r=t??(n=>n);for(let n of a){let s=r(n);s==null||Number.isNaN(s)||(e++,i+=s)}return e>0?i/e:void 0}function AI(a,t){let e=0,i=t??(r=>r);for(let r of a){let n=i(r);n==null||Number.isNaN(n)||(e+=n)}return e}function uae(a,t,e=1){let i=Math.max(0,Math.ceil((t-a)/e)),r=new Array(i);for(let n=0;n<i;n++)r[n]=a+n*e;return r}async function LI(a){let{queryObject:t}=a,e=!1;if(!Vi(t)){let i=eI(t),r=tt(t),n=ur(r);if(i&&n?.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await yd(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,u=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;e=l&&u}catch{}}}return e}function EI(a){let{x:t,y:e,trendlineXToY:i,data:r}=a,{min:n,max:s}=r?Yu(r,o=>o[t]):{min:Number.NaN,max:Number.NaN};return[{[t]:n??Number.NaN,[e]:i(n??Number.NaN)},{[t]:s??Number.NaN,[e]:i(s??Number.NaN)}]}function kI(a){let{data:t,x:e,y:i}=a,r=[];return t!==void 0&&(r=t.filter(n=>Number.isFinite(n[e])&&Number.isFinite(n[i])).map(n=>[n[e],n[i]])),r}async function VI(a){let{statsMap:t,queryObject:e,chartConfig:i,queryConfig:r}=a,n=i.series[0],{x:s,y:o}=n;Cd(e);let l=Number.NaN,u=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:h,outputFormat:p,typeKey:d,typeValue:c,fieldValue:f,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:g}=FI,v=`[{"${d}": "${c}", "${f}":"${s},${o}"}]`,b=await nI({queryObject:e,queryConfig:r,outputFormat:p,dataFormat:h,outAnalytics:v});if(b!==void 0){let P=Number.NaN,w=Number.NaN,{expr:T}=md(b,m),{expr:F}=md(b,y),{expr:D}=md(b,g);T!==void 0&&Number.isFinite(b[T])&&(P=b[T]),F!==void 0&&Number.isFinite(b[F])&&(w=b[F]),D!==void 0&&Number.isFinite(b[D])&&(l=b[D]);let{dataContextXMinField:O,dataContextXMaxField:N,dataContextYMinField:L,dataContextYMaxField:E}=V.scatterplotAggregationFields,B=t.get(O)??Number.NaN,U=t.get(N)??Number.NaN,q=t.get(L)??Number.NaN,Y=t.get(E)??Number.NaN,he=(U-B)/100,re=B-he,pe=Number.NaN;for(;!(pe>=q&&pe<=Y)&&re<=U;)re+=he,pe=P*re+w;let le=U+he,Pe=Number.NaN;for(;!(Pe>=q&&Pe<=Y)&&le>=B;)le-=he,Pe=P*le+w;u=[{[s]:re,[o]:pe},{[s]:le,[o]:Pe}]}return{r2:l,trendLinePoints:u}}function wC(a){let{data:t,chartConfig:e}=a,i=e.series[0],{x:r,y:n}=i,{r2:s,trendLinePoints:o}=V.scatterplotSeries,l=kI({data:t,x:r,y:n});if(l!==void 0){let u=vx(l),h=bx(u);s=u.m===0?0:xx(l,h),o=EI({x:r,y:n,trendlineXToY:h,data:t})}return{r2:s,trendLinePoints:o}}async function PC(a){let t=await LI(a),{chartConfig:e}=a,i=e.series[0],{x:r,y:n}=i,{r2:s}=V.scatterplotSeries,o=[{[r]:Number.NaN,[n]:Number.NaN},{[r]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},u=!1;if(t)try{l=await VI(a)}catch{u=!0}return(!t||u)&&(l=wC(a)),l}var MI=50,NI=4194304;async function RI(a){let{layer:t,chartConfig:e,rawData:i}=a,r=e.series[0],{x:n,y:s}=r,{idField:o}=aa(t),l=(await t.generateRasterInfo(t.rasterFunction)).bandInfos,u=l.length===1,h=u?l?.[0].name:"";return i.map(p=>({...u&&{[n]:p.attributes?.[h],[s]:p.attributes?.[h]},...p.attributes,[It.uniqueIdsName]:p.attributes?.[o]}))??[]}async function jI(a){let{queryObject:t,queryConfig:e,abortKey:i}=a;if(!t||!Vi(t))throw new ki(Wi.LayerNotSupported);return await YI({queryObject:t,queryConfig:e,imagerySkipFactor:MI,imageryMaxPixelCount:NI,abortKey:i})}async function BI(a){let{chartConfig:t,queryConfig:e,queryObject:i,sortData:r,calculateTrendLine:n,options:s,abortKey:o}=a;if(!i)throw new Error("QueryObject is undefined!");let l=await jI({queryObject:i,queryConfig:e,abortKey:o}),u=await RI({layer:i,chartConfig:t,rawData:l});r!==!1&&Uu({arrayToSort:u,sortingField:t.series[0].x,orderBy:hi.Ascending});let h=new Map,{r2:p,trendLinePoints:d}=n!==!1?await PC({data:u,statsMap:h,queryConfig:e,options:s,queryObject:i,chartConfig:t}):V.scatterplotSeries;return{dataItems:u,r2:p,trendLinePoints:d}}var WI=a=>({x:a.series[0].x,y:a.series[0].y});function qI(a){let{chartConfig:t,layer:e,selectionDataItems:i}=a,r;if(i.length>0){let{x:n,y:s}=WI(t),o=Mm(e,n),l=Mm(e,s);if(o!==void 0&&l!==void 0){let u=i[0]?.[n],h=i[0]?.[s],p=u,d=h;i.forEach(c=>{let f=c[n],m=c[s];f<u?u=f:f>p&&(p=f),m<h?h=m:m>d&&(d=m)}),r={xBandId:o,yBandId:l,pixelRanges:new XS({xmin:u,xmax:p,ymin:h,ymax:d})}}}return r}var _C="PixelID",zI=[$.BarSeries,$.HistogramSeries,$.ScatterSeries];async function hae(a,t){let e=!1;if(HF(zI,a))switch(Ae(a?.series)){case $.BarSeries:t.loaded||await t.load(),e=!!(await t.generateRasterInfo(t.rasterFunction)).attributeTable;break;case $.HistogramSeries:case $.ScatterSeries:e=!0;break}return e}async function HI(a){let{layer:t,chartConfig:e}=a,i;return Vi(t)?i=t:e?.iLayer?.layerType==="ArcGISImageServiceLayer"?i=await $C(e.iLayer):e?.iLayer?.layerType==="ArcGISTiledImageServiceLayer"&&(i=await OC(e.iLayer)),i}function UI(a){let t;switch(a){case"f32":t=wt.Single;break;case"f64":t=wt.Double;break;default:t=wt.Integer;break}return t}function TC(a){if(!a.loaded)throw new Error("Raster layer must be loaded to get its ID field name");let t=a.serviceRasterInfo?.attributeTable?.fields.find(e=>e.type==="oid");return t?t.name:_C}function GI(a){let{layer:t,rasterInfo:e,usePopupTemplateFieldsInfo:i}=a,r=e??t.serviceRasterInfo??void 0,n;if(!t.loaded||!r)throw new Error("Raster layer must be loaded and have rasterInfo available to fetch its fields info");try{if(r.attributeTable)n=r.attributeTable.fields.map(s=>s.toJSON());else{let s=UI(r.pixelType),o=r.bandInfos.map(l=>({name:l.name,alias:l.name,type:s}));i===!0&&t?.popupTemplate?.fieldInfos!==void 0&&o.map(l=>{let u=t.popupTemplate?.fieldInfos?.find(h=>h.fieldName?.toLowerCase()===l.name.toLowerCase())?.label;return u&&u!==l.name&&(l.alias=u),l}),n=[{name:_C,alias:"Pixel ID",type:wt.OID},...o]}}catch{n=[]}return n}var $C=rh(async a=>{let t={},e=a.layerDefinition;t.definitionExpression=e?.definitionExpression,t.id=a.id,a.url!==void 0&&(t.url=a.url),a.itemId!==void 0&&a.layerDefinition?.id!==void 0&&(t.portalItem={id:a.itemId});let i=new xD(t);return await i.load(),i},a=>JSON.stringify(a,Object.keys(a).sort())),OC=rh(async a=>{let t={};t.id=a.id,a.url!==void 0&&(t.url=a.url),a.itemId!==void 0&&(t.portalItem={id:a.itemId});let e=new SD(t);return await e.load(),e},a=>JSON.stringify(a,Object.keys(a).sort())),Mm=(a,t)=>{let e,i=a.serviceRasterInfo?.bandInfos;if(t&&i&&i.length>0){let r=t.toLowerCase(),n=i.findIndex(s=>s.name.toLowerCase()===r);n>-1&&(e=n)}return e},pae=a=>{let{chartConfig:t,layer:e,selectionDataItems:i}=a,r=Ae(t.series),n;switch(r){case $.HistogramSeries:n=DI({chartConfig:t,layer:e,selectionDataItems:i});break;case $.ScatterSeries:n=qI({chartConfig:t,layer:e,selectionDataItems:i});break;default:n=void 0;break}return n};async function YI(a){let{queryObject:t,queryConfig:e,imagerySkipFactor:i,imageryMaxPixelCount:r,abortKey:n}=a,s=[];if(t!==void 0)try{let o=tt(t);o.loaded||await o.load();let l={geometry:_l(e.geometry)??o.fullExtent,autoResample:!0,maxPixelCount:r,skipFactor:i},u=n&&Qn.get(n)?.signal||void 0,h=await sD(o,l,{signal:u});s=ZS.fromJSON(h.featureSet).features}catch{s=[]}return s}function XI(a){let{queryObject:t,defaultGeometry:e,ignoreViewExtent:i,viewExtent:r}=a,n=e;if(!i&&r){let{xmin:s,xmax:o,ymin:l,ymax:u,zmin:h,zmax:p}=r;n={xmin:s,ymin:l,zmin:h,xmax:o,ymax:u,zmax:p,spatialReference:r.spatialReference.toJSON()}}else if(!n&&t.fullExtent){let{xmin:s,xmax:o,ymin:l,ymax:u,zmin:h,zmax:p}=t.fullExtent;n={xmin:s,ymin:l,zmin:h,xmax:o,ymax:u,zmax:p,spatialReference:t.fullExtent.spatialReference.toJSON()}}return n}function KI(a){let t,e,i;return a!==void 0&&(t=a.type,(t===qi.UniqueValue||t===qi.ClassBreaks)&&(e=a.field??void 0,t===qi.ClassBreaks&&(i=a.normalizationField??void 0))),{rendererType:t,rendererField:e,rendererNormalizationField:i}}var DC=rh(async(a,t)=>{let e=a.featureCollection,i,r;if(e?.layers?.[0]!==void 0){let o=e.layers[0];i=o.featureSet,r=o.layerDefinition}else r=a.layerDefinition;let n={};if(i!==void 0){if(n.source=ZS.fromJSON(i).features,r?.fields!==void 0&&(n.fields=r.fields.map(o=>fD.fromJSON(o))),r?.objectIdField!==void 0&&(n.objectIdField=r.objectIdField),r?.geometryType!==void 0){let o=Um.fromJSON({geometryType:r.geometryType});o?.type!==void 0&&o?.type!=="extent"&&(n.geometryType=o.type)}r?.spatialReference!==void 0&&(n.spatialReference=r.spatialReference)}else n.id=a.id,r?.id!==void 0&&(n.layerId=r.id),a.url!==void 0&&(n.url=a.url),a.itemId!==void 0&&r?.id!==void 0&&(n.portalItem={id:a.itemId});if(r!==void 0){let o=r.drawingInfo;o?.renderer!==void 0&&(n.renderer=Gm.fromJSON(o.renderer))}let s=new dD(n);return await s.load({signal:t}),s},a=>JSON.stringify(a));async function dae(a){let t;switch(a?.layerType??""){case"ArcGISFeatureLayer":t=await DC(a);break;case"ArcGISImageServiceLayer":t=await $C(a);break;case"ArcGISTiledImageServiceLayer":t=await OC(a);break;default:throw new ki(Wi.LayerNotSupported)}return t}async function cae(a){let{layer:t,view:e,chartConfig:i,filterByExtent:r,abortSignal:n}=a,s=Vi(t)||JF(i),o;if(s)o=await HI(a);else{let l=tt(t),u=ur(l);u!==void 0?r&&e!==void 0&&!u.isTable?(u.outFields=["*"],o=await e.whenLayerView(u)):o=t:i?.iLayer&&i.iLayer?.layerType==="ArcGISFeatureLayer"&&(o=await DC(i.iLayer,n))}return o}function Tr(a,t){let e=tt(a),i=[];if(e!==void 0){let r=t===!0&&e?.popupTemplate?.fieldInfos!==void 0;Vi(e)?i=GI({layer:e,usePopupTemplateFieldsInfo:t}):i=e.fields.map(n=>{let s=n.toJSON();if(r){let o=e.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return i}function FC(a,t=[]){return t.find(e=>e.name===a)}function Dd(a){let t,e=!1;if(Vi(a))t=[TC(a)];else{let i=ur(a);i&&("uniqueIdFields"in i&&i.uniqueIdFields&&i.uniqueIdFields.length>0?t=i.uniqueIdFields:(t=[i.objectIdField],e=!0))}return{idFields:t,isTraditionalTypeOID:e}}function aa(a){let t="",e=!1;if(Vi(a))t=TC(a);else if(a){let i=Dd(a);e=i.isTraditionalTypeOID,i.idFields&&(t=i.idFields[0])}return{idField:t,isTraditionalTypeOID:e}}function bl(a){let t=[wt.Single,wt.Double,wt.SmallInteger,wt.Integer,wt.BigInteger];return a!==void 0&&t.includes(a.type)}function ZI(a){return a?.type===wt.Date||a?.type===wt.DateOnly||a?.type===wt.TimestampOffset}function fae(a){return a?.type===wt.String}function mae(a){return a?.type===wt.TimeOnly}function yae(a){let t=[wt.SmallInteger,wt.Integer,wt.BigInteger];return a!==void 0&&t.includes(a.type)}function QI(a){return a.filter(t=>ZI(t)).map(t=>t.name)}function gae(a){return a.filter(t=>bl(t)).map(t=>t.name)}function Nm(a,t){let e;if(t){let i=tt(a).getFieldDomain(t);i instanceof cD&&(e=i)}return e}function Rm(a,t){let e=t?.getName(a?.toString())??t?.getName(a)??t?.getName(Number(a));return e===null&&(e=void 0),e}function FS(a){let{queryObject:t,fieldName:e,fieldValue:i}=a;return Vi(t)?void 0:Rm(i,Nm(t,e))}async function IC(a){let t=[];return a&&!ur(a)?.isTable&&a.fieldsIndex&&(t=await KS.getRendererFields(a.renderer,a.fieldsIndex)),t}function JI(a){let t="/rest/services",e=a.toLowerCase(),i=e.indexOf(t);return e=i>-1?a.substring(0,i):a,`${e}/rest/info`}async function e1(a){let t=!0,e=".arcgis.com/",i=a?.url,r=i?.includes(e);if(i&&r&&ur(a)?.sourceJSON?.serviceItemId!==void 0){let n=JI(i);try{let s=(await yd(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await yd(o,{authMode:"auto",query:{f:"json"}})).data,u=new mD({sourceJSON:l});await u.load(),t=u?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return t}function t1(a){let{queryObject:t,fieldToMatch:e,returnUndefinedIfNotFound:i}=a,r=Tr(t),n=i1(r,e),s=i?"":e;return n?.name??s}function i1(a,t){let e=a.find(i=>t===i.name);return e||(e=a.find(i=>t.toUpperCase()===i.name.toUpperCase())),e}function vae(a){let{fieldsList:t,queryObject:e,returnUndefinedIfNotFound:i}=a,r=t;return r!==void 0&&(r=r.map(n=>t1({queryObject:e,fieldToMatch:n,returnUndefinedIfNotFound:i}))),r}function AC(a){let{queryObject:t,chartConfig:e,runtimeDataFilters:i,ignoreViewExtent:r,viewExtent:n}=a,{series:s,dataFilters:o}=e,{where:l,gdbVersion:u,timeExtent:h,geometry:p,distance:d,units:c,objectIds:f,spatialRelationship:m}=o??{},{where:y,gdbVersion:g,timeExtent:v,geometry:b,distance:P,units:w,objectIds:T,spatialRelationship:F}=i??{},D=s[0],{query:O}=D,{where:N}=O??{},L=Re(s),E={...O};return E.where=Xt([l,y]),L!==A.BarAndLineSplitBy&&L!==A.BoxPlotMonoFieldAndSplitBy&&L!==A.BoxPlotMonoFieldAndCategoryAndSplitBy&&L!==A.BoxPlotMultiFieldsAndSplitBy&&L!==A.BarAndLineSplitByNoAggregation&&(E.where=Xt([E.where,N])),e.orderOptions?.orderByFields!==void 0&&(E.orderByFields=e.orderOptions.orderByFields),E.gdbVersion=g??u,E.timeExtent=fI(t,v??h),E.geometry=Vi(t)?XI({queryObject:t,defaultGeometry:b??p,ignoreViewExtent:r,viewExtent:n}):mI({queryObject:t,defaultGeometry:b??p,ignoreViewExtent:r}),E.distance=P??d,E.units=w??c,E.objectIds=T??f,E.spatialRelationship=F??m,O?.outStatistics?.[0]?.statisticType===ie.Count&&(E.returnDistinctValues=O?.returnDistinctValues??!1),E}var r1=a=>{let t;if("portalItem"in a){let e=a.portalItem?.id;typeof e=="string"&&(t=e)}return t};function bae(a){let{view:t,portalItemId:e}=a,i;if(t&&e){let r=Array.from(t.map?.allLayers??[]).find(n=>r1(n)===e);r&&(i=r)}return i}function xl(a){return Ae(a?.series)===$.HeatSeries}function or(a){return Ae(a?.series)===$.BoxPlotSeries}function IS(a){let{orderBy:t,axisFormatOptions:e}=a;return t!==void 0&&e!==void 0&&(!Array.isArray(t)||e?.type===$.CategoryAxisFormat)}function AS(a,t,e){let i=0;if(Array.isArray(e)){let r=a?.toString()??"",n=t?.toString()??"",s=e.indexOf(r),o=e.indexOf(n);s===-1&&(s=e.length),o===-1&&(o=e.length),i=s-o}else e===hi.Descending?typeof a=="string"&&typeof t=="string"?i=t.localeCompare(a,void 0,{numeric:!0}):i=(Number(t)||0)-(Number(a)||0):e===hi.Ascending&&(typeof a=="string"&&typeof t=="string"?i=a.localeCompare(t,void 0,{numeric:!0}):i=(Number(a)||0)-(Number(t)||0));return i}function a1(a){let{arrayToSort:t,chartConfig:e,dataOrderParameters:i}=a,r,n,s=!1,o=!1,l=!1;i&&t.length>1&&([r,n]=i,s=r&&r.sortingField.length>0&&IS({orderBy:r.orderBy,axisFormatOptions:e.axes?.[0]?.valueFormat}),o=n&&n.sortingField.length>0&&IS({orderBy:n.orderBy,axisFormatOptions:e.axes?.[1]?.valueFormat}),l=s||o),l&&t.sort((u,h)=>{let p=0;if(s&&r?.sortingField){let d=r.orderBy;p=AS(u[r.sortingField],h[r.sortingField],d)}if(p===0&&o&&n?.sortingField){let d=n.orderBy;p=AS(u[n.sortingField],h[n.sortingField],d)}return p})}function Xu(a){let{arrayToSort:t,chartConfig:e,fieldList:i,isTimeBinningSeries:r}=a;if(r!==!0&&t[0]!==void 0){let{series:n}=e,s=Re(n),o=Ae(n),l=ja(e),u=qm(e);if(xl(e)&&t!==void 0)a1({arrayToSort:t,chartConfig:e,dataOrderParameters:u});else if(u?.[0]!==void 0&&t!==void 0&&t.length>1){let{orderBy:h}=u[0],{sortingField:p}=u[0],d=e.orderOptions?.data?.orderType===cr.Category,c=u[0].preferLabel!==!1,f=s===A.BarAndLineFromFields||s===A.PieFromFields||s===A.BoxPlotMultiFields||s===A.BoxPlotMultiFieldsAndSplitBy,m=f||o===$.PieSeries,y=s===A.PieNoAggregation||s===A.BarAndLineNoAggregation||s===A.BarAndLineSplitByNoAggregation;if(d&&m&&(!c||(o===$.LineSeries||o===$.RadarSeries)&&l===$.NumberAxisFormat)&&(p=V.originalCategoryValue),Array.isArray(h))hF({arrayToSort:t,orderBy:h,sortingField:p,fieldList:i,isByFieldsChart:f,preferLabel:c});else{let g=l===$.DateAxisFormat&&d;Uu({arrayToSort:t,orderBy:h,sortingField:p,forceAscendingOrder:g,isNonAggregated:y,sortByCategory:d,preferLabel:c,isPieOrByFieldsChart:m})}}}}function xae(a){let{alteredConfig:t,dataInfo:e,fieldList:i,options:r,queryObject:n}=a,s=Id(e.data);if(s&&Xu({arrayToSort:s,chartConfig:t,fieldList:i,isTimeBinningSeries:as({seriesConfig:fn(t),xAxisValueFormatType:ja(t),setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,queryObject:n})}),or(t)){let o=e?.data&&"meanLines"in e.data?e.data.meanLines:void 0;o&&Xu({arrayToSort:o,chartConfig:t})}}function Sae(a){let{config:t,previousConfig:e,dataUpdateNeededProps:i,updatedProps:r,options:n,filterBySelection:s,previousSelectionOIDs:o,fieldList:l,queryObject:u}=a,h=Array.from(r.keys()).some(d=>{let c=!1;if(i.includes(d)){let{oldValue:f,newValue:m}=r.get(d)??{};c=!Ha(f,m)}return c}),p;if(!h&&r.get("layer")){let{oldValue:d,newValue:c}=r.get("layer")??{};h=Ra(d)!==Ra(c)}if(r.get("layer")&&(p={common:{layerChanged:!0}}),t&&e){let d=eA({previousConfig:e,newConfig:t,options:n,previousFilterBySelection:r.has("filterBySelection")?r.get("filterBySelection")?.oldValue:s,previousSelectionOIDs:o,fieldList:l,queryObject:u});p=d.dataUpdateDetails,h=h||d.dataUpdateNeeded}return{dataUpdateNeeded:h,dataUpdateDetails:p}}function n1(a){return a?.type==="uniqueValue"&&(a.uniqueValueInfos=a.uniqueValueInfos.map(t=>{let e=t.value===null?V.nullValue:t.value;return{...t,value:e}})),a}async function s1(a){let{data:t,queryObject:e,chartConfig:i,allowColorMatch:r}=a,n=!1,s=[];if(r&&!Vi(e)){let{series:o,chartRenderer:l}=i,u=n1(l),h=u?ml.ChartRenderer:ml.LayerRenderer,p=e?tt(e):void 0,d=u??p?.renderer,c;p&&h===ml.LayerRenderer?s=await IC(p):h===ml.ChartRenderer&&(s=P1(d));let f=m1(u,p?.renderer),m=x1({chartRenderer:l,queryObject:e}),y=Ae(o),g=Re(o),v=fn(i),b=Ji(v.query?.where);c=new Map;for(let P=0;P<(y===$.HistogramSeries&&t.length>0?1:t.length);P+=1){let w=t[P],T=await S1({seriesConfig:i.series,dataItem:w,renderer:d,rendererType:f,rendererOrigin:h,chartSubType:g,splitByField:b,graphicTemplate:m,mapAttributesToSymbol:c,rendererFieldNames:s});n=n||T.colorMatchApplied}}return{dataItems:t,colorMatchApplied:n,rendererFieldNames:s}}function o1(a){let{dataContext:t,dataIndex:e,objectIdField:i}=a;return`${on.sliceIdPrefix}-${t[i??""]?.toString()??e}`}function Cae(a){let{chartConfig:t,chartData:e,fieldList:i}=a,r=Re(t.series)===A.PieFromFields;if(t.orderOptions?.data!==void 0||r){Xu({arrayToSort:e,chartConfig:t,fieldList:i});let{slices:n}=t.series[0];n!==void 0&&n.sort((s,o)=>{let l=e.findIndex(h=>h[V.pieChart.technicalFieldSliceId]===s.sliceId),u=e.findIndex(h=>h[V.pieChart.technicalFieldSliceId]===o.sliceId);return l-u})}}function LS(a,t){let e;return a!==void 0&&t!==void 0&&(e=a.find(i=>i.sliceId===t)),e}function l1(a){let{dataContext:t,isNonAggregatedChart:e,x:i,dataIndex:r,objectIdField:n,isPieFromFields:s}=a,o="";return s===!0?o=t[V.originalCategoryValue]??t[Zi]:e?o=o1({dataContext:t,dataIndex:r,objectIdField:n}):(o=t[V.originalCategoryValue],o===void 0||o===""?o=on.emptySliceId:o===null&&(o=on.nullSliceId),o=o??t[i]),o===void 0&&(o=on.undefinedSliceId),o.toString()}function u1(a){let{dataContext:t,sliceFromConfig:e,isGroupOfSlices:i,seriesConfig:r,fieldList:n,isPieFromFields:s,labelUpdateNeeded:o,colorMatch:l,utilsStrings:u}=a,{sliceGrouping:h}=r,{x:p}=r;s&&(p=Zi);let d=t[p]??t[V.originalCategoryValue],c=t[V.originalCategoryValue]??d,f=d;return o&&(i?f=h?.label??h?.originalLabel?.toString()??u.pieChart.defaultSliceGroupingLabel:l&&t[V.rendererSymbolField]?.label!==void 0?f=t[V.rendererSymbolField].label:e!==void 0||n!==void 0?(e?.label&&e.label!==e?.sliceId&&(f=e?.label),f===c&&c!==void 0&&c!==null&&(f=Sd(n,c))):e===void 0&&(f=c),f===V.nullValue?f="null":f!=null&&(f=f.toString())),f}function wae(a,t){return a?.[0]?.sliceGrouping?.percentageThreshold!==t?.[0]?.sliceGrouping?.percentageThreshold}function Pae(a){let{groupOfSlicesDataContext:t,chartData:e}=a;return(t??e?.find(i=>i[on.defaultGroupOfSlicesId]===!0))?.[V.pieChart.technicalFieldGroupedSlices]}function _ae(a){let{dataContext:t,pieSlicesSymbols:e,seriesConfig:i}=a,r=i.fillSymbol?{...i.fillSymbol}:gd();if(ty(t))r={...V.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let n=t[V.pieChart.technicalFieldSliceId],s=e?.slices?.find(o=>o.sliceId===n);r=sa(s?.fillSymbol??i.fillSymbol??gd())}return r}function h1(a,t,e){let i=new Set(Array.from(t)),r=a.findIndex(n=>!i.has(jm(n)));return r!==-1?r:e}function jm(a){return`${a[0]},${a[1]},${a[2]}`}function p1(a){let{chartConfig:t,queryObject:e,usePopupTemplateFieldsInfo:i,labelUpdateNeeded:r,utilsStrings:n}=a,{series:s}=t,o=s[0],{x:l}=o,u=!sC({chartConfig:t}),h=Re([o]),p=h===A.PieFromFields,d=tt(e),c=aa(d).idField,f=Tr(e,i);return{x:l,isNonAggregatedChart:u,objectIdField:c,isPieFromFields:p,seriesConfig:o,fieldList:f,labelUpdateNeeded:r,chartSubType:h,colorMatch:Zm(t),utilsStrings:n}}function d1(a){let{dataContext:t,seriesConfig:e,existingSlicesColors:i,isGroupOfSlices:r,sliceFromConfig:n,dataIndex:s,colorMatch:o,chartSubType:l}=a,u=r?{...V.pieChart.sliceGrouping.fillSymbol,...e.sliceGrouping?.fillSymbol}:sa(n?.fillSymbol??e.fillSymbol),h=kC({dataItem:t,seriesConfig:e,chartSubType:l,colorMatch:o}),p=s;u?.color||(p=h1(iC,i,s));let d={dataItem:{dataContext:t}},{symbolWithColorInfo:c}=RF({element:d,seriesConfig:e,y:e.y,seriesSymbol:u??gd(),seriesIndex:p,rendererSymbol:h,colorMatch:o,isChartFillSymbol:!0});return c}function ES(a,t){let{x:e,isNonAggregatedChart:i,objectIdField:r,isPieFromFields:n,seriesConfig:s,fieldList:o,labelUpdateNeeded:l,colorMatch:u,chartSubType:h,utilsStrings:p}=a,d=[],c,f,m=new Set;return t?.forEach((y,g)=>{let v=l1({dataContext:y,x:e,isNonAggregatedChart:i,dataIndex:g,objectIdField:r,isPieFromFields:n});y[V.pieChart.technicalFieldSliceId]=v;let b=LS(s.slices,v);b?.fillSymbol?.color!==void 0&&m.add(jm(b.fillSymbol.color))}),t?.forEach((y,g)=>{let v=y[V.pieChart.technicalFieldSliceId],b=LS(s.slices,v),P=ty(y),w=d1({dataContext:y,seriesConfig:s,existingSlicesColors:m,isGroupOfSlices:P,sliceFromConfig:b,dataIndex:g,colorMatch:u,chartSubType:h});w.color&&m.add(jm(w.color));let T=u1({dataContext:y,sliceFromConfig:b,isGroupOfSlices:P,seriesConfig:s,fieldList:o,isPieFromFields:n,labelUpdateNeeded:l,colorMatch:u,utilsStrings:p}),F={sliceId:v,label:T,fillSymbol:w};F.originalLabel=b?.originalLabel??(y?.[V.originalCategoryValue]!==void 0?y?.[V.originalCategoryValue]:F.label),P?(f=y[V.pieChart.technicalFieldGroupedSlices],s.sliceGrouping!==void 0&&(c={sliceId:s.sliceGrouping.sliceId,percentageThreshold:s.sliceGrouping.percentageThreshold,label:T,originalLabel:s.sliceGrouping.originalLabel??T,fillSymbol:w})):d.push(F)}),{slices:d,groupOfSlicesSymbols:c,groupOfSlices:f}}function c1(a){let{creation:t,dataInfo:e,pieChartDataActuallyChanged:i,chartConfig:r,previousConfig:n,queryObject:s,usePopupTemplateFieldsInfo:o,utilsStrings:l}=a,u;if(r.series[0].type===$.PieSeries){let h=Id(e.data),p=Z1({oldConfig:n,newConfig:r}),d=K1(n,r),c=J1(n,r),f=p1({chartConfig:r,queryObject:s,usePopupTemplateFieldsInfo:o,labelUpdateNeeded:t||i||p||c||d,utilsStrings:l}),{slices:m,groupOfSlicesSymbols:y,groupOfSlices:g}=ES(f,h),{slices:v}=ES(f,g??[]);u={slices:m,groupedSlices:v,groupOfSlices:y}}return u}async function Tae(a){let{creation:t,dataInfo:e,dataInfo:{data:i},pieChartDataActuallyChanged:r,chartConfig:n,previousConfig:s,pieSlicesSymbols:o,queryObject:l,options:u,utilsStrings:h}=a,{slices:p}=o??{},{chartWillRender:d}=u??{},c=Ae(n.series),f=!1,m=n,y=sa(o),g,v;if(d&&(c===$.PieSeries||c===$.GaugeSeries)){f=!0,m=sa(n);let b=sE({data:i,seriesConfig:n.series});m=await d({chartConfig:m,data:b,slices:p}),!Vi(l)&&c===$.PieSeries&&i&&"dataItems"in i&&({colorMatchApplied:g,rendererFieldNames:v}=await s1({data:i.dataItems,queryObject:l,chartConfig:m,allowColorMatch:f1({chartConfig:m,queryObject:l})}),y=c1({creation:t,dataInfo:e,chartConfig:m,previousConfig:s,queryObject:l,pieChartDataActuallyChanged:r,usePopupTemplateFieldsInfo:u?.usePopupTemplateFieldsInfo,utilsStrings:h}))}return{changesApplied:f,alteredConfig:m,alteredPieSlicesSymbols:y,colorMatchApplied:g,rendererFieldNames:v}}function ty(a){return a?.[on.defaultGroupOfSlicesId]===!0}function f1(a){let{chartConfig:t,queryObject:e}=a,i=!1;if(t.chartRenderer)i=!0;else{let{series:r}=t,n=Ae(r),s=Re(r),o=fn(t),l=as({seriesConfig:o,queryObject:e}),u=tt(e)?.renderer;switch(u?.type){case qi.Simple:i=n===$.HistogramSeries||n===$.ScatterSeries||s===A.BarAndLineMonoField||s===A.BoxPlotMonoField||s===A.BoxPlotMultiFields||s===A.BoxPlotMonoFieldAndCategory||s===A.BarAndLineNoAggregation&&r.length===1&&!l;break;case qi.UniqueValue:{let h=u?.field,p=Ji(o.query?.where),{x:d}=o;i=(s===A.BoxPlotMonoFieldAndSplitBy||s===A.BoxPlotMultiFieldsAndSplitBy||s===A.BoxPlotMonoFieldAndCategoryAndSplitBy||s===A.BarAndLineSplitByNoAggregation||s===A.BarAndLineSplitBy)&&h===p||(s===A.BoxPlotMonoFieldAndCategory||s===A.PieFromCategory||s===A.BarAndLineMonoField)&&h===d||s===A.BarAndLineNoAggregation||s===A.PieNoAggregation||n===$.ScatterSeries}break;case qi.PieChart:i=s===A.PieFromFields||s===A.BarAndLineFromFields||s===A.BarAndLineMultiFields||s===A.BarAndLineMonoField||s===A.BoxPlotMonoField||s===A.BoxPlotMultiFields||s===A.BoxPlotMonoFieldAndCategory||s===A.BoxPlotMultiFieldsAndCategory;break;case qi.ClassBreaks:i=n===$.HeatSeries||n===$.ScatterSeries||s===A.BarAndLineNoAggregation||s===A.PieNoAggregation;break;case qi.Dictionary:case qi.DotDensity:case qi.Heatmap:break}}return i}function m1(a,t){return SF(a?.type)??t?.type}function y1(a){let t=V.rendererSymbolField,e=t in a?t:void 0;if(!e){let i=a[V.originalCategoryValue];e=Object.keys(a).find(r=>{let n=a[r];return r.includes(t)&&n?.label&&n?.uniqueValue===i}),e||(e=Object.keys(a).find(r=>r.includes(t))??"")}return a[e]?.label}function g1(a){return a?.type!==void 0&&(a.color!==void 0||a.label!==void 0||a.style!==void 0||a.outline!==void 0)}function LC(a){let{symbolField:t,dataItem:e,rendererSymbol:i,rendererOrigin:r}=a,n=!1;if(!g1(i))delete e[t];else{let s={...i};s.color!==void 0&&r===ml.LayerRenderer&&(s.color[3]=sr*255),r===ml.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),e[t]=s,n=!0}return n}function v1(a){let{renderer:t,seriesConfig:e,chartSubType:i,dataItem:r,rendererOrigin:n}=a,s,o=!1,l=Ae(e),{outline:u,attributes:h}=t;return h.forEach(p=>{let{field:d}=p,{color:c,label:f}=p,m;Array.isArray(c)&&c?.length===4?m=c:c&&"toRgba"in c&&(m=c.toRgba());let y=!1,g=!0;switch(l){case $.BarSeries:case $.LineSeries:case $.ComboLineAndBarSeries:case $.RadarSeries:if(i!==A.BarAndLineFromFields){let v=e.find(b=>b.query?.outStatistics?.[0]?.onStatisticField===d);v!==void 0&&"y"in v?d=[v.y].flat()[0]:d=""}y=i!==A.BarAndLineFromFields||d===r[V.originalCategoryValue];break;case $.PieSeries:y=i===A.PieFromFields&&d===r[V.originalCategoryValue];break;case $.BoxPlotSeries:i===A.BoxPlotMonoField||i===A.BoxPlotMonoFieldAndCategory?y=d===e[0].y:d&&(i===A.BoxPlotMultiFields||i===A.BoxPlotMultiFieldsAndCategory)&&(y=e.map(v=>v.y).flat().includes(d)),g=!1;break}y&&m&&(s={type:dt.SMS,color:m,label:g&&f?f:void 0},u!=null&&(s.outline=u),LC({dataItem:r,symbolField:i===A.BarAndLineFromFields||i===A.PieFromFields?V.rendererSymbolField:`${V.rendererSymbolField}_${d}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function b1(a){let{seriesConfig:t,chartSubType:e,rendererType:i}=a,r=V.rendererSymbolField;if(i===qi.UniqueValue){if(cC(e)){let n=_r({where:t.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?r=V.nullValue:e===A.BarAndLineSplitBy&&typeof t.y=="string"?r=t.y:e===A.BarAndLineSplitByNoAggregation&&typeof t.y=="string"?r=`${t.y}_${n}`:r=`${n}`}}else if(i===qi.PieChart)switch(e){case A.BoxPlotMultiFields:r=Array.isArray(t.y)?t.y.flat():t.y;break;case A.BarAndLineMonoField:case A.BarAndLineMultiFields:case A.BoxPlotMonoField:case A.BoxPlotMonoFieldAndCategory:case A.BoxPlotMultiFieldsAndCategory:r=t.y;break}return r}function EC(a){let{seriesConfig:t,chartSubType:e,rendererType:i,dataItem:r}=a,n=b1({seriesConfig:t,chartSubType:e,rendererType:i});return n instanceof Array&&t.type===$.BoxPlotSeries&&i===qi.PieChart&&r!==void 0&&(n=n.find(s=>s===r[Pl])??n[0]),n=n!==V.rendererSymbolField?`${V.rendererSymbolField}_${n.toString()}`:n,n}function x1(a){let{chartRenderer:t,queryObject:e}=a,i=t!==void 0?{...tt(e),renderer:Gm.fromJSON(t)}:tt(e);return new yD({layer:i})}async function S1(a){let{seriesConfig:t,dataItem:e,renderer:i,rendererType:r,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:u,mapAttributesToSymbol:h}=a,p,d=!1;if(r===qi.PieChart){let c=v1({renderer:i,seriesConfig:t,chartSubType:s,dataItem:e,rendererOrigin:n});p=c.rendererSymbol,d=c.colorMatchApplied}else if(!ty(e)){let{x:c}=t[0],f=new Map;o&&o.trim()!==""?t.forEach(m=>{if(m.type===$.BarSeries||m.type===$.LineSeries||m.type===$.BoxPlotSeries||m.type===$.RadarSeries){let y=EC({seriesConfig:m,chartSubType:s,rendererType:r,dataItem:e}),g=_r({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});f.set(y,{...e,[o]:g})}}):t[0].type===$.HeatSeries&&r===qi.ClassBreaks?f.set(V.rendererSymbolField,{[ht.valueField]:e[ht.valueField]}):f.set(Ae(t)===$.HistogramSeries?V.rendererSymbolFieldForHistogram:V.rendererSymbolField,{...e,[c]:uF(e)});try{let m=Array.from(f.entries()),y=l.clone();y.layer=l.layer;let g=i?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[b,P]=m[v];if(kS({mode:"encode",x:c,splitByField:o,attributes:P}),u&&u.length>0&&Object.keys(P).forEach(w=>{u.includes(w)||delete P[w]}),y.attributes=P,h?.has(JSON.stringify(P)))p=h.get(JSON.stringify(P));else{if(p=(await wl.getDisplayedSymbol(y))?.toJSON(),p!=null){if(p.color===void 0){let T=(await wl.getDisplayedColor(y))?.toJSON();T&&(p.color=T.length===4?T:[...T,255])}let w=await wl.getLegendLabel(y);w!=null&&w!==""&&(p.label=w,p.uniqueValue=g?.find(T=>T.label===w)?.value??void 0)}h?.set(JSON.stringify(P),p)}kS({mode:"revert",x:c,splitByField:o,attributes:e}),LC({dataItem:e,symbolField:b,rendererSymbol:p,rendererOrigin:n})&&(d=!0)}}catch{}}return{rendererSymbol:p,colorMatchApplied:d}}function kS(a){let{splitByField:t,attributes:e,x:i,mode:r}=a;[i,t??""].forEach(n=>{e[n]===(r==="encode"?null:V.nullValue)&&(e[n]=r==="encode"?V.nullValue:null)})}function kC(a){let{dataItem:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:n}=a,s;if(r&&t!==void 0){let o=EC({seriesConfig:e,chartSubType:i,rendererType:n,dataItem:t});s=t[o]}return s}function C1(a){let{seriesSymbol:t,rendererSymbol:e,colorIndex:i}=a,r=e?.color??t.color;r=r??Pr({colorIndex:i,opacity:sr});let n={...t,color:r},s=n.type===dt.SFS&&sF(n.style);return e?.type===t.type&&e.style!==void 0&&!s&&(n.style=e.style),n.type!==dt.SLS&&(n.outline={type:dt.SLS,style:e?.outline?.style??n.outline?.style,width:e?.outline?.width??n.outline?.width,color:e?.outline?.color??n.outline?.color??e?.color}),n}function w1(a){let t=[];return a&&(t=a.series.flatMap(e=>e.query?.outStatistics?.map(i=>i.onStatisticField)).filter(e=>e!==void 0),t.length===0&&(t=lr(a.series))),t}function $ae(a,t){let e=!1;if(a&&t&&t.length>0&&Zm(a)){let i=$1(a),r=fn(a);i?e=w1(a).some(n=>t.includes(n)):e=t.includes(r.x)}return e}function P1(a){let t=[];if(a&&"type"in a&&typeof a.type=="string")switch(a.type){case"uniqueValue":case"unique-value":"field1"in a&&typeof a.field1=="string"&&(t=[a.field1]);break;case"classBreaks":case"class-breaks":"field"in a&&typeof a.field=="string"&&(t=[a.field]);break;case"pieChart":case"pie-chart":"attributes"in a&&Array.isArray(a.attributes)&&(t=a.attributes.map(e=>e.field));break}return t}function _1(a,t){return a[0].dataTransformationType!==t[0].dataTransformationType}function T1(a,t){return a[0].binCount!==t[0].binCount}function Oae(a,t){let e=!0,i=Ae(a?.series),r=Ae(t?.series);return i&&i!==r&&(e=i===$.ComboLineAndBarSeries&&(r===$.BarSeries||r===$.LineSeries)||r===$.ComboLineAndBarSeries&&(i===$.BarSeries||i===$.LineSeries)||i===$.BarSeries&&r===$.LineSeries||i===$.LineSeries&&r===$.BarSeries),e}function Bm(a,t){return a!==void 0&&t!==void 0&&t>0}function Dae(a){let{chartConfig:t,queryObject:e,chartData:i}=a,r=[],n=Re(t.series),s=Zm(t),o=tt(e),l=t.chartRenderer??o?.renderer?.toJSON();return r=t.series.map((u,h)=>{let p=Ae([u]),d;return(p===$.BarSeries||p===$.LineSeries||p===$.RadarSeries)&&(u.type===$.BarSeries?d=u.fillSymbol?.color:(u.type===$.RadarSeries||u.type===$.LineSeries)&&(d=u.lineSymbol?.color),s?d=kC({dataItem:i[0],seriesConfig:u,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:d===void 0&&(d=Pr({colorIndex:h}))),d}).filter(u=>u!==void 0),r}function Wm(a){return a!==A.PieNoAggregation&&a!==A.BarAndLineNoAggregation&&a!==A.BarAndLineSplitByNoAggregation}function $1(a){let t=Re(a.series);return t===A.BarAndLineFromFields||t===A.PieFromFields||t===A.BoxPlotMonoField||t===A.BoxPlotMultiFields||t===A.BoxPlotMonoFieldAndSplitBy||t===A.BoxPlotMultiFieldsAndSplitBy}function Sl(a){return or(a)?a?.showMean??!1:!1}function O1(a){return or(a)?a?.showOutliers:void 0}function Fae(){return`{name} {${V.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var Te={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"},Hs=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","25.0.0"],D1="1.0.0",F1="unrecognized.version",I1=[$.LineSeries,$.BarSeries,$.ComboLineAndBarSeries,$.RadarSeries];function Im(a,t){let e=0;if(a!==t){let i=a.split("."),r=t.split(".");for(let n=0;n<i.length;n+=1){let s=Number.parseInt(i[n],10),o=Number.parseInt(r[n],10);if(s>o||Number.isNaN(o)){e=1;break}if(s<o){e=-1;break}}}return e}function A1(a){return a!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(a):!1}function L1(a){let t=mn.Same,e=[];if(A1(a)&&a!==void 0){Hs.sort(Im);let i=Im(a,Hs[Hs.length-1]);if(i===1?t=mn.Newer:i===-1&&(t=mn.Older),t===mn.Newer||t===mn.Same)e.push(a);else{for(let r=Hs.length-2;r>=0;r-=1)if(Im(a,Hs[r])>=0){e=Hs.slice(r,Hs.length);break}e.length===0&&e.push(D1)}}else t=mn.Unrecognized,e.push(F1);return{versionStatus:t,versions:e}}function fn(a){let{series:t}=a,e=("showMean"in a?a.showMean:!1)===!0?t.find(i=>i.type===$.LineSeries):t[0];return e??=t[0],e}function Iae(a,t){let e=a!==null?a.toString():null,i=t!=null?t.toString():null;return i!==null&&i!==e?dt.SFS:dt.SLS}function Ji(a,t){let e="";return a!==void 0&&a.includes("=")&&(e=t!==!1?dC({value:a.split("=")[0]}):a.split("=")[0].trim()),e}function _r(a){let{where:t,normalize:e,keepSurroundingQuotes:i,escape:r}=a,n="";return t!==void 0&&t.includes("=")&&(n=t.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):e===!1?r===!0&&(n=Vm(n)):n=dC({value:n,keepSurroundingQuotes:i,escape:r})),n}function un(a){let t=!1;if(a===void 0||a==="")t=!0;else if(a.includes("=")){let e=Ji(a,!1),i=_r({where:a,normalize:!1});t=e===`${i}`}return t}function hn(a){let{where:t,normalize:e,escape:i}=a,r=e===void 0?!0:e,n=Ji(t),s=_r({where:t,normalize:r,keepSurroundingQuotes:!0,escape:i}),o=t;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function E1(a){let t=A.PieFromCategory;return a[0].query?.outStatistics===void 0?t=A.PieNoAggregation:a[0].query?.groupByFieldsForStatistics===void 0&&(t=A.PieFromFields),t}function k1(a){let t=A.BarAndLineMonoField,e=a[0].query?.where;return a[0].query?.groupByFieldsForStatistics===void 0&&(a[0].query?.outStatistics??[]).length>0?t=A.BarAndLineFromFields:e===void 0&&a[0].query?.outStatistics===void 0?t=A.BarAndLineNoAggregation:un(e)?a.length>1&&(t=A.BarAndLineMultiFields):t=a[0].query?.outStatistics===void 0?A.BarAndLineSplitByNoAggregation:A.BarAndLineSplitBy,t}function V1(a){let t=A.BoxPlotMonoField,e=a.length===1,i=a.find(o=>o.type===$.LineSeries)??a[0],{x:r}=i,n="y"in i?i.y:"",s=i.query?.where;return r===Pl?typeof n=="object"&&n.length>1?un(s)?e&&(t=A.BoxPlotMultiFields):t=A.BoxPlotMultiFieldsAndSplitBy:e?t=A.BoxPlotMonoField:un(s)||(t=A.BoxPlotMonoFieldAndSplitBy):e?t=A.BoxPlotMonoFieldAndCategory:un(s)?t=A.BoxPlotMultiFieldsAndCategory:t=A.BoxPlotMonoFieldAndCategoryAndSplitBy,t}function Re(a){let t=A.NonSpecific;if(a?.[0]!==void 0)switch(Ae(a)){case $.PieSeries:t=E1(a);break;case $.RadarSeries:case $.BarSeries:case $.LineSeries:case $.ComboLineAndBarSeries:t=k1(a);break;case $.BoxPlotSeries:t=V1(a);break}return t}function as(a){let{seriesConfig:t,xAxisValueFormatType:e,setTimeBinningInfoWhenNotProvided:i,queryObject:r}=a,n=!1;if(!Vi(r)&&tt(r)?.fields?.find(s=>s.name===t.x)?.type!=="time-only"&&xa(t)&&t.binTemporalData!==!1&&e===$.DateAxisFormat){let s=Re([t]);if(t.temporalBinning&&s!==A.BarAndLineNoAggregation&&s!==A.BarAndLineSplitByNoAggregation){let{unit:o,size:l}=t.temporalBinning;n=i===!0||l!==void 0&&l>0&&o!==void 0}}return n}function xa(a){return I1.includes(a?.type)}function M1(a){let{previousConfig:t,newConfig:e,behaviorAfterLimit:i}=a,r=t.series,n=e.series,s=!1,o=!1;(i===ts.RenderUpToTheLimit||t.orderOptions?.data===void 0||e.orderOptions?.data===void 0)&&(o=!Ha(t.orderOptions?.orderByFields,e.orderOptions?.orderByFields));let l=Md(r.map(h=>h.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),u=Md(n.map(h=>h.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!Ha(l,u),s||o}function N1(a,t){return JSON.stringify(a.dataFilters)!==JSON.stringify(t.dataFilters)}function R1(a,t){let e=!1;if(t.length&&a.length)if(t[0].x!==a[0].x)e=!0;else{let i=Ae(a);if(i!==$.HistogramSeries&&i!==$.GaugeSeries){let r=lr(a).sort(),n=lr(t).sort();e=JSON.stringify(r)!==JSON.stringify(n)}}return e}function j1(a,t){return(a??!1)!==(t?.filterBySelection??!1)}function B1(a,t){return xa(a.series[0])&&xa(t.series[0])&&(a.series[0].binTemporalData??V.binTemporalData)!==(t.series[0].binTemporalData??V.binTemporalData)}function W1(a,t){let e=a.axes?.[0].valueFormat.type,i=t.axes?.[0].valueFormat.type,r=Re(t.series),n=r===A.BarAndLineNoAggregation||r===A.BarAndLineSplitByNoAggregation,s=e===$.DateAxisFormat&&i===$.NumberAxisFormat,o=e===$.NumberAxisFormat&&i===$.DateAxisFormat;return e!==i&&(n||s||o)}function q1(a){let{previousSeries:t,newConfig:e,setTimeBinningInfoWhenNotProvided:i,queryObject:r}=a,n=e.series?.[0],s=!1,o=!1;if(n&&xa(n)&&as({seriesConfig:n,xAxisValueFormatType:ja(e),setTimeBinningInfoWhenNotProvided:i,queryObject:r})){let l=t[0];s=JSON.stringify(l.temporalBinning)!==JSON.stringify(n.temporalBinning),o=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,newTimeBinningWillBeCalculated:o}}function VS(a,t){return t.length!==a.length}function z1(a,t){return Sl(a)!==Sl(t)}function H1(a,t){return JSON.stringify(a.series[0]?.valueConversion)!==JSON.stringify(t.series[0]?.valueConversion)}function U1(a,t){return JSON.stringify(a.series[0]?.xTemporalBinning)!==JSON.stringify(t.series[0]?.xTemporalBinning)||JSON.stringify(a.series[0]?.yTemporalBinning)!==JSON.stringify(t.series[0]?.yTemporalBinning)||(a.firstDayOfWeek??7)!==(t.firstDayOfWeek??7)||a.outTimeZone!==t.outTimeZone||(a.nullPolicy??dr.Null)!==(t.nullPolicy??dr.Null)}function G1(a,t){return(a.hideEmptyRowsAndColumns??!1)!==(t.hideEmptyRowsAndColumns??!1)}function Y1(a,t){return(a.includeLeapDay??gl.heatChart.includeLeapDay)!==(t.includeLeapDay??gl.heatChart.includeLeapDay)}function X1(a){let{previousConfig:t,newConfig:e,fieldList:i}=a,r=t.series[0],n=e.series[0],s=!1;if(r.type===$.ScatterSeries&&n.type===$.ScatterSeries&&i&&i.length>0){let o=new Set(r.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!Ha(o,l)){let u=Array.from(l).filter(h=>!o.has(h));u.length>0&&(s=i?.some(h=>u.includes(h.name)&&!bl(h)))}}return s}function K1(a,t){return(a.colorMatch??!1)!==(t.colorMatch??!1)}function Aae(a,t){return(a.stackedType??Dr.Side)!==(t.stackedType??Dr.Side)}function wd(a){let t={...a};return t.position===void 0&&(t.position=gl.heatChart.legend.position),t}function Lae(a,t){let e=a.legend??{type:$.Legend},i=t.legend??{type:$.Legend},r=wd(e),n=wd(i);return!Ha(r,n)}function Eae(a,t){let e=a.legend??{type:$.Legend},i=t.legend??{type:$.Legend},r=wd(e),n=wd(i);return r.position!==n.position}function kae(a,t){return JSON.stringify(a.series[0]?.gradientRules)!==JSON.stringify(t.series[0]?.gradientRules)}function Vae(a,t){return a.series[0].heatRulesType!==t.series[0].heatRulesType}function Z1(a){let{oldConfig:t,newConfig:e}=a,i=!1,r=t.series[0],n=e.series[0],s=Ae(t.series),o=Ae(e.series);if(s===$.PieSeries&&o===$.PieSeries){let{slices:l,sliceGrouping:u}=r,{slices:h,sliceGrouping:p}=n,d=l?.map(y=>({sliceId:y.sliceId,label:y.label})),c=h?.map(y=>({sliceId:y.sliceId,label:y.label})),f=u?.label,m=p?.label;i=JSON.stringify(d)!==JSON.stringify(c)||JSON.stringify(f)!==JSON.stringify(m)}return i}function Q1(a){let{previousSelectionOIDs:t,options:e}=a,i=!1;return e?.filterBySelection===!0&&(i=t?.length!==e?.selectionData?.selectionOIDs?.length||!Ha(t,e?.selectionData?.selectionOIDs)),i}function Mae(a,t){return a?.length!==t?.length||a?.some((e,i)=>{let r=_r({where:e?.query?.where}),n=_r({where:t?.[i]?.query?.where});return r!==n})}function Nae(a,t){let e=lr(a),i=lr(t);return JSON.stringify(e)!==JSON.stringify(i)}function Rae(a,t){let e,i,r,n;return xa(a.series[0])&&(e=a.series[0].temporalBinning?.unit,r=a.series[0].temporalBinning?.size),xa(t.series[0])&&(i=t.series[0].temporalBinning?.unit,n=t.series[0].temporalBinning?.size),Bm(e,r)&&!Bm(i,n)}function jae(a,t){return a.axes?.length===3&&t.axes?.length===2||a.axes?.length===2&&t.axes?.length===3}function Bae(a,t){return JSON.stringify(a.series.map(e=>e.assignToSecondValueAxis??!1))!==JSON.stringify(t.series.map(e=>e.assignToSecondValueAxis??!1))}function Wae(a,t){let e=a.axes?.map(r=>r?.guides?.map(n=>n?.above===!0)),i=t.axes?.map(r=>r?.guides?.map(n=>n?.above===!0));return JSON.stringify(e)!==JSON.stringify(i)}function qae(a,t){return OS(a)!==OS(t)}function zae(a,t){return(a.showOutliers??V.boxPlot.boxPlotOutliersVisibility)!==(t.showOutliers??V.boxPlot.boxPlotOutliersVisibility)}function Hae(a,t){return(a.standardizeValues??V.boxPlot.boxPlotStandardizeValuesVisibility)!==(t.standardizeValues??V.boxPlot.boxPlotStandardizeValuesVisibility)}function J1(a,t){return JSON.stringify(a?.chartRenderer)!==JSON.stringify(t?.chartRenderer)}function Uae(a,t){let e=a.axes?.[0].valueFormat.type===$.DateAxisFormat?a.axes[0].valueFormat.intlOptions.timeZone:void 0,i=t.axes?.[0].valueFormat.type===$.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0;return e!==i}function Gae(a,t){let e=!1,i=a.series[0],r=t.series[0];if(i.type===$.ScatterSeries&&r.type===$.ScatterSeries){let{sizePolicy:n}=i,{sizePolicy:s}=r;e=JSON.stringify(n)!==JSON.stringify(s)}return e}function Yae(a,t){let e=!1,i=a.series[0],r=t.series[0];if(i.type===$.ScatterSeries&&r.type===$.ScatterSeries){let{sizePolicy:n}=i,{sizePolicy:s}=r;e=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return e}function eA(a){let{previousConfig:t,newConfig:e,options:i,previousFilterBySelection:r,previousSelectionOIDs:n,fieldList:s,queryObject:o}=a,{series:l}=e,{series:u}=t,h=Ae(l),p=!1,d=!1,c=!1,f={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(f.common.queryChanged=M1({previousConfig:t,newConfig:e,behaviorAfterLimit:i?.chartLimits?.behaviorAfterLimit}),f.common.configFiltersChanged=N1(t,e),f.common.xOrYChanged=R1(u,l),f.common.filterBySelectionChanged=j1(r,i),f.common.dataForFilterBySelectionChanged=Q1({previousSelectionOIDs:n,options:i}),f.common.binTemporalDataChanged=B1(t,e),f.common.valueFormatChangeRequiresNewData=W1(t,e),f.common={...f.common,...q1({previousSeries:u,newConfig:e,setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,queryObject:o})},h){case $.HistogramSeries:f.histogram.dataPropsChanged=T1(u,l)||_1(u,l);break;case $.LineSeries:case $.BarSeries:case $.ComboLineAndBarSeries:f.common.numberOfSeriesChanged=VS(u,l);break;case $.BoxPlotSeries:or(t)&&or(e)&&(f.common.numberOfSeriesChanged=VS(u,l),f.boxPlot.showMeanChanged=z1(t,e));break;case $.GaugeSeries:f.gauge.valueConversionChanged=H1(t,e);break;case $.HeatSeries:xl(t)&&xl(e)&&(f.heatChart.binningChanged=U1(t,e),f.heatChart.hideEmptyRowsAndColumnsChanged=G1(t,e),f.heatChart.includeLeapDay=Y1(t,e));break;case $.ScatterSeries:f.scatterPlot.tooltipFieldsChanged=X1({previousConfig:t,newConfig:e,fieldList:s});break}return d=Object.values(f.common).some(m=>m),(f.gauge.valueConversionChanged||f.histogram.dataPropsChanged||f.boxPlot.showMeanChanged||f.heatChart.binningChanged||f.heatChart.hideEmptyRowsAndColumnsChanged||f.heatChart.includeLeapDay||f.scatterPlot.tooltipFieldsChanged)&&(c=!0),p=d||c,{dataUpdateNeeded:p,dataUpdateDetails:f}}function Xae(a,t){let e=sa(a);if(e&&e.series.length>1){let{preferLabel:i,orderBy:r}=e.orderOptions?.series??{};if(r!==void 0){let n;if(i===!1){let s=Re(e.series);n=cC(s)?"splitByValue":"name"}else n="name";e.series.sort((s,o)=>{let l,u;n==="splitByValue"?(l=_r({where:s.query?.where})??"",u=_r({where:o.query?.where})??""):(l=s.name,u=o.name);let[h,p]=r.toUpperCase()===hi.Descending?[u,l]:[l,u];return typeof h=="string"&&typeof p=="string"?h.localeCompare(p):Number(h)-Number(p)})}}return nF({data:e?.series.map(i=>i.id),htmlContainer:t}),e}function tA(a){let t,e=a?.orderOptions?.data;return a.series?.length>0&&e?.orderType===cr.MultiAxes&&(t=[],t.push({sortingField:ht.xField,orderBy:e.orderByX??hi.Ascending}),t.push({sortingField:e.orderByY!==void 0?ht.yField:"",orderBy:e.orderByY})),t}function iA(a){let t=Re(a.series),e;if(a.orderOptions?.data!==void 0){let i=a.orderOptions?.data?.orderType??cr.Category,r=a.orderOptions?.data&&"orderBy"in a.orderOptions.data?a.orderOptions.data.orderBy:void 0;if(i===cr.Category)i=a.series[0].x;else{i===cr.Mean?i=Te.Average:i===cr.Median&&(i=Te.Median);let n=t===A.BoxPlotMultiFieldsAndCategory&&typeof a.series[0].y=="string"?a.series[0].y:void 0,s=Ji(a.series[0].query?.where),o=_r({where:a.series[0].query?.where});i=Oi({key:i,y:n,chartSubType:t,splitBy:s,splitByValue:o}),Array.isArray(r)&&(r=hi.Ascending)}e={sortingField:i,orderBy:r??hi.Ascending,preferLabel:a.orderOptions.data&&"preferLabel"in a.orderOptions.data?a.orderOptions.data.preferLabel??!0:!0}}return e}function rA(a){let t=a.series[0],{x:e,y:i}=t,r=Re(a.series)===A.PieFromFields,n=Re(a.series)===A.BarAndLineFromFields,s,o="",l;if(a.orderOptions?.data!==void 0){let u=a.orderOptions.data&&"preferLabel"in a.orderOptions.data?a.orderOptions.data.preferLabel:!0;if(o=a.orderOptions?.data?.orderType??cr.Category,l=a.orderOptions?.data&&"orderBy"in a.orderOptions.data?a.orderOptions.data.orderBy:void 0,o===cr.Category?r?o=Zi:o=u?e:gl.originalCategoryValue:o=r?ba:[i].flat()[0],o!==void 0&&o!==""){let h=Qm(a);if(Ae(a.series)!==$.PieSeries&&o!==e&&a.series?.length>1)switch(h){case Dr.Stacked:o=V.technicalSortingFieldBySum;break;case Dr.Stacked100:o=V.technicalSortingFieldByPercent;break;case Dr.Side:typeof i=="string"&&(o=i);break}s={sortingField:o,orderBy:l??hi.Ascending,preferLabel:u}}}else(n||r)&&a.series[0].query?.outStatistics&&(l=a.series[0].query.outStatistics.map(u=>u.onStatisticField),l?.length>1&&(s={sortingField:gl.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function qm(a){let t,e=Ae(a.series);if(a.series?.length>0){let i;switch(e){case $.HeatSeries:xl(a)&&(t=tA(a));break;case $.BoxPlotSeries:or(a)&&(i=iA(a));break;case $.LineSeries:case $.BarSeries:case $.RadarSeries:case $.PieSeries:i=rA(a);break}!t&&i&&(t=[],t.push(i))}return t}function Kae(a){let{oldConfig:t,newConfig:e,dataWasUpdated:i}=a,r=Ae(e.series),n=Re(e.series),s=!1,o=!1;if(n!==A.BoxPlotMonoField&&n!==A.BoxPlotMonoFieldAndSplitBy&&e.orderOptions?.data!==void 0){let l=qm(t),u=qm(e);if(r===$.HeatSeries){let h=l?l[0]:void 0,p=u?u[0]:void 0,d=l?l[1]:void 0,c=u?u[1]:void 0;o=t.orderOptions?.data?.orderType!==e.orderOptions?.data?.orderType||h?.sortingField!==p?.sortingField||h?.orderBy!==p?.orderBy||d?.sortingField!==c?.sortingField||d?.orderBy!==c?.orderBy,s=o||i}else{let h=l?l[0]:void 0,p=u?u[0]:void 0;o=t.orderOptions?.data?.orderType!==e.orderOptions?.data?.orderType||h?.sortingField!==p?.sortingField||h?.orderBy!==p?.orderBy||(h?.preferLabel??!0)!==(p?.preferLabel??!0),s=o||i}}return s}function aA(a=Yt.None,t){return a===Yt.None||a===Yt.Log&&t>0||a===Yt.Sqrt&&t>=0}function VC(a,t){let e={valid:!1};return t===!0?e.invalidType=ut.HistogramEmptyField:a===Yt.Log?e.invalidType=ut.NegativeValueInLogCalculation:a===Yt.Sqrt&&(e.invalidType=ut.NegativeValueInSqrtCalculation),e}function nA(a,t){let e=a;switch(t){case Yt.Log:e=Math.log(a);break;case Yt.Sqrt:e=Math.sqrt(a);break}return e}function sA(a){let t=a;if(a){let e=a.toString().split(".");if(e[1]!==void 0){let i=10**-e[1].length;t=a-i}}return t}function MC(a){let t="field";switch(a){case Yt.Log:t="natural-log";break;case Yt.Sqrt:t="square-root";break;case Yt.None:}return t}async function oA(a){let{queryObject:t,fieldName:e,queryConfig:i,abortKey:r}=a,n=tt(t),{idField:s,isTraditionalTypeOID:o}=aa(n),l=o?s:"*",u=`${ie.Count}_${s}`,h=`${ie.Count}_${e}`,p=`${ie.Minimum}_${e}`,d=`${ie.Maximum}_${e}`,c={...i,outStatistics:[{statisticType:ie.Count,onStatisticField:l,outStatisticFieldName:u},{statisticType:ie.Count,onStatisticField:e,outStatisticFieldName:h},{statisticType:ie.Minimum,onStatisticField:e,outStatisticFieldName:p},{statisticType:ie.Maximum,onStatisticField:e,outStatisticFieldName:d}]},f=await Qu({queryObject:t,queryConfig:c,abortKey:r}),m=f.get(u)??Number.NaN,y=f.get(h)??Number.NaN,g=f.get(p)??Number.NaN,v=f.get(d)??Number.NaN;return{countExcludingNulls:y,countIncludingNulls:m,min:g,max:v}}async function lA(a){let{queryConfig:t,chartConfig:e,queryObject:i,abortKey:r}=a,n=e.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:u,countExcludingNulls:h,min:p,max:d}=await oA({queryObject:i,queryConfig:t,fieldName:s,abortKey:r}),c=aA(o,p),f=h<2||p===d,m={...t};return m.where=Xt([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:c,dataCountIncompatible:f,countExcludingNulls:h,countIncludingNulls:u}}function uA(a){let t={...a};return t.avg=t.avg??Number.NaN,t.count=t.count??Number.NaN,t.max=t.max??Number.NaN,t.min=t.min??Number.NaN,t.stddev=t.stddev??Number.NaN,t.sum=t.sum??Number.NaN,t.variance=t.variance??Number.NaN,t.median=t.median??Number.NaN,t}function hA(a){let{seriesConfig:t,layer:e,useFeaturesInView:i,view:r,queryConfig:n}=a,{x:s,dataTransformationType:o}=t,l={layer:e,view:r,field:s,sqlWhere:un(n.where)?void 0:n.where,useFeaturesInView:i};return o!==Yt.None&&(l={...l,normalizationType:MC(o)}),l}function pA(a){let{seriesConfig:t,layer:e,useFeaturesInView:i,view:r,minValue:n,maxValue:s,queryConfig:o}=a,{x:l,binCount:u,dataTransformationType:h}=t,p={layer:e,view:r,field:l,minValue:n,maxValue:s,numBins:u??VD,classificationMethod:"equal-interval",sqlWhere:un(o.where)?void 0:o.where,useFeaturesInView:i};return h!==Yt.None&&(p={...p,normalizationType:MC(h)}),p}function dA(a,t){let e=Number.NaN;return a!==void 0&&t!==void 0&&(e=a-t),e}async function cA(a){let{chartConfig:t,queryConfig:e,queryObject:i,countExcludingNulls:r,countIncludingNulls:n,options:s,errorStrings:o}=a,l=t.series[0],{dataTransformationType:u}=l,h={valid:!0},p=tt(i),d=_l(e?.geometry)?.extent?.toJSON()!==void 0,c=s?.view,f=hA({seriesConfig:l,layer:p,view:c,useFeaturesInView:d,queryConfig:e}),m;if(c!==void 0&&(m=new PS({geometry:c.extent}),c.extent!==void 0&&gC(p))){let{distance:D,units:O}=e;D!==void 0&&(m.distance=D),O!==void 0&&(m.units=O)}if(e.timeExtent){let D={start:e.timeExtent[0],end:e.timeExtent[1]};m===void 0?m=new PS({timeExtent:D}):m.timeExtent=D}f.filter=m;let y;f.outStatisticTypes={exclude:["median"]};try{y=await _S(f)}catch(D){throw new ki(Wi.QueryFeaturesError,o.errors.queryError,D)}f.outStatisticTypes={include:["median"]};try{let D=await _S(f);D?.median&&(y.median=D.median)}catch{}y=uA(y);let{avg:g,count:v,stddev:b,min:P,max:w,sum:T,median:F}=y;if(v===0)h={...VC(u)};else{let D=pA({seriesConfig:l,layer:p,view:c,useFeaturesInView:d,minValue:sA(P),maxValue:w,valueExpression:f.valueExpression,queryConfig:e});D.filter=m;let O;try{O=await gD(D)}catch(L){throw new ki(Wi.QueryFeaturesError,o.errors.queryError,L)}let N=dA(n,r);h.data={mean:g,stddev:b,min:P,max:w,median:Number(F),bins:O?.bins,count:r,nulls:N,sum:T??void 0},h.data.bins.length>0&&(h.data.bins[h.data.bins.length-1].isLastBin=!0)}return h}async function NC(a){let{chartConfig:t,queryConfig:e,queryObject:i,options:r,abortKey:n,errorStrings:s}=a,{series:o}=t,l=o[0],u;if(Vi(i))u=await $I(a);else{let{rawData:h,dataCompatibleWithTransformation:p,dataCountIncompatible:d,countIncludingNulls:c,countExcludingNulls:f}=await lA({queryObject:i,chartConfig:t,queryConfig:e,abortKey:n});u={valid:!0},!p||d?u=VC(l.dataTransformationType,d):u=await cA({chartConfig:t,queryObject:i,queryConfig:e,countIncludingNulls:c,countExcludingNulls:f,options:r,errorStrings:s})}return u}async function fA(a){let{queryObject:t,queryConfig:e,chartConfig:i,x:r}=a,{series:n}=i,{dataTransformationType:s}=n[0],o={...e,orderByFields:[r],outFields:[r]};return{valid:!0,data:{dataItems:(await ra({queryObject:t,queryConfig:o})).map(l=>({[r]:nA(l.attributes[r],s)}))}}}var Gs={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"};function Zae(a){return Ae(a.series)!==$.BoxPlotSeries?V.xAxisField:a.series[0].x}function Qae(a){let t=Qm(a);return t===Dr.Stacked||t===Dr.Stacked100}function Jae(a,t){let e=[],i=new Map,r=new Map;return a.forEach((n,s)=>r.set(n.id,s)),t.forEach((n,s)=>{let o=r.get(n.id);if(o!==void 0){let l=new Set;for(;i.has(o)&&!l.has(o);)l.add(o),o=i.get(o)??o;o!==s&&(e.push([o,s]),i.set(s,o))}}),e}function mA(a){let t={...a};return a.showMean===!0&&(t.series=[t.series[0]],t.series[0].query?.where!==void 0&&delete t.series[0].query.where),t}function RC(a){return xl(a)&&sn(a?.axes?.[0]?.valueFormat)&&sn(a?.axes?.[1]?.valueFormat)}function Pd(a){let{dataInfo:t,chartType:e,subError:i}=a;switch(t.valid=!1,e){case $.BarSeries:case $.ComboLineAndBarSeries:t.invalidType=ut.BarElementExceedsLimit;break;case $.LineSeries:t.invalidType=ut.LineChartExceedsLimit;break;case $.PieSeries:t.invalidType=ut.PieChartExceedsLimit;break;case $.GaugeSeries:t.invalidType=ut.GaugeExceedsLimit;break;case $.BoxPlotSeries:i?.outlierLimit===!0?t.invalidType=ut.BoxPlotOutliersExceedsLimit:t.invalidType=ut.BoxPlotExceedsLimit;break;case $.HeatSeries:t.invalidType=ut.HeatChartExceedsLimit;break}}function yA(a,t){a.valid=!1,a.invalidType=t}function ene(a){let{invalidType:t,chartLimits:e,elementCount:i,seriesCount:r,queryObject:n,filterBySelection:s,formatLocale:o=aw(document.documentElement),isTemporalChart:l,errorStrings:u}=a,h=u.errors.defaultInvalidChart,p,d=new Intl.NumberFormat(o),c=Xs(e),{maxCategoryCount:f}=c,m=u.modalHeaders.invalidChart;switch(t){case ut.BarElementExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";r!==void 0&&(r<=c.maxBarChartSeriesCount?r===1?(v=u.errors.uniqueSeriesBarCountCannotExceedLimit,y=c.maxBarUniqueSeriesCountTotal):r===2?(v=u.errors.twoSeriesBarCountCannotExceedLimit,y=c.maxBarTwoSeriesCountTotal,g=c.maxBarTwoSeriesCountPerSeries):r>2&&(v=u.errors.threePlusSeriesBarCountCannotExceedLimit,y=c.maxBarThreePlusSeriesCountTotal,g=c.maxBarThreePlusSeriesCountPerSeries):(v=u.errors.barSeriesCountCannotExceedLimit,g=c.maxBarChartSeriesCount));let b=d.format(y),P=d.format(g),w=i!==void 0?d.format(i):"";h=ui(v,{totalLimit:b,seriesLimit:P,elementCount:w}),p={actualCount:i??Number.NaN,totalLimit:y,seriesLimit:g};break}case ut.LineChartExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";r!==void 0&&(r<=c.maxLineChartSeriesCount?r===1?(v=l?u.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:u.errors.uniqueSeriesLineCountCannotExceedLimit,y=c.maxLineUniqueSeriesCountTotal):r===2?(v=l?u.errors.twoTemporalSeriesLineCountCannotExceedLimit:u.errors.twoSeriesLineCountCannotExceedLimit,y=c.maxLineTwoSeriesCountTotal,g=c.maxLineTwoSeriesCountPerSeries):r>2&&(v=l?u.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:u.errors.threePlusSeriesLineCountCannotExceedLimit,y=c.maxLineThreePlusSeriesCountTotal,g=c.maxLineThreePlusSeriesCountPerSeries):(v=u.errors.lineSeriesCountCannotExceedLimit,g=c.maxLineChartSeriesCount));let b=d.format(y),P=d.format(g),w=i!==void 0?d.format(i):"";h=ui(v,{elementCount:w,seriesLimit:P,totalLimit:b}),p={actualCount:i??Number.NaN,totalLimit:y,seriesLimit:g}}break;case ut.BoxPlotExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";r!==void 0&&(r<=c.maxBoxPlotSeriesCount?r===1?(v=u.errors.uniqueSeriesBoxCountCannotExceedLimit,y=c.maxBoxUniqueSeriesCountTotal):r===2?(v=u.errors.twoSeriesBoxCountCannotExceedLimit,y=c.maxBoxTwoSeriesCountTotal,g=c.maxBoxTwoSeriesCountPerSeries):r>2&&(v=u.errors.threePlusBoxLineCountCannotExceedLimit,y=c.maxBoxThreePlusSeriesCountTotal,g=c.maxBoxThreePlusSeriesCountPerSeries):(v=u.errors.boxSeriesCountCannotExceedLimit,g=c.maxBoxPlotSeriesCount));let b=d.format(y),P=d.format(g),w=i!==void 0?d.format(i):"";h=ui(v,{elementCount:w,seriesLimit:P,totalLimit:b}),p={actualCount:i??Number.NaN,totalLimit:y,seriesLimit:g}}break;case ut.BoxPlotOutliersExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=u.errors.boxSeriesOutlierCannotExceedLimit,g=c.maxBoxPlotOutlierLimit,v=d.format(g);h=ui(y,{totalLimit:v}),p={actualCount:i??Number.NaN,totalLimit:g}}break;case ut.HeatChartExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=u.errors.heatChartCannotExceedLimit,g=c.maxHeatChartCellLimit,v=d.format(g),b=i!==void 0?d.format(i):"";h=ui(y,{featureCount:b,totalLimit:v}),p={actualCount:i??Number.NaN,totalLimit:g}}break;case ut.PieChartExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=u.errors.pieChartSlicesCannotExceedLimit,g=c.maxPieChartSliceCountTotal,v=d.format(g),b=i!==void 0?d.format(i):"";h=ui(y,{sliceCount:b,totalLimit:v}),p={actualCount:i??Number.NaN,totalLimit:g}}break;case ut.GaugeExceedsLimit:{m=u.modalHeaders.tooManyFeatures;let y=u.errors.gaugeCannotExceedLimit,g=c.maxGaugeByFeaturesLimit,v=d.format(g),b=i!==void 0?d.format(i):"";h=ui(y,{featureCount:b,totalLimit:v}),p={actualCount:i??Number.NaN,totalLimit:g}}break;case ut.PieChartMixOfNegativePositiveSlices:m=u.modalHeaders.cannotCombineNegativeAndPositiveSlices,h=u.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case ut.NegativeValueInSqrtCalculation:m=u.modalHeaders.invalidData,h=u.errors.negativeValueInDataForSqrtTransformation;break;case ut.NegativeValueInLogCalculation:m=u.modalHeaders.invalidData,h=u.errors.negativeValueInDataForLogTransformation;break;case ut.HistogramEmptyField:s===!0?(m=u.modalHeaders.noDataAvailable,h=u.errors.noDataFBSMessage):Ra(n)?(m=u.modalHeaders.noDataAvailable,h=u.errors.noDataFBEMessage):(m=u.modalHeaders.invalidChart,h=u.errors.histogramEmptyField);break;case ut.EmptyDataSet:m=u.modalHeaders.noDataAvailable,s===!0?h=u.errors.noDataFBSMessage:Ra(n)?h=u.errors.noDataFBEMessage:h=u.errors.noDataMessage;break;case ut.NegativeValueInXAxisLogScale:h=u.errors.logarithmicXAxisNotPossible;break;case ut.NegativeValueInYAxisLogScale:h=u.errors.logarithmicYAxisNotPossible;break;case ut.BadData:}if(h===u.errors.defaultInvalidChart&&(t===ut.BarElementExceedsLimit||t===ut.LineChartExceedsLimit||t===ut.HeatChartExceedsLimit||t===ut.PieChartExceedsLimit||t===ut.GaugeExceedsLimit||t===ut.BoxPlotExceedsLimit)&&typeof i=="number"&&typeof r=="number"&&i/r>f){let y=i/r;h=ui(u.errors.categoryCountCannotExceedLimit,{categoryCount:d.format(y),maxCategoryCount:d.format(f)})}return{keyword:t??ut.BadData,header:m,message:h,params:p}}function Cl(a,t){return`${t}_${a}`}function zm(a){let{value:t,mean:e,stdDev:i}=a;return(t-e)/i}function iy(a){let{dataItem:t,chartSubType:e,y:i,splitByValue:r,meanPerField:n,stdDevPerField:s}=a,o=t,l={chartSubType:e,y:i,splitByValue:r},u=Oi({...l,key:Te.Average}),h=Oi({...l,key:Te.StandardDeviation}),p=n??Number(t[u]),d=s??Number(t[h]);return Number.isFinite(p)&&Number.isFinite(d)&&Object.values(Te).forEach(c=>{let f=Oi({key:c,y:i,chartSubType:e,splitByValue:r}),m=t[f];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:c,showOutliers:!1,standardizeValues:!0};let g=Oi(l);if(o[g]=zm({mean:p,stdDev:d,value:y}),c===Te.Min||c===Te.Max){l={...l,key:c,showOutliers:!0,standardizeValues:!0},g=Oi(l),l={...l,standardizeValues:!1,splitByValue:r};let v=Oi(l);y=Number(t[v]),Number.isFinite(y)&&(o[g]=zm({mean:p,stdDev:d,value:y}))}}}}),o}function gA(a){let{data:t,yList:e,calculateZScore:i=!1}=a,r=t[0],n=new Map;return e.forEach(s=>{let o={};Object.keys(r).forEach(l=>{l.startsWith(s)?o[l.replace(`${s}_`,"")]=r[l]:l.includes(V.rendererSymbolField)&&(o[l]=r[l]),o[V.boxPlot.boxPlotCategory]=s,i&&(o=iy({dataItem:o,chartSubType:A.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function vA(a){let{data:t,splitByField:e,y:i}=a,r={[V.boxPlot.boxPlotCategory]:i};return t.forEach(n=>{let s=n[e];s!==void 0&&Object.keys(n).forEach(o=>{o===V.rendererSymbolField?r[`${o}_${s?.toString()}`]=n[o]:o===V.boxPlot.boxPlotMeanLineMarkerId?r[o]=n[o]:r[`${s?.toString()}_${o}`]=n[o]})}),[r]}function bA(a){let{splitByField:t,data:e,yList:i,calculateZScore:r=!1,meanAndStdDevPerField:n}=a,s=new Map;return e.forEach(o=>{let l=o[t];i.forEach(u=>{let h={[V.boxPlot.boxPlotCategory]:u};Object.entries(o).forEach(([p,d])=>{p.startsWith(`${u}_`)?h[`${l}_${p.replace(`${u}_`,"")}`]=d:p.includes(V.rendererSymbolField)?h[`${p}_${l}`]=d:p===V.boxPlot.boxPlotMeanLineMarkerId&&(h[p]=o[p])}),r&&(h=iy({dataItem:h,chartSubType:A.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[Cl(u,ie.Average)],stdDevPerField:n?.[Cl(u,ie.StandardDeviation)]})),s.set(u,{...s.get(u)??{},...h})})}),Array.from(s.values())}function xA(a){let{data:t,yList:e,calculateZScore:i=!1,meanAndStdDevPerField:r}=a,n=t;return i&&n.forEach(s=>{e.forEach(o=>{iy({dataItem:s,chartSubType:A.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:r?.[Cl(o,ie.Average)],stdDevPerField:r?.[Cl(o,ie.StandardDeviation)]})})}),n}function SA(a){let{splitByField:t,x:e,data:i}=a,r=new Map;return i.forEach(n=>{let s=n[e],o={[e]:s},l=n[t];Object.entries(n).forEach(([u,h])=>{if(u.includes(V.rendererSymbolField))o[`${V.rendererSymbolField}_${l?.toString()}`]=h;else if(u===V.boxPlot.boxPlotMeanLineMarkerId)o[u]=n[u];else if(u!==t&&u!==e){let p=u!==V.xAxisField&&u!==V.originalCategoryValue?`${l?.toString()}_${u}`:u;o[p]=h}}),r.set(s,{...r.get(s)??{},...o})}),Array.from(r.values())}function CA(a,t){let{series:e}=a,i=e[0],{y:r}=i,n=Re(a.series),s={y:n===A.BoxPlotMultiFieldsAndCategory?r:void 0,chartSubType:n},o=a.series.map(l=>{let u=_r({where:l.query?.where,normalize:!1,escape:!0});return u!==null&&`${u}`.startsWith("'")&&`${u}`.endsWith("'")&&(u=u.substring(1,u.length-1)),u});o.length===0&&o.push(" "),t.forEach(l=>{o.forEach(u=>{s.splitByValue=u;let h=Oi({...s,key:Te.Min,showOutliers:!0}),p=Oi({...s,key:Te.Min,showOutliers:!1}),d=Oi({...s,key:Te.Max,showOutliers:!0}),c=Oi({...s,key:Te.Max,showOutliers:!1});l[d]===void 0&&l[c]!==void 0&&(l[d]=l[c]),l[h]===void 0&&l[p]!==void 0&&(l[h]=l[p])})})}function wA(a,t){let e,i,r=a[t[Te.IQR]],n=a[t[Te.FirstQuartile]],s=a[t[Te.ThirdQuartile]];return Number.isFinite(r)&&Number.isFinite(n)&&Number.isFinite(s)&&(e=n-r*1.5,i=s+r*1.5),{outlierMinThreshold:e,outlierMaxThreshold:i}}function MS(a){let{yField:t,xField:e,xValue:i,splitByField:r,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=a,u;if(e!==void 0&&i!==void 0){let d=typeof i!="string"?i:`'${Vm(i)}'`;u=`${e}=${d.toString()}`}let h;if(r!==void 0&&n!==void 0){let d=typeof n!="string"?n:`'${Vm(n)}'`;h=`${r}=${d.toString()}`}let p;return l==="outliers"&&o!==s?p=`(${t}<${o} OR ${t}>${s})`:l==="alternativeData"&&(o===s?p=`(${t}=${o})`:p=`(${t}>=${o} AND ${t}<=${s})`),[u,h,p].filter(d=>d!==void 0).join(" AND ")}function jC(a){let{data:t,yField:e,x:i,chartSubType:r,splitByField:n}=a,s=r===A.BoxPlotMonoField||r===A.BoxPlotMonoFieldAndCategory||r===A.BoxPlotMonoFieldAndSplitBy||r===A.BoxPlotMonoFieldAndCategoryAndSplitBy?void 0:e,o=yl(s),l=[],u=[],{maxOperandsPerWhereClause:h}=Td(),p=[],d=[],c=1;return t.forEach((f,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:g}=wA(f,o);if(typeof y=="number"&&typeof g=="number"){let v={yField:e,outlierMinThreshold:y,outlierMaxThreshold:g};(r===A.BoxPlotMonoFieldAndCategory||r===A.BoxPlotMultiFieldsAndCategory||r===A.BoxPlotMonoFieldAndCategoryAndSplitBy)&&i!==void 0&&i in f&&(v.xField=i,v.xValue=Hu({value:f[i],dataContext:f,keepNullValues:!0})),(r===A.BoxPlotMonoFieldAndSplitBy||r===A.BoxPlotMultiFieldsAndSplitBy||r===A.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in f&&(v.splitByField=n,v.splitByValue=f[n]),p.push(MS({...v,target:"outliers"})),d.push(MS({...v,target:"alternativeData"})),(c%h===0||m===t.length-1)&&(l.push(Xt(p,"OR")),u.push(Xt(d,"OR")),p=[],d=[])}c+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:u}}function PA(a){let{data:t,outlierDataItem:e,chartSubType:i,x:r,y:n,meanAndStdDevPerField:s,splitByField:o}=a,l=s?.[Cl(n,ie.Average)],u=s?.[Cl(n,ie.StandardDeviation)];if(l===void 0&&u===void 0)switch(i){case A.BoxPlotMultiFields:{let h=yl(n),p=t[0];l=Number(p[h[Te.Average]]),u=Number(p[h[Te.StandardDeviation]]);break}case A.BoxPlotMultiFieldsAndCategory:{let h=t.find(p=>p[r]===e[r]);if(h!==void 0){let p=yl(n);l=Number(h[p[Te.Average]]),u=Number(h[p[Te.StandardDeviation]])}break}case A.BoxPlotMultiFieldsAndSplitBy:{let h=t.find(p=>p[o]===e[o]);if(h!==void 0){let p=yl(n);l=Number(h[p[Te.Average]]),u=Number(h[p[Te.StandardDeviation]])}break}}return{mean:l,stdDev:u}}async function _A(a){let{seriesConfig:t,data:e,uniqueQuery:i,queryObject:r,meanAndStdDevPerField:n,abortKey:s}=a,o=Re(t),l=t[0],{x:u}=l,h=Ji(l.query?.where),p=tt(r),d=aa(p).idField,c=lr(t),f=[];for(let g=0;g<c.length;g+=1){let v=c[g],{outliersFilterBatches:b}=jC({data:e,yField:v,x:u,chartSubType:o,splitByField:h});for(let P=0;P<b.length;P+=1){let w=b[P];if(w!==""){let T=[];u!==V.boxPlot.boxPlotCategory&&T.push(u),T.push(v),h!==""&&T.push(h),T.push(d);let F={...i,where:Xt([i.where,w]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:T};f.push(ra({queryObject:r,queryConfig:F,featureCount:1,abortKey:s}))}}}let m=await Promise.all(f),y=new Map;for(let g=0;g<m.length;g+=1){let v=m[g],b=c[g];v.forEach(P=>{let w={...P.attributes};if(w[b]!==void 0){u===V.boxPlot.boxPlotCategory&&(w[V.boxPlot.boxPlotCategory]=b);let T={key:Te.Outlier,chartSubType:o};switch(o){case A.BoxPlotMonoFieldAndSplitBy:case A.BoxPlotMultiFieldsAndSplitBy:case A.BoxPlotMonoFieldAndCategoryAndSplitBy:T={...T,splitByValue:w[h]};break;case A.BoxPlotMultiFieldsAndCategory:T={...T,y:b};break}let F=Oi(T),D=w[b];w[F]=D;let O=`${w[u]}-${w[h]}-${D}`,N=y.get(O);if(w[It.uniqueIdsName]=[...N?.[It.uniqueIdsName]??[],w[d]],delete w[d],iw(o)){let L=Oi({...T,standardizeValues:!0}),{mean:E,stdDev:B}=PA({data:e,outlierDataItem:w,chartSubType:o,x:u,y:b,splitByField:h,meanAndStdDevPerField:n});E!==void 0&&B!==void 0&&(w[L]=zm({value:D,mean:E,stdDev:B}))}delete w[b],w[V.boxPlot.boxPlotOutlierId]=!0,y.set(O,w)}})}return Array.from(y.values())}async function TA(a){let{data:t,queryObject:e,uniqueQuery:i,elementCount:r,chartConfig:n,chartLimits:s,abortKey:o}=a,l=[],{series:u,showMean:h}=n,p=Ad({showMean:h,seriesConfig:u}),d=Re(u),c=fn(n),{x:f}=c,m=Ji(c.query?.where),y=[];for(let v=0;v<p.length;v+=1){let b=p[v],{dataWithoutOutliersFilterBatches:P}=jC({data:t,yField:b,x:f,chartSubType:d,splitByField:m});for(let w=0;w<P.length;w+=1){let T=P[w],F={...i,where:Xt([i.where,T])};F.outStatistics!==void 0&&(F.outStatistics=F.outStatistics?.filter(D=>(D.statisticType===ie.Minimum||D.statisticType===ie.Maximum)&&D.onStatisticField===b).map(D=>({...D,outStatisticFieldName:`${D.outStatisticFieldName}${V.boxPlot.boxPlotOutliersSuffix}`}))),y.push(Fd({queryObject:e,uniqueQuery:F,chartConfig:n,elementCount:r,isTimeBinningSeries:!1,showMean:h,chartLimits:s,abortKey:o}))}}let g=await Promise.all(y);for(let v=0;v<g.length;v+=1)l.push(...g[v]);return d!==A.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=Ku({data:l,x:m!==void 0&&m!==""?m:f})),l}async function $A(a){let{queryObject:t,uniqueQuery:e,chartConfig:i,abortKey:r}=a,n,{series:s,showMean:o}=i,l=Re(s);if(l===A.BoxPlotMultiFieldsAndCategory||l===A.BoxPlotMultiFieldsAndSplitBy){let u=Ad({showMean:o,seriesConfig:s}),h={...e};delete h.outStatistics,delete h.groupByFieldsForStatistics,delete h.orderByFields;let p=[];for(let c=0;c<u.length;c+=1){let f=u[c];p.push({statisticType:ie.Average,onStatisticField:f,outStatisticFieldName:`${ie.Average}_${f}`},{statisticType:ie.StandardDeviation,onStatisticField:f,outStatisticFieldName:`${ie.StandardDeviation}_${f}`})}h.outStatistics=p;let d=await ra({queryObject:t,queryConfig:h,featureCount:1,abortKey:r});d.length>0&&(n=d[0].attributes)}return n}function OA(a){let{data:t,additionalData:e,chartConfig:i}=a,r=i.series[0],{x:n}=r,s=Ji(r.query?.where);return t.map(o=>{let l=o,u=e.find(h=>h[n]===o[n]&&(s===""?!0:h[s]===o[s]));return u!==void 0&&(l={...o,...u}),l})}function BC(a){let{chartConfig:t,data:e,calculateZScore:i=!1,meanAndStdDevPerField:r}=a,{series:n,showMean:s}=t,o=fn(t),l=Re(t.series),{x:u}=o,h=Ad({showMean:s,seriesConfig:n}),p=e;if(e?.[0]!==void 0){let d=Ji(o.query?.where);switch(l){case A.BoxPlotMonoField:p[0][V.boxPlot.boxPlotCategory]=h[0];break;case A.BoxPlotMultiFields:p=gA({data:e,yList:h,calculateZScore:i});break;case A.BoxPlotMonoFieldAndSplitBy:p=vA({data:e,splitByField:d,y:h[0]});break;case A.BoxPlotMultiFieldsAndSplitBy:p=bA({splitByField:d,data:e,yList:h,meanAndStdDevPerField:r,calculateZScore:i});break;case A.BoxPlotMultiFieldsAndCategory:p=xA({data:e,yList:h,meanAndStdDevPerField:r,calculateZScore:i});break;case A.BoxPlotMonoFieldAndCategoryAndSplitBy:p=SA({splitByField:d,x:u,data:e});break;case A.BoxPlotMonoFieldAndCategory:}}return CA(t,p),p}async function DA(a){let{data:t,queryObject:e,uniqueQuery:i,fetchFullBoxPlotData:r,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=a,u=t,h=[];if(u!==void 0){let{series:p}=n,d=await $A({queryObject:e,uniqueQuery:i,chartConfig:n,abortKey:l});if(r!==!1){h=await _A({queryObject:e,uniqueQuery:i,seriesConfig:p,data:u,abortKey:l});let c=await TA({queryObject:e,uniqueQuery:i,elementCount:s,data:t,chartConfig:n,chartLimits:o,abortKey:l});u=OA({data:u,additionalData:c,chartConfig:n})}u=BC({chartConfig:n,data:u,meanAndStdDevPerField:d,calculateZScore:!0})}return{dataItems:u,outliers:h}}function FA(a){let{whereValue:t,outStatistics:e,y:i}=a,r=It.outStatistics.outStatisticFieldName??"";return e?.outStatisticFieldName!==void 0?r=e.outStatisticFieldName:e?.onStatisticField!==void 0&&e.statisticType!==void 0?r=`${e.statisticType}_${e.onStatisticField}_${t}`:i!==void 0&&(r=[i].flat()[0]),r}function IA(a){let t=new Map;for(let e=0;e<a.length;e+=1){let i=a[e],r=i.query?.where;if(r!==void 0&&"y"in i){let n=_r({where:r,normalize:!0,escape:!1});if(n!==""){let s=FA({whereValue:n,outStatistics:i.query?.outStatistics?.[0],y:i.y});i.y=s,t.set(n,s)}}}return t}function AA(a){let{uniqueQuery:t,splitByField:e,x:i}=a,r=[...t.groupByFieldsForStatistics??[],i,e].filter(n=>n!==void 0&&n.trim()!==""&&n!==Pl);t.groupByFieldsForStatistics=Array.from(new Set(r))}function WC(a){return a.statisticType===ie.ContinuousPercentile||a.statisticType===ie.DiscretePercentile}function LA(a){let{uniqueQuery:t,y:e,useGenericOutStatFieldName:i,queryObject:r,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=a,u=It.outStatistics;if(t.outStatistics?.[0]!==void 0){n!==A.PieFromFields&&n!==A.BarAndLineFromFields&&(t.outStatistics[0].outStatisticFieldName=i?u.outStatisticFieldName:[e].flat()[0]);let{outStatistics:h}=t;for(let p=0;p<h.length;p+=1){let d=h[p];d!==void 0&&WC(d)&&(s&&!Gu(r)?(h[p].statisticType=ie.Count,delete h[p].statisticParameters):h[p]={...h[p],statisticParameters:h[p].statisticParameters??{value:V.defaultStatParameterValue}})}}else{let h=tt(r),{idField:p,isTraditionalTypeOID:d}=aa(h),c=d?p:"*";t.outStatistics=[{statisticType:u.statisticType,onStatisticField:c,outStatisticFieldName:i?u.outStatisticFieldName:[e].flat()[0]}]}o===!0&&(!s||Ci(l))&&t.outStatistics?.push({statisticType:ie.EnvelopeAggregate,onStatisticField:"1"})}function EA(a){let{chartConfig:t,fetchFullBoxPlotData:e}=a,{series:i}=t,r=Sl(t),n=[{statisticType:ie.Average,suffix:Te.Average}];e===!0&&(n=[...n,{statisticType:ie.Minimum,suffix:Te.Min},{statisticType:ie.ContinuousPercentile,statisticParameters:{value:.25},suffix:Te.FirstQuartile},{statisticType:ie.ContinuousPercentile,statisticParameters:{value:.5},suffix:Te.Median},{statisticType:ie.ContinuousPercentile,statisticParameters:{value:.75},suffix:Te.ThirdQuartile},{statisticType:ie.Maximum,suffix:Te.Max},{statisticType:ie.StandardDeviation,suffix:Te.StandardDeviation}]);let s=new Set;return r&&"y"in i[0]?[i[0].y].flat().forEach(o=>s.add(o)):i.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let u={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===ie.ContinuousPercentile&&(u.statisticParameters=l.statisticParameters),u}))}function kA(a,t){for(let e=1;e<t.length;e+=1){let i={...t[e].query?.outStatistics?.[0]};i!==void 0&&a.outStatistics!==void 0&&a.outStatistics.push(i)}}function VA(a){let{uniqueQuery:t,x:e,splitByField:i,unit:r,chartSubType:n,objectIdFields:s,runsOnClientQueryEngine:o}=a;if(r!==void 0){let l=XF({dateFieldName:e,unit:r,runsOnClientQueryEngine:o});t.orderByFields=l,t.groupByFieldsForStatistics=l,n===A.BarAndLineSplitBy&&!Ci(i)?t.groupByFieldsForStatistics.push(i):n===A.BarAndLineNoAggregation&&(t.groupByFieldsForStatistics=s,t.outStatistics=[{onStatisticField:s.length>1?"*":s[0],outStatisticFieldName:`COUNT_${s[0]}`,statisticType:ie.Count}])}}function qC(a){let{chartConfig:t,options:e,uniqueQuery:i}=a;if(e?.chartLimits?.behaviorAfterLimit===ts.RenderUpToTheLimit){let r=oC(t,e?.chartLimits);if(r!==void 0){let n=Re(t.series);if(n===A.PieFromFields||n===A.BarAndLineFromFields){if(i.outStatistics?.[0]!==void 0){let s=(u,h)=>u.statisticType===ie.EnvelopeAggregate===h,o=i.outStatistics.filter(u=>s(u,!0)),l=i.outStatistics.filter(u=>s(u,!1));l.splice(r),i.outStatistics=[...l,...o]}}else i.num=r}}}function ry(a){let{chartConfig:t,queryConfig:e,options:i,queryObject:r,timeIntervalInfo:n,fetchFullBoxPlotData:s}=a,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=i??{},u=t.series,h=Re(u),p=fn(t),{query:d,x:c}=p,f="y"in p?p.y:void 0,m=as({xAxisValueFormatType:ja(t),setTimeBinningInfoWhenNotProvided:o,seriesConfig:p,queryObject:r}),y=new Map,g=!1,v=!1,b=!1,P=!1,w=!1,T={};if(d!==void 0){T=sa(d);let q=Ji(d.where),Y="";switch(e.fetchNullValues!==!0&&(c!==V.boxPlot.boxPlotCategory&&(Y=`${c} IS NOT NULL`),q.trim()!==""&&q!==c&&!un(d.where)&&(Y=Xt([Y,`${q} IS NOT NULL`]))),h){case A.BarAndLineSplitBy:{y=IA(u),P=!0,g=!0,v=!0;break}case A.BarAndLineMultiFields:kA(T,u),v=!0;break;case A.PieFromFields:case A.BarAndLineFromFields:Y="",b=!0,v=!0;break;case A.BarAndLineMonoField:case A.PieFromCategory:v=!0;break;case A.BoxPlotMonoField:case A.BoxPlotMultiFields:b=!0,w=!0;break;case A.BoxPlotMonoFieldAndCategory:case A.BoxPlotMultiFieldsAndCategory:case A.BoxPlotMonoFieldAndSplitBy:case A.BoxPlotMonoFieldAndCategoryAndSplitBy:case A.BoxPlotMultiFieldsAndSplitBy:{w=!0,P=!0,b=!0;break}case A.PieNoAggregation:case A.BarAndLineNoAggregation:case A.BarAndLineSplitByNoAggregation:}if(v&&LA({uniqueQuery:T,y:f,useGenericOutStatFieldName:g,queryObject:r,chartSubType:h,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:q}),P&&AA({uniqueQuery:T,splitByField:q,x:c}),or(t)&&w&&(T.outStatistics=EA({chartConfig:t,fetchFullBoxPlotData:s})),b?delete T.orderByFields:e.orderByFields!==void 0&&(T.orderByFields=e.orderByFields.filter(he=>{let re=he.split(" ");return!Ci(re[0])})),m&&xa(u[0])){let he=tt(r),{idFields:re}=Dd(he);Tr(r).find(pe=>pe.name===c)?.type!==wt.DateOnly&&re&&VA({uniqueQuery:T,x:c,splitByField:Ji(d.where),unit:n?.unit??u[0].temporalBinning?.unit,chartSubType:h,objectIdFields:re,runsOnClientQueryEngine:Ra(r)})}T.where=Y}qC({chartConfig:t,options:i,uniqueQuery:T});let{gdbVersion:F,geometry:D,distance:O,units:N,timeExtent:L,where:E,objectIds:B,spatialRelationship:U}=e;return F!==void 0&&(T.gdbVersion=F),D!==void 0&&(T.geometry=D),O!==void 0&&(T.distance=O),N!==void 0&&(T.units=N),L!==void 0&&(T.timeExtent=L),B!==void 0&&(T.objectIds=B),U!==void 0&&(T.spatialRelationship=U),E!==void 0&&(T.where=Xt([T.where,E])),{uniqueQuery:T,mapToStatField:y}}async function MA(a){let{queryObject:t,queryConfig:e,chartConfig:i,abortKey:r}=a,n=i.series[0],{x:s,valueConversion:o}=n,l=oy(i),u=await ra({queryObject:t,queryConfig:e,featureCount:e.num??1,abortKey:r}),h=[{[s]:null}];if(l)h=u.map(p=>{ny(p.attributes,s);let d=$S(p.attributes[s],o);return{...p.attributes,[s]:d}});else if(u.length>0){let p=u[0].attributes[s]??u[0].attributes[s.toUpperCase()]??u[0].attributes[s.toLowerCase()];p=$S(p,o),h=[{[s]:p}]}return h}async function NA(a){let{queryObject:t,chartConfig:e,queryConfig:i,options:r,abortKey:n}=a,{chartLimits:s}=r??{},o={valid:!0},{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:u}=s??{},h=oy(e),p=!0,d;if(h&&(d=(await JC({chartConfig:e,queryObject:t,queryConfig:i,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:u,isGaugeByFeature:h})).elementCount,r?.chartLimits?.behaviorAfterLimit!==ts.RenderUpToTheLimit&&(p=ln({count:d??0,seriesCount:e.series.length,chartType:$.GaugeSeries,chartLimits:s})),r&&(Number.isFinite(u)||Number.isFinite(d)))){let c=Math.min(u??Number.NaN,d??Number.NaN);Number.isFinite(c)&&(r.chartLimits={...s,maxGaugeByFeaturesLimit:c}),qC({chartConfig:e,options:r,uniqueQuery:i})}if(Number.isNaN(p)||p){let c=await MA({queryObject:t,chartConfig:e,queryConfig:i,abortKey:n});o.data={dataItems:c},o.count=c.length}else o.count=d,Pd({dataInfo:o,chartType:$.GaugeSeries});return o}async function tne(a){let{queryObject:t,chartConfig:e,queryConfig:i}=a,{minimumFromField:r,maximumFromField:n}=e.axes[0],s=[],o="",l="";r!==void 0&&(typeof r=="string"?(o=`${ie.Minimum}_${r}`,s.push({statisticType:ie.Minimum,onStatisticField:r,outStatisticFieldName:o})):(o=`${r.statisticType}_${r.onStatisticField}`,s.push({...r,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${ie.Maximum}_${n}`,s.push({statisticType:ie.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let u={...i,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},h=await Qu({queryObject:t,queryConfig:u}),p=h.get(o),d=h.get(l);return{minimumFromData:p,maximumFromData:d}}function RA(a){let{itemsA:t,itemsB:e,isPieFromFields:i,x:r,y:n,outStatisticFieldName:s}=a,o=sa(t),l=sa(e),u=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)u=!0;else if(!i){let h=[V.originalCategoryValue,V.originalYCategoryValue,V.originalDateValue,V.xAxisField,V.technicalSortingFieldBySum,V.technicalSortingFieldByPercent,V.pieChart.technicalFieldSlicePercent,V.pieChart.technicalFieldGroupedSlices,V.pieChart.technicalFieldSliceId,V.originalServerBinningRange,V.lastTemporalBin,V.technicalFieldSplitByField,It.uniqueIdsName,ht.valueField,...JS],p=(m,y)=>{let g=y[V.originalCategoryValue];g!==void 0&&r&&(y[r]=g);let v=y[V.originalYCategoryValue];v!==void 0&&n&&(y[n]=v),r&&y[ht.xField]!==void 0&&(y[r]=y[V.originalCategoryValue]!==void 0?y[V.originalCategoryValue]:y[ht.xField],delete y[ht.xField]),n&&y[ht.yField]!==void 0&&(y[n]=y[V.originalYCategoryValue]!==void 0?y[V.originalYCategoryValue]:y[ht.yField],delete y[ht.yField]),s&&y[ht.valueField]!==void 0&&(y[s]=y[ht.valueField],delete y[ht.valueField]);let b={};return Object.keys(y).forEach(P=>{!h.includes(P)&&!P.includes(V.rendererSymbolField)&&(b[P]=y[P])}),m.push(b),m},d=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),c=o?.reduce(p,[])?.sort(d),f=l?.reduce(p,[])?.sort(d);c&&f&&r&&c.length!==f.length&&(c=Ku({data:c,x:r}),f=Ku({data:f,x:r})),u=c?.length!==f?.length||!Ha(c,f)}return u}function jA(a){let{chartConfig:t,currentSelectionDataItems:e,options:i}=a,{selectionData:r}=i??{},n=[];if(t!==void 0){let s=t.series,o=Re(s),{selectionItems:l}=r??{};if(l!==void 0&&RA({itemsA:l,itemsB:e,isPieFromFields:Re(t.series)===A.PieFromFields,x:t.series[0].x,y:"y"in t.series[0]?t.series[0].y.toString():void 0,outStatisticFieldName:t.series[0].query?.outStatistics?.[0]?.outStatisticFieldName})?n=l:n=e??[],s.length>1&&o!==A.BarAndLineNoAggregation&&o!==A.BarAndLineSplitByNoAggregation){let u=Ji(s[0].query?.where);n=Ku({data:n,x:s[0].x,splitByField:u})}Xu({arrayToSort:n,chartConfig:t})}return n??[]}function Jn(a,t){let e="";if(a.trim()!==""&&t!==void 0)if(t===null)e=`${a} IS NULL`;else{let i=typeof t!="number"?"'":"";e=`${a}=${i}${t.toString()}${i}`}return e}function BA(a){let{dataContext:t,xAxisField:e,yAxisField:i,options:r}=a,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:u}=V.scatterplotAggregationFields;if(nC({dataContext:t,chartLimits:r?.chartLimits})){let{[s]:h,[o]:p}=t,d=e!==i?t[l]:h,c=e!==i?t[u]:p;if(!Number.isNaN(h)&&!Number.isNaN(p)&&!Number.isNaN(d)&&!Number.isNaN(c)){let f=[];h===p?f.push(`${e}=${h?.toString()}`):(f.push(`${e}>=${h?.toString()}`),f.push(`${e}<=${p?.toString()}`)),d===c?f.push(`${i}=${d?.toString()}`):(f.push(`${i}>=${d?.toString()}`),f.push(`${i}<=${c?.toString()}`)),n=Xt(f)}}else n=Xt([hn({where:Jn(e,t[e])}),i!==void 0?hn({where:Jn(i,t[i])}):""]);return n}function NS(a){let{fieldsIndex:t,fieldName:e,inputDate:i}=a,r=t.get(e),n=t.getTimeZone(e);return bD(new Date(i),{type:"date"},{type:r,timeZone:n})}function zC(a){let{xAxisField:t,dataContext:e,queryObject:i}=a,r="",n=e[V.originalServerBinningRange]??e[V.dateBinningRange];if(ih(n)&&n.length===2){let[s,o]=n,l=!0,u=Ra(i);if(u){let h=tt(i),{fieldsIndex:p}=h;s=NS({fieldsIndex:p,fieldName:t,inputDate:s}),o=NS({fieldsIndex:p,fieldName:t,inputDate:o})}else typeof s=="number"&&typeof o=="number"?Number.isFinite(s)&&Number.isFinite(o)?(s=vl(s),o=vl(o)):l=!1:typeof s=="string"&&typeof o=="string"&&(s=new Date(s).toISOString(),o=new Date(o).toISOString());if(l){let h=u?"":"'",p=e[V.lastTemporalBin]===!0?"<=":"<";r=`${t}>=${h}${s}${h} AND ${t}${p}${h}${o}${h}`}}return r}function HC(a,t){let e="";if(Number.isFinite(a)){let i=1/10**V.queryMaxFloatPrecision;e=`${t}>=${a-i} AND ${t}<=${a+i}`}return e}function UC(a){let{xAxisField:t,yAxisField:e,splitBy:i,dataContext:r,xAxisFieldType:n,chartConfig:s}=a,o="";if(t!==void 0&&t!==V.boxPlot.boxPlotCategory){let h=Hu({value:r[t],dataContext:r,keepNullValues:!0});n===wt.Double?o=HC(h,t):(Us(s.axes?.[0].valueFormat)&&(h=vl(h)),o=hn({where:Jn(t,h),normalize:!1,escape:!0}))}let l=hn({where:i??"",normalize:!1,escape:!0}),u="";if(O1(s)){let h=Re(s.series)===A.BoxPlotMultiFieldsAndCategory?e:void 0,p=Oi({key:Te.Min,showOutliers:!0,splitBy:i,y:h}),d=Oi({key:Te.Max,showOutliers:!0,splitBy:i,y:h}),c=t===V.boxPlot.boxPlotCategory?r[t]:e;if(!Ci(c)){let f=r[p],m=r[d];Number.isFinite(f)&&Number.isFinite(m)&&(u=`${c?.toString()}>=${f?.toString()} AND ${c?.toString()}<=${m?.toString()}`)}}return Xt([o,l,u])}function WA(a){let{xAxisField:t,splitBy:e,dataContext:i,xAxisFieldType:r,chartConfig:n,queryObject:s}=a,o="";if(V.dateBinningRange in i)o=zC({xAxisField:t,dataContext:i,queryObject:s});else if(Re(n.series)!==A.BarAndLineFromFields){let u=Hu({value:i[t],dataContext:i,keepNullValues:!0});r===wt.Double?o=HC(u,t):(Us(n.axes?.[0].valueFormat)&&r!==wt.TimeOnly&&(u=vl(u)),o=hn({where:Jn(t,u),normalize:!1,escape:!0}))}let l=hn({where:e??"",normalize:!1,escape:!0});return Xt([o,l])}function qA(a){let{xAxisField:t,dataContext:e,chartConfig:i}=a,r=e[V.originalCategoryValue];return r===void 0&&(r=e[t]),Re(i.series)===A.PieFromFields?"":hn({where:Jn(t,r),normalize:!1,escape:!0})}function RS(a){let{field:t,fieldType:e,fieldValue:i,unit:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=a,l,{expression:u}=Jm({field:t,fieldType:e,unit:r,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return u&&(l=`${u}=${i}`),l}function zA(a){let{xAxisFieldType:t,yAxisFieldType:e,dataContext:i,chartConfig:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=a,l=r.series[0],u="";if(l.type===$.HeatSeries){let h,p,d=i[ht.xField],c=i[V.originalCategoryValue],f=i[ht.yField],m=i[V.originalYCategoryValue],y=r.axes?.[0]?.valueFormat?.type,g=r.axes?.[1]?.valueFormat?.type;y===$.CategoryAxisFormat?h=hn({where:Jn(l.x,c??d),normalize:!1,escape:!0}):h=RS({field:l.x,fieldType:t,fieldValue:d,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),g===$.CategoryAxisFormat?p=hn({where:Jn(l.y,m??f),normalize:!1,escape:!0}):p=RS({field:l.y,fieldType:e,fieldValue:f,unit:l.yTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),h&&(u=h),p&&(u=Xt([u,p]))}return u}function HA(a){let{xAxisField:t,dataContext:e,chartConfig:i}=a,r="",n=i.series[0],{minValue:s,maxValue:o}=e;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===$.HistogramSeries){let l=cF(t,n.dataTransformationType),u=e.isLastBin?"<=":"<";r=Xt([`${l}>=${s?.toString()}`,`${l}${u}${o?.toString()}`])}return r}function ine(a){let{chartConfig:t}=a,e=Ae(t.series),i="";switch(e){case $.ScatterSeries:i=BA(a);break;case $.HeatSeries:i=zA(a);break;case $.RadarSeries:case $.BarSeries:case $.LineSeries:case $.ComboLineAndBarSeries:i=WA(a);break;case $.BoxPlotSeries:i=UC(a);break;case $.HistogramSeries:i=HA(a);break;case $.PieSeries:i=qA(a);break}return i}async function UA(a){let{queryObject:t,queryConfig:e,chartConfig:i,currentSelectionDataItems:r,options:n,errorStrings:s,abortKey:o}=a,l=Re(i.series),u={valid:!0,data:{dataItems:[]}};if(r!==void 0&&r.length>0){let h=fn(i),{x:p}=h,d="y"in h?h.y:"",c=Tr(t).find(b=>b.name===p)?.type,f=[],m=r.reduce((b,P)=>{let w=[];if(It.uniqueIdsName in P)f.push(P[It.uniqueIdsName]);else{switch(l){case A.BoxPlotMonoFieldAndSplitBy:case A.BoxPlotMultiFieldsAndSplitBy:case A.BoxPlotMonoFieldAndCategoryAndSplitBy:{let D=Ji(h.query?.where??""),O=`_${Te.Average}`;Object.keys(P).forEach(N=>{if(N.includes(O)){let L=N.replace(O,"");L.trim()!==""&&w.push(Jn(D,L))}});break}}let T=[d].flat(),F=T.length===1?T[0]:"";if(l===A.BoxPlotMultiFieldsAndCategory){let D=`_${Te.FirstQuartile}`,O=Object.keys(P).find(N=>N.includes(D));O!==void 0&&(F=O.replace(D,""))}w.length===0&&w.push(""),w.forEach(D=>{let O=UC({chartConfig:i,xAxisField:p,yAxisField:F,splitBy:D,dataContext:P,xAxisFieldType:c});b.push(O)})}return b},[]),y=tt(t);if(y!==void 0&&f.length>0){let b=aa(y).idField;m.push(`${b} IN (${f.join(",")})`)}let g=m.join(" OR "),v={...e};v.where=Xt([v.where,g]),u=await ay({queryObject:t,chartConfig:i,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return u}async function GA(a){let{queryObject:t,queryConfig:e,chartConfig:i,currentSelectionDataItems:r,dataForFilterBySelectionChanged:n,options:s,errorStrings:o,abortKey:l}=a;Cd(t);let{series:u}=i,h=Ae(u),p=ja(i),d={valid:!0},c=s?.selectionData?.selectionItems??[];n||(c=jA({chartConfig:i,currentSelectionDataItems:r,options:s}));let f=!1;switch(h){case $.HeatSeries:d.data={dataItems:c};break;case $.PieSeries:if(Re(i.series)===A.PieFromFields){let{x:m,y}=i.series[0],g=sa(c);g.forEach(v=>{m in v&&(v[Zi]=v[m],delete v[m]),y in v&&(v[ba]=v[y],delete v[y])}),d.data={dataItems:g}}else d.data={dataItems:c};d.count=c.length,f=!0;break;case $.BoxPlotSeries:or(i)&&(d=await UA({queryObject:t,queryConfig:e,chartConfig:i,currentSelectionDataItems:r,options:s,errorStrings:o,abortKey:l}));break;case $.BarSeries:case $.ComboLineAndBarSeries:case $.RadarSeries:case $.LineSeries:if(c.length===0||!as({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:s?.setTimeBinningInfoWhenNotProvided,seriesConfig:u[0],queryObject:t}))d.data={dataItems:c},d.count=c.length*u.length,f=!0;else{let m={...e};if(r!==void 0&&r.length>0){let y=r.map(v=>zC({xAxisField:u[0].x,dataContext:v,queryObject:t})),g=Xt(y,"OR");m.where=Xt([m.where,g])}d=await sy({queryObject:t,queryConfig:m,chartConfig:i,options:s})}break;case $.HistogramSeries:{if(c.length===0)d.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},d.count=0;else{let{x:m}=u[0],y=c.map((b,P)=>{let{minValue:w,maxValue:T}=b,F=P===c.length-1?"<=":"<";return`${m} >= ${w} AND ${m} ${F} ${T}`}),g=Xt(y,"OR"),v={...e};v.where=Xt([v.where,g]),d=await NC({queryObject:t,chartConfig:i,queryConfig:v,options:s,errorStrings:o,abortKey:l})}break}case $.ScatterSeries:{if(c.length===0){let{r2:m,trendLinePoints:y}=V.scatterplotSeries;d.data={dataItems:[],r2:m,trendLinePoints:y,count:0},d.count=0}else{let{r2:m,trendLinePoints:y}=wC({data:c,chartConfig:i});d.data={dataItems:c,r2:m,trendLinePoints:y},d.count=c.length}break}}return f&&d.data!==void 0&&Xu({arrayToSort:"dataItems"in d.data?d.data.dataItems:d.data,chartConfig:i}),d}async function ay(a){let{queryObject:t,chartConfig:e,queryConfig:i,options:r,errorStrings:n,abortKey:s}=a,o={valid:!0},l=Sl(e),u=await Hm({queryObject:t,queryConfig:i,fetchFullBoxPlotData:!l,options:r,chartConfig:e,abortKey:s});if(!l)o=u;else{let h={dataItems:[]};h.meanLines=u.data.dataItems;let p=mA(e),d=(await Hm({queryObject:t,queryConfig:i,fetchFullBoxPlotData:!0,options:r,chartConfig:p,abortKey:s})).data;h.dataItems=d.dataItems,h.outliers=d.outliers,o.data=h}return o}async function YA(a){let{queryObject:t,chartConfig:e,queryConfig:i,options:r,errorStrings:n,abortKey:s,fieldList:o,currentSelectionDataItems:l,dataForFilterBySelectionChanged:u,preFetchedQueryResponse:h}=a,{series:p}=e,{filterBySelection:d}=r??{},c=Ae(p),f={valid:!0};if(d===!0)f=await GA({queryObject:t,queryConfig:i,chartConfig:e,currentSelectionDataItems:l,dataForFilterBySelectionChanged:u,options:r,errorStrings:n,abortKey:s});else switch(c){case $.HeatSeries:Cd(t),f=await ew({chartConfig:e,queryConfig:i,queryObject:t,errorStrings:n,options:r,abortKey:s});break;case $.BoxPlotSeries:or(e)&&(f=await ay({queryObject:t,chartConfig:e,queryConfig:i,options:r,errorStrings:n,abortKey:s}));break;case $.BarSeries:case $.ComboLineAndBarSeries:case $.PieSeries:case $.RadarSeries:case $.LineSeries:{let m={queryObject:t,queryConfig:i,chartConfig:e,options:r,abortKey:s,fieldList:o,preFetchedQueryResponse:h};as({xAxisValueFormatType:ja(e),setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,seriesConfig:p[0],queryObject:t})?f=await sy(m):f=await Hm(m);break}case $.ScatterSeries:f.data=await tw({queryObject:t,queryConfig:i,options:r,chartConfig:e,errorStrings:n,abortKey:s});break;case $.HistogramSeries:f=await NC({queryObject:t,queryConfig:i,chartConfig:e,options:r,abortKey:s,errorStrings:n});break;case $.GaugeSeries:Cd(t),f=await NA({queryObject:t,chartConfig:e,queryConfig:i,options:r,abortKey:s});break}return f}async function rne(a){let{queryObject:t,chartConfig:e,abortKey:i,currentSelectionDataItems:r,dataForFilterBySelectionChanged:n,options:s,errorStrings:o,fieldList:l,preFetchedQueryResponse:u}=a,h={valid:!0},p=AC({queryObject:t,chartConfig:e,runtimeDataFilters:s?.runtimeDataFilters,ignoreViewExtent:s?.ignoreViewExtent,viewExtent:s?.view?.extent});return pI(i),h=await YA({chartConfig:e,queryObject:t,queryConfig:p,currentSelectionDataItems:r,dataForFilterBySelectionChanged:n,options:s,abortKey:i,errorStrings:o,fieldList:l,preFetchedQueryResponse:u}),h.queryConfig=p,h}function XA(a,t,e){let i=new Map;for(let r=0;r<a.length;r+=1)i.set(a[r],{[e]:a[r]});for(let r=0;r<t.length;r+=1){let n=t[r][e];(typeof n=="string"||typeof n=="number")&&i.set(n,t[r])}return[...i.values()]}async function KA(a){let{seriesData:t,chartConfig:e,queryConfig:i,queryObject:r,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=a,{series:l}=e,u=t,h=Re(l),p=ja(e);if(s!==ts.RenderUpToTheLimit&&n!==void 0&&n>t.length&&h!==A.BarAndLineFromFields&&h!==A.BarAndLineNoAggregation&&h!==A.PieNoAggregation&&p===$.CategoryAxisFormat){let{x:d}=l[0],c={...i,returnDistinctValues:!0,outFields:[d]};delete c.outStatistics,delete c.orderByFields,delete c.groupByFieldsForStatistics;let f=(await ra({queryObject:r,queryConfig:c,featureCount:n,abortKey:o})).map(m=>m.attributes[d]).filter(m=>m!=null);f.length>t.length&&(u=XA(f,t,d))}return u}function ZA(a,t){let e=a,{series:i}=t;if(ja(t)===$.CategoryAxisFormat&&i[0].query?.outStatistics?.[0].statisticType===ie.Count){let r=i.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<a.length;n+=1)a[n]={...r,...a[n]}}return e}var GC=[A.BarAndLineMonoField,A.BarAndLineMultiFields,A.PieNoAggregation,A.PieFromCategory,A.BoxPlotMonoFieldAndCategory,A.BoxPlotMultiFieldsAndCategory,A.BoxPlotMonoFieldAndCategoryAndSplitBy],QA=8e3;function YC(a,t){let e=a;return t===Le.Week?e/=7:t===Le.Month?e/=30:t===Le.Year&&(e/=365),e=Math.ceil(e),e}function es(a){let{date:t,unit:e,nextOrPrevious:i,size:r}=a;if(r!==void 0&&Number.isFinite(r)){let n=i==="next"?r:-r;switch(e){case Le.Second:return lt.fromMillis(t).plus({seconds:n}).valueOf();case Le.Minute:return lt.fromMillis(t).plus({minutes:n}).valueOf();case Le.Hour:return lt.fromMillis(t).plus({hours:n}).valueOf();case Le.Week:case Le.Day:return lt.fromMillis(t).plus({days:n}).valueOf();case Le.Month:return lt.fromMillis(t).plus({months:n}).valueOf();case Le.Year:return lt.fromMillis(t).plus({years:n}).valueOf()}}return t}function JA(a){let{binFirstOrLastIndex:t,data:e,x:i,timeIntervalInfo:r}=a,{unit:n,size:s}=r,o=n===Le.Week?(s??1)*7:s,l=e[t][i],u=t,h=es({date:l,unit:n,size:o,nextOrPrevious:"next"}),p=e[u][i];for(;u+1<e.length&&p<h;)u+=1,p=e[u]?.[i];let d=u+1>=e.length,c=u;d&&e[c]!==void 0&&(c+=1);let f=d?es({date:l,unit:n,size:o,nextOrPrevious:"next"}):e[u][i];return{binStartDate:l,binEndDate:f,last:d,nextBinFirstOrLastIndex:u,sliceStartIndex:t,sliceEndIndex:c}}function eL(a){let{binFirstOrLastIndex:t,data:e,x:i,timeIntervalInfo:r}=a,{unit:n,size:s}=r,o=n===Le.Week?(s??1)*7:s,l=e[t][i],u=t,h=es({date:l,unit:n,size:o,nextOrPrevious:"previous"}),p=e[u][i];for(;u-1>=0&&p>h;)u-=1,p=e[u]?.[i];let d=u-1<=0,c=t;return d&&e[c]!==void 0&&(c-=1),d&&(u=0),{binStartDate:d?es({date:l,unit:n,size:o,nextOrPrevious:"previous"}):e[u][i],binEndDate:l,nextBinFirstOrLastIndex:u,sliceStartIndex:u,sliceEndIndex:c,last:d}}function tL(a){let{binsToRegroup:t,statisticType:e,y:i,nullPolicy:r}=a,n;r!==dr.Interpolate&&(n=r===dr.Zero?0:null);let s=t.filter(o=>Number.isFinite(o[i]));if(s.length>0)switch(e){case ie.Count:case ie.Sum:n=AI(s,o=>o[i]);break;case ie.Minimum:n=Yu(s,o=>o[i]).min;break;case ie.Maximum:n=Yu(s,o=>o[i]).max;break;case ie.Average:n=II(s,o=>o[i]);break;case ie.ContinuousPercentile:}return n}function iL(a){let{data:t,seriesConfig:e,timeIntervalInfo:i,dateMinTimestamp:r,dateMaxTimestamp:n}=a,s=[],{unit:o}=i,l=i.size??1,u=e[0],{x:h}=u,p,d;if(xa(u)&&(d=u.temporalBinning?.nullPolicy,p=u.temporalBinning?.timeAggregationType),l>1||o===Le.Week||o===Le.Month||o===Le.Year){let{query:c}=e[0],f=lr(e),{statisticType:m}=c?.outStatistics?.[0]??El,y=!1,g=p===si.End?t.length-1:0,v={binFirstOrLastIndex:g,data:t,x:h,timeIntervalInfo:i};for(;!y;){let b={},{binStartDate:P,binEndDate:w,last:T,nextBinFirstOrLastIndex:F,sliceStartIndex:D,sliceEndIndex:O}=p===si.End?eL(v):JA(v);if(y=T,b=p===si.End?b=t[O-1]:b=t[g],w>n&&P<n||P<r&&w>r||P>=r&&w<=n){let N=t.slice(D,O).filter(B=>!(V.dateBinModel in B));f.forEach(B=>{b[B]=tL({binsToRegroup:N,statisticType:m,y:B,nullPolicy:d})});let L=N.map(B=>B[Zn]).filter(B=>B!==void 0),E=lF(L);E!==void 0&&(b[Zn]=E),b[h]=P,b[V.xAxisField]=P,b[V.dateBinningRange]=[P,w],delete b[V.dateBinModel],s.push(b)}else T&&p!==si.End&&s.length>0&&(s[s.length-1][V.dateBinningRange][1]=s[s.length-1][V.dateBinningRange][1]+1);g=F,v.binFirstOrLastIndex=F}p===si.End&&(s=s.reverse())}else l===1?s=t.map((c,f)=>{let m=c[h],y=t[f+1]?.[h];return y=typeof y=="number"?y-1:es({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...c,[V.dateBinningRange]:[m,y]}}):s=t;return s}function XC(a){let{dateMinTimestamp:t,dateMaxTimestamp:e,timeIntervalInfo:i}=a,{size:r,unit:n}=i,s=0,o=0;if(r!==void 0&&Number.isFinite(r)&&Number.isFinite(t)&&Number.isFinite(e)){let l=-1,u=lt.fromMillis(t),h=lt.fromMillis(e);switch(n){case Le.Second:l=h.diff(u,"seconds").get("seconds");break;case Le.Minute:l=h.diff(u,"minutes").get("minutes");break;case Le.Hour:l=h.diff(u,"hours").get("hours");break;case Le.Day:case Le.Month:case Le.Year:l=h.diff(u,"days").get("days");break;case Le.Week:l=h.diff(u,"weeks").get("weeks");break}Number.isFinite(l)&&(o=Math.ceil(l)+1,s=r===1?o:Math.ceil(o/r))}return{numberOfFinalBinsWithinDataRange:s,numberOfSingleBinsWithinDataRange:o}}function KC(a){let t=a[0].temporalBinning?.nullPolicy;return a.reduce((e,i)=>{e[V.dateBinModel]=void 0;let r=i.query?.outStatistics?.[0].outStatisticFieldName??[i.y].flat()[0];return t!==dr.Interpolate&&(e[r]=t===dr.Zero?0:null),e},{})}function rL(a){let{dateMaxTimestamp:t,numberOfFinalBinsWithinDataRange:e,numberOfSingleBinsWithinDataRange:i,data:r,seriesConfig:n,timeIntervalInfo:s}=a,{size:o,unit:l}=s,{x:u}=n[0],h=n[0].temporalBinning?.timeAggregationType,p=r[0][u],d=t;if(o!==void 0&&Number.isFinite(o)&&i/e!==o){let c=Math.ceil(i/e)*e-i;l===Le.Week&&(c*=7);let f=KC(n);if(h===si.End){let m=r[0][u];for(let y=0;y<c;y+=1)m=es({date:m,unit:l,size:1,nextOrPrevious:"previous"}),r.push({...f,[u]:m,[V.xAxisField]:m});c>0&&(p=r[r.length-1][u])}else{let m=r[r.length-1][u];for(let y=0;y<c;y+=1)m=es({date:m,unit:l,size:1,nextOrPrevious:"next"}),r.push({...f,[u]:m,[V.xAxisField]:m});d=r[r.length-1][u]}}return{newDateMin:p,newDateMax:d}}function aL(a){let{numberOfSingleBinsWithinDataRange:t,dataLength:e,unit:i}=a;return YC(e,i)>=t}async function nL(a){let{queryObject:t,queryConfig:e,x:i}=a,r=`MIN_${i}`,n=`MAX_${i}`,s=`COUNT_${i}`,o={...e,outStatistics:[{statisticType:ie.Minimum,onStatisticField:i,outStatisticFieldName:r},{statisticType:ie.Maximum,onStatisticField:i,outStatisticFieldName:n},{statisticType:ie.Count,onStatisticField:i,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await Qu({queryObject:t,queryConfig:o}),u=l.get(r),h=l.get(n),p=l.get(s);return typeof u=="string"&&(u=new Date(u).valueOf()),typeof h=="string"&&(h=new Date(h).valueOf()),{dateRange:{dateMinTimestamp:u,dateMaxTimestamp:h},numberOfFeatures:p}}function sL(a){let{newDateMin:t,newDateMax:e,seriesConfig:i,data:r,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=a,{unit:l}=o,u=r;if(!aL({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:h}=i[0],p=i[0].temporalBinning?.timeAggregationType,d=KC(i),c=p===si.End?e:t,f=p===si.End?r.length-1:0;for(;f<r.length&&(p===si.End&&c>t||p!==si.End&&c<e);)c!==r[f][h]?u.push({...d,[h]:c,[V.xAxisField]:c}):f=p===si.End?f-1:f+1,c=es({date:c,unit:l===Le.Month||l===Le.Year?Le.Day:l,size:1,nextOrPrevious:p===si.End?"previous":"next"})}return u}function oL(a){let{data:t,seriesConfig:e,dateMinTimestamp:i,dateMaxTimestamp:r}=a,n=t;if(e[0].temporalBinning?.trimIncompleteTimeInterval!==!1){let{timeAggregationType:s}=e[0].temporalBinning??{},o=t[0]?.[V.dateBinningRange]?.[0],l=t[t.length-1]?.[V.dateBinningRange]?.[1];if(s===si.End?o<i:l>r)if(s===si.End){let u=o;for(;u<i&&t.length>0;)t.shift(),t.length>0&&(u=t[0][V.dateBinningRange]?.[0])}else{let u=l;for(;u>r&&t.length>0;)t.pop(),t.length>0&&(u=t[t.length-1][V.dateBinningRange]?.[1])}}return n}function lL(a){let{groupByFieldsForStatistics:t,dateField:e,queryStartDate:i,queryEndDate:r,y:n,binIndex:s,lastBin:o}=a,l=t===""?Gs.groupByCaseBegin:t;return l=ui(CE,{groupByFieldsForStatistics:l,dateField:e,startDate:`${i}`,endDate:`${r}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*uL(a){let{queryObject:t,seriesConfig:e,queryConfig:i,completeData:r}=a;for(let n=0;n<e.length;n+=1){let s=e[n],{query:o,x:l,y:u}=s,h=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:ie.ContinuousPercentile,statisticType:ie.ContinuousPercentile,statisticParameters:{value:.5}}],p=Gs.groupByCaseBegin;for(let c=0;c<r.length;c+=1){let f=r[c],[m,y]=f[V.dateBinningRange],g=vl(m),v=vl(y);p=lL({groupByFieldsForStatistics:p,queryStartDate:g,queryEndDate:v,dateField:l,y:[u].flat()[0],binIndex:c,lastBin:c===r.length-1})}p=`${p} ${Gs.groupByCaseEnd}`;let d={...i,groupByFieldsForStatistics:[p],outStatistics:h,orderByFields:void 0};yield ra({queryObject:t,queryConfig:d,noBatch:!0})}}async function hL(a){let{queryObject:t,data:e,seriesConfig:i,queryConfig:r}=a,n=e,{statisticType:s}=i[0].query?.outStatistics?.[0]??El;if(s===ie.ContinuousPercentile&&n.length>0){let o=uL({queryObject:t,completeData:n,seriesConfig:i,queryConfig:r}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:u,expr:h}=$d(l[0].attributes);u&&l.forEach(p=>{let d=p.attributes[`${h}`];if(d!==void 0){let[c,f]=d.split("|");if(f!==void 0){let m=p.attributes[ie.ContinuousPercentile];n[f][`${c}`]=m}}})}}return n}function jS(a){let{dataItem:t,nullPolicy:e,statField:i,aggregationType:r}=a;if(i){let n=t[i];if(r===ie.Count&&n===0||n===void 0||n===null)switch(!0){case e===dr.Zero:t[i]=0;break;case e===dr.Null:t[i]=null;break;case e===dr.Interpolate:delete t[i];break}}}function pL(a){let{chartConfig:t,queryResults:e,mapToStatField:i,splitByField:r,x:n,y:s,nullPolicy:o,queryObject:l}=a,u=xC(n),h=Tr(l).find(m=>m.name===n)?.type,p=[],d=t.series[0],c="temporalBinning"in d?d.temporalBinning?.trimIncompleteTimeInterval:!1,f="temporalBinning"in d?d.temporalBinning?.timeAggregationType:!1;return e.forEach((m,y)=>{if(!(c&&(y===0&&f===si.End||y===e.length-1&&f===si.Start))){let{attributes:g,stackedAttributes:v}=m,b=g[u.lowerBoundaryAlias],P=g[u.upperBoundaryAlias],w=b,T=P,F=(O,N)=>{let L=O;if(N===wt.DateOnly&&(typeof O=="string"&&O.length===10||typeof O=="number"))if(typeof O=="string"){let E=O.split("-");E.length===3&&(L=lt.local(Number(E[0]),Number(E[1]),Number(E[2])).valueOf())}else L=new Date(O),L=new Date(L.valueOf()+L.getTimezoneOffset()*6e4),L=lt.local(L.getFullYear(),L.getMonth()+1,L.getDate()).valueOf();else typeof O=="string"&&["+","-"].forEach(E=>{E&&O.lastIndexOf(E)===O.length-6&&(L=new Date(O.slice(0,O.lastIndexOf(E))).valueOf())});return L};b=F(b,h),P=F(P,h);let D=d.query?.outStatistics?.[0].statisticType??El.statisticType;if(typeof b=="number"&&typeof P=="number"){let O={...g};O[V.originalServerBinningRange]=[w,T],O[n]=b,O[V.xAxisField]=b,O[V.dateBinningRange]=[b,P],delete O[u.lowerBoundaryAlias],delete O[u.upperBoundaryAlias],v&&r&&!Ci(r)&&i?v.forEach(E=>{let B=E[r];if(B===null||typeof B=="string"||typeof B=="number"){let U=i?.get(B);U!==void 0&&(O[U]=E[It.outStatistics?.outStatisticFieldName??""],jS({dataItem:O,statField:U,nullPolicy:o,aggregationType:D}))}}):typeof s=="string"&&jS({dataItem:O,statField:s,nullPolicy:o,aggregationType:D});let{featureExtent:N,featureExtentKey:L}=ZC({feature:m,splitByField:r});N&&(O[L]=N),p.push(O)}}}),p}async function dL(a){let{queryObject:t,queryResults:e,x:i,queryConfig:r,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=a,l=e,{dateMinTimestamp:u,dateMaxTimestamp:h}=s;if(u&&h){let p=e.length;if(Uu({arrayToSort:l,sortingField:i}),p>1){let{numberOfFinalBinsWithinDataRange:d,numberOfSingleBinsWithinDataRange:c}=XC({dateMinTimestamp:u,dateMaxTimestamp:h,timeIntervalInfo:o}),{newDateMin:f,newDateMax:m}=rL({dateMaxTimestamp:h,data:l,numberOfFinalBinsWithinDataRange:d,numberOfSingleBinsWithinDataRange:c,seriesConfig:n,timeIntervalInfo:o});l=sL({newDateMin:f,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:p,numberOfSingleBinsWithinDataRange:c,timeIntervalInfo:o}),Uu({arrayToSort:l,sortingField:i}),l=iL({data:l,seriesConfig:n,dateMinTimestamp:u,dateMaxTimestamp:h,timeIntervalInfo:o}),l=oL({data:l,seriesConfig:n,dateMinTimestamp:u,dateMaxTimestamp:h}),t&&(l=await hL({queryObject:t,data:l,seriesConfig:n,queryConfig:r}))}}return l}function cL(a){return Math.floor(Math.min(Math.max(8,Math.sqrt(a??8)),128)+.5)}function fL(a){let{dateRange:t,numberOfFeatures:e}=a,i,r,{dateMinTimestamp:n,dateMaxTimestamp:s}=t;if(n&&s){typeof n=="string"&&(n=new Date(n).valueOf()),typeof s=="string"&&(s=new Date(s).valueOf());let o=cL(e),l=(s-n)/o,u=GS.findIndex(g=>g.threshold>l),h=GS[u],{unitMs:p,preferredIntervalSize:d}=h;({unit:i}=h);let c=l/p,f=d.findIndex(g=>g>=c),m=d[f],y=f===0?d[0]:d[f-1];r=m-c<c-y?m:y}return{size:r,unit:i}}function mL(a){let{series:t,isTimeBinningSeries:e,setTimeBinningInfoWhenNotProvided:i}=a,r=!1;if(xa(t)&&e){let{unit:n,size:s}=t.temporalBinning??{};r=!Bm(n,s)&&i===!0}return r}function yL(a){let t=[];for(let e=1;e<=6;e+=1){let i=a[`EXPR_${e}`]??a[`Expr${e}`]??a[`expr${e}`]??a[`EXPR${e}`];i!==null&&t.push(i)}return lt.local(Number(t[0]??1969),Number(t[1]??1),Number(t[2]??1),Number(t[3]??0),Number(t[4]??0),Number(t[5]??0)).valueOf()}function ZC(a){let{feature:t,splitByField:e,chartSubType:i}=a,r;if(t.aggregateGeometries&&"Extent"in t.aggregateGeometries)r=t.aggregateGeometries.Extent;else{let o=t.aggregateGeometries??t.geometry;o?.extent&&(r=o.extent)}let n=r?.toJSON(),s=Zn;return n!==void 0&&e!==void 0&&i!==void 0&&i===A.BarAndLineSplitBy&&(s=t.attributes[e]!==void 0?`${Zn}_${t.attributes[e]}`:Zn),{featureExtent:n,featureExtentKey:s}}function gL(a){let{input:t,x:e,splitByField:i}=a;return t.reduce((r,n)=>(i!==void 0&&i!==e&&!(V.technicalFieldSplitByField in n)&&delete n[i],Object.assign(r,n)),{})}function Ku(a){let{data:t,x:e,splitByField:i}=a,r=t;if(t!==void 0&&t.length>0){let n=new Map;for(let s of t){let o=s[e];if(o==null||o===void 0)continue;let l=n.get(o)??[];l.push(s),n.set(o,l)}r=Array.from(n.values(),s=>gL({input:s,x:e,splitByField:i}))}return r}function vL(a,t){let e=a,i=Ae(t);if(i!==$.PieSeries&&i!==$.BoxPlotSeries){let r=lr(t),n=t[0].y;a.forEach(s=>{let o=0;if(r.forEach(l=>{let u=s[l];Number.isFinite(u)&&(o+=u)}),s[V.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let u=l/o;s[V.technicalSortingFieldByPercent]=u}}})}return e}function bL(a,t){let e=t,i=lr(a),r=i.length===1;return i.forEach(n=>{let s=yl(r?void 0:n),o=e[s[Te.FirstQuartile]],l=e[s[Te.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(e[s[Te.IQR]]=l-o)}),e}function xL(a,t){let e=t.series[0],i=a;if(e.type===$.HeatSeries){let{x:r,y:n}=e;i[ht.xField]=i[r]?.toString(),delete i[r],i[ht.yField]=i[n]?.toString(),delete i[n];let s=e.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(i[ht.valueField]=i[s],delete i[s])}return i}function ny(a,t){[t].flat().forEach(e=>{e&&(a[e]===void 0&&(a[e]=a[e.toUpperCase()]!==void 0?a[e.toUpperCase()]:a[e.toLowerCase()]),a[e]!==void 0?(e!==e.toUpperCase()&&delete a[e.toUpperCase()],e!==e.toLowerCase()&&delete a[e.toLowerCase()]):delete a[e])})}function SL(a,t){let e=[];It.outStatistics.outStatisticFieldName&&Object.keys(a).includes(It.outStatistics.outStatisticFieldName)?e=[It.outStatistics.outStatisticFieldName]:e=Array.from(new Set(t.flatMap(i=>i.query?.outStatistics?.map(r=>r.outStatisticFieldName)))),ny(a,e)}function CL(a,t){let e={...a};return a!==void 0&&t[0]!==void 0&&(e=Object.keys(a).reduce((i,r)=>{let n=t.find(s=>s.outStatisticFieldName?.toLowerCase()===r.toLowerCase())?.onStatisticField;return n!==void 0&&a[r]!==void 0&&n!==r?i[n]=a[r]:i[r]=a[r],i},{})),e}function wL(a){let{dataItem:t,splitByField:e,y:i,fieldOID:r}=a;if(t!==void 0&&!Ci(e)&&!Ci(i)){let n=t[e],s=`${i}_${n?.toString()}`;t[s]=t[i],r&&i!==r&&delete t[i]}}function PL(a,t){Object.keys(a).forEach(e=>{if(e.startsWith(`${t}_`)){let i=e.slice(t.length+1);a[i]=a[e],delete a[e]}})}function _L(a,t){let e=1;switch(a){case A.BarAndLineFromFields:case A.PieFromFields:e=t.series[0].query?.outStatistics?.length??1;break;case A.BoxPlotMultiFields:case A.BoxPlotMultiFieldsAndSplitBy:e=t.series[0].y.length;break;case A.BarAndLineNoAggregation:case A.BoxPlotMonoField:case A.BoxPlotMonoFieldAndCategory:case A.BoxPlotMultiFieldsAndCategory:case A.BoxPlotMonoFieldAndSplitBy:case A.BoxPlotMonoFieldAndCategoryAndSplitBy:case A.PieFromCategory:case A.BarAndLineSplitByNoAggregation:case A.PieNoAggregation:case A.BarAndLineSplitBy:case A.BarAndLineMonoField:case A.BarAndLineMultiFields:case A.NonSpecific:}return e}function TL(a){let{attributes:t,showMean:e,chartSubType:i}=a;e&&(i===A.BoxPlotMonoFieldAndSplitBy||i===A.BoxPlotMultiFieldsAndSplitBy||i===A.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(t[V.boxPlot.boxPlotMeanLineMarkerId]=!0)}function $L(a){let{queryResponse:t,chartConfig:e,maxCategoryCount:i}=a,r=Re(e.series);return i&&Number.isFinite(i)&&i<t.length&&GC.includes(r)?t.slice(0,i):t}function OL(a){let{attributes:t,uniqueCategoryList:e,maxCategoryCount:i,x:r,chartSubType:n}=a,s=!1;if(r&&i&&Number.isFinite(i)&&!GC.includes(n))if((n===A.BarAndLineFromFields||n===A.PieFromFields)&&Object.keys(t).length>i)Object.keys(t).filter(o=>o!==ie.EnvelopeAggregate).forEach((o,l)=>{l>=i&&delete t[o]});else{let o=t[r];o!==void 0&&(e.size===i&&!e.has(o)?s=!0:e.add(o))}return s}function DL(a){let{attributes:t,xValue:e,yValue:i,x:r,y:n,xFieldDomain:s,yFieldDomain:o,chartType:l,chartSubType:u,xAxisValueFormat:h,yAxisValueFormat:p}=a,d,c;u!==A.PieFromFields&&(s&&(typeof e=="string"||typeof e=="number")&&(d=Rm(e,s)),o&&l===$.HeatSeries&&typeof n=="string"&&(typeof i=="string"||typeof i=="number")&&(c=Rm(i,o)),d!==void 0&&d!==e&&(typeof d!="string"||!Qi(h))&&(t[V.originalCategoryValue]=t[r],t[r]=d),typeof n=="string"&&!Qi(p)&&c!==void 0&&c!==i&&(t[V.originalYCategoryValue]=t[n],t[n]=c))}function FL(a){let t,[e,i,r]=a.split(":");return Number.isFinite(Number(e))&&Number.isFinite(Number(i))&&Number.isFinite(Number(r))&&(t=new Date(2e3,0,1,Number(e),Number(i),Number(r)).valueOf()),t}function QC(a){let{queryObject:t,queryResponse:e,chartConfig:i,mapToStatField:r,splitByField:n,isTimeBinningSeries:s,resultLimit:o,showMean:l,chartLimits:u,fieldList:h}=a,{series:p}=i,d=Re(p),c=Ae(p),{x:f}=p[0],m="y"in p[0]?p[0].y:void 0,y=p[0].query?.outStatistics??[],g=sn(i?.axes?.[0]?.valueFormat),{originalYCategoryValue:v,originalCategoryValue:b,originalDateValue:P}=V,w=Nm(t,f),T=typeof m=="string"?Nm(t,m):void 0,F=QI(h??[]).includes(f),D=[],O=0,N=new Set,{maxCategoryCount:L}=Xs(u),E=$L({queryResponse:e,chartConfig:i,maxCategoryCount:L});for(let B=0;E[B]&&B<E.length&&!(o!==void 0&&O>=o);B+=1){O+=_L(d,i);let U=E[B],q={...U.attributes};if(OL({attributes:q,uniqueCategoryList:N,maxCategoryCount:L,x:f,chartSubType:d}))continue;if(SL(q,p),d===A.PieFromFields||d===A.BarAndLineFromFields)q=CL(q,y);else if(typeof m=="string"&&d===A.BarAndLineSplitByNoAggregation){let Pe=tt(t),{idField:ae,isTraditionalTypeOID:Oe}=aa(Pe);wL({dataItem:q,splitByField:n,y:m,fieldOID:Oe?ae:void 0})}else m&&(d===A.BoxPlotMonoField||d===A.BoxPlotMonoFieldAndCategory||d===A.BoxPlotMonoFieldAndSplitBy||d===A.BoxPlotMonoFieldAndCategoryAndSplitBy)&&PL(q,typeof m=="string"?m:m[0]);TL({attributes:q,showMean:l,chartSubType:d});let Y=q[f],he=typeof m=="string"?q[m]:void 0;Y===null&&p[0]?.query?.fetchNullValues===!0&&d!==A.PieFromFields&&(q[b]=null,Y=V.nullValue),g||(F&&typeof Y=="string"?Y=new Date(Y).valueOf():s&&(Y=yL(q))),typeof Y=="string"&&h?.find(Pe=>Pe.name===f)?.type===wt.TimeOnly&&(q[b]=Y,Y=FL(Y));let{outStatisticFieldName:re}=It.outStatistics??{},{featureExtent:pe,featureExtentKey:le}=ZC({feature:U,splitByField:n,chartSubType:d});if(pe&&(q[le]=pe),d===A.BarAndLineSplitBy&&re!==void 0){let Pe=q[n],ae=r?.get(Pe);ae!==void 0&&(Pe===n&&(q[V.technicalFieldSplitByField]=q[ae]),q[ae]=q[re]),delete q[re]}else(d===A.PieNoAggregation||d===A.BarAndLineNoAggregation||d===A.BarAndLineSplitByNoAggregation)&&(F?q[P]=Y:Y!==V.nullValue&&(q[b]=Y),ED({isXAxis:!0,chartType:c,valueFormat:i.axes?.[0]?.valueFormat})&&(q[V.xAxisField]=`${Y}-${B}`),q[It.uniqueIdsName]=U.getObjectId());c===$.BoxPlotSeries&&(q=bL(p,q)),c===$.PieSeries&&typeof Y=="number"&&(q[b]===void 0&&(q[b]=q[f]),Y=`${Y}`),Y!==void 0&&(q[b]===void 0&&(q[b]=q[f]),q[f]===null?q[f]=c===$.HeatSeries?"null":V.nullValue:q[f]=Y,DL({attributes:q,xValue:Y,yValue:he,x:f,y:m,xFieldDomain:w,yFieldDomain:T,chartType:c,chartSubType:d,xAxisValueFormat:i.axes?.[0].valueFormat,yAxisValueFormat:i.axes?.[1]?.valueFormat}),c===$.HeatSeries&&typeof m=="string"&&q[m]===null&&(q[m]="null",q[v]=null),q[V.xAxisField]===void 0&&(q[V.xAxisField]=q[f])),q=xL(q,i),D.push(q)}return D}async function Fd(a){let{queryObject:t,uniqueQuery:e,chartConfig:i,mapToStatField:r,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:u,usePopupTemplateFieldsInfo:h,preFetchedQueryResponse:p}=a,{series:d}=i,c=Re(d),f=[],m=c===A.BarAndLineSplitBy||c===A.BarAndLineSplitByNoAggregation?Ji(d[0].query?.where):"",y=p??await ra({queryObject:t,queryConfig:e,featureCount:s,abortKey:n}),g=Tr(t,h),{x:v}=d[0];return f=QC({queryObject:t,queryResponse:y,chartConfig:i,mapToStatField:r,splitByField:m,isTimeBinningSeries:o,fieldList:g,resultLimit:e.num,showMean:l,chartLimits:u}),c!==A.BarAndLineSplitByNoAggregation&&c!==A.BarAndLineFromFields&&(m!==""&&(f=Ku({data:f,x:v,splitByField:m})),f=vL(f,d)),f}async function JC(a){let{chartConfig:t,queryObject:e,queryConfig:i,numberMaxOfFeaturesToFetch:r,behaviorAfterLimit:n,isGaugeByFeature:s}=a,{series:o}=t,l=Re(o),{x:u}=o[0],h=o.length,p,d;if(l===A.BoxPlotMonoField||l===A.BoxPlotMonoFieldAndSplitBy?(d=h,p=d):l===A.BoxPlotMultiFields||l===A.BoxPlotMultiFieldsAndSplitBy?(d=t.series[0].y.length,p=d):l===A.PieFromFields||l===A.BarAndLineFromFields?(d=o[0].query?.outStatistics?.filter(c=>c.statisticType!==ie.EnvelopeAggregate).length??0,p=d):p=await uI({queryObject:e,x:u,chartSubType:l,queryConfig:i,isGaugeByFeature:s}),p!==void 0){let c=l===A.BoxPlotMonoField||l===A.BoxPlotMonoFieldAndCategory||l===A.BoxPlotMonoFieldAndSplitBy;d=Wm(l)&&!c?p*h:p}return n===ts.RenderUpToTheLimit&&d!==void 0&&r!==void 0&&r<d&&(d=r,p=Math.ceil(d/h)),{categoryOrDateCount:p,elementCount:d}}async function Hm(a){let{chartConfig:t,queryConfig:e,fetchFullBoxPlotData:i,options:r,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=a,u=Sl(t),{chartLimits:h,usePopupTemplateFieldsInfo:p}=r??{},d=r?.replaceNoValueCategoryWithZero??V.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:c}=h??{},f,m={valid:!0},y,g=!1,v=t.series,b=v[0],P=Re(t.series);if(Vi(n))f=Ae(v)===$.BarSeries?await TE(a):m;else{if(b!==void 0){let w=Ae(v),{uniqueQuery:T,mapToStatField:F}=ry({chartConfig:t,queryObject:n,queryConfig:e,fetchFullBoxPlotData:i,options:r}),{categoryOrDateCount:D,elementCount:O}=await JC({chartConfig:t,queryObject:n,queryConfig:e,behaviorAfterLimit:c,numberMaxOfFeaturesToFetch:T.num}),N=!Number.isFinite(O),L=N||ln({count:O??0,seriesCount:v.length,chartType:w,chartLimits:h});if(L&&(y=await Fd({queryObject:n,uniqueQuery:T,chartConfig:t,preFetchedQueryResponse:l,mapToStatField:F,elementCount:O,isTimeBinningSeries:!1,showMean:u,chartLimits:h,usePopupTemplateFieldsInfo:p,abortKey:s}),or(t)&&y!==void 0&&(m.data=await DA({data:y,queryObject:n,fetchFullBoxPlotData:i,uniqueQuery:T,chartConfig:t,elementCount:O,chartLimits:h,abortKey:s}),h?.maxBoxPlotOutlierLimit!==void 0&&(L=(m.data.outliers??[]).length<=h.maxBoxPlotOutlierLimit,g=!L)),N&&(D=y.length,O=Wm(P)?D*v.length:D,L=ln({count:O,seriesCount:v.length,chartType:w,chartLimits:h})),L)){if(w===$.PieSeries){P===A.PieFromFields&&(y=vd({dataToConvert:y[0],x:Zi,y:ba,fieldList:o}));let E="";P===A.PieFromFields?E=ba:"y"in b&&typeof b.y=="string"&&(E=b.y),fF(y,E)?m.data={dataItems:y}:yA(m,ut.PieChartMixOfNegativePositiveSlices)}else if((w===$.RadarSeries||w===$.BarSeries||w===$.LineSeries||w===$.ComboLineAndBarSeries)&&(P===A.BarAndLineFromFields&&"y"in b&&typeof b.y=="string"?y=vd({dataToConvert:y[0],x:b.x,y:b.y,fieldList:o}):y=await KA({queryObject:n,seriesData:y,chartConfig:t,queryConfig:e,categoryOrDateCount:D,behaviorAfterLimit:c,abortKey:s}),O=Wm(P)?y.length*v.length:y.length,L=ln({count:O,seriesCount:v.length,chartType:w,chartLimits:h}),L)){d&&(y=ZA(y,t));let E={};if(xa(b)){let{size:B,unit:U}=b.temporalBinning??{};B!==void 0&&U!==void 0&&(E={size:B,unit:U})}m.data={dataItems:y,timeIntervalInfo:E}}}L||Pd({dataInfo:m,chartType:w,subError:{outlierLimit:g}}),m.count=O}f=m}return f}function IL(a){let t,{start:e,end:i}=Jm({field:"",unit:a,addIntervalStatement:!1});return i&&(t=Array.from({length:i+(e===0?1:0)},(r,n)=>(n+(e??1)).toString())),t}function AL(a){return a.hideEmptyRowsAndColumns===!0&&(a.nullPolicy!==dr.Zero||a.series[0].query?.outStatistics?.[0].statisticType===ie.Count)}function LL(a){let{dataItems:t,valueField:e,filterOutZero:i}=a,r=[null];i&&r.push(0);let n=new Set(t.filter(o=>!r.includes(o[e])).map(o=>o[ht.xField])),s=new Set(t.filter(o=>!r.includes(o[e])).map(o=>o[ht.yField]));return t.filter(o=>n.has(o[ht.xField])&&s.has(o[ht.yField]))}function EL(a){let{dataItems:t,xUniqueValues:e,yUniqueValues:i,valueField:r,emptyCellValue:n,x:s,y:o,queryObject:l}=a,u=[],h=new Set;for(let p of t){let d=p[V.originalCategoryValue]!==void 0?p[V.originalCategoryValue]:p[ht.xField],c=p[V.originalYCategoryValue]!==void 0?p[V.originalYCategoryValue]:p[ht.yField];h.add(`${d}|${c}`)}for(let p of e){let d=String(p);for(let c of i){let f=String(c);if(!h.has(`${d}|${f}`)){let m=l?FS({queryObject:l,fieldName:s,fieldValue:d})??p:p,y=l?FS({queryObject:l,fieldName:o,fieldValue:f})??c:c;u.push({[V.originalCategoryValue]:p===null?null:p,[V.originalYCategoryValue]:c===null?null:c,[ht.xField]:p===null?"null":m,[ht.yField]:c===null?"null":y,[r]:n})}}}return u}function BS(a){let{day:t,month:e,includeLeapDay:i}=a;return e===2&&t>(i?29:28)||[4,6,9,11].includes(e)&&t>30}async function ew(a){let{chartConfig:t,queryConfig:e,queryObject:i,completeHeatChartDataset:r=!0,errorStrings:n,options:s,abortKey:o}=a,l={valid:!0},u;if(xl(t)){let{nullPolicy:h}=t,p=t.series[0],{x:d,y:c,query:f,xTemporalBinning:m,yTemporalBinning:y}=p,g=f?.outStatistics?.[0]?.outStatisticFieldName??"",v=f?.outStatistics?.[0]?.statisticType??ie.Count;e?.outStatistics?.[0]&&WC(e.outStatistics[0])&&!("statisticParameters"in e?.outStatistics[0])&&(e.outStatistics[0].statisticParameters={value:V.defaultStatParameterValue});let b=AL(t),P=ht.valueField,w=h===dr.Zero?0:null;if(RC(t)){let T=await oI({chartConfig:t,queryObject:i,queryConfig:e,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!ln({count:T?.length??0,seriesCount:1,chartType:$.HeatSeries,chartLimits:s?.chartLimits}))Pd({dataInfo:l,chartType:$.HeatSeries});else if(typeof T?.[0]=="object"){let F=Tr(i,s?.usePopupTemplateFieldsInfo);u=QC({queryObject:i,queryResponse:T,chartConfig:t,splitByField:"",isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:e.num,fieldList:F});let D=await Lm({queryObject:i,queryConfig:e,category:d,abortKey:o}),O=await Lm({queryObject:i,queryConfig:e,category:c,abortKey:o});u.length!==D?.length*O?.length&&(u=[...u,...EL({dataItems:u,xUniqueValues:D,yUniqueValues:O,valueField:P,emptyCellValue:w,x:d,y:c,queryObject:i})],b&&(u=LL({dataItems:u,valueField:P,filterOutZero:v===ie.Count})))}}else{let T=await sI({chartConfig:t,queryObject:i,queryConfig:e,options:s,errorStrings:n}),F=y?IL(y.unit):await Lm({queryObject:i,queryConfig:e,category:c,abortKey:o}),D=0;u=T?.features.flatMap(O=>{let N=[],{attributes:L,stackedAttributes:E}=O,B=[];if(E?.forEach(U=>{let q=`${U[c]}`;B.push(q),N.push({[ht.xField]:`${L[It.heatChartLowerBoundaryAlias]}`,[ht.yField]:q,[P]:U[g]})}),r&&F&&B.length!==F?.length){let U=F.filter(q=>!B.includes(q.toString()));b&&(U.length!==F.length||B.length===0)||U.forEach(q=>{Number.isFinite(Number(L[It.heatChartLowerBoundaryAlias]))&&Number.isFinite(Number(q))&&(m?.unit===Fr.DayOfMonth&&y?.unit===Fr.MonthOfYear&&BS({day:Number(L[It.heatChartLowerBoundaryAlias]),month:Number(q),includeLeapDay:t.includeLeapDay})||y?.unit===Fr.DayOfMonth&&m?.unit===Fr.MonthOfYear&&BS({day:Number(q),month:Number(L[It.heatChartLowerBoundaryAlias]),includeLeapDay:t.includeLeapDay}))||N.push({[ht.xField]:`${L[It.heatChartLowerBoundaryAlias]}`,[ht.yField]:q,[P]:h===dr.Zero?0:null})})}return D+=N.length,N}),ln({count:D,seriesCount:1,chartType:$.HeatSeries,chartLimits:s?.chartLimits})||Pd({dataInfo:l,chartType:$.HeatSeries})}}return u&&(l.data={dataItems:u}),l}function kL(a){let{chartConfig:t,options:e,data:i}=a,r=t.series,n=i,s=oC(t,e?.chartLimits);if(s!==void 0){let o=lr(r);if(o.length===1)n=i.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(i.length*o.length>s){let l=[],u=0,h=0;for(;u<=s&&h<i.length;){let p=i[h];if(l.push(p),u+=o.filter(d=>Number.isFinite(p[d])).length,u>s){let d=u-s,c=o.length-1;for(;d!==0&&c>=0;){let f=o[c];Number.isFinite(p[f])&&(delete p[f],d-=1),c-=1}}h+=1}n=l}}return n}async function sy(a){let{chartConfig:t,queryConfig:e,queryObject:i,abortKey:r,options:n,preFetchedQueryResponse:s}=a,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:u}=o??{},h=t.series,p=h[0],{x:d}=p,c=Ji(p.query?.where),f={valid:!0},m;if(xa(p)){let{temporalBinning:y}=p;if(i&&y){let{unit:g,size:v}=y,b=1,P={unit:g,size:v},w=!1,T=mL({series:p,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),F=!Gu(i)||T?await nL({queryObject:i,queryConfig:e,x:d}):void 0;T&&F&&F.numberOfFeatures>0&&F.dateRange.dateMaxTimestamp!==void 0&&F.dateRange.dateMinTimestamp!==void 0&&(P=fL(F),Tr(i).find(L=>L.name===d)?.type===wt.DateOnly&&P.unit!==void 0&&[Le.Hour,Le.Minute,Le.Second].includes(P.unit)&&(P.unit=Le.Day,P.size=1),y.size=P.size,y.unit=P.unit);let{uniqueQuery:D,mapToStatField:O}=ry({chartConfig:t,queryConfig:e,queryObject:i,timeIntervalInfo:P,options:n}),N=ln({count:b??0,seriesCount:h.length,chartType:$.LineSeries,chartLimits:o});if(N){if(Gu(i)){let L=s?.[0]instanceof vD?s:await dI({queryObject:i,dateField:d,splitByField:c,queryConfig:D,temporalBinning:y}),E="y"in p&&typeof p.y=="string"?p.y:void 0;if(m=pL({chartConfig:t,queryResults:L,mapToStatField:O,splitByField:c,x:d,y:E,nullPolicy:y.nullPolicy,queryObject:i}),!ln({count:m.length,seriesCount:h.length,chartType:$.LineSeries,chartLimits:o})){let B=lr(h),U=m.filter(q=>B.some(Y=>Y in q&&Number.isFinite(q[Y]))).length;ln({count:U,seriesCount:h.length,chartType:$.LineSeries,chartLimits:o})||(N=!1)}}else if(F?.dateRange.dateMinTimestamp&&F.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:L}=XC({dateMinTimestamp:F.dateRange.dateMinTimestamp,dateMaxTimestamp:F.dateRange.dateMaxTimestamp,timeIntervalInfo:P});b=L*h.length,b=YC(b,P.unit),m=await Fd({queryObject:i,uniqueQuery:D,chartConfig:t,mapToStatField:O,elementCount:b,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:r}),m=await dL({queryObject:i,queryConfig:e,queryResults:m,x:d,seriesConfig:h,dateRange:F.dateRange,timeIntervalInfo:P})}mC(i)&&m&&m?.length===QA&&(w=!0),u===ts.RenderUpToTheLimit&&m&&(m=kL({chartConfig:t,options:n,data:m}))}N||(f.valid=!1,f.invalidType=ut.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][V.lastTemporalBin]=!0),f.data={dataItems:m,timeIntervalInfo:P,serverLimitReached:w},f.count=b}}return f}async function VL(a){let{chartConfig:t,queryConfig:e,queryObject:i,abortKey:r,options:n}=a,s=Sl(t),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:u}=n??{},h={valid:!0},p=t.series,d=as({seriesConfig:p[0],xAxisValueFormatType:ja(t),setTimeBinningInfoWhenNotProvided:o,queryObject:i}),{uniqueQuery:c,mapToStatField:f}=ry({chartConfig:t,queryObject:i,queryConfig:e,fetchFullBoxPlotData:!s,options:n}),m=await Fd({queryObject:i,uniqueQuery:c,elementCount:1,chartConfig:t,mapToStatField:f,isTimeBinningSeries:d,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:u,abortKey:r});return or(t)&&(m=BC({chartConfig:t,data:m,calculateZScore:!1})),h.data={dataItems:m},h}async function ML(a){let{chartConfig:t,queryConfig:e,queryObject:i,abortKey:r,options:n,errorStrings:s}=a,o={valid:!0};if(or(t)){let l=or(t)?t.showMean:!1;o=await ay({queryObject:i,chartConfig:t,queryConfig:e,options:n,errorStrings:s,abortKey:r}),l&&o.data&&"dataItems"in o.data&&"meanLines"in o.data&&o.data.meanLines&&(o.data.dataItems=[...o.data.dataItems,...o.data.meanLines])}return o}var NL="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function RL(a){let{chartConfig:t,queryObject:e,queryConfig:i,abortKey:r}=a,n=t.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:u}=V.scatterplotAggregationFields,h={...i,outStatistics:[{statisticType:ie.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:ie.Count,outStatisticFieldName:u,onStatisticField:o}],returnDistinctValues:!0};return await Qu({queryObject:e,queryConfig:h,abortKey:r})}async function jL(a){let{statsMap:t,chartConfig:e,queryObject:i,options:r,queryConfig:n,abortKey:s}=a,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:u,dataContextYMaxField:h,dataContextCountDistinctX:p,dataContextCountDistinctY:d}=V.scatterplotAggregationFields,c,f,m,y,g,v=t.get(o),b=t.get(l),P=t.get(u),w=t.get(h);if(v!=null&&P!==void 0&&P!==null&&b!==void 0&&b!==null&&w!==void 0&&w!==null&&!Number.isNaN(v+b+P+w)){let{maxScatterPointsAfterAggregation:T}=Xs(r?.chartLimits),F=Math.floor(Math.sqrt(T)),D=await RL({queryObject:i,chartConfig:e,queryConfig:n,abortKey:s});m=Math.min(D.get(d)??Number.NaN,F),y=Math.min(D.get(p)??Number.NaN,F),g=y*m,c=b===v?0:(b-v)/(y-1),f=w===P?0:(w-P)/(m-1),t.set(V.scatterplotAggregationFields.xStep,c),t.set(V.scatterplotAggregationFields.yStep,f),t.set(V.scatterplotAggregationFields.rowCount,m),t.set(V.scatterplotAggregationFields.columnCount,y),t.set(V.scatterplotAggregationFields.realGridSize,g)}}function BL(a){let{groupByFieldsForStatistics:t,x:e,y:i,xValue:r,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:u}=a,h=t===""?Gs.groupByCaseBegin:t;return h=ui(NL,{groupByFieldsForStatistics:h,x:e,y:i,xValue:`${r}`,yValue:`${n}`,xValuePlusStep:`${r+(u?0:s)}`,yValuePlusStep:`${n+(l?0:o)}`,xMinOperand:u?"=":">=",yMinOperand:l?"=":">=",xMaxOperand:u?"=":"<",yMaxOperand:l?"=":"<"}),h}async function WL(a){let{chartConfig:t,queryConfig:e,queryObject:i,xMin:r,xMax:n,yMin:s,yMax:o,abortKey:l}=a,u=t.series[0],{x:h,y:p}=u,d={...e};return d.where=Xt([d.where,`${h}>=${r}`,`${h}<=${n}`]),h!==p&&(d.where=Xt([d.where,`${p}>=${s}`,`${p}<=${o}`])),await ra({queryObject:i,queryConfig:d,noBatch:!0,featureCount:1,abortKey:l})}async function qL(a){let{statsMap:t,chartConfig:e,queryObject:i,queryConfig:r,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=a,l=e.series[0],{x:u,y:h}=l,{dataContextXMinField:p,dataContextXMaxField:d,dataContextYMinField:c,dataContextYMaxField:f,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=V.scatterplotAggregationFields,g,v=t?.get(p)??Number.NaN,b=t?.get(d)??Number.NaN,P=t?.get(m)??Number.NaN,w=t?.get(c)??v,T=t?.get(f)??b;if(v!=null&&w!==void 0&&w!==null&&b!==void 0&&b!==null&&T!==void 0&&T!==null&&!Number.isNaN(v+b+w+T)){let F=tt(i),{idField:D,isTraditionalTypeOID:O}=aa(F),N=O?D:"*",L=t?.get(V.scatterplotAggregationFields.xStep),E=t?.get(V.scatterplotAggregationFields.yStep),B=t?.get(V.scatterplotAggregationFields.realGridSize),U=t?.get(V.scatterplotAggregationFields.rowCount),q=t?.get(V.scatterplotAggregationFields.columnCount),Y=new Map,he=Tr(i);if(he?.forEach(re=>{bl(re)&&Y.set(re.name,{onStatisticField:re.name,outStatisticFieldName:re.name,statisticType:ie.Maximum})}),(he.filter(re=>l?.additionalTooltipFields?.includes(re.name))??[])?.forEach(re=>{bl(re)||Y.set(re.name,{onStatisticField:re.name,outStatisticFieldName:re.name,statisticType:ie.Maximum})}),(await IC(F)).forEach(re=>{Y.set(re,{onStatisticField:re,outStatisticFieldName:re,statisticType:ie.Maximum})}),D!==""&&Y.set(D,{onStatisticField:N,outStatisticFieldName:y,statisticType:ie.Count}),Y.set(u,{onStatisticField:u,outStatisticFieldName:u,statisticType:ie.Maximum}).set(h,{onStatisticField:h,outStatisticFieldName:h,statisticType:ie.Maximum}),L!==void 0&&E!==void 0){if(n){let re={...r,outStatistics:[...Y.values()]};g=await lI({queryObject:i,queryConfig:re,xStep:L,xMin:v,xMax:b,x:u,y:h,yStep:E,errorStrings:s})}else if(U!==void 0&&q!==void 0){let re=0,{maxScatterCellsPerQuery:pe,maxScatterCellsPerQueryForStandard:le}=Td(),Pe=await e1(F)?le:pe,ae=[],Oe=!0,ve=v,Ye=w,Qe="",rt=1,zt=1,Gt=Number.MAX_SAFE_INTEGER,at=Number.MIN_SAFE_INTEGER,mt=Number.MAX_SAFE_INTEGER,mi=Number.MIN_SAFE_INTEGER;for(;zt<=q&&Oe;){for(Ye=w,rt=1;rt<=U&&Oe;){if(Qe=BL({groupByFieldsForStatistics:Qe,x:u,y:h,xValue:ve,yValue:Ye,xStep:L,yStep:E,endOfRow:rt===U,endOfColumn:zt===q}),ve<Gt&&(Gt=ve),ve+L>at&&(at=ve+L),Ye<mt&&(mt=Ye),Ye+L>mi&&(mi=Ye+E),re+=1,re%Pe===0||re===B||re===P){Qe=`${Qe} ${Gs.groupByCaseEnd}`;let Jt={...r,groupByFieldsForStatistics:[Qe],outStatistics:[...Y.values()]};ae.push(WL({chartConfig:e,queryConfig:Jt,queryObject:i,xMin:Gt,xMax:at,yMin:mt,yMax:mi,abortKey:o})),Gt=Number.MAX_SAFE_INTEGER,at=Number.MIN_SAFE_INTEGER,mt=Number.MAX_SAFE_INTEGER,mi=Number.MIN_SAFE_INTEGER,Qe="",re===B&&(Oe=!1)}Ye+=E,rt+=1}ve+=L,zt+=1}g=(await Promise.all(ae)).flat()}}}return g}async function zL(a){let{chartConfig:t,queryConfig:e,queryObject:i,abortKey:r}=a,n=t.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:u,dataContextXMaxField:h,dataContextYMinField:p,dataContextYMaxField:d,queryNumberOfFeatures:c}=V.scatterplotAggregationFields,{idField:f,isTraditionalTypeOID:m}=aa(tt(i)),y=m?f:"*",g=[{statisticType:ie.Count,onStatisticField:y,outStatisticFieldName:c},{statisticType:ie.Minimum,outStatisticFieldName:u,onStatisticField:s},{statisticType:ie.Maximum,outStatisticFieldName:h,onStatisticField:s}];s!==o&&g.push({statisticType:ie.Minimum,outStatisticFieldName:p,onStatisticField:o},{statisticType:ie.Maximum,outStatisticFieldName:d,onStatisticField:o});let v={...e};return v.outStatistics=g,l=await Qu({queryObject:i,queryConfig:v,abortKey:r}),s===o&&(l.set(p,l.get(u)??Number.NaN),l.set(d,l.get(h)??Number.NaN)),l}function pd(a){let{value:t,valueMin:e,valueMax:i}=a;return t===e||t===i?t:Math.random()*(i-e)+e}function HL(a){let{useQueryAttributeBins:t,graphic:e,x:i,y:r,yStep:n}=a,{groupByOutKeyword:s}=Gs,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:u,dataContextYMaxField:h}=V.scatterplotAggregationFields,p=[];if(t&&"stackedAttributes"in e&&e.stackedAttributes){let d=vC(i,r),c=e.attributes[d.lowerBoundaryAlias],f=e.attributes[d.upperBoundaryAlias];e.stackedAttributes.forEach(m=>{let y=m[d.stackAlias],g;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(g=y+n);let v=m[i],b=m[r];typeof y=="number"&&typeof g=="number"&&typeof v=="number"&&typeof b=="number"&&p.push({...m,[i]:pd({value:v,valueMin:c,valueMax:f}),[r]:pd({value:b,valueMin:y,valueMax:g}),[o]:Math.min(c,f),[l]:Math.max(c,f),[u]:y,[h]:g})})}else{let{expr:d,isInItem:c}=$d(e.attributes);if(c&&d&&e.attributes[d]!==s){let[f,m,y,g]=e.attributes[d].split("|");f=Math.min(f,m),m=Math.max(f,m),y=Math.min(y,g),g=Math.max(y,g);let v={...e.attributes,[o]:f,[l]:m,[u]:y,[h]:g};v[i]=pd({value:v[i],valueMin:f,valueMax:m}),v[r]=pd({value:v[r],valueMin:y,valueMax:g}),p=[v]}}return p}function UL(a){let{chartConfig:t,rawData:e,isAggregationMode:i,yStep:r,useQueryAttributeBins:n}=a,s=t.series[0],{x:o,y:l}=s,u=(Array.isArray(e)?e:e?.features)?.flatMap(h=>{let p=[{...h.attributes}];return ny(p[0],[o,l]),i?p=HL({useQueryAttributeBins:n,graphic:h,x:o,y:l,yStep:r}):p[0][It.uniqueIdsName]=h.getObjectId(),p});return u=u?.filter(h=>{let{expr:p}=$d(h);return Number.isFinite(h[o])&&Number.isFinite(h[l])&&(p===void 0||h[p]!==Gs.groupByOutKeyword)}),u??[]}async function GL(a){let{queryObject:t,queryConfig:e,chartConfig:i,featureCount:r,abortKey:n}=a,s=i.series[0],{x:o,y:l}=s,u=tt(t),h=[],p=Tr(t),d=Dd(u).idFields,c=(p?.filter(v=>bl(v)&&v.name!==o&&v.name!==l)??[]).map(v=>v.name)??[],f=s?.additionalTooltipFields??[],m=Array.from(new Set([o,l,...d??[],...c,...f])),y=ur(u);if(y&&!y.isTable){let{rendererField:v,rendererNormalizationField:b}=KI(u?.renderer??void 0);Ci(v)||m.push(v),Ci(b)||m.push(b)}let g={...e,orderByFields:[`${o} ${hi.Ascending}`],outFields:m};return h=await ra({queryObject:t,queryConfig:g,featureCount:r,abortKey:n}),h}async function YL(a){let t,{chartConfig:e,queryConfig:i,queryObject:r,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:u,abortKey:h}=a,p=e.series[0],{x:d,y:c}=p;if(!Number.isNaN(s)&&s>0){let f={...i};f.where=Xt([f.where,`${d} IS NOT NULL`,`${c} IS NOT NULL`]),o?t=await qL({chartConfig:e,queryObject:r,queryConfig:f,statsMap:n,useQueryAttributeBins:l,errorStrings:u,abortKey:h}):t=await GL({queryObject:r,chartConfig:e,queryConfig:f,featureCount:s,abortKey:h})}return t}async function tw(a){let{chartConfig:t,queryConfig:e,queryObject:i,sortData:r,calculateTrendLine:n,options:s,abortKey:o}=a,l;if(Vi(i))l=await BI(a);else{let u=await zL({chartConfig:t,queryConfig:e,queryObject:i,abortKey:o}),{queryNumberOfFeatures:h,yStep:p}=V.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:d}=Xs(s?.chartLimits),c=u?.get(h)??Number.NaN,f=c>=d,m=iI(i);f&&await jL({statsMap:u,chartConfig:t,queryObject:i,options:s,queryConfig:e,abortKey:o});let y=await YL({...a,queryObject:i,statsMap:u,numberOfFeatures:c,isAggregationMode:f,useQueryAttributeBins:m}),g=UL({chartConfig:t,rawData:y,isAggregationMode:f,yStep:u.get(p),useQueryAttributeBins:m});r!==!1&&Uu({arrayToSort:g,sortingField:t.series[0].x,orderBy:hi.Ascending});let{r2:v,trendLinePoints:b}=n!==!1?await PC({data:g,statsMap:u,queryConfig:e,options:s,queryObject:i,chartConfig:t}):V.scatterplotSeries;l={dataItems:g,r2:v,trendLinePoints:b,aggregated:f}}return l}function yl(a){let t=a===void 0||a==="";return{[Te.Average]:`${t?"":`${a}_`}${Te.Average}`,[Te.Min]:`${t?"":`${a}_`}${Te.Min}`,[Te.Max]:`${t?"":`${a}_`}${Te.Max}`,[Te.FirstQuartile]:`${t?"":`${a}_`}${Te.FirstQuartile}`,[Te.Median]:`${t?"":`${a}_`}${Te.Median}`,[Te.ThirdQuartile]:`${t?"":`${a}_`}${Te.ThirdQuartile}`,[Te.IQR]:`${t?"":`${a}_`}${Te.IQR}`,[Te.Outlier]:`${t?"":`${a}_`}${Te.Outlier}`,[Te.StandardDeviation]:`${t?"":`${a}_`}${Te.StandardDeviation}`}}function oy(a){return"subType"in a&&a.subType===Cy.FeatureGauge}function Id(a){let t;return a!==void 0&&("bins"in a?t=a.bins:"dataItems"in a&&(t=a.dataItems)),t}function iw(a){return a===A.BoxPlotMultiFields||a===A.BoxPlotMultiFieldsAndCategory||a===A.BoxPlotMultiFieldsAndSplitBy}function Oi(a){let{key:t,y:e,chartSubType:i,splitBy:r,splitByValue:n,showOutliers:s,standardizeValues:o}=a,l=n,u=yl(e)[t];return s===!0&&(t===Te.Min||t===Te.Max)&&(u=`${u}${rF}`),o===!0&&(iw(i)||t===Te.Outlier)&&(u=`${u}${aF}`),(n===void 0||`${n}`.trim()==="")&&(l=_r({where:r,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(u=`${l}${u!==""?`_${u}`:""}`),u}function Am(a){let{dataItem:t,y:e,splitBy:i,showOutliers:r}=a,n=Oi({key:Te.FirstQuartile,y:e,splitBy:i,showOutliers:r}),s=Oi({key:Te.ThirdQuartile,y:e,splitBy:i,showOutliers:r});return Number.isFinite(t[n])||Number.isFinite(t[s])}function XL(a){let{configSeries:t,boxPlotDataItem:e,yList:i,showOutliers:r}=a,n=Re(t),s=!1;switch(n){case A.BoxPlotMonoField:case A.BoxPlotMultiFields:case A.BoxPlotMonoFieldAndCategory:s=Am({dataItem:e,showOutliers:r});break;case A.BoxPlotMultiFieldsAndCategory:s=i.some(o=>Am({dataItem:e,y:o,showOutliers:r}));break;case A.BoxPlotMonoFieldAndSplitBy:case A.BoxPlotMultiFieldsAndSplitBy:case A.BoxPlotMonoFieldAndCategoryAndSplitBy:s=t.some(o=>Am({dataItem:e,splitBy:o.query?.where,showOutliers:r}));break;default:s=!1;break}return s}function rw(a){return a.map(t=>t.id).filter(t=>t!==void 0)}function lr(a,t){let e=[],i=t??rw(a),r=Re(a);return e=a.filter(n=>i.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&r===A.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${_r({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(e.flat()))}function Ad(a){let{seriesConfig:t,filteredSeriesIds:e,showMean:i}=a,r=[];if(i===!0){let n=t.find(s=>s.type===$.BoxPlotSeries);n!==void 0&&"y"in n&&(r=[n.y].flat())}else r=lr(t,e);return r}function Xn(a,t){return a===null&&t===!0||Number.isFinite(a)}function KL(a){let{dataItem:t,x:e,y:i,nullAsValid:r=!1}=a;return t[e]!==void 0&&(typeof t[e]!="number"||Number.isFinite(t[e]))&&Xn(t[i],r)}function ane(a){let{chartConfig:t,nullAsValid:e=!1,dataSet:i}=a,r=!0;if(t!==void 0){let n=Ae(t.series);if(i===void 0||i.length===0)r=!0;else{let s=lr(t.series);r=!i.some(o=>{let l=!1;switch(n){case $.HistogramSeries:{let u=o;l=Xn(u.minValue,e)&&Xn(u.maxValue,e)}break;case $.ScatterSeries:{let u=o,{x:h,y:p}=t.series[0];l=Xn(u[h],e)&&Xn(u[p],e)}break;case $.ComboLineAndBarSeries:case $.RadarSeries:case $.LineSeries:case $.BarSeries:{let u=o,{x:h}=t.series[0];l=s.some(p=>KL({dataItem:u,x:h,y:p,nullAsValid:e}));break}case $.BoxPlotSeries:{if(or(t)){let u=t.series;l=XL({configSeries:u,boxPlotDataItem:o,yList:s,showOutliers:t.showOutliers})}break}case $.PieSeries:{let u=o,{x:h,y:p}=t.series[0];Re(t.series)===A.PieFromFields&&(h=Zi,p=ba);let d=u[p];l=u[h]!==void 0&&u[h]!==null&&!by(d)&&Xn(Number(d),e)}break;case $.GaugeSeries:{let{x:u}=t.series[0];l=Xn(o[u],e)}break;case $.HeatSeries:l=i.some(u=>Xn(u[ht.valueField],e));break}return l})}}return r}function ZL(a,t){let e=new Map,i=t??rw(a);return a.forEach(r=>{if(i.includes(r.id)&&"y"in r){let n=e.get(r.type)??[];n.push(r.y),e.set(r.type,n)}}),e}function QL(a){let{seriesConfig:t,filteredSeriesIds:e,filteredData:i}=a,r=ZL(t,e),n=t.find(u=>u.type===$.LineSeries||u.type===$.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return i.forEach(u=>{r.forEach(h=>{if(n){let p=0,d=0,c=!1,f=!1;for(let m=0;m<h.length;m+=1){let y=u[h[m]];Number.isFinite(y)&&(y<0?(d+=y,f=!0,l=!0):(p+=y,c=!0))}s=c?Math.max(s,p):s,o=f?Math.min(o,d):o,c&&!f&&(o=Math.min(o,p)),!c&&f&&(s=Math.max(s,d)),c&&p<=0&&(l=!0)}else{let p=0;for(let d=0;d<h.length;d+=1){let c=u[h[d]];p+=c,s=Math.max(s,p),o=Math.min(o,p)}(s<=0||o<=0)&&(l=!0)}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function JL(a){let{dataItem:t,...e}=a,i=Oi({key:Te.Min,...e}),r=Oi({key:Te.Max,...e}),n=t[i],s=t[r];return{min:n,max:s}}function WS(a){let t=Number.NaN,e=Number.NaN,i,r,{chartConfig:n,chartData:s,filteredSeriesIds:o}=a,{series:l}=n;if(l?.length>0){let{x:u}=l[0],h=Ae(n.series);if(h===$.HistogramSeries&&s.length>0){let p=s[0]?.[TS.Start],d=s[s.length-1]?.[TS.End];i=typeof p=="number"?p:i,r=typeof d=="number"?d:r}else{let p=s.filter(d=>d[u]!==null);if({min:i,max:r}=Yu(p,d=>d[u]),n.axes?.[0]?.valueFormat.type===$.DateAxisFormat&&i!==void 0&&r!==void 0&&([i,r]=[new Date(i).valueOf(),new Date(r).valueOf()]),h===$.BoxPlotSeries){t=Number.MAX_SAFE_INTEGER,e=Number.MIN_SAFE_INTEGER;let d=lr(l,o),c=Re(l),f="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?_r({where:y.query?.where}):"");m.length===0&&m.push(" "),p.forEach(y=>{d.forEach(g=>{let v=c===A.BoxPlotMultiFieldsAndCategory?g:void 0;m.forEach(b=>{let{min:P,max:w}=JL({y:v,splitByValue:b,chartSubType:c,showOutliers:!1,standardizeValues:f,dataItem:y});P!=null&&P<t&&(t=P),w!=null&&w>e&&(e=w)})})})}else switch(Qm(n)){case Dr.Stacked100:case Dr.Stacked:{let{stackedMinY:d,stackedMaxY:c}=QL({seriesConfig:l,filteredData:p,filteredSeriesIds:o});t=d,e=c;break}case Dr.Side:default:{t=Number.MAX_SAFE_INTEGER,e=Number.MIN_SAFE_INTEGER,lr(l,o).forEach(d=>{let{min:c,max:f}=Yu(p,m=>m[d]);c!==void 0&&c<t&&(t=c),f!==void 0&&f>e&&(e=f)});break}}}}return{minY:t,maxY:e,minX:i,maxX:r}}function eE(a){let{chartConfig:t,isSecondValueAxis:e,seriesIds:i}=a,r=i;return t.axes?.length===3&&(r=t.series.map(n=>{let s="";return(i===void 0||i.includes(n.id))&&(e===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||e!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),r}function tE(a){let t=!1;if(a){let e=a.axes?.[0],i=e?.isLogarithmic===!0,r=e?.valueFormat?.type;t=(r===$.NumberAxisFormat||r===$.DateAxisFormat)&&i}return t}function qS(a,t){let e=!1;return Number.isFinite(a)&&a!==Number.MAX_SAFE_INTEGER&&Number.isFinite(t)&&t!==Number.MIN_SAFE_INTEGER&&(e=a<=0||t<=0),e}function iE(a){let{chartConfig:t,chartData:e,axisConfigIndex:i}=a,r=!1;if(i===0){if(tE(t)){let{minX:n,maxX:s}=WS({chartConfig:t,chartData:e});r=qS(n,s)}}else{let n=eE({chartConfig:t,isSecondValueAxis:i===2}),{minY:s,maxY:o}=WS({chartConfig:t,chartData:e,filteredSeriesIds:n});r=qS(s,o)}return r}function nne(a){let{chartConfig:t,axisConfigIndex:e,chartData:i}=a,r=!0,n=t?.axes?.[e];return t&&i&&n?.isLogarithmic===!0&&(r=!iE({chartConfig:t,chartData:i,axisConfigIndex:e})),r}function rE(a,t){let e=a;if(t?.[0]!==void 0&&Re(t)===A.PieFromFields){let{x:i,y:r}=t[0];(ih(a)?e:e.dataItems).forEach(n=>(Zi in n&&i!==Zi&&(n[i]=n[i]!==void 0?n[i]:n[Zi],delete n[Zi]),ba in n&&r!==ba&&(n[r]=n[r]!==void 0?n[r]:n[ba],delete n[ba]),n))}return e}function aE(a,t){let e=Ae(t),i=a,r=t?.[0];if((e===$.PieSeries||e===$.BoxPlotSeries||e===$.LineSeries||e===$.RadarSeries||e===$.BarSeries||e===$.HeatSeries||e===$.ComboLineAndBarSeries)&&r!==void 0){let n=ih(a),s=n?a:a.dataItems;if(a!==void 0){let{originalCategoryValue:o,originalYCategoryValue:l,originalDateValue:u,xAxisField:h}=V,p=e===$.HeatSeries?ht.xField:r.x,d=e===$.HeatSeries?ht.yField:void 0;s=s.map(c=>{let f=c[p];c[u]!==void 0?f=c[u]:c[o]!==void 0&&(f=c[o]);let m={...c,[p]:f};if(delete m[u],delete m[o],delete m[h],d){let y=c[d];c[l]!==void 0&&(y=c[l]),m={...m,[d]:y},delete m[l]}return m}),n?i=s:"dataItems"in i&&(i.dataItems=s)}}return i}function zS(a){let t={...a};delete t[V.technicalSortingFieldBySum],delete t[V.technicalSortingFieldByPercent],delete t[V.pieChart.technicalFieldSlicePercent],delete t[V.pieChart.technicalFieldGroupedSlices],delete t[V.lastTemporalBin],delete t[V.originalServerBinningRange],delete t[V.technicalFieldSplitByField],delete t[It.uniqueIdsName],Object.keys(t).filter(i=>i.includes(V.rendererSymbolField)).forEach(i=>delete t[i]);let e=$d(t);return e.isInItem&&delete t[e.expr??""],t}function nE(a,t){let e=a,i=Ae(t),r=Id(e);if(r!==void 0)switch(i){case $.ComboLineAndBarSeries:case $.BarSeries:case $.LineSeries:case $.RadarSeries:case $.PieSeries:{r=r.map(zS),e={dataItems:r};let{timeIntervalInfo:n,serverLimitReached:s}=a??{};Vd(n)||(e.timeIntervalInfo=n),s!==void 0&&(e.serverLimitReached=s)}break;case $.ScatterSeries:e={...e,dataItems:r.map(zS)};break}return e}var sne=(a,t)=>{let e=10**t;return Math.round(a*e)/e};function sE(a){let{data:t,seriesConfig:e}=a,i=sa(t);return i!==void 0&&(i=aE(i,e),i=nE(i,e),i=rE(i,e)),i}function oE(a){let{dataFetchingResults:t,numberOfQueries:e,series:i}=a,r=Ae(i),n=Re(i),s=[],o=new Map;for(let l=0;l<e;l+=1){let u=t[l];if(u!==void 0){let h;if(r===$.ScatterSeries)h=u.dataItems;else if("data"in u&&u.data){let p=u.data;"dataItems"in p&&(h=p.dataItems),"outliers"in p&&p.outliers&&s.push(...p.outliers),"meanLines"in p&&p.meanLines&&s.push(...p.meanLines)}if(h)if(i[0].type===$.HeatSeries)e>0&&h.forEach(p=>{o.set(`${p[ht.xField]}-${p[ht.yField]}`,p)});else if(i[0].type===$.ScatterSeries){let{x:p,y:d}=i[0];s.push(...h.map(c=>({[p]:c[p],[d]:c[d]})))}else u.valid&&(n===A.PieFromFields?s=vd({dataToConvert:h[0],x:Zi,y:ba}):n===A.BarAndLineFromFields?s=vd({dataToConvert:h[0],x:i[0].x,y:i[0].y}):s.push(...h))}}return o.size>0&&(s=Array.from(o.values())),s}async function lE(a){let{numberOfQueries:t,selectionOIDs:e,chartConfig:i,queryConfig:r,options:n,errorStrings:s,queryObject:o}=a,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:u}=i,h=Ae(u),p=[],{maxOIDsPerSelectionQuery:d}=Td();for(let c=0;c<t;c+=1){let f=c*d,m=(c+1)*d-1,y=e.slice(f===0?0:f-1,m),g={...r};switch(g.objectIds=y,h){case $.HeatSeries:p.push(ew({completeHeatChartDataset:!1,chartConfig:i,queryConfig:g,queryObject:o,errorStrings:s,options:n}));break;case $.PieSeries:case $.BarSeries:case $.LineSeries:case $.RadarSeries:case $.ComboLineAndBarSeries:if(as({xAxisValueFormatType:ja(i),setTimeBinningInfoWhenNotProvided:l,seriesConfig:u[0],queryObject:o})){let v=i;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Gu(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),p.push(sy({chartConfig:v,queryConfig:g,queryObject:o,options:n}))}else p.push(VL({queryObject:o,chartConfig:i,options:n,queryConfig:g}));break;case $.BoxPlotSeries:p.push(ML({queryObject:o,chartConfig:i,options:n,errorStrings:s,queryConfig:g}));break;case $.ScatterSeries:p.push(tw({queryObject:o,chartConfig:i,queryConfig:g,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case $.HistogramSeries:p.push(fA({queryObject:o,queryConfig:g,chartConfig:i,x:u[0].x}));break}}return await Promise.all(p)}async function one(a){let{updatedPropsSnapshot:t,chartConfig:e,chartData:i,dataWasUpdated:r,queryObject:n,options:s,errorStrings:o}=a,{series:l}=e,{selectionData:u,viewExtentUpdated:h,returnSelectionOIDs:p,chartLimits:d}=s??{},{selectionItems:c,selectionOIDs:f}=u??{},m,y=Ae(l),g=!1;if(t.has("selectionData")){let{oldValue:b,newValue:P}=t.get("selectionData");g=!Ha(b?.selectionOIDs,P?.selectionOIDs)}let v=y!==$.HistogramSeries&&y!==$.HeatSeries&&c!==void 0&&c.length>0&&!(l[0].x in c[0])&&!(Zi in c[0])&&!(V.boxPlot.boxPlotCategory in c[0]);if(h!==!0&&p!==!1&&f!==void 0&&f.length>0&&(r===!0||v||g)){let b=Id(i),P=AC({queryObject:n,chartConfig:e,runtimeDataFilters:s?.runtimeDataFilters,ignoreViewExtent:s?.ignoreViewExtent,viewExtent:s?.view?.extent});if(b!==void 0&&!sC({dataContext:b[0],chartConfig:e,chartLimits:d}))m=b.filter(w=>{let T=w[It.uniqueIdsName];return typeof T=="number"||typeof T=="string"?f?.includes(T):!1});else if(f?.[0]!==void 0&&P!==void 0){let{maxOIDsPerSelectionQuery:w}=Td(),T=Math.ceil(f.length/w),F=await lE({numberOfQueries:T,selectionOIDs:f,queryConfig:P,queryObject:n,options:s,errorStrings:o,chartConfig:e});m=oE({dataFetchingResults:F,numberOfQueries:T,series:l})}}return m}function lne(a){let t=[$.BarSeries,$.LineSeries,$.ComboLineAndBarSeries,$.BoxPlotSeries],e=Ae(a?.series);return e!==void 0?t.includes(e):!1}function une(a){let t=[$.BarSeries,$.LineSeries,$.ComboLineAndBarSeries,$.RadarSeries],e=Ae(a?.series);return e!==void 0?t.includes(e):!1}function HS(a){return a?.type===dt.SFS}function uE(a){return a?.type===dt.SLS}function US(a){return a?.type===dt.SMS}function hne(a){return a?.type===dt.TS}function pne(a){return a&&"iLayer"in a&&a.iLayer}function hE(a){return a?.type===$.BoxPlotSeries}function dne(a){return a?.type===$.LineSeries}function cne(a){return a?.type===$.RadarSeries}function fne(a){return a?.type===$.BarSeries}function mne(a){return a?.type===$.HeatSeries}var yne=a=>Ae(a)===$.LineSeries,gne=a=>Ae(a)===$.RadarSeries;function vne(a){return a.every(hE)}function bne(a){return a!==void 0&&a.type===$.NumberAxisFormat}function xne(a){return a===void 0||"bins"in a}function Sne(a){return a===void 0||"dataItems"in a}function Cne(a){return a===void 0||"dataItems"in a&&"r2"in a}function wne(a){return"value"in a}var fl={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert."},offset:{type:"number",description:"A numeric offset to apply to the value to convert."}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility.",default:!1},width:{type:"number",description:"Scrollbar width in pixels."},color:{$ref:"#/definitions/Color",description:"Scrollbar color."},gripSize:{type:"number",description:"Grip size in pixels."},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels."}},description:"Describes the properties of an axis scrollbar.",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"Represents the color information (R, G, B, A).",title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:"Horizontal offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container width."},yoffset:{type:["number","string"],description:"Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container height."},angle:{type:"number",description:"Rotation angle of the label."},style:{type:"string",description:"Label style."},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:"A unique string identifier for the `ChartText` object. This value is `chartText`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling information and text content."}},required:["type","content"],description:"Stores information on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed.",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed.",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1}},required:["type"],description:"JSON representation of the chart's legend.",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for pie charts",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:"A unique string identifier for the `ChartOverlay` object. This value is `chartOverlay`."},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram.",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:"Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis.",title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the `DateTime` axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:"Represents a unique string identifier for the `CategoryFormatOptions` object. For the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis."},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done."}},required:["type"],description:"Defines how the category axis data (categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:"Represents a unique string identifier for the `Guide` object. For the `Guide` class, it is `chartGuide`."},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
|
|
25
|
-
|
|
26
|
-
**Note**: This property is not applicable to gauge charts.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:"Represents a unique string identifier for the `GaugeAxisTick` object. For `WebChartGaugeAxisTick` object, it is `gaugeAxisTick`."},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by `WebChartGaugeAxis`.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:"Represents a unique string identifier for the `ChartNeedle` object. For `WebChartNeedle` object, it is `gaugeNeedle`."},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the needle should be rendered."},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center) in pixels.",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top in pixels.",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle).",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
|
|
27
|
-
|
|
28
|
-
**Note**: This property is not applicable to gauge charts.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},innerLabel:{$ref:"#/definitions/WebChartText",description:"Specifies how the axis' inner label needs to be displayed."},needle:{$ref:"#/definitions/WebChartNeedle",description:"Specifies how the axis' needle needs to be displayed."},ticks:{$ref:"#/definitions/WebChartGaugeAxisTick",description:"Specifies how the axis' ticks need to be displayed."},labelsIncrement:{type:"number",description:"If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.\n\nIf the property is `undefined` or `0`, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.\n\nIf the property has a value that results in more than a set limit of axis labels (`25` as defined in `ChartDefaults.gauge.maximumNumberOfLabelIntervals`) this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.",default:"undefined"},onlyShowFirstAndLastLabels:{type:"boolean",description:"Specifies if only the first and last labels need to be displayed. If set to `true` all the other labels will be hidden. Their visibility still depends on the axis labels visibility (`WebChartAxis.labels.visible`).",default:!1},minimumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis minimum."},maximumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis maximum."},minimumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"With a gauge by feature:\n- `minimumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value.\n\nWith a statistic gauge:\n- If `minimumFromField` is set to a field name (string), the minimum from that field is mapped to the axis minimum value.\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis minimum value.\n\nWhen `minimumFromField` is not provided or when it leads to an invalid value, the `minimum` value from the axis config, if provided, or the default value of 0, in that order, will be used."},maximumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"With a gauge by feature:\n- `maximumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value.\n\nWith a statistic gauge:\n- If `maximumFromField` is set to a field name (string), the maximum from that field is mapped to the axis maximum value.\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis maximum value.\n\nWhen `maximumFromField` is not provided or when it leads to an invalid value, the `maximum` value from the axis config, if provided, or the default value of 0, in that order, will be used."}},required:["labels","type","valueFormat"],description:"JSON representation of the gauge chart's axis object. Inherits from the `WebChartAxis` properties.",title:"WebChartGaugeAxis"},IStatisticDefinition:{type:"object",properties:{statisticType:{type:"string",enum:["avg","centroid-aggregate","convex-hull-aggregate","count","envelope-aggregate","max","min","percentile-continuous","percentile-discrete","stddev","sum","var"],description:"Statistical operation to perform."},statisticParameters:{type:"object",properties:{value:{type:"number"},orderBy:{type:"string",enum:["asc","desc"]}},required:["value"],description:"Parameters to be used along with `statisticType`. Currently only applicable for `percentile-continuous` (continuous percentile) and `percentile-discrete` (discrete percentile)."},onStatisticField:{type:"string",description:"Field on which to perform the statistical operation."},outStatisticFieldName:{type:"string",description:"Field name for the returned statistic field.\n\nIf `outStatisticFieldName` is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore. If `outStatisticFieldName` is a reserved keyword of the underlying DBMS, the operation can fail. Try specifying an alternative `outStatisticFieldName`."}},required:["statisticType","onStatisticField"],title:"IStatisticDefinition"},WebChartRadarChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
|
|
29
|
-
|
|
30
|
-
**Note**: This property is not applicable to gauge charts.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},labelsOrientation:{$ref:"#/definitions/WebChartRadarChartAxisLabelsOrientation",description:"Defines the labels orientation.",default:"WebChartRadarChartAxisLabelsOrientation.Circular"}},required:["labels","type","valueFormat"],description:"JSON representation of the radar chart's axis object.",title:"WebChartRadarChartAxis"},WebChartRadarChartAxisLabelsOrientation:{type:"string",enum:["radial","circular","horizontal"],description:"Labels orientation for radar chart axes.",title:"WebChartRadarChartAxisLabelsOrientation"},WebChartQuery:{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the `FeatureSet`. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** field is supported,",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated."},orderByFields:{type:"array",items:{type:"string"},description:"Represents the sorting order of the output result.\n\nIt's recommended to use the `orderByFields` property of the chart's `orderOptions` object instead of this one. If both are used, the `orderByFields` property of the chart's `orderOptions` object will take precedence.\n\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},spatialRelationship:{type:"string",enum:["contains","crosses","disjoint","envelope-intersects","index-intersects","intersects","overlaps","relation","touches","within"],description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent `[timestamp, timestamp]` for a temporal query against time-aware layers."},start:{type:"number",description:"The zero-based index indicating where to begin retrieving features."},num:{type:"number",description:"The number of features to retrieve."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."}},description:"Chart's query object.",title:"WebChartQuery"},IEnvelope:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},xmin:{type:"number"},xmax:{type:"number"},ymin:{type:"number"},ymax:{type:"number"},zmin:{type:"number"},zmax:{type:"number"},mmin:{type:"number"},mmax:{type:"number"}},required:["xmin","xmax","ymin","ymax"],description:"An envelope is a rectangle defined by a range of values for each coordinate and attribute.",title:"IEnvelope"},IGeometry:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"}},description:'a building block for discrete geometries\n\n`IGeometry` can also be imported from the following packages:\n\n```js import { IGeometry } from "@esri/arcgis-rest-feature-layer"; ```',title:"IGeometry"},ISpatialReference:{type:"object",properties:{wkid:{type:["number","null"]},latestWkid:{type:"number"},vcsWkid:{type:"number"},latestVcsWkid:{type:"number"},wkt:{type:["string","null"]},latestWkt:{type:"string"}},title:"ISpatialReference"},IExtent:{type:"object",properties:{xmin:{type:"number"},ymin:{type:"number"},zmin:{type:"number"},xmax:{type:"number"},ymax:{type:"number"},zmax:{type:"number"},spatialReference:{$ref:"#/definitions/ISpatialReference"}},required:["xmin","ymin","xmax","ymax"],description:'Extents are used to define rectangles and bounding boxes.\n\n`IExtent` can also be imported from the following packages:\n\n```js import { IExtent } from "@esri/arcgis-rest-geocoding"; import { IExtent } from "@esri/arcgis-rest-service-admin"; import { IExtent } from "@esri/arcgis-rest-feature-layer"; ```',title:"IExtent"},IPoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y"],title:"IPoint"},IHasZM:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"}},title:"IHasZM"},IPolygon:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},rings:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["rings"],title:"IPolygon"},Position:{anyOf:[{$ref:"#/definitions/Position2D"},{type:"array",items:{type:"number"},minItems:4,maxItems:4},{type:"array",items:{type:"number"},minItems:3,maxItems:3}],title:"Position"},Position2D:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"Position2D"},IPolygonWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curveRings:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curveRings"],title:"IPolygonWithCurves"},JsonCurve:{anyOf:[{$ref:"#/definitions/IArc"},{$ref:"#/definitions/IBezierCurve"},{$ref:"#/definitions/ICircularArc"},{$ref:"#/definitions/IOldCircularArc"}],title:"JsonCurve"},IArc:{type:"object",properties:{a:{type:"array",minItems:7,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"},{type:"number"},{type:"number"},{type:"number"}],maxItems:7}},required:["a"],title:"IArc"},IBezierCurve:{type:"object",properties:{b:{type:"array",minItems:3,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{$ref:"#/definitions/Position2D"}],maxItems:3}},required:["b"],title:"IBezierCurve"},ICircularArc:{type:"object",properties:{c:{type:"array",minItems:2,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"}],maxItems:2}},required:["c"],title:"ICircularArc"},IOldCircularArc:{type:"object",properties:{a:{type:"array",minItems:4,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"}],maxItems:4}},required:["a"],title:"IOldCircularArc"},IPolyline:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},paths:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["paths"],title:"IPolyline"},RESTUnits:{type:"string",enum:["feet","miles","nautical-miles","us-nautical-miles","meters","kilometers"],title:"RESTUnits"},WebChartSeriesQuery:{$ref:"#/definitions/Omit%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E",description:"Subset of the `WebChartQuery`, used at the series level.\n\n**Note**: The former `orderByFields` property is replaced by the `orderOptions` property of `WebChart`.",title:"WebChartSeriesQuery"},'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>':{$ref:"#/definitions/Pick%3CWebChartQuery%2CExclude%3C(%22outFields%22%7C%22where%22%7C%22groupByFieldsForStatistics%22%7C%22outStatistics%22%7C%22orderByFields%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22spatialRelationship%22%7C%22distance%22%7C%22units%22%7C%22timeExtent%22%7C%22start%22%7C%22num%22%7C%22returnDistinctValues%22%7C%22fetchNullValues%22%7C%22objectIds%22%7Cstring)%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E%3E",title:'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>'},'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>':{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the `FeatureSet`. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** field is supported,",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1}},title:'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>'},WebChartDataFilters:{$ref:"#/definitions/Pick%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22objectIds%22%7C%22spatialRelationship%22%7C%22timeExtent%22%7C%22units%22%7C%22where%22)%3E",description:"JSON representation of filters applied to the data.",title:"WebChartDataFilters"},'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>':{type:"object",properties:{distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."},spatialRelationship:{type:"string",enum:["contains","crosses","disjoint","envelope-intersects","index-intersects","intersects","overlaps","relation","touches","within"],description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent `[timestamp, timestamp]` for a temporal query against time-aware layers."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."}},title:'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>'},WebChartSeries:{type:"object",properties:{type:{type:"string"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
31
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1}},required:["type","id","name","x"],description:"JSON representation of the chart's series object. All other series extends this interface.",title:"WebChartSeries"},WebChartCalendarDatePartsBinning:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart.\n\nIncomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},type:{type:"string",const:"calendarDateParts",description:"Represents a unique string identifier for the `CalendarDatePartsBinning` object. `For CalendarDatePartsBinning` object, it is `calendarDateParts`."},unit:{$ref:"#/definitions/WebChartCalendarDatePartsUnits",description:"Represents the unit to use to bin the data."}},required:["type","unit"],title:"WebChartCalendarDatePartsBinning"},WebChartTemporalBinningBase:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart.\n\nIncomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."}},description:"Describes the basic properties available for a temporal binning",title:"WebChartTemporalBinningBase"},WebChartCalendarDatePartsUnits:{type:"string",enum:["dayOfMonth","dayOfWeek","dayOfYear","hourOfDay","monthOfYear","minuteOfDay","weekOfYear","quarterOfYear"],description:"Represents the units that can be used for calendar-based date parts binning.",title:"WebChartCalendarDatePartsUnits"},WebChartTemporalBinning:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. `7` as Sunday for US, `1` as Monday for France).\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series.\n- `null` and `zero` for bar series.",default:"null"},trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart.\n\nIncomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartTemporalBinningUnits",description:'The unit of time to use to bin the temporal data.\n\nCurrent limitation: the "quarters" unit is only supported if the provided layer supports the `queryBins` operation.'},size:{type:"number",description:"The span of time that will be binned or aggregated together. Works in coordination with `unit`."},timeAggregationType:{$ref:"#/definitions/WebChartTimeAggregationTypes",description:"The time interval alignment type. Valid options include `equalIntervalsFromStartTime` and `equalIntervalsFromEndTime`.\n\nWhen specific the binning will start at the first or last date of the dataset.",default:"equalIntervalsFromStartTime"}},description:"Describes the properties available for a temporal binning for bar charts and line charts.",title:"WebChartTemporalBinning"},WebChartTemporalBinningExtras:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. `7` as Sunday for US, `1` as Monday for France).\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series.\n- `null` and `zero` for bar series.",default:"null"}},description:"Describes the extra properties available for a temporal series and for the heat chart.",title:"WebChartTemporalBinningExtras"},WebChartNullPolicyTypes:{type:"string",enum:["null","zero","interpolate"],description:"Represents the different types of null policy that can be applied to a chart using the time binning feature.",title:"WebChartNullPolicyTypes"},WebChartTimeAggregationTypes:{type:"string",enum:["equalIntervalsFromStartTime","equalIntervalsFromEndTime"],description:"Represents the different types of time aggregation that can be applied to a chart using the time binning feature.",title:"WebChartTimeAggregationTypes"},WebChartTemporalSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data.\n\n`false` - the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."}},description:"Describes the properties related to a temporal series.",title:"WebChartTemporalSeries"},WebChartBarChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data.\n\n`false` - the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"barSeries",description:"Represents a unique string identifier for the `BarChartSeries` object. For `BarSeries` object, it is `barSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
32
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the columns/bars should be rendered."},hideOversizedStackedLabels:{type:"boolean",description:"`true` or `undefined` - the labels displayed within a small stacked column are hidden to avoid cluttering. `false` - all the data labels are displayed.",default:!0},hideOversizedSideBySideLabels:{type:"boolean",description:"When `true`, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering. When `false` or `undefined` (default), all the data labels are displayed.",default:!1},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value. Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"Bar chart shows the categorical distribution of `String` or `DateTime` data.",title:"WebChartBarChartSeries"},HistogramOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:"Represents a unique string identifier for the `HistogramOverlays` object. For `HistogramOverlays` object, it is `chartOverlays`."},mean:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the mean overlay for histogram.
|
|
33
|
-
|
|
34
|
-
If not provided, the mean overlay is not displayed.`},median:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the median overlay for histogram.
|
|
35
|
-
|
|
36
|
-
If not provided, the median overlay is not displayed.`},standardDeviation:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the standard deviation overlay for histogram.
|
|
37
|
-
|
|
38
|
-
If not provided, the standard deviation overlay is not displayed.`},comparisonDistribution:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the comparison distribution overlay for histogram.
|
|
39
|
-
|
|
40
|
-
If not provided, the comparison distribution overlay is not displayed.`}},required:["type"],description:"Object containing histogram overlays.",title:"HistogramOverlays"},WebChartHistogramSeries:{type:"object",properties:{type:{type:"string",const:"histogramSeries",description:"Represents a unique string identifier for the `HistogramSeries` object. For `HistogramSeries` object, it is `histogramSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
41
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},binCount:{type:["number","null"],description:"Bin count must be a positive integer.",minimum:1,multipleOf:1,default:32},overlays:{$ref:"#/definitions/HistogramOverlays",description:"Specifies the chart overlays. Histogram supports 4 overlays: **mean**, **median**, **standardDeviation** and **comparisonDistribution**. The overlays won't show if the property is not defined."},dataTransformationType:{$ref:"#/definitions/WebChartDataTransformations",description:"Specifies how the data should be transformed (e.g. square root, log, etc.) before binning."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the columns should be rendered."}},required:["id","name","type","x"],description:"Histogram shows the frequency distribution of a numerical field.",title:"WebChartHistogramSeries"},WebChartDataTransformations:{type:"string",enum:["none","logarithmic","squareRoot"],title:"WebChartDataTransformations"},ScatterplotOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:"Represents a unique string identifier for the `ScatterplotOverlays` object. For the `ScatterplotOverlays` object, it is `chartOverlays`."},trendLine:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the trend line overlay for scatterplot.
|
|
42
|
-
|
|
43
|
-
The trend line won't show if the property is not defined.`}},required:["type"],description:"Object containing scatterplot overlays.",title:"ScatterplotOverlays"},SizePolicy:{type:"object",properties:{type:{type:"string",const:"sizeScale",description:"Represents a unique string identifier for the `sizePolicy` object. For the `sizePolicy` object, it is `sizeScale`."},scaleType:{$ref:"#/definitions/SizePolicyScaleTypes",description:"The type of scale to apply to the markers (`logarithmic` or `linear`).",default:"SizePolicyScaleTypes.Linear"},field:{type:"string",description:"The field which determines the markers size."},minSize:{type:"number",description:"The minimum marker size.",default:5,multipleOf:1},maxSize:{type:"number",description:"The maximum marker size.",default:30,multipleOf:1}},required:["type","field"],title:"SizePolicy"},SizePolicyScaleTypes:{type:"string",enum:["linear","logarithmic"],description:"Represents the types of scales that can be applied to the size policy. Use by bubble charts (scatterplot).",title:"SizePolicyScaleTypes"},WebChartScatterplotSeries:{type:"object",properties:{type:{type:"string",const:"scatterSeries",description:"Represents a unique string identifier for the `ScatterSeries` object. For the `ScatterSeries` object, it is `scatterSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
44
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Specifies how each data point in the scatterplot should be rendered."},overlays:{$ref:"#/definitions/ScatterplotOverlays",description:"Specifies all the chart overlays. The scatterplot implements only 1 overlay, **trendLine**. The overlays won't show if the property is not defined."},sizePolicy:{$ref:"#/definitions/SizePolicy",description:"Specifies rules to use the scatterplot as bubble plot, by changing dynamically the markers size according to a specific field value."},additionalTooltipFields:{type:"array",items:{type:"string"},description:"Specifies the additional numeric fields in the tooltip."}},required:["id","name","type","x","y"],description:"Scatterplot shows the relationship between two numerical fields.",title:"WebChartScatterplotSeries"},ISimpleMarkerSymbol:{type:"object",properties:{type:{type:"string",const:"esriSMS"},style:{$ref:"#/definitions/SimpleMarkerSymbolStyle"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},size:{type:"number"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleMarkerSymbol"},IMarkerSymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},required:["type"],title:"IMarkerSymbol"},SimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSTriangle","esriSMSX"],title:"SimpleMarkerSymbolStyle"},WebChartPieChartTick:{type:"object",properties:{type:{type:"string",const:"pieTick",description:"Represents a unique string identifier for the `WebChartPieChartTick` object. For the `WebChartPieChartTick` object, it is `pieTick`."},visible:{type:"boolean",description:"Determines the visibility of the tick.\n\nAssigning the `true` value will only be considered when the data labels are visible (`series.dataLabels.visible`) and when the data label associated to the tick is outside of the chart (`series.dataLabelsOffset` > 0)."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the pie chart ticks should be rendered."}},required:["type"],description:"JSON representation of the pie ticks.",title:"WebChartPieChartTick"},WebChartPieChartSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice.\n\nFor grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the slice should be rendered. If not provided, the slice will be styled with default values."}},required:["sliceId"],description:"JSON representation of the pie slices",title:"WebChartPieChartSlice"},WebChartPieChartGroupSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice.\n\nFor grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the slice should be rendered. If not provided, the slice will be styled with default values."},percentageThreshold:{type:"number",description:"Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice."},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the grouped slice data labels should be rendered.\n\nIf the property is not set the `series.dataLabels` will be used instead."}},required:["percentageThreshold","sliceId"],description:"JSON representation of the pie grouped slice.",title:"WebChartPieChartGroupSlice"},WebChartPieChartSeries:{type:"object",properties:{type:{type:"string",const:"pieSeries",description:"Represents a unique string identifier for the `WebChartPieChartSeries` object. For the `WebChartPieChartSeries` object, it is `pieSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
45
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",minimum:0,maximum:100,default:50},startAngle:{type:["number","null"],default:-90},endAngle:{type:["number","null"],default:270},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the slices should be rendered."},displayCategoryOnDataLabel:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its data label. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayNumericValueOnDataLabel:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its data label.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`.\n\nThis property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayPercentageOnDataLabel:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its data label.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!1},displayCategoryOnTooltip:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its tooltip.\n\nThis property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayNumericValueOnTooltip:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its tooltip.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayPercentageOnTooltip:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its tooltip.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},numericValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the numerical values should be formatted (applied to label, tooltip and legend).\n\nCan be overridden for the tooltips by `series.dataTooltipValueFormat`."},percentValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the percent values should be formatted (applied to label, tooltip and legend).\n\nCan be overridden for the tooltips by `series.dataTooltipPercentFormat`."},valuePrefix:{type:"string",description:"Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend."},valueSuffix:{type:"string",description:"Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend."},percentagePrefix:{type:"string",description:"Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend."},percentageSuffix:{type:"string",description:"Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend."},dataLabelsCharacterLimit:{type:["number","null"],description:'If set, the category on the data label is truncated to display only `characterLimit` characters, and an ellipsis ("...") is added to the end of the label.\n\nDoes not affect the value or percentage displayed in labels. Not applicable to tooltips or legend labels.',default:"undefined",minimum:1,multipleOf:1},ticks:{$ref:"#/definitions/WebChartPieChartTick",description:"Specifies how to render the ticks shown on each slide. Ticks will be displayed with default values if not provided."},dataLabelsInside:{type:"boolean",description:"Whether to place the data labels inside the pie slices.\n\nWhen set to `true` the following properties will be ignored:\n- `dataLabelsOffset`\n- `alignDataLabels`\n- `optimizeDataLabelsOverlapping`",default:!1},dataLabelsOffset:{type:"number",description:"Determines in pixel how far the data labels should be placed from their slice. If a negative value is provided the label will be placed inside of the chart.\n\nIgnored when `dataLabelsInside` is set to `true`.",default:10},alignDataLabels:{type:"boolean",description:"Aligns labels into columns to make them more readable and avoid them to overlap each other.\n\nIgnored when `dataLabelsInside` is set to `true`.",default:!1},optimizeDataLabelsOverlapping:{type:"boolean",description:"Optimizes the data labels rendering to avoid them to be cut off on the edges or to overlap the legend by wrapping them and adding padding to the chart.\n\nIgnored when `dataLabelsInside` is set to `true`.",default:!1},sliceGrouping:{$ref:"#/definitions/WebChartPieChartGroupSlice",description:"Specifies if and how the slices under a given percentage threshold are grouped into a unique slice."},slices:{type:"array",items:{$ref:"#/definitions/WebChartPieChartSlice"},description:"An array of `WebChartPieChartSlice` representing the ids, labels and styles of the pie slices.\n\nWhen this property is not defined, or when a pie slice does not have a matching slice in this array, the series' fillSymbol will be used. If the series' fillSymbol does not contain color information, colors from the color ramps will be utilized."}},required:["id","name","type","x","y"],description:"JSON representation of the pie chart series",title:"WebChartPieChartSeries"},WebChartGaugeSeries:{type:"object",properties:{type:{type:"string",const:"gaugeSeries",description:"Represents a unique string identifier for the `WebChartGaugeSeries` object. For the `WebChartGaugeSeries` object, it is `gaugeSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
46
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},valueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines the conversion to apply to the gauge value."},featureIndex:{type:"number",description:`Specifies the index of the feature to be rendered.
|
|
47
|
-
|
|
48
|
-
This property will be ignored for a statistic gauge (indicated via \`WebGaugeChart.subType\` property).
|
|
49
|
-
|
|
50
|
-
For feature-based gauge, if this property is not present, the first feature will be used (featureIndex = 0)`}},required:["id","name","type","x"],description:"JSON representation of the gauge series",title:"WebChartGaugeSeries"},WebChartBoxPlotSeries:{type:"object",properties:{type:{type:"string",const:"boxPlotSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
51
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the box plot series.",minLength:1,minItems:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the box and whiskers should be rendered. The whiskers use the `fillSymbol.outline`."}},required:["id","name","type","x","y"],description:"JSON representation of the box plot series",title:"WebChartBoxPlotSeries"},WebChartHeatChartGradient:{type:"object",properties:{colorList:{type:"array",items:{$ref:"#/definitions/Color"},minItems:2,maxItems:2,description:"An array of 2 colors to use for the gradient. The first color represents the minimum value, the second color represents the maximum value."},minValue:{type:"number",description:"Specifies the custom minimum value for the heat chart. If none is provided, the minimum value from the dataset will be used."},maxValue:{type:"number",description:"Specifies the custom maximum value for the heat chart. If none is provided, the maximum value from the dataset will be used."},outsideRangeLowerColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the lower range specified by `minValue`. If none is provided, the default color will be used.",default:"`[250, 250, 250, 255] - white`"},outsideRangeUpperColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the upper range specified by `maxValue`. If none is provided, the default color will be used.",default:"`[0, 0, 255, 255] - blue`"}},description:"JSON representation of the Heat chart with gradient heat rules.",title:"WebChartHeatChartGradient"},WebChartHeatChartHeatClassBreaks:{type:"object",properties:{breaksCount:{type:"number",description:"The number of class breaks to be used for the heat chart.",default:5},classificationMethod:{$ref:"#/definitions/WebChartClassBreakTypes",description:"The classification method to be used for the heat chart. `equal-interval` - divides the range of values into equal-sized intervals. `quantile` - divides the range of values into intervals that contain an equal number of features. `natural-breaks` - identifies natural groupings of values in the data by minimizing the variance within classes and maximizing the variance between classes. `manual` - allows you to manually specify the class breaks."}},description:"JSON representation of the Heat chart with class breaks heat rules.",title:"WebChartHeatChartHeatClassBreaks"},WebChartClassBreakTypes:{type:"string",enum:["equal-interval","quantile","natural-breaks","manual"],description:"Class break types for data classification in charts.",title:"WebChartClassBreakTypes"},WebChartHeatChartEmptyCell:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use by the empty cells. If none is provided, the default `null` text will be used.",default:"`null`"},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Specifies the symbol to use by the empty cells. If none is provided, the default symbol will be used."}},description:"JSON representation of the heat chart empty cell configuration.",title:"WebChartHeatChartEmptyCell"},WebChartHeatChartSeries:{type:"object",properties:{type:{type:"string",const:"heatSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
52
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},xTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the x-axis field is a date."},yTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the y-axis field is a date."},gridLine:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defines how the cells outline should render."},heatRulesType:{$ref:"#/definitions/WebChartHeatChartHeatRulesTypes",description:"Defines the type of rule to apply for the heat chart.",default:"WebChartHeatChartHeatRulesTypes.Gradient"},gradientRules:{$ref:"#/definitions/WebChartHeatChartGradient",description:"Specifies the details of the gradient rules for the heat chart."},classBreaksRules:{$ref:"#/definitions/WebChartHeatChartHeatClassBreaks",description:"Specifies the details of the class breaks rules for the heat chart."},emptyCells:{$ref:"#/definitions/WebChartHeatChartEmptyCell",description:"Specifies how to display the empty cells, in terms of text and symbology."}},required:["id","name","type","x","y"],description:"JSON representation of the heat chart series.",title:"WebChartHeatChartSeries"},WebChartHeatChartHeatRulesTypes:{type:"string",enum:["gradient","renderer"],description:"Represents the different types of heat rule that can be applied to a heat chart.",title:"WebChartHeatChartHeatRulesTypes"},WebChartRadarChartSeries:{$ref:"#/definitions/WebChartLineChartSeries%3C%22radarSeries%22%3E",title:"WebChartRadarChartSeries"},'WebChartLineChartSeries<"radarSeries">':{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data.\n\n`false` - the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"radarSeries",description:"Represents a unique string identifier for the `WebChartLineChartSeries` object. For the `WebChartLineChartSeries` object, it is `lineSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
53
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the line or line segments should be rendered."},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling information on how the marker should be rendered."},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart.\n\n`areaColor` will be applied only if `showArea` is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. `true` - negative values will be stacked on the base line. `false` - negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:`Specifies how to display the category with null value.
|
|
54
|
-
|
|
55
|
-
Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.`}},required:["id","name","type","x","y"],description:"JSON representation of the line chart series.",title:'WebChartLineChartSeries<"radarSeries">'},WebChartSeriesType:{anyOf:[{$ref:"#/definitions/WebChartBarChartSeries"},{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartGaugeSeries"},{$ref:"#/definitions/WebChartHeatChartSeries"},{$ref:"#/definitions/WebChartHistogramSeries"},{$ref:"#/definitions/WebChartLineChartSeries"},{$ref:"#/definitions/WebChartPieChartSeries"},{$ref:"#/definitions/WebChartRadarChartSeries"},{$ref:"#/definitions/WebChartScatterplotSeries"}],description:"Type containing all the series types available",title:"WebChartSeriesType"},WebChartLineChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data.\n\n`false` - the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"lineSeries",description:"Represents a unique string identifier for the `WebChartLineChartSeries` object. For the `WebChartLineChartSeries` object, it is `lineSeries`."},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:`Hides or shows data tooltips.
|
|
56
|
-
**Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the line or line segments should be rendered."},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling information on how the marker should be rendered."},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart.\n\n`areaColor` will be applied only if `showArea` is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. `true` - negative values will be stacked on the base line. `false` - negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:`Specifies how to display the category with null value.
|
|
57
|
-
|
|
58
|
-
Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.`}},required:["id","name","type","x","y"],description:"JSON representation of the line chart series.",title:"WebChartLineChartSeries"},WebChart:{type:"object",properties:{version:{type:"string",const:"25.0.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"}],description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart."},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:"`[255, 255, 255, 255]`"},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** chart axes accompanying the chart. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:"Represents the way the labels should behave when the horizontal axis can't display them all.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.",default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all.
|
|
59
|
-
|
|
60
|
-
For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:`Represents an array of various chart series to be plot inside the chart.
|
|
61
|
-
|
|
62
|
-
Empty array is not allowed.`,minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
63
|
-
|
|
64
|
-
Only applicable to bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:`Renderer to use to style the series when the chart uses the color match mode.
|
|
65
|
-
|
|
66
|
-
Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
67
|
-
|
|
68
|
-
If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},orderByFields:{type:"array",items:{type:"string"},description:"The `orderByFields` to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for data and series."}},required:["version","type","series"],description:"JSON representation of the web chart object.",title:"WebChart"},IFeatureLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISFeatureLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",const:!0,description:"Indicates whether to allow a client to ignore popups defined by the service item."},featureCollection:{description:"A featureCollection object defining a layer of features whose geometry and attributes are either stored directly within the web map or with an item. Feature Collections can be created from CSVs, shapefiles, GPX, or map notes."},featureCollectionType:{type:"string",enum:["markup","notes","route"],description:"Indicates the type of features in the feature collection. If featureCollectionType is missing, it means the feature collection is a regular single-layer or multi-layer feature collection."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mode:{type:"number",enum:[0,1,2],description:"0 is snapshot mode. 1 is on-demand mode. 2 is selection-only mode. Used with ArcGIS feature services and individual layers in ArcGIS map services."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLabels:{type:"boolean",const:!0,description:"Labels will display if this property is set to true and the layer also has a labelingInfo property associated with it. This property can get stored in the web map config and in the item/data."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with feature layers that are based on feature collections."}},required:["id","layerType"],title:"IFeatureLayer"},ILayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"Indicates the layer type"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],title:"ILayer"},ISupportsTime:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."}},title:"ISupportsTime"},IDefinitionEditor:{type:"object",properties:{inputs:{type:"array",items:{$ref:"#/definitions/IDefinitionInput"},description:"An array of input objects."},parameterizedExpression:{type:"string",description:"A string value representing the where clause for the interactive filter."}},title:"IDefinitionEditor"},IDefinitionInput:{type:"object",properties:{hint:{type:"string",description:"A string value representing a hint for the input."},parameters:{type:"array",items:{$ref:"#/definitions/IDefinitionParameter"},description:"An array of parameter objects."},prompt:{type:"string",description:"A string value representing the prompt for the input."}},title:"IDefinitionInput"},IDefinitionParameter:{type:"object",properties:{defaultValue:{type:["number","string"],description:"The default value that is automatically given if nothing is provided."},fieldName:{type:"string",description:"A string value representing the name of the field to query."},parameterId:{description:"Number given to uniquely identify the specified parameter."},type:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset","esriFieldTypeXML"],description:"The field type for the specified field parameter."},utcValue:{type:"number",description:"An integer value representing exact UNIX time used when defaultValue is a date string."}},title:"IDefinitionParameter"},ILayerDefinition:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query, Editing."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},currentVersion:{type:"number",description:"Numeric value indicating the server version of the layer."},defaultVisibility:{type:"boolean",description:"Boolean value indicating whether the layer's visibility is turned on."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},definitionExpression:{type:"string",description:"SQL-based definition expression string that narrows the data to be displayed in the layer."},description:{type:"string",description:"String value of the layer as defined in the map service."},displayField:{type:"string",description:"A string value that summarizes the feature."},drawingInfo:{description:"Contains drawing, labeling, and transparency information."},extent:{anyOf:[{$ref:"#/definitions/IExtent"},{type:"null"}],description:"An object defining the rectangular area."},editingInfo:{$ref:"#/definitions/IEditingInfo",description:"An object defining the editing info (last edit date)."},featureReduction:{description:"Feature reductions declutter the screen by hiding features that would otherwise intersect with other features on screen."},fields:{type:"array",items:{$ref:"#/definitions/IField"},description:"An array of field objects containing information about the attribute fields for the feature collection or layer."},geometryType:{$ref:"#/definitions/GeometryType",description:"A string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope."},globalIdField:{type:"string",description:"The unique identifier for a feature or table row within a geodatabase."},hasAttachments:{type:"boolean",description:"Indicates whether attachments should be loaded for the layer."},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},htmlPopupType:{type:"string",enum:["esriServerHTMLPopupTypeAsHTMLText","esriServerHTMLPopupTypeAsURL","esriServerHTMLPopupTypeNone"],description:"String value indicating the HTML popup type."},id:{type:"number",description:"The identifier assigned to the layer."},isDataVersioned:{type:"boolean",description:"Boolean value indicating whether the data is versioned."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},maxScale:{type:"number",description:"Represents the maximum scale at which the layer definition will be applied. This does not apply to layers of type: ArcGISMapServiceLayer, ImageServiceVectorLayer or ImageServiceLayer."},minScale:{type:"number",description:"Represents the minimum scale at which the layer definition will be applied. This does not apply to layers of type: ArcGISMapServiceLayer, ImageServiceVectorLayer or ImageServiceLayer."},name:{type:"string",description:"Contains a unique name for the layer that can be displayed in a legend."},objectIdField:{type:"string",description:"Indicates the name of the object ID field in the dataset."},overrideSymbols:{type:"boolean",description:"Dictates whether a client can support having an end user modify symbols on individual features."},rangeInfos:{description:"Indicates range information"},source:{description:"An object indicating the layerDefinition's layer source."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsAdvancedQueries:{type:"boolean",description:"Boolean value indicating whether the layer supports orderByFields in a query operation."},supportsAttachmentsByUploadId:{type:"boolean",description:"Boolean value indicating whether the layer supports uploading attachments with the Uploads operation. This can then be used in the Add Attachment and Update Attachment operations."},supportsCalculate:{type:"boolean",description:"Boolean value indicating whether the layer supports the Calculate REST operation when updating features."},supportsRollbackOnFailureParameter:{type:"boolean",description:"Boolean value indicating whether the layer supports rolling back edits made on a feature layer if some of the edits fail."},supportsStatistics:{type:"boolean",description:"Boolean value indicating whether feature layer query operations support statistical functions."},supportsValidateSql:{type:"boolean",description:"Boolean value indicating whether the validateSQL operation is supported across a feature service layer."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"A property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."},timeInfo:{description:"The time info metadata of the layer. May be set for feature layers inside a feature collection item."},type:{type:"string",enum:["Feature Layer","Table"],description:"Indicates whether the layerDefinition applies to a Feature Layer or a Table."},typeIdField:{type:"string",description:"Contains the name of the field holding the type ID for the features."},types:{description:"Contains information about an attribute field."},visibilityField:{type:"string",description:"String value indicating the attribute field that is used to control the visibility of a feature. If applicable, when rendering a feature the client should use this field to control visibility. The field's values are 0 = do not display, 1 = display."},relationships:{type:"array",items:{}},editFieldsInfo:{type:"object",properties:{creationDateField:{type:"string"},creatorField:{type:"string"},editDateField:{type:"string"},editorField:{type:"string"}}},parentLayerId:{type:"number"},ownershipBasedAccessControlForFeatures:{type:"boolean"},syncCanReturnChanges:{type:"boolean"},archivingInfo:{type:"object",properties:{supportsQueryWithHistoricMoment:{type:"boolean"},startArchivingMoment:{type:"number"}}},supportsValidateSQL:{type:"boolean"},advancedQueryCapabilities:{type:"object",properties:{supportsPagination:{type:"boolean"},supportsTrueCurve:{type:"boolean"},supportsQueryWithDistance:{type:"boolean"},supportsReturningQueryExtent:{type:"boolean"},supportsStatistics:{type:"boolean"},supportsOrderBy:{type:"boolean"},supportsDistinct:{type:"boolean"},supportsSqlExpression:{type:"boolean"},supportsPercentileStatistics:{type:"boolean"}}},allowTrueCurvesUpdates:{type:"boolean"},onlyAllowTrueCurveUpdatesByTrueCurveClients:{type:"boolean"},supportsApplyEditsWithGlobalIds:{type:"boolean"},subtypeField:{type:"string"},indexes:{type:"array",items:{}},dateFieldsTimeReference:{type:"object",properties:{timeZone:{type:"string"},respectsDaylightSaving:{type:"boolean"}}},useStandardizedQueries:{type:"boolean"}},description:'`ILayerDefinition` can also be imported from the following packages:\n\n```js import { ILayerDefinition } from "@esri/arcgis-rest-service-admin"; import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"ILayerDefinition"},IEditingInfo:{type:"object",properties:{lastEditDate:{type:"number",description:"date of last edit to the layer"}},title:"IEditingInfo"},IField:{type:"object",properties:{name:{type:"string",description:"A string defining the field name."},type:{$ref:"#/definitions/FieldType",description:"A string defining the field type."},alias:{type:"string",description:"A string defining the field alias."},domain:{$ref:"#/definitions/IDomain",description:"The domain objects if applicable."},editable:{type:"boolean",description:"A Boolean defining whether this field is editable."},exactMatch:{type:"boolean",description:"A Boolean defining whether or not the field is an exact match."},length:{type:"number",description:"A number defining how many characters are allowed in a string. field."},nullable:{type:"boolean",description:"A Boolean defining whether this field can have a null value."},defaultValue:{description:"The value written in for new records by default."}},required:["name","type"],description:'Contains information about an attribute field.\n\n`IField` can also be imported from the following packages:\n\n```js import { IField } from "@esri/arcgis-rest-feature-layer"; ```',title:"IField"},FieldType:{type:"string",enum:["esriFieldTypeBigInteger","esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset","esriFieldTypeXML"],title:"FieldType"},IDomain:{type:"object",properties:{type:{$ref:"#/definitions/DomainType",description:"A string defining the domain type."},name:{type:"string",description:"A string defining the field name."},range:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A 2 element array defining the range of possible values."},codedValues:{type:"array",items:{$ref:"#/definitions/ICodedValue"},description:"An array of CodedValues for domains of type codedValue."},description:{type:"string",description:"Description of the domain"},mergePolicy:{type:"string",description:"Merge policy"},splitPolicy:{type:"string",description:"Split Policy"}},required:["type"],title:"IDomain"},DomainType:{type:"string",enum:["codedValue","inherited","range"],title:"DomainType"},ICodedValue:{type:"object",properties:{name:{type:"string",description:"User-friendly name for what the code means."},code:{type:["number","string"],description:"The value stored in the feature attribute."}},required:["name","code"],title:"ICodedValue"},GeometryType:{type:"string",enum:["esriGeometryEnvelope","esriGeometryMultipoint","esriGeometryPoint","esriGeometryPolygon","esriGeometryPolyline"],description:'`GeometryType` can also be imported from the following packages:\n\n```js import { GeometryType } from "@esri/arcgis-rest-feature-layer"; ```',title:"GeometryType"},ITemplate:{type:"object",properties:{description:{description:"A string value containing a detailed description of the template."},drawingTool:{$ref:"#/definitions/FeatureEditTool",description:"An optional string that can define a client-side drawing tool to be used with this feature. For example, map notes used by the Online Map Viewer use this to represent the viewer's different drawing tools."},name:{type:"string",description:"A string containing a user-friendly name for the template."},prototype:{$ref:"#/definitions/IFeature",description:"A feature object representing a prototypical feature for the template."}},description:`Templates describe features that can be created in a layer. They are generally used with feature collections and editable web-based CSV layers.
|
|
69
|
-
|
|
70
|
-
Templates are not used with ArcGIS feature services as these already have templates defined in the service.
|
|
71
|
-
|
|
72
|
-
They are also defined as properties of the layer definition when there are no defined types. Otherwise, templates are defined as properties of the types.`,title:"ITemplate"},FeatureEditTool:{type:"string",enum:["esriFeatureEditToolAutoCompletePolygon","esriFeatureEditToolCircle","esriFeatureEditToolDownArrow","esriFeatureEditToolEllipse","esriFeatureEditToolFreehand","esriFeatureEditToolLeftArrow","esriFeatureEditToolLine","esriFeatureEditToolNone","esriFeatureEditToolPoint","esriFeatureEditToolPolygon","esriFeatureEditToolRectangle","esriFeatureEditToolRightArrow","esriFeatureEditToolText","esriFeatureEditToolTriangle","esriFeatureEditToolUpArrow"],title:"FeatureEditTool"},IFeature:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry"},attributes:{$ref:"#/definitions/Record%3Cstring%2Cany%3E"},symbol:{$ref:"#/definitions/ISymbol"}},required:["attributes"],description:'a spatial entity and its corresponding properties\n\n`IFeature` can also be imported from the following packages:\n\n```js import { IFeature } from "@esri/arcgis-rest-feature-layer"; import { IFeature } from "@esri/arcgis-rest-routing"; ```',title:"IFeature"},"Record<string,any>":{type:"object",title:"Record<string,any>"},IPopupInfo:{type:"object",properties:{description:{type:["string","null"],description:"A string that appears in the body of the popup window as a description. It is also possible to specify the description as HTML-formatted content."},expressionInfos:{type:"array",items:{$ref:"#/definitions/IPopupExpressionInfo"},description:"List of Arcade expressions added to the pop-up."},fieldInfos:{type:"array",items:{$ref:"#/definitions/IFieldInfo"},description:"Array of fieldInfo information properties. This information is provided by the service layer definition. When the description uses name/value pairs, the order of the array is how the fields display in the editable Map Viewer popup and the resulting popup. It is also possible to specify HTML-formatted content."},layerOptions:{type:"object",properties:{showNoDataRecords:{type:"boolean",description:"Indicates whether or not the NoData records should be displayed."}},required:["showNoDataRecords"],description:"Additional options that can be defined for the popup layer."},mediaInfos:{type:"array",items:{$ref:"#/definitions/IMediaInfo"},description:"Array of various mediaInfo to display. Can be of type image, piechart, barchart, columnchart, or linechart. The order given is the order in which is displays."},popupElements:{type:"array",items:{$ref:"#/definitions/IPopupElement"},description:"An array of popupElement objects that represent an ordered list of popup elements."},relatedRecordsInfo:{$ref:"#/definitions/IRelatedRecordsInfo",description:"Indicates whether to enable related records if they exist on a layer."},showAttachments:{type:"boolean",description:"Indicates whether attachments will be loaded for feature layers that have attachments."},title:{type:"string",description:"A string that appears at the top of the popup window as a title."}},title:"IPopupInfo"},IPopupExpressionInfo:{type:"object",properties:{expression:{type:"string",description:"The Arcade expression."},name:{type:"string",description:"Unique identifier for the expression."},returnType:{type:"string",enum:["number","string"],description:"Return type of the Arcade expression, can be number or string. Defaults to string value. Number values are assumed to be double. This can be determined by the authoring client by executing the expression using a sample feature(s), although it can be corrected by the user. Knowing the returnType allows the authoring client to present fields in relevant contexts. For example, numeric fields in numeric contexts such as charts."},title:{type:"string",description:"Title of the expression."}},title:"IPopupExpressionInfo"},IFieldInfo:{type:"object",properties:{fieldName:{description:"A string containing the field name as defined by the service. Anywhere that a fieldname is referenced as {field-name} in popupInfo, an Arcade expression can also be referenced as{expression/}`."},format:{$ref:"#/definitions/IFieldFormat",description:"A format object used with numerical or date fields to provide more detail about how the value should be displayed in a web map popup window."},isEditable:{type:"boolean",description:"A Boolean determining whether users can edit this field. Not applicable to Arcade expressions."},label:{type:"string",description:"A string containing the field alias. This can be overridden by the web map author. Not applicable to Arcade expressions as title is used instead."},stringFieldOption:{type:"string",enum:["richtext","textarea","textbox"],description:"A string determining what type of input box editors see when editing the field. Applies only to string fields. Not applicable to Arcade expressions."},tooltip:{type:"string",description:"A string providing an editing hint for editors of the field. Not applicable to Arcade expressions."},visible:{type:"boolean",description:"A Boolean determining whether the field is visible in the popup window."}},title:"IFieldInfo"},IFieldFormat:{type:"object",properties:{dateFormat:{type:"string",enum:["dayShortMonthYear","longDate","longMonthDayYear","longMonthYear","shortDate","shortDateLE","shortDateLELongTime","shortDateLELongTime24","shortDateLEShortTime","shortDateLEShortTime24","shortDateLongTime","shortDateLongTime24","shortDateShortTime","shortDateShortTime24","shortMonthYear","year"],description:"A string used with date fields to specify how the date should appear in popup windows."},digitSeparator:{type:"boolean",description:"A Boolean used with numerical fields. A value of true allows the number to have a digit (or thousands) separator when the value appears in popup windows. Depending on the locale, this separator is a decimal point or a comma. A value of false means that no separator will be used."},places:{type:"number",description:"An integer used with numerical fields to specify the number of supported decimal places that should appear in popup windows. Any places beyond this value are rounded."}},title:"IFieldFormat"},IMediaInfo:{type:"object",properties:{caption:{description:"A string caption describing the media."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled. If the property does not exist, it's equivalent to having a value of 0. Only applicable when type is set to image."},title:{type:["string","null"],description:"A string title for the media."},type:{type:"string",enum:["barchart","columnchart","image","linechart","piechart"],description:"A string defining the type of media."},value:{anyOf:[{$ref:"#/definitions/IMediaInfoValue"},{type:"null"}],description:"A value object containing information about how the image should be retrieved or how the chart should be constructed."}},title:"IMediaInfo"},IMediaInfoValue:{type:"object",properties:{fields:{type:"array",items:{type:"string"},description:"Used with charts. An array of strings, with each string containing the name of a field to display in the chart."},linkURL:{type:"string",description:"Used with images. A string containing a URL to be launched in a browser when a user clicks the image."},normalizeField:{type:"string",description:"Used with charts. An optional string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the value of this field."},sourceURL:{type:"string",description:"Used with images. A string containing the URL to the image."},tooltipField:{type:"string",description:"String value indicating the tooltip for a chart specified from another field. This field is needed when related records are not sued. It is used for showing tooltips from another field in the same layer or related layer/table."}},title:"IMediaInfoValue"},IPopupElement:{type:"object",properties:{displayType:{type:"string",enum:["list","preview"],description:"This property applies to elements of type attachments. A string value indicating how to display the attachment. Possible values are, preview, and list. If list is specified, attachments show as links."},fieldInfos:{type:"array",items:{$ref:"#/definitions/IFieldInfo"},description:"This property applies to elements of type fields. It is an array of popupInfo.fieldInfo objects representing a field/value pair displayed as a table within the popupElement. If the fieldInfos property is not provided, the popupElement will display whatever is specified directly in the popupInfo.fieldInfos property."},mediaInfos:{type:"array",items:{$ref:"#/definitions/IMediaInfo"},description:"This property applies to elements of type media. An array of popupInfo.mediaInfo objects representing an image or chart for display. If no mediaInfos property is provided, the popupElement will display whatever is specified in the popupInfo.mediaInfo property."},text:{type:"string",description:"This property applies to elements of type text. This is string value indicating the text to be displayed within the popupElement. If no text property is provided, the popupElement will display whatever is specified in the popupInfo.description property."},type:{type:"string",enum:["attachments","fields","media","text"],description:"String value indicating which elements to use."}},title:"IPopupElement"},IRelatedRecordsInfo:{type:"object",properties:{orderByFields:{type:"array",items:{$ref:"#/definitions/IOrderByField"},description:"Array of orderByFields objects indicating the field display order for the related records and whether they should be sorted in ascending 'asc' or descending 'desc' order."},showRelatedRecords:{type:"boolean",description:"Required boolean value indicating whether to display related records. If true, client should let the user navigate to the related records. Defaults to true if the layer participates in a relationship AND the related layer/table has already been added to the map (either as an operationalLayer or as a table)."}},required:["showRelatedRecords"],title:"IRelatedRecordsInfo"},IOrderByField:{type:"object",properties:{field:{type:"string",description:"The attribute value of the field selected that will drive the sorting of related records."},order:{type:"string",enum:["asc","desc"],description:"Set the ascending or descending sort order of the returned related records."}},title:"IOrderByField"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},WebChartLabelBehavior:{type:"string",enum:["hide","rotate","stagger","wrap"],description:"Represents the different types of behaviors that can applied to a chart axis.",title:"WebChartLabelBehavior"},WebChartStackedKinds:{type:"string",enum:["sideBySide","stacked","stacked100"],title:"WebChartStackedKinds"},WebChartOrderSeriesBy:{type:"object",properties:{preferLabel:{type:"boolean",description:`When the value is set to true, we want to order the split-by series based on the series' names (alias, custom label, or description).
|
|
73
|
-
|
|
74
|
-
When the value is set to false, we want to order the split-by series based on the series' split-by values.`,default:!0},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order.",default:"WebChartSortOrderKinds.Ascending"}},description:"Order options for split-by series.",title:"WebChartOrderSeriesBy"},WebChartSortOrderKinds:{type:"string",enum:["ASC","DESC"],title:"WebChartSortOrderKinds"},WebChartDirectionalDataOrder:{type:"object",properties:{orderType:{type:"string",enum:["arcgis-charts-category","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-y-value"],description:"The type of order, eg by category, by mean, by median, or by y value."},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order, either ascending or descending."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.",default:!0}},required:["orderType","orderBy"],description:"A data order option that allows the items to be ordered either ascending or descending. This option can be used for the following types of order: by category, by mean, by median, and by y value.",title:"WebChartDirectionalDataOrder"},WebChartMultiAxesDataOrder:{type:"object",properties:{orderType:{type:"string",const:"arcgis-charts-multi-axes",description:"The type of order, which is two dimensional."},orderByX:{anyOf:[{type:"array",items:{type:"string"}},{$ref:"#/definitions/WebChartSortOrderKinds"}],description:"The direction of the order for the x axis. If the axis is categorical, this can also be a predefined list of labels."},orderByY:{anyOf:[{type:"array",items:{type:"string"}},{$ref:"#/definitions/WebChartSortOrderKinds"}],description:"The direction of the order for the y axis. If the axis is categorical, this can also be a predefined list of labels."}},required:["orderType"],description:`A data order option that allows the items to be ordered on both the x- and y-axes;
|
|
75
|
-
|
|
76
|
-
For each axis, the order can be either a direction (ascending or descending) for all axis types; or a predefined list of labels when the axis is categorical.`,title:"WebChartMultiAxesDataOrder"},WebChartPredefinedLabelsDataOrder:{type:"object",properties:{orderType:{type:"string",const:"arcgis-charts-category",description:"The type of order, which is by category."},orderBy:{type:"array",items:{type:"string"},description:"The predefined list of labels to order the data by.\n\nWhen the value of the `preferLabel` property is set to `false`, the `orderBy` list should be a list of coded domain values or field names; otherwise, it should be a list of domain descriptions, subtypes descriptions, or field aliases."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.\n\nWhen the value is set to `true` or undefined, the `orderBy` property should contain a list of labels like domain descriptions, subtypes descriptions, or field aliases. When the value is set to `false`, the `orderBy` property should contain a list of coded domain values or field names, in order for the data to be sorted correctly.",default:!0}},required:["orderType","orderBy"],description:"A data order option that allows the items to be ordered by `category` based on a predefined list of labels.",title:"WebChartPredefinedLabelsDataOrder"},WebGaugeChart:{type:"object",properties:{version:{type:"string",const:"25.0.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"}],description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart."},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:"`[255, 255, 255, 255]`"},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartGaugeAxis"},minItems:1,maxItems:1,description:"Array of one `WebChartGaugeAxis`."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:"Represents the way the labels should behave when the horizontal axis can't display them all.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.",default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all.
|
|
77
|
-
|
|
78
|
-
For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:`Represents an array of various chart series to be plot inside the chart.
|
|
79
|
-
|
|
80
|
-
Empty array is not allowed.`,minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
81
|
-
|
|
82
|
-
Only applicable to bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:`Renderer to use to style the series when the chart uses the color match mode.
|
|
83
|
-
|
|
84
|
-
Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
85
|
-
|
|
86
|
-
If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},orderByFields:{type:"array",items:{type:"string"},description:"The `orderByFields` to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for data and series."},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",default:50},startAngle:{type:["number","null"],description:"Represents where is the chart's starting point",default:-180},endAngle:{type:["number","null"],description:"Represents where is the chart's ending point. To be related with `startAngle`. If `endAngle-startAngle` is 360 the chart will render as a full circle.",default:180},subType:{$ref:"#/definitions/GaugeChartSubTypes",description:"The type of gauge, like `FeatureGauge` or `StatisticGauge`.\n\nWhen this property is not specified, it will be defaulted to `GaugeChartSubTypes.StatisticGauge`."}},required:["axes","series","type","version"],description:"JSON representation of the gauge chart.",title:"WebGaugeChart"},GaugeChartSubTypes:{type:"string",enum:["featureGauge","statisticGauge"],description:"Represents the different types of gauge charts.",title:"GaugeChartSubTypes"},WebBoxPlot:{type:"object",properties:{version:{type:"string",const:"25.0.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"}],description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart."},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:"`[255, 255, 255, 255]`"},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** chart axes accompanying the chart. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:"Represents the way the labels should behave when the horizontal axis can't display them all.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.",default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all.
|
|
87
|
-
|
|
88
|
-
For XY Chart only.`,default:"wrap"},series:{type:"array",items:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartLineChartSeries"}]},description:"The box plot series can be of type `boxPlotSeries` or `lineSeries`."},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
89
|
-
|
|
90
|
-
Only applicable to bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:`Renderer to use to style the series when the chart uses the color match mode.
|
|
91
|
-
|
|
92
|
-
Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
93
|
-
|
|
94
|
-
If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},orderByFields:{type:"array",items:{type:"string"},description:"The `orderByFields` to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for data and series."},showOutliers:{type:"boolean",description:"Whether to show the outliers on the chart."},standardizeValues:{type:"boolean",description:"Whether to standardize the values by calculating the series z-score."},showMean:{type:"boolean",description:`Whether to show the mean lines on the chart. Applies only if a split-by field is set.
|
|
95
|
-
|
|
96
|
-
Additionally the chart will render with that option enabled only if the the series array contains one box plot series and N lines series.`,default:!1}},required:["series","type","version"],description:"JSON representation of the box plot.",title:"WebBoxPlot"},WebRadarChart:{type:"object",properties:{version:{type:"string",const:"25.0.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"}],description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart."},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:"`[255, 255, 255, 255]`"},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",minItems:2,items:[{$ref:"#/definitions/WebChartRadarChartAxis"},{$ref:"#/definitions/WebChartAxis"}],maxItems:2,description:"Array of two axes, one specific to the radar chart and the other one common to all charts."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:"Represents the way the labels should behave when the horizontal axis can't display them all.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.",default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all.
|
|
97
|
-
|
|
98
|
-
For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartRadarChartSeries"},description:"The radar chart series.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
99
|
-
|
|
100
|
-
Only applicable to bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:`Renderer to use to style the series when the chart uses the color match mode.
|
|
101
|
-
|
|
102
|
-
Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
103
|
-
|
|
104
|
-
If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},orderByFields:{type:"array",items:{type:"string"},description:"The `orderByFields` to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for data and series."}},required:["axes","series","type","version"],description:"Gives a JSON representation of the radar chart object.",title:"WebRadarChart"},WebHeatChart:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. `7` as Sunday for US, `1` as Monday for France).\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series.\n- `null` and `zero` for bar series.",default:"null"},version:{type:"string",const:"25.0.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"}],description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart."},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:"`[255, 255, 255, 255]`"},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** chart axes accompanying the chart. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:"Represents the way the labels should behave when the horizontal axis can't display them all.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.",default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all.
|
|
105
|
-
|
|
106
|
-
For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartHeatChartSeries"},description:"The heat chart series.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
107
|
-
|
|
108
|
-
Only applicable to bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:`Renderer to use to style the series when the chart uses the color match mode.
|
|
109
|
-
|
|
110
|
-
Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{data:{$ref:"#/definitions/WebChartMultiAxesDataOrder",description:`How data for a chart should be ordered.
|
|
111
|
-
|
|
112
|
-
If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.`},series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
113
|
-
|
|
114
|
-
If not provided the series will be displayed as they are ordered in the config.`}},description:"Chart order options for data and series."},hideEmptyRowsAndColumns:{type:"boolean",description:"Whether to hide entire rows or columns that are empty (i.e. contain no valid data).",default:!1},viewType:{$ref:"#/definitions/WebChartHeatChartViewTypes",description:`The calendar view type for the heat chart.
|
|
115
|
-
|
|
116
|
-
**NOTE**: This property is only applicable to the calendar heat chart.`},includeLeapDay:{type:"boolean",description:"Whether to include leap day (Feb. 29th) in queries.",default:!1}},required:["series","type","version"],description:"Gives a JSON representation of the heat chart object.",title:"WebHeatChart"},'Omit<(structure-1066060463-57317-59060-1066060463-57242-59061-1066060463-53359-59063-1066060463-0-62116|undefined)937098756,("data"|"orderByFields")>':{$ref:"#/definitions/Pick%3C(structure-1066060463-57317-59060-1066060463-57242-59061-1066060463-53359-59063-1066060463-0-62116%7Cundefined)937098756%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",title:'Omit<(structure-1066060463-57317-59060-1066060463-57242-59061-1066060463-53359-59063-1066060463-0-62116|undefined)937098756,("data"|"orderByFields")>'},'Pick<(structure-1066060463-57317-59060-1066060463-57242-59061-1066060463-53359-59063-1066060463-0-62116|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>':{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
|
|
117
|
-
|
|
118
|
-
If not provided the series will be displayed as they are ordered in the config.`}},additionalProperties:!1,title:'Pick<(structure-1066060463-57317-59060-1066060463-57242-59061-1066060463-53359-59063-1066060463-0-62116|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>'},WebChartHeatChartViewTypes:{type:"string",enum:["SingleCalendarView","SequentialCalendarViews"],description:"Represents the different types of views that can be applied to a heat chart.",title:"WebChartHeatChartViewTypes"},RGBObject:{type:"object",properties:{r:{type:"number",description:"Red component of the color, in the range [0, 255]."},g:{type:"number",description:"Green component of the color, in the range [0, 255]."},b:{type:"number",description:"Blue component of the color, in the range [0, 255]."},a:{type:"number",description:"Alpha component of the color.",default:1}},required:["r","g","b"],description:"JSON representation of the color object.",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item.",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a box plot.",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a scatterplot trend line.",title:"ScatterplotTrendLineData"},WebChartScatterplotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},aggregated:{type:"boolean"}},required:["dataItems"],description:"JSON representation of the processed data for a scatterplot.",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:`Time interval information.
|
|
119
|
-
|
|
120
|
-
Only applicable to bar chart, line chart.`},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar chart, line chart, combo bar line chart, gauge, heat chart, pie chart and radar chart.",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Minimum value in the bin."},maxValue:{type:"number",description:"Maximum value in the bin."},symbol:{$ref:"#/definitions/WebChartDataItem",description:"Symbol associated with the bin."},isLastBin:{type:"boolean",description:"Whether this is the last bin."}},required:["count","minValue","maxValue"],description:"JSON representation of a histogram bin.",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points."},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)."},nulls:{type:"number",description:"Number of null entries in the pool of points."},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a histogram.",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","heatSeries","buffer","sizeScale","calendarDateParts"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartCalendarBinningOffsetUnits:{type:"string",enum:["seconds","minutes","hours","days"],description:"The temporal binning units for the calendar based binning offset",title:"WebChartCalendarBinningOffsetUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},WebChartOrderDataByTypes:{type:"string",enum:["arcgis-charts-y-value","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-category","arcgis-charts-multi-axes"],description:"The types of order assocated with chart data.",title:"WebChartOrderDataByTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"Represents a subset of the event payload carrying the chart's axes bounds.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list.",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType",description:"For feature layers only."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"For feature layers only."},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between `0` (no transparency) to `100` (completely transparent)."}},description:"Drawing info container for renderer, labeling etc.",title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],title:"IOpenStreetMapLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"};function pE(a){let t=a.lastIndexOf("/");return t!==-1?a.slice(t+1):a}async function dE(a){let t=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;return a.map(e=>{let i=e,r=e.dataPath.startsWith(".")?e.dataPath.substring(1):e.dataPath;switch(e.keyword){case Yn.Required:i={...e,message:ui(t.errors.requiredProperty,{dataPath:r,missingProperty:e.params.missingProperty})};break;case Yn.MinLength:i={...e,message:ui(t.errors.minLength,{dataPath:r,limit:e.params.limit.toString()})};break;case Yn.MinItems:i={...e,message:ui(t.errors.minItems,{dataPath:r,limit:e.params.limit.toString()})};break;case Yn.MaxItems:i={...e,message:ui(t.errors.maxItems,{dataPath:r,limit:e.params.limit.toString()})};break;case Yn.Pattern:e.params.pattern==="\\w+"&&(i={...e,message:ui(t.errors.whiteSpacePattern,{dataPath:r}),params:{}});break;case Yn.AdditionalProperties:i={...e,message:ui(t.errors.additionalProperty,{dataPath:r,additionalProperty:e.params.additionalProperty})};break;case Yn.Enum:i={...e,message:ui(t.errors.enumValues,{dataPath:r,allowedValues:e.params.allowedValues.join(", ")})};break;case Yn.AnyOf:{let n=[];e.schemaPath==="#/properties/legend/anyOf"&&(n=fl.definitions.WebChart.properties.legend.anyOf.map(s=>pE(s.$ref))),i={...e,params:n,message:ui(t.errors.anyOfValues,{dataPath:r,schemaOptions:n.join(", ")})};break}}return i})}function dd(a,t){return{...a,$ref:`#/definitions/${t}`}}async function cE(a){let t,e=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings,i=tt(a);try{await i.load()}catch{let r=i?.url??"",n=ur(i)?.portalItem?.id??"";t={keyword:Wi.LayerLoadFailure,message:ui(e.errors.layerLoadFailure,{url:r,portalItemId:n}),params:{url:r,portalItemId:n}}}return t}function fE(){let a=new QS.default({allErrors:!0});return async t=>{let e=[],i=Ae(t?.series),r=fl;switch(i){case $.GaugeSeries:r=dd(fl,"WebGaugeChart");break;case $.BoxPlotSeries:r=dd(fl,"WebBoxPlot");break;case $.RadarSeries:r=dd(fl,"WebRadarChart");break;default:r=dd(fl,"WebChart");break}let n=a.compile(r);return n(t),n.errors!==null&&n.errors!==void 0&&(e=await dE(n.errors)),e}}var mE=fE();async function yE(a){let{seriesConfigs:t,queryObject:e,allowUsingObjectIdStat:i}=a,r=[],n=e?Tr(e):void 0,s=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;for(let o=0;o<t.length;o+=1){let l=t[o].query?.outStatistics;if(l!==void 0)for(let u=0;u<l.length;u+=1){let h=l[u],p=FC(h.onStatisticField,n);if(p&&!(p.type===wt.OID&&i||bl(p))&&h.statisticType!==ie.Count){let d=`series[${o}].query.outStatistics[${u}]`;r.push({keyword:CC.NonNumericAggregation,message:ui(s.errors.nonNumericAggregation,{dataPath:d}),dataPath:d,params:{fieldName:h.onStatisticField,fieldType:p.type,aggregationRequested:h.statisticType}})}}}return r}async function gE(a){let t=[],e=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings;if(a!==void 0&&a.series.length>1){let i=new Set,r=0;a.series.forEach((n,s)=>{if(i.add(n.id),i.size===r){let o=`series[${s}].id`;t.push({keyword:CC.DuplicateSeriesID,message:ui(e.errors.duplicateSeriesID,{dataPath:o,seriesID:n.id,seriesName:n.name}),dataPath:o,params:{seriesId:n.id,seriesName:n.name}})}else r+=1})}return t}function vE(a){let t=new Set,e=fn(a);if(e){let i=Ae(a.series),r=Re(a.series);i===$.GaugeSeries&&!oy(a)||r===A.PieFromFields||r===A.BarAndLineFromFields||r===A.BoxPlotMonoField||r===A.BoxPlotMultiFields||r===A.BoxPlotMonoFieldAndSplitBy||r===A.BoxPlotMultiFieldsAndSplitBy||t.add(e.x);let n=i===$.ScatterSeries||i===$.BoxPlotSeries||i===$.HeatSeries||r===A.BarAndLineNoAggregation||r===A.BarAndLineSplitByNoAggregation||r===A.PieNoAggregation,s=[Pl,Zi,wD,ba,PD,It.outStatistics.outStatisticFieldName??""],o=[];or(a)?o=Ad({showMean:a.showMean,seriesConfig:a.series}):o=a.series.map(u=>"y"in u?u.y:void 0).filter(u=>u!==void 0).flat(),n?o.forEach(u=>t.add(u)):s.push(...o),a.series.forEach(u=>{let{query:h}=u;h&&(un(h.where)||t.add(Ji(h.where)),h.groupByFieldsForStatistics&&h.groupByFieldsForStatistics.forEach(p=>t.add(p)),h.outStatistics&&h.outStatistics.forEach(p=>t.add(p.onStatisticField)))});let l=r===A.BarAndLineNoAggregation||r===A.BarAndLineSplitByNoAggregation||r===A.PieNoAggregation;if(a.orderOptions?.orderByFields&&l&&a.orderOptions.orderByFields.forEach(u=>{let h=GF(u).fieldToSort;t.add(h)}),i===$.GaugeSeries&&a.axes?.[0]!==void 0){let u=a.axes?.[0];u&&"minimumFromField"in u&&typeof u.minimumFromField=="string"&&t.add(u.minimumFromField),u&&"maximumFromField"in u&&typeof u.maximumFromField=="string"&&t.add(u.maximumFromField)}s.forEach(u=>{t.delete(u)})}return Array.from(t.values()).filter(i=>!Ci(i))}async function bE(a,t){let e,i=(await oa(Ir(document.documentElement).t9nLocale,na("./assets/common/t9n"),"messages.")).errorStrings,r=Tr(t),n=vE(a).filter(s=>!FC(s,r));if(n.length>0){let s=n.join(", ");e={keyword:Wi.LayerFieldsNotFound,message:ui(i.errors.layerFieldsNotFound,{fieldNames:s}),params:s}}return e}async function xE(a){let{input:t,queryObject:e,allowUsingObjectIdStat:i}=a,r=[];if(e!==void 0){let n=await yE({seriesConfigs:t.series,queryObject:e,allowUsingObjectIdStat:i});r=r.concat(n)}return r=r.concat(await gE(t)),r}async function SE(a,t){let e=[];if(a!==void 0){let i=await cE(a);if(i!==void 0)e=e.concat(i);else if(t!==void 0){let r=await bE(t,a);r!==void 0&&(e=e.concat(r))}}return e}async function Pne(a){let{input:t,queryObject:e,allowUsingObjectIdStat:i}=a,r;if(L1(t?.version).versionStatus===mn.Newer)r={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let n=await mE(t),s=[],o=[];t!==void 0&&n.length===0&&(o=await SE(e,t),o.length===0&&(s=await xE({input:t,queryObject:e,allowUsingObjectIdStat:i}))),r={valid:n.length===0&&s.length===0&&o.length===0,schemaErrors:n,customErrors:o,warnings:s}}return r}function _ne(a){let t=Ae(a?.series),e=!1;switch(t){case $.HistogramSeries:case $.GaugeSeries:{e=(a?.series?.[0]?.x?.trim()?.length??0)===0;break}case $.ScatterSeries:{let i=a?.series;e=(i?.[0]?.x?.length??0)===0||(i?.[0]?.y?.length??0)===0;break}case $.PieSeries:{let i=a?.series;Re(i)===A.PieFromFields?e=(i?.[0]?.query?.outStatistics?.length??0)===0:e=(i?.[0]?.x?.length??0)===0||i?.[0]?.x===Zi;break}case $.BoxPlotSeries:{let i=a?.series;e=[i?.[0]?.y].flat().length===0||i?.[0]?.y==="";break}case $.ComboLineAndBarSeries:case $.RadarSeries:case $.BarSeries:case $.LineSeries:{let i=a?.series;Re(i)===A.BarAndLineFromFields?e=(i?.[0]?.query?.outStatistics?.length??0)===0:e=(i?.[0]?.x?.trim()?.length??0)===0;break}case $.HeatSeries:{let i=a?.series,r=Ci(i?.[0]?.x)||Ci(i?.[0]?.y),n=a!==void 0&&RC(a)?!1:i?.[0]?.xTemporalBinning===void 0;e=r||n;break}}return e}async function Lm(a){let{queryObject:t,queryConfig:e,category:i,splitByField:r,chartLimits:n,abortKey:s}=a,o=r!==void 0,l=i!==Pl?[i]:[];o&&l.push(r);let u=tt(t),{idField:h,isTraditionalTypeOID:p}=aa(u),d=p?h:"*",c={...e,groupByFieldsForStatistics:Array.from(new Set(l)),outStatistics:[{statisticType:ie.Count,onStatisticField:d,outStatisticFieldName:`${ie.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},f=await ra({queryObject:t,featureCount:1,queryConfig:c,abortKey:s});return Array.from(new Set(f.map(m=>m.attributes[o?r:i]))).sort((m,y)=>typeof m=="string"&&typeof y=="string"?m.localeCompare(y):Number(m)-Number(y))}var GS=[{unit:Le.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:Le.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:Le.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:Le.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:Le.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],CE="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";function wE(a,t){let e=!0;if(t?.trim()){let i={};Object.entries(a).forEach(([s,o])=>{i[s.toUpperCase()]=o});let r=t.trim(),n=r.match(/^(\w+)\s+IS\s+(NOT\s+)?NULL$/iu);if(n){let[s,o,l]=n,u=i[o.toUpperCase()],h=u==null;e=l?!h:h}else{let s=r.match(/^(\w+)\s*(=|!=|<>|>|<|>=|<=)\s*(.+)$/iu);if(s){let[o,l,u,h]=s,p=l.toUpperCase();if(!(p in i))e=!1;else{let d=i[p],c=h.trim().replace(/^['"]|['"]$/gu,"");switch(typeof d=="number"?c=Number(c):typeof d=="boolean"&&(c=c.toLowerCase()==="true"),u){case"=":e=d===c;break;case"!=":case"<>":e=d!==c;break;case">":e=d>c;break;case"<":e=d<c;break;case">=":e=d>=c;break;case"<=":e=d<=c;break;default:e=!0}}}}}return e}function PE(a){let{features:t,aggregationType:e,onField:i}=a,r;if(!i)e==="count"&&(r=t.length);else switch(e){case"count":{i==="*"?r=t.length:r=t.filter(n=>n[i]!==null&&n[i]!==void 0).length;break}case"sum":{r=t.reduce((n,s)=>{let o=s[i];return n+(typeof o=="number"?o:0)},0);break}case"avg":{let n=0,s=0;t.forEach(o=>{let l=o[i];typeof l=="number"&&(n+=l,s++)}),r=s>0?n/s:0;break}case"min":{let n=t.map(s=>s[i]).filter(s=>typeof s=="number"&&s!==null&&s!==void 0);r=n.length>0?Math.min(...n):void 0;break}case"max":{let n=t.map(s=>s[i]).filter(s=>typeof s=="number"&&s!==null&&s!==void 0);r=n.length>0?Math.max(...n):void 0;break}case"percentile-continuous":{let n=[...t.map(o=>o[i]).filter(o=>typeof o=="number"&&o!==null&&o!==void 0)].sort((o,l)=>o-l),s=Math.floor(n.length/2);r=n.length%2!==0?n[s]:(n[s-1]+n[s])/2;break}}return r}function YS(a,t){let e;return a==null&&t?e={groupKey:V.nullValue,display:V.nullValue,original:null}:e={groupKey:a,display:a,original:a},e}async function _E(a){let{layer:t,geometry:e,abortKey:i}=a;t.loaded||await t.load();let r=await t.generateRasterInfo(t.rasterFunction),n=_l(e)??t.fullExtent,s=r.attributeTable;return n instanceof XS&&n.equals(t.fullExtent)||(s=await oD(t,{geometry:n},{signal:i!==void 0?Qn.get(i)?.signal:void 0})),s}async function TE(a){let{chartConfig:t,queryConfig:e,queryObject:i,abortKey:r}=a,n;if(i===void 0)throw new Error("QueryObject is undefined!");let s=tt(i);if(!Vi(s))throw new ki(Wi.LayerNotSupported);let o=await _E({layer:s,geometry:e.geometry,abortKey:r}),l=o?.features;if(!o||!l)n={valid:!1,invalidType:ut.BadData};else{let u=t.series;if(!u||u.length===0||l.length===0)n={valid:!0};else{let h=e.groupByFieldsForStatistics?.[0]??"",p=u.some(f=>f.query?.fetchNullValues),d=new Map;for(let f of l){let{groupKey:m}=YS(f.attributes[h],p);m===V.nullValue&&!p||(d.has(m)||d.set(m,[]),d.get(m).push(f.attributes))}let c=[];d.forEach(f=>{let m={},y=f[0][h],{display:g,original:v}=YS(y,p);m[h]=g,m[V.xAxisField]=g,m[V.originalCategoryValue]=v,u.forEach(b=>{let P=b.query?.outStatistics?.[0];if(!P){let{name:N}=b;m[N]=f[0][N];return}let w=f,T=b.query?.where;T&&(w=f.filter(N=>wE(N,T)));let F=P.statisticType,D=P.onStatisticField,O=P.outStatisticFieldName;m[O]=PE({features:w,aggregationType:F,onField:D})}),c.push(m)}),n={valid:!0,data:{dataItems:c}}}}return n}async function Tne(a){let{layer:t,category:e,splitByField:i}=a,r=(await t.generateRasterInfo(t.rasterFunction))?.attributeTable?.features,n=i!==void 0;return Array.from(new Set(r?.map(s=>s.attributes[n?i:e]))).sort((s,o)=>typeof s=="string"&&typeof o=="string"?s.localeCompare(o):Number(s)-Number(o))}var $E=[...Nd,"ar-u-nu-latn","en-AU","en-GB","es-ES","es-MX","de-CH","de-DE","de-AT","fr-CA","it-CH","it-IT"];function $ne(a){let{t9nLocale:t}=Ir(a??document.documentElement),e=aw(a??document.documentElement),i=vy(a??document.documentElement)==="rtl";return{locale:t,formatLocale:e,rtl:i}}function One(a){let t;return a==="unknown"?t="UTC":a!==void 0&&a!=="system"&&(t=a),t}function Dne(a,t){let e={year:"numeric",month:"2-digit",day:"2-digit",timeZone:t};return new Intl.DateTimeFormat("en-CA",e).format(a)}function Fne(a,t){let e={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:t};return new Intl.DateTimeFormat("en-US",e).format(a)}function Ine(a,t){let[,e,,,,i]=1111.1.toLocaleString(t),r=a.replace(e,"").replace(i,".");return Number.parseFloat(r)}function OE(a){let t=Array.from(Nd);return $E.includes(a)&&!t.includes(a)}function aw(a){let{lang:t,t9nLocale:e}=Ir(a);return OE(t)?t:e}return{a:ct,b:xe,c:W,d:ic,e:Ry,f:_e,g:oe,h:ke,i:Ce,j:Pc,k:Mt,l:Eo,m:Ia,n:ne,o:te,p:Rt,q:xi,r:Ea,s:Nh,t:On,u:Dn,v:Fg,w:mu,x:Fn,y:Ro,z:jo,A:Ai,B:Ds,C:$e,D:tf,E:ft,F:xr,G:rf,H:$t,I:Qr,J:Xi,K:Ls,L:qo,M:kn,N:Uh,O:Yh,P:Mg,Q:Mr,R:bu,S:Go,T:Yo,U:nr,V:wr,W:Cu,X:ep,Y:Ng,Z:tp,_:ip,$:Jo,aa:el,ba:NP,ca:RP,da:jP,ea:lt,fa:pn,ga:Zi,ha:ba,ia:wD,ja:PD,ka:nn,la:TS,ma:_D,na:ja,oa:$ie,pa:Qi,qa:Oie,ra:sn,sa:Us,ta:Die,ua:Fie,va:ED,wa:kD,xa:Iie,ya:pt,za:It,Aa:eC,Ba:sr,Ca:ND,Da:Aie,Ea:Lie,Fa:on,Ga:Pl,Ha:ht,Ia:Eie,Ja:kie,Ka:Vie,La:Mie,Ma:Nie,Na:Rie,Oa:jie,Pa:Bie,Qa:Pr,Ra:rC,Sa:Wie,Ta:_d,Ua:Lt,Va:aC,Wa:St,Xa:Zu,Ya:jD,Za:qie,_a:Em,$a:zie,ab:Hie,bb:is,cb:ud,db:dn,eb:Uie,fb:BD,gb:WD,hb:qD,ib:Gie,jb:zD,kb:HD,lb:Ys,mb:GD,nb:XD,ob:Yie,pb:KD,qb:Xie,rb:Kie,sb:ZD,tb:Zie,ub:Qie,vb:zu,wb:Jie,xb:ere,yb:tre,zb:ire,Ab:rre,Bb:are,Cb:nre,Db:sre,Eb:QD,Fb:JD,Gb:eF,Hb:ore,Ib:Td,Jb:lre,Kb:ure,Lb:tF,Mb:hre,Nb:iF,Ob:rF,Pb:aF,Qb:pre,Rb:dre,Sb:V,Tb:cre,Ub:fre,Vb:mre,Wb:yre,Xb:gre,Yb:vre,Zb:sF,_b:oF,$b:gl,ac:Hu,bc:uF,cc:nC,dc:$S,ec:bre,fc:yF,gc:xre,hc:Sre,ic:gF,jc:xF,kc:Cre,lc:wre,mc:Pre,nc:_re,oc:Tre,pc:$re,qc:Ore,rc:Dre,sc:Fre,tc:Ire,uc:Are,vc:Lre,wc:Ere,xc:kre,yc:Vre,zc:Mre,Ac:Nre,Bc:km,Cc:Rre,Dc:wF,Ec:xd,Fc:jre,Gc:Bre,Hc:Wre,Ic:qre,Jc:Ki,Kc:zre,Lc:Kn,Mc:DF,Nc:FF,Oc:AF,Pc:Hre,Qc:Km,Rc:VF,Sc:MF,Tc:NF,Uc:RF,Vc:Ure,Wc:ki,Xc:Wi,Yc:A,Zc:Gre,_c:Zm,$c:OS,ad:Yre,bd:Qm,cd:dC,dd:Sd,ed:Xre,fd:Kre,gd:HF,hd:Ci,id:Zre,jd:Qre,kd:Jre,ld:eae,md:UF,nd:GF,od:tae,pd:iae,qd:rae,rd:aae,sd:Qn,td:QF,ud:Vi,vd:JF,wd:Cd,xd:nae,yd:Ra,zd:ur,Ad:Gu,Bd:sae,Cd:tt,Dd:oae,Ed:ra,Fd:lae,Gd:pI,Hd:dI,Id:Xt,Jd:CC,Kd:ut,Ld:uae,Md:zI,Nd:hae,Od:TC,Pd:pae,Qd:DC,Rd:dae,Sd:cae,Td:Tr,Ud:FC,Vd:aa,Wd:bl,Xd:ZI,Yd:fae,Zd:mae,_d:yae,$d:QI,ae:gae,be:FS,ce:t1,de:i1,ee:vae,fe:AC,ge:bae,he:xl,ie:or,je:Xu,ke:xae,le:Sae,me:s1,ne:Cae,oe:LS,pe:wae,qe:Pae,re:_ae,se:c1,te:Tae,ue:ty,ve:f1,we:m1,xe:kC,ye:C1,ze:$ae,Ae:Oae,Be:Dae,Ce:Wm,De:Sl,Ee:O1,Fe:Fae,Ge:Te,He:D1,Ie:F1,Je:L1,Ke:fn,Le:Iae,Me:Ji,Ne:_r,Oe:un,Pe:Re,Qe:as,Re:xa,Se:N1,Te:VS,Ue:G1,Ve:K1,We:Aae,Xe:Lae,Ye:Eae,Ze:kae,_e:Vae,$e:Z1,af:Mae,bf:Nae,cf:Rae,df:jae,ef:Bae,ff:Wae,gf:qae,hf:zae,if:Hae,jf:J1,kf:Uae,lf:Gae,mf:Yae,nf:Xae,of:Kae,pf:Zae,qf:Qae,rf:Jae,sf:mA,tf:RC,uf:ene,vf:ry,wf:tne,xf:RA,yf:ine,zf:rne,Af:Ku,Bf:JC,Cf:oy,Df:Id,Ef:iw,Ff:Oi,Gf:Am,Hf:lr,If:KL,Jf:ane,Kf:QL,Lf:WS,Mf:eE,Nf:nne,Of:rE,Pf:aE,Qf:zS,Rf:sne,Sf:sE,Tf:one,Uf:lne,Vf:une,Wf:HS,Xf:uE,Yf:US,Zf:hne,_f:pne,$f:hE,ag:dne,bg:cne,cg:fne,dg:mne,eg:yne,fg:gne,gg:vne,hg:bne,ig:xne,jg:Sne,kg:Cne,lg:wne,mg:Pne,ng:_ne,og:Lm,pg:Tne,qg:$ne,rg:One,sg:Dne,tg:Fne,ug:Ine,vg:aw}},"applications/Components/imageryUtils","geometry/Extent","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","layers/FeatureLayer","layers/support/CodedValueDomain","layers/support/Field","layers/support/fieldUtils","portal/Portal","renderers/support/jsonUtils","request","rest/support/FeatureSet","Graphic","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","intl","core/sql","core/promiseUtils","layers/ImageryLayer","layers/ImageryTileLayer","geometry/Point")
|