@arcgis/map-components 5.2.0-next.140 → 5.2.0-next.141
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/{WUTCKBNC.js → 24DOFGMG.js} +2 -2
- package/dist/cdn/{VZ6UFS6H.js → 26LWK3XB.js} +2 -2
- package/dist/cdn/{SLSGW7B6.js → 27GJE7OY.js} +2 -2
- package/dist/cdn/{A6H4JIO7.js → 27MP6TEF.js} +2 -2
- package/dist/cdn/{NY7RHFLZ.js → 2AQYGR7K.js} +2 -2
- package/dist/cdn/{IDIAWXUO.js → 2COOBXHG.js} +2 -2
- package/dist/cdn/{BI2SI2HK.js → 2CWTV6TC.js} +2 -2
- package/dist/cdn/{NJPPZJ3L.js → 2DKTF2EL.js} +2 -2
- package/dist/cdn/{PBYHBRG7.js → 2GDB3C5I.js} +2 -2
- package/dist/cdn/{IT52WNCR.js → 2KP3MSHV.js} +3 -3
- package/dist/cdn/{2F4IGA4W.js → 3A3DGDW5.js} +2 -2
- package/dist/cdn/{NFCFPU7K.js → 3A7S62FX.js} +2 -2
- package/dist/cdn/{TKILR2SM.js → 3DUIQTNG.js} +2 -2
- package/dist/cdn/{VDKEQI3H.js → 3E56Q4ZY.js} +2 -2
- package/dist/cdn/{62IE7RFR.js → 3HS3DM5B.js} +2 -2
- package/dist/cdn/{WNWTWPV6.js → 3JCF73F4.js} +2 -2
- package/dist/cdn/{L2F4HQYY.js → 3JRPMLOZ.js} +2 -2
- package/dist/cdn/3KZAH5OY.js +2 -0
- package/dist/cdn/{RZGWZ2FJ.js → 3L2J4JFP.js} +2 -2
- package/dist/cdn/{BHCAFGIA.js → 3LOGBSQP.js} +1 -1
- package/dist/cdn/{FSBLGH6E.js → 3MQPSWL6.js} +2 -2
- package/dist/cdn/{EOAVDNBZ.js → 3NL42TBJ.js} +2 -2
- package/dist/cdn/{MICLX7QW.js → 3O4SVNIK.js} +2 -2
- package/dist/cdn/{QWIDIEXY.js → 3PVLBFNC.js} +2 -2
- package/dist/cdn/{DYWCAORU.js → 3SG4AC5C.js} +2 -2
- package/dist/cdn/{F5JYYT42.js → 3WTBTYMS.js} +1 -1
- package/dist/cdn/{ZDMSSGIM.js → 3XEPXV4Q.js} +2 -2
- package/dist/cdn/{OAYNZFL2.js → 3YXCLF3K.js} +2 -2
- package/dist/cdn/{Y77AVOAH.js → 3ZXNGXHC.js} +1 -1
- package/dist/cdn/{UVJWDKLK.js → 43IOCYG5.js} +2 -2
- package/dist/cdn/{MTFIK3F4.js → 45JO7F4Y.js} +2 -2
- package/dist/cdn/{3ONY25MG.js → 4F2ZWXO2.js} +2 -2
- package/dist/cdn/{PGK2ZJCX.js → 4GRP4KX3.js} +2 -2
- package/dist/cdn/{SOZWCZ7A.js → 4MJJOPAL.js} +1 -1
- package/dist/cdn/{J3FRSWZD.js → 4PGC5LTJ.js} +2 -2
- package/dist/cdn/{TMTFZSJS.js → 4RGFCQOB.js} +1 -1
- package/dist/cdn/{ILQDA7LL.js → 4RMVG2NH.js} +2 -2
- package/dist/cdn/{DK7HXJSX.js → 4T2A7PAO.js} +2 -2
- package/dist/cdn/{53OXTCE6.js → 4TTVVGYW.js} +2 -2
- package/dist/cdn/{RVIHQZ44.js → 4W35GLNO.js} +2 -2
- package/dist/cdn/{RGTUSH6U.js → 4WAV5GOL.js} +2 -2
- package/dist/cdn/{TJQ3GP5V.js → 4WP4DUBT.js} +2 -2
- package/dist/cdn/{SLAFIIZU.js → 4WXSFT6G.js} +2 -2
- package/dist/cdn/{GII4POXM.js → 54CLZESW.js} +2 -2
- package/dist/cdn/{SAOLD6MH.js → 55AW5TTI.js} +2 -2
- package/dist/cdn/{A4VK42OW.js → 5763ZV75.js} +2 -2
- package/dist/cdn/{SMVLPJDD.js → 5CER2N5T.js} +2 -2
- package/dist/cdn/5K54VOLZ.js +2 -0
- package/dist/cdn/{CKZBNHMD.js → 5L5UYV3H.js} +1 -1
- package/dist/cdn/{D7FBQECJ.js → 5M56ZA46.js} +2 -2
- package/dist/cdn/{KVYBIOH5.js → 5SL2HI4G.js} +2 -2
- package/dist/cdn/{5TKSFDKY.js → 5SLLYIWJ.js} +2 -2
- package/dist/cdn/{K7ELALW4.js → 5UOXHOVU.js} +2 -2
- package/dist/cdn/{WS46QSWM.js → 5V2DO6ZW.js} +2 -2
- package/dist/cdn/{OAMPGCZF.js → 5XVK5ZBK.js} +2 -2
- package/dist/cdn/{2BGZVOT3.js → 63FA3UEL.js} +2 -2
- package/dist/cdn/{5DY7GHBN.js → 6BLFYSDN.js} +2 -2
- package/dist/cdn/{R5QMO5FY.js → 6GFUBVBL.js} +2 -2
- package/dist/cdn/{QT7GRA34.js → 6IVEAPNI.js} +2 -2
- package/dist/cdn/{FQSHLYKX.js → 6J55YK5V.js} +2 -2
- package/dist/cdn/{MQYTZX24.js → 6NWR2Z4F.js} +2 -2
- package/dist/cdn/{EPH5BN6X.js → 7DAQGPGD.js} +2 -2
- package/dist/cdn/{OPNJGHML.js → 7DDCU3NB.js} +2 -2
- package/dist/cdn/{FHHVGI4H.js → 7EQZKGJN.js} +2 -2
- package/dist/cdn/{SQEKT3GV.js → 7FVXPOAG.js} +2 -2
- package/dist/cdn/{PGSBUAGV.js → 7MOL5GJB.js} +2 -2
- package/dist/cdn/{366GLQ5R.js → 7N4V2IN6.js} +1 -1
- package/dist/cdn/{44CQCIZB.js → 7UWE25UH.js} +2 -2
- package/dist/cdn/{QPSAD5DG.js → 7V7IKYJG.js} +2 -2
- package/dist/cdn/{MDWBYUFG.js → 7VVOJSSE.js} +2 -2
- package/dist/cdn/{GHVT7W4O.js → A4U2PDJP.js} +2 -2
- package/dist/cdn/{S7ORGB5E.js → AAMRTS35.js} +2 -2
- package/dist/cdn/{RVEUCXT4.js → AAUN23S6.js} +2 -2
- package/dist/cdn/{ZFO3PVZQ.js → AENNGCAE.js} +2 -2
- package/dist/cdn/{FDJGQHUA.js → AI5PXN2E.js} +2 -2
- package/dist/cdn/{L46JLXJT.js → ALROLX35.js} +2 -2
- package/dist/cdn/AN3BGKZP.js +2 -0
- package/dist/cdn/{PPAFKBPN.js → AW3C3DKA.js} +2 -2
- package/dist/cdn/{YYA4ZFSW.js → AWQXKVLZ.js} +2 -2
- package/dist/cdn/{2DAGREZP.js → AYJQLWX4.js} +2 -2
- package/dist/cdn/{N3DTZRST.js → AYNGSZAL.js} +2 -2
- package/dist/cdn/{R5TXJ5FN.js → AZ73DBU3.js} +2 -2
- package/dist/cdn/{SHU4AE2X.js → B476G3EX.js} +2 -2
- package/dist/cdn/{HY2JY2TT.js → B4CANXID.js} +2 -2
- package/dist/cdn/{YDZZPLVB.js → B5GJ5JEW.js} +2 -2
- package/dist/cdn/{FXUZU52U.js → BAOWXZTE.js} +1 -1
- package/dist/cdn/{DSD2SY73.js → BEFZSVBT.js} +2 -2
- package/dist/cdn/{UZLEFNJL.js → BIU6VS3K.js} +1 -1
- package/dist/cdn/{VLPNB2Z3.js → BIWQEPK4.js} +2 -2
- package/dist/cdn/{NQOS7L2J.js → BKVCAAPF.js} +2 -2
- package/dist/cdn/{Q4L65YE5.js → BLYJE76S.js} +2 -2
- package/dist/cdn/{MUNSXJ5X.js → BQKVSKYK.js} +2 -2
- package/dist/cdn/{CKS5ACAB.js → BSTO7TGD.js} +2 -2
- package/dist/cdn/{YQV2OMBS.js → CESFJ6AD.js} +2 -2
- package/dist/cdn/{NB7O2TXG.js → CEUIFOR6.js} +1 -1
- package/dist/cdn/{AS4FG6IT.js → CF4OY56S.js} +2 -2
- package/dist/cdn/{E54VGGFM.js → CGN2BQTU.js} +2 -2
- package/dist/cdn/{4432P7Z5.js → CIUI5B52.js} +2 -2
- package/dist/cdn/{TDZIH5OK.js → CJ4KIA26.js} +2 -2
- package/dist/cdn/{QOIURU47.js → CL2NYK7A.js} +2 -2
- package/dist/cdn/{2ZMXUAQZ.js → COKGOKO2.js} +2 -2
- package/dist/cdn/{6UYEO5Q7.js → CORNSRXU.js} +2 -2
- package/dist/cdn/{BQBWXR6P.js → CQQM24VF.js} +2 -2
- package/dist/cdn/{VDEMMP33.js → CROCDACG.js} +2 -2
- package/dist/cdn/{YCHVPSSP.js → CUF7GCDT.js} +2 -2
- package/dist/cdn/{3C6FN5WT.js → CX45KI3X.js} +2 -2
- package/dist/cdn/{GJKFDTVX.js → CZOM5NWO.js} +2 -2
- package/dist/cdn/{PCOXR45L.js → D3LYSFXK.js} +2 -2
- package/dist/cdn/{XHOI3WNI.js → D47546HM.js} +1 -1
- package/dist/cdn/DBA7NSTP.js +2 -0
- package/dist/cdn/{ND7BSIVO.js → DJTW52JH.js} +1 -1
- package/dist/cdn/{4XERPOOU.js → DL57EVZ4.js} +2 -2
- package/dist/cdn/{SG55TVJ5.js → DMYAI77Y.js} +2 -2
- package/dist/cdn/{26URLKXD.js → DMYMCGHJ.js} +2 -2
- package/dist/cdn/{4WKWYFIH.js → DOEKV7G3.js} +2 -2
- package/dist/cdn/{PZSKFFTG.js → DPPZZO5W.js} +2 -2
- package/dist/cdn/{RUYAWRPV.js → DSDPDMLP.js} +2 -2
- package/dist/cdn/{DDSIQO4G.js → E4NTQBM3.js} +2 -2
- package/dist/cdn/{YTLRTUMD.js → E53ARLWV.js} +2 -2
- package/dist/cdn/{U5DIWFPP.js → E5JCJOB3.js} +2 -2
- package/dist/cdn/{DN2EFA4T.js → EAM45WZP.js} +2 -2
- package/dist/cdn/{7DFCYS72.js → ECNRW3D5.js} +2 -2
- package/dist/cdn/{7DM32WQP.js → EDTGV4YF.js} +2 -2
- package/dist/cdn/{Z6AVJWLP.js → EESGZV4K.js} +2 -2
- package/dist/cdn/{3UMLR76Y.js → EKR2SAT2.js} +2 -2
- package/dist/cdn/{67PT3A4A.js → ELYDZHP5.js} +2 -2
- package/dist/cdn/{ZIBQTNB6.js → EOTKZ4F3.js} +2 -2
- package/dist/cdn/EZCNI254.js +2 -0
- package/dist/cdn/{COCGWEUR.js → F46CTQWP.js} +2 -2
- package/dist/cdn/F4O7DFPZ.js +2 -0
- package/dist/cdn/{A3DPMZWE.js → F5WKI5HZ.js} +2 -2
- package/dist/cdn/{ZCFWKPXL.js → FCNNRX3Q.js} +1 -1
- package/dist/cdn/{5RAIBYCT.js → FFJCCMDZ.js} +2 -2
- package/dist/cdn/{EPAR65ZP.js → FMBY3L4S.js} +2 -2
- package/dist/cdn/{4KQA2GRX.js → FMIWBKT4.js} +2 -2
- package/dist/cdn/{EV7IIQBP.js → FNSGB45I.js} +2 -2
- package/dist/cdn/FWXRRSBS.js +2 -0
- package/dist/cdn/{ALVAGE57.js → FZWFKZLW.js} +2 -2
- package/dist/cdn/{ZAUG5MSY.js → GF7RZ4IH.js} +2 -2
- package/dist/cdn/{PMRI66RQ.js → GIOUZTHM.js} +2 -2
- package/dist/cdn/{KPUEQZ7O.js → GP3PLD2F.js} +2 -2
- package/dist/cdn/{FACY5XHG.js → GQ6SYNZS.js} +2 -2
- package/dist/cdn/{MCMACXJV.js → GQXUCZYM.js} +2 -2
- package/dist/cdn/{X7BOBKIH.js → GT6FFZHJ.js} +2 -2
- package/dist/cdn/{QTB5YKHB.js → GTRQNPQ7.js} +2 -2
- package/dist/cdn/{GDLDEHUJ.js → GU3M4JMW.js} +1 -1
- package/dist/cdn/{3GHQZCMV.js → GV3IXBBT.js} +2 -2
- package/dist/cdn/{FZAQZSRA.js → GVZKVOM7.js} +2 -2
- package/dist/cdn/{6VO7G2UX.js → GXRPNW37.js} +2 -2
- package/dist/cdn/{B32GNMHD.js → H4FH2RBM.js} +2 -2
- package/dist/cdn/{OUC5HWPQ.js → H5AYEQ6D.js} +2 -2
- package/dist/cdn/{TAVTDQ6S.js → H6RQVSYM.js} +1 -1
- package/dist/cdn/{K7XSWKZ2.js → H77SMV46.js} +2 -2
- package/dist/cdn/{GUZYCRYS.js → HCN3UC4W.js} +2 -2
- package/dist/cdn/{SK5CTCTZ.js → HH5GEJCC.js} +2 -2
- package/dist/cdn/{KBA5OIES.js → HLGU3U73.js} +2 -2
- package/dist/cdn/{P2I63WVL.js → HX4CDWS4.js} +2 -2
- package/dist/cdn/{MWIDHMQZ.js → HX4CSRAB.js} +2 -2
- package/dist/cdn/{ESOCZAMZ.js → HZX7MSQG.js} +2 -2
- package/dist/cdn/{K23R26AN.js → I23AZWQL.js} +2 -2
- package/dist/cdn/{PGXNWDD3.js → I2A6UYGZ.js} +2 -2
- package/dist/cdn/{AO6ONNIJ.js → I5ZESLWO.js} +2 -2
- package/dist/cdn/{JXQEGZDB.js → IDKRMHDS.js} +1 -1
- package/dist/cdn/{SNNAV3AS.js → IETZFE3P.js} +2 -2
- package/dist/cdn/{WBBTZNZU.js → IFMBHZHX.js} +2 -2
- package/dist/cdn/{2KPCMM7D.js → IJLCJVC4.js} +2 -2
- package/dist/cdn/{F34QQ4DO.js → IMPFB7YV.js} +2 -2
- package/dist/cdn/{FPPWXIBA.js → IRZGEFF5.js} +2 -2
- package/dist/cdn/{O5YJPUFM.js → ISIH65JW.js} +2 -2
- package/dist/cdn/{M42QFFPZ.js → ITRD7ZY4.js} +2 -2
- package/dist/cdn/{DLWQZHNA.js → IU22RA7Z.js} +2 -2
- package/dist/cdn/{KFTFKI6A.js → IXWGGAVX.js} +2 -2
- package/dist/cdn/{FH3WFF5O.js → IZ46HAUJ.js} +1 -1
- package/dist/cdn/{FF7BSRYW.js → J23DTKII.js} +2 -2
- package/dist/cdn/{4XJ6RYYC.js → J657IBDC.js} +2 -2
- package/dist/cdn/{Y42K6IOP.js → J6MU74RO.js} +2 -2
- package/dist/cdn/{IFR4IYSI.js → JAZGNQRP.js} +2 -2
- package/dist/cdn/{HPWF3IQV.js → JBHRVHGS.js} +2 -2
- package/dist/cdn/{THJMCEEO.js → JBR3FYAN.js} +2 -2
- package/dist/cdn/{6QH2NH2Z.js → JCR7S6RP.js} +2 -2
- package/dist/cdn/{4L43F7HU.js → JCRPP54Z.js} +1 -1
- package/dist/cdn/{L5IRXOCJ.js → JD74LG7K.js} +1 -1
- package/dist/cdn/{LH2T4TMP.js → JE6NC2E6.js} +2 -2
- package/dist/cdn/{Z7H4V2JZ.js → JIQ4P34C.js} +2 -2
- package/dist/cdn/{52CUDGKY.js → JPKB745U.js} +2 -2
- package/dist/cdn/{R5TCWJ6V.js → JRQYT5SI.js} +2 -2
- package/dist/cdn/{PZUVKZGQ.js → K6D2JHC4.js} +2 -2
- package/dist/cdn/{PIDNZKSJ.js → KBHLE7HT.js} +2 -2
- package/dist/cdn/{KGUALNRF.js → KM2GXXBO.js} +2 -2
- package/dist/cdn/{CAC3OOFR.js → KO7RD6SS.js} +2 -2
- package/dist/cdn/{ZF4DFDLT.js → KT7MEZHJ.js} +2 -2
- package/dist/cdn/KY3ND2AY.js +2 -0
- package/dist/cdn/{CBVICP6P.js → LE373OSG.js} +2 -2
- package/dist/cdn/{PJ5OUPGO.js → LGW5AS6R.js} +2 -2
- package/dist/cdn/{3N5MWYUQ.js → LHFB44QW.js} +2 -2
- package/dist/cdn/{BXB5PSFB.js → LIN3GOTG.js} +2 -2
- package/dist/cdn/{V2YPYCU6.js → LL7R6ETJ.js} +2 -2
- package/dist/cdn/{JS3IKVKM.js → LQ76PRWK.js} +2 -2
- package/dist/cdn/{LC37F7HF.js → M7LDGJG6.js} +2 -2
- package/dist/cdn/{GFNCEZSN.js → MEZHGYCH.js} +2 -2
- package/dist/cdn/{GS2HJTMU.js → MKCJXRXB.js} +2 -2
- package/dist/cdn/{OAMA6SL3.js → MPKC74OS.js} +2 -2
- package/dist/cdn/{HBWEW6R7.js → MUWOF7W4.js} +2 -2
- package/dist/cdn/{IQOQTYRR.js → N2HG34QB.js} +2 -2
- package/dist/cdn/{EK7Y6JBZ.js → N4MW5VBL.js} +2 -2
- package/dist/cdn/{HKLBQ7JD.js → N6VSP7BU.js} +2 -2
- package/dist/cdn/{WQI5PKS4.js → NBDQBLRI.js} +2 -2
- package/dist/cdn/{2TY3T3GH.js → NBHZZ4E6.js} +2 -2
- package/dist/cdn/{PWHXRRFU.js → NRJ6LV6O.js} +2 -2
- package/dist/cdn/{DYUCS5QP.js → O57LOC52.js} +2 -2
- package/dist/cdn/{IM6IDWYR.js → O7RSAJOS.js} +1 -1
- package/dist/cdn/{TPVHN6P2.js → OBMM7WJD.js} +2 -2
- package/dist/cdn/{4IU5R6VO.js → OCLOCCB6.js} +2 -2
- package/dist/cdn/{QKZ552KI.js → OGAUCGGG.js} +2 -2
- package/dist/cdn/{3VCGDZEU.js → OHLJ6POC.js} +2 -2
- package/dist/cdn/{6MCDOI5M.js → OJXNUBIA.js} +2 -2
- package/dist/cdn/{XDU23V37.js → OUXE3CSQ.js} +2 -2
- package/dist/cdn/{H7NR6B6S.js → OX55WUIT.js} +2 -2
- package/dist/cdn/{YFTQR2WS.js → P5HSMYWG.js} +2 -2
- package/dist/cdn/{F5IHFPKA.js → PEH4U3YV.js} +2 -2
- package/dist/cdn/{4ZLIA5OM.js → PLTLRYBF.js} +2 -2
- package/dist/cdn/{CP5JALYQ.js → PLVTYVUG.js} +2 -2
- package/dist/cdn/{6J3KSMFG.js → POKO37D3.js} +1 -1
- package/dist/cdn/{6A2OF3TO.js → PRTHX6OC.js} +2 -2
- package/dist/cdn/{Z2WYULU3.js → PXAY7IM4.js} +2 -2
- package/dist/cdn/{2U3VASQT.js → PYTZ3YBE.js} +1 -1
- package/dist/cdn/{PBHNO4J7.js → Q22KIHFH.js} +2 -2
- package/dist/cdn/{M6YVO33A.js → Q73T55TC.js} +2 -2
- package/dist/cdn/{ZHSESERJ.js → QJWFZYU4.js} +2 -2
- package/dist/cdn/{Z3W7LQ5M.js → QKON7YGO.js} +2 -2
- package/dist/cdn/{PZZU36OG.js → QMQV37ML.js} +2 -2
- package/dist/cdn/{2BUURGFL.js → QMYL4UM7.js} +2 -2
- package/dist/cdn/{WO26ZR5Z.js → QOQRNYM5.js} +2 -2
- package/dist/cdn/{HKVIWCPL.js → QPFX5XH3.js} +2 -2
- package/dist/cdn/{UTV2A7J4.js → QTDJVI5F.js} +2 -2
- package/dist/cdn/{BM4TS2RT.js → QTOA5MBN.js} +2 -2
- package/dist/cdn/QUZTFUWM.js +1 -0
- package/dist/cdn/{GIIYVCKT.js → QX33OCXB.js} +2 -2
- package/dist/cdn/{BVTEQMDF.js → R2IBOCMY.js} +2 -2
- package/dist/cdn/{OSDGWHZZ.js → R3IITUG6.js} +2 -2
- package/dist/cdn/{EZCHUWDK.js → R6HUY6QI.js} +2 -2
- package/dist/cdn/{QEPANMVK.js → RAOEF6YV.js} +2 -2
- package/dist/cdn/{UUHCMLK6.js → RFSBZHJD.js} +2 -2
- package/dist/cdn/{MMYODAC2.js → RHNZWKZV.js} +2 -2
- package/dist/cdn/{HI7BF3DL.js → RKTSSP3O.js} +2 -2
- package/dist/cdn/{TO6SOEDF.js → RPHJDEZH.js} +2 -2
- package/dist/cdn/{GCEBFEZ5.js → RQG75Q2X.js} +2 -2
- package/dist/cdn/{5AMF6NZN.js → RQLMXLJC.js} +2 -2
- package/dist/cdn/{M3FI4K44.js → RYYBMDGS.js} +2 -2
- package/dist/cdn/{GNSNEUMI.js → RZQNEEP6.js} +2 -2
- package/dist/cdn/{Z2ABUIL3.js → S62FQUEJ.js} +2 -2
- package/dist/cdn/{R5YW65AI.js → S6M66TIN.js} +2 -2
- package/dist/cdn/{GK47522P.js → SBIOND5K.js} +2 -2
- package/dist/cdn/{HDHWPKJ4.js → SFFTE3TG.js} +2 -2
- package/dist/cdn/{5ESNA4SF.js → SFSWQGLY.js} +2 -2
- package/dist/cdn/{BQGY4YCS.js → SP73K22L.js} +2 -2
- package/dist/cdn/{MA2GVVQJ.js → SQYMNL75.js} +2 -2
- package/dist/cdn/{ZO7TUIUE.js → SREWXCMU.js} +2 -2
- package/dist/cdn/{MYLIX42T.js → SXQRPAPL.js} +2 -2
- package/dist/cdn/{ND3V4Z4F.js → T2DT5I33.js} +1 -1
- package/dist/cdn/{7VJQVX42.js → T4V5O3FK.js} +2 -2
- package/dist/cdn/{R67ZOCIR.js → TC6HL72N.js} +2 -2
- package/dist/cdn/{YZJKSAQ5.js → TILA2OKK.js} +2 -2
- package/dist/cdn/{HU57LQOA.js → TMJX7DFH.js} +1 -1
- package/dist/cdn/{AL3PLZEE.js → TN5C3MSL.js} +1 -1
- package/dist/cdn/{BLOQ2AJ5.js → TNFZHEWD.js} +2 -2
- package/dist/cdn/{7FFBCPVE.js → TPC2FJJX.js} +2 -2
- package/dist/cdn/{O6HYZKBU.js → TU6ZG6ZI.js} +2 -2
- package/dist/cdn/{SIZZ3BQA.js → TZ2LE7KS.js} +2 -2
- package/dist/cdn/{7TULU5QF.js → TZ6WQV6O.js} +2 -2
- package/dist/cdn/{UUNHAVGJ.js → TZHXSIXK.js} +2 -2
- package/dist/cdn/{G26V76WA.js → UCTJVPYB.js} +2 -2
- package/dist/cdn/{IQEEQOMD.js → UINNR6FV.js} +2 -2
- package/dist/cdn/{HQWUQFN5.js → UMHGXP3S.js} +2 -2
- package/dist/cdn/{LYT35TNY.js → UPZVIKOH.js} +2 -2
- package/dist/cdn/{A7RLC6ZT.js → UWKXYCO3.js} +2 -2
- package/dist/cdn/{LKAJVIS2.js → V2GMDCVJ.js} +2 -2
- package/dist/cdn/{CR6PVUCT.js → VABVK3ZN.js} +2 -2
- package/dist/cdn/{JRCEICO2.js → VCRVQMYT.js} +2 -2
- package/dist/cdn/{DY2EOHFD.js → VCSX4G2U.js} +2 -2
- package/dist/cdn/{DFUR3C3D.js → VDTRRLON.js} +1 -1
- package/dist/cdn/{IAWXCNTX.js → VEAJ52RN.js} +2 -2
- package/dist/cdn/{XP74F2F6.js → VJE33ARY.js} +2 -2
- package/dist/cdn/{WJQUE4DR.js → VJVKFKSG.js} +1 -1
- package/dist/cdn/{JF7VJGL4.js → VSDQVSOV.js} +2 -2
- package/dist/cdn/{TSNUOFL7.js → VTCM7AV2.js} +2 -2
- package/dist/cdn/{GUHSWQMF.js → VWFQCWGB.js} +2 -2
- package/dist/cdn/{J6HOUEVT.js → VWN2LORT.js} +2 -2
- package/dist/cdn/{HQSY7TKA.js → W3ENDJ6U.js} +2 -2
- package/dist/cdn/{YZUSPKNF.js → WBI4RS3V.js} +2 -2
- package/dist/cdn/{WSHG4LV7.js → WCEDE4CZ.js} +2 -2
- package/dist/cdn/WEAGLY7B.js +2 -0
- package/dist/cdn/{ZKWI43WZ.js → WQMZ7BDQ.js} +2 -2
- package/dist/cdn/{S6BPBG7D.js → WVRJQQKH.js} +2 -2
- package/dist/cdn/WYNLO2MH.js +2 -0
- package/dist/cdn/{SR4V2CUQ.js → X3DQNCTZ.js} +2 -2
- package/dist/cdn/{DUMHDAYP.js → XAADUJ74.js} +2 -2
- package/dist/cdn/{4O3HLHQQ.js → XAD4PUBU.js} +2 -2
- package/dist/cdn/{OJIYHIGC.js → XAMLHDWZ.js} +2 -2
- package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
- package/dist/cdn/XIYYT5SJ.js +2 -0
- package/dist/cdn/{Z2UUXST4.js → XJ6DZ6AN.js} +2 -2
- package/dist/cdn/XKHGN6LQ.js +2 -0
- package/dist/cdn/{KCLVDXWB.js → XPGC5GAG.js} +2 -2
- package/dist/cdn/{SEY3WDK2.js → XPIX7Z2Q.js} +2 -2
- package/dist/cdn/{2UKSCGYU.js → XTPRVANS.js} +2 -2
- package/dist/cdn/{PDH2DA3L.js → XURL7UVF.js} +2 -2
- package/dist/cdn/{VTCE3YQW.js → XYNRLVTU.js} +2 -2
- package/dist/cdn/{CPYVZPJ7.js → Y2LELW5Y.js} +2 -2
- package/dist/cdn/{JBK5HTJ2.js → Y2UYA3OR.js} +2 -2
- package/dist/cdn/{J4CHCFLS.js → Y4WOZJQX.js} +2 -2
- package/dist/cdn/{SIFBGT4D.js → YAEJKOYY.js} +2 -2
- package/dist/cdn/YDB2XJRU.js +2 -0
- package/dist/cdn/{4IWYFG2G.js → YHKTMUY7.js} +2 -2
- package/dist/cdn/{XYF36P2O.js → YKSVOTDV.js} +2 -2
- package/dist/cdn/{RRSU6QD4.js → YLC4L2QV.js} +2 -2
- package/dist/cdn/{EMXGW73P.js → YOUMOTN3.js} +2 -2
- package/dist/cdn/{65MI3MW2.js → YPNGSV66.js} +2 -2
- package/dist/cdn/{EHEWQ23K.js → YPNJ5V4R.js} +2 -2
- package/dist/cdn/{SZ3T7YEB.js → YU5BTZEI.js} +1 -1
- package/dist/cdn/{ZGOAZB5L.js → YWC5AUFV.js} +1 -1
- package/dist/cdn/{2SO5S66J.js → YWS5RHVM.js} +2 -2
- package/dist/cdn/YY45XUPP.js +2 -0
- package/dist/cdn/{KLVBRTYU.js → Z42QB2QP.js} +2 -2
- package/dist/cdn/{TA723HWT.js → Z4WS2RBO.js} +2 -2
- package/dist/cdn/{7VDBR3SK.js → Z5C6UBYP.js} +2 -2
- package/dist/cdn/{7FCZLFJD.js → ZEKQYUW3.js} +2 -2
- package/dist/cdn/{M2LKA37F.js → ZFHHY72B.js} +2 -2
- package/dist/cdn/{XCTPKDKL.js → ZOHGLZNV.js} +2 -2
- package/dist/cdn/{W3TSTSES.js → ZOTONI4L.js} +2 -2
- package/dist/cdn/{4PI54LJH.js → ZPH7M75T.js} +2 -2
- package/dist/cdn/{MFWSWLBW.js → ZUAR3LO3.js} +2 -2
- package/dist/cdn/{VUAYNF3K.js → ZVZVHZYX.js} +2 -2
- package/dist/cdn/{M5KYBYZT.js → ZW2ZBNX2.js} +2 -2
- package/dist/cdn/{M7AFSV3C.js → ZWN6DXNO.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/attachment-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/constants2.js +1 -1
- package/dist/chunks/css.js +1 -1
- package/dist/chunks/dateUtils.js +2 -2
- package/dist/chunks/earth-utils.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/field.js +1 -1
- package/dist/chunks/formattingUtils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/graphicsLayerController.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/keyboard-utils.js +1 -1
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/chunks/layer-list-utils.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/layer-utils2.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/print-exports-panel-item-popover.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/sr.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/titleUtils.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/urlUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useLayerById.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/chunks/utils5.js +1 -1
- package/dist/chunks/utils6.js +1 -1
- package/dist/chunks/video-utils.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/chunks/zoom.js +1 -1
- package/dist/components/arcgis-add-attachment-view/customElement.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +14 -14
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachment-preview/customElement.js +1 -1
- package/dist/components/arcgis-attachment-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-attachment-validation-view/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-clipboard/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +27 -27
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-exploratory-analysis/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field-number/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-settings/customElement.js +1 -1
- package/dist/components/arcgis-feature-image/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.js +1 -1
- package/dist/components/arcgis-feature-title/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.js +1 -1
- package/dist/components/arcgis-file-picker/customElement.js +1 -1
- package/dist/components/arcgis-filter-builder/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
- package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-datum-transformation-input/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel-item-popover/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-selection-toolbar/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-table-list-next/customElement.js +1 -1
- package/dist/components/arcgis-template-image/customElement.js +1 -1
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-date/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-extent/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-settings/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +25 -24
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-chip/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-selector/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-view-popover/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/feature-form-next/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +6 -6
- package/dist/cdn/4B2TLORL.js +0 -2
- package/dist/cdn/5KN3AKHQ.js +0 -2
- package/dist/cdn/77U2VO5P.js +0 -2
- package/dist/cdn/CNYZSE22.js +0 -2
- package/dist/cdn/CVJOD6H3.js +0 -2
- package/dist/cdn/DTORO2OE.js +0 -2
- package/dist/cdn/E5L3MOIC.js +0 -2
- package/dist/cdn/FIZMK7GS.js +0 -1
- package/dist/cdn/HTC4LCZQ.js +0 -2
- package/dist/cdn/IITDAOGZ.js +0 -2
- package/dist/cdn/MA7GBKLW.js +0 -2
- package/dist/cdn/P3PXDT5V.js +0 -2
- package/dist/cdn/T7WW3YQN.js +0 -2
- package/dist/cdn/WK4TNKKC.js +0 -2
- package/dist/cdn/ZSPYPXBY.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as Et,b as Qe,c as Ae,d as ke}from"./PMRI66RQ.js";import{$ as me,D as we,E,F as xt,L as Ke,P as U,R as Pe,S as B,W as Q,X as Te,Y as Ot,Z as et,_ as q,a as ge,aa as Ut,b as ve,ba as R,c as j,ca as ti,da as Rt,ea as ei,f as G,g as be,ga as Me,h as Z,ja as Ce,la as ii,ma as si,na as Ie,oa as ai,p as qe,qa as $e,ra as Se,sa as le,y as De}from"./UUNHAVGJ.js";import{O as ye,P as F,Q as de,S as je,T as Ze,a as Ct,d as ze,f as xe,k as Be,o as We,q as He,u as Nt,v as ue}from"./4ZLIA5OM.js";import{a as kt,b as Xt,d as S,e as ne}from"./ND3V4Z4F.js";import{B as pt,C as Oe,F as Gt,I as $t,J as gt,P as Ue,T as _t,V as re,W as z,X as Je,a as ot,g as y,o as w,r as Yt,s as pe,t as It,v as _e,w as Ee}from"./MQYTZX24.js";import"./TAVTDQ6S.js";var he=class extends Je{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:le.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:Ze.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:le.new(this._root,{saturation:0})._markC("saturation")});{let n=i("Graphics",["scrollbar","overlay"]);n.setAll({fillOpacity:.5}),B(n,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:S,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:S}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:S}),i("AxisLabel",["y"]).setAll({centerX:S}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:S}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{let n=i("Grid",["cursor","x"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Grid",["cursor","y"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Graphics",["cursor","selection"]);n.setAll({fillOpacity:.15}),B(n,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:ne,centerY:ne,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{let n=i("AxisRenderer");n.setAll({crisp:!0,strokeOpacity:0}),B(n,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:S}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:S});{let n=i("Rectangle",["axis","thumb","zoomgrip"]);n.setAll({fillOpacity:0}),B(n,"fill",t,"alternativeBackground"),n.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{let n=i("Grid");n.setAll({location:0,strokeOpacity:.15,crisp:!0}),B(n,"stroke",t,"grid")}{let n=i("Grid",["minor"]);n.setAll({location:0,strokeOpacity:.07,crisp:!0}),B(n,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{let n=i("Graphics",["axis","fill"]);n.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),B(n,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{let n=i("AxisTick");n.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),B(n,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(n,l)=>{let h=n.get("axisFill");h&&(!y(l)||l%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});let s=[{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}],a={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},o={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},r={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:_e(s),dateFormats:$t(a),periodChangeDateFormats:$t(o)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:_e(s),dateFormats:$t(a),periodChangeDateFormats:$t(o),tooltipDateFormats:r,groupIntervals:[{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}],fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=n.get("endValue"),u=h.intervalDuration(),m=h.getPrivate("baseInterval"),f=h.getPrivate("gridInterval",m),g=h.getPrivate("min",0);if(g=ti(new Date(g),f.timeUnit,f.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),c!=null&&d!=null){let p=Math.round(Math.round((c-g)/u))/2;p==Math.round(p)?l.setPrivate("visible",!0):l.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.get("index"),c=!1;(!y(h)||h%2==0)&&(c=!0),l.setPrivate("visible",c)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=h.getPrivate("step");y(c)&&y(d)&&(G(c/d/2,5)==Math.round(c/d/2)?l.setPrivate("visible",!1):l.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Xt(70),height:Xt(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,c/2),n.lineTo(d,c/2)}}});{let n=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,0),n.lineTo(d,0),n.lineTo(d,c),n.lineTo(0,c),n.lineTo(0,0)}}});{let n=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Xt(50),height:Xt(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Xt(80),height:Xt(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{let n=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{let n=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{let n=i("Graphics",["rangegrip","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:l=>{l.moveTo(0,.5),l.lineTo(0,12.5),l.moveTo(2,.5),l.lineTo(2,12.5),l.moveTo(4,.5),l.lineTo(4,12.5)}}),B(n,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:ne}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:ne}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:S}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:S})}};var St=class extends $e{constructor(){super(...arguments),this.xAxes=new ve,this.yAxes=new ve,this.topAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:S,layout:this._root.verticalLayout})._markC("width","layout")),this.yAxesAndPlotContainer=this.chartContainer.children.push(U.new(this._root,{width:S,height:S,layout:this._root.horizontalLayout})._markC("width","height","layout")),this.bottomAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:S,layout:this._root.verticalLayout})._markC("width","layout")),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:S,layout:this._root.horizontalLayout})._markC("height","layout")),this.plotsContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{width:S,height:S,maskContent:!1})._markC("width","height","maskContent")),this.plotContainer=this.plotsContainer.children.push(U.new(this._root,{width:S,height:S})._markC("width","height")),this.topPlotContainer=this.plotsContainer.children.push(U.new(this._root,{width:S,height:S})._markC("width","height")),this.gridContainer=this.plotContainer.children.push(U.new(this._root,{width:S,height:S,isMeasured:!1})._markC("width","height","isMeasured")),this.topGridContainer=U.new(this._root,{width:S,height:S,isMeasured:!1})._markC("width","height","isMeasured"),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:S,layout:this._root.horizontalLayout})._markC("height","layout")),this.axisHeadersContainer=this.plotContainer.children.push(U.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(Qe.new(this._root,{themeTags:["zoom"],icon:E.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(he.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);let t=this._root,e=this._root.verticalLayout,i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default")._setC("opacity",1),this.chartContainer.set("layout",e);let s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s._setC("interactive",!0),s._setC("interactiveChildren",!1),s._setC("background",xt.new(t,{themeTags:["plotbackground","xy","background"]})._markC("themeTags")),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);let e=t.get("xAxis");e&&(Yt(e.series,t),e.markDirtyExtremes());let i=t.get("yAxis");i&&(Yt(i.series,t),i.markDirtyExtremes());let s=this.get("cursor");if(s){let a=s.get("snapToSeries");a&&Yt(a,t)}super._removeSeries(t)}_applyThemes(t=!1){let e=this.get("colors");e&&e.reset();let i=super._applyThemes(t);return this.series.each(s=>{this._colorize(s)}),i}handleWheel(t){let e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent,o=!1;if(We(a,this))o=!0;else return;let r=s.toLocal(t.point),n=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,c=this.get("wheelZoomPositionX"),d=this.get("wheelZoomPositionY");(e==="zoomX"||e==="zoomXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*h*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*h*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(i==="zoomX"||i==="zoomXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*l*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*l*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(e==="zoomY"||e==="zoomXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*h*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*h*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(i==="zoomY"||i==="zoomXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*l*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*l*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(e==="panX"||e==="panXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("panX")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*h,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(i==="panX"||i==="panXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("panX")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*l,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(e==="panY"||e==="panXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("panY")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*h,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(i==="panY"||i==="panXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("panY")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*l,p=m-g,x=f-g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),o&&a.preventDefault()}_handleSetWheel(){let t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;t!=="none"||e!=="none"?(this._wheelDp=i.events.on("wheel",s=>{let a=s.originalEvent;(t!=="none"&&Math.abs(a.deltaX)!=0||e!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){let i=e-t;return t<0&&(t=0,e=t+i),e>1&&(e=1,t=e-i),[t,e]}_handlePlotDown(t){let e=t.originalEvent;if(e.button==2)return;let i=this.plotContainer,s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&Gt(i._downPoints).length>0){let o=this.xAxes.getIndex(0),r=this.yAxes.getIndex(0);o&&(this._downStartX=o.get("start",0),this._downEndX=o.get("end",1)),r&&(this._downStartY=r.get("start",0),this._downEndY=r.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};let a=this.get("panX"),o=this.get("panY");a&&this.xAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")}),o&&this.yAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")});let r="panstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){let t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){let e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){let s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent})}let i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(t){let e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){let a=t.originalEvent.pointerId;if(a&&(this._movePoints[a]=t.point,Gt(e._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point),a=this.get("panX"),o=this.get("panY");if(a){let r=this.get("scrollbarX");r&&r.events.disableType("rangechanged"),this.xAxes.each(n=>{if(n.get("panX")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.x-s.x)/e.width();n.get("renderer").get("inversed")&&(d*=-1);let u=l+d,m=h+d;m-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",m))}}),r&&r.events.enableType("rangechanged")}if(o){let r=this.get("scrollbarY");r&&r.events.disableType("rangechanged"),this.yAxes.each(n=>{if(n.get("panY")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.y-s.y)/e.height();n.get("renderer").get("inversed")&&(d*=-1);let u=l-d,m=h-d;m-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",m))}}),r&&r.events.enableType("rangechanged")}}}_handlePinch(){let t=this.plotContainer,e=0,i=[],s=[];if(gt(t._downPoints,(a,o)=>{i[e]=o;let r=this._movePoints[a];r&&(s[e]=r),e++}),i.length>1&&s.length>1){let a=t.width(),o=t.height(),r=i[0],n=i[1],l=s[0],h=s[1];if(r&&n&&l&&h){if(l=t.toLocal(l),h=t.toLocal(h),r=t.toLocal(r),n=t.toLocal(n),this.get("pinchZoomX")){let c=this._downStartX,d=this._downEndX;if(c!=null&&d!=null){r.x>n.x&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+r.x/a*(d-c),m=c+n.x/a*(d-c),f=c+l.x/a*(d-c),g=c+h.x/a*(d-c),p=Math.max(.001,m-u),x=Math.max(.001,g-f),_=p/x,v=c*_+u-f*_,b=d*_+m-g*_;this.xAxes.each(T=>{let P=T.fixPosition(v),D=T.fixPosition(b);T.zoom(P,D,0)})}}if(this.get("pinchZoomY")){let c=this._downStartY,d=this._downEndY;if(c!=null&&d!=null){r.y<n.y&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+(1-r.y/o)*(d-c),m=c+(1-n.y/o)*(d-c),f=c+(1-l.y/o)*(d-c),g=c+(1-h.y/o)*(d-c),p=Math.max(.001,m-u),x=Math.max(.001,g-f),_=p/x,v=c*_+u-f*_,b=d*_+m-g*_;this.yAxes.each(T=>{let P=T.fixPosition(v),D=T.fixPosition(b);T.zoom(P,D,0)})}}}}}_handleCursorPosition(){let t=this.get("cursor");if(t){let e=t.getPrivate("point"),i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){let s=t.get("snapToSeriesBy"),a=[];w(i,n=>{if(!n.isHidden()&&!n.isHiding())if(s!="x!"&&s!="y!"){let l=n.startIndex(),h=n.endIndex();for(let c=l;c<h;c++){let d=n.dataItems[c];d&&!d.isHidden()&&a.push(d)}}else{let l=n.get("tooltipDataItem");l&&a.push(l)}});let o=1/0,r;if(w(a,n=>{let l=n.get("point");if(l){let h=0;s=="x"||s=="x!"?h=Math.abs(e.x-l.x):s=="y"||s=="y!"?h=Math.abs(e.y-l.y):h=Math.hypot(e.x-l.x,e.y-l.y),h<o&&(o=h,r=n)}}),w(i,n=>{let l=n.get("tooltip");l&&l._setDataItem(void 0)}),r){let n=r.component;n.showDataItemTooltip(r),n.setRaw("tooltipDataItem",r);let l=r.get("point");l&&t.handleMove(n.toGlobal({x:l.x-n.x(),y:l.y-n.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each(t=>{this._colorize(t)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){let t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){let t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(this._placeScrollbar("scrollbarX",e,this.topAxesContainer,this.bottomAxesContainer),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",e.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){let t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(this._placeScrollbar("scrollbarY",e,this.rightAxesContainer,this.leftAxesContainer,!0),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",e.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_placeScrollbar(t,e,i,s,a){let o=()=>{let r=e.get("opposite"),n=r?s:i,l=n.children,h=r&&a?0:l.length-1;(e.parent!=n||l.indexOf(e)!=h)&&(e.removePrivate("x"),e.removePrivate("y"),r&&a?l.moveValue(e,0):l.moveValue(e),n.markDirtyBounds(),this._root.events.once("frameended",()=>{this.isDisposed()||this._updateChartLayout()}))};e.parent||o(),this._pushPropertyDisposer(t,e.on("opposite",()=>{let r=e.parent;(r==i||r==s)&&o()}))}_processSeries(t){super._processSeries(t);let e=t.get("xAxis"),i=t.get("yAxis");It(e.series,t),It(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",()=>{t._fixPosition()})),t._posYDp=t.addDisposer(i.events.on("positionchanged",()=>{t._fixPosition()})),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t._setC("baseAxis",i):t._setC("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),w(t.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){let e=this.get("colors");if(e&&t.get("fill")==null){let o=e.next();t._setSoft("stroke",o),t._setSoft("fill",o)}let i=this.get("patterns");if(i&&t.get("fillPattern")==null){let o=i.next();t._setSoft("fillPattern",o)}let s=this.get("strokeWidths"),a=this.get("strokeDasharrays");if(s||a){let o=t.strokes;if(o&&o.template){let r=this.series.indexOf(t);s&&s.length>0&&o.template._setC("strokeWidth",s[r%s.length]),a&&a.length>0&&o.template._setC("strokeDasharray",a[r%a.length])}}}_handleCursorSelectEnd(){let t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each(r=>{if(e==="zoomX"||e==="zoomXY"){let n=r.toAxisPosition(i),l=r.toAxisPosition(a);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)}),this.yAxes.each(r=>{if(e==="zoomY"||e==="zoomXY"){let n=r.toAxisPosition(s),l=r.toAxisPosition(o);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)})}_handleScrollbar(t,e,i,s){t.each(a=>{let o=a.fixPosition(e),r=a.fixPosition(i),n=a.zoom(o,r,void 0,s),l="updateScrollbar";a.setPrivateRaw(l,!1),n?n.events.on("stopped",()=>{a.setPrivateRaw(l,!0)}):a.setPrivateRaw(l,!0)})}_processAxis(t,e){return t.events.onAll(i=>{if(i.type==="clear")w(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")e.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")e.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")e.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")e.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(t){if(!t.isDisposed()){let e=t.parent;e&&e.children.removeValue(t);let i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);let a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){let t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);let s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){var e=this.get("cursor");e&&(this.addDisposer(t.on("start",()=>{this._updateCursor()})),this.addDisposer(t.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(t)!=-1){if(e||t.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||e)&&(a._setCRaw("start",i),a._setCRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(t)!=-1&&(e||t.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||e)&&(a._setCRaw("start",i),a._setCRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&!i._isSynced()&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&!i._isSynced()&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){let e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){let o=i[a];if(o!=this){let r=o.plotContainer,n=this._root.rootPointToDocument(s),l=o._root.documentPointToRoot(n),h=r.toLocal(l);if(h.x>=-.1&&h.y>=-.1&&h.x<=r.width()+.1&&h.y<=r.height()+.1)return!0}}return!1}arrangeTooltips(){let t=this.plotContainer,e=t.width(),i=t.height(),s=this.height(),a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),r=t._display.toGlobal({x:e,y:i}),n=[],l=0,h=1/0,c=this._movePoint,d=this.get("maxTooltipDistance"),u=this.get("maxTooltipDistanceBy","xy"),m,f;y(d)&&this.series.each(p=>{if(!p.isHidden()){let x=p.get("tooltip");if(x){let _=x.get("pointTo");if(_){let v=Math.hypot(c.x-_.x,c.y-_.y);u=="x"?v=Math.abs(c.x-_.x):u=="y"&&(v=Math.abs(c.y-_.y)),v<h&&(h=v,m=p,f=_)}}}});let g=[];if(this.series.each(p=>{let x=p.get("tooltip");if(x&&!x.get("forceHidden")){let _=!1,v=x.get("pointTo");if(v){if(d>=0){let b=x.get("pointTo");if(b&&f&&p!=m){let T=Math.hypot(f.x-b.x,f.y-b.y);u=="x"?T=Math.abs(f.x-b.x):u=="y"&&(T=Math.abs(f.y-b.y)),T>d&&(_=!0)}}else d==-1&&p!=m&&(_=!0);!this.inPlot(this._tooltipToLocal(v))||!x.dataItem?_=!0:_||(l+=v.y),_||p.isHidden()||p.isHiding()?x.hide(0):(x.show(),n.push(x),g.push(p))}}}),this.setPrivate("tooltipSeries",g),this.get("arrangeTooltips")){let p=0,x=0,_=this._root.tooltipContainer,v=n.length;if(l/v>i/2+o.y){n.sort((P,D)=>re(D.get("pointTo").y,P.get("pointTo").y));let T=r.y;if(w(n,P=>{let D=P.height();x++,p+=D;let M=P.get("centerY");M instanceof kt&&(D*=M.value),D+=P.get("marginBottom",0),P.set("bounds",{left:o.x,top:o.y,right:r.x,bottom:T}),P.setPrivate("customData",{left:o.x,top:o.y,right:r.x,bottom:T}),T=Math.min(T-D,P._fy-D),P.parent==_&&_.children.moveValue(P,0)}),T<0){n.reverse();let P=T;w(n,D=>{x++;let M=D.get("bounds");if(M){let C=M.top-T,k=M.bottom-T;C<P&&(C=P,k=C+D.height()),D.set("bounds",{left:M.left,top:C,right:M.right,bottom:k}),P=M.bottom-T+D.get("marginBottom",0)}})}}else{n.reverse(),n.sort((P,D)=>re(P.get("pointTo").y,D.get("pointTo").y));let T=0;if(w(n,P=>{x++;let D=P.height();p+=D;let M=P.get("centerY");M instanceof kt&&(D*=M.value),D+=P.get("marginBottom",0),P.set("bounds",{left:o.x,top:T,right:r.x,bottom:Math.max(o.y+s,T+D)}),P.parent==_&&_.children.moveValue(P,0),T=Math.max(T+D,P._fy+D)}),T>s){n.reverse();let P=s;w(n,D=>{x++;let M=D.get("bounds");if(M){let C=M.top-(s-T),k=M.bottom-(s-T);k>P&&(k=P,C=k-D.height()),D.set("bounds",{left:M.left,top:C,right:M.right,bottom:k}),P=k-D.height()-D.get("marginBottom",0)}})}}p==0&&x>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each(t=>{t.get("zoomOut",!0)&&!t._isSynced()&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}),this.yAxes.each(t=>{t.get("zoomOut",!0)&&!t._isSynced()&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})}_dispose(){super._dispose();let t=this.get("cursor");t&&t.dispose()}};St.className="XYChart";St.classNames=$e.classNames.concat([St.className]);var zt=class extends ke{constructor(){super(...arguments),this.chart=this.children.push(St.new(this._root,{themeTags:["chart"],interactive:!1,interactiveChildren:!1,panX:!1,panY:!1,wheelX:"none",wheelY:"none"}))._markC("interactive","interactiveChildren","panX","panY","wheelX","wheelY"),this.overlay=this.children.push(E.new(this._root,{themeTags:["overlay"],interactive:!1})._markC("interactive"))}_afterNew(){this._addOrientationClass(),this._settings.themeTags=F(this._settings.themeTags,["scrollbar","xy","chart",this._settings.orientation]);let t=this.children;t.moveValue(this.thumb),t.moveValue(this.startGrip),t.moveValue(this.endGrip),this.thumb._setC("opacity",0),this.thumb.states._createC("hover",{opacity:.2});let e=this.chart.plotContainer;e._setC("interactive",!1),e.remove("background"),e.children.removeValue(this.chart.zoomOutButton),super._afterNew()}_updateThumb(){super._updateThumb(),this.overlay.set("draw",t=>{let e=this.startGrip,i=this.endGrip,s=e.x(),a=e.y(),o=i.x(),r=i.y(),n=this.height(),l=this.width();s>o&&([s,o]=[o,s]),a>r&&([a,r]=[r,a]),this.get("orientation")==="horizontal"?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,n),t.lineTo(0,n),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(l,0),t.lineTo(l,n),t.lineTo(o,n),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(l,a),t.lineTo(l,0),t.lineTo(0,0),t.moveTo(0,r),t.lineTo(0,n),t.lineTo(l,n),t.lineTo(l,r),t.lineTo(0,r))})}};zt.className="XYChartScrollbar";zt.classNames=ke.classNames.concat([zt.className]);var mt=class extends E{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}};mt.className="Grid";mt.classNames=E.classNames.concat([mt.className]);var Bt=class extends U{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(mt.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(mt.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(E.new(this._root,{themeTags:["selection","cursor"],layer:30})._markC("themeTags","layer")),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this._setCAll({width:S,height:S,isMeasured:!0,position:"absolute"}),this.states._createC("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),xe("keyboardevents")&&this._disposers.push(ze(document,"keydown",t=>{this._handleLineMove(He(t),t.ctrlKey)}))}_setUpTouch(){let t=this.chart;t&&(t.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="",s=this.chart,a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let r=a.get("renderer").get("inversed",!1),n;t=="ArrowRight"||t=="ArrowDown"?n=1:t=="ArrowLeft"||t=="ArrowUp"?n=-1:t=="Tab"&&(n=0),n!=null&&(r&&(n*=-1),this.set(i,a.nextPosition(n*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;let t=this.get("xAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",()=>{this._updateXLine(e)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;let t=this.get("yAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",()=>{this._updateYLine(e)})))}}}_handleSyncWith(){let t=this.chart;if(t){let e=this.get("syncWith"),i=[];e&&w(e,s=>{let a=s.chart;a&&i.push(a)}),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){let t=this.get("positionX"),e=this.get("positionY");t==null&&e==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",t=>{t.moveTo(0,0),t.lineTo(0,this.height())}),this.lineY.set("draw",t=>{t.moveTo(0,0),t.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();let e=t.plotContainer;this.events.on("boundschanged",()=>{this._boundsTimeout&&this._boundsTimeout.dispose(),this._boundsTimeout=this.setTimeout(()=>{this.updateCursor()},50),this._disposers.push(this._boundsTimeout)}),xe("touchevents")&&(this._disposers.push(e.events.on("click",s=>{Be(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(e.events.on("globalpointerdown",s=>{this._handleCursorDownGlobal(s)})),this._disposers.push(e.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(e.events.on("globalpointermove",s=>{!this.get("syncWith")&&Gt(e._downPoints).length==0&&!this._downPoint&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));let i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){let e=this.chart;return e?e.inPlot(t):!1}_handleCursorDown(t){if(t.originalEvent.button==2)return;let e=t.point,i=this._display.toLocal(e),s=this.chart;this.selection.set("draw",()=>{}),s&&this._inPlot(i)&&this._startSelection(i,t)}_handleCursorDownGlobal(t){let e=this.get("clickTolerance",0);if(e<=0||this.get("behavior","none")=="none"||t.originalEvent.button==2||!this.chart)return;let s=this._display.toLocal(t.point);if(this._inPlot(s))return;let a=this.width(),o=this.height(),r=Math.max(0,-s.x,s.x-a),n=Math.max(0,-s.y,s.y-o);r>e||n>e||(s.x=Z(s.x,0,a),s.y=Z(s.y,0,o),this.selection.set("draw",()=>{}),this._startSelection(s,t))}_startSelection(t,e){if(this._downPoint=t,this.get("behavior")!="none"){this.selection.show();let a="selectstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:e.originalEvent})}let i=this._getPosition(t).x,s=this._getPosition(t).y;this.setPrivate("downPositionX",i),this.setPrivate("downPositionY",s)}_handleCursorUp(t){if(this._downPoint){let e=this.get("behavior","none");if(e!="none"){e.charAt(0)==="z"&&this.selection.hide();let i=t.point,s=this._display.toLocal(i);s.x=Z(s.x,0,this.width()),s.y=Z(s.y,0,this.height());let a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let r=!1;if((e==="zoomX"||e==="zoomXY"||e==="selectX"||e==="selectXY")&&Math.abs(s.x-a.x)>o&&(r=!0),(e==="zoomY"||e==="zoomXY"||e==="selectY"||e==="selectXY")&&Math.abs(s.y-a.y)>o&&(r=!0),r){let n="selectended";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}else{let n="selectcancelled";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){let e=this.chart;if(e&&Gt(e.plotContainer._downPoints).length>1){this._setC("forceHidden",!0);return}else this._setC("forceHidden",!1);let i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);let s=this.get("alwaysShow");if(!t){this.hide(0);return}this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let r=a.x,n=a.y,l=this._getPosition(a);this.setPrivate("point",a);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let c=this.get("positionX"),d=l.x;y(c)&&(d=c);let u=this.get("positionY"),m=l.y;y(u)&&(m=u),this.setPrivate("positionX",d),this.setPrivate("positionY",m);let f=this._getPoint(d,m);if(r=f.x,n=f.y,o.xAxes.each(g=>{g._handleCursorPosition(d,h),s&&g.handleCursorShow()}),o.yAxes.each(g=>{g._handleCursorPosition(m,h),s&&g.handleCursorShow()}),!e){o._handleCursorPosition();let g="cursormoved";this.events.isEnabled(g)&&this.events.dispatch(g,{type:g,target:this,point:t,originalEvent:i})}this._updateLines(r,n),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);let r="cursorhidden";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX._setC("x",t),this._tooltipY||this.lineY._setC("y",e),this._drawLines()}_updateSelection(t){let e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",o=>{let r=this._downPoint;r&&(i==="zoomXY"||i==="selectXY"?(o.moveTo(r.x,r.y),o.lineTo(r.x,t.y),o.lineTo(t.x,t.y),o.lineTo(t.x,r.y),o.lineTo(r.x,r.y)):i==="zoomX"||i==="selectX"?(o.moveTo(r.x,0),o.lineTo(r.x,a),o.lineTo(t.x,a),o.lineTo(t.x,0),o.lineTo(r.x,0)):(i==="zoomY"||i==="selectY")&&(o.moveTo(0,r.y),o.lineTo(s,r.y),o.lineTo(s,t.y),o.lineTo(0,t.y),o.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorHide()}),t.yAxes.each(e=>{e.handleCursorHide()}),t.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorShow()}),t.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}};Bt.className="XYCursor";Bt.classNames=U.classNames.concat([Bt.className]);function Fe(A,t){return A==null?t:t==null?A:t<A?t:A}function Xe(A,t){return A==null?t:t==null||A>t?A:t}var lt=class extends Me{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(U.new(this._root,{})),this.axisRanges=new ge,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new Q(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");let t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));let e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this._setC("maskContent",!0),this._disposers.push(this.on("xAxis",()=>{this._switchAxis("xAxis")})),this._disposers.push(this.on("yAxis",()=>{this._switchAxis("yAxis")})),this._disposers.push(this.axisRanges.events.onAll(s=>{if(s.type==="clear")w(s.oldValues,a=>{this._removeAxisRange(a)});else if(s.type==="push")this._processAxisRange(s.newValue);else if(s.type==="setIndex")this._processAxisRange(s.newValue);else if(s.type==="insertIndex")this._processAxisRange(s.newValue);else if(s.type==="removeIndex")this._removeAxisRange(s.oldValue);else if(s.type==="moveIndex")this._processAxisRange(s.value);else throw new Error("Unknown IStreamEvent type")})),this.states._createC("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames();let i=()=>{this._updateFields(),this._makeFieldNames(),this.markDirtyValues()};w([...this.valueXFields,...this.valueYFields],s=>{this.on(s+"Field",i)})}_processAxisRange(t){let e=U.new(this._root,{});t.container=e,this.children.push(e),t.series=this;let i=t.axisDataItem;i.setRaw("isRange",!0);let s=i.component;if(s){s._processAxisRange(i,["range","series"]);let a=i.get("bullet");if(a){let r=a.get("sprite");r&&r.setPrivate("visible",!1)}let o=i.get("axisFill");o&&e._setC("mask",o),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),gt(this._dataSets,(t,e)=>{w(e,i=>{i.dispose()}),e.length=0})}_removeAxisRange(t){let e=t.axisDataItem,i=e.component;e.dispose(),Yt(i._seriesAxisRanges,e);let s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&w(this.valueXFields,t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let i=this.get(t+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&w(this.valueYFields,t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let i=this.get(t+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};let t=this.chart;t&&t.series.removeValue(this);let e=this.get("xAxis");e&&pe(e.series,this);let i=this.get("yAxis");i&&pe(i.series,this)}_min(t,e){let i=Fe(this.getPrivate(t),e);this.setPrivate(t,i)}_max(t,e){let i=Xe(this.getPrivate(t),e);this.setPrivate(t,i)}_shouldMakeBullet(t){let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;let a=this.get("minBulletDistance",0);if(a>0){let o=this.startIndex(),n=this.endIndex()-o;if(e==s){if(this._xRenderer.axisLength()/n<a/5)return!1}else if(i==s&&this._yRenderer.axisLength()/n<a/5)return!1}return t.get(this._xField)!=null&&t.get(this._yField)!=null}_makeFieldNames(){let t=this.get("xAxis"),e=this.get("yAxis"),i=t.getPrivate("name"),s=ye(i),a=e.getPrivate("name"),o=ye(a),r=t.get("renderer").getPrivate("letter"),n=e.get("renderer").getPrivate("letter"),l="open",h="low",c="high",d="Show";t.className==="ValueAxis"?(this._xField=this.get(i+r+d),this._xOpenField=this.get(l+s+r+d),this._xLowField=this.get(h+s+r+d),this._xHighField=this.get(c+s+r+d)):(this._xField=i+r,this._xOpenField=l+s+r,this._xLowField=h+s+r,this._xHighField=c+s+r),e.className==="ValueAxis"?(this._yField=this.get(a+n+d),this._yOpenField=this.get(l+o+n+d),this._yLowField=this.get(h+o+n+d),this._yHighField=this.get(c+o+n+d)):(this._yField=a+n,this._yOpenField=l+o+n,this._yLowField=h+o+n,this._yHighField=c+o+n)}_fixVC(){let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),t===i?s._setC("vcy",o):(e===i||s._setC("vcy",o),s._setC("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){let t=this.get("xAxis"),e=this.get("yAxis");this._setC("x",t.x()-Nt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0)),this._setC("y",e.y()-Nt(e.get("centerY",0),e.height())-e.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_switchAxis(t){let e=this._prevSettings[t],i=this.get(t);if(e&&i&&e!==i){Yt(e.series,this);let s=t=="xAxis"?this._posXDp:this._posYDp;if(s&&s.dispose(),e.markDirtyExtremes(),this.get("baseAxis")===e)if(this._computedProperties.baseAxis){let o=this.get("xAxis"),r=this.get("yAxis");if(o&&r){let n=r.isType("CategoryAxis")||r.isType("DateAxis");this._setC("baseAxis",n?r:o)}else this._setC("baseAxis",i)}else this.set("baseAxis",i);It(i.series,this);let a=this.addDisposer(i.events.on("positionchanged",()=>{this._fixPosition()}));t=="xAxis"?this._posXDp=a:this._posYDp=a,i.markDirtyExtremes(),i._seriesAdded=!0,this._markDirtyAxes()}}_prepareChildren(){super._prepareChildren(),this._xRenderer=this.get("xAxis").get("renderer"),this._yRenderer=this.get("yAxis").get("renderer"),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),(this.isDirty("locationX")||this.isDirty("locationY")||this.isDirty("openLocationX")||this.isDirty("openLocationY")||this.isDirty("exactLocationX")||this.isDirty("exactLocationY"))&&(this._valuesDirty=!0),this._setC("width",this.get("xAxis").width()),this._setC("height",this.get("yAxis").height()),this._handleMaskBullets();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX"),a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;let o=this.get("tooltipPositionY"),r;switch(o){case"open":r=this._yOpenField;break;case"low":r=this._yLowField;break;case"high":r=this._yHighField;break;default:r=this._yField}this._tooltipFieldY=r,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();let n=this.get("stacked");if((this.isDirty("stacked")||this.isDirty("stackToNegative")&&n)&&(n?this._valuesDirty&&!this._dataProcessed||(this._valuesDirty=!0,this._stack()):(this._valuesDirty=!0,this._unstack())),this._valuesDirty&&!this._dataProcessed){this._dataProcessed=!0,n&&this._stack();let l,h,c,d;w(this.dataItems,u=>{w(this._valueXShowFields,m=>{let f=u.get(m);f!=null&&(n&&(f+=this.getStackedXValue(u,m)),l=Fe(l,f),h=Xe(h,f))}),w(this._valueYShowFields,m=>{let f=u.get(m);f!=null&&(n&&(f+=this.getStackedYValue(u,m)),c=Fe(c,f),d=Xe(d,f))}),t.processSeriesDataItem(u,this._valueXFields),e.processSeriesDataItem(u,this._valueYFields)}),this._min("minX",l),this._max("maxX",h),this._min("minY",c),this._max("maxY",d),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)}if((this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty||this.isDirty("minBulletDistance")){let l=this.startIndex(),h=this.endIndex(),c=this.get("minBulletDistance",0);if(c>0&&i&&(i.get("renderer").axisLength()/(h-l)>c?this._showBullets=!0:this._showBullets=!1),(this._psi!=l||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;let d=this.get("vcx",1),u=this.get("vcy",1),m=this.get("stacked",!1),f=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),f)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processYSelectionDataItem(this.dataItems[g],u,m);if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),f)t.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processXSelectionDataItem(this.dataItems[g],d,m);if((i===t||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinY");g!=null&&(this.setPrivateRaw("minY",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxY");p!=null&&(this.setPrivateRaw("maxY",p),e.markDirtyExtremes())}if((i===e||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinX");g!=null&&(this.setPrivateRaw("minX",g),t.markDirtyExtremes());let p=this.getPrivate("selectionMaxX");p!=null&&(this.setPrivateRaw("maxX",p),t.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&t.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&e.markDirtySelectionExtremes()}}}_postUpdateData(){let t=this.get("xAxis"),e=this.get("yAxis");t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,w(this.dataItems,i=>{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;t==null&&(t=this.children.push(E.new(this._root,{})),this._mainContainerMask=t,t.set("draw",(e,i)=>{let s=this.parent;if(s){let a=this._root.container.width(),o=this._root.container.height();e.moveTo(-a,-o),e.lineTo(-a,o*2),e.lineTo(a*2,o*2),e.lineTo(a*2,-o),e.lineTo(-a,-o),this.axisRanges.each(r=>{let n=r.axisDataItem.get("axisFill");if(s&&n){let l=n.get("draw");l&&l(e,i)}})}this.mainContainer._display.mask=t._display})),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){let t=this.chart;if(t){let e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){gt(this._reallyStackedTo,(t,e)=>{delete e._stackedSeries[this.uid]}),this._reallyStackedTo={},w(this.dataItems,t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)})}_handleRemoved(){let t=this.get("xAxis");t&&t._handleSeriesRemoved();let e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){let t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis"),s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,r=0,n=this.get("stackToNegative");this._reallyStackedTo={},w(this.dataItems,l=>{for(let h=0;h<o;h++){let c=this._couldStackTo[h],d=c.dataItems[r],u=l.get(s);if(d){let m=d.get(s);if(n)if(y(u)){if(y(m)){if(h==o-1&&l.setRaw(a,void 0),u>=0&&m>=0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}if(u<0&&m<0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}else break;else if(y(u)&&y(m)){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(t,e,i){w(this.__valueXShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))})}processYSelectionDataItem(t,e,i){w(this.__valueYShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))})}getStackedYValueWorking(t,e){let i=t.get("stackToItemY");if(i){let s=i.component;return i.get(e,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){let i=t.get("stackToItemX");if(i){let s=i.component;return i.get(e,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){let i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){let i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),r=this.get("yAxis"),n=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),n),c=r.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),d=this.getPoint(h,c),u=i.get("left",d.x),m=i.get("right",d.x),f=i.get("top",d.y),g=i.get("bottom",d.y),p=0,x=0,_=m-u,v=g-f;if(this._shouldShowBullet(h,c)){e.setPrivate("visible",!t.getPrivate("hidden"));let b=t.get("field"),T=this.get("baseAxis"),P=this.get("xAxis"),D=this.get("yAxis");if(b!=null){let C;T==P?(b=="value"?C=this._yField:b=="open"?C=this._yOpenField:b=="high"?C=this._yHighField:b=="low"&&(C=this._yLowField),C&&(c=D.getDataItemPositionY(i,C,0,this.get("vcy",1),l),d=this._yRenderer.positionToPoint(c),x=d.y,p=u+_*s)):(b=="value"?C=this._xField:b=="open"?C=this._xOpenField:b=="high"?C=this._xHighField:b=="low"&&(C=this._xLowField),C&&(h=P.getDataItemPositionX(i,C,0,this.get("vcx",1),n),d=this._xRenderer.positionToPoint(h),p=d.x,x=g-v*a))}else p=u+_*s,x=g-v*a;let M=t.get("stacked");if(M){let C=this.chart;if(T==P){let k=this._bullets[h+"_"+c];if(k){let I=k.bounds(),$=e.localBounds(),L=x;x=I.top,M=="down"?x=I.bottom-$.top:M=="auto"?C&&(L<C.plotContainer.height()/2?x=I.bottom-$.top:x+=$.bottom):x+=$.bottom}this._bullets[h+"_"+c]=e}else{let k=this._bullets[h+"_"+c];if(k){let I=k.bounds(),$=e.localBounds(),L=p;p=I.right,M=="down"?p=I.left-$.right:M=="auto"?C&&(L<C.plotContainer.width()/2?p=I.left-$.right:p-=$.left):p-=$.left}this._bullets[h+"_"+c]=e}}e.isType("Label")&&(e.setPrivate("maxWidth",Math.abs(_)),e.setPrivate("maxHeight",Math.abs(v))),e.setAll({x:p,y:x})}else e.setPrivate("visible",!1)}}_shouldShowBullet(t,e){return this._showBullets}setDataSet(t){if(this._dataSets[t]){this._handleDataSetChange(),this._dataItems=this._dataSets[t],this._markDataSetDirty(),this._dataSetId=t;let e="datasetchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,id:t})}}resetGrouping(){gt(this._dataSets,(t,e)=>{e!=this._mainDataItems&&w(e,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){w(this._dataItems,t=>{let e=t.bullets;e&&w(e,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return Ct(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),o=this.get("baseAxis");a!==o&&a.markDirtySelectionExtremes(),s!==o&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return Ct(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];y(e)||(e=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing");w(this._valueFields,o=>{s.push(t.animate({key:o+"Working",to:t.get(o),duration:e,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),y(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),n=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if((l===r||!l)&&w(this._valueYFields,c=>{let d=n.getPrivate("min"),u=n.baseValue();y(d)&&d>u&&(u=d),h&&(u=0),t.get(c)!=null&&s.push(t.animate({key:c+"Working",to:u,duration:e,easing:o}).waitForStop())}),l===n||!l){let c=r.getPrivate("min"),d=r.baseValue();y(c)&&c>d&&(d=c),h&&(d=0),w(this._valueXFields,u=>{t.get(u)!=null&&s.push(t.animate({key:u+"Working",to:d,duration:e,easing:o}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){let t=this._stackedSeries;t&>(t,(e,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));let e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),r=t.get("locationX",a),n=t.get("locationY",o),l=this.get("xAxis"),h=this.get("yAxis"),c=this.get("vcx",1),d=this.get("vcy",1),u=l.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*r,c,i),m=h.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*n,d,s),f=this.getPoint(u,m),g=!0;if(w(this._valueFields,p=>{t.get(p)==null&&(g=!1)}),g){let p=this.chart;p&&p.inPlot(f)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:f.x,y:f.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){let t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet"){let e=t.bullets;if(e&&e.length>0){let s=e[0].get("sprite");if(s)return s}}return this}updateLegendValue(t){let e=this.get("legendDataItem");if(e){let i=e.get("label");if(i){let a="";t?(i._setDataItem(t),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}let s=e.get("valueLabel");if(s){let a="";t?(s._setDataItem(t),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){let e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){let s=e.baseDuration(),a=e.getPrivate("selectionMin",e.getPrivate("min",0)),o=s*this.get("locationX",.5),r=-1/0;for(;r<a;){let n=this.dataItems[t];if(n){let l=n.open;if(l?r=l.valueX:r=n.get("valueX",0),r+=o,r<a)t++;else break}else break}}return t}};lt.className="XYSeries";lt.classNames=Me.classNames.concat([lt.className]);var bt=class A extends lt{constructor(){super(...arguments),this._ph=0,this._pw=0,this._columnsUpdated=!1}_makeGraphics(t,e){return this.makeColumn(e,t)}_makeFieldNames(){super._makeFieldNames();let t=this.get("xAxis"),e=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";t.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),t.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),e.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),e.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(t.inited&&e.inited)for(let o=s;o<=a;o++){let r=this.dataItems[o];this._createGraphics(r)}}_updateChildren(){let t=this.chart;t&&(this._ph=t.plotContainer.height(),this._pw=t.plotContainer.width());let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");this._colorColumns();let a=this.columns.template,o=this.get("colorByDataItem",!1);this.isDirty("fill")&&!o&&a.get("fill")==null&&a._setC("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a._setC("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&!o&&a.get("stroke")==null&&a._setC("stroke",this.get("stroke")),(this.isDirty("clustered")||this.isDirty("stacked"))&&(this._valuesDirty=!0,s&&w(s.series,g=>{g instanceof A&&g!==this&&g.markDirtyValues()}));let r=0,n=0,l=0;s&&w(s.series,g=>{if(g instanceof A){let p=g.get("stacked");p&&l==0&&n++,!p&&g.get("clustered")&&n++}g===this&&(r=n-1),l++}),this.get("clustered")||(r=0,n=1),n===0&&(n=1,r=0);let h="cellStartLocation",c="cellEndLocation",d=this._xRenderer.get(h,0),u=this._xRenderer.get(c,1),m=this._yRenderer.get(h,0),f=this._yRenderer.get(c,1);if(this._aLocationX0=d+r/n*(u-d),this._aLocationX1=d+(r+1)/n*(u-d),this._aLocationY0=m+r/n*(f-m),this._aLocationY1=m+(r+1)/n*(f-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){let g=this.dataItems.length,p=Math.max(0,this.startIndex()-2),x=Math.min(this.endIndex()+2,g-1);for(let b=0;b<p;b++)this._toggleColumn(this.dataItems[b],!1);let _=this.dataItems[p];for(let b=p;b<=x;b++){let T=this.dataItems[b];if(T.get("valueX")!=null&&T.get("valueY")!=null){if(_=T,b>0&&p>0)for(let P=b-1;P>=0;P--){let D=this.dataItems[P];if(D.get("valueX")!=null&&D.get("valueY")!=null){_=D;break}}break}else this._toggleColumn(T,!1)}this._beforeColumnsDraw();let v=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?v=2:e===s?v=0:i===s&&(v=1);for(let b=p;b<=x;b++){let T=this.dataItems[b];this._updateGraphics(T,_,v),T.get("valueX")!=null&&T.get("valueY")!=null&&(_=T)}this._afterColumnsDraw();for(let b=x+1;b<g;b++)this._toggleColumn(this.dataItems[b],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_afterNew(){super._afterNew(),this.get("colors")||this._setC("colors",le.new(this._root,{}))}_colorSet(){return this.get("colors")}_colorColumns(){let t=this.columns.template;if(!this.get("colorByDataItem")){if(this.isDirty("colorByDataItem")){w(this.dataItems,r=>{r.setRaw("fill",void 0);let n=r.get("graphics");n&&(n.remove("fill"),n.remove("stroke"))});let a=this.get("fill");a!=null&&t.get("fill")==null&&t._setC("fill",a);let o=this.get("stroke");o!=null&&t.get("stroke")==null&&t._setC("stroke",o)}return}t._computedSettings.fill&&t.remove("fill"),t._computedSettings.stroke&&t.remove("stroke");let e=this._colorSet(),i=e.get("step",1),s=e.get("startIndex",0);w(this.dataItems,(a,o)=>{let r=e.getIndex(s+o*i);a.setRaw("fill",r);let n=a.get("graphics");n&&(n._setDefault("fill",r),n._setDefault("stroke",r))})}_createGraphics(t){let e=t.get("graphics");if(!e){e=this._makeGraphics(this.columns,t),t.set("graphics",e),e._setDataItem(t),this._linkSprite(e,t);let i=t.get("fill");i!=null&&(e._setDefault("fill",i),e._setDefault("stroke",i));let s=t.get("legendDataItem");if(s){let o=s.get("markerRectangle");if(o){let r=o.states.lookup("default");w(we,n=>{let l=e.get(n,this.get(n));o.set(n,l),r.set(n,l)})}}let a=t.get("rangeGraphics");a&&w(a,o=>{o.dispose()}),a=[],t.setRaw("rangeGraphics",a),this.axisRanges.each(o=>{let r=o.container,n=this._makeGraphics(o.columns,t);a&&a.push(n),n.setPrivate("list",o.columns),r.children.push(n)})}}createAxisRange(t){return w(this.dataItems,e=>{let i=e.get("graphics");i&&(i.dispose(),e.set("graphics",void 0))}),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics"),a=this._xField,o=this._yField,r=t.get(a),n=t.get(o),l=this.get("exactLocationX",!1);if(r!=null&&n!=null){let h=this._xOpenField,c=this._yOpenField,d=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",d)),f=this.get("openLocationY",t.get("openLocationY",u)),g=s.get("width"),p=s.get("height"),x=this.get("stacked"),_=this.get("xAxis"),v=this.get("yAxis"),b=_.get("start"),T=_.get("end"),P=v.get("start"),D=v.get("end"),M,C,k,I,$=this.get("vcy",1),L=this.get("vcx",1),W=!1,V=!1;if(i==0){let Y=this._aLocationX0+m-.5,N=this._aLocationX1+d-.5;if(g instanceof kt){let X=(N-Y)*(1-g.value)/2;Y+=X,N-=X}if(M=_.getDataItemPositionX(t,h,Y,L,l),C=_.getDataItemPositionX(t,a,N,L,l),k=v.getDataItemPositionY(t,o,u,$),this._yOpenField!==this._yField)I=v.getDataItemPositionY(t,c,f,$);else if(x){let X=t.get("stackToItemY");X?I=v.getDataItemPositionY(X,o,f,X.component.get("vcy")):I=v.basePosition()}else I=v.basePosition();t.setRaw("point",{x:M+(C-M)/2,y:k}),V=!0}else if(i==1){let Y=this._aLocationY0+f-.5,N=this._aLocationY1+u-.5;if(p instanceof kt){let X=(N-Y)*(1-p.value)/2;Y+=X,N-=X}if(k=v.getDataItemPositionY(t,c,Y,$),I=v.getDataItemPositionY(t,o,N,$),C=_.getDataItemPositionX(t,a,d,L,l),this._xOpenField!==this._xField)M=_.getDataItemPositionX(t,h,m,L,l);else if(x){let X=t.get("stackToItemX");X?M=_.getDataItemPositionX(X,a,m,X.component.get("vcx"),l):M=_.basePosition()}else M=_.basePosition();W=!0,t.setRaw("point",{x:C,y:k+(I-k)/2})}else if(i==2){let Y=this._aLocationX0+m-.5,N=this._aLocationX1+d-.5;if(g instanceof kt){let X=(N-Y)*(1-g.value)/2;Y+=X,N-=X}if(M=_.getDataItemPositionX(t,h,Y,L),C=_.getDataItemPositionX(t,a,N,L),Y=this._aLocationY0+f-.5,N=this._aLocationY1+u-.5,p instanceof kt){let X=(N-Y)*(1-p.value)/2;Y+=X,N-=X}k=v.getDataItemPositionY(t,c,Y,$),I=v.getDataItemPositionY(t,o,N,$),t.setRaw("point",{x:M+(C-M)/2,y:k+(I-k)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,M,C,k,I,W,V),M<b&&C<b||M>T&&C>T||k<P&&I<=P||k>=D&&I>D||ot(M)||ot(k)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let J=t.get("rangeGraphics");J&&w(J,Y=>{this._updateSeriesGraphics(t,Y,M,C,k,I,W,V)})}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,r,n){let l=e.get("width"),h=e.get("height"),c=e.get("maxWidth"),d=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),f=t.get("point");if(f){let g=this.getPoint(f.x,f.y);f.x=g.x+this._x,f.y=g.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,y(l)){let g=(s-i-l)/2;i+=g,s-=g}if(y(c)&&c<Math.abs(s-i)){let g=(s-i-c)/2;i+=g,s-=g}if(y(h)){let g=(o-a-h)/2;a+=g,o-=g}if(y(d)&&d<Math.abs(o-a)){let g=(o-a-d)/2;a+=g,o-=g}this.get("adjustBulletPosition")&&(r&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),n&&(a=Math.min(Math.max(0,a),this._ph),o=Math.min(Math.max(0,o),this._ph))),t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),e.setPrivate("width",s-i),e.setPrivate("height",o-a),e.set("x",i),e.set("y",o-(o-a))}_handleDataSetChange(){super._handleDataSetChange(),w(this._dataItems,t=>{this._toggleColumn(t,!1)})}_applyGraphicsStates(t,e){let i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),r=i.states.lookup("riseFromPrevious");if(s||o||a||r){let n=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),c,d,u;h===n&&l.isType("ValueAxis")?(c=t.get(this._yOpenField),d=t.get(this._yField),u=e.get(this._yField)):h===l&&n.isType("ValueAxis")&&(c=t.get(this._xOpenField),d=t.get(this._xField),u=e.get(this._xField)),y(c)&&y(d)&&(d<c?s&&s.apply():a&&a.apply(),y(u)&&(d<u?o&&o.apply():r&&r.apply()))}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("graphics");e&&(this.columns.removeValue(e),e.dispose());let i=t.get("rangeGraphics");i&&w(i,s=>{let a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));let o=t.get("rangeGraphics");o&&w(o,r=>{s.push(r.hide(e))}),yield Promise.all(s)})}_toggleColumn(t,e){let i=t.get("graphics");i&&i.setPrivate("visible",e);let s=t.get("rangeGraphics");s&&w(s,o=>{o.setPrivate("visible",e)});let a=t.bullets;a&&w(a,o=>{o.setPrivate("hidden",!e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));let o=t.get("rangeGraphics");o&&w(o,r=>{s.push(r.show(e))}),yield Promise.all(s)})}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){let i=this.dataItems[this.endIndex()-1];i&&(t=i)}if(!t&&this.get("colorByDataItem")&&(t=this.dataItems[0]),e){let i=this.columns.template;if(t){let a=t.get("graphics");a&&(i=a)}let s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){let a=s.states.lookup("default");w(we,o=>{let r=i.get(o,this.get(o));s.set(o,r),a.set(o,r)})}}}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(t);let e=t.get("graphics");return e||this}};bt.className="BaseColumnSeries";bt.classNames=lt.classNames.concat([bt.className]);var ht=class extends Te{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(U.new(this._root,{})),this.gridContainer=U.new(this._root,{width:S,height:S}),this.topGridContainer=U.new(this._root,{width:S,height:S}),this.bulletsContainer=this.children.push(U.new(this._root,{isMeasured:!1,width:S,height:S,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new ge,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(U.new(this._root,{themeTags:["axis","header"],position:"absolute",background:xt.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_isSynced(){return!1}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisHeader.children.events.onAll(()=>{this.markDirty()})),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")w(e.oldValues,i=>{i.dispose()});else if(e.type==="push")this._processAxisRange(e.newValue,["range"]);else if(e.type==="setIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="insertIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="removeIndex")this.disposeDataItem(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));let t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){let e=this.get("renderer").makeLabel(new Q(this,void 0,{}),[]);e.adapters.disable("text"),e.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),e.events.disable(),this.ghostLabel=e}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;if(t>e&&([t,e]=[e,t]),!this._isSynced()){let u=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-u&&(t=-u),e>1+u&&(e=1+u)}let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),n=r;y(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),e===1&&t!==0&&(t<this.get("start",0)?s="start":s="end"),t===0&&e!==1&&(e>this.get("end",1)?s="end":s="start");let l=this.get("minZoomCount",0),h=this.dataItems;h&&h.length<l&&(l=h.length);let c=this.get("maxZoomCount",1/0);y(l)&&(r=n/l);let d=1;if(y(c)&&(d=n/c),t>e&&([t,e]=[e,t]),s==="start"?(c>0&&1/(e-t)<d&&(e=t+1/d),1/(e-t)>r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)<d&&(t=e-1/d),1/(e-t)>r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),c!=null&&l!=null&&t==this.get("start")&&e==this.get("end")){let u=this.chart;u&&u._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let u=this.get("interpolationEasing"),m,f;if(this.get("start")!=t&&(m=this.animate({key:"start",to:t,duration:i,easing:u})),this.get("end")!=e&&(f=this.animate({key:"end",to:e,duration:i,easing:u})),this._sAnimation=m,this._eAnimation=f,m)return m;if(f)return f}else this._setC("start",t),this._setC("end",e),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);let i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);let o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(t=>{this._prepareDataItem(t)}),w(this._seriesAxisRanges,t=>{this._prepareDataItem(t)})}_prepareChildren(){super._prepareChildren();let t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){let i=this.chart;i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1);if(!this._isSynced()){let o=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-o){let r=s+o;s=-o,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-r)}if(a>1+o){let r=a-1-o;a=1+o,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-r)}}}let e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){let i=this.get("tooltip");if(i){let s=e.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",F(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){let t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t;let e=this.get("renderer");e.chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{t._handleAxisSelection(this)}),this.on("end",()=>{t._handleAxisSelection(this)}),t.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),t.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){let i="forceHidden",s=t.get("label");s&&s._setC(i,e);let a=t.get("grid");a&&a._setC(i,e);let o=t.get("tick");o&&o._setC(i,e);let r=t.get("axisFill");r&&r._setC(i,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l._setC(i,e)}}_toggleDataItem(t,e){let i=t.get("label"),s="visible";i&&i.setPrivate(s,e);let a=t.get("grid");a&&a.setPrivate(s,e);let o=t.get("tick");o&&o.setPrivate(s,e);let r=t.get("axisFill");r&&r.setPrivate(s,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;let r=this.get("renderer"),n="minor",l=t.get("label");if(!l)r.makeLabel(t,e);else{let d=l.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((s=l.parent)===null||s===void 0||s.children.removeValue(l),r.makeLabel(t,e),l.dispose(),r.labels.removeValue(l))}let h=t.get("grid");if(!h)r.makeGrid(t,e);else{let d=h.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((a=h.parent)===null||a===void 0||a.children.removeValue(h),r.makeGrid(t,e),h.dispose(),r.grid.removeValue(h))}let c=t.get("tick");if(!c)r.makeTick(t,e);else{let d=!1,u=c.get("themeTags");i?u?.indexOf(n)==-1&&(d=!0):u?.indexOf(n)!=-1&&(d=!0),d&&((o=c.parent)===null||o===void 0||o.children.removeValue(c),r.makeTick(t,e),c.dispose(),r.ticks.removeValue(c))}(!i&&!t.get("axisFill")||i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&r.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(!e&&i&&!t.get("isRange")&&(e=i(this._root,this,t)),e){e.axis=this;let s=e.get("sprite");s&&(s._setDataItem(t),t.setRaw("bullet",e),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();let t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);let e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());let s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());let a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());let o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());let r=t.get("bullet");r&&r.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());let t=this.ghostLabel;if(t){if(!t.isHidden()){let s=t.localBounds(),a=Math.ceil(s.right-s.left),o=t.get("text");w(this.dataItems,r=>{let n=r.get("label");if(n&&!n.isHidden()){let l=n.localBounds();Math.ceil(l.right-l.left)>a&&(o=n.text._getText())}}),t.set("text",o)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+(i-e)*.5)}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){let t=this._snapToSeries,e=this._cursorPosition,i=this.get("tooltip"),s=this.get("renderer");y(e)&&(w(this.series,a=>{if(a.get("baseAxis")===this){let o=this.getSeriesItem(a,e,this.get("tooltipLocation"));t&&t.indexOf(a)!=-1?(a.updateLegendMarker(o),a.updateLegendValue(o),a._settings.tooltipDataItem=o):(a.showDataItemTooltip(o),a.setRaw("tooltipDataItem",o))}}),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),ot(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),e<this.get("start",0)||e>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){let e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return .05}};ht.className="Axis";ht.classNames=Te.classNames.concat([ht.className]);var it=class extends ht{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_isSynced(){return this.get("syncWithAxis")!=null}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let a=this.get("syncWithAxis");if(a){let o=()=>{this.get("autoZoom",!0)?this.markDirtySelectionExtremes():this.markDirtyExtremes()};this._syncDp=new Ue([a.onPrivate("selectionMinFinal",o),a.onPrivate("selectionMaxFinal",o),a.onPrivate("selectionStepFinal",o),a.onPrivate("minFinal",o),a.onPrivate("maxFinal",o),a.onPrivate("step",o)])}}this.isDirty("syncZeros")&&(this._dirtyExtremes=!0,this._dirtySelectionExtremes=!0);let e=!1;(this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,(t=this.ghostLabel)===null||t===void 0||t.set("text",""));let i=this.getPrivate("selectionStepFinal");if((this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){let s=this.chart,a=!1;if(s){let o=this.get("renderer").getPrivate("letter");o=="Y"?s.xAxes.each(r=>{r.className!="ValueAxis"&&(a=!0)}):o=="X"&&s.yAxes.each(r=>{r.className!="ValueAxis"&&(a=!0)})}a&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic")||i!==this.getPrivate("selectionStepFinal"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_cleanLogValue(t){if(!(t>0))return t;let e=10-Math.floor(Math.log(t)*Math.LOG10E);return e>280?t:G(t,e)}_formatText(t){let e=this.get("numberFormat"),i=this.getNumberFormatter(),s="";if(e)s=i.format(t,e);else{let a=0;this.get("logarithmic")&&y(t)&&t!=0&&(a=Math.min(ue(t),20)),a>5?s=i.format(t,"#,###."+new Array(a+1).join("#")):s=i.format(t,void 0,this.getPrivate("stepDecimalPlaces"))}return s}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){let i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+s,r=this.get("renderer").gridCount(),n=a-s,l=1,h=t,c=1,d=0;if(i){if(n=this._minLogAdjusted,n<a)for(;n<a;)n+=s;if(h=n,h<=0){let P=this._minRealLog;y(P)||(P=1),h=Math.pow(10,Math.log(P)*Math.LOG10E),s<1&&(y(this._minRealLog)?h=this._minRealLog:h=Math.pow(10,-50))}l=Math.log(o-s)*Math.LOG10E-Math.log(h)*Math.LOG10E,l>2&&(c=Math.max(1,Math.min(Math.ceil(l/Math.max(1,r)),Math.floor(l))),d=Math.floor(Math.log(h)*Math.LOG10E/c)*c,n=Math.pow(10,d))}let u=this.get("renderer"),m=u.get("minorLabelsEnabled"),f=u.get("minorGridEnabled",m),g=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E)),p=Math.round(s/g),x=2;G(p/5,10)%1==0&&(x=5),G(p/10,10)%1==0&&(x=10);let _=s/x,v=0,b=0,T=-1/0;for(;n<o;){let P;this.dataItems.length<v+1?(P=new Q(this,void 0,{}),this._dataItems.push(P),this.processDataItem(P)):P=this.dataItems[v],this._createAssets(P,[]),this._toggleDataItem(P,!0);let D=i?this._cleanLogValue(n):n;P.setRaw("value",D);let M=P.get("label");M&&M.set("text",this._formatText(D)),this._prepareDataItem(P);let C=n;if(i&&l>2?C=Math.pow(10,d+(v+1)*c):C+=s,f){let I=n+_;for(i&&(l>2&&(_=this._adjustMinMax(n,C,10).step),I=n+_);I<C-s*1e-11;){let $;this.minorDataItems.length<b+1?($=new Q(this,void 0,{}),this.minorDataItems.push($),this.processDataItem($)):$=this.minorDataItems[b],this._createAssets($,["minor"],!0),this._toggleDataItem($,!0);let L=i?this._cleanLogValue(I):I;$.setRaw("value",L);let W=$.get("label");W&&m&&W.set("text",this._formatText(L)),this._prepareDataItem($),W&&!m&&W.setPrivate("visible",!1),I+=_,b++}}if(n=C,T==n)break;let k=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(k<1&&!i){let I=Math.round(Math.abs(Math.log(Math.abs(k))*Math.LOG10E))+2;n=G(n,I)}v++,i&&l<=2&&n-s<s&&(n=s),T=n}for(let P=v;P<this.dataItems.length;P++)this._toggleDataItem(this.dataItems[P],!1);for(let P=b;P<this.minorDataItems.length;P++)this._toggleDataItem(this.minorDataItems[P],!1);w(this.series,P=>{P.inited&&P._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,n=this.valueToPosition(s+this.getPrivate("step"));y(a)&&(r=this.valueToPosition(a),n=r),t.get("isRange")&&a==null&&(n=o);let l=r,h=t.get("labelEndValue");h!=null&&(l=this.valueToPosition(h)),i.updateLabel(t.get("label"),o,l,e);let c=t.get("grid");if(i.updateGrid(c,o,r),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,n),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){let d=this.get("fillRule");d&&d(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1)),i;if(this._isSynced()){t=this.getPrivate("selectionMinFinal",t),e=this.getPrivate("selectionMaxFinal",e);let s=this.getPrivate("selectionStepFinal");y(s)&&s>0&&s<1/0?i=s:i=this._adjustMinMax(t,e,this.get("renderer").gridCount(),!0).step;let a=ue(i);this.setPrivateRaw("stepDecimalPlaces",a)}else{let s=this.get("renderer").gridCount(),a=this._adjustMinMax(t,e,s,!0),o=ue(a.step);this.setPrivateRaw("stepDecimalPlaces",o),t=G(t,o),e=G(e,o),a=this._adjustMinMax(t,e,s,!0),i=a.step,t=a.min,e=a.max}(this.getPrivate("selectionMin")!==t||this.getPrivate("selectionMax")!==e||this.getPrivate("step")!==i)&&(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",i))}positionToValue(t){let e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){let e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");y(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}valueToFinalPosition(t){let e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");y(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);if(t.get("stackToItemX")){let r=t.component;a=a*s+r.getStackedXValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);if(t.get("stackToItemY")){let r=t.component;a=a*s+r.getStackedYValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){let t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0)),i=this.get("baseValue",0);return i<t&&(i=t),i>e&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i=t.endIndex();i<t.dataItems.length&&i++;let s,a;t.get("yAxis")==this?(s="valueY",a="vcy"):t.get("xAxis")==this&&(s="valueX",a="vcx");let o=s+"Working";if(s){let r=this.series.length,n=[],l=[];for(let m=0;m<r;m++){let f=this.series[m];f.get("excludeFromTotal")||(n.push(f),l.push(f.get(a)))}let h=n.length,c=s+"Total",d=s+"Sum",u=s+"TotalPercent";for(let m=e;m<i;m++){let f=0,g=0;for(let p=0;p<h;p++){let x=n[p].dataItems[m];if(x){let _=x.get(o)*l[p];ot(_)||(f+=_,g+=Math.abs(_))}}for(let p=0;p<h;p++){let x=n[p].dataItems[m];if(x){let _=x.get(o)*l[p];ot(_)||(x.set(c,g),x.set(d,f),x.set(u,g==0?0:_/g*100))}}}}}}}}_getSelectionMinMax(){let t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max"),a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2));let r=this.get("renderer").gridCount(),n=this.get("strictMinMaxSelection"),l=this.get("strictMinMax");if(y(t)&&y(e)){let h=e,c=t;if(w(this.series,v=>{if(!v.get("ignoreMinMax")){let b,T,P=v.getPrivate("outOfSelection");if(v.get("xAxis")===this){if(!P){let D=v.getPrivate("minX"),M=v.getPrivate("maxX");(v.startIndex()!=0||v.endIndex()!=v.dataItems.length)&&(D=void 0,M=void 0),b=v.getPrivate("selectionMinX",D),T=v.getPrivate("selectionMaxX",M)}}else if(v.get("yAxis")===this&&!P){let D=v.getPrivate("minY"),M=v.getPrivate("maxY");(v.startIndex()!=0||v.endIndex()!=v.dataItems.length)&&(D=void 0,M=void 0),b=v.getPrivate("selectionMinY",D),T=v.getPrivate("selectionMaxY",M)}!v.isHidden()&&!v.isShowing()&&(y(b)&&(h=Math.min(h,b)),y(T)&&(c=Math.max(c,T)))}}),this.axisRanges.each(v=>{if(v.get("affectsMinMax")){let b=v.get("value");b!=null&&(h=Math.min(h,b),c=Math.max(c,b)),b=v.get("endValue"),b!=null&&(h=Math.min(h,b),c=Math.max(c,b))}}),h>c&&([h,c]=[c,h]),y(i)?l?h=i:h=t:l&&y(this._minReal)&&(h=this._minReal),y(s)?l?c=s:c=e:l&&y(this._maxReal)&&(c=this._maxReal),h===c){let v=h;if(h-=this._deltaMinMax,c+=this._deltaMinMax,h<t){let T=v-t;T==0&&(T=this._deltaMinMax),h=v-T,c=v+T,l=!0}let b=this._adjustMinMax(h,c,r,l);h=b.min,c=b.max}let d=h,u=c,m=c-h;h-=m*a,c+=m*o;let f=this._adjustMinMax(h,c,r);h=f.min,c=f.max,h=Z(h,t,e),c=Z(c,t,e),f=this._adjustMinMax(h,c,r,!0),l||(h=f.min,c=f.max);let g=this.get("syncWithAxis");if(g&&(f=this._syncAxes(h,c,f.step,g.getPrivate("selectionMinFinal",g.getPrivate("minFinal",0)),g.getPrivate("selectionMaxFinal",g.getPrivate("maxFinal",1)),g.getPrivate("selectionStepFinal",g.getPrivate("step",1))),h=f.min,c=f.max),l&&!g&&(y(i)&&(h=Math.max(h,i)),y(s)&&(c=Math.min(c,s))),n&&!g&&(h=d-(u-d)*a,c=u+(u-d)*o),l&&!g){y(i)?h=i:h=d,y(s)?c=s:c=u,c-h<=1e-8&&(h-=this._deltaMinMax,c+=this._deltaMinMax);let v=c-h;h-=v*a,c+=v*o}this.get("logarithmic")&&(h<=0&&(h=d*(1-Math.min(a,.99))),h<t&&(h=t),c>e&&(c=e));let p=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),x=G(this.valueToFinalPosition(h),p),_=G(this.valueToFinalPosition(c),p);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",f.step),this.zoom(x,_)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2)));let r=1/0;if(w(this.series,_=>{if(!_.get("ignoreMinMax")){let v,b;if(_.get("xAxis")===this?(v=_.getPrivate("minX"),b=_.getPrivate("maxX")):_.get("yAxis")===this&&(v=_.getPrivate("minY"),b=_.getPrivate("maxY")),y(v)&&y(b)){i=Math.min(i,v),s=Math.max(s,b);let T=b-v;T<=0&&(T=Math.abs(b/100)),T<r&&(r=T)}}}),this.axisRanges.each(_=>{if(_.get("affectsMinMax")){let v=_.get("value");v!=null&&(i=Math.min(i,v),s=Math.max(s,v)),v=_.get("endValue"),v!=null&&(i=Math.min(i,v),s=Math.max(s,v))}}),this.get("logarithmic")){let _=this.get("treatZeroAs");y(_)&&i<=0&&(i=_),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(i===0&&s===0&&(s=.9,i=-.9),y(t)&&(i=t),y(e)&&(s=e),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);let n=i,l=s,h=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,y(h)&&(i=h),y(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&n>=0&&(i=0),s>0&&l<=0&&(s=0)),this._minReal=i,this._maxReal=s;let d=this.get("strictMinMax"),u=this.get("strictMinMaxSelection",!1);u&&(d=u);let m=d;y(e)&&(m=!0);let f=this.get("renderer").gridCount(),g=this._adjustMinMax(i,s,f,m);if(i=g.min,s=g.max,g=this._adjustMinMax(i,s,f,!0),i=g.min,s=g.max,d){y(t)?i=t:i=this._minReal,y(e)?s=e:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let _=s-i;i-=_*a,s+=_*o}h=this.adapters.fold("min",i),c=this.adapters.fold("max",s),y(h)&&(i=h),y(c)&&(s=c),r==1/0&&(r=s-i);let p=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=G(i,p),s=G(s,p);let x=this.get("syncWithAxis");if(x&&(g=this._syncAxes(i,s,g.step,x.getPrivate("minFinal",x.getPrivate("min",0)),x.getPrivate("maxFinal",x.getPrivate("max",1)),x.getPrivate("step",1)),i=g.min,s=g.max,this.get("autoZoom",!0)||(this.setPrivateRaw("selectionMinFinal",i),this.setPrivateRaw("selectionMaxFinal",s),this.setPrivateRaw("selectionStepFinal",g.step))),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/r*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=n*(1-Math.min(a,.99)))),y(i)&&y(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);let _=this.get("interpolationDuration",0),v=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:_,easing:v}),this.animatePrivate({key:"max",to:s,duration:_,easing:v})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i=i/10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;r===0&&(r=Math.abs(e));let n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n));l=l/10;let h=l;s&&(h=0),s?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n)),l=l/100;let c=Math.ceil(r/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),u=Math.ceil(c/d);u>5?u=10:u<=5&&u>2&&(u=5),c=Math.ceil(c/(d*u))*d*u;let m=this.get("maxPrecision");if(y(m)){let x=be(c,m);m<Number.MAX_VALUE&&c!==x&&(c=x,c==0&&(c=1))}let f=0;d<1&&(f=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,c=G(c,f));let g=Math.floor(t/c);t=G(c*g,f);let p;return s?p=Math.floor(e/c):p=Math.ceil(e/c),p===g&&p++,e=G(c*p,f),e<o&&(e=e+c),t>a&&(t=t-c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){let i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,r=G(this.positionToValue(t),o);return i?s.format(r,i):s.format(r,void 0,o)}getSeriesItem(t,e){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(e),a,o;if(w(t.dataItems,(r,n)=>{let l=Math.abs(r.get(i)-s);(a===void 0||l<o)&&(a=n,o=l)}),a!=null)return t.dataItems[a]}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}_syncAxes(t,e,i,s,a,o){if(this.get("syncWithAxis")){let n=Math.round((a-s)/o);if(y(n)&&n>0&&n<1/0)if(this.get("syncZeros")&&s<=0&&a>=0){let l=Math.round((0-s)/o),h=n-l,c=t<0&&l==0,d=e>0&&h==0;if(!c&&!d){let u=0;l>0&&t<0&&(u=Math.abs(t)/l),h>0&&e>0&&(u=Math.max(u,e/h)),u==0&&(u=(e-t)/n),u>0&&u<1/0&&(i=this._niceStep(u),t=-i*l,e=i*h)}}else{let l=(e-t)/n;if(l>0&&l<1/0){i=this._niceStep(l);let h=Math.floor(t/i)*i,c=h+i*n;c<e&&(h=Math.ceil(e/i)*i-i*n,c=h+i*n),t>=0&&h<0&&(h=0,c=i*n),e<=0&&c>0&&(c=0,h=-(i*n)),t=h,e=c}}}return{min:t,max:e,step:i}}_niceStep(t){if(!y(t)||t<=0||t==1/0)return 1;let e=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),i=t/e;i<=1?i=1:i<=2?i=2:i<=5?i=5:i=10;let s=i*e;s>0&&s<1/0||(s=t);let a=this.get("maxPrecision");if(y(a)){let o=be(s,a);a<Number.MAX_VALUE&&s!==o&&(s=o,s==0&&(s=1))}return s}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return y(t)&&y(e)?this.getPrivate("step",1)/(t-e):.05}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.positionToValue(this.getPrivate("tooltipPosition",0));return e+=this.getPrivate("step",1)*t,e=Z(e,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(e))}};it.className="ValueAxis";it.classNames=ht.classNames.concat([it.className]);var Dt=class A extends ht{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();let t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren(),(this.isDirty("startLocation")||this.isDirty("endLocation"))&&(this._sizeDirty=!0);let t=this.dataItems.length,e=0;this._valuesDirty&&(this._itemMap={},w(this.dataItems,o=>{o.setRaw("index",e),this._itemMap[o.get("category")]=o,e++}),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){let t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0),r=this._sAnimation,n=this._eAnimation,l=this.get("start",0),h=!1;r&&!r.stopped&&(l=Number(r.to),h=!0);let c=this.get("end",1);if(n&&!n.stopped&&(c=Number(n.to),h=!0),h){let d=this._getIndices(l,c);a=d.startIndex,o=d.endIndex}for(let d=a;d<o;d++){let u=this.dataItems[d];s+=u.get("finalCellSize",1)}if(s<=i){let d=0;for(let u=a;u<t;u++){let m=this.dataItems[u];if(d+=m.get("finalCellSize",1),o=u+1,d>=i)break}if(d<i)for(let u=a-1;u>=0;u--){let m=this.dataItems[u];if(d+=m.get("finalCellSize",1),a=u,d>=i)break}this.zoomToIndexes(a,o)}else if(s>=e){let d=s;for(let u=o-1;u>=a;u--){let m=this.dataItems[u];if(d-=m.get("finalCellSize",1),d<=e){o=u+1;break}}this.zoomToIndexes(a,o)}}}_handleRangeChange(){w(this.series,t=>{let e=t.get("baseAxis"),i=t.get("xAxis"),s=t.get("yAxis");if(i instanceof A&&s instanceof A)t._markDirtyAxes();else if(e===this){let a,o,r=s;if(i===e?(t.get("categoryXField")&&(a="categoryX"),t.get("openCategoryXField")&&(o="openCategoryX")):s===e&&(t.get("categoryYField")&&(a="categoryY"),t.get("openCategoryYField")&&(o="openCategoryY"),r=i),r instanceof it&&(a||o)){let n=this.startIndex(),l=this.endIndex()-1,h=-1,c=0;for(let u=0,m=t.dataItems.length;u<m;u++){let f=t.dataItems[u],g=NaN,p=NaN;if(a&&(g=p=this.categoryToIndex(f.get(a))),o){let x=this.categoryToIndex(f.get(o));y(x)&&(g=y(g)?Math.min(g,x):x,p=y(p)?Math.max(p,x):x)}y(g)&&g<=l&&p>=n&&(h==-1&&(h=u),c=u+1)}h==-1&&(h=0),t.setPrivate("startIndex",h),t.setPrivate("endIndex",c);let d=!1;for(let u=h;u<c;u++){let m=t.dataItems[u];if(w(t.__valueXShowFields,f=>{m.get(f)!=null&&(d=!0)}),w(t.__valueYShowFields,f=>{m.get(f)!=null&&(d=!0)}),d)break}t.setPrivate("outOfSelection",!d)}t._markDirtyAxes()}})}_prepareAxisItems(){var t;let e=this.get("renderer"),i=this.dataItems.length,s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;let o=e.get("minorLabelsEnabled"),r=e.get("minorGridEnabled",o),n=e.axisLength()/Math.max(e.get("minGridDistance"),1),l=Math.max(1,Math.min(i,Math.ceil((a-s)/n)));y(l)||(l=1),s=Math.floor(s/l)*l,this._frequency=l;for(let c=0;c<i;c++)this._toggleDataItem(this.dataItems[c],!1);let h=this.dataItems[s].get("index",0);for(let c=s;c<a;c=c+l){let d=this.dataItems[c];this._createAssets(d,[]),this._toggleDataItem(d,!0);let u=l;r&&(u=1),this._prepareDataItem(d,h,u),h++}if(e.get("minorGridEnabled"))for(let c=s;c<a;c++){let d=this.dataItems[c];c%l!=0&&(this._createAssets(d,["minor"],!0),this._toggleDataItem(d,!0),this._prepareDataItem(d,0,1),o||(t=d.get("label"))===null||t===void 0||t.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(t,e,i){let s=this.get("renderer"),a=t.get("categoryLocation",0),o=t.get("endCategoryLocation",1),r=t.get("index");y(r)||(r=this.categoryToIndex(t.get("category")));let n=this.indexToPosition(r,a),l=t.get("endCategory"),h;l?(h=this.categoryToIndex(l),y(h)||(h=r)):h=r;let c=this.indexToPosition(h,o),d,u;if(t.get("isRange")){if(d=h,!y(r)){this._toggleDataItem(t,!1);return}}else d=r+this._frequency-1;u=this.indexToPosition(d,o),s.updateLabel(t.get("label"),n,c,i),s.updateGrid(t.get("grid"),n,c),s.updateTick(t.get("tick"),n,c,i),s.updateFill(t.get("axisFill"),n,u),this._processBullet(t),s.updateBullet(t.get("bullet"),n,c);let m=this.get("fillRule");m&&m(t,e)}startIndex(){let t=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),t-1)}endIndex(){let t=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",t),t))}baseValue(){}basePosition(){return 0}getX(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getY(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getDataItemPositionX(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}indexToPosition(t,e,i){let s=this.dataItems.length,a=0;if(s==0||(t>=s&&(t=s-1,e=1),y(e)||(e=.5),!y(t)))return 0;let o=this.get("startLocation",0),r=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=o,s-=1-r,a=(t+e-o)/s;else{let n=i?"finalCellSize":"cellSize",l=this.dataItems,h=0;w(this.dataItems,u=>{h+=u.get(n,1)}),h-=o*l[0].get(n,1),h-=(1-r)*l[l.length-1].get(n,1);let c=0;for(let u=0;u<t;u++)c+=l[u].get(n,1);let d=l[t].get(n,1);a=(c+e*d-o*l[0].get(n,1))/h}if(!i){let n=this.dataItems[t];n&&(a+=n.get("deltaPosition",0))}return a}categoryToPosition(t){let e=this._itemMap[t];return e?this.indexToPosition(e.get("index")):NaN}categoryToIndex(t){let e=this._itemMap[t];return e?e.get("index"):NaN}dataItemToPosition(t){return this.indexToPosition(t.get("index"))}roundAxisPosition(t,e){return t+=(.5-e)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(t),e)}axisPositionToIndex(t){let e=this.dataItems.length;if(e===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];w(this.dataItems,l=>{let h=l.get("cellSize",1);s.push(h),i+=h});let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,n=0;for(let l=0;l<e;l++){let h=s[l];if(r<n+h)return l;n+=h}return e-1}else return Z(Math.floor(t*e),0,e-1)}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=i.get("label");if(s)return Ke(s,this.get("tooltipText",""))}}_updateTooltipText(t,e){t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]),t.label.text.markDirtyText()}getSeriesItem(t,e){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],r=o.get("category");if(a&&o&&a.get(i)===r)return a;for(let n=0,l=t.dataItems.length;n<l;n++){let h=t.dataItems[n];if(h.get(i)===r)return h}}}_getIndices(t,e){let i=this.dataItems.length,s=0,a=i,o="cellSize";if(this.get("cellSizeField")){let r=0,n=this.dataItems;if(n.length==0)return{startIndex:0,endIndex:0};w(n,h=>{r+=h.get(o,1)}),r-=this.get("startLocation",0)*n[0].get(o,1),r-=(1-this.get("endLocation",1))*n[n.length-1].get(o,1);let l=0;for(let h=0;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>Math.round(t*r)){s=h;break}for(let h=s+1;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>=Math.round(e*r)){a=h+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.getPrivate("tooltipPosition",0),i=Z(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}};Dt.className="CategoryAxis";Dt.classNames=ht.classNames.concat([Dt.className]);var Wt=class extends Dt{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareChildren(){this.isDirty("baseInterval")&&(this._sizeDirty=!0),super._prepareChildren()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));let t=this.get("renderer"),e=this.dataItems.length;if(e===0)return;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s<e&&s++;let a=t.axisLength()/Math.max(t.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),o=Math.min(e,Math.ceil((s-i)/a));i=Math.floor(i/o)*o,this._frequency=o;for(let v=0;v<e;v++)this._toggleDataItem(this.dataItems[v],!1);let r=Number(this.dataItems[i].get("category")),n=Number(this.dataItems[s-1].get("category")),l=n-r;s-i<a&&(l=n-r-((n-r)/this.baseDuration()-(s-i))*this.baseDuration());let h=Rt(0,l,a,this.get("gridIntervals")),c=Ot(h.timeUnit),d=this.getPrivate("baseInterval");q(h)<this.baseDuration()&&(h=Object.assign({},d));let u=this.get("dateFormats"),m=-1/0,f=-1/0,g=-1/0,p,x=[],_=!1;for(let v=i;v<s;v++){let b=this.dataItems[v],T=b.get("index"),P=!1,D=Number(b.get("category")),M=new Date(D),C=ei(M,h.timeUnit);p=u[h.timeUnit];let k=!1;h.timeUnit!="year"&&h.timeUnit!="week"&&c&&this.get("markUnitChange")&&y(m)&&Ut(D,m,c,this._root.utc)&&(p=this.get("periodChangeDateFormats")[h.timeUnit],T-o*.5<f&&x.pop(),x.push({format:p,dataItem:b}),_=!0,k=!0,f=T,g=C);let I=!1;h.timeUnit==="day"||h.timeUnit==="week"?T-f>=o&&(I=!0):C%h.count===0&&C!=g&&(I=!0),!k&&I&&(T-o*.7<f&&_&&(P=!0),P||(x.push({format:p,dataItem:b}),f=T,g=C),_=!1),m=D}if(x.length>0){let v=x[0].dataItem.get("index",0);w(x,b=>{let T=b.dataItem,P=b.format;this._createAssets(T,[]),this._toggleDataItem(T,!0);let D=Number(T.get("category")),M=new Date(D),C=T.get("label");C&&C.set("text",this._root.dateFormatter.format(M,P)),v++,this._prepareDataItem(T,v,o)})}}baseDuration(){return q(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",s))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}};Wt.className="CategoryDateAxis";Wt.classNames=Dt.classNames.concat([Wt.className]);var wt=class extends it{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=q(t)}_prepareChildren(){(this.isDirty("startLocation")||this.isDirty("endLocation"))&&(this._dirtyExtremes=!0),(this.isDirty("markUnitChange")||this.isDirty("skipFirstMinor")||this.isDirty("weekLabelLocation"))&&(this._sizeDirty=!0),super._prepareChildren()}_fixZoomFactor(){let t=this.get("maxZoomFactor");t!=null&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){this._fixZoomFactor();let i=this.getPrivate("groupInterval");if(i?this._setBaseInterval(i):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let s=this.get("groupInterval");s&&(this.setRaw("groupIntervals",[s]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))w(this.series,s=>{this._groupSeriesData(s)}),this._handleRangeChange();else{let s=this.get("baseInterval"),a=s.timeUnit+s.count;w(this.series,o=>{o.setDataSet(a),o.resetGrouping()}),this._setBaseInterval(s),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){let e=this.get("groupIntervals");if(!e)return;this._dataGrouped=!0,this._seriesDataGrouped=!0;let i=[],s=this.baseMainDuration();w(e,u=>{q(u)>s&&i.push(u)}),gt(t._dataSets,(u,m)=>{m!=t._mainDataItems&&w(m,f=>{f.dispose()})}),t._dataSets={};let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o,r=t.get("baseAxis");t.get("xAxis")===r?o=t._valueYFields:t.get("yAxis")===r&&(o=t._valueXFields);let n=t._mainDataItems,l=this.get("baseInterval"),h=l.timeUnit+l.count;t._dataSets[h]=n;let c=t.get("groupDataCallback"),d=t.get("groupDataWithOriginals",!1);c&&(d=!0),w(i,u=>{let m=-1/0,f=u.timeUnit+u.count;t._dataSets[f]=[];let g,p={},x={},_={},v={};w(o,M=>{p[M]=0,x[M]=0,_[M]=t.get(M+"Grouped"),v[M]=M+"Working"});let b=et(u.timeUnit),T=n[0],P;T&&(P=n[0].get(a));let D;w(n,M=>{let C=M.get(a),k=R(C,u.timeUnit,u.count,this._root,P),I;if(m<k-b/24)I=$t(M.dataContext),g=new Q(t,I,t._makeDataItem(I)),g.setRaw(a,k),t._dataSets[f].push(g),w(o,$=>{let L=M.get($);y(L)?(g.setRaw($,L),g.setRaw(v[$],L),x[$]=1,p[$]=L):(p[$]=0,x[$]=0)}),d&&g.set("originals",[M]),c&&D&&c(D,u),D=g;else{let $=!1;if(w(o,L=>{let W=_[L],V=M.get(L);if(V!=null){$=!0;let J=g.get(L);switch(W){case"close":g.setRaw(L,V);break;case"sum":g.setRaw(L,J+V);break;case"open":break;case"low":V<J&&g.setRaw(L,V);break;case"high":V>J&&g.setRaw(L,V);break;case"average":x[L]++,p[L]+=V;let Y=p[L]/x[L];g.setRaw(L,Y);break;case"extreme":Math.abs(V)>Math.abs(J)&&g.setRaw(L,V);break}g.setRaw(v[L],g.get(L))}}),$){let L=$t(M.dataContext);L[a]=k,g.dataContext=L}d&&g.get("originals").push(M)}m=k}),c&&D&&c(D,u)}),t._dataSetId&&t._dataSets[t._dataSetId]?t.setDataSet(t._dataSetId):t.setDataSet(h),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=Rt(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return q(i)<q(e)&&(i=Object.assign({},e)),i}getIntervalMax(t){return this._intervalMax[t.timeUnit+t.count]}getIntervalMin(t){return this._intervalMin[t.timeUnit+t.count]}_handleRangeChange(){super._handleRangeChange();let t=Math.round(this.getPrivate("selectionMin")),e=Math.round(this.getPrivate("selectionMax"));if(y(t)&&y(e)){if(this.get("endLocation")==0&&(e+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=e-t+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this._baseDuration);if(s){let o=q(s);a=Math.ceil(a/o)*o}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let o=i.timeUnit+i.count;w(this.series,r=>{r.get("baseAxis")===this&&r.setDataSet(o)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{let r="groupintervalchanged";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})})})}}w(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=Oe(i.dataItems,g=>_t(g.get(s),t)).index;o>0&&(o-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let n=pt(i.dataItems,g=>_t(g.get(s),e)).index,l=n;l>1&&l--;let h=i.dataItems[o],c=i.dataItems[l],d,u;h&&(u=h.get(s)),c&&(d=c.get(s));let m=!1;d!=null&&u!=null&&(d<t||u>e)&&(m=!0),i.setPrivate("outOfSelection",m),i.setPrivate("startIndex",o);let f=i._adjustStartIndex(o);i.getPrivate("adjustedStartIndex")!==f&&(i.setPrivate("adjustedStartIndex",f),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})),i.setPrivate("endIndex",n)}})}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return t=="day"||t=="month"||t=="year"?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(s==10||s==15?s=5:s==12?s=2:s==6?s=1:s==30?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),a=="week"&&(((e=this.getPrivate("baseInterval"))===null||e===void 0?void 0:e.timeUnit)!="week"?i={timeUnit:"day",count:1}:i={timeUnit:"week",count:1}),a=="year"&&s==1&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<4*366*24*60*60*1e3&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){let i=this._root,s=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),o=this.get("renderer"),r=this.getPrivate("baseInterval"),n=s,l=0,h=this.get("gridIntervals"),c=Rt(0,a-s,o.gridCount(),h);q(c)<this._baseDuration&&(c=Object.assign({},r));let d=q(c);this._intervalDuration=d;let u=Ot(c.timeUnit),m=i.utc,f=i.timezone;n=R(s-d,c.timeUnit,c.count,i,t);let g=n-d,p,x=this.get("dateFormats");this.setPrivateRaw("gridInterval",c);let _=o.get("minorLabelsEnabled"),v=o.get("minorGridEnabled",_),b,T=0;v&&(b=this._getMinorInterval(c),T=q(b));let P=0;for(;n<a+d;){let D;this.dataItems.length<l+1?(D=new Q(this,void 0,{}),this._dataItems.push(D),this.processDataItem(D)):D=this.dataItems[l],this._createAssets(D,[]),this._toggleDataItem(D,!0),D.setRaw("value",n),D.setRaw("labelEndValue",void 0);let M=n+et(c.timeUnit,c.count*this._getM(c.timeUnit));M=R(M,c.timeUnit,1,i),D.setRaw("endValue",M);let C=new Date(n);p=x[c.timeUnit],u&&this.get("markUnitChange")&&y(g)&&c.timeUnit!="year"&&Ut(n,g,u,m,f)&&(p=this.get("periodChangeDateFormats")[c.timeUnit]);let k=D.get("label");k&&k.set("text",i.dateFormatter.format(C,p));let I=c.count;if(c.timeUnit=="week"?k?.set("location",this.get("weekLabelLocation",0)):k?.set("location",o.labels.template.get("location")),v){I=1;let $=c.timeUnit;$=="week"&&this.get("skipFirstMinor")&&($="day");let L=n+et($,this._getM($));L=R(L,$,1,i),D.setRaw("labelEndValue",L)}if(this._prepareDataItem(D,I),g=n,n=M,b){let $=b.timeUnit,L=b.count,W=this._getM($);this.get("skipFirstMinor")||(g-=T*W);let V=R(g+T*W,$,L,i,g),J,Y=this.get("minorDateFormats",this.get("dateFormats"));for(;V<n-.01*T;){let N;this.minorDataItems.length<P+1?(N=new Q(this,void 0,{}),this.minorDataItems.push(N),this.processDataItem(N)):N=this.minorDataItems[P],this._createAssets(N,["minor"],!0),this._toggleDataItem(N,!0),N.setRaw("value",V);let X=V+et($,L*W);X=R(X,$,1,i),N.setRaw("endValue",X);let yt=new Date(V);p=Y[$];let ft=N.get("label");if(ft&&_&&ft.set("text",i.dateFormatter.format(yt,p)),this._prepareDataItem(N,1),ft&&!_&&ft.setPrivate("visible",!1),V==J)break;if(!N.get("isRange")){let st=this.get("fillRule");st&&st(N)}J=V,V=X,P++}}if(n==g)break;l++}for(let D=l;D<this.dataItems.length;D++)this._toggleDataItem(this.dataItems[D],!1);for(let D=P;D<this.minorDataItems.length;D++)this._toggleDataItem(this.minorDataItems[D],!1);w(this.series,D=>{D.inited&&D._markDirtyAxes()})}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+et(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+et(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return q(this.get("baseInterval"))}processSeriesDataItem(t,e){let i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),w(e,s=>{let a=t.get(s);if(y(a)){let o=t.open[s],r=t.close[s];if(!(a>=o&&a<=r)){let n=i.timeUnit,l=i.count;o=R(a,n,l,this._root),r=o+et(n,l*this._getM(n)),r=R(r,n,1,this._root),t.open[s]=o,t.close[s]=r}this._updateDates(o,t.component)}})}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i=i-(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!ot(i)){let a=this._root.locale.firstDayOfWeek,o=s.timeUnit,r=this._root.utc,n=this._root.timezone,l=s.count;i=R(i,o,l,this._root,this.getPrivate("min",0));let h=me(s,new Date(i),a,r,n);return n&&(i=R(i+this._baseDuration*.05,o,l,this._root,this.getPrivate("min",0)),h=me(s,new Date(i+h*e),a,r,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(this.getPrivate("min")!=null){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(y(s)){let a=new Date(s),o=this.getPrivate("baseInterval"),r=me(o,a,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return e!==!1&&(a=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(a,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);i==null&&(i=.5),o=o-(i-.5)*this._baseDuration;let r=pt(t.dataItems,n=>{let l=0;return n.open&&(l=n.open[a]),_t(l,o)});if(s||t.get("snapTooltip")){let n=t.dataItems[r.index-1],l=t.dataItems[r.index];if(n&&l&&n.open&&l.close){let h=n.open[a],c=l.close[a];if(Math.abs(o-h)>Math.abs(o-c))return l}if(n)return n;if(l)return l}else{let n=t.dataItems[r.index-1];if(n&&n.open&&n.close){let l=n.open[a],h=n.close[a];if(o>=l&&o<=h)return n}}}shouldGap(t,e,i,s){let a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(this.getPrivate("min")!=null&&this.getPrivate("max")!=null)if(this.get("groupData")){let o=this.getGroupInterval(e-t),r=this.get("baseInterval"),n=this.getIntervalMin(r),l=this.getIntervalMax(r)-1;l=R(l,o.timeUnit,o.count,this.root),l+=this._getM(o.timeUnit)*q(o),l=R(l,o.timeUnit,o.count,this.root);let h=R(n,o.timeUnit,o.count,this.root),c=R(l,o.timeUnit,o.count,this.root),d=(t-h)/(c-h),u=(e-h)/(c-h);this.zoom(d,u,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return y(t)&&y(e)?this._intervalDuration/(t-e):.05}nextPosition(t){t==null&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0)),s=this.getPrivate("baseInterval"),a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),n=R(o,s.timeUnit,s.count,this._root),l=R(r,s.timeUnit,s.count,this._root);return a+=e,a=Z(a,n+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return R(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}};wt.className="DateAxis";wt.classNames=it.classNames.concat([wt.className]);var Ht=class extends wt{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){let i=this._getDates(),s=pt(i,a=>_t(a,t));s.found||Ee(i,s.index,t)}}_updateAllDates(){if(!this._customDates){let t=new Set;w(this.series,l=>{if(l.get("ignoreMinMax"))return;let h="valueX";l.get("yAxis")==this&&(h="valueY"),w(l.dataItems,c=>{let d=c.get(h);y(d)&&c.open&&t.add(c.open[h])})}),this._dates=Array.from(t).sort((l,h)=>l-h);let e=this._dates,i=this.get("extraMax",0),s=this.get("extraMin",0),a=e.length,o=this.getPrivate("baseInterval"),r=o.count,n=o.timeUnit;if(i>0){let l=a*i,h=e[a-1];if(y(h))for(let c=a-1;c<a+l;c++)h+=et(n,r*this._getM(n)),h=R(h,n,r,this._root),e.push(h)}if(s>0){let l=a*s,h=e[0];if(y(h)){let c=[];for(let d=0;d<l;d++)h-=et(n,r),h=R(h,n,r,this._root),c.push(h);c.reverse(),e.unshift(...c)}}}}valueToPosition(t){let e=this._getDates(),i=this.get("startLocation",0),s=this.get("endLocation",1),a=e.length-i-(1-s),o=pt(e,n=>_t(n,t)),r=o.index;if(o.found)return(r-i)/a;{r>0&&(r-=1);let n=e[r],l=e[r+1];if(l){let c=l;Math.abs(c-t)<Math.abs(n-t)&&(n=c,r++)}let h=t-n;return(r-i)/a+h/this._baseDuration/a}}valueToIndex(t){let e=this._getDates(),i=pt(e,a=>_t(a,t)),s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){let e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates(),a=Math.round(s.length-e-(1-i)),o=t*a,r=Math.floor(o);return r<0&&(r=0),r>a-1&&(r=a-1),s[r]+(o-r+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){let s=this._getDates(),a=s.length,o=pt(s,l=>_t(l,t.getTime())),r=s[Math.min(o.index,a-1)];o=pt(s,l=>_t(l,e.getTime()));let n=s[o.index];o.index>=a&&(n=s[a-1]+this._baseDuration),this.zoomToValues(r,n,i)}zoomToValues(t,e,i){let s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=Z(t,s,a),e=Z(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(y(t)&&y(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());let i=this._root,s=i.utc,a=i.timezone,o=this._getDates(),r=this.get("renderer"),n=o.length,l=this._baseDuration,h=this.valueToIndex(t);h>0&&h--;let c=this.valueToIndex(e);c<n-1&&c++;let d=r.axisLength()/Math.max(r.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),u=Math.min(n,Math.ceil((c-h)/d));u=Math.max(1,u),h=Math.floor(h/u)*u,this._frequency=u,w(this.dataItems,I=>{this._toggleDataItem(I,!1)}),w(this.minorDataItems,I=>{this._toggleDataItem(I,!1)});let m=e-t-((e-t)/l-(c-h))*l,f=Rt(0,m,d,this.get("gridIntervals")),g=this.getPrivate("baseInterval"),p=q(f);p<l&&(f=Object.assign({},g),p=q(f)),this.setPrivateRaw("gridInterval",f),this._intervalDuration=p;let x=f.timeUnit,_=this.get("dateFormats"),v=Date.now();o[0]&&(v=o[0]);let b=R(this.getPrivate("selectionMin",0),x,f.count,i,v),T=r.get("minorLabelsEnabled"),P=r.get("minorGridEnabled",T),D,M=0,C;P&&(D=this._getMinorInterval(f),M=q(D));let k=this._getIndexes(b,this.getPrivate("selectionMax",b)+p,f,this.getPrivate("min",b));if(k.length>0){let I=0;this._m=0;let $=b-p*10,L=Ot(x);if(D){let V=o[k[0]];this._addMinorGrid(V-p,V,M,D)}let W=r.axisLength()/r.gridCount()*.5;w(k,V=>{var J;let Y;this.dataItems.length<I+1?(Y=new Q(this,void 0,{}),this._dataItems.push(Y),this.processDataItem(Y)):Y=this.dataItems[I];let N=o[V],X=new Date(N),yt=N;I<k.length-1?yt=o[k[I+1]]:yt+=p,Y.setRaw("value",N),Y.setRaw("endValue",yt),Y.setRaw("index",I),Y.setRaw("labelEndValue",void 0);let ft=_[x];L&&this.get("markUnitChange")&&y($)&&x!="year"&&Ut(N,$,L,s,a)&&(ft=this.get("periodChangeDateFormats")[x]),this._createAssets(Y,[]);let st=Y.get("label");st&&st.set("text",i.dateFormatter.format(X,ft)),this._toggleDataItem(Y,!0);let Mt=f.count;if(x=="week"&&Y.setRaw("labelEndValue",N),P){let at=f.timeUnit;if(at=="week"&&(at="day"),Mt>1||f.timeUnit=="week"){let H=R(N,at,1,i)+et(at,this._getM(at)),dt=this.valueToIndex(H);if(H=o[dt],H==N){let vt=o[dt+1];vt?H=vt:H+=M}Y.setRaw("labelEndValue",H)}Mt=1}if(this._prepareDataItem(Y,Mt),st&&C&&r.getPrivate("letter")=="X"){let at=C.get("label");if(at){let H=st.x(),dt=at.x();if(H-dt<W){let vt=this._pickWorse(C,Y,f);vt&&((J=vt.get("label"))===null||J===void 0||J.setPrivate("visible",!1))}}}D&&this._addMinorGrid(N,yt,M,D),I++,st&&st.getPrivate("visible")&&(C=Y),$=N})}w(this.series,I=>{I.inited&&I._markDirtyAxes()})}this._updateGhost()}_pickWorse(t,e,i){let s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return s=="hour"&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){let a=this.get("minorDateFormats",this.get("dateFormats")),o=s.timeUnit,r=t+et(o,this._getM(o));r=R(r,o,1,this._root);let n=e-i*.5,l=this._getIndexes(r,n,s,r),h=this._getDates();w(l,c=>{let d;this.minorDataItems.length<this._m+1?(d=new Q(this,void 0,{}),this.minorDataItems.push(d),this.processDataItem(d)):d=this.minorDataItems[this._m],r=h[c],d.setRaw("value",r),d.setRaw("endValue",r+i),d.setRaw("index",c),this._createAssets(d,["minor"],!0);let u=d.get("label");if(u)if(this.get("renderer").get("minorLabelsEnabled")){let m=new Date(r),f=a[o];u.set("text",this._root.dateFormatter.format(m,f))}else u.setPrivate("visible",!1);this._toggleDataItem(d,!0),this._prepareDataItem(d,1),this._m++})}_getIndexes(t,e,i,s){let a=[],o=i.timeUnit,r=i.count,n=this._getM(o),l=this.getPrivate("baseInterval"),h=this._root,c=this._getDates(),d=r-1,u=-1/0,m=et(o,n),f=et(o,r*n),g=t;for(o=="day"&&(t=s);t<=e;){t=R(t,o,r,h);let p=this.valueToIndex(t),x=c[p];if(o=="day"&&l.timeUnit=="day")this._hasDate(t)&&d++,d==r&&(t>=g-f*2&&It(a,p),d=0),t+=m,t=R(t,o,1,h);else{if(x<t){for(let _=p,v=c.length;_<v;_++)if(x=c[_],x>=t){p=_;break}}It(a,p),t+=f,t=R(t,o,r,h)}if(t==u&&(t+=f+m,t=R(t,o,r,h)),t==u)break;u=t}return a}_hasDate(t){return pt(this._getDates(),i=>re(i,t)).found}_nextTime(t,e,i){let s=Z(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}};Ht.className="GaplessDateAxis";Ht.classNames=wt.classNames.concat([Ht.className]);var jt=class extends it{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),super._afterNew()}_prepareChildren(){this.isDirty("baseUnit")&&(this._sizeDirty=!0),super._prepareChildren()}_adjustMinMax(t,e,i,s){let a,o=this.getDurationFormatter(),r=this.get("baseUnit");if(this.setRaw("maxPrecision",0),r=="millisecond"||r=="second"||r=="minute"||r=="hour"){i<=1&&(i=1),i=Math.round(i);let n=e-t;n===0&&(n=Math.abs(e));let l=n/i,h=[60,30,20,15,10,2,1],c=1;r=="hour"&&(h=[24,12,6,4,2,1]);for(let p of h)if(n/p>i){c=p;break}let d=Math.ceil((e-t)/c/i),u=Math.log(Math.abs(d))*Math.LOG10E,m=Math.pow(10,Math.floor(u))/10,f=d/m;d=qe(h,f)*m,l=c*d,t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l,a={min:t,max:e,step:l}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,r)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){let i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=G(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}};jt.className="DurationAxis";jt.classNames=it.classNames.concat([jt.className]);var Zt=class extends De{_beforeChanged(){super._beforeChanged();let t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t._setCAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){let e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){let t=this.axis;t&>(t._bullets,(e,i)=>{i.uid==this.uid&&delete t._bullets[e]}),super._dispose()}};Zt.className="AxisBullet";Zt.classNames=De.classNames.concat([Zt.className]);var Lt=class extends Pe{constructor(){super(...arguments),this._tickPoints=[]}};Lt.className="AxisLabel";Lt.classNames=Pe.classNames.concat([Lt.className]);var qt=class extends Ce{constructor(){super(...arguments),this._tickPoints=[]}};qt.className="AxisLabelRadial";qt.classNames=Ce.classNames.concat([qt.className]);var Ft=class extends Se{constructor(){super(...arguments),this._tickPoints=[]}};Ft.className="AxisTick";Ft.classNames=Se.classNames.concat([Ft.className]);var Kt=class extends Ae{constructor(){super(...arguments),this._tickPoints=[]}};Kt.className="EditableAxisLabel";Kt.classNames=Ae.classNames.concat([Kt.className]);var ct=class extends E{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new j(z.new({}),()=>Ft._new(this._root,{themeTags:F(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))),this.grid=this.addDisposer(new j(z.new({}),()=>mt._new(this._root,{themeTags:F(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))),this.axisFills=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this.labels=this.addDisposer(new j(z.new({}),()=>Lt._new(this._root,{themeTags:F(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}makeTick(t,e){let i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){let i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){let i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){let i=this.labels.make();return i.set("themeTags",F(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this._setC("isMeasured",!1);let t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){let t=this.thumb;if(t){let e=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?e.children.push(t):i=="none"&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);let e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){let e=this._thumbDownPoint;if(e){let i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t=t*(i-e),this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e),t}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis,o=a.get("start",0),r=a.get("end",1),n=o+(r-o)*(i-1e-4),l=o+(r-o)*(s+1e-4);e<n||e>l?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){let i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}};ct.className="AxisRenderer";ct.classNames=E.classNames.concat([ct.className]);var Jt=class extends ct{constructor(){super(...arguments),this.thumb=xt.new(this._root,{width:S,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})._markC("width","isMeasured","themeTags")}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");let t=this.grid.template;t._setC("height",S),t._setC("width",0),t._setC("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)})}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i._setC("x",-1e3));let s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){let o=this.chart,r=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),o){if(this.get(s)){let n=o.topAxesContainer.children;n.indexOf(e)==-1&&n.insertIndex(0,e),e.addTag(s),r.moveValue(this)}else{let n=o.bottomAxesContainer.children;n.indexOf(e)==-1&&n.moveValue(e),e.removeTag(s),r.moveValue(this,0)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(n=>{n._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e)*this._lc,t+=this._ls,t}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){let t=this.axis,e=t.x()-Nt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer._setC("x",e),t.topGridContainer._setC("x",e),t.bulletsContainer._setC("y",this.y());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginLeft",0),r=t.x()-o,n=t.parent;n&&(r-=n.get("paddingLeft",0)),a.children.length>0?(a.isComputedSetting("width")&&a.remove("width"),o=t.axisHeader.width(),t._setC("marginLeft",o+1)):a._setC("width",o),a.setAll({x:r,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();let t=this.axis;t.get("width")==null&&t._setC("width",S);let e=this._root.verticalLayout;t._setC("layout",e),t.labelsContainer.set("width",S),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("x",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t._setC("y",S),r||(o*=-1)):(t._setC("y",0),r&&(o*=-1)),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(0,o)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(e)||(e=0);let o=t.get("inside",this.get("inside",!1));this.get("opposite")?o?(t._setC("position","absolute"),t._setC("y",0)):(t._setC("position","relative"),t._setC("y",S)):o?(t._setC("y",0),t._setC("position","absolute")):(t._setC("y",void 0),t._setC("position","relative")),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){y(e)||(e=0);let s=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*s),t._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){y(e)||(e=0);let a=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=-1;if(this.get("opposite")&&(n=1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s._setC("y",l.y()+l.height()*n)}else s._setC("y",0);this.axis._bullets[o]=t,s._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){y(e)||(e=0),y(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.height(),o=this.width();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(e,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(e,a),s.lineTo(e,0))})}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,r=this.axisLength(),n=i,l="up";this.get("opposite")?e?(l="up",o=s.y,n=i):(l="down",o=s.y-i,n=i):e?(l="down",o=s.y-i,n=i):(l="up",o=s.y,n=i);let h={left:a,right:a+r,top:o,bottom:o+n},c=t.get("bounds");de(h,c)||(t.set("bounds",h),t._setC("pointerOrientation",l))}};Jt.className="AxisRendererX";Jt.classNames=ct.classNames.concat([Jt.className]);var Qt=class extends ct{constructor(){super(...arguments),this.thumb=xt.new(this._root,{height:S,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})._markC("height","isMeasured","themeTags")}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");let t=this.grid.template;t._setC("width",S),t._setC("height",0),t._setC("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())})}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i._setC("y",-1e3));let s=this.thumb,a="opposite",o="inside",r=this.chart;if(this.isDirty(a)||this.isDirty(o)){let l=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),r){if(this.get(a)){let h=r.rightAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e,0),e.addTag(a),l.moveValue(this,0)}else{let h=r.leftAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e),e.removeTag(a),l.moveValue(this)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(h=>{h._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}let n=e.labelsContainer.width();r&&(this.get(a)?s._setC("centerX",0):s._setC("centerX",n)),s.setPrivate("width",n)}processAxis(){super.processAxis();let t=this.axis;t.get("height")==null&&t._setC("height",S);let e=this._root.horizontalLayout;t._setC("layout",e),t.labelsContainer.set("height",S),t.axisHeader.set("layout",e)}_updatePositions(){let t=this.axis,e=t.y()-Nt(t.get("centerY",0),t.height());t.gridContainer._setC("y",e),t.topGridContainer._setC("y",e),t.bulletsContainer._setC("x",this.x());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginTop",0);a.children.length>0?(a.isComputedSetting("height")&&a.remove("height"),o=t.axisHeader.height(),t._setC("marginTop",o+1)):a._setC("height",o),a.setAll({y:t.y()-o,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a);let o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t._setC("x",0),r?t._setC("position","absolute"):t._setC("position","relative")):r?(t._setC("x",0),t._setC("position","absolute")):(t._setC("x",void 0),t._setC("position","relative")),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){y(e)||(e=0);let s=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*s),t._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("y",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t._setC("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(o,0)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){y(e)||(e=0);let a=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=1;if(this.get("opposite")&&(n=-1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s._setC("x",l.x()+l.width()*n)}else s._setC("x",0);this.axis._bullets[o]=t,s._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){y(e)||(e=0),y(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.width(),o=this.height();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(0,e),s.lineTo(a,e),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,e))})}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,r=this.axisLength(),n=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,n=i):(l="left",o=s.x,n=i):e?(l="left",o=s.x,n=i):(l="right",o=s.x-i,n=i);let h={left:o,right:o+n,top:a,bottom:a+r},c=t.get("bounds");de(h,c)||(t.set("bounds",h),t._setC("pointerOrientation",l))}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=e+t:t=i-t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=t-e:t=i-t,t=t/(i-e)*this._lc,t+=this._ls,t}fixPosition(t){return this.get("inversed")?t:1-t}};Qt.className="AxisRendererY";Qt.classNames=ct.classNames.concat([Qt.className]);var ut=class extends Et{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();let t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}};ut.className="Candlestick";ut.classNames=Et.classNames.concat([ut.className]);var Pt=class extends bt{constructor(){super(...arguments),this.allColumns=this.children.push(E.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new j(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:F(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:F(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),w(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()})})}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,r,n){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);let l=e.get("stroke"),h=e.get("fillOpacity",1),c=e.get("strokeOpacity",1),d=e.get("strokeWidth",1),u=e.get("fill"),m=this.getPoint(i,a),f=this.getPoint(s,o),g=t.get("point");if(g){let p=this.getPoint(g.x,g.y);g.x=p.x+this._x,g.y=p.y+this._y}i=m.x,s=f.x,a=m.y,o=f.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:l,fill:u,strokeWidth:d,strokeOpacity:c,fillOpacity:h})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,r,n)}};Pt.className="ColumnSeries";Pt.classNames=bt.classNames.concat([Pt.className]);var Tt=class extends Pt{constructor(){super(...arguments),this.columns=this.addDisposer(new j(z.new({themeTags:["autocolor"]}),()=>ut._new(this._root,{themeTags:F(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);let s=this.getRaw("xAxis"),a=this.getRaw("yAxis"),o=this.get("vcy",1),r=this.get("vcx",1),n,l,h,c,d,u,m,f,g=this.get("locationX",t.get("locationX",.5)),p=this.get("locationY",t.get("locationY",.5)),x=this.get("openLocationX",t.get("openLocationX",g)),_=this.get("openLocationY",t.get("openLocationY",p)),v;if(i==0){let b=a.getDataItemPositionY(t,this._yOpenField,1,o),T=a.getDataItemPositionY(t,this._yField,1,o);c=a.getDataItemPositionY(t,this._yLowField,1,o),f=a.getDataItemPositionY(t,this._yHighField,1,o),m=Math.max(b,T),h=Math.min(b,T);let P=this._aLocationX0+x-.5,D=this._aLocationX1+g-.5;n=s.getDataItemPositionX(t,this._xField,P+(D-P)/2,r),l=n,d=n,u=n,v="vertical"}else{let b=s.getDataItemPositionX(t,this._xOpenField,1,r),T=s.getDataItemPositionX(t,this._xField,1,r);l=s.getDataItemPositionX(t,this._xLowField,1,r),u=s.getDataItemPositionX(t,this._xHighField,1,r),d=Math.max(b,T),n=Math.min(b,T);let P=this._aLocationY0+_-.5,D=this._aLocationY1+p-.5;h=a.getDataItemPositionY(t,this._yField,P+(D-P)/2,o),c=h,m=h,f=h,v="horizontal"}this._updateCandleGraphics(t,n,l,h,c,d,u,m,f,v)}_updateCandleGraphics(t,e,i,s,a,o,r,n,l,h){let c=t.get("graphics");if(c){let d=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,n),f=this.getPoint(r,l);if(this.get("turboMode")){let g=this.allColumnsData[this.allColumnsData.length-1];g.lowX0=d.x,g.lowY0=d.y,g.lowX1=u.x,g.lowY1=u.y,g.highX0=m.x,g.highY0=m.y,g.highX1=f.x,g.highY1=f.y}else{let g=c.x(),p=c.y();c.set("lowX0",d.x-g),c.set("lowY0",d.y-p),c.set("lowX1",u.x-g),c.set("lowY1",u.y-p),c.set("highX0",m.x-g),c.set("highY0",m.y-p),c.set("highX1",f.x-g),c.set("highY1",f.y-p),c.set("orientation",h);let x=t.get("rangeGraphics");x&&w(x,_=>{_.set("lowX0",d.x-g),_.set("lowY0",d.y-p),_.set("lowX1",u.x-g),_.set("lowY1",u.y-p),_.set("highX0",m.x-g),_.set("highY0",m.y-p),_.set("highX1",f.x-g),_.set("highY1",f.y-p),_.set("orientation",h)})}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),w(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity,d=e.lowX0,u=e.lowY0,m=e.lowX1,f=e.lowY1,g=e.highX0,p=e.highY0,x=e.highX1,_=e.highY1;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.moveTo(d,u),t.lineTo(m,f),t.moveTo(g,p),t.lineTo(x,_),t.endStroke(),t.endFill()})})}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>ut._new(this._root,{themeTags:F(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template]))}};Tt.className="CandlestickSeries";Tt.classNames=Pt.classNames.concat([Tt.className]);var At=class extends ut{_draw(){let t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if(this.get("orientation")=="vertical"){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}};At.className="OHLC";At.classNames=ut.classNames.concat([At.className]);var te=class extends Tt{constructor(){super(...arguments),this.columns=this.addDisposer(new j(z.new({themeTags:["autocolor"]}),()=>At._new(this._root,{themeTags:F(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>At._new(this._root,{themeTags:F(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template]))}};te.className="OHLCSeries";te.classNames=Tt.classNames.concat([te.className]);var K=class extends lt{constructor(){super(...arguments),this._strokeGenerator=ii(),this._fillGenerator=si(),this.strokes=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))),this.fills=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0(function(t){return t[3]}),this._fillGenerator.x0(function(t){return t[2]}),this._fillGenerator.y1(function(t){return t[1]}),this._fillGenerator.x1(function(t){return t[0]}),super._afterNew()}makeStroke(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){let i=this.get("stroke");this.strokes.template._setC("stroke",i);let s=this._legendStroke;s&&s.states.lookup("default")._setC("stroke",i)}if(this.isDirty("fill")){let i=this.get("fill");this.fills.template._setC("fill",i);let s=this._legendFill;s&&s.states.lookup("default")._setC("fill",i)}if(this.isDirty("fillPattern")){let i=this.get("fillPattern");this.fills.template._setC("fillPattern",i);let s=this._legendFill;s&&s.states.lookup("default")._setC("fillPattern",i)}if(this.isDirty("curveFactory")){let i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){let i=this.dataItems;this.fills.each(c=>{c.setPrivate("visible",!1)}),this.strokes.each(c=>{c.setPrivate("visible",!1)}),this.axisRanges.each(c=>{let d=c.fills;d&&d.each(m=>{m.setPrivate("visible",!1)});let u=c.strokes;u&&u.each(m=>{m.setPrivate("visible",!1)})});let s=this.startIndex(),a=this.strokes.template.get("templateField"),o=this.fills.template.get("templateField"),r=!0,n=!0;a&&(r=!1),o&&(n=!1);for(let c=s-1;c>=0;c--){let d=i[c],u=!0,m=d.dataContext;a&&m[a]&&(r=!0),o&&m[o]&&(n=!0);for(let f=0,g=this._valueFields.length;f<g;f++)if(!y(d.get(this._valueFields[f]))){u=!1;break}if(u&&r&&n){s=c;break}}let l=i.length,h=this.endIndex();if(h<l){h++;for(let c=h;c<l;c++){let d=i[c],u=!0;for(let m=0,f=this._valueFields.length;m<f;m++)if(!y(d.get(this._valueFields[m]))){u=!1;break}if(u){h=c+1;break}}}if(s>0&&s--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=s,l==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(t=>{t.fills.clear(),t.strokes.clear()})}_startSegment(t){let e=this.dataItems,i=this._endIndex,s=i,a=this.get("autoGapCount"),o=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,l=this.fills.template;n&&n!=l&&(r.template=n),r.setPrivate("visible",!0);let h=this.makeStroke(this.strokes),c=this._strokeTemplate;c&&c!=this.strokes.template&&(h.template=c),h.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),f=this.get("vcx",1),g=this.get("vcy",1),p=this._xField,x=this._yField,_=this._xOpenField,v=this._yOpenField,b=this.get("openValueXField"),T=this.get("openValueYField");b||(_=this._xField),T||(v=this._yField);let P=this.get("stacked"),D=d.basePosition(),M=u.basePosition(),C;m===u?C=this._yField:C=this._xField;let k=[],I=[];k.push(I);let $=this.strokes.template.get("templateField"),L=this.fills.template.get("templateField"),W=this.get("locationX",.5),V=this.get("locationY",.5),J=this.get("openLocationX",W),Y=this.get("openLocationY",V),N=this.get("minDistance",0),X,yt=this.fills.template.get("visible");this.axisRanges.length>0&&(yt=!0);let ft=!1;(P||b||T)&&(ft=!0);let st={points:I,segments:k,stacked:P,getOpen:ft,basePosX:D,basePosY:M,fillVisible:yt,xField:p,yField:x,xOpenField:_,yOpenField:v,vcx:f,vcy:g,baseAxis:m,xAxis:d,yAxis:u,locationX:W,locationY:V,openLocationX:J,openLocationY:Y,minDistance:N},Mt=this._strokeTemplate,at=this._fillTemplate;for(X=t;X<s;X++){this._dindex=X;let H=e[X],dt=H.get(p),vt=H.get(x);if(dt==null||vt==null?o||(I=[],k.push(I),st.points=I):this._getPoints(H,st),$){let O=H.dataContext[$];if(O)if(O instanceof z||(O=z.new(O)),this._strokeTemplate=O,X>t){s=X;break}else Mt=O,h.template=O}if(L){let O=H.dataContext[L];if(O)if(O instanceof z||(O=z.new(O)),this._fillTemplate=O,X>t){s=X;break}else at=O,r.template=O}if(!o){let O=e[X+1];O&&m.shouldGap(H,O,a,C)&&(I=[],k.push(I),st.points=I)}}r.setRaw("userData",[t,X]),h.setRaw("userData",[t,X]),X===i&&this._endLine(I,k[0][0]),h&&this._drawStroke(h,k),r&&this._drawFill(r,k),this.axisRanges.each(H=>{let dt=H.container,vt=H.fills,O=this.makeFill(vt);dt&&dt.children.push(O),O.setPrivate("visible",!0),this._drawFill(O,k);let di=H.strokes,oe=this.makeStroke(di);dt&&dt.children.push(oe),Mt&&Mt!=this.strokes.template&&(oe.template=Mt),at&&at!=this.fills.template&&(O.template=at),oe.setPrivate("visible",!0),this._drawStroke(oe,k),O.setRaw("userData",[t,X]),oe.setRaw("userData",[t,X])})}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY),o=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1),n=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),l=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,r);if(this._shouldInclude(n)){let h=this.getPoint(n,l),c=[h.x,h.y];if(h.x+=this._x,h.y+=this._y,t.set("point",h),e.fillVisible){let d=n,u=l;if(e.baseAxis===e.xAxis?u=e.basePosY:e.baseAxis===e.yAxis&&(d=e.basePosX),e.getOpen){let f=t.get(e.xOpenField),g=t.get(e.yOpenField);if(f!=null&&g!=null){let p=t.get("openLocationX",e.openLocationX),x=t.get("openLocationY",e.openLocationY);if(e.stacked){let _=t.get("stackToItemX"),v=t.get("stackToItemY");_?(d=e.xAxis.getDataItemPositionX(_,e.xField,p,_.component.get("vcx"),o),ot(d)&&(d=e.basePosX)):e.yAxis===e.baseAxis?d=e.basePosX:d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),v?(u=e.yAxis.getDataItemPositionY(v,e.yField,x,v.component.get("vcy"),r),ot(u)&&(u=e.basePosY)):e.xAxis===e.baseAxis?u=e.basePosY:u=e.yAxis.getDataItemPositionY(t,e.yOpenField,x,e.vcy,r)}else d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),u=e.yAxis.getDataItemPositionY(t,e.yOpenField,x,e.vcy,r)}}let m=this.getPoint(d,u);c[2]=m.x,c[3]=m.y}if(e.minDistance>0){let d=c[0],u=c[1],m=c[2],f=c[3],g=this._previousPoint,p=g[0],x=g[1],_=g[2],v=g[3];(Math.hypot(d-p,u-x)>e.minDistance||m&&f&&Math.hypot(m-_,f-v)>e.minDistance)&&(i.push(c),this._previousPoint=c)}else i.push(c)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{w(e,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{w(e,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(t){super._processAxisRange(t),t.fills=new j(z.new({}),()=>E._new(this._root,{themeTags:F(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template])),t.strokes=new j(z.new({}),()=>E._new(this._root,{themeTags:F(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template]))}createLegendMarker(t){let e=this.get("legendDataItem");if(e){let i=e.get("marker"),s=e.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",xt.new(i._root,{fillOpacity:0,fill:je(0)}));let a=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;let o=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;let r=this._root.interfaceColors.get("disabled");if(a.states._createC("disabled",{fill:r,stroke:r}),o.states._createC("disabled",{fill:r,stroke:r}),this.bullets.length>0){let n=this.bullets.getIndex(0);if(n){let l=n(i._root,this,new Q(this,{legend:!0},{}));if(l){let h=l.get("sprite");h instanceof E&&h.states._createC("disabled",{fill:r,stroke:r}),h&&(this._applyBulletDefaultPaint(h),h.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(h),h.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{h.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}};K.className="LineSeries";K.classNames=lt.classNames.concat([K.className]);var Ne=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ye(this,this._t0,li(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ye(this,li(this,i=ri(this,t,e)),i);break;default:Ye(this,this._t0,i=ri(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function fe(A){function t(e){return new Ne(e,A)}return t.tension=function(e){return fe(+e)},t}function ni(A){return A<0?-1:1}function ri(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(ni(a)+ni(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function li(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Ye(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(s+r*t,i+r,o-r*e,a-r,o,a)}var ee=class extends K{_afterNew(){this._setDefault("curveFactory",fe(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",fe(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ee.className="SmoothedYLineSeries";ee.classNames=K.classNames.concat([ee.className]);var Ve=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Re(this,this._t0,ui(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Re(this,ui(this,i=ci(this,t,e)),i);break;default:Re(this,this._t0,i=ci(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ge(A){function t(e){return new Ve(e,A)}return t}function hi(A){return A<0?-1:1}function ci(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(hi(a)+hi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function ui(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Re(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(i+r,s+r*t,a-r,o-r*e,a,o)}var ie=class extends K{_afterNew(){this._setDefault("curveFactory",Ge(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ge(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ie.className="SmoothedXLineSeries";ie.classNames=K.classNames.concat([ie.className]);var se=class extends K{_afterNew(){this._setDefault("curveFactory",Ie.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ie.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};se.className="SmoothedXYLineSeries";se.classNames=K.classNames.concat([se.className]);var ae=class extends K{_afterNew(){this._setDefault("curveFactory",ai),super._afterNew()}_prepareChildren(){super._prepareChildren(),(this.isDirty("stepWidth")||this.isDirty("noRisers"))&&(this._valuesDirty=!0)}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",S).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),r=a,n=o;e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s);let l=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),h=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),c=e.xAxis.getDataItemPositionX(t,e.xField,r,e.vcx),d=e.yAxis.getDataItemPositionY(t,e.yField,n,e.vcy);if(this._shouldInclude(l)){let u=this.getPoint(l,h),m=[u.x,u.y],f=this.getPoint(c,d),g=[f.x,f.y];if(e.fillVisible){let p=l,x=h,_=c,v=d;if(e.baseAxis===e.xAxis?(x=e.basePosY,v=e.basePosY):e.baseAxis===e.yAxis&&(p=e.basePosX,_=e.basePosX),e.getOpen){let P=t.get(e.xOpenField),D=t.get(e.yOpenField);if(P!=null&&D!=null)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),r=a,n=o,e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s),e.stacked){let M=t.get("stackToItemX"),C=t.get("stackToItemY");M?(p=e.xAxis.getDataItemPositionX(M,e.xField,a,M.component.get("vcx")),_=e.xAxis.getDataItemPositionX(M,e.xField,r,M.component.get("vcx"))):e.yAxis===e.baseAxis?(p=e.basePosX,_=e.basePosX):e.baseAxis===e.xAxis&&(p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),_=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx)),C?(x=e.yAxis.getDataItemPositionY(C,e.yField,o,C.component.get("vcy")),v=e.yAxis.getDataItemPositionY(C,e.yField,n,C.component.get("vcy"))):e.xAxis===e.baseAxis?(x=e.basePosY,v=e.basePosY):e.baseAxis===e.yAxis&&(x=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),v=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy))}else p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),x=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx),v=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy)}let b=this.getPoint(p,x),T=this.getPoint(_,v);m[2]=b.x,m[3]=b.y,g[2]=T.x,g[3]=T.y}i.push(m),i.push(g),t.set("point",{x:m[0]+(g[0]-m[0])/2,y:m[1]+(g[1]-m[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}};ae.className="StepLineSeries";ae.classNames=K.classNames.concat([ae.className]);export{ht as Axis,Zt as AxisBullet,Lt as AxisLabel,qt as AxisLabelRadial,ct as AxisRenderer,Jt as AxisRendererX,Qt as AxisRendererY,Ft as AxisTick,bt as BaseColumnSeries,ut as Candlestick,Tt as CandlestickSeries,Dt as CategoryAxis,Wt as CategoryDateAxis,Pt as ColumnSeries,wt as DateAxis,he as DefaultTheme,jt as DurationAxis,Kt as EditableAxisLabel,Ht as GaplessDateAxis,mt as Grid,K as LineSeries,At as OHLC,te as OHLCSeries,ie as SmoothedXLineSeries,se as SmoothedXYLineSeries,ee as SmoothedYLineSeries,ae as StepLineSeries,it as ValueAxis,St as XYChart,zt as XYChartScrollbar,Bt as XYCursor,lt as XYSeries};
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as Et,b as Qe,c as Ae,d as ke}from"./GIOUZTHM.js";import{$ as me,D as we,E,F as xt,L as Ke,P as U,R as Pe,S as B,W as Q,X as Te,Y as Ot,Z as et,_ as q,a as ge,aa as Ut,b as ve,ba as R,c as j,ca as ti,da as Rt,ea as ei,f as G,g as be,ga as Me,h as Z,ja as Ce,la as ii,ma as si,na as Ie,oa as ai,p as qe,qa as $e,ra as Se,sa as le,y as De}from"./TZHXSIXK.js";import{O as ye,P as F,Q as de,S as je,T as Ze,a as Ct,d as ze,f as xe,k as Be,o as We,q as He,u as Nt,v as ue}from"./PLTLRYBF.js";import{a as kt,b as Xt,d as S,e as ne}from"./T2DT5I33.js";import{B as pt,C as Oe,F as Gt,I as $t,J as gt,P as Ue,T as _t,V as re,W as z,X as Je,a as ot,g as y,o as w,r as Yt,s as pe,t as It,v as _e,w as Ee}from"./6NWR2Z4F.js";import"./H6RQVSYM.js";var he=class extends Je{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:le.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:Ze.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:le.new(this._root,{saturation:0})._markC("saturation")});{let n=i("Graphics",["scrollbar","overlay"]);n.setAll({fillOpacity:.5}),B(n,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:S,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:S}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:S}),i("AxisLabel",["y"]).setAll({centerX:S}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:S}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{let n=i("Grid",["cursor","x"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Grid",["cursor","y"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),B(n,"stroke",t,"alternativeBackground")}{let n=i("Graphics",["cursor","selection"]);n.setAll({fillOpacity:.15}),B(n,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:ne,centerY:ne,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{let n=i("AxisRenderer");n.setAll({crisp:!0,strokeOpacity:0}),B(n,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:S}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:S});{let n=i("Rectangle",["axis","thumb","zoomgrip"]);n.setAll({fillOpacity:0}),B(n,"fill",t,"alternativeBackground"),n.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{let n=i("Grid");n.setAll({location:0,strokeOpacity:.15,crisp:!0}),B(n,"stroke",t,"grid")}{let n=i("Grid",["minor"]);n.setAll({location:0,strokeOpacity:.07,crisp:!0}),B(n,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{let n=i("Graphics",["axis","fill"]);n.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),B(n,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{let n=i("AxisTick");n.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),B(n,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(n,l)=>{let h=n.get("axisFill");h&&(!y(l)||l%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});let s=[{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}],a={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},o={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},r={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:_e(s),dateFormats:$t(a),periodChangeDateFormats:$t(o)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:_e(s),dateFormats:$t(a),periodChangeDateFormats:$t(o),tooltipDateFormats:r,groupIntervals:[{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}],fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=n.get("endValue"),u=h.intervalDuration(),m=h.getPrivate("baseInterval"),f=h.getPrivate("gridInterval",m),g=h.getPrivate("min",0);if(g=ti(new Date(g),f.timeUnit,f.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),c!=null&&d!=null){let p=Math.round(Math.round((c-g)/u))/2;p==Math.round(p)?l.setPrivate("visible",!0):l.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.get("index"),c=!1;(!y(h)||h%2==0)&&(c=!0),l.setPrivate("visible",c)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:n=>{let l=n.get("axisFill");if(l){let h=n.component,c=n.get("value"),d=h.getPrivate("step");y(c)&&y(d)&&(G(c/d/2,5)==Math.round(c/d/2)?l.setPrivate("visible",!1):l.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Xt(70),height:Xt(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,c/2),n.lineTo(d,c/2)}}});{let n=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(n,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();n.moveTo(0,0),n.lineTo(d,0),n.lineTo(d,c),n.lineTo(0,c),n.lineTo(0,0)}}});{let n=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});B(n,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Xt(50),height:Xt(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Xt(80),height:Xt(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{let n=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{let n=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});B(n,"fill",t,"positive"),B(n,"stroke",t,"positive")}{let n=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});B(n,"fill",t,"negative"),B(n,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{let n=i("Graphics",["rangegrip","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:l=>{l.moveTo(0,.5),l.lineTo(0,12.5),l.moveTo(2,.5),l.lineTo(2,12.5),l.moveTo(4,.5),l.lineTo(4,12.5)}}),B(n,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:ne}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:ne}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:S}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:S})}};var St=class extends $e{constructor(){super(...arguments),this.xAxes=new ve,this.yAxes=new ve,this.topAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:S,layout:this._root.verticalLayout})._markC("width","layout")),this.yAxesAndPlotContainer=this.chartContainer.children.push(U.new(this._root,{width:S,height:S,layout:this._root.horizontalLayout})._markC("width","height","layout")),this.bottomAxesContainer=this.chartContainer.children.push(U.new(this._root,{width:S,layout:this._root.verticalLayout})._markC("width","layout")),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:S,layout:this._root.horizontalLayout})._markC("height","layout")),this.plotsContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{width:S,height:S,maskContent:!1})._markC("width","height","maskContent")),this.plotContainer=this.plotsContainer.children.push(U.new(this._root,{width:S,height:S})._markC("width","height")),this.topPlotContainer=this.plotsContainer.children.push(U.new(this._root,{width:S,height:S})._markC("width","height")),this.gridContainer=this.plotContainer.children.push(U.new(this._root,{width:S,height:S,isMeasured:!1})._markC("width","height","isMeasured")),this.topGridContainer=U.new(this._root,{width:S,height:S,isMeasured:!1})._markC("width","height","isMeasured"),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(U.new(this._root,{height:S,layout:this._root.horizontalLayout})._markC("height","layout")),this.axisHeadersContainer=this.plotContainer.children.push(U.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(Qe.new(this._root,{themeTags:["zoom"],icon:E.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(he.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);let t=this._root,e=this._root.verticalLayout,i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default")._setC("opacity",1),this.chartContainer.set("layout",e);let s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s._setC("interactive",!0),s._setC("interactiveChildren",!1),s._setC("background",xt.new(t,{themeTags:["plotbackground","xy","background"]})._markC("themeTags")),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);let e=t.get("xAxis");e&&(Yt(e.series,t),e.markDirtyExtremes());let i=t.get("yAxis");i&&(Yt(i.series,t),i.markDirtyExtremes());let s=this.get("cursor");if(s){let a=s.get("snapToSeries");a&&Yt(a,t)}super._removeSeries(t)}_applyThemes(t=!1){let e=this.get("colors");e&&e.reset();let i=super._applyThemes(t);return this.series.each(s=>{this._colorize(s)}),i}handleWheel(t){let e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent,o=!1;if(We(a,this))o=!0;else return;let r=s.toLocal(t.point),n=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,c=this.get("wheelZoomPositionX"),d=this.get("wheelZoomPositionY");(e==="zoomX"||e==="zoomXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*h*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*h*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(i==="zoomX"||i==="zoomXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.x/s.width());c!=null&&(g=c);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*l*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*l*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(e==="zoomY"||e==="zoomXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*h*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*h*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(i==="zoomY"||i==="zoomXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let m=u.get("start"),f=u.get("end"),g=u.fixPosition(r.y/s.height());d!=null&&(g=d);let p=u.get("maxDeviation",0),x=Math.min(1+p,Math.max(-p,m-n*(f-m)*l*g)),_=Math.max(-p,Math.min(1+p,f+n*(f-m)*l*(1-g)));x==m&&_==f&&(o=!1),1/(_-x)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(x,_)):o=!1}}),(e==="panX"||e==="panXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("panX")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*h,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(i==="panX"||i==="panXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("panX")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*l,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(e==="panY"||e==="panXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("panY")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*h,p=m+g,x=f+g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),(i==="panY"||i==="panXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("panY")){let m=u.get("start"),f=u.get("end"),g=this._getWheelSign(u)*n*(f-m)*l,p=m-g,x=f-g,_=this._fixWheel(p,x);p=_[0],x=_[1],p==m&&x==f&&(o=!1),this._handleWheelAnimation(u.zoom(p,x))}}),o&&a.preventDefault()}_handleSetWheel(){let t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;t!=="none"||e!=="none"?(this._wheelDp=i.events.on("wheel",s=>{let a=s.originalEvent;(t!=="none"&&Math.abs(a.deltaX)!=0||e!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){let i=e-t;return t<0&&(t=0,e=t+i),e>1&&(e=1,t=e-i),[t,e]}_handlePlotDown(t){let e=t.originalEvent;if(e.button==2)return;let i=this.plotContainer,s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&Gt(i._downPoints).length>0){let o=this.xAxes.getIndex(0),r=this.yAxes.getIndex(0);o&&(this._downStartX=o.get("start",0),this._downEndX=o.get("end",1)),r&&(this._downStartY=r.get("start",0),this._downEndY=r.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};let a=this.get("panX"),o=this.get("panY");a&&this.xAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")}),o&&this.yAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")});let r="panstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){let t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){let e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){let s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent})}let i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(t){let e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){let a=t.originalEvent.pointerId;if(a&&(this._movePoints[a]=t.point,Gt(e._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point),a=this.get("panX"),o=this.get("panY");if(a){let r=this.get("scrollbarX");r&&r.events.disableType("rangechanged"),this.xAxes.each(n=>{if(n.get("panX")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.x-s.x)/e.width();n.get("renderer").get("inversed")&&(d*=-1);let u=l+d,m=h+d;m-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",m))}}),r&&r.events.enableType("rangechanged")}if(o){let r=this.get("scrollbarY");r&&r.events.disableType("rangechanged"),this.yAxes.each(n=>{if(n.get("panY")){n._isPanning=!0;let l=n._panStart,h=n._panEnd,d=(h-l)*(i.y-s.y)/e.height();n.get("renderer").get("inversed")&&(d*=-1);let u=l-d,m=h-d;m-u<1+n.get("maxDeviation",1)*2&&(n.set("start",u),n.set("end",m))}}),r&&r.events.enableType("rangechanged")}}}_handlePinch(){let t=this.plotContainer,e=0,i=[],s=[];if(gt(t._downPoints,(a,o)=>{i[e]=o;let r=this._movePoints[a];r&&(s[e]=r),e++}),i.length>1&&s.length>1){let a=t.width(),o=t.height(),r=i[0],n=i[1],l=s[0],h=s[1];if(r&&n&&l&&h){if(l=t.toLocal(l),h=t.toLocal(h),r=t.toLocal(r),n=t.toLocal(n),this.get("pinchZoomX")){let c=this._downStartX,d=this._downEndX;if(c!=null&&d!=null){r.x>n.x&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+r.x/a*(d-c),m=c+n.x/a*(d-c),f=c+l.x/a*(d-c),g=c+h.x/a*(d-c),p=Math.max(.001,m-u),x=Math.max(.001,g-f),_=p/x,v=c*_+u-f*_,b=d*_+m-g*_;this.xAxes.each(T=>{let P=T.fixPosition(v),D=T.fixPosition(b);T.zoom(P,D,0)})}}if(this.get("pinchZoomY")){let c=this._downStartY,d=this._downEndY;if(c!=null&&d!=null){r.y<n.y&&([r,n]=[n,r],[l,h]=[h,l]);let u=c+(1-r.y/o)*(d-c),m=c+(1-n.y/o)*(d-c),f=c+(1-l.y/o)*(d-c),g=c+(1-h.y/o)*(d-c),p=Math.max(.001,m-u),x=Math.max(.001,g-f),_=p/x,v=c*_+u-f*_,b=d*_+m-g*_;this.yAxes.each(T=>{let P=T.fixPosition(v),D=T.fixPosition(b);T.zoom(P,D,0)})}}}}}_handleCursorPosition(){let t=this.get("cursor");if(t){let e=t.getPrivate("point"),i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){let s=t.get("snapToSeriesBy"),a=[];w(i,n=>{if(!n.isHidden()&&!n.isHiding())if(s!="x!"&&s!="y!"){let l=n.startIndex(),h=n.endIndex();for(let c=l;c<h;c++){let d=n.dataItems[c];d&&!d.isHidden()&&a.push(d)}}else{let l=n.get("tooltipDataItem");l&&a.push(l)}});let o=1/0,r;if(w(a,n=>{let l=n.get("point");if(l){let h=0;s=="x"||s=="x!"?h=Math.abs(e.x-l.x):s=="y"||s=="y!"?h=Math.abs(e.y-l.y):h=Math.hypot(e.x-l.x,e.y-l.y),h<o&&(o=h,r=n)}}),w(i,n=>{let l=n.get("tooltip");l&&l._setDataItem(void 0)}),r){let n=r.component;n.showDataItemTooltip(r),n.setRaw("tooltipDataItem",r);let l=r.get("point");l&&t.handleMove(n.toGlobal({x:l.x-n.x(),y:l.y-n.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each(t=>{this._colorize(t)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){let t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){let t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(this._placeScrollbar("scrollbarX",e,this.topAxesContainer,this.bottomAxesContainer),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",e.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){let t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(this._placeScrollbar("scrollbarY",e,this.rightAxesContainer,this.leftAxesContainer,!0),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",e.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),e.setPrivate("positionTextFunction",i=>{let s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_placeScrollbar(t,e,i,s,a){let o=()=>{let r=e.get("opposite"),n=r?s:i,l=n.children,h=r&&a?0:l.length-1;(e.parent!=n||l.indexOf(e)!=h)&&(e.removePrivate("x"),e.removePrivate("y"),r&&a?l.moveValue(e,0):l.moveValue(e),n.markDirtyBounds(),this._root.events.once("frameended",()=>{this.isDisposed()||this._updateChartLayout()}))};e.parent||o(),this._pushPropertyDisposer(t,e.on("opposite",()=>{let r=e.parent;(r==i||r==s)&&o()}))}_processSeries(t){super._processSeries(t);let e=t.get("xAxis"),i=t.get("yAxis");It(e.series,t),It(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",()=>{t._fixPosition()})),t._posYDp=t.addDisposer(i.events.on("positionchanged",()=>{t._fixPosition()})),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t._setC("baseAxis",i):t._setC("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),w(t.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){let e=this.get("colors");if(e&&t.get("fill")==null){let o=e.next();t._setSoft("stroke",o),t._setSoft("fill",o)}let i=this.get("patterns");if(i&&t.get("fillPattern")==null){let o=i.next();t._setSoft("fillPattern",o)}let s=this.get("strokeWidths"),a=this.get("strokeDasharrays");if(s||a){let o=t.strokes;if(o&&o.template){let r=this.series.indexOf(t);s&&s.length>0&&o.template._setC("strokeWidth",s[r%s.length]),a&&a.length>0&&o.template._setC("strokeDasharray",a[r%a.length])}}}_handleCursorSelectEnd(){let t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each(r=>{if(e==="zoomX"||e==="zoomXY"){let n=r.toAxisPosition(i),l=r.toAxisPosition(a);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)}),this.yAxes.each(r=>{if(e==="zoomY"||e==="zoomXY"){let n=r.toAxisPosition(s),l=r.toAxisPosition(o);r.zoom(n,l)}r.setPrivate("updateScrollbar",!0)})}_handleScrollbar(t,e,i,s){t.each(a=>{let o=a.fixPosition(e),r=a.fixPosition(i),n=a.zoom(o,r,void 0,s),l="updateScrollbar";a.setPrivateRaw(l,!1),n?n.events.on("stopped",()=>{a.setPrivateRaw(l,!0)}):a.setPrivateRaw(l,!0)})}_processAxis(t,e){return t.events.onAll(i=>{if(i.type==="clear")w(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")e.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")e.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")e.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")e.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(t){if(!t.isDisposed()){let e=t.parent;e&&e.children.removeValue(t);let i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);let a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){let t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);let s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){var e=this.get("cursor");e&&(this.addDisposer(t.on("start",()=>{this._updateCursor()})),this.addDisposer(t.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(t)!=-1){if(e||t.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||e)&&(a._setCRaw("start",i),a._setCRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(t)!=-1&&(e||t.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||e)&&(a._setCRaw("start",i),a._setCRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&!i._isSynced()&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&!i._isSynced()&&(G(i.get("start",0),5)!=0||G(i.get("end",1),5)!=1)&&(e=!0)}),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){let e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){let o=i[a];if(o!=this){let r=o.plotContainer,n=this._root.rootPointToDocument(s),l=o._root.documentPointToRoot(n),h=r.toLocal(l);if(h.x>=-.1&&h.y>=-.1&&h.x<=r.width()+.1&&h.y<=r.height()+.1)return!0}}return!1}arrangeTooltips(){let t=this.plotContainer,e=t.width(),i=t.height(),s=this.height(),a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),r=t._display.toGlobal({x:e,y:i}),n=[],l=0,h=1/0,c=this._movePoint,d=this.get("maxTooltipDistance"),u=this.get("maxTooltipDistanceBy","xy"),m,f;y(d)&&this.series.each(p=>{if(!p.isHidden()){let x=p.get("tooltip");if(x){let _=x.get("pointTo");if(_){let v=Math.hypot(c.x-_.x,c.y-_.y);u=="x"?v=Math.abs(c.x-_.x):u=="y"&&(v=Math.abs(c.y-_.y)),v<h&&(h=v,m=p,f=_)}}}});let g=[];if(this.series.each(p=>{let x=p.get("tooltip");if(x&&!x.get("forceHidden")){let _=!1,v=x.get("pointTo");if(v){if(d>=0){let b=x.get("pointTo");if(b&&f&&p!=m){let T=Math.hypot(f.x-b.x,f.y-b.y);u=="x"?T=Math.abs(f.x-b.x):u=="y"&&(T=Math.abs(f.y-b.y)),T>d&&(_=!0)}}else d==-1&&p!=m&&(_=!0);!this.inPlot(this._tooltipToLocal(v))||!x.dataItem?_=!0:_||(l+=v.y),_||p.isHidden()||p.isHiding()?x.hide(0):(x.show(),n.push(x),g.push(p))}}}),this.setPrivate("tooltipSeries",g),this.get("arrangeTooltips")){let p=0,x=0,_=this._root.tooltipContainer,v=n.length;if(l/v>i/2+o.y){n.sort((P,D)=>re(D.get("pointTo").y,P.get("pointTo").y));let T=r.y;if(w(n,P=>{let D=P.height();x++,p+=D;let M=P.get("centerY");M instanceof kt&&(D*=M.value),D+=P.get("marginBottom",0),P.set("bounds",{left:o.x,top:o.y,right:r.x,bottom:T}),P.setPrivate("customData",{left:o.x,top:o.y,right:r.x,bottom:T}),T=Math.min(T-D,P._fy-D),P.parent==_&&_.children.moveValue(P,0)}),T<0){n.reverse();let P=T;w(n,D=>{x++;let M=D.get("bounds");if(M){let C=M.top-T,k=M.bottom-T;C<P&&(C=P,k=C+D.height()),D.set("bounds",{left:M.left,top:C,right:M.right,bottom:k}),P=M.bottom-T+D.get("marginBottom",0)}})}}else{n.reverse(),n.sort((P,D)=>re(P.get("pointTo").y,D.get("pointTo").y));let T=0;if(w(n,P=>{x++;let D=P.height();p+=D;let M=P.get("centerY");M instanceof kt&&(D*=M.value),D+=P.get("marginBottom",0),P.set("bounds",{left:o.x,top:T,right:r.x,bottom:Math.max(o.y+s,T+D)}),P.parent==_&&_.children.moveValue(P,0),T=Math.max(T+D,P._fy+D)}),T>s){n.reverse();let P=s;w(n,D=>{x++;let M=D.get("bounds");if(M){let C=M.top-(s-T),k=M.bottom-(s-T);k>P&&(k=P,C=k-D.height()),D.set("bounds",{left:M.left,top:C,right:M.right,bottom:k}),P=k-D.height()-D.get("marginBottom",0)}})}}p==0&&x>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each(t=>{t.get("zoomOut",!0)&&!t._isSynced()&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}),this.yAxes.each(t=>{t.get("zoomOut",!0)&&!t._isSynced()&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})}_dispose(){super._dispose();let t=this.get("cursor");t&&t.dispose()}};St.className="XYChart";St.classNames=$e.classNames.concat([St.className]);var zt=class extends ke{constructor(){super(...arguments),this.chart=this.children.push(St.new(this._root,{themeTags:["chart"],interactive:!1,interactiveChildren:!1,panX:!1,panY:!1,wheelX:"none",wheelY:"none"}))._markC("interactive","interactiveChildren","panX","panY","wheelX","wheelY"),this.overlay=this.children.push(E.new(this._root,{themeTags:["overlay"],interactive:!1})._markC("interactive"))}_afterNew(){this._addOrientationClass(),this._settings.themeTags=F(this._settings.themeTags,["scrollbar","xy","chart",this._settings.orientation]);let t=this.children;t.moveValue(this.thumb),t.moveValue(this.startGrip),t.moveValue(this.endGrip),this.thumb._setC("opacity",0),this.thumb.states._createC("hover",{opacity:.2});let e=this.chart.plotContainer;e._setC("interactive",!1),e.remove("background"),e.children.removeValue(this.chart.zoomOutButton),super._afterNew()}_updateThumb(){super._updateThumb(),this.overlay.set("draw",t=>{let e=this.startGrip,i=this.endGrip,s=e.x(),a=e.y(),o=i.x(),r=i.y(),n=this.height(),l=this.width();s>o&&([s,o]=[o,s]),a>r&&([a,r]=[r,a]),this.get("orientation")==="horizontal"?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,n),t.lineTo(0,n),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(l,0),t.lineTo(l,n),t.lineTo(o,n),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(l,a),t.lineTo(l,0),t.lineTo(0,0),t.moveTo(0,r),t.lineTo(0,n),t.lineTo(l,n),t.lineTo(l,r),t.lineTo(0,r))})}};zt.className="XYChartScrollbar";zt.classNames=ke.classNames.concat([zt.className]);var mt=class extends E{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}};mt.className="Grid";mt.classNames=E.classNames.concat([mt.className]);var Bt=class extends U{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(mt.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(mt.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(E.new(this._root,{themeTags:["selection","cursor"],layer:30})._markC("themeTags","layer")),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this._setCAll({width:S,height:S,isMeasured:!0,position:"absolute"}),this.states._createC("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),xe("keyboardevents")&&this._disposers.push(ze(document,"keydown",t=>{this._handleLineMove(He(t),t.ctrlKey)}))}_setUpTouch(){let t=this.chart;t&&(t.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="",s=this.chart,a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let r=a.get("renderer").get("inversed",!1),n;t=="ArrowRight"||t=="ArrowDown"?n=1:t=="ArrowLeft"||t=="ArrowUp"?n=-1:t=="Tab"&&(n=0),n!=null&&(r&&(n*=-1),this.set(i,a.nextPosition(n*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;let t=this.get("xAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",()=>{this._updateXLine(e)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;let t=this.get("yAxis");if(t){let e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",()=>{this._updateYLine(e)})))}}}_handleSyncWith(){let t=this.chart;if(t){let e=this.get("syncWith"),i=[];e&&w(e,s=>{let a=s.chart;a&&i.push(a)}),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){let t=this.get("positionX"),e=this.get("positionY");t==null&&e==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=G(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",t=>{t.moveTo(0,0),t.lineTo(0,this.height())}),this.lineY.set("draw",t=>{t.moveTo(0,0),t.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();let e=t.plotContainer;this.events.on("boundschanged",()=>{this._boundsTimeout&&this._boundsTimeout.dispose(),this._boundsTimeout=this.setTimeout(()=>{this.updateCursor()},50),this._disposers.push(this._boundsTimeout)}),xe("touchevents")&&(this._disposers.push(e.events.on("click",s=>{Be(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(e.events.on("globalpointerdown",s=>{this._handleCursorDownGlobal(s)})),this._disposers.push(e.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(e.events.on("globalpointermove",s=>{!this.get("syncWith")&&Gt(e._downPoints).length==0&&!this._downPoint&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));let i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){let e=this.chart;return e?e.inPlot(t):!1}_handleCursorDown(t){if(t.originalEvent.button==2)return;let e=t.point,i=this._display.toLocal(e),s=this.chart;this.selection.set("draw",()=>{}),s&&this._inPlot(i)&&this._startSelection(i,t)}_handleCursorDownGlobal(t){let e=this.get("clickTolerance",0);if(e<=0||this.get("behavior","none")=="none"||t.originalEvent.button==2||!this.chart)return;let s=this._display.toLocal(t.point);if(this._inPlot(s))return;let a=this.width(),o=this.height(),r=Math.max(0,-s.x,s.x-a),n=Math.max(0,-s.y,s.y-o);r>e||n>e||(s.x=Z(s.x,0,a),s.y=Z(s.y,0,o),this.selection.set("draw",()=>{}),this._startSelection(s,t))}_startSelection(t,e){if(this._downPoint=t,this.get("behavior")!="none"){this.selection.show();let a="selectstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:e.originalEvent})}let i=this._getPosition(t).x,s=this._getPosition(t).y;this.setPrivate("downPositionX",i),this.setPrivate("downPositionY",s)}_handleCursorUp(t){if(this._downPoint){let e=this.get("behavior","none");if(e!="none"){e.charAt(0)==="z"&&this.selection.hide();let i=t.point,s=this._display.toLocal(i);s.x=Z(s.x,0,this.width()),s.y=Z(s.y,0,this.height());let a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let r=!1;if((e==="zoomX"||e==="zoomXY"||e==="selectX"||e==="selectXY")&&Math.abs(s.x-a.x)>o&&(r=!0),(e==="zoomY"||e==="zoomXY"||e==="selectY"||e==="selectXY")&&Math.abs(s.y-a.y)>o&&(r=!0),r){let n="selectended";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}else{let n="selectcancelled";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){let e=this.chart;if(e&&Gt(e.plotContainer._downPoints).length>1){this._setC("forceHidden",!0);return}else this._setC("forceHidden",!1);let i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);let s=this.get("alwaysShow");if(!t){this.hide(0);return}this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let r=a.x,n=a.y,l=this._getPosition(a);this.setPrivate("point",a);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let c=this.get("positionX"),d=l.x;y(c)&&(d=c);let u=this.get("positionY"),m=l.y;y(u)&&(m=u),this.setPrivate("positionX",d),this.setPrivate("positionY",m);let f=this._getPoint(d,m);if(r=f.x,n=f.y,o.xAxes.each(g=>{g._handleCursorPosition(d,h),s&&g.handleCursorShow()}),o.yAxes.each(g=>{g._handleCursorPosition(m,h),s&&g.handleCursorShow()}),!e){o._handleCursorPosition();let g="cursormoved";this.events.isEnabled(g)&&this.events.dispatch(g,{type:g,target:this,point:t,originalEvent:i})}this._updateLines(r,n),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);let r="cursorhidden";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX._setC("x",t),this._tooltipY||this.lineY._setC("y",e),this._drawLines()}_updateSelection(t){let e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",o=>{let r=this._downPoint;r&&(i==="zoomXY"||i==="selectXY"?(o.moveTo(r.x,r.y),o.lineTo(r.x,t.y),o.lineTo(t.x,t.y),o.lineTo(t.x,r.y),o.lineTo(r.x,r.y)):i==="zoomX"||i==="selectX"?(o.moveTo(r.x,0),o.lineTo(r.x,a),o.lineTo(t.x,a),o.lineTo(t.x,0),o.lineTo(r.x,0)):(i==="zoomY"||i==="selectY")&&(o.moveTo(0,r.y),o.lineTo(s,r.y),o.lineTo(s,t.y),o.lineTo(0,t.y),o.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorHide()}),t.yAxes.each(e=>{e.handleCursorHide()}),t.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each(e=>{e.handleCursorShow()}),t.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}};Bt.className="XYCursor";Bt.classNames=U.classNames.concat([Bt.className]);function Fe(A,t){return A==null?t:t==null?A:t<A?t:A}function Xe(A,t){return A==null?t:t==null||A>t?A:t}var lt=class extends Me{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(U.new(this._root,{})),this.axisRanges=new ge,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new Q(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");let t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));let e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this._setC("maskContent",!0),this._disposers.push(this.on("xAxis",()=>{this._switchAxis("xAxis")})),this._disposers.push(this.on("yAxis",()=>{this._switchAxis("yAxis")})),this._disposers.push(this.axisRanges.events.onAll(s=>{if(s.type==="clear")w(s.oldValues,a=>{this._removeAxisRange(a)});else if(s.type==="push")this._processAxisRange(s.newValue);else if(s.type==="setIndex")this._processAxisRange(s.newValue);else if(s.type==="insertIndex")this._processAxisRange(s.newValue);else if(s.type==="removeIndex")this._removeAxisRange(s.oldValue);else if(s.type==="moveIndex")this._processAxisRange(s.value);else throw new Error("Unknown IStreamEvent type")})),this.states._createC("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames();let i=()=>{this._updateFields(),this._makeFieldNames(),this.markDirtyValues()};w([...this.valueXFields,...this.valueYFields],s=>{this.on(s+"Field",i)})}_processAxisRange(t){let e=U.new(this._root,{});t.container=e,this.children.push(e),t.series=this;let i=t.axisDataItem;i.setRaw("isRange",!0);let s=i.component;if(s){s._processAxisRange(i,["range","series"]);let a=i.get("bullet");if(a){let r=a.get("sprite");r&&r.setPrivate("visible",!1)}let o=i.get("axisFill");o&&e._setC("mask",o),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),gt(this._dataSets,(t,e)=>{w(e,i=>{i.dispose()}),e.length=0})}_removeAxisRange(t){let e=t.axisDataItem,i=e.component;e.dispose(),Yt(i._seriesAxisRanges,e);let s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&w(this.valueXFields,t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let i=this.get(t+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&w(this.valueYFields,t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let i=this.get(t+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};let t=this.chart;t&&t.series.removeValue(this);let e=this.get("xAxis");e&&pe(e.series,this);let i=this.get("yAxis");i&&pe(i.series,this)}_min(t,e){let i=Fe(this.getPrivate(t),e);this.setPrivate(t,i)}_max(t,e){let i=Xe(this.getPrivate(t),e);this.setPrivate(t,i)}_shouldMakeBullet(t){let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;let a=this.get("minBulletDistance",0);if(a>0){let o=this.startIndex(),n=this.endIndex()-o;if(e==s){if(this._xRenderer.axisLength()/n<a/5)return!1}else if(i==s&&this._yRenderer.axisLength()/n<a/5)return!1}return t.get(this._xField)!=null&&t.get(this._yField)!=null}_makeFieldNames(){let t=this.get("xAxis"),e=this.get("yAxis"),i=t.getPrivate("name"),s=ye(i),a=e.getPrivate("name"),o=ye(a),r=t.get("renderer").getPrivate("letter"),n=e.get("renderer").getPrivate("letter"),l="open",h="low",c="high",d="Show";t.className==="ValueAxis"?(this._xField=this.get(i+r+d),this._xOpenField=this.get(l+s+r+d),this._xLowField=this.get(h+s+r+d),this._xHighField=this.get(c+s+r+d)):(this._xField=i+r,this._xOpenField=l+s+r,this._xLowField=h+s+r,this._xHighField=c+s+r),e.className==="ValueAxis"?(this._yField=this.get(a+n+d),this._yOpenField=this.get(l+o+n+d),this._yLowField=this.get(h+o+n+d),this._yHighField=this.get(c+o+n+d)):(this._yField=a+n,this._yOpenField=l+o+n,this._yLowField=h+o+n,this._yHighField=c+o+n)}_fixVC(){let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),t===i?s._setC("vcy",o):(e===i||s._setC("vcy",o),s._setC("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){let t=this.get("xAxis"),e=this.get("yAxis");this._setC("x",t.x()-Nt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0)),this._setC("y",e.y()-Nt(e.get("centerY",0),e.height())-e.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_switchAxis(t){let e=this._prevSettings[t],i=this.get(t);if(e&&i&&e!==i){Yt(e.series,this);let s=t=="xAxis"?this._posXDp:this._posYDp;if(s&&s.dispose(),e.markDirtyExtremes(),this.get("baseAxis")===e)if(this._computedProperties.baseAxis){let o=this.get("xAxis"),r=this.get("yAxis");if(o&&r){let n=r.isType("CategoryAxis")||r.isType("DateAxis");this._setC("baseAxis",n?r:o)}else this._setC("baseAxis",i)}else this.set("baseAxis",i);It(i.series,this);let a=this.addDisposer(i.events.on("positionchanged",()=>{this._fixPosition()}));t=="xAxis"?this._posXDp=a:this._posYDp=a,i.markDirtyExtremes(),i._seriesAdded=!0,this._markDirtyAxes()}}_prepareChildren(){super._prepareChildren(),this._xRenderer=this.get("xAxis").get("renderer"),this._yRenderer=this.get("yAxis").get("renderer"),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),(this.isDirty("locationX")||this.isDirty("locationY")||this.isDirty("openLocationX")||this.isDirty("openLocationY")||this.isDirty("exactLocationX")||this.isDirty("exactLocationY"))&&(this._valuesDirty=!0),this._setC("width",this.get("xAxis").width()),this._setC("height",this.get("yAxis").height()),this._handleMaskBullets();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX"),a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;let o=this.get("tooltipPositionY"),r;switch(o){case"open":r=this._yOpenField;break;case"low":r=this._yLowField;break;case"high":r=this._yHighField;break;default:r=this._yField}this._tooltipFieldY=r,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();let n=this.get("stacked");if((this.isDirty("stacked")||this.isDirty("stackToNegative")&&n)&&(n?this._valuesDirty&&!this._dataProcessed||(this._valuesDirty=!0,this._stack()):(this._valuesDirty=!0,this._unstack())),this._valuesDirty&&!this._dataProcessed){this._dataProcessed=!0,n&&this._stack();let l,h,c,d;w(this.dataItems,u=>{w(this._valueXShowFields,m=>{let f=u.get(m);f!=null&&(n&&(f+=this.getStackedXValue(u,m)),l=Fe(l,f),h=Xe(h,f))}),w(this._valueYShowFields,m=>{let f=u.get(m);f!=null&&(n&&(f+=this.getStackedYValue(u,m)),c=Fe(c,f),d=Xe(d,f))}),t.processSeriesDataItem(u,this._valueXFields),e.processSeriesDataItem(u,this._valueYFields)}),this._min("minX",l),this._max("maxX",h),this._min("minY",c),this._max("maxY",d),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)}if((this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty||this.isDirty("minBulletDistance")){let l=this.startIndex(),h=this.endIndex(),c=this.get("minBulletDistance",0);if(c>0&&i&&(i.get("renderer").axisLength()/(h-l)>c?this._showBullets=!0:this._showBullets=!1),(this._psi!=l||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;let d=this.get("vcx",1),u=this.get("vcy",1),m=this.get("stacked",!1),f=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),f)e.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processYSelectionDataItem(this.dataItems[g],u,m);if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),f)t.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processXSelectionDataItem(this.dataItems[g],d,m);if((i===t||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinY");g!=null&&(this.setPrivateRaw("minY",g),e.markDirtyExtremes());let p=this.getPrivate("selectionMaxY");p!=null&&(this.setPrivateRaw("maxY",p),e.markDirtyExtremes())}if((i===e||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinX");g!=null&&(this.setPrivateRaw("minX",g),t.markDirtyExtremes());let p=this.getPrivate("selectionMaxX");p!=null&&(this.setPrivateRaw("maxX",p),t.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&t.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&e.markDirtySelectionExtremes()}}}_postUpdateData(){let t=this.get("xAxis"),e=this.get("yAxis");t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,w(this.dataItems,i=>{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;t==null&&(t=this.children.push(E.new(this._root,{})),this._mainContainerMask=t,t.set("draw",(e,i)=>{let s=this.parent;if(s){let a=this._root.container.width(),o=this._root.container.height();e.moveTo(-a,-o),e.lineTo(-a,o*2),e.lineTo(a*2,o*2),e.lineTo(a*2,-o),e.lineTo(-a,-o),this.axisRanges.each(r=>{let n=r.axisDataItem.get("axisFill");if(s&&n){let l=n.get("draw");l&&l(e,i)}})}this.mainContainer._display.mask=t._display})),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){let t=this.chart;if(t){let e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){gt(this._reallyStackedTo,(t,e)=>{delete e._stackedSeries[this.uid]}),this._reallyStackedTo={},w(this.dataItems,t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)})}_handleRemoved(){let t=this.get("xAxis");t&&t._handleSeriesRemoved();let e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){let t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis"),s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,r=0,n=this.get("stackToNegative");this._reallyStackedTo={},w(this.dataItems,l=>{for(let h=0;h<o;h++){let c=this._couldStackTo[h],d=c.dataItems[r],u=l.get(s);if(d){let m=d.get(s);if(n)if(y(u)){if(y(m)){if(h==o-1&&l.setRaw(a,void 0),u>=0&&m>=0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}if(u<0&&m<0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}else break;else if(y(u)&&y(m)){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(t,e,i){w(this.__valueXShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))})}processYSelectionDataItem(t,e,i){w(this.__valueYShowFields,s=>{let a=t.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))})}getStackedYValueWorking(t,e){let i=t.get("stackToItemY");if(i){let s=i.component;return i.get(e,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){let i=t.get("stackToItemX");if(i){let s=i.component;return i.get(e,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){let i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){let i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),r=this.get("yAxis"),n=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),n),c=r.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),d=this.getPoint(h,c),u=i.get("left",d.x),m=i.get("right",d.x),f=i.get("top",d.y),g=i.get("bottom",d.y),p=0,x=0,_=m-u,v=g-f;if(this._shouldShowBullet(h,c)){e.setPrivate("visible",!t.getPrivate("hidden"));let b=t.get("field"),T=this.get("baseAxis"),P=this.get("xAxis"),D=this.get("yAxis");if(b!=null){let C;T==P?(b=="value"?C=this._yField:b=="open"?C=this._yOpenField:b=="high"?C=this._yHighField:b=="low"&&(C=this._yLowField),C&&(c=D.getDataItemPositionY(i,C,0,this.get("vcy",1),l),d=this._yRenderer.positionToPoint(c),x=d.y,p=u+_*s)):(b=="value"?C=this._xField:b=="open"?C=this._xOpenField:b=="high"?C=this._xHighField:b=="low"&&(C=this._xLowField),C&&(h=P.getDataItemPositionX(i,C,0,this.get("vcx",1),n),d=this._xRenderer.positionToPoint(h),p=d.x,x=g-v*a))}else p=u+_*s,x=g-v*a;let M=t.get("stacked");if(M){let C=this.chart;if(T==P){let k=this._bullets[h+"_"+c];if(k){let I=k.bounds(),$=e.localBounds(),L=x;x=I.top,M=="down"?x=I.bottom-$.top:M=="auto"?C&&(L<C.plotContainer.height()/2?x=I.bottom-$.top:x+=$.bottom):x+=$.bottom}this._bullets[h+"_"+c]=e}else{let k=this._bullets[h+"_"+c];if(k){let I=k.bounds(),$=e.localBounds(),L=p;p=I.right,M=="down"?p=I.left-$.right:M=="auto"?C&&(L<C.plotContainer.width()/2?p=I.left-$.right:p-=$.left):p-=$.left}this._bullets[h+"_"+c]=e}}e.isType("Label")&&(e.setPrivate("maxWidth",Math.abs(_)),e.setPrivate("maxHeight",Math.abs(v))),e.setAll({x:p,y:x})}else e.setPrivate("visible",!1)}}_shouldShowBullet(t,e){return this._showBullets}setDataSet(t){if(this._dataSets[t]){this._handleDataSetChange(),this._dataItems=this._dataSets[t],this._markDataSetDirty(),this._dataSetId=t;let e="datasetchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,id:t})}}resetGrouping(){gt(this._dataSets,(t,e)=>{e!=this._mainDataItems&&w(e,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){w(this._dataItems,t=>{let e=t.bullets;e&&w(e,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return Ct(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),o=this.get("baseAxis");a!==o&&a.markDirtySelectionExtremes(),s!==o&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return Ct(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];y(e)||(e=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing");w(this._valueFields,o=>{s.push(t.animate({key:o+"Working",to:t.get(o),duration:e,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),y(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),n=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if((l===r||!l)&&w(this._valueYFields,c=>{let d=n.getPrivate("min"),u=n.baseValue();y(d)&&d>u&&(u=d),h&&(u=0),t.get(c)!=null&&s.push(t.animate({key:c+"Working",to:u,duration:e,easing:o}).waitForStop())}),l===n||!l){let c=r.getPrivate("min"),d=r.baseValue();y(c)&&c>d&&(d=c),h&&(d=0),w(this._valueXFields,u=>{t.get(u)!=null&&s.push(t.animate({key:u+"Working",to:d,duration:e,easing:o}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){let t=this._stackedSeries;t&>(t,(e,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));let e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),r=t.get("locationX",a),n=t.get("locationY",o),l=this.get("xAxis"),h=this.get("yAxis"),c=this.get("vcx",1),d=this.get("vcy",1),u=l.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*r,c,i),m=h.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*n,d,s),f=this.getPoint(u,m),g=!0;if(w(this._valueFields,p=>{t.get(p)==null&&(g=!1)}),g){let p=this.chart;p&&p.inPlot(f)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:f.x,y:f.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){let t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet"){let e=t.bullets;if(e&&e.length>0){let s=e[0].get("sprite");if(s)return s}}return this}updateLegendValue(t){let e=this.get("legendDataItem");if(e){let i=e.get("label");if(i){let a="";t?(i._setDataItem(t),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}let s=e.get("valueLabel");if(s){let a="";t?(s._setDataItem(t),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){let e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){let s=e.baseDuration(),a=e.getPrivate("selectionMin",e.getPrivate("min",0)),o=s*this.get("locationX",.5),r=-1/0;for(;r<a;){let n=this.dataItems[t];if(n){let l=n.open;if(l?r=l.valueX:r=n.get("valueX",0),r+=o,r<a)t++;else break}else break}}return t}};lt.className="XYSeries";lt.classNames=Me.classNames.concat([lt.className]);var bt=class A extends lt{constructor(){super(...arguments),this._ph=0,this._pw=0,this._columnsUpdated=!1}_makeGraphics(t,e){return this.makeColumn(e,t)}_makeFieldNames(){super._makeFieldNames();let t=this.get("xAxis"),e=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";t.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),t.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),e.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),e.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();let t=this.get("xAxis"),e=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(t.inited&&e.inited)for(let o=s;o<=a;o++){let r=this.dataItems[o];this._createGraphics(r)}}_updateChildren(){let t=this.chart;t&&(this._ph=t.plotContainer.height(),this._pw=t.plotContainer.width());let e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");this._colorColumns();let a=this.columns.template,o=this.get("colorByDataItem",!1);this.isDirty("fill")&&!o&&a.get("fill")==null&&a._setC("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a._setC("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&!o&&a.get("stroke")==null&&a._setC("stroke",this.get("stroke")),(this.isDirty("clustered")||this.isDirty("stacked"))&&(this._valuesDirty=!0,s&&w(s.series,g=>{g instanceof A&&g!==this&&g.markDirtyValues()}));let r=0,n=0,l=0;s&&w(s.series,g=>{if(g instanceof A){let p=g.get("stacked");p&&l==0&&n++,!p&&g.get("clustered")&&n++}g===this&&(r=n-1),l++}),this.get("clustered")||(r=0,n=1),n===0&&(n=1,r=0);let h="cellStartLocation",c="cellEndLocation",d=this._xRenderer.get(h,0),u=this._xRenderer.get(c,1),m=this._yRenderer.get(h,0),f=this._yRenderer.get(c,1);if(this._aLocationX0=d+r/n*(u-d),this._aLocationX1=d+(r+1)/n*(u-d),this._aLocationY0=m+r/n*(f-m),this._aLocationY1=m+(r+1)/n*(f-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){let g=this.dataItems.length,p=Math.max(0,this.startIndex()-2),x=Math.min(this.endIndex()+2,g-1);for(let b=0;b<p;b++)this._toggleColumn(this.dataItems[b],!1);let _=this.dataItems[p];for(let b=p;b<=x;b++){let T=this.dataItems[b];if(T.get("valueX")!=null&&T.get("valueY")!=null){if(_=T,b>0&&p>0)for(let P=b-1;P>=0;P--){let D=this.dataItems[P];if(D.get("valueX")!=null&&D.get("valueY")!=null){_=D;break}}break}else this._toggleColumn(T,!1)}this._beforeColumnsDraw();let v=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?v=2:e===s?v=0:i===s&&(v=1);for(let b=p;b<=x;b++){let T=this.dataItems[b];this._updateGraphics(T,_,v),T.get("valueX")!=null&&T.get("valueY")!=null&&(_=T)}this._afterColumnsDraw();for(let b=x+1;b<g;b++)this._toggleColumn(this.dataItems[b],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_afterNew(){super._afterNew(),this.get("colors")||this._setC("colors",le.new(this._root,{}))}_colorSet(){return this.get("colors")}_colorColumns(){let t=this.columns.template;if(!this.get("colorByDataItem")){if(this.isDirty("colorByDataItem")){w(this.dataItems,r=>{r.setRaw("fill",void 0);let n=r.get("graphics");n&&(n.remove("fill"),n.remove("stroke"))});let a=this.get("fill");a!=null&&t.get("fill")==null&&t._setC("fill",a);let o=this.get("stroke");o!=null&&t.get("stroke")==null&&t._setC("stroke",o)}return}t._computedSettings.fill&&t.remove("fill"),t._computedSettings.stroke&&t.remove("stroke");let e=this._colorSet(),i=e.get("step",1),s=e.get("startIndex",0);w(this.dataItems,(a,o)=>{let r=e.getIndex(s+o*i);a.setRaw("fill",r);let n=a.get("graphics");n&&(n._setDefault("fill",r),n._setDefault("stroke",r))})}_createGraphics(t){let e=t.get("graphics");if(!e){e=this._makeGraphics(this.columns,t),t.set("graphics",e),e._setDataItem(t),this._linkSprite(e,t);let i=t.get("fill");i!=null&&(e._setDefault("fill",i),e._setDefault("stroke",i));let s=t.get("legendDataItem");if(s){let o=s.get("markerRectangle");if(o){let r=o.states.lookup("default");w(we,n=>{let l=e.get(n,this.get(n));o.set(n,l),r.set(n,l)})}}let a=t.get("rangeGraphics");a&&w(a,o=>{o.dispose()}),a=[],t.setRaw("rangeGraphics",a),this.axisRanges.each(o=>{let r=o.container,n=this._makeGraphics(o.columns,t);a&&a.push(n),n.setPrivate("list",o.columns),r.children.push(n)})}}createAxisRange(t){return w(this.dataItems,e=>{let i=e.get("graphics");i&&(i.dispose(),e.set("graphics",void 0))}),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics"),a=this._xField,o=this._yField,r=t.get(a),n=t.get(o),l=this.get("exactLocationX",!1);if(r!=null&&n!=null){let h=this._xOpenField,c=this._yOpenField,d=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",d)),f=this.get("openLocationY",t.get("openLocationY",u)),g=s.get("width"),p=s.get("height"),x=this.get("stacked"),_=this.get("xAxis"),v=this.get("yAxis"),b=_.get("start"),T=_.get("end"),P=v.get("start"),D=v.get("end"),M,C,k,I,$=this.get("vcy",1),L=this.get("vcx",1),W=!1,V=!1;if(i==0){let Y=this._aLocationX0+m-.5,N=this._aLocationX1+d-.5;if(g instanceof kt){let X=(N-Y)*(1-g.value)/2;Y+=X,N-=X}if(M=_.getDataItemPositionX(t,h,Y,L,l),C=_.getDataItemPositionX(t,a,N,L,l),k=v.getDataItemPositionY(t,o,u,$),this._yOpenField!==this._yField)I=v.getDataItemPositionY(t,c,f,$);else if(x){let X=t.get("stackToItemY");X?I=v.getDataItemPositionY(X,o,f,X.component.get("vcy")):I=v.basePosition()}else I=v.basePosition();t.setRaw("point",{x:M+(C-M)/2,y:k}),V=!0}else if(i==1){let Y=this._aLocationY0+f-.5,N=this._aLocationY1+u-.5;if(p instanceof kt){let X=(N-Y)*(1-p.value)/2;Y+=X,N-=X}if(k=v.getDataItemPositionY(t,c,Y,$),I=v.getDataItemPositionY(t,o,N,$),C=_.getDataItemPositionX(t,a,d,L,l),this._xOpenField!==this._xField)M=_.getDataItemPositionX(t,h,m,L,l);else if(x){let X=t.get("stackToItemX");X?M=_.getDataItemPositionX(X,a,m,X.component.get("vcx"),l):M=_.basePosition()}else M=_.basePosition();W=!0,t.setRaw("point",{x:C,y:k+(I-k)/2})}else if(i==2){let Y=this._aLocationX0+m-.5,N=this._aLocationX1+d-.5;if(g instanceof kt){let X=(N-Y)*(1-g.value)/2;Y+=X,N-=X}if(M=_.getDataItemPositionX(t,h,Y,L),C=_.getDataItemPositionX(t,a,N,L),Y=this._aLocationY0+f-.5,N=this._aLocationY1+u-.5,p instanceof kt){let X=(N-Y)*(1-p.value)/2;Y+=X,N-=X}k=v.getDataItemPositionY(t,c,Y,$),I=v.getDataItemPositionY(t,o,N,$),t.setRaw("point",{x:M+(C-M)/2,y:k+(I-k)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,M,C,k,I,W,V),M<b&&C<b||M>T&&C>T||k<P&&I<=P||k>=D&&I>D||ot(M)||ot(k)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let J=t.get("rangeGraphics");J&&w(J,Y=>{this._updateSeriesGraphics(t,Y,M,C,k,I,W,V)})}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,r,n){let l=e.get("width"),h=e.get("height"),c=e.get("maxWidth"),d=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),f=t.get("point");if(f){let g=this.getPoint(f.x,f.y);f.x=g.x+this._x,f.y=g.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,y(l)){let g=(s-i-l)/2;i+=g,s-=g}if(y(c)&&c<Math.abs(s-i)){let g=(s-i-c)/2;i+=g,s-=g}if(y(h)){let g=(o-a-h)/2;a+=g,o-=g}if(y(d)&&d<Math.abs(o-a)){let g=(o-a-d)/2;a+=g,o-=g}this.get("adjustBulletPosition")&&(r&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),n&&(a=Math.min(Math.max(0,a),this._ph),o=Math.min(Math.max(0,o),this._ph))),t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),e.setPrivate("width",s-i),e.setPrivate("height",o-a),e.set("x",i),e.set("y",o-(o-a))}_handleDataSetChange(){super._handleDataSetChange(),w(this._dataItems,t=>{this._toggleColumn(t,!1)})}_applyGraphicsStates(t,e){let i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),r=i.states.lookup("riseFromPrevious");if(s||o||a||r){let n=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),c,d,u;h===n&&l.isType("ValueAxis")?(c=t.get(this._yOpenField),d=t.get(this._yField),u=e.get(this._yField)):h===l&&n.isType("ValueAxis")&&(c=t.get(this._xOpenField),d=t.get(this._xField),u=e.get(this._xField)),y(c)&&y(d)&&(d<c?s&&s.apply():a&&a.apply(),y(u)&&(d<u?o&&o.apply():r&&r.apply()))}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("graphics");e&&(this.columns.removeValue(e),e.dispose());let i=t.get("rangeGraphics");i&&w(i,s=>{let a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));let o=t.get("rangeGraphics");o&&w(o,r=>{s.push(r.hide(e))}),yield Promise.all(s)})}_toggleColumn(t,e){let i=t.get("graphics");i&&i.setPrivate("visible",e);let s=t.get("rangeGraphics");s&&w(s,o=>{o.setPrivate("visible",e)});let a=t.bullets;a&&w(a,o=>{o.setPrivate("hidden",!e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ct(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));let o=t.get("rangeGraphics");o&&w(o,r=>{s.push(r.show(e))}),yield Promise.all(s)})}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){let i=this.dataItems[this.endIndex()-1];i&&(t=i)}if(!t&&this.get("colorByDataItem")&&(t=this.dataItems[0]),e){let i=this.columns.template;if(t){let a=t.get("graphics");a&&(i=a)}let s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){let a=s.states.lookup("default");w(we,o=>{let r=i.get(o,this.get(o));s.set(o,r),a.set(o,r)})}}}_getTooltipTarget(t){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(t);let e=t.get("graphics");return e||this}};bt.className="BaseColumnSeries";bt.classNames=lt.classNames.concat([bt.className]);var ht=class extends Te{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(U.new(this._root,{})),this.gridContainer=U.new(this._root,{width:S,height:S}),this.topGridContainer=U.new(this._root,{width:S,height:S}),this.bulletsContainer=this.children.push(U.new(this._root,{isMeasured:!1,width:S,height:S,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new ge,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(U.new(this._root,{themeTags:["axis","header"],position:"absolute",background:xt.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_isSynced(){return!1}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisHeader.children.events.onAll(()=>{this.markDirty()})),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")w(e.oldValues,i=>{i.dispose()});else if(e.type==="push")this._processAxisRange(e.newValue,["range"]);else if(e.type==="setIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="insertIndex")this._processAxisRange(e.newValue,["range"]);else if(e.type==="removeIndex")this.disposeDataItem(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));let t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){let e=this.get("renderer").makeLabel(new Q(this,void 0,{}),[]);e.adapters.disable("text"),e.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),e.events.disable(),this.ghostLabel=e}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;if(t>e&&([t,e]=[e,t]),!this._isSynced()){let u=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-u&&(t=-u),e>1+u&&(e=1+u)}let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),n=r;y(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),e===1&&t!==0&&(t<this.get("start",0)?s="start":s="end"),t===0&&e!==1&&(e>this.get("end",1)?s="end":s="start");let l=this.get("minZoomCount",0),h=this.dataItems;h&&h.length<l&&(l=h.length);let c=this.get("maxZoomCount",1/0);y(l)&&(r=n/l);let d=1;if(y(c)&&(d=n/c),t>e&&([t,e]=[e,t]),s==="start"?(c>0&&1/(e-t)<d&&(e=t+1/d),1/(e-t)>r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)<d&&(t=e-1/d),1/(e-t)>r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),c!=null&&l!=null&&t==this.get("start")&&e==this.get("end")){let u=this.chart;u&&u._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let u=this.get("interpolationEasing"),m,f;if(this.get("start")!=t&&(m=this.animate({key:"start",to:t,duration:i,easing:u})),this.get("end")!=e&&(f=this.animate({key:"end",to:e,duration:i,easing:u})),this._sAnimation=m,this._eAnimation=f,m)return m;if(f)return f}else this._setC("start",t),this._setC("end",e),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);let i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);let o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(t=>{this._prepareDataItem(t)}),w(this._seriesAxisRanges,t=>{this._prepareDataItem(t)})}_prepareChildren(){super._prepareChildren();let t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){let i=this.chart;i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1);if(!this._isSynced()){let o=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-o){let r=s+o;s=-o,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-r)}if(a>1+o){let r=a-1-o;a=1+o,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-r)}}}let e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){let i=this.get("tooltip");if(i){let s=e.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",F(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){let t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t;let e=this.get("renderer");e.chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{t._handleAxisSelection(this)}),this.on("end",()=>{t._handleAxisSelection(this)}),t.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),t.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){let i="forceHidden",s=t.get("label");s&&s._setC(i,e);let a=t.get("grid");a&&a._setC(i,e);let o=t.get("tick");o&&o._setC(i,e);let r=t.get("axisFill");r&&r._setC(i,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l._setC(i,e)}}_toggleDataItem(t,e){let i=t.get("label"),s="visible";i&&i.setPrivate(s,e);let a=t.get("grid");a&&a.setPrivate(s,e);let o=t.get("tick");o&&o.setPrivate(s,e);let r=t.get("axisFill");r&&r.setPrivate(s,e);let n=t.get("bullet");if(n){let l=n.get("sprite");l&&l.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;let r=this.get("renderer"),n="minor",l=t.get("label");if(!l)r.makeLabel(t,e);else{let d=l.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((s=l.parent)===null||s===void 0||s.children.removeValue(l),r.makeLabel(t,e),l.dispose(),r.labels.removeValue(l))}let h=t.get("grid");if(!h)r.makeGrid(t,e);else{let d=h.get("themeTags"),u=!1;i?d?.indexOf(n)==-1&&(u=!0):d?.indexOf(n)!=-1&&(u=!0),u&&((a=h.parent)===null||a===void 0||a.children.removeValue(h),r.makeGrid(t,e),h.dispose(),r.grid.removeValue(h))}let c=t.get("tick");if(!c)r.makeTick(t,e);else{let d=!1,u=c.get("themeTags");i?u?.indexOf(n)==-1&&(d=!0):u?.indexOf(n)!=-1&&(d=!0),d&&((o=c.parent)===null||o===void 0||o.children.removeValue(c),r.makeTick(t,e),c.dispose(),r.ticks.removeValue(c))}(!i&&!t.get("axisFill")||i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&r.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(!e&&i&&!t.get("isRange")&&(e=i(this._root,this,t)),e){e.axis=this;let s=e.get("sprite");s&&(s._setDataItem(t),t.setRaw("bullet",e),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();let t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);let e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());let s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());let a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());let o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());let r=t.get("bullet");r&&r.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());let t=this.ghostLabel;if(t){if(!t.isHidden()){let s=t.localBounds(),a=Math.ceil(s.right-s.left),o=t.get("text");w(this.dataItems,r=>{let n=r.get("label");if(n&&!n.isHidden()){let l=n.localBounds();Math.ceil(l.right-l.left)>a&&(o=n.text._getText())}}),t.set("text",o)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+(i-e)*.5)}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){let t=this._snapToSeries,e=this._cursorPosition,i=this.get("tooltip"),s=this.get("renderer");y(e)&&(w(this.series,a=>{if(a.get("baseAxis")===this){let o=this.getSeriesItem(a,e,this.get("tooltipLocation"));t&&t.indexOf(a)!=-1?(a.updateLegendMarker(o),a.updateLegendValue(o),a._settings.tooltipDataItem=o):(a.showDataItemTooltip(o),a.setRaw("tooltipDataItem",o))}}),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),ot(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),e<this.get("start",0)||e>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){let e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return .05}};ht.className="Axis";ht.classNames=Te.classNames.concat([ht.className]);var it=class extends ht{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_isSynced(){return this.get("syncWithAxis")!=null}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let a=this.get("syncWithAxis");if(a){let o=()=>{this.get("autoZoom",!0)?this.markDirtySelectionExtremes():this.markDirtyExtremes()};this._syncDp=new Ue([a.onPrivate("selectionMinFinal",o),a.onPrivate("selectionMaxFinal",o),a.onPrivate("selectionStepFinal",o),a.onPrivate("minFinal",o),a.onPrivate("maxFinal",o),a.onPrivate("step",o)])}}this.isDirty("syncZeros")&&(this._dirtyExtremes=!0,this._dirtySelectionExtremes=!0);let e=!1;(this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,(t=this.ghostLabel)===null||t===void 0||t.set("text",""));let i=this.getPrivate("selectionStepFinal");if((this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){let s=this.chart,a=!1;if(s){let o=this.get("renderer").getPrivate("letter");o=="Y"?s.xAxes.each(r=>{r.className!="ValueAxis"&&(a=!0)}):o=="X"&&s.yAxes.each(r=>{r.className!="ValueAxis"&&(a=!0)})}a&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic")||i!==this.getPrivate("selectionStepFinal"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_cleanLogValue(t){if(!(t>0))return t;let e=10-Math.floor(Math.log(t)*Math.LOG10E);return e>280?t:G(t,e)}_formatText(t){let e=this.get("numberFormat"),i=this.getNumberFormatter(),s="";if(e)s=i.format(t,e);else{let a=0;this.get("logarithmic")&&y(t)&&t!=0&&(a=Math.min(ue(t),20)),a>5?s=i.format(t,"#,###."+new Array(a+1).join("#")):s=i.format(t,void 0,this.getPrivate("stepDecimalPlaces"))}return s}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){let i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+s,r=this.get("renderer").gridCount(),n=a-s,l=1,h=t,c=1,d=0;if(i){if(n=this._minLogAdjusted,n<a)for(;n<a;)n+=s;if(h=n,h<=0){let P=this._minRealLog;y(P)||(P=1),h=Math.pow(10,Math.log(P)*Math.LOG10E),s<1&&(y(this._minRealLog)?h=this._minRealLog:h=Math.pow(10,-50))}l=Math.log(o-s)*Math.LOG10E-Math.log(h)*Math.LOG10E,l>2&&(c=Math.max(1,Math.min(Math.ceil(l/Math.max(1,r)),Math.floor(l))),d=Math.floor(Math.log(h)*Math.LOG10E/c)*c,n=Math.pow(10,d))}let u=this.get("renderer"),m=u.get("minorLabelsEnabled"),f=u.get("minorGridEnabled",m),g=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E)),p=Math.round(s/g),x=2;G(p/5,10)%1==0&&(x=5),G(p/10,10)%1==0&&(x=10);let _=s/x,v=0,b=0,T=-1/0;for(;n<o;){let P;this.dataItems.length<v+1?(P=new Q(this,void 0,{}),this._dataItems.push(P),this.processDataItem(P)):P=this.dataItems[v],this._createAssets(P,[]),this._toggleDataItem(P,!0);let D=i?this._cleanLogValue(n):n;P.setRaw("value",D);let M=P.get("label");M&&M.set("text",this._formatText(D)),this._prepareDataItem(P);let C=n;if(i&&l>2?C=Math.pow(10,d+(v+1)*c):C+=s,f){let I=n+_;for(i&&(l>2&&(_=this._adjustMinMax(n,C,10).step),I=n+_);I<C-s*1e-11;){let $;this.minorDataItems.length<b+1?($=new Q(this,void 0,{}),this.minorDataItems.push($),this.processDataItem($)):$=this.minorDataItems[b],this._createAssets($,["minor"],!0),this._toggleDataItem($,!0);let L=i?this._cleanLogValue(I):I;$.setRaw("value",L);let W=$.get("label");W&&m&&W.set("text",this._formatText(L)),this._prepareDataItem($),W&&!m&&W.setPrivate("visible",!1),I+=_,b++}}if(n=C,T==n)break;let k=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(k<1&&!i){let I=Math.round(Math.abs(Math.log(Math.abs(k))*Math.LOG10E))+2;n=G(n,I)}v++,i&&l<=2&&n-s<s&&(n=s),T=n}for(let P=v;P<this.dataItems.length;P++)this._toggleDataItem(this.dataItems[P],!1);for(let P=b;P<this.minorDataItems.length;P++)this._toggleDataItem(this.minorDataItems[P],!1);w(this.series,P=>{P.inited&&P._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,n=this.valueToPosition(s+this.getPrivate("step"));y(a)&&(r=this.valueToPosition(a),n=r),t.get("isRange")&&a==null&&(n=o);let l=r,h=t.get("labelEndValue");h!=null&&(l=this.valueToPosition(h)),i.updateLabel(t.get("label"),o,l,e);let c=t.get("grid");if(i.updateGrid(c,o,r),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,n),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){let d=this.get("fillRule");d&&d(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1)),i;if(this._isSynced()){t=this.getPrivate("selectionMinFinal",t),e=this.getPrivate("selectionMaxFinal",e);let s=this.getPrivate("selectionStepFinal");y(s)&&s>0&&s<1/0?i=s:i=this._adjustMinMax(t,e,this.get("renderer").gridCount(),!0).step;let a=ue(i);this.setPrivateRaw("stepDecimalPlaces",a)}else{let s=this.get("renderer").gridCount(),a=this._adjustMinMax(t,e,s,!0),o=ue(a.step);this.setPrivateRaw("stepDecimalPlaces",o),t=G(t,o),e=G(e,o),a=this._adjustMinMax(t,e,s,!0),i=a.step,t=a.min,e=a.max}(this.getPrivate("selectionMin")!==t||this.getPrivate("selectionMax")!==e||this.getPrivate("step")!==i)&&(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",i))}positionToValue(t){let e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){let e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");y(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}valueToFinalPosition(t){let e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let s=this.get("treatZeroAs");y(s)&&(t=s)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}else return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;let s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);if(t.get("stackToItemX")){let r=t.component;a=a*s+r.getStackedXValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);if(t.get("stackToItemY")){let r=t.component;a=a*s+r.getStackedYValueWorking(t,e)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){let t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0)),i=this.get("baseValue",0);return i<t&&(i=t),i>e&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i=t.endIndex();i<t.dataItems.length&&i++;let s,a;t.get("yAxis")==this?(s="valueY",a="vcy"):t.get("xAxis")==this&&(s="valueX",a="vcx");let o=s+"Working";if(s){let r=this.series.length,n=[],l=[];for(let m=0;m<r;m++){let f=this.series[m];f.get("excludeFromTotal")||(n.push(f),l.push(f.get(a)))}let h=n.length,c=s+"Total",d=s+"Sum",u=s+"TotalPercent";for(let m=e;m<i;m++){let f=0,g=0;for(let p=0;p<h;p++){let x=n[p].dataItems[m];if(x){let _=x.get(o)*l[p];ot(_)||(f+=_,g+=Math.abs(_))}}for(let p=0;p<h;p++){let x=n[p].dataItems[m];if(x){let _=x.get(o)*l[p];ot(_)||(x.set(c,g),x.set(d,f),x.set(u,g==0?0:_/g*100))}}}}}}}}_getSelectionMinMax(){let t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max"),a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2));let r=this.get("renderer").gridCount(),n=this.get("strictMinMaxSelection"),l=this.get("strictMinMax");if(y(t)&&y(e)){let h=e,c=t;if(w(this.series,v=>{if(!v.get("ignoreMinMax")){let b,T,P=v.getPrivate("outOfSelection");if(v.get("xAxis")===this){if(!P){let D=v.getPrivate("minX"),M=v.getPrivate("maxX");(v.startIndex()!=0||v.endIndex()!=v.dataItems.length)&&(D=void 0,M=void 0),b=v.getPrivate("selectionMinX",D),T=v.getPrivate("selectionMaxX",M)}}else if(v.get("yAxis")===this&&!P){let D=v.getPrivate("minY"),M=v.getPrivate("maxY");(v.startIndex()!=0||v.endIndex()!=v.dataItems.length)&&(D=void 0,M=void 0),b=v.getPrivate("selectionMinY",D),T=v.getPrivate("selectionMaxY",M)}!v.isHidden()&&!v.isShowing()&&(y(b)&&(h=Math.min(h,b)),y(T)&&(c=Math.max(c,T)))}}),this.axisRanges.each(v=>{if(v.get("affectsMinMax")){let b=v.get("value");b!=null&&(h=Math.min(h,b),c=Math.max(c,b)),b=v.get("endValue"),b!=null&&(h=Math.min(h,b),c=Math.max(c,b))}}),h>c&&([h,c]=[c,h]),y(i)?l?h=i:h=t:l&&y(this._minReal)&&(h=this._minReal),y(s)?l?c=s:c=e:l&&y(this._maxReal)&&(c=this._maxReal),h===c){let v=h;if(h-=this._deltaMinMax,c+=this._deltaMinMax,h<t){let T=v-t;T==0&&(T=this._deltaMinMax),h=v-T,c=v+T,l=!0}let b=this._adjustMinMax(h,c,r,l);h=b.min,c=b.max}let d=h,u=c,m=c-h;h-=m*a,c+=m*o;let f=this._adjustMinMax(h,c,r);h=f.min,c=f.max,h=Z(h,t,e),c=Z(c,t,e),f=this._adjustMinMax(h,c,r,!0),l||(h=f.min,c=f.max);let g=this.get("syncWithAxis");if(g&&(f=this._syncAxes(h,c,f.step,g.getPrivate("selectionMinFinal",g.getPrivate("minFinal",0)),g.getPrivate("selectionMaxFinal",g.getPrivate("maxFinal",1)),g.getPrivate("selectionStepFinal",g.getPrivate("step",1))),h=f.min,c=f.max),l&&!g&&(y(i)&&(h=Math.max(h,i)),y(s)&&(c=Math.min(c,s))),n&&!g&&(h=d-(u-d)*a,c=u+(u-d)*o),l&&!g){y(i)?h=i:h=d,y(s)?c=s:c=u,c-h<=1e-8&&(h-=this._deltaMinMax,c+=this._deltaMinMax);let v=c-h;h-=v*a,c+=v*o}this.get("logarithmic")&&(h<=0&&(h=d*(1-Math.min(a,.99))),h<t&&(h=t),c>e&&(c=e));let p=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),x=G(this.valueToFinalPosition(h),p),_=G(this.valueToFinalPosition(c),p);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",f.step),this.zoom(x,_)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2)));let r=1/0;if(w(this.series,_=>{if(!_.get("ignoreMinMax")){let v,b;if(_.get("xAxis")===this?(v=_.getPrivate("minX"),b=_.getPrivate("maxX")):_.get("yAxis")===this&&(v=_.getPrivate("minY"),b=_.getPrivate("maxY")),y(v)&&y(b)){i=Math.min(i,v),s=Math.max(s,b);let T=b-v;T<=0&&(T=Math.abs(b/100)),T<r&&(r=T)}}}),this.axisRanges.each(_=>{if(_.get("affectsMinMax")){let v=_.get("value");v!=null&&(i=Math.min(i,v),s=Math.max(s,v)),v=_.get("endValue"),v!=null&&(i=Math.min(i,v),s=Math.max(s,v))}}),this.get("logarithmic")){let _=this.get("treatZeroAs");y(_)&&i<=0&&(i=_),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(i===0&&s===0&&(s=.9,i=-.9),y(t)&&(i=t),y(e)&&(s=e),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);let n=i,l=s,h=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,y(h)&&(i=h),y(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&n>=0&&(i=0),s>0&&l<=0&&(s=0)),this._minReal=i,this._maxReal=s;let d=this.get("strictMinMax"),u=this.get("strictMinMaxSelection",!1);u&&(d=u);let m=d;y(e)&&(m=!0);let f=this.get("renderer").gridCount(),g=this._adjustMinMax(i,s,f,m);if(i=g.min,s=g.max,g=this._adjustMinMax(i,s,f,!0),i=g.min,s=g.max,d){y(t)?i=t:i=this._minReal,y(e)?s=e:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let _=s-i;i-=_*a,s+=_*o}h=this.adapters.fold("min",i),c=this.adapters.fold("max",s),y(h)&&(i=h),y(c)&&(s=c),r==1/0&&(r=s-i);let p=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=G(i,p),s=G(s,p);let x=this.get("syncWithAxis");if(x&&(g=this._syncAxes(i,s,g.step,x.getPrivate("minFinal",x.getPrivate("min",0)),x.getPrivate("maxFinal",x.getPrivate("max",1)),x.getPrivate("step",1)),i=g.min,s=g.max,this.get("autoZoom",!0)||(this.setPrivateRaw("selectionMinFinal",i),this.setPrivateRaw("selectionMaxFinal",s),this.setPrivateRaw("selectionStepFinal",g.step))),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/r*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=n*(1-Math.min(a,.99)))),y(i)&&y(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);let _=this.get("interpolationDuration",0),v=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:_,easing:v}),this.animatePrivate({key:"max",to:s,duration:_,easing:v})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i=i/10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;r===0&&(r=Math.abs(e));let n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n));l=l/10;let h=l;s&&(h=0),s?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),n=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(n)),l=l/100;let c=Math.ceil(r/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),u=Math.ceil(c/d);u>5?u=10:u<=5&&u>2&&(u=5),c=Math.ceil(c/(d*u))*d*u;let m=this.get("maxPrecision");if(y(m)){let x=be(c,m);m<Number.MAX_VALUE&&c!==x&&(c=x,c==0&&(c=1))}let f=0;d<1&&(f=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,c=G(c,f));let g=Math.floor(t/c);t=G(c*g,f);let p;return s?p=Math.floor(e/c):p=Math.ceil(e/c),p===g&&p++,e=G(c*p,f),e<o&&(e=e+c),t>a&&(t=t-c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){let i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,r=G(this.positionToValue(t),o);return i?s.format(r,i):s.format(r,void 0,o)}getSeriesItem(t,e){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(e),a,o;if(w(t.dataItems,(r,n)=>{let l=Math.abs(r.get(i)-s);(a===void 0||l<o)&&(a=n,o=l)}),a!=null)return t.dataItems[a]}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}_syncAxes(t,e,i,s,a,o){if(this.get("syncWithAxis")){let n=Math.round((a-s)/o);if(y(n)&&n>0&&n<1/0)if(this.get("syncZeros")&&s<=0&&a>=0){let l=Math.round((0-s)/o),h=n-l,c=t<0&&l==0,d=e>0&&h==0;if(!c&&!d){let u=0;l>0&&t<0&&(u=Math.abs(t)/l),h>0&&e>0&&(u=Math.max(u,e/h)),u==0&&(u=(e-t)/n),u>0&&u<1/0&&(i=this._niceStep(u),t=-i*l,e=i*h)}}else{let l=(e-t)/n;if(l>0&&l<1/0){i=this._niceStep(l);let h=Math.floor(t/i)*i,c=h+i*n;c<e&&(h=Math.ceil(e/i)*i-i*n,c=h+i*n),t>=0&&h<0&&(h=0,c=i*n),e<=0&&c>0&&(c=0,h=-(i*n)),t=h,e=c}}}return{min:t,max:e,step:i}}_niceStep(t){if(!y(t)||t<=0||t==1/0)return 1;let e=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),i=t/e;i<=1?i=1:i<=2?i=2:i<=5?i=5:i=10;let s=i*e;s>0&&s<1/0||(s=t);let a=this.get("maxPrecision");if(y(a)){let o=be(s,a);a<Number.MAX_VALUE&&s!==o&&(s=o,s==0&&(s=1))}return s}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return y(t)&&y(e)?this.getPrivate("step",1)/(t-e):.05}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.positionToValue(this.getPrivate("tooltipPosition",0));return e+=this.getPrivate("step",1)*t,e=Z(e,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(e))}};it.className="ValueAxis";it.classNames=ht.classNames.concat([it.className]);var Dt=class A extends ht{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();let t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren(),(this.isDirty("startLocation")||this.isDirty("endLocation"))&&(this._sizeDirty=!0);let t=this.dataItems.length,e=0;this._valuesDirty&&(this._itemMap={},w(this.dataItems,o=>{o.setRaw("index",e),this._itemMap[o.get("category")]=o,e++}),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){let t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0),r=this._sAnimation,n=this._eAnimation,l=this.get("start",0),h=!1;r&&!r.stopped&&(l=Number(r.to),h=!0);let c=this.get("end",1);if(n&&!n.stopped&&(c=Number(n.to),h=!0),h){let d=this._getIndices(l,c);a=d.startIndex,o=d.endIndex}for(let d=a;d<o;d++){let u=this.dataItems[d];s+=u.get("finalCellSize",1)}if(s<=i){let d=0;for(let u=a;u<t;u++){let m=this.dataItems[u];if(d+=m.get("finalCellSize",1),o=u+1,d>=i)break}if(d<i)for(let u=a-1;u>=0;u--){let m=this.dataItems[u];if(d+=m.get("finalCellSize",1),a=u,d>=i)break}this.zoomToIndexes(a,o)}else if(s>=e){let d=s;for(let u=o-1;u>=a;u--){let m=this.dataItems[u];if(d-=m.get("finalCellSize",1),d<=e){o=u+1;break}}this.zoomToIndexes(a,o)}}}_handleRangeChange(){w(this.series,t=>{let e=t.get("baseAxis"),i=t.get("xAxis"),s=t.get("yAxis");if(i instanceof A&&s instanceof A)t._markDirtyAxes();else if(e===this){let a,o,r=s;if(i===e?(t.get("categoryXField")&&(a="categoryX"),t.get("openCategoryXField")&&(o="openCategoryX")):s===e&&(t.get("categoryYField")&&(a="categoryY"),t.get("openCategoryYField")&&(o="openCategoryY"),r=i),r instanceof it&&(a||o)){let n=this.startIndex(),l=this.endIndex()-1,h=-1,c=0;for(let u=0,m=t.dataItems.length;u<m;u++){let f=t.dataItems[u],g=NaN,p=NaN;if(a&&(g=p=this.categoryToIndex(f.get(a))),o){let x=this.categoryToIndex(f.get(o));y(x)&&(g=y(g)?Math.min(g,x):x,p=y(p)?Math.max(p,x):x)}y(g)&&g<=l&&p>=n&&(h==-1&&(h=u),c=u+1)}h==-1&&(h=0),t.setPrivate("startIndex",h),t.setPrivate("endIndex",c);let d=!1;for(let u=h;u<c;u++){let m=t.dataItems[u];if(w(t.__valueXShowFields,f=>{m.get(f)!=null&&(d=!0)}),w(t.__valueYShowFields,f=>{m.get(f)!=null&&(d=!0)}),d)break}t.setPrivate("outOfSelection",!d)}t._markDirtyAxes()}})}_prepareAxisItems(){var t;let e=this.get("renderer"),i=this.dataItems.length,s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;let o=e.get("minorLabelsEnabled"),r=e.get("minorGridEnabled",o),n=e.axisLength()/Math.max(e.get("minGridDistance"),1),l=Math.max(1,Math.min(i,Math.ceil((a-s)/n)));y(l)||(l=1),s=Math.floor(s/l)*l,this._frequency=l;for(let c=0;c<i;c++)this._toggleDataItem(this.dataItems[c],!1);let h=this.dataItems[s].get("index",0);for(let c=s;c<a;c=c+l){let d=this.dataItems[c];this._createAssets(d,[]),this._toggleDataItem(d,!0);let u=l;r&&(u=1),this._prepareDataItem(d,h,u),h++}if(e.get("minorGridEnabled"))for(let c=s;c<a;c++){let d=this.dataItems[c];c%l!=0&&(this._createAssets(d,["minor"],!0),this._toggleDataItem(d,!0),this._prepareDataItem(d,0,1),o||(t=d.get("label"))===null||t===void 0||t.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(t,e,i){let s=this.get("renderer"),a=t.get("categoryLocation",0),o=t.get("endCategoryLocation",1),r=t.get("index");y(r)||(r=this.categoryToIndex(t.get("category")));let n=this.indexToPosition(r,a),l=t.get("endCategory"),h;l?(h=this.categoryToIndex(l),y(h)||(h=r)):h=r;let c=this.indexToPosition(h,o),d,u;if(t.get("isRange")){if(d=h,!y(r)){this._toggleDataItem(t,!1);return}}else d=r+this._frequency-1;u=this.indexToPosition(d,o),s.updateLabel(t.get("label"),n,c,i),s.updateGrid(t.get("grid"),n,c),s.updateTick(t.get("tick"),n,c,i),s.updateFill(t.get("axisFill"),n,u),this._processBullet(t),s.updateBullet(t.get("bullet"),n,c);let m=this.get("fillRule");m&&m(t,e)}startIndex(){let t=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),t-1)}endIndex(){let t=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",t),t))}baseValue(){}basePosition(){return 0}getX(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getY(t){let e=this._itemMap[t];return e?this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index",0))):NaN}getDataItemPositionX(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}indexToPosition(t,e,i){let s=this.dataItems.length,a=0;if(s==0||(t>=s&&(t=s-1,e=1),y(e)||(e=.5),!y(t)))return 0;let o=this.get("startLocation",0),r=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=o,s-=1-r,a=(t+e-o)/s;else{let n=i?"finalCellSize":"cellSize",l=this.dataItems,h=0;w(this.dataItems,u=>{h+=u.get(n,1)}),h-=o*l[0].get(n,1),h-=(1-r)*l[l.length-1].get(n,1);let c=0;for(let u=0;u<t;u++)c+=l[u].get(n,1);let d=l[t].get(n,1);a=(c+e*d-o*l[0].get(n,1))/h}if(!i){let n=this.dataItems[t];n&&(a+=n.get("deltaPosition",0))}return a}categoryToPosition(t){let e=this._itemMap[t];return e?this.indexToPosition(e.get("index")):NaN}categoryToIndex(t){let e=this._itemMap[t];return e?e.get("index"):NaN}dataItemToPosition(t){return this.indexToPosition(t.get("index"))}roundAxisPosition(t,e){return t+=(.5-e)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(t),e)}axisPositionToIndex(t){let e=this.dataItems.length;if(e===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];w(this.dataItems,l=>{let h=l.get("cellSize",1);s.push(h),i+=h});let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,n=0;for(let l=0;l<e;l++){let h=s[l];if(r<n+h)return l;n+=h}return e-1}else return Z(Math.floor(t*e),0,e-1)}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=i.get("label");if(s)return Ke(s,this.get("tooltipText",""))}}_updateTooltipText(t,e){t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]),t.label.text.markDirtyText()}getSeriesItem(t,e){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],r=o.get("category");if(a&&o&&a.get(i)===r)return a;for(let n=0,l=t.dataItems.length;n<l;n++){let h=t.dataItems[n];if(h.get(i)===r)return h}}}_getIndices(t,e){let i=this.dataItems.length,s=0,a=i,o="cellSize";if(this.get("cellSizeField")){let r=0,n=this.dataItems;if(n.length==0)return{startIndex:0,endIndex:0};w(n,h=>{r+=h.get(o,1)}),r-=this.get("startLocation",0)*n[0].get(o,1),r-=(1-this.get("endLocation",1))*n[n.length-1].get(o,1);let l=0;for(let h=0;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>Math.round(t*r)){s=h;break}for(let h=s+1;h<i;h++)if(l+=this.dataItems[h].get(o,1),Math.round(l)>=Math.round(e*r)){a=h+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){t==null&&(t=1),this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let e=this.getPrivate("tooltipPosition",0),i=Z(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}};Dt.className="CategoryAxis";Dt.classNames=ht.classNames.concat([Dt.className]);var Wt=class extends Dt{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareChildren(){this.isDirty("baseInterval")&&(this._sizeDirty=!0),super._prepareChildren()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));let t=this.get("renderer"),e=this.dataItems.length;if(e===0)return;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s<e&&s++;let a=t.axisLength()/Math.max(t.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),o=Math.min(e,Math.ceil((s-i)/a));i=Math.floor(i/o)*o,this._frequency=o;for(let v=0;v<e;v++)this._toggleDataItem(this.dataItems[v],!1);let r=Number(this.dataItems[i].get("category")),n=Number(this.dataItems[s-1].get("category")),l=n-r;s-i<a&&(l=n-r-((n-r)/this.baseDuration()-(s-i))*this.baseDuration());let h=Rt(0,l,a,this.get("gridIntervals")),c=Ot(h.timeUnit),d=this.getPrivate("baseInterval");q(h)<this.baseDuration()&&(h=Object.assign({},d));let u=this.get("dateFormats"),m=-1/0,f=-1/0,g=-1/0,p,x=[],_=!1;for(let v=i;v<s;v++){let b=this.dataItems[v],T=b.get("index"),P=!1,D=Number(b.get("category")),M=new Date(D),C=ei(M,h.timeUnit);p=u[h.timeUnit];let k=!1;h.timeUnit!="year"&&h.timeUnit!="week"&&c&&this.get("markUnitChange")&&y(m)&&Ut(D,m,c,this._root.utc)&&(p=this.get("periodChangeDateFormats")[h.timeUnit],T-o*.5<f&&x.pop(),x.push({format:p,dataItem:b}),_=!0,k=!0,f=T,g=C);let I=!1;h.timeUnit==="day"||h.timeUnit==="week"?T-f>=o&&(I=!0):C%h.count===0&&C!=g&&(I=!0),!k&&I&&(T-o*.7<f&&_&&(P=!0),P||(x.push({format:p,dataItem:b}),f=T,g=C),_=!1),m=D}if(x.length>0){let v=x[0].dataItem.get("index",0);w(x,b=>{let T=b.dataItem,P=b.format;this._createAssets(T,[]),this._toggleDataItem(T,!0);let D=Number(T.get("category")),M=new Date(D),C=T.get("label");C&&C.set("text",this._root.dateFormatter.format(M,P)),v++,this._prepareDataItem(T,v,o)})}}baseDuration(){return q(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let s=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",s))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}};Wt.className="CategoryDateAxis";Wt.classNames=Dt.classNames.concat([Wt.className]);var wt=class extends it{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=q(t)}_prepareChildren(){(this.isDirty("startLocation")||this.isDirty("endLocation"))&&(this._dirtyExtremes=!0),(this.isDirty("markUnitChange")||this.isDirty("skipFirstMinor")||this.isDirty("weekLabelLocation"))&&(this._sizeDirty=!0),super._prepareChildren()}_fixZoomFactor(){let t=this.get("maxZoomFactor");t!=null&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){this._fixZoomFactor();let i=this.getPrivate("groupInterval");if(i?this._setBaseInterval(i):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let s=this.get("groupInterval");s&&(this.setRaw("groupIntervals",[s]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))w(this.series,s=>{this._groupSeriesData(s)}),this._handleRangeChange();else{let s=this.get("baseInterval"),a=s.timeUnit+s.count;w(this.series,o=>{o.setDataSet(a),o.resetGrouping()}),this._setBaseInterval(s),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){let e=this.get("groupIntervals");if(!e)return;this._dataGrouped=!0,this._seriesDataGrouped=!0;let i=[],s=this.baseMainDuration();w(e,u=>{q(u)>s&&i.push(u)}),gt(t._dataSets,(u,m)=>{m!=t._mainDataItems&&w(m,f=>{f.dispose()})}),t._dataSets={};let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o,r=t.get("baseAxis");t.get("xAxis")===r?o=t._valueYFields:t.get("yAxis")===r&&(o=t._valueXFields);let n=t._mainDataItems,l=this.get("baseInterval"),h=l.timeUnit+l.count;t._dataSets[h]=n;let c=t.get("groupDataCallback"),d=t.get("groupDataWithOriginals",!1);c&&(d=!0),w(i,u=>{let m=-1/0,f=u.timeUnit+u.count;t._dataSets[f]=[];let g,p={},x={},_={},v={};w(o,M=>{p[M]=0,x[M]=0,_[M]=t.get(M+"Grouped"),v[M]=M+"Working"});let b=et(u.timeUnit),T=n[0],P;T&&(P=n[0].get(a));let D;w(n,M=>{let C=M.get(a),k=R(C,u.timeUnit,u.count,this._root,P),I;if(m<k-b/24)I=$t(M.dataContext),g=new Q(t,I,t._makeDataItem(I)),g.setRaw(a,k),t._dataSets[f].push(g),w(o,$=>{let L=M.get($);y(L)?(g.setRaw($,L),g.setRaw(v[$],L),x[$]=1,p[$]=L):(p[$]=0,x[$]=0)}),d&&g.set("originals",[M]),c&&D&&c(D,u),D=g;else{let $=!1;if(w(o,L=>{let W=_[L],V=M.get(L);if(V!=null){$=!0;let J=g.get(L);switch(W){case"close":g.setRaw(L,V);break;case"sum":g.setRaw(L,J+V);break;case"open":break;case"low":V<J&&g.setRaw(L,V);break;case"high":V>J&&g.setRaw(L,V);break;case"average":x[L]++,p[L]+=V;let Y=p[L]/x[L];g.setRaw(L,Y);break;case"extreme":Math.abs(V)>Math.abs(J)&&g.setRaw(L,V);break}g.setRaw(v[L],g.get(L))}}),$){let L=$t(M.dataContext);L[a]=k,g.dataContext=L}d&&g.get("originals").push(M)}m=k}),c&&D&&c(D,u)}),t._dataSetId&&t._dataSets[t._dataSetId]?t.setDataSet(t._dataSetId):t.setDataSet(h),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=Rt(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return q(i)<q(e)&&(i=Object.assign({},e)),i}getIntervalMax(t){return this._intervalMax[t.timeUnit+t.count]}getIntervalMin(t){return this._intervalMin[t.timeUnit+t.count]}_handleRangeChange(){super._handleRangeChange();let t=Math.round(this.getPrivate("selectionMin")),e=Math.round(this.getPrivate("selectionMax"));if(y(t)&&y(e)){if(this.get("endLocation")==0&&(e+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=e-t+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this._baseDuration);if(s){let o=q(s);a=Math.ceil(a/o)*o}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let o=i.timeUnit+i.count;w(this.series,r=>{r.get("baseAxis")===this&&r.setDataSet(o)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{let r="groupintervalchanged";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})})})}}w(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=Oe(i.dataItems,g=>_t(g.get(s),t)).index;o>0&&(o-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let n=pt(i.dataItems,g=>_t(g.get(s),e)).index,l=n;l>1&&l--;let h=i.dataItems[o],c=i.dataItems[l],d,u;h&&(u=h.get(s)),c&&(d=c.get(s));let m=!1;d!=null&&u!=null&&(d<t||u>e)&&(m=!0),i.setPrivate("outOfSelection",m),i.setPrivate("startIndex",o);let f=i._adjustStartIndex(o);i.getPrivate("adjustedStartIndex")!==f&&(i.setPrivate("adjustedStartIndex",f),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})),i.setPrivate("endIndex",n)}})}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return t=="day"||t=="month"||t=="year"?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(s==10||s==15?s=5:s==12?s=2:s==6?s=1:s==30?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),a=="week"&&(((e=this.getPrivate("baseInterval"))===null||e===void 0?void 0:e.timeUnit)!="week"?i={timeUnit:"day",count:1}:i={timeUnit:"week",count:1}),a=="year"&&s==1&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<4*366*24*60*60*1e3&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){let t=this.getPrivate("min"),e=this.getPrivate("max");if(y(t)&&y(e)){let i=this._root,s=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),o=this.get("renderer"),r=this.getPrivate("baseInterval"),n=s,l=0,h=this.get("gridIntervals"),c=Rt(0,a-s,o.gridCount(),h);q(c)<this._baseDuration&&(c=Object.assign({},r));let d=q(c);this._intervalDuration=d;let u=Ot(c.timeUnit),m=i.utc,f=i.timezone;n=R(s-d,c.timeUnit,c.count,i,t);let g=n-d,p,x=this.get("dateFormats");this.setPrivateRaw("gridInterval",c);let _=o.get("minorLabelsEnabled"),v=o.get("minorGridEnabled",_),b,T=0;v&&(b=this._getMinorInterval(c),T=q(b));let P=0;for(;n<a+d;){let D;this.dataItems.length<l+1?(D=new Q(this,void 0,{}),this._dataItems.push(D),this.processDataItem(D)):D=this.dataItems[l],this._createAssets(D,[]),this._toggleDataItem(D,!0),D.setRaw("value",n),D.setRaw("labelEndValue",void 0);let M=n+et(c.timeUnit,c.count*this._getM(c.timeUnit));M=R(M,c.timeUnit,1,i),D.setRaw("endValue",M);let C=new Date(n);p=x[c.timeUnit],u&&this.get("markUnitChange")&&y(g)&&c.timeUnit!="year"&&Ut(n,g,u,m,f)&&(p=this.get("periodChangeDateFormats")[c.timeUnit]);let k=D.get("label");k&&k.set("text",i.dateFormatter.format(C,p));let I=c.count;if(c.timeUnit=="week"?k?.set("location",this.get("weekLabelLocation",0)):k?.set("location",o.labels.template.get("location")),v){I=1;let $=c.timeUnit;$=="week"&&this.get("skipFirstMinor")&&($="day");let L=n+et($,this._getM($));L=R(L,$,1,i),D.setRaw("labelEndValue",L)}if(this._prepareDataItem(D,I),g=n,n=M,b){let $=b.timeUnit,L=b.count,W=this._getM($);this.get("skipFirstMinor")||(g-=T*W);let V=R(g+T*W,$,L,i,g),J,Y=this.get("minorDateFormats",this.get("dateFormats"));for(;V<n-.01*T;){let N;this.minorDataItems.length<P+1?(N=new Q(this,void 0,{}),this.minorDataItems.push(N),this.processDataItem(N)):N=this.minorDataItems[P],this._createAssets(N,["minor"],!0),this._toggleDataItem(N,!0),N.setRaw("value",V);let X=V+et($,L*W);X=R(X,$,1,i),N.setRaw("endValue",X);let yt=new Date(V);p=Y[$];let ft=N.get("label");if(ft&&_&&ft.set("text",i.dateFormatter.format(yt,p)),this._prepareDataItem(N,1),ft&&!_&&ft.setPrivate("visible",!1),V==J)break;if(!N.get("isRange")){let st=this.get("fillRule");st&&st(N)}J=V,V=X,P++}}if(n==g)break;l++}for(let D=l;D<this.dataItems.length;D++)this._toggleDataItem(this.dataItems[D],!1);for(let D=P;D<this.minorDataItems.length;D++)this._toggleDataItem(this.minorDataItems[D],!1);w(this.series,D=>{D.inited&&D._markDirtyAxes()})}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+et(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){let e=this.getPrivate("baseInterval"),i=e.timeUnit,s=R(t,i,e.count,this._root),a=s+et(i,e.count*this._getM(i));return a=R(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return q(this.get("baseInterval"))}processSeriesDataItem(t,e){let i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),w(e,s=>{let a=t.get(s);if(y(a)){let o=t.open[s],r=t.close[s];if(!(a>=o&&a<=r)){let n=i.timeUnit,l=i.count;o=R(a,n,l,this._root),r=o+et(n,l*this._getM(n)),r=R(r,n,1,this._root),t.open[s]=o,t.close[s]=r}this._updateDates(o,t.component)}})}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,r,n;return a?n=t.get(e):(t.open&&t.close?(o=t.open[e],r=t.close[e]):(o=t.get(e),r=o),n=o+(r-o)*i,n=this._baseValue+(n-this._baseValue)*s),this.valueToPosition(n)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i=i-(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!ot(i)){let a=this._root.locale.firstDayOfWeek,o=s.timeUnit,r=this._root.utc,n=this._root.timezone,l=s.count;i=R(i,o,l,this._root,this.getPrivate("min",0));let h=me(s,new Date(i),a,r,n);return n&&(i=R(i+this._baseDuration*.05,o,l,this._root,this.getPrivate("min",0)),h=me(s,new Date(i+h*e),a,r,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(this.getPrivate("min")!=null){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(y(s)){let a=new Date(s),o=this.getPrivate("baseInterval"),r=me(o,a,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return e!==!1&&(a=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(a,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);i==null&&(i=.5),o=o-(i-.5)*this._baseDuration;let r=pt(t.dataItems,n=>{let l=0;return n.open&&(l=n.open[a]),_t(l,o)});if(s||t.get("snapTooltip")){let n=t.dataItems[r.index-1],l=t.dataItems[r.index];if(n&&l&&n.open&&l.close){let h=n.open[a],c=l.close[a];if(Math.abs(o-h)>Math.abs(o-c))return l}if(n)return n;if(l)return l}else{let n=t.dataItems[r.index-1];if(n&&n.open&&n.close){let l=n.open[a],h=n.close[a];if(o>=l&&o<=h)return n}}}shouldGap(t,e,i,s){let a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(this.getPrivate("min")!=null&&this.getPrivate("max")!=null)if(this.get("groupData")){let o=this.getGroupInterval(e-t),r=this.get("baseInterval"),n=this.getIntervalMin(r),l=this.getIntervalMax(r)-1;l=R(l,o.timeUnit,o.count,this.root),l+=this._getM(o.timeUnit)*q(o),l=R(l,o.timeUnit,o.count,this.root);let h=R(n,o.timeUnit,o.count,this.root),c=R(l,o.timeUnit,o.count,this.root),d=(t-h)/(c-h),u=(e-h)/(c-h);this.zoom(d,u,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return y(t)&&y(e)?this._intervalDuration/(t-e):.05}nextPosition(t){t==null&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;this.get("renderer").getPrivate("letter")=="Y"&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0)),s=this.getPrivate("baseInterval"),a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),n=R(o,s.timeUnit,s.count,this._root),l=R(r,s.timeUnit,s.count,this._root);return a+=e,a=Z(a,n+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return R(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}};wt.className="DateAxis";wt.classNames=it.classNames.concat([wt.className]);var Ht=class extends wt{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){let i=this._getDates(),s=pt(i,a=>_t(a,t));s.found||Ee(i,s.index,t)}}_updateAllDates(){if(!this._customDates){let t=new Set;w(this.series,l=>{if(l.get("ignoreMinMax"))return;let h="valueX";l.get("yAxis")==this&&(h="valueY"),w(l.dataItems,c=>{let d=c.get(h);y(d)&&c.open&&t.add(c.open[h])})}),this._dates=Array.from(t).sort((l,h)=>l-h);let e=this._dates,i=this.get("extraMax",0),s=this.get("extraMin",0),a=e.length,o=this.getPrivate("baseInterval"),r=o.count,n=o.timeUnit;if(i>0){let l=a*i,h=e[a-1];if(y(h))for(let c=a-1;c<a+l;c++)h+=et(n,r*this._getM(n)),h=R(h,n,r,this._root),e.push(h)}if(s>0){let l=a*s,h=e[0];if(y(h)){let c=[];for(let d=0;d<l;d++)h-=et(n,r),h=R(h,n,r,this._root),c.push(h);c.reverse(),e.unshift(...c)}}}}valueToPosition(t){let e=this._getDates(),i=this.get("startLocation",0),s=this.get("endLocation",1),a=e.length-i-(1-s),o=pt(e,n=>_t(n,t)),r=o.index;if(o.found)return(r-i)/a;{r>0&&(r-=1);let n=e[r],l=e[r+1];if(l){let c=l;Math.abs(c-t)<Math.abs(n-t)&&(n=c,r++)}let h=t-n;return(r-i)/a+h/this._baseDuration/a}}valueToIndex(t){let e=this._getDates(),i=pt(e,a=>_t(a,t)),s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){let e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates(),a=Math.round(s.length-e-(1-i)),o=t*a,r=Math.floor(o);return r<0&&(r=0),r>a-1&&(r=a-1),s[r]+(o-r+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){let s=this._getDates(),a=s.length,o=pt(s,l=>_t(l,t.getTime())),r=s[Math.min(o.index,a-1)];o=pt(s,l=>_t(l,e.getTime()));let n=s[o.index];o.index>=a&&(n=s[a-1]+this._baseDuration),this.zoomToValues(r,n,i)}zoomToValues(t,e,i){let s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=Z(t,s,a),e=Z(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(y(t)&&y(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());let i=this._root,s=i.utc,a=i.timezone,o=this._getDates(),r=this.get("renderer"),n=o.length,l=this._baseDuration,h=this.valueToIndex(t);h>0&&h--;let c=this.valueToIndex(e);c<n-1&&c++;let d=r.axisLength()/Math.max(r.get("minGridDistance"),1/Number.MAX_SAFE_INTEGER),u=Math.min(n,Math.ceil((c-h)/d));u=Math.max(1,u),h=Math.floor(h/u)*u,this._frequency=u,w(this.dataItems,I=>{this._toggleDataItem(I,!1)}),w(this.minorDataItems,I=>{this._toggleDataItem(I,!1)});let m=e-t-((e-t)/l-(c-h))*l,f=Rt(0,m,d,this.get("gridIntervals")),g=this.getPrivate("baseInterval"),p=q(f);p<l&&(f=Object.assign({},g),p=q(f)),this.setPrivateRaw("gridInterval",f),this._intervalDuration=p;let x=f.timeUnit,_=this.get("dateFormats"),v=Date.now();o[0]&&(v=o[0]);let b=R(this.getPrivate("selectionMin",0),x,f.count,i,v),T=r.get("minorLabelsEnabled"),P=r.get("minorGridEnabled",T),D,M=0,C;P&&(D=this._getMinorInterval(f),M=q(D));let k=this._getIndexes(b,this.getPrivate("selectionMax",b)+p,f,this.getPrivate("min",b));if(k.length>0){let I=0;this._m=0;let $=b-p*10,L=Ot(x);if(D){let V=o[k[0]];this._addMinorGrid(V-p,V,M,D)}let W=r.axisLength()/r.gridCount()*.5;w(k,V=>{var J;let Y;this.dataItems.length<I+1?(Y=new Q(this,void 0,{}),this._dataItems.push(Y),this.processDataItem(Y)):Y=this.dataItems[I];let N=o[V],X=new Date(N),yt=N;I<k.length-1?yt=o[k[I+1]]:yt+=p,Y.setRaw("value",N),Y.setRaw("endValue",yt),Y.setRaw("index",I),Y.setRaw("labelEndValue",void 0);let ft=_[x];L&&this.get("markUnitChange")&&y($)&&x!="year"&&Ut(N,$,L,s,a)&&(ft=this.get("periodChangeDateFormats")[x]),this._createAssets(Y,[]);let st=Y.get("label");st&&st.set("text",i.dateFormatter.format(X,ft)),this._toggleDataItem(Y,!0);let Mt=f.count;if(x=="week"&&Y.setRaw("labelEndValue",N),P){let at=f.timeUnit;if(at=="week"&&(at="day"),Mt>1||f.timeUnit=="week"){let H=R(N,at,1,i)+et(at,this._getM(at)),dt=this.valueToIndex(H);if(H=o[dt],H==N){let vt=o[dt+1];vt?H=vt:H+=M}Y.setRaw("labelEndValue",H)}Mt=1}if(this._prepareDataItem(Y,Mt),st&&C&&r.getPrivate("letter")=="X"){let at=C.get("label");if(at){let H=st.x(),dt=at.x();if(H-dt<W){let vt=this._pickWorse(C,Y,f);vt&&((J=vt.get("label"))===null||J===void 0||J.setPrivate("visible",!1))}}}D&&this._addMinorGrid(N,yt,M,D),I++,st&&st.getPrivate("visible")&&(C=Y),$=N})}w(this.series,I=>{I.inited&&I._markDirtyAxes()})}this._updateGhost()}_pickWorse(t,e,i){let s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return s=="hour"&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){let a=this.get("minorDateFormats",this.get("dateFormats")),o=s.timeUnit,r=t+et(o,this._getM(o));r=R(r,o,1,this._root);let n=e-i*.5,l=this._getIndexes(r,n,s,r),h=this._getDates();w(l,c=>{let d;this.minorDataItems.length<this._m+1?(d=new Q(this,void 0,{}),this.minorDataItems.push(d),this.processDataItem(d)):d=this.minorDataItems[this._m],r=h[c],d.setRaw("value",r),d.setRaw("endValue",r+i),d.setRaw("index",c),this._createAssets(d,["minor"],!0);let u=d.get("label");if(u)if(this.get("renderer").get("minorLabelsEnabled")){let m=new Date(r),f=a[o];u.set("text",this._root.dateFormatter.format(m,f))}else u.setPrivate("visible",!1);this._toggleDataItem(d,!0),this._prepareDataItem(d,1),this._m++})}_getIndexes(t,e,i,s){let a=[],o=i.timeUnit,r=i.count,n=this._getM(o),l=this.getPrivate("baseInterval"),h=this._root,c=this._getDates(),d=r-1,u=-1/0,m=et(o,n),f=et(o,r*n),g=t;for(o=="day"&&(t=s);t<=e;){t=R(t,o,r,h);let p=this.valueToIndex(t),x=c[p];if(o=="day"&&l.timeUnit=="day")this._hasDate(t)&&d++,d==r&&(t>=g-f*2&&It(a,p),d=0),t+=m,t=R(t,o,1,h);else{if(x<t){for(let _=p,v=c.length;_<v;_++)if(x=c[_],x>=t){p=_;break}}It(a,p),t+=f,t=R(t,o,r,h)}if(t==u&&(t+=f+m,t=R(t,o,r,h)),t==u)break;u=t}return a}_hasDate(t){return pt(this._getDates(),i=>re(i,t)).found}_nextTime(t,e,i){let s=Z(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}};Ht.className="GaplessDateAxis";Ht.classNames=wt.classNames.concat([Ht.className]);var jt=class extends it{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["axis"]),super._afterNew()}_prepareChildren(){this.isDirty("baseUnit")&&(this._sizeDirty=!0),super._prepareChildren()}_adjustMinMax(t,e,i,s){let a,o=this.getDurationFormatter(),r=this.get("baseUnit");if(this.setRaw("maxPrecision",0),r=="millisecond"||r=="second"||r=="minute"||r=="hour"){i<=1&&(i=1),i=Math.round(i);let n=e-t;n===0&&(n=Math.abs(e));let l=n/i,h=[60,30,20,15,10,2,1],c=1;r=="hour"&&(h=[24,12,6,4,2,1]);for(let p of h)if(n/p>i){c=p;break}let d=Math.ceil((e-t)/c/i),u=Math.log(Math.abs(d))*Math.LOG10E,m=Math.pow(10,Math.floor(u))/10,f=d/m;d=qe(h,f)*m,l=c*d,t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l,a={min:t,max:e,step:l}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,r)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){let i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=G(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}};jt.className="DurationAxis";jt.classNames=it.classNames.concat([jt.className]);var Zt=class extends De{_beforeChanged(){super._beforeChanged();let t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t._setCAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){let e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){let t=this.axis;t&>(t._bullets,(e,i)=>{i.uid==this.uid&&delete t._bullets[e]}),super._dispose()}};Zt.className="AxisBullet";Zt.classNames=De.classNames.concat([Zt.className]);var Lt=class extends Pe{constructor(){super(...arguments),this._tickPoints=[]}};Lt.className="AxisLabel";Lt.classNames=Pe.classNames.concat([Lt.className]);var qt=class extends Ce{constructor(){super(...arguments),this._tickPoints=[]}};qt.className="AxisLabelRadial";qt.classNames=Ce.classNames.concat([qt.className]);var Ft=class extends Se{constructor(){super(...arguments),this._tickPoints=[]}};Ft.className="AxisTick";Ft.classNames=Se.classNames.concat([Ft.className]);var Kt=class extends Ae{constructor(){super(...arguments),this._tickPoints=[]}};Kt.className="EditableAxisLabel";Kt.classNames=Ae.classNames.concat([Kt.className]);var ct=class extends E{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new j(z.new({}),()=>Ft._new(this._root,{themeTags:F(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))),this.grid=this.addDisposer(new j(z.new({}),()=>mt._new(this._root,{themeTags:F(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))),this.axisFills=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this.labels=this.addDisposer(new j(z.new({}),()=>Lt._new(this._root,{themeTags:F(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}makeTick(t,e){let i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){let i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){let i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",F(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){let i=this.labels.make();return i.set("themeTags",F(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this._setC("isMeasured",!1);let t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){let t=this.thumb;if(t){let e=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?e.children.push(t):i=="none"&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);let e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){let e=this._thumbDownPoint;if(e){let i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t=t*(i-e),this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e),t}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis,o=a.get("start",0),r=a.get("end",1),n=o+(r-o)*(i-1e-4),l=o+(r-o)*(s+1e-4);e<n||e>l?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){let i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}};ct.className="AxisRenderer";ct.classNames=E.classNames.concat([ct.className]);var Jt=class extends ct{constructor(){super(...arguments),this.thumb=xt.new(this._root,{width:S,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})._markC("width","isMeasured","themeTags")}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");let t=this.grid.template;t._setC("height",S),t._setC("width",0),t._setC("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)})}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i._setC("x",-1e3));let s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){let o=this.chart,r=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),o){if(this.get(s)){let n=o.topAxesContainer.children;n.indexOf(e)==-1&&n.insertIndex(0,e),e.addTag(s),r.moveValue(this)}else{let n=o.bottomAxesContainer.children;n.indexOf(e)==-1&&n.moveValue(e),e.removeTag(s),r.moveValue(this,0)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(n=>{n._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=i-t:t=e+t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t=t-e,t=t/(i-e)*this._lc,t+=this._ls,t}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){let t=this.axis,e=t.x()-Nt(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer._setC("x",e),t.topGridContainer._setC("x",e),t.bulletsContainer._setC("y",this.y());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginLeft",0),r=t.x()-o,n=t.parent;n&&(r-=n.get("paddingLeft",0)),a.children.length>0?(a.isComputedSetting("width")&&a.remove("width"),o=t.axisHeader.width(),t._setC("marginLeft",o+1)):a._setC("width",o),a.setAll({x:r,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();let t=this.axis;t.get("width")==null&&t._setC("width",S);let e=this._root.verticalLayout;t._setC("layout",e),t.labelsContainer.set("width",S),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("x",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t._setC("y",S),r||(o*=-1)):(t._setC("y",0),r&&(o*=-1)),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(0,o)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(e)||(e=0);let o=t.get("inside",this.get("inside",!1));this.get("opposite")?o?(t._setC("position","absolute"),t._setC("y",0)):(t._setC("position","relative"),t._setC("y",S)):o?(t._setC("y",0),t._setC("position","absolute")):(t._setC("y",void 0),t._setC("position","relative")),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){y(e)||(e=0);let s=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*s),t._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){y(e)||(e=0);let a=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=-1;if(this.get("opposite")&&(n=1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s._setC("y",l.y()+l.height()*n)}else s._setC("y",0);this.axis._bullets[o]=t,s._setC("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){y(e)||(e=0),y(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.height(),o=this.width();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(e,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(e,a),s.lineTo(e,0))})}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,r=this.axisLength(),n=i,l="up";this.get("opposite")?e?(l="up",o=s.y,n=i):(l="down",o=s.y-i,n=i):e?(l="down",o=s.y-i,n=i):(l="up",o=s.y,n=i);let h={left:a,right:a+r,top:o,bottom:o+n},c=t.get("bounds");de(h,c)||(t.set("bounds",h),t._setC("pointerOrientation",l))}};Jt.className="AxisRendererX";Jt.classNames=ct.classNames.concat([Jt.className]);var Qt=class extends ct{constructor(){super(...arguments),this.thumb=xt.new(this._root,{height:S,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})._markC("height","isMeasured","themeTags")}_afterNew(){this._settings.themeTags=F(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");let t=this.grid.template;t._setC("width",S),t._setC("height",0),t._setC("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(i.width(),0)}),this.set("draw",(e,i)=>{e.moveTo(0,0),e.lineTo(0,i.height())})}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();let e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i._setC("y",-1e3));let s=this.thumb,a="opposite",o="inside",r=this.chart;if(this.isDirty(a)||this.isDirty(o)){let l=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),r){if(this.get(a)){let h=r.rightAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e,0),e.addTag(a),l.moveValue(this,0)}else{let h=r.leftAxesContainer.children;h.indexOf(e)==-1&&h.moveValue(e),e.removeTag(a),l.moveValue(this)}(t=e.ghostLabel)===null||t===void 0||t._applyThemes(),this.labels.each(h=>{h._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}let n=e.labelsContainer.width();r&&(this.get(a)?s._setC("centerX",0):s._setC("centerX",n)),s.setPrivate("width",n)}processAxis(){super.processAxis();let t=this.axis;t.get("height")==null&&t._setC("height",S);let e=this._root.horizontalLayout;t._setC("layout",e),t.labelsContainer.set("height",S),t.axisHeader.set("layout",e)}_updatePositions(){let t=this.axis,e=t.y()-Nt(t.get("centerY",0),t.height());t.gridContainer._setC("y",e),t.topGridContainer._setC("y",e),t.bulletsContainer._setC("x",this.x());let i=t.chart;if(i){let s=i.plotContainer,a=t.axisHeader,o=t.get("marginTop",0);a.children.length>0?(a.isComputedSetting("height")&&a.remove("height"),o=t.axisHeader.height(),t._setC("marginTop",o+1)):a._setC("height",o),a.setAll({y:t.y()-o,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a);let o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t._setC("x",0),r?t._setC("position","absolute"):t._setC("position","relative")):r?(t._setC("x",0),t._setC("position","absolute")):(t._setC("x",void 0),t._setC("position","relative")),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){y(e)||(e=0);let s=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*s),t._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){y(e)||(e=0);let a=.5;y(s)&&s>1?a=t.get("multiLocation",a):a=t.get("location",a),y(i)&&i!=e&&(e=e+(i-e)*a),t._setC("y",this.positionToCoordinate(e));let o=t.get("length",0),r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t._setC("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",n=>{n.moveTo(0,0),n.lineTo(o,0)}),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){let s=t.get("sprite");if(s){y(e)||(e=0);let a=t.get("location",.5);y(i)&&i!=e&&(e=e+(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],n=1;if(this.get("opposite")&&(n=-1),t.get("stacked"))if(r){let l=r.get("sprite");l&&s._setC("x",l.x()+l.width()*n)}else s._setC("x",0);this.axis._bullets[o]=t,s._setC("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){y(e)||(e=0),y(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",s=>{let a=this.axis.gridContainer.width(),o=this.height();i<e&&([i,e]=[e,i]),!(e>o||i<0)&&(s.moveTo(0,e),s.lineTo(a,e),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,e))})}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){let e=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,r=this.axisLength(),n=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,n=i):(l="left",o=s.x,n=i):e?(l="left",o=s.x,n=i):(l="right",o=s.x-i,n=i);let h={left:o,right:o+n,top:a,bottom:a+r},c=t.get("bounds");de(h,c)||(t.set("bounds",h),t._setC("pointerOrientation",l))}_updateLC(){let t=this.axis,e=t.parent;if(e){let i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){let e=this._start||0,i=this._end||1;return t-=this._ls,t=t*(i-e)/this._lc,this.get("inversed")?t=e+t:t=i-t,t}toGlobalPosition(t){let e=this._start||0,i=this._end||1;return this.get("inversed")?t=t-e:t=i-t,t=t/(i-e)*this._lc,t+=this._ls,t}fixPosition(t){return this.get("inversed")?t:1-t}};Qt.className="AxisRendererY";Qt.classNames=ct.classNames.concat([Qt.className]);var ut=class extends Et{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();let t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}};ut.className="Candlestick";ut.classNames=Et.classNames.concat([ut.className]);var Pt=class extends bt{constructor(){super(...arguments),this.allColumns=this.children.push(E.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new j(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:F(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>Et._new(this._root,{position:"absolute",themeTags:F(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),w(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()})})}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,r,n){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);let l=e.get("stroke"),h=e.get("fillOpacity",1),c=e.get("strokeOpacity",1),d=e.get("strokeWidth",1),u=e.get("fill"),m=this.getPoint(i,a),f=this.getPoint(s,o),g=t.get("point");if(g){let p=this.getPoint(g.x,g.y);g.x=p.x+this._x,g.y=p.y+this._y}i=m.x,s=f.x,a=m.y,o=f.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:l,fill:u,strokeWidth:d,strokeOpacity:c,fillOpacity:h})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,r,n)}};Pt.className="ColumnSeries";Pt.classNames=bt.classNames.concat([Pt.className]);var Tt=class extends Pt{constructor(){super(...arguments),this.columns=this.addDisposer(new j(z.new({themeTags:["autocolor"]}),()=>ut._new(this._root,{themeTags:F(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);let s=this.getRaw("xAxis"),a=this.getRaw("yAxis"),o=this.get("vcy",1),r=this.get("vcx",1),n,l,h,c,d,u,m,f,g=this.get("locationX",t.get("locationX",.5)),p=this.get("locationY",t.get("locationY",.5)),x=this.get("openLocationX",t.get("openLocationX",g)),_=this.get("openLocationY",t.get("openLocationY",p)),v;if(i==0){let b=a.getDataItemPositionY(t,this._yOpenField,1,o),T=a.getDataItemPositionY(t,this._yField,1,o);c=a.getDataItemPositionY(t,this._yLowField,1,o),f=a.getDataItemPositionY(t,this._yHighField,1,o),m=Math.max(b,T),h=Math.min(b,T);let P=this._aLocationX0+x-.5,D=this._aLocationX1+g-.5;n=s.getDataItemPositionX(t,this._xField,P+(D-P)/2,r),l=n,d=n,u=n,v="vertical"}else{let b=s.getDataItemPositionX(t,this._xOpenField,1,r),T=s.getDataItemPositionX(t,this._xField,1,r);l=s.getDataItemPositionX(t,this._xLowField,1,r),u=s.getDataItemPositionX(t,this._xHighField,1,r),d=Math.max(b,T),n=Math.min(b,T);let P=this._aLocationY0+_-.5,D=this._aLocationY1+p-.5;h=a.getDataItemPositionY(t,this._yField,P+(D-P)/2,o),c=h,m=h,f=h,v="horizontal"}this._updateCandleGraphics(t,n,l,h,c,d,u,m,f,v)}_updateCandleGraphics(t,e,i,s,a,o,r,n,l,h){let c=t.get("graphics");if(c){let d=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,n),f=this.getPoint(r,l);if(this.get("turboMode")){let g=this.allColumnsData[this.allColumnsData.length-1];g.lowX0=d.x,g.lowY0=d.y,g.lowX1=u.x,g.lowY1=u.y,g.highX0=m.x,g.highY0=m.y,g.highX1=f.x,g.highY1=f.y}else{let g=c.x(),p=c.y();c.set("lowX0",d.x-g),c.set("lowY0",d.y-p),c.set("lowX1",u.x-g),c.set("lowY1",u.y-p),c.set("highX0",m.x-g),c.set("highY0",m.y-p),c.set("highX1",f.x-g),c.set("highY1",f.y-p),c.set("orientation",h);let x=t.get("rangeGraphics");x&&w(x,_=>{_.set("lowX0",d.x-g),_.set("lowY0",d.y-p),_.set("lowX1",u.x-g),_.set("lowY1",u.y-p),_.set("highX0",m.x-g),_.set("highY0",m.y-p),_.set("highX1",f.x-g),_.set("highY1",f.y-p),_.set("orientation",h)})}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",t=>{t.clear(),w(this.allColumnsData,e=>{let i=e.width,s=e.height,a=e.x,o=e.y,r=e.stroke,n=e.fill,l=e.strokeWidth,h=e.strokeOpacity,c=e.fillOpacity,d=e.lowX0,u=e.lowY0,m=e.lowX1,f=e.lowY1,g=e.highX0,p=e.highY0,x=e.highX1,_=e.highY1;t.beginFill(n,c),t.beginPath(),t.lineStyle(l,r,h),t.drawRect(a,o,i,s),t.moveTo(d,u),t.lineTo(m,f),t.moveTo(g,p),t.lineTo(x,_),t.endStroke(),t.endFill()})})}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>ut._new(this._root,{themeTags:F(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template]))}};Tt.className="CandlestickSeries";Tt.classNames=Pt.classNames.concat([Tt.className]);var At=class extends ut{_draw(){let t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if(this.get("orientation")=="vertical"){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}};At.className="OHLC";At.classNames=ut.classNames.concat([At.className]);var te=class extends Tt{constructor(){super(...arguments),this.columns=this.addDisposer(new j(z.new({themeTags:["autocolor"]}),()=>At._new(this._root,{themeTags:F(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template])))}makeColumn(t,e){let i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new j(z.new({}),()=>At._new(this._root,{themeTags:F(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template]))}};te.className="OHLCSeries";te.classNames=Tt.classNames.concat([te.className]);var K=class extends lt{constructor(){super(...arguments),this._strokeGenerator=ii(),this._fillGenerator=si(),this.strokes=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))),this.fills=this.addDisposer(new j(z.new({}),()=>E._new(this._root,{themeTags:F(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0(function(t){return t[3]}),this._fillGenerator.x0(function(t){return t[2]}),this._fillGenerator.y1(function(t){return t[1]}),this._fillGenerator.x1(function(t){return t[0]}),super._afterNew()}makeStroke(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){let e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){let i=this.get("stroke");this.strokes.template._setC("stroke",i);let s=this._legendStroke;s&&s.states.lookup("default")._setC("stroke",i)}if(this.isDirty("fill")){let i=this.get("fill");this.fills.template._setC("fill",i);let s=this._legendFill;s&&s.states.lookup("default")._setC("fill",i)}if(this.isDirty("fillPattern")){let i=this.get("fillPattern");this.fills.template._setC("fillPattern",i);let s=this._legendFill;s&&s.states.lookup("default")._setC("fillPattern",i)}if(this.isDirty("curveFactory")){let i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){let i=this.dataItems;this.fills.each(c=>{c.setPrivate("visible",!1)}),this.strokes.each(c=>{c.setPrivate("visible",!1)}),this.axisRanges.each(c=>{let d=c.fills;d&&d.each(m=>{m.setPrivate("visible",!1)});let u=c.strokes;u&&u.each(m=>{m.setPrivate("visible",!1)})});let s=this.startIndex(),a=this.strokes.template.get("templateField"),o=this.fills.template.get("templateField"),r=!0,n=!0;a&&(r=!1),o&&(n=!1);for(let c=s-1;c>=0;c--){let d=i[c],u=!0,m=d.dataContext;a&&m[a]&&(r=!0),o&&m[o]&&(n=!0);for(let f=0,g=this._valueFields.length;f<g;f++)if(!y(d.get(this._valueFields[f]))){u=!1;break}if(u&&r&&n){s=c;break}}let l=i.length,h=this.endIndex();if(h<l){h++;for(let c=h;c<l;c++){let d=i[c],u=!0;for(let m=0,f=this._valueFields.length;m<f;m++)if(!y(d.get(this._valueFields[m]))){u=!1;break}if(u){h=c+1;break}}}if(s>0&&s--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=s,l==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(t=>{t.fills.clear(),t.strokes.clear()})}_startSegment(t){let e=this.dataItems,i=this._endIndex,s=i,a=this.get("autoGapCount"),o=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,l=this.fills.template;n&&n!=l&&(r.template=n),r.setPrivate("visible",!0);let h=this.makeStroke(this.strokes),c=this._strokeTemplate;c&&c!=this.strokes.template&&(h.template=c),h.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),f=this.get("vcx",1),g=this.get("vcy",1),p=this._xField,x=this._yField,_=this._xOpenField,v=this._yOpenField,b=this.get("openValueXField"),T=this.get("openValueYField");b||(_=this._xField),T||(v=this._yField);let P=this.get("stacked"),D=d.basePosition(),M=u.basePosition(),C;m===u?C=this._yField:C=this._xField;let k=[],I=[];k.push(I);let $=this.strokes.template.get("templateField"),L=this.fills.template.get("templateField"),W=this.get("locationX",.5),V=this.get("locationY",.5),J=this.get("openLocationX",W),Y=this.get("openLocationY",V),N=this.get("minDistance",0),X,yt=this.fills.template.get("visible");this.axisRanges.length>0&&(yt=!0);let ft=!1;(P||b||T)&&(ft=!0);let st={points:I,segments:k,stacked:P,getOpen:ft,basePosX:D,basePosY:M,fillVisible:yt,xField:p,yField:x,xOpenField:_,yOpenField:v,vcx:f,vcy:g,baseAxis:m,xAxis:d,yAxis:u,locationX:W,locationY:V,openLocationX:J,openLocationY:Y,minDistance:N},Mt=this._strokeTemplate,at=this._fillTemplate;for(X=t;X<s;X++){this._dindex=X;let H=e[X],dt=H.get(p),vt=H.get(x);if(dt==null||vt==null?o||(I=[],k.push(I),st.points=I):this._getPoints(H,st),$){let O=H.dataContext[$];if(O)if(O instanceof z||(O=z.new(O)),this._strokeTemplate=O,X>t){s=X;break}else Mt=O,h.template=O}if(L){let O=H.dataContext[L];if(O)if(O instanceof z||(O=z.new(O)),this._fillTemplate=O,X>t){s=X;break}else at=O,r.template=O}if(!o){let O=e[X+1];O&&m.shouldGap(H,O,a,C)&&(I=[],k.push(I),st.points=I)}}r.setRaw("userData",[t,X]),h.setRaw("userData",[t,X]),X===i&&this._endLine(I,k[0][0]),h&&this._drawStroke(h,k),r&&this._drawFill(r,k),this.axisRanges.each(H=>{let dt=H.container,vt=H.fills,O=this.makeFill(vt);dt&&dt.children.push(O),O.setPrivate("visible",!0),this._drawFill(O,k);let di=H.strokes,oe=this.makeStroke(di);dt&&dt.children.push(oe),Mt&&Mt!=this.strokes.template&&(oe.template=Mt),at&&at!=this.fills.template&&(O.template=at),oe.setPrivate("visible",!0),this._drawStroke(oe,k),O.setRaw("userData",[t,X]),oe.setRaw("userData",[t,X])})}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY),o=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1),n=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),l=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,r);if(this._shouldInclude(n)){let h=this.getPoint(n,l),c=[h.x,h.y];if(h.x+=this._x,h.y+=this._y,t.set("point",h),e.fillVisible){let d=n,u=l;if(e.baseAxis===e.xAxis?u=e.basePosY:e.baseAxis===e.yAxis&&(d=e.basePosX),e.getOpen){let f=t.get(e.xOpenField),g=t.get(e.yOpenField);if(f!=null&&g!=null){let p=t.get("openLocationX",e.openLocationX),x=t.get("openLocationY",e.openLocationY);if(e.stacked){let _=t.get("stackToItemX"),v=t.get("stackToItemY");_?(d=e.xAxis.getDataItemPositionX(_,e.xField,p,_.component.get("vcx"),o),ot(d)&&(d=e.basePosX)):e.yAxis===e.baseAxis?d=e.basePosX:d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),v?(u=e.yAxis.getDataItemPositionY(v,e.yField,x,v.component.get("vcy"),r),ot(u)&&(u=e.basePosY)):e.xAxis===e.baseAxis?u=e.basePosY:u=e.yAxis.getDataItemPositionY(t,e.yOpenField,x,e.vcy,r)}else d=e.xAxis.getDataItemPositionX(t,e.xOpenField,p,e.vcx,o),u=e.yAxis.getDataItemPositionY(t,e.yOpenField,x,e.vcy,r)}}let m=this.getPoint(d,u);c[2]=m.x,c[3]=m.y}if(e.minDistance>0){let d=c[0],u=c[1],m=c[2],f=c[3],g=this._previousPoint,p=g[0],x=g[1],_=g[2],v=g[3];(Math.hypot(d-p,u-x)>e.minDistance||m&&f&&Math.hypot(m-_,f-v)>e.minDistance)&&(i.push(c),this._previousPoint=c)}else i.push(c)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{w(e,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",i=>{w(e,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(t){super._processAxisRange(t),t.fills=new j(z.new({}),()=>E._new(this._root,{themeTags:F(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template])),t.strokes=new j(z.new({}),()=>E._new(this._root,{themeTags:F(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template]))}createLegendMarker(t){let e=this.get("legendDataItem");if(e){let i=e.get("marker"),s=e.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",xt.new(i._root,{fillOpacity:0,fill:je(0)}));let a=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;let o=i.children.push(E._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;let r=this._root.interfaceColors.get("disabled");if(a.states._createC("disabled",{fill:r,stroke:r}),o.states._createC("disabled",{fill:r,stroke:r}),this.bullets.length>0){let n=this.bullets.getIndex(0);if(n){let l=n(i._root,this,new Q(this,{legend:!0},{}));if(l){let h=l.get("sprite");h instanceof E&&h.states._createC("disabled",{fill:r,stroke:r}),h&&(this._applyBulletDefaultPaint(h),h.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(h),h.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{h.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}};K.className="LineSeries";K.classNames=lt.classNames.concat([K.className]);var Ne=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ye(this,this._t0,li(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ye(this,li(this,i=ri(this,t,e)),i);break;default:Ye(this,this._t0,i=ri(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function fe(A){function t(e){return new Ne(e,A)}return t.tension=function(e){return fe(+e)},t}function ni(A){return A<0?-1:1}function ri(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(ni(a)+ni(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function li(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Ye(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(s+r*t,i+r,o-r*e,a-r,o,a)}var ee=class extends K{_afterNew(){this._setDefault("curveFactory",fe(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",fe(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ee.className="SmoothedYLineSeries";ee.classNames=K.classNames.concat([ee.className]);var Ve=class{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Re(this,this._t0,ui(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Re(this,ui(this,i=ci(this,t,e)),i);break;default:Re(this,this._t0,i=ci(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ge(A){function t(e){return new Ve(e,A)}return t}function hi(A){return A<0?-1:1}function ci(A,t,e){let i=A._x1-A._x0,s=t-A._x1,a=(A._y1-A._y0)/(i||s<0&&-0),o=(e-A._y1)/(s||i<0&&-0),r=(a*s+o*i)/(i+s);return(hi(a)+hi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(r))||0}function ui(A,t){let e=A._x1-A._x0;return e?(3*(A._y1-A._y0)/e-t)/2:t}function Re(A,t,e){let i=A._x0,s=A._y0,a=A._x1,o=A._y1,r=(a-i)/1.5*(1-A._tension);A._context.bezierCurveTo(i+r,s+r*t,a-r,o-r*e,a,o)}var ie=class extends K{_afterNew(){this._setDefault("curveFactory",Ge(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ge(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};ie.className="SmoothedXLineSeries";ie.classNames=K.classNames.concat([ie.className]);var se=class extends K{_afterNew(){this._setDefault("curveFactory",Ie.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",Ie.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}};se.className="SmoothedXYLineSeries";se.classNames=K.classNames.concat([se.className]);var ae=class extends K{_afterNew(){this._setDefault("curveFactory",ai),super._afterNew()}_prepareChildren(){super._prepareChildren(),(this.isDirty("stepWidth")||this.isDirty("noRisers"))&&(this._valuesDirty=!0)}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",S).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),r=a,n=o;e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s);let l=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),h=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),c=e.xAxis.getDataItemPositionX(t,e.xField,r,e.vcx),d=e.yAxis.getDataItemPositionY(t,e.yField,n,e.vcy);if(this._shouldInclude(l)){let u=this.getPoint(l,h),m=[u.x,u.y],f=this.getPoint(c,d),g=[f.x,f.y];if(e.fillVisible){let p=l,x=h,_=c,v=d;if(e.baseAxis===e.xAxis?(x=e.basePosY,v=e.basePosY):e.baseAxis===e.yAxis&&(p=e.basePosX,_=e.basePosX),e.getOpen){let P=t.get(e.xOpenField),D=t.get(e.yOpenField);if(P!=null&&D!=null)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),r=a,n=o,e.baseAxis===e.xAxis?(a-=s,r+=s):e.baseAxis===e.yAxis&&(o-=s,n+=s),e.stacked){let M=t.get("stackToItemX"),C=t.get("stackToItemY");M?(p=e.xAxis.getDataItemPositionX(M,e.xField,a,M.component.get("vcx")),_=e.xAxis.getDataItemPositionX(M,e.xField,r,M.component.get("vcx"))):e.yAxis===e.baseAxis?(p=e.basePosX,_=e.basePosX):e.baseAxis===e.xAxis&&(p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),_=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx)),C?(x=e.yAxis.getDataItemPositionY(C,e.yField,o,C.component.get("vcy")),v=e.yAxis.getDataItemPositionY(C,e.yField,n,C.component.get("vcy"))):e.xAxis===e.baseAxis?(x=e.basePosY,v=e.basePosY):e.baseAxis===e.yAxis&&(x=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),v=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy))}else p=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),x=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.xAxis.getDataItemPositionX(t,e.xOpenField,r,e.vcx),v=e.yAxis.getDataItemPositionY(t,e.yOpenField,n,e.vcy)}let b=this.getPoint(p,x),T=this.getPoint(_,v);m[2]=b.x,m[3]=b.y,g[2]=T.x,g[3]=T.y}i.push(m),i.push(g),t.set("point",{x:m[0]+(g[0]-m[0])/2,y:m[1]+(g[1]-m[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}};ae.className="StepLineSeries";ae.classNames=K.classNames.concat([ae.className]);export{ht as Axis,Zt as AxisBullet,Lt as AxisLabel,qt as AxisLabelRadial,ct as AxisRenderer,Jt as AxisRendererX,Qt as AxisRendererY,Ft as AxisTick,bt as BaseColumnSeries,ut as Candlestick,Tt as CandlestickSeries,Dt as CategoryAxis,Wt as CategoryDateAxis,Pt as ColumnSeries,wt as DateAxis,he as DefaultTheme,jt as DurationAxis,Kt as EditableAxisLabel,Ht as GaplessDateAxis,mt as Grid,K as LineSeries,At as OHLC,te as OHLCSeries,ie as SmoothedXLineSeries,se as SmoothedXYLineSeries,ee as SmoothedYLineSeries,ae as StepLineSeries,it as ValueAxis,St as XYChart,zt as XYChartScrollbar,Bt as XYCursor,lt as XYSeries};
|