@arcgis/map-components 5.0.0-next.90 → 5.0.0-next.92
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/{U74UFYYQ.js → 24FZLFOK.js} +2 -2
- package/dist/cdn/{D6YORZ6Z.js → 25IZDWSN.js} +2 -2
- package/dist/cdn/{3HWVRQ7K.js → 25X64BXA.js} +2 -2
- package/dist/cdn/{BMSBXW5D.js → 2DK7SRP6.js} +2 -2
- package/dist/cdn/{DRTOE6IA.js → 2E7TZRRV.js} +2 -2
- package/dist/cdn/{UG2G45YI.js → 2LRNI36V.js} +2 -2
- package/dist/cdn/{NDUQ2GHR.js → 2OV6QYUX.js} +2 -2
- package/dist/cdn/{W76YQAXV.js → 2RPF4M2F.js} +2 -2
- package/dist/cdn/{KVLPMHPW.js → 2WTZVJD5.js} +2 -2
- package/dist/cdn/{UNNF2LKB.js → 2XZDHGFY.js} +2 -2
- package/dist/cdn/{CNDQZAPS.js → 3RKITOWL.js} +2 -2
- package/dist/cdn/{AW5MJPTP.js → 3V72WFKG.js} +2 -2
- package/dist/cdn/{VOIMVOGB.js → 47KFNKS5.js} +2 -2
- package/dist/cdn/{A6OO5CVC.js → 4FUAC2GT.js} +2 -2
- package/dist/cdn/{3CJEEI5I.js → 4K3ZXFR5.js} +2 -2
- package/dist/cdn/{S6N3ONVL.js → 4WWVGZYW.js} +2 -2
- package/dist/cdn/{DYTKL4XS.js → 4Y57U7FU.js} +2 -2
- package/dist/cdn/55HXIMBO.js +4 -0
- package/dist/cdn/{S6CT6U5A.js → 5GVY3VJX.js} +2 -2
- package/dist/cdn/{3GWX3L6S.js → 5NVMXBFF.js} +2 -2
- package/dist/cdn/{KGETSVR7.js → 5PWGWHIR.js} +2 -2
- package/dist/cdn/{Y3EDBXQZ.js → 5RRFOQBO.js} +2 -2
- package/dist/cdn/{MK76EE4Q.js → 5XDWNZXA.js} +1 -1
- package/dist/cdn/{JH5VY4US.js → 5XGLIHAN.js} +2 -2
- package/dist/cdn/{H3OKUEQL.js → 5ZNR3CE3.js} +2 -2
- package/dist/cdn/{PH2OTBIA.js → 665BJZWA.js} +2 -2
- package/dist/cdn/{Q2I4QG6D.js → 67LSQGRU.js} +2 -2
- package/dist/cdn/{T6WV27M6.js → 6PESQ2ZC.js} +2 -2
- package/dist/cdn/{SLXI3K4B.js → 6POLNT3T.js} +2 -2
- package/dist/cdn/{KUL6S3DX.js → 6RPQCOWI.js} +1 -1
- package/dist/cdn/{7WFM5J2F.js → 6XSSLDAH.js} +2 -2
- package/dist/cdn/{BFVMCMFV.js → 724N2M2P.js} +2 -2
- package/dist/cdn/74QPIFS2.js +4 -0
- package/dist/cdn/7A3IV2NK.js +4 -0
- package/dist/cdn/{QK444EF5.js → 7FCONDWZ.js} +2 -2
- package/dist/cdn/{SKT54EUT.js → 7S7OOY2G.js} +2 -2
- package/dist/cdn/{ZCL3I6HX.js → 7TABBIEO.js} +2 -2
- package/dist/cdn/{AWTB4KWO.js → A33MSS2I.js} +2 -2
- package/dist/cdn/{AUZDBP5L.js → A447YPEL.js} +2 -2
- package/dist/cdn/{6YBNPHGY.js → A7QBL3A2.js} +2 -2
- package/dist/cdn/{RKHCFIRD.js → AOG3QITX.js} +2 -2
- package/dist/cdn/ARVZDHWN.js +4 -0
- package/dist/cdn/{XIPFDQ3S.js → AUNPO5WZ.js} +2 -2
- package/dist/cdn/B5Y47WQN.js +4 -0
- package/dist/cdn/{7ZMUBPOH.js → BGPK3K43.js} +2 -2
- package/dist/cdn/{7N6MQUMB.js → BH6X2ZRD.js} +2 -2
- package/dist/cdn/{7UGLJNWT.js → BPYMQST7.js} +2 -2
- package/dist/cdn/BQFCW32I.js +4 -0
- package/dist/cdn/{MIBZHACO.js → BQNWJURN.js} +2 -2
- package/dist/cdn/{ENXNR2LA.js → CFAZ3H3S.js} +2 -2
- package/dist/cdn/{EONKFEB3.js → CFIV5F2K.js} +1 -1
- package/dist/cdn/{74SGFEVD.js → CFQNKQLP.js} +2 -2
- package/dist/cdn/{DCQ5RNVN.js → CITIZAZI.js} +2 -2
- package/dist/cdn/{ZMB35EK7.js → CMXMA5IM.js} +2 -2
- package/dist/cdn/{2YGWSADU.js → CNKQ7MZX.js} +2 -2
- package/dist/cdn/{6GNRQEC3.js → COF2YZPH.js} +2 -2
- package/dist/cdn/{V53RKC26.js → COVHNV3T.js} +2 -2
- package/dist/cdn/{ADXGKVLD.js → CTSLSL6J.js} +2 -2
- package/dist/cdn/{B2NHQ7FO.js → CVOYRKZS.js} +2 -2
- package/dist/cdn/{RYFBEAKQ.js → D4FAYT3J.js} +2 -2
- package/dist/cdn/{FNAXNZI2.js → D7OM7PCI.js} +1 -1
- package/dist/cdn/{C4KYNX6H.js → DDVIT3TT.js} +2 -2
- package/dist/cdn/{YBPW424L.js → DEBK2ZK4.js} +1 -1
- package/dist/cdn/{WT6TANUH.js → DJMJ44ZT.js} +1 -1
- package/dist/cdn/{OTZKW3S6.js → DT2WRSQY.js} +2 -2
- package/dist/cdn/{TKEH5GN3.js → DYQ5UU4K.js} +2 -2
- package/dist/cdn/{6XDAYJLK.js → DYUQ33TG.js} +2 -2
- package/dist/cdn/{2HVBYCPC.js → E5ADEGIT.js} +2 -2
- package/dist/cdn/{FUDSHRUB.js → EBNKZMCI.js} +2 -2
- package/dist/cdn/{SYCXLEKZ.js → ECBC3KB6.js} +2 -2
- package/dist/cdn/{EXDD72XG.js → EDYL7HPP.js} +2 -2
- package/dist/cdn/{N7TTNWMI.js → EEG3ZTH7.js} +2 -2
- package/dist/cdn/EFHSMHAF.js +4 -0
- package/dist/cdn/{N7MIJVYF.js → EG242PP3.js} +2 -2
- package/dist/cdn/{A54D5S6V.js → EMP5JE4T.js} +2 -2
- package/dist/cdn/{DQYL3HI2.js → EUZIMXC5.js} +2 -2
- package/dist/cdn/{K6E6ZD45.js → EXT3ZY7P.js} +2 -2
- package/dist/cdn/{NMPSWSSB.js → F6EPH7E3.js} +2 -2
- package/dist/cdn/{IGTURWYA.js → FEFDKT3G.js} +2 -2
- package/dist/cdn/{YR2JP7SG.js → FHR2AZGF.js} +2 -2
- package/dist/cdn/{2AYVJ66S.js → FQONR5NB.js} +2 -2
- package/dist/cdn/{STF7ET2N.js → FYIUMYGR.js} +2 -2
- package/dist/cdn/{POMYCCN2.js → G2PXX25P.js} +2 -2
- package/dist/cdn/{6DX6R56C.js → G46MJ3MY.js} +2 -2
- package/dist/cdn/GEPPAFBR.js +4 -0
- package/dist/cdn/{KOKMO43D.js → GKAZ2TIK.js} +2 -2
- package/dist/cdn/{A7GNC7ZI.js → GLSWPO6R.js} +2 -2
- package/dist/cdn/{GNEC2KWT.js → GNVA4UPJ.js} +2 -2
- package/dist/cdn/{KG7CIEDE.js → GPQMTS6R.js} +2 -2
- package/dist/cdn/{M4Q4QOII.js → GXO3FWW2.js} +2 -2
- package/dist/cdn/{A4RLRA6T.js → H4UC7K4E.js} +2 -2
- package/dist/cdn/{35G73FDH.js → H4W6QKJU.js} +2 -2
- package/dist/cdn/{67Z3EBZ2.js → H7ZXWNKO.js} +2 -2
- package/dist/cdn/{3ZXJS4BI.js → HIDXWWXK.js} +2 -2
- package/dist/cdn/{LSORVIZ5.js → HIQFUQOV.js} +2 -2
- package/dist/cdn/{ZMK4HSBL.js → HJAHZKHB.js} +2 -2
- package/dist/cdn/{CDDDMRAN.js → HLEWL2DQ.js} +2 -2
- package/dist/cdn/{4V2LCRNX.js → HMQOM3V5.js} +2 -2
- package/dist/cdn/{UNNGMAGN.js → HNS4AQVJ.js} +2 -2
- package/dist/cdn/{D5M5ODQ2.js → HRISCZE4.js} +2 -2
- package/dist/cdn/{CIOVNPBH.js → HZDBJ2JH.js} +2 -2
- package/dist/cdn/{7FJ7HPML.js → HZOCJITH.js} +1 -1
- package/dist/cdn/{JPSOJXAJ.js → IBN52EOC.js} +2 -2
- package/dist/cdn/{MFYR62NS.js → IDO6JK4M.js} +2 -2
- package/dist/cdn/{66UA6UO3.js → IIIFNQ7F.js} +2 -2
- package/dist/cdn/{CV5GQH5Y.js → IR2CG6SQ.js} +2 -2
- package/dist/cdn/{A3YAPCSK.js → IYJ77TML.js} +2 -2
- package/dist/cdn/{6GCKENQU.js → IZ6QELCQ.js} +2 -2
- package/dist/cdn/{RXOPMFXK.js → J37NXPTB.js} +2 -2
- package/dist/cdn/{TBUUP6K3.js → JE2SAKAD.js} +2 -2
- package/dist/cdn/{FSG2WVH6.js → JE33CPCE.js} +2 -2
- package/dist/cdn/{YU7ZDTZ6.js → JHMIXJME.js} +2 -2
- package/dist/cdn/{U6BR6X57.js → JISIG2WA.js} +2 -2
- package/dist/cdn/{YNBXACA6.js → JJ2BMPCB.js} +2 -2
- package/dist/cdn/{UXLYH3VO.js → JJMEELHM.js} +2 -2
- package/dist/cdn/{GT62WNVD.js → JLVTHJBF.js} +2 -2
- package/dist/cdn/{EUTDK2DK.js → JTSZIJR7.js} +2 -2
- package/dist/cdn/{AJKVLD7R.js → K2KINYI4.js} +2 -2
- package/dist/cdn/{636FPL6L.js → K5XSAE2D.js} +2 -2
- package/dist/cdn/{JFZCA63I.js → KKQAM63L.js} +2 -2
- package/dist/cdn/{VI7YFYM3.js → KP4CU4J3.js} +2 -2
- package/dist/cdn/KR6GQLOX.js +4 -0
- package/dist/cdn/{37EQGOEG.js → KSTBGZPT.js} +2 -2
- package/dist/cdn/{QKJG2AX4.js → KSTTZXSV.js} +2 -2
- package/dist/cdn/{G7VJAWLT.js → L57LMROR.js} +2 -2
- package/dist/cdn/{OYMVCFXI.js → LBUL7H3K.js} +2 -2
- package/dist/cdn/{AFPEL4CP.js → LCA2TYEZ.js} +2 -2
- package/dist/cdn/{KVIFAPZI.js → LIL24PIN.js} +2 -2
- package/dist/cdn/{OJIHFDCI.js → LKFOF3K7.js} +2 -2
- package/dist/cdn/{EWVAH54P.js → LQQR3AQF.js} +2 -2
- package/dist/cdn/{BG57K7X4.js → LWJVEFQ5.js} +2 -2
- package/dist/cdn/{SYYZKHB2.js → LWTHPR7G.js} +2 -2
- package/dist/cdn/{VC46TAWB.js → MCLOWNAU.js} +2 -2
- package/dist/cdn/{GAQ65Z4N.js → MEJIVYKM.js} +2 -2
- package/dist/cdn/{IXZKXORJ.js → MJSLXMLN.js} +2 -2
- package/dist/cdn/MLS3ZO7M.js +4 -0
- package/dist/cdn/{AC364XKN.js → MLWJILN6.js} +2 -2
- package/dist/cdn/{HDFSYNYV.js → MMOSYXXD.js} +2 -2
- package/dist/cdn/{A7ANE3YY.js → MXH7C6IM.js} +1 -1
- package/dist/cdn/{7SDXYSO6.js → MXYKKHXU.js} +2 -2
- package/dist/cdn/{MR4YPMOV.js → NEZIL7TY.js} +2 -2
- package/dist/cdn/{BD7QSD2M.js → NJTACGZS.js} +2 -2
- package/dist/cdn/{S7I5VQBG.js → NNQHEALB.js} +2 -2
- package/dist/cdn/{PHH3JL7K.js → NQC5GIKN.js} +2 -2
- package/dist/cdn/{SY54EMGF.js → NVFGMSZH.js} +2 -2
- package/dist/cdn/{LXJL66LO.js → OJEB6IPM.js} +1 -1
- package/dist/cdn/{A2KJFUPV.js → OY2FNXHE.js} +2 -2
- package/dist/cdn/{ZR4MR6U3.js → P3SINDT4.js} +2 -2
- package/dist/cdn/{YOB2GAIF.js → P7LX2OK4.js} +2 -2
- package/dist/cdn/{TMU7J4EJ.js → PGDEEEHH.js} +2 -2
- package/dist/cdn/{PQ4B4CFP.js → PZIMMOZN.js} +2 -2
- package/dist/cdn/{YU4CHAZN.js → Q5RZYGL5.js} +2 -2
- package/dist/cdn/{FOWJZITH.js → QAHMU6RC.js} +2 -2
- package/dist/cdn/{UJT5OGPL.js → QDBGBNCJ.js} +2 -2
- package/dist/cdn/{ZBBC4MWK.js → QE2FS5E5.js} +1 -1
- package/dist/cdn/{3TE5YMKU.js → QFO2IRTT.js} +2 -2
- package/dist/cdn/{KOBDSYRK.js → QHBT62WW.js} +1 -1
- package/dist/cdn/{N2QGGIA2.js → QINV6BM4.js} +2 -2
- package/dist/cdn/{5XPLPZO7.js → QQ6B7FB4.js} +2 -2
- package/dist/cdn/{5GYPCAYR.js → QTJDDX33.js} +2 -2
- package/dist/cdn/{P6G5CRMW.js → QYQFATN7.js} +2 -2
- package/dist/cdn/{GV3GX4VR.js → RBE574GA.js} +2 -2
- package/dist/cdn/{RUHU4G7N.js → RDHXYAFQ.js} +2 -2
- package/dist/cdn/{AMR6IHUU.js → RPJ7PYJI.js} +2 -2
- package/dist/cdn/{27RIFW6H.js → RV362NX4.js} +2 -2
- package/dist/cdn/{SWQY7P3R.js → RWF3FG7R.js} +2 -2
- package/dist/cdn/{SONCPCEA.js → S4SXK5KM.js} +2 -2
- package/dist/cdn/{PW7ZTC3L.js → S4YCMSWT.js} +2 -2
- package/dist/cdn/{3V5TFEHC.js → SCLAXZDQ.js} +2 -2
- package/dist/cdn/{CQT3ELNB.js → SEPEVNES.js} +1 -1
- package/dist/cdn/{USOFLX3H.js → SLVVWDPK.js} +2 -2
- package/dist/cdn/{4SCEYCHC.js → SRETHNAO.js} +2 -2
- package/dist/cdn/{SC72SVQF.js → SVEHL3HT.js} +2 -2
- package/dist/cdn/{AOPYXSYJ.js → SVNYTZ2E.js} +2 -2
- package/dist/cdn/{IMM5IF4C.js → SY62LJ5M.js} +2 -2
- package/dist/cdn/{DOKJXB3S.js → SZLHYT5W.js} +1 -1
- package/dist/cdn/{QO42NBKC.js → T46NOCI4.js} +2 -2
- package/dist/cdn/{LKF6OVYU.js → T7FM4JD6.js} +2 -2
- package/dist/cdn/{J4CEPOTV.js → TFXSKBAP.js} +2 -2
- package/dist/cdn/{LRD7YXSH.js → TLIFTU62.js} +2 -2
- package/dist/cdn/{DTMXQHDQ.js → TN4GQ5QN.js} +2 -2
- package/dist/cdn/{EXMZZJPE.js → TQMZD3E7.js} +2 -2
- package/dist/cdn/{BN2WYPQT.js → TRA7X542.js} +2 -2
- package/dist/cdn/{ACMXYRJQ.js → UAWLGRML.js} +2 -2
- package/dist/cdn/{RT6BYMCR.js → UBB55AI4.js} +2 -2
- package/dist/cdn/{YB7PMI4U.js → UCEHEYP3.js} +2 -2
- package/dist/cdn/{H5S5JR37.js → UFIIJ5R3.js} +2 -2
- package/dist/cdn/{SC7AW7G6.js → UJZNVEY4.js} +2 -2
- package/dist/cdn/{ZWOJGOJP.js → UTHU6WCL.js} +2 -2
- package/dist/cdn/{VG542JUR.js → UWGBB7SJ.js} +2 -2
- package/dist/cdn/{5LMUQABO.js → UWJVNIFI.js} +2 -2
- package/dist/cdn/{EXVDTIJN.js → UYZCSS2V.js} +2 -2
- package/dist/cdn/UZLP7W75.js +4 -0
- package/dist/cdn/{YGVXJOZK.js → V2WAZBCQ.js} +2 -2
- package/dist/cdn/{XRKHQO5T.js → V7TUE55H.js} +2 -2
- package/dist/cdn/{FT5JUAH7.js → VDCQFU5K.js} +2 -2
- package/dist/cdn/{XHYFJNLB.js → VF254QF2.js} +2 -2
- package/dist/cdn/{CQOXS6AO.js → VKH5H6RP.js} +2 -2
- package/dist/cdn/{D2YOXDND.js → VR45PC42.js} +2 -2
- package/dist/cdn/{XTILRD5N.js → VV3CTLMJ.js} +2 -2
- package/dist/cdn/VZNLSB2B.js +4 -0
- package/dist/cdn/{MQERV2LQ.js → WHIO3FQO.js} +2 -2
- package/dist/cdn/{BYCCPUYA.js → WJLTANIS.js} +2 -2
- package/dist/cdn/{Y5WQO343.js → WLFBLXH4.js} +2 -2
- package/dist/cdn/{WPAO3MB3.js → WU6RMTYJ.js} +1 -1
- package/dist/cdn/{G5CKXTO6.js → WV6NMA4J.js} +2 -2
- package/dist/cdn/{D3DMU3QX.js → WXJJ47QG.js} +2 -2
- package/dist/cdn/{DANHCG4Z.js → WZ6NKZZA.js} +2 -2
- package/dist/cdn/{YQWXVZLX.js → X6JS6JOQ.js} +2 -2
- package/dist/cdn/{3VMNJRYH.js → XEWOPYKZ.js} +2 -2
- package/dist/cdn/{LQLKG4HM.js → XLAY7IRE.js} +1 -1
- package/dist/cdn/{SPJNZYPG.js → XNEAKPXB.js} +2 -2
- package/dist/cdn/{3XCDO5HY.js → XSBBQ2WV.js} +2 -2
- package/dist/cdn/{3K6MRARB.js → XSHH2JZG.js} +1 -1
- package/dist/cdn/{OBCXQNR7.js → XYH6VOK7.js} +2 -2
- package/dist/cdn/{5QUQIRD2.js → XYVICLHW.js} +2 -2
- package/dist/cdn/Y2IAH2XC.js +4 -0
- package/dist/cdn/{CWURIIIT.js → YBNROUXG.js} +2 -2
- package/dist/cdn/{L6DXKELD.js → YFXERNVQ.js} +2 -2
- package/dist/cdn/{GUBUIDC4.js → YNYENOUR.js} +2 -2
- package/dist/cdn/{X4SPFLFM.js → YOG4QHWC.js} +2 -2
- package/dist/cdn/{67NSCQ5Q.js → YSDARCXG.js} +2 -2
- package/dist/cdn/{FQ72ANNP.js → YVVQHIGY.js} +2 -2
- package/dist/cdn/{MVFTDHQD.js → Z6KIH56L.js} +2 -2
- package/dist/cdn/{MIKG7VDB.js → ZAQAZNCT.js} +2 -2
- package/dist/cdn/{5QWMZS5L.js → ZE6PIKEL.js} +2 -2
- package/dist/cdn/{SW5DAOSD.js → ZFVQNIV3.js} +2 -2
- package/dist/cdn/{6SWAT72H.js → ZILPZPIM.js} +2 -2
- package/dist/cdn/{JRIOT6IK.js → ZMACPZ6D.js} +3 -3
- package/dist/cdn/{OYC5O2BL.js → ZQLFN5FG.js} +2 -2
- package/dist/cdn/{FZMNNNYS.js → ZQUJJC5R.js} +2 -2
- package/dist/cdn/{LRSOQERT.js → ZXK25NUP.js} +1 -1
- package/dist/cdn/{ERBLAGAK.js → ZZVTOYMZ.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +77 -80
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.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/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useHandles.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/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/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-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/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-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 +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/ElevationProfileViewModel.d.ts +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +5 -4
- package/dist/components/arcgis-elevation-profile/customElement.js +15 -15
- 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-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-media/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.d.ts +1 -1
- package/dist/components/arcgis-feature-templates/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-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/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-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/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-placement/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-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/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-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-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-shadow-cast/ShadowCastViewModel.d.ts +1 -3
- package/dist/components/arcgis-shadow-cast/customElement.js +36 -43
- 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-slice/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-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/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-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/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-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +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-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +22 -23
- package/dist/docs/docs.json +33 -33
- package/dist/docs/web-types.json +9 -9
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/support/AnalysisViewModel.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/6D6WNVRJ.js +0 -4
- package/dist/cdn/BURO6ILZ.js +0 -4
- package/dist/cdn/DT6THEW6.js +0 -4
- package/dist/cdn/FN2PS34D.js +0 -4
- package/dist/cdn/I3VVN4IK.js +0 -4
- package/dist/cdn/KGV7HKSP.js +0 -4
- package/dist/cdn/KK55NHVY.js +0 -4
- package/dist/cdn/NHNQXGDW.js +0 -4
- package/dist/cdn/NW4HQFLN.js +0 -4
- package/dist/cdn/PGABMAKS.js +0 -4
- package/dist/cdn/VIBMIJZN.js +0 -4
- package/dist/cdn/VMGCKCF7.js +0 -4
- package/dist/cdn/WEK6SK6H.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{F as wi,Q as Pi,R as T,S as Ve,T as Di,U as Ti,V as he,a as Y,d as _i,g as le,k as We,o as bi,u as J,x as yi,y as vi,z as xi}from"./27RIFW6H.js";import{a as $,b as ae,d as C,e as k}from"./WPAO3MB3.js";import{B as pi,E as X,F as mi,H as G,L as Ct,N as pt,P as gi,Q as Rt,R as ze,S as ki,U as Ge,V as Oi,a as ui,b as Le,c as di,e as Me,g as D,h as Ee,j as He,m as Vt,n as Ne,o as y,p as ct,r as fi,s as q,u as Fe,w as ne,x as Ue,y as oe,z as ci}from"./74SGFEVD.js";import{a as je}from"./3K6MRARB.js";function zt(a,t){if(!(a>=0&&a<t))throw new Error("Index out of bounds: "+a)}var ht=class{constructor(t=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),this._values=t}get values(){return this._values}contains(t){return this._values.indexOf(t)!==-1}removeValue(t){let e=0,i=this._values.length;for(;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e}indexOf(t){return Vt(this._values,t)}get length(){return this._values.length}hasIndex(t){return t>=0&&t<this._values.length}getIndex(t){return this._values[t]}_onPush(t){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:t})}_onInsertIndex(t,e){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e})}_onSetIndex(t,e,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:t,oldValue:e,newValue:i})}_onSwap(t,e){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:t,b:e})}_onRemoveIndex(t,e){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e})}_onMoveIndex(t,e,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:t,newIndex:e,value:i})}_onClear(t){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:t})}setIndex(t,e){zt(t,this._values.length);let i=this._values[t];return i!==e&&(this._values[t]=e,this._onSetIndex(t,i,e)),i}insertIndex(t,e){return zt(t,this._values.length+1),ne(this._values,t,e),this._onInsertIndex(t,e),e}swap(t,e){let i=this._values.length;if(zt(t,i),zt(e,i),t!==e){let n=this._values[t],s=this._values[e];this._values[t]=s,this._values[e]=n,this._onSwap(n,s)}}removeIndex(t){zt(t,this._values.length);let e=this._values[t];return Ue(this._values,t),this._onRemoveIndex(t,e),e}moveValue(t,e){let i=this.indexOf(t);if(i!==-1)if(Ue(this._values,i),e==null){let n=this._values.length;this._values.push(t),this._onMoveIndex(i,n,t)}else ne(this._values,e,t),this._onMoveIndex(i,e,t);else e==null?(this._values.push(t),this._onPush(t)):(ne(this._values,e,t),this._onInsertIndex(e,t));return t}push(t){return this._values.push(t),this._onPush(t),t}unshift(t){return this.insertIndex(0,t),t}pushAll(t){y(t,e=>{this.push(e)})}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){let e=this._values;this._values=[],this._onClear(e),y(t,i=>{this._values.push(i),this._onPush(i)})}clear(){this.setAll([])}*[Symbol.iterator](){let t=this._values.length;for(let e=0;e<t;++e)yield this._values[e]}each(t){y(this._values,t)}eachReverse(t){ct(this._values,t)}},Gt=class extends ht{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(t,e){let i=this.autoDispose;this.autoDispose=!1,super.swap(t,e),this.autoDispose=i}_onSetIndex(t,e,i){this.autoDispose&&e.dispose(),super._onSetIndex(t,e,i)}_onRemoveIndex(t,e){this.autoDispose&&e.dispose(),super._onRemoveIndex(t,e)}_onClear(t){this.autoDispose&&y(t,e=>{e.dispose()}),super._onClear(t)}_dispose(){this.autoDispose&&y(this._values,t=>{t.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},Ci=class extends Gt{constructor(t,e){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}};var Et={};je(Et,{DEGREES:()=>de,HALFPI:()=>Ke,PI:()=>fe,RADIANS:()=>St,boundsOverlap:()=>ns,ceil:()=>Xi,circlesOverlap:()=>ls,closest:()=>as,cos:()=>dt,fitAngleToRange:()=>es,fitToRange:()=>ce,getAngle:()=>is,getArcBounds:()=>Qi,getArcPoint:()=>ue,getCubicControlPointA:()=>Zi,getCubicControlPointB:()=>qi,getPointOnLine:()=>rs,getPointOnQuadraticCurve:()=>ss,inBounds:()=>Ye,mergeBounds:()=>ts,normalizeAngle:()=>mt,round:()=>Yi,sin:()=>ut,spiralPoints:()=>os,tan:()=>Ji});var fe=Math.PI,Ke=fe/2,St=fe/180,de=180/fe;function Yi(a,t,e){if(!D(t)||t<=0){let i=Math.round(a);return e&&i-a==.5&&i--,i}else{let i=Math.pow(10,t);return Math.round(a*i)/i}}function Xi(a,t){if(!D(t)||t<=0)return Math.ceil(a);{let e=Math.pow(10,t);return Math.ceil(a*e)/e}}function Zi(a,t,e,i,n){return{x:(-a.x+t.x/i+e.x)*i,y:(-a.y+t.y/n+e.y)*n}}function qi(a,t,e,i,n){return{x:(a.x+t.x/i-e.x)*i,y:(a.y+t.y/n-e.y)*n}}function ce(a,t,e){return Math.min(Math.max(a,t),e)}function ut(a){return Math.sin(St*a)}function Ji(a){return Math.tan(St*a)}function dt(a){return Math.cos(St*a)}function mt(a){return a=a%360,a<0&&(a+=360),a}function Qi(a,t,e,i,n){let s=Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(ue(n,e)),l.push(ue(n,i));let u=Math.min(Math.floor(e/90)*90,Math.floor(i/90)*90),f=Math.max(Math.ceil(e/90)*90,Math.ceil(i/90)*90);for(let d=u;d<=f;d+=90)d>=e&&d<=i&&l.push(ue(n,d));for(let d=0;d<l.length;d++){let p=l[d];p.x<s&&(s=p.x),p.y<r&&(r=p.y),p.x>o&&(o=p.x),p.y>h&&(h=p.y)}return{left:a+s,top:t+r,right:a+o,bottom:t+h}}function ue(a,t){return{x:a*dt(t),y:a*ut(t)}}function ts(a){let t=a.length;if(t>0){let e=a[0],i=e.left,n=e.top,s=e.right,r=e.bottom;if(t>1)for(let o=1;o<t;o++)e=a[o],i=Math.min(e.left,i),s=Math.max(e.right,s),n=Math.min(e.top,n),r=Math.max(e.bottom,r);return{left:i,right:s,top:n,bottom:r}}return{left:0,right:0,top:0,bottom:0}}function es(a,t,e){if(t>e){let r=t;t=e,e=r}a=mt(a);let i=(t-mt(t))/360;a<t&&(a+=360*(i+1));let n=t+(e-t)/2+180,s=t+(e-t)/2-180;return a>e&&(a-360>t?a-=360:a<n?a=e:a=t),a<t&&(a>s?a=t:a=e),a}function Ye(a,t){return a.x>=t.left&&a.y>=t.top&&a.x<=t.right&&a.y<=t.bottom}function is(a,t){t||(t={x:a.x*2,y:a.y*2});let e=t.x-a.x,i=t.y-a.y,n=Math.atan2(i,e)*de;return n<0&&(n+=360),mt(n)}function ss(a,t,e,i){let n=(1-i)*(1-i)*a.x+2*(1-i)*i*e.x+i*i*t.x,s=(1-i)*(1-i)*a.y+2*(1-i)*i*e.y+i*i*t.y;return{x:n,y:s}}function rs(a,t,e){return{x:a.x+(t.x-a.x)*e,y:a.y+(t.y-a.y)*e}}function as(a,t){return a.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function ns(a,t){let e=a.left<t.right&&a.right>t.left,i=a.top<t.bottom&&a.bottom>t.top;return e&&i}function os(a,t,e,i,n,s,r,o,h){let l=n+.01;o=mt(o),h=mt(h);let u=o*St;h<o&&(h+=360);let f=[];for(;l<e+r;){let d=s;d/2>l&&(d=2*l);let p=Math.max(.01,Math.min(1,l/200));d=d*p;let m=u*de,g={x:a+l*Math.cos(u),y:t+l*i/e*Math.sin(u)};if(f.push(g),l=n+.01+(m-o)/360*r,u+=2*Math.asin(d/2/l),u*de>h+360*Math.ceil((e-n)/r))break}return f.shift(),f}function ls(a,t){return Math.hypot(a.x-t.x,a.y-t.y)<=a.radius+t.radius}var ge={};je(ge,{bounce:()=>Ds,circle:()=>cs,cubic:()=>st,elastic:()=>Cs,exp:()=>ds,inOut:()=>ms,linear:()=>me,out:()=>gt,pow:()=>us,quad:()=>hs,sine:()=>fs,yoyo:()=>ps});function me(a){return a}function hs(a){return a*a}function st(a){return a*a*a}function us(a,t){return Math.pow(a,t)}function ds(a){return Math.pow(2,10*a-10)}function fs(a){return 1-Math.cos(a*Ke)}function cs(a){return 1-Math.sqrt(1-a*a)}function ps(a){return function(t){return t<.5?a(t*2):a((1-t)*2)}}function gt(a){return function(t){return 1-a(1-t)}}function ms(a){return function(t){return t<=.5?a(t*2)/2:1-a((1-t)*2)/2}}var Xe=4/11,gs=6/11,_s=8/11,bs=3/4,ys=9/11,vs=10/11,xs=15/16,ws=21/22,Ps=63/64,pe=1/Xe/Xe;function Ds(a){return 1-Ts(1-a)}function Ts(a){return a=a,a<Xe?pe*a*a:a<_s?pe*(a-=gs)*a+bs:a<vs?pe*(a-=ys)*a+xs:pe*(a-=ws)*a+Ps}var ks=2*Math.PI,Ri=1,Si=.3/ks,Os=Math.asin(1/Ri)*Si;function Cs(a){let t=a;return Ri*Math.pow(2,10*--t)*Math.sin((Os-t)/Si)}var Ze=class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.14.4"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!1})}},$t=new Ze;function tr(a){$t.licenses.push(a)}function er(){let a;for(;a=$t.rootElements.pop();)a.dispose()}function ir(a){let t;return $t.rootElements.forEach(e=>{e.dom.id==a&&(t=e)}),t}var qe=class{constructor(t,e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=t,this._settings=e,G(e,i=>{this._userSettings[i]=!0})}get(t,e){let i=this._settings[t];return i!==void 0?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){X(t).forEach(e=>{this.set(e,t[e])})}_eachSetting(t){G(this._settings,t)}apply(){let t={};t.stateAnimationEasing=!0,t.stateAnimationDuration=!0;let e=this._entity.states.lookup("default");this._eachSetting((i,n)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,n))})}applyAnimate(t){t==null&&(t=this._settings.stateAnimationDuration),t==null&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;e==null&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",st)));let i=this._entity.states.lookup("default"),n={};n.stateAnimationEasing=!0,n.stateAnimationDuration=!0;let s={};return this._eachSetting((r,o)=>{if(!n[r]){n[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));let h=this._entity.animate({key:r,to:o,duration:t,easing:e});h&&(s[r]=h)}}),s}},_e=class{constructor(t){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=t}lookup(t){return this._states[t]}create(t,e){let i=this._states[t];if(i)return i.setAll(e),i;{let n=new qe(this._entity,e);return this._states[t]=n,n}}remove(t){delete this._states[t]}apply(t){let e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i,n=this._states[t];return n&&(i=n.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}};var Qe=class{constructor(t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=t}add(t,e){let i=this._callbacks[t];return i===void 0&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new Ct(()=>{q(i,e)&&this._entity._markDirtyKey(t)})}remove(t){let e=this._callbacks[t];e!==void 0&&(delete this._callbacks[t],e.length!==0&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){let i=this._callbacks[t];if(i!==void 0)for(let n=0,s=i.length;n<s;++n)e=i[n](e,this._entity,t)}return e}},Ht=class{constructor(t,e,i,n,s,r,o){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),this._animation=t,this._from=e,this._to=i,this._duration=n,this._easing=s,this._loops=r,this._interpolate=Ti(e,i),this._oldTime=o}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){!this._stopped&&!this._playing&&(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((t,e)=>{if(this._stopped)t();else{let i=()=>{n.dispose(),t()},n=this.events.on("stopped",i)}})}_checkEnded(){return this._loops>1?(--this._loops,!1):!0}_run(t){this._oldTime!==null&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}},Rs=0,Kt=class{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++Rs}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=t}_checkDirty(){X(this._settings).forEach(t=>{this._userProperties[t]=!0,this._markDirtyKey(t)})}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=he.Stopped;if(!this.isDisposed()){let i=!1,n=!1;G(this._animatingSettings,(s,r)=>{if(r.stopped)this._stopAnimation(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this.set(s,r._value(1)):(i=!0,r._reset(t),this._set(s,r._value(1))):(i=!0,this._set(s,r._value(o)))}else n=!0}),G(this._animatingPrivateSettings,(s,r)=>{if(r.stopped)this._stopAnimationPrivate(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this.setPrivate(s,r._value(1)):(i=!0,r._reset(t),this._setPrivate(s,r._value(1))):(i=!0,this._setPrivate(s,r._value(o)))}else n=!0}),i?e=he.Playing:n&&(e=he.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return i===void 0&&(i=this._settingEvents[t]=[]),i.push(e),new Ct(()=>{q(i,e),i.length===0&&delete this._settingEvents[t]})}off(t,e){let i=this._settingEvents[t];i!==void 0&&e!==void 0?q(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return i===void 0&&(i=this._privateSettingEvents[t]=[]),i.push(e),new Ct(()=>{q(i,e),i.length===0&&delete this._privateSettingEvents[t]})}offPrivate(t,e){let i=this._privateSettingEvents[t];i!==void 0&&e!==void 0?q(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){let i=this._settings[t];return i!==void 0?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){let i=this._settingEvents[t];i!==void 0&&y(i,n=>{n(e,this,t)})}_sendPrivateKeyEvent(t,e){let i=this._privateSettingEvents[t];i!==void 0&&y(i,n=>{n(e,this,t)})}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){let e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){y(X(this._settings),t=>{this.remove(t)})}getPrivate(t,e){let i=this._privateSettings[t];return i!==void 0?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){let e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){G(t,(e,i)=>{this.set(e,i)})}animate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.get(e):t.from,o=t.easing===void 0?me:t.easing;if(n===0)this.set(e,i);else if(r===void 0||r===i)this.set(e,i);else{this.set(e,r);let l=this._animatingSettings[e]=new Ht(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ht(this,r,i,n,o,s,null);return h.stop(),h}animatePrivate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.getPrivate(e):t.from,o=t.easing===void 0?me:t.easing;if(n===0)this.setPrivate(e,i);else if(r===void 0||r===i)this.setPrivate(e,i);else{this.setPrivate(e,r);let l=this._animatingPrivateSettings[e]=new Ht(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ht(this,r,i,n,o,s,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}},U=class extends Kt{constructor(t,e,i,n=[]){if(super(e),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new _e(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new Qe(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=n,e.id&&this._registerId(e.id)}static new(t,e,i){let n=new this(t,e,!0);return n._template=i,n._afterNew(),n}static _new(t,e,i=[]){let n=new this(t,e,!0,i);return n._afterNew(),n}_afterNew(){this._checkDirty();let t=!1,e=this._template;e&&(t=!0,e._setObjectTemplate(this)),y(this._internalTemplates,i=>{t=!0,i._setObjectTemplate(this)}),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();let t=this._template;t&&t._setObjectTemplate(this),y(this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new Rt}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){let i=this.get(t);if(i)return i;{let n=e();return this.set(t,n),n}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){X(this._dirty).forEach(t=>{this._dirty[t]=!1}),X(this._dirtyPrivate).forEach(t=>{this._dirtyPrivate[t]=!1})}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return this.classNames.indexOf(t)!==-1}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return i===void 0&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){let e=this._disposerProperties[t];e!==void 0&&(y(e,i=>{i.dispose()}),delete this._disposerProperties[t])}set template(t){let e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){let i=this.adapters.fold(t,this._settings[t]);return i!==void 0?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){if(!this._userProperties[e]){let n=this._findTemplateByKey(e);t===n&&super.set(e,i)}}_setTemplatePrivateProperty(t,e,i){if(!this._userPrivateProperties[e]){let n=this._findTemplateByPrivateKey(e);t===n&&super.setPrivate(e,i)}}_removeTemplateProperty(t){if(!this._userProperties[t]){let e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){let e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){let e=this.states.create(t,{}),i={};this._eachTemplate(n=>{let s=n.states.lookup(t);s&&s._apply(e,i)}),G(e._settings,n=>{!i[n]&&!e._userSettings[n]&&e.remove(n)})}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),G(t._settings,(i,n)=>{!e.settings[i]&&!this._userProperties[i]&&(e.settings[i]=!0,super.set(i,n))}),G(t._privateSettings,(i,n)=>{!e.privateSettings[i]&&!this._userPrivateProperties[i]&&(e.privateSettings[i]=!0,super.setPrivate(i,n))}),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate(e=>(t(e),!1)),ct(this._internalTemplates,t),y(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();let e={settings:{},privateSettings:{},states:{}};this._eachTemplate(i=>{this._applyTemplate(i,e)}),t&&(G(this._settings,i=>{!this._userProperties[i]&&!e.settings[i]&&super.remove(i)}),G(this._privateSettings,i=>{!this._userPrivateProperties[i]&&!e.privateSettings[i]&&super.removePrivate(i)}))}_findTemplate(t){let e=this._findStaticTemplate(t);if(e===void 0){let i=ci(this._internalTemplates,t);return i===void 0?oe(this._templates,t):i}else return e}_findTemplateByKey(t){return this._findTemplate(e=>t in e._settings)}_findTemplateByPrivateKey(t){return this._findTemplate(e=>t in e._privateSettings)}_disposeTemplates(){y(this._templateDisposers,t=>{t.dispose()}),this._templateDisposers.length=0}_removeTemplates(){y(this._templates,t=>{t._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(t=!1){let e=!1,i=[],n=[],s=new Set,r=this.get("themeTagsSelf");return r&&y(r,o=>{s.add(o)}),this._walkParents(o=>{o===this._root._rootContainer&&(e=!0),o._defaultThemes.length>0&&i.push(o._defaultThemes);let h=o.get("themes");h&&n.push(h);let l=o.get("themeTags");l&&y(l,u=>{s.add(u)})}),n=i.concat(n),this._removeTemplates(),(e||t)&&ct(this.classNames,o=>{let h=[];y(n,l=>{y(l,u=>{let f=u._lookupRules(o);f&&ct(f,d=>{if(d.tags.every(m=>s.has(m))){let m=pi(h,g=>{let x=ze(d.tags.length,g.tags.length);return x===0?ki(d.tags,g.tags,ze):x});h.splice(m.index,0,d)}})})}),y(h,l=>{this._templates.push(l.template),l.template._setObjectTemplate(this)})}),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){let t=this.get("id");t&&this._registerId(t);let e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete $t.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,$t.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();let t=this._template;t&&t._removeObjectTemplate(this),y(this._internalTemplates,i=>{i._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(i=>{i.dispose()}),G(this._disposerProperties,(i,n)=>{y(n,s=>{s.dispose()})});let e=this.get("id");e&&(delete this._root.entitiesById[e],delete $t.entitiesById[e])}setTimeout(t,e){let i=setTimeout(()=>{this.removeDispose(n),t()},e),n=new Ct(()=>{clearTimeout(i)});return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=Vt(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return Vt(this.get("themeTags",[]),t)!==-1}addTag(t){if(!this.hasTag(t)){let e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){let e=this.get("themeTags",[]);fi(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]});var be=class a extends Rt{constructor(t){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(i===void 0){let n=this._sprite._display.on(t,s=>{e.call(this,s)});i=this._rendererDisposers[t]=new gi(()=>{delete this._rendererDisposers[t],n.dispose()})}return i.increment()}_on(t,e,i,n,s,r,o){let h=super._on(t,e,i,n,s,r,o),l=a.RENDERER_EVENTS[e];return l!==void 0&&(h.disposer=new pt([h.disposer,this._onRenderer(e,l)])),h}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){let i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}};Object.defineProperty(be,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(a){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",a))&&this.dispatch("click",this._makePointerEvent("click",a))},rightclick:function(a){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",a))},middleclick:function(a){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",a))},dblclick:function(a){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",a))},pointerover:function(a){let t=this._sprite,e=!0;if(t.getPrivate("trustBounds")){t._getBounds();let i=t.globalBounds();if(t.isType("Graphics")){let n=t.get("strokeWidth",1)/2;n>=1&&(i.left-=n,i.right+=n,i.top-=n,i.bottom+=n)}Ye(a.point,i)||(e=!1,t._root._renderer.removeHovering(t._display))}e&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",a))},pointerout:function(a){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",a))},pointerdown:function(a){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",a))},pointerup:function(a){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",a))},globalpointerup:function(a){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",a))},globalpointermove:function(a){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",a))},wheel:function(a){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:a.event,point:a.point})}}});var N=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_virtualParent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),(t=="x"||t=="y"||t=="dx"||t=="dy")&&(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),(t=="x"||t=="y")&&this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new be(this)}_processTemplateField(){let t,e=this.get("templateField");if(e){let i=this.dataItem;if(i){let n=i.dataContext;n&&(t=n[e],!(t instanceof Ge)&&t&&(t=Ge.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){let e=this._dataItem;this._dataItem=t,this._processTemplateField();let i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof $||this.get("height")instanceof $?Fe(t._percentageSizeChildren,this):q(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof $||this.get("y")instanceof $?Fe(t._percentagePositionChildren,this):q(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){let t=this._localBounds;if(t){let e=this.get("centerX");e!=null&&(this._display.pivot.x=t.left+J(e,t.right-t.left));let i=this.get("centerY");i!=null&&(this._display.pivot.y=t.top+J(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){let t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){let t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);let e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),this.get("tooltipPosition")=="pointer"&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})),this._tooltipPointerDp=new pt([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})}),this.events.on("pointerout",()=>{let i=this._tooltipMoveDp;i&&(i.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();let t=this._display,e=this.events;if(this.isDirty("draggable")){let n=this.get("draggable");n?(this.set("interactive",!0),this._dragDp=new pt([e.on("pointerdown",s=>{this.dragStart(s)}),e.on("globalpointermove",s=>{this.dragMove(s)}),e.on("globalpointerup",s=>{this.dragStop(s)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!n}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){let n=this.get("tooltipText"),s=this.get("tooltipHTML"),r=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(n||s)&&(r=="click"?(this._tooltipDp=new pt([e.on("click",()=>{this.setTimeout(()=>{let o=this.getTooltip();o&&!o.isHidden()&&o.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),_i(document,"click",o=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):r=="always"||(this._tooltipDp=new pt([e.on("pointerover",()=>{this.showTooltip()}),e.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let n=this.get("toggleKey");n&&n!="none"?this._toggleDp=e.on("click",()=>{this._isDragging||this.set(n,!this.get(n))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(t.visible=!1,this.hideTooltip()):t.visible=!0,this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();let n=this.parent;n&&(this.isDirty("width")&&this.get("width")instanceof $||this.isDirty("height")&&this.get("height")instanceof $)&&(n.markDirty(),n._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){let n=this.get("wheelable");n&&this.set("interactive",!0),t.wheelable=!!n}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){let n=this.get("blur",0);n!=0&&(i+=" blur("+n+"px)")}if(this.isDirty("saturate")){let n=this.get("saturate",1);n!=1&&(i+=" saturate("+n+")")}if(this.isDirty("brightness")){let n=this.get("brightness",1);n!=1&&(i+=" brightness("+n+")")}if(this.isDirty("contrast")){let n=this.get("contrast",1);n!=1&&(i+=" contrast("+n+")")}if(this.isDirty("sepia")){let n=this.get("sepia",0);n!=0&&(i+=" sepia("+n+")")}if(this.isDirty("hue")){let n=this.get("hue",0);n!=0&&(i+=" hue-rotate("+n+"deg)")}if(this.isDirty("invert")){let n=this.get("invert",0);n!=0&&(i+=" invert("+n+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new pt([e.on("focus",()=>{this.showTooltip()}),e.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(e.once("boundschanged",()=>{this.markDirtyAccessibility()}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){let n=this.events;this.get("interactive")&&!n.isDisposed()?this._hoverDp=new pt([n.on("click",s=>{We(s.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})},10))}),n.on("globalpointerup",s=>{We(s.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})),this._isDown&&this._handleUp(s)}),n.on("pointerover",()=>{this._handleOver()}),n.on("pointerout",()=>{this._handleOut()}),n.on("pointerdown",s=>{this._handleDown(s)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),this.get("showTooltipOn")=="always"&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;let e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;let e=le(t.originalEvent);delete this._downPoints[e],X(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(t){let e=le(t.originalEvent),i=this._downPoints[e];if(i){let n=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return n>5||s>5}return!1}_hasDown(){return X(this._downPoints).length>0}_handleDown(t){let e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;let i=le(t.originalEvent);this._downPoints[i]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,n=this.parent,s=1;for(;n!=null;)i+=n.get("rotation",0),n=n.parent,n&&(s*=n.get("scale",1));let r=(t.point.x-e.point.x)/s,o=(t.point.y-e.point.y)/s,h=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let l=this._dragPoint;this.set("x",l.x+r*dt(i)+o*ut(i)),this.set("y",l.y+o*dt(i)-r*ut(i));let u="dragged";h.isEnabled(u)&&h.dispatch(u,{type:u,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;)if(t)++e,t=t.parent;else return e}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){let t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();let e=this.parent;e&&this.get("position")!="absolute"&&(e.get("width")==null||e.get("height")==null||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){let t=this._adjustedLocalBounds,e;if(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e):(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){let i="boundschanged";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));D(e)&&t.right-t.left<e&&(t.right=t.left+e),D(i)&&t.bottom-t.top<i&&(t.bottom=t.top+i);let n=this.getPrivate("width"),s=this.getPrivate("height");D(n)&&(n>0?t.right=t.left+n:t.left=t.right+n),D(s)&&(s>0?t.bottom=t.top+s:t.top=t.bottom+s)}_removeParent(t){t&&(t.children.removeValue(this),q(t._percentageSizeChildren,this),q(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){let e=this.getTooltip(),i=this.get("tooltipText"),n=this.get("tooltipHTML");if((i||n)&&e){let s=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if((s=="fixed"||!t)&&(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),s=="pointer"){let l=this.getPrivate("lastTooltipCoords");if(l&&l.x==t.x&&l.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),n&&e.label.set("html",n);let o=this.dataItem;if(o&&e.label._setDataItem(o),this.get("showTooltipOn")=="always"&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height())){this.hideTooltip();return}e.label.text.markDirtyText();let h=e.show();return this.setPrivateRaw("showingTooltip",!0),h}}}hideTooltip(){let t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&t.get("stateAnimationDuration",0)==0?400:void 0,i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){let t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+J(this.get("tooltipX",0),t.right-t.left),i=t.top+J(this.get("tooltipY",0),t.bottom-t.top)):(e=J(this.get("tooltipX",0),this.width()),i=J(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){let t=this.parent,e=this.get("dx",0),i=this.get("dy",0),n=this.get("x"),s=this.getPrivate("x"),r=0,o=0,h=this.get("position");n instanceof $&&(t?n=t.innerWidth()*n.value+t.get("paddingLeft",0):n=0),D(n)?r=n+e:s!=null?r=s:t&&h=="relative"&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),u=this.getPrivate("y");l instanceof $&&(t?l=t.innerHeight()*l.value+t.get("paddingTop",0):l=0),D(l)?o=l+i:u!=null?o=u:t&&h=="relative"&&(o=t.get("paddingTop",0)+i);let f=this._display;if(f.x!=r||f.y!=o){f.invalidateBounds(),f.x=r,f.y=o;let d="positionchanged";this.events.isEnabled(d)&&this.events.dispatch(d,{type:d,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x"),i=this.parent;return i?t instanceof $?J(t,i.innerWidth())+i.get("paddingLeft",0):D(t)?t:e??i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(t!=null)return t;let e=this.get("y"),i=this.parent;return i?e instanceof $?J(e,i.innerHeight())+i.get("paddingTop",0):D(e)?e:t??i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);let t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){let t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){let t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),n=this.toGlobal({x:t.right,y:t.bottom}),s=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,n.x,s.x),top:Math.min(e.y,i.y,n.y,s.y),right:Math.max(e.x,i.x,n.x,s.x),bottom:Math.max(e.y,i.y,n.y,s.y)}}_onShow(t){}_onHide(t){}appear(t,e){return Y(this,void 0,void 0,function*(){return yield this.hide(0),e?new Promise((i,n)=>{this.setTimeout(()=>{i(this.show(t))},e)}):this.show(t)})}show(t){return Y(this,void 0,void 0,function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);let e=this.states.applyAnimate("default",t);yield Ve(e),this._isShowing=!1}})}hide(t){return Y(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);let i=this.states.applyAnimate("hidden",t);yield Ve(i),this._isHiding=!1}})}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!!(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){let t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){let t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){let t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),n=this.getPrivate("width"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof $){let r=this.parent;r?s=r.innerWidth()*t.value:s=this._root.width()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(D(t))return t;{let i=this.get("width");if(D(i))return i}let e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(D(t))return t;{let i=this.get("height");if(D(i))return i}let e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),n=this.getPrivate("height"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof $){let r=this.parent;r?s=r.innerHeight()*t.value:s=this._root.height()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent=t,this._applyThemes()}get parent(){return this._parent}_setParent(t,e=!1){let i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){let t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return mi(this._downPoints,(t,e)=>t>e?1:t<e?-1:0)[0]}toFront(){let t=this.parent;t&&t.children.moveValue(this,t.children.length-1)}toBack(){let t=this.parent;t&&t.children.moveValue(this,0)}};Object.defineProperty(N,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"});Object.defineProperty(N,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([N.className])});var _t=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("repetition",""),e=this.get("width",100),i=this.get("height",100),n=this.get("fill"),s=this.get("fillOpacity",1),r=this._backgroundDisplay,o=this._display;o.clear(),r.clear(),n&&s>0&&(r.beginFill(n,s),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}};Object.defineProperty(_t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"});Object.defineProperty(_t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([_t.className])});var bt=class extends _t{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();let t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();let t=this.get("colorOpacity");t!==void 0&&(this._display.alpha=Math.max(0,t));let e=this._image;if(e){let n=this.get("width",100),s=this.get("height",100),r=this.get("fit","image"),o=0,h=0;r=="pattern"?(o=n,h=s,this.markDirty()):(o=e.width,h=e.height,r=="image"&&(this.set("width",o),this.set("height",h)));let l=this.get("centered",!0),u=0,f=0;l&&(u=n/2-o/2,f=s/2-h/2),this._display.image(e,o,h,u,f)}let i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){let t=this.get("src");if(t){let e=new Image;e.src=t,e.decode().then(()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(i=>{})}}};Object.defineProperty(bt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"});Object.defineProperty(bt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_t.classNames.concat([bt.className])});var ye;(function(a){a.ADD="lighter",a.COLOR="color",a.COLOR_BURN="color-burn",a.COLOR_DODGE="color-dodge",a.DARKEN="darken",a.DIFFERENCE="difference",a.DST_OVER="destination-over",a.EXCLUSION="exclusion",a.HARD_LIGHT="hard-light",a.HUE="hue",a.LIGHTEN="lighten",a.LUMINOSITY="luminosity",a.MULTIPLY="multiply",a.NORMAL="source-over",a.OVERLAY="overlay",a.SATURATION="saturation",a.SCREEN="screen",a.SOFT_LIGHT="soft-light",a.SRC_ATOP="source-atop",a.XOR="xor"})(ye||(ye={}));var Cr=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"],tt=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){let t=this.get("fillGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){let t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");D(t)&&(t<.5?t=[0]:t=[t]),this._display.setLineDash(t);let e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);let i=this.get("blendMode",ye.NORMAL);this._display.blendMode=i;let n=this.get("draw");n&&typeof n=="function"&&n(this._display,this);let s=this.get("svgPath");s!=null&&this._display.svgPath(s)}}_afterChanged(){if(super._afterChanged(),this._clear){let t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),s=this.get("stroke"),r=this.get("strokeGradient"),o=this.get("strokePattern"),h=this.get("shadowColor"),l=this.get("shadowBlur"),u=this.get("shadowOffsetX"),f=this.get("shadowOffsetY"),d=this.get("shadowOpacity");if(h&&(l||u||f)&&this._display.shadow(h,l,u,f,d),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){let m=e.get("stops",[]);m.length&&y(m,g=>{(!g.color||g.colorInherited)&&t&&(g.color=t,g.colorInherited=!0),(g.opacity==null||g.opacityInherited)&&(g.opacity=n,g.opacityInherited=!0)})}let p=e.getFill(this);p&&(this._display.beginFill(p,n),this._display.endFill())}if(i){let p=i.pattern;p&&(this._display.beginFill(p,n),this._display.endFill(),i instanceof bt&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(s||r||o){let p=this.get("strokeOpacity"),m=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(m=m/this.get("scale",1)),this.get("crisp")&&(m/=this._root._renderer.resolution);let g=this.get("lineJoin"),x=this.get("lineCap");if(s&&!r&&(this._display.lineStyle(m,s,p,g,x),this._display.endStroke()),r){let b=r.get("stops",[]);b.length&&y(b,w=>{(!w.color||w.colorInherited)&&s&&(w.color=s,w.colorInherited=!0),(w.opacity==null||w.opacityInherited)&&(w.opacity=p,w.opacityInherited=!0)});let c=r.getFill(this);c&&(this._display.lineStyle(m,c,p,g,x),this._display.endStroke())}if(o){let b=o.pattern;b&&(this._display.lineStyle(m,b,p,g,x),this._display.endStroke(),o instanceof bt&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}};Object.defineProperty(tt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"});Object.defineProperty(tt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([tt.className])});var yt=class extends tt{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,n=0,s=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){let o=this.get("strokeWidth",0);t-=o*s,e-=o*r,i+=o/2*s,n+=o/2*r}this._display.drawRect(i,n,t,e)}_updateSize(){this.markDirty(),this._clear=!0}};Object.defineProperty(yt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"});Object.defineProperty(yt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:tt.classNames.concat([yt.className])});function Z(a,t){a.get("reverseChildren",!1)?a.children.eachReverse(t):a.children.each(t)}var z=class extends U{};Object.defineProperty(z,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"});Object.defineProperty(z,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([z.className])});var vt=class extends z{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){n+=o.value;let h=i*o.value,l=r.get("minWidth",r.getPrivate("minWidth",-1/0));l>h&&(i-=l,n-=o.value);let u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h>u&&(i-=u,n-=o.value)}else D(o)||(o=r.width()),i-=o+r.get("marginLeft",0)+r.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){let h=i*o.value/n-r.get("marginLeft",0)-r.get("marginRight",0),l=r.get("minWidth",r.getPrivate("minWidth",-1/0)),u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("width",h)}else r._prevSettings.width instanceof $&&r.setPrivate("width",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginLeft",0),l=r.get("marginRight",0),u=r.get("maxWidth"),f=o.left,d=o.right;u&&d-f>u&&(d=f+u);let p=s+h-f;r.setPrivate("x",p),s=p+d+l}else r.setPrivate("x",void 0)})}};Object.defineProperty(vt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"});Object.defineProperty(vt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([vt.className])});var xt=class extends z{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){n+=o.value;let h=i*o.value,l=r.get("minHeight",r.getPrivate("minHeight",-1/0));l>h&&(i-=l,n-=o.value);let u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h>u&&(i-=u,n-=o.value)}else D(o)||(o=r.height()),i-=o+r.get("marginTop",0)+r.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){let h=i*o.value/n-r.get("marginTop",0)-r.get("marginBottom",0),l=r.get("minHeight",r.getPrivate("minHeight",-1/0)),u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("height",h)}else r._prevSettings.height instanceof $&&r.setPrivate("height",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginTop",0),l=o.top,u=o.bottom,f=r.get("maxHeight");f&&u-l>f&&(u=l+f);let d=r.get("marginBottom",0),p=s+h-l;r.setPrivate("y",p),s=p+u+d}else r.setPrivate("y",void 0)})}};Object.defineProperty(xt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"});Object.defineProperty(xt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([xt.className])});var rt=class extends z{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),s=t.maxWidth()-e-i,r=s,o=1;Z(t,m=>{if(m.get("visible")&&m.getPrivate("visible")&&!m.get("forceHidden")&&m.get("position")!="absolute"){let g=m.width();g<r&&(r=g),g>o&&(o=g)}}),r=ce(r,1,s),o=ce(o,1,s);let h=1;this.get("fixedWidthGrid")?h=s/o:h=s/r,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let l=this.getColumnWidths(t,h,o,s),u=n,f=0,d=0;h=l.length;let p=e;Z(t,m=>{if(m.get("position")=="relative"&&m.isVisible()){let g=m.get("marginTop",0),x=m.get("marginBottom",0),b=m.adjustedLocalBounds(),c=m.get("marginLeft",0),w=m.get("marginRight",0),O=p+c-b.left,A=u+g-b.top;m.setPrivate("x",O),m.setPrivate("y",A),p+=l[f]+w,d=Math.max(d,m.height()+g+x),f++,f>=h&&(f=0,p=e,u+=d,d=0)}})}getColumnWidths(t,e,i,n){let s=0,r=[],o=0;return Z(t,h=>{let l=h.adjustedLocalBounds();h.get("position")!="absolute"&&h.isVisible()&&(this.get("fixedWidthGrid")?r[o]=i:r[o]=Math.max(r[o]|0,l.right-l.left+h.get("marginLeft",0)+h.get("marginRight",0)),o<t.children.length-1&&(o++,o==e&&(o=0)))}),y(r,h=>{s+=h}),s>n?e>2?(e-=1,this.getColumnWidths(t,e,i,n)):[n]:r}};Object.defineProperty(rt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"});Object.defineProperty(rt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([rt.className])});var Nt=class{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let n=[];t=this.escape(t);let s=e?t.split("'"):[t];for(let r=0;r<s.length;r++){let o=s[r];if(o!=="")if(r%2===0){o=o.replace(/\]\[/g,"]"+He+"["),o=o.replace(/\[\]/g,"[ ]");let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==He&&u!==""&&(l%2===0?n.push({type:"value",text:u}):n.push({type:i?"value":"format",text:"["+u+"]"}))}}else{let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==""&&(l%2===0?n.push({type:"text",text:u}):this.isImage(u)?n.push({type:"image",text:"["+u+"]"}):n.push({type:"format",text:"["+u+"]"}))}}}return n}static isImage(t){return!!t.match(/img[ ]?:/)}static getTextStyle(t){let e={};if(t==""||t=="[ ]")return{};let i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(let s=0;s<i.length;s++)t=t.replace(i[s],i[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let n=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!n)return{};for(let s=0;s<n.length;s++)if(n[s].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))e.fontWeight=n[s];else if(n[s].match(/^(underline|line-through)$/i))e.textDecoration=n[s];else if(n[s]!="/")if(!n[s].match(/:/))e.fill=T.fromString(n[s]);else{let r=n[s].replace("+"," ").split(/:[ ]*/);e[r[0]]=r[1]}return e}};Object.defineProperty(Nt,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"});var ve=class extends ht{constructor(t){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=t,this._events=this.events.onAll(e=>{if(e.type==="clear")y(e.oldValues,i=>{this._onRemoved(i)});else if(e.type==="push")this._onInserted(e.newValue);else if(e.type==="setIndex")this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if(e.type==="insertIndex")this._onInserted(e.newValue,e.index);else if(e.type==="removeIndex")this._onRemoved(e.oldValue);else if(e.type==="moveIndex")this._onRemoved(e.value),this._onInserted(e.value,e.newIndex);else throw new Error("Unknown IListEvent type")})}_onInserted(t,e){t._setParent(this._container,!0);let i=this._container._childrenDisplay;e===void 0?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),y(this.values,t=>{t.dispose()}))}};function Ft(a,t){if(t!=null){t=""+t,t=Nt.escape(t);let e=t.match(/\{([^}]+)\}/g),i;if(e)for(i=0;i<e.length;i++){let n=e[i].replace(/\{([^}]+)\}/,"$1"),s=ti(a,n,"");s==null&&(s=""),t=t.split(e[i]).join(s)}t=Nt.unescape(t)}else t="";return t}function ti(a,t,e){let i,n=a.dataItem,s=[],r=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g,o;for(;o=r.exec(t),o!==null;)if(o[3]){s.push({prop:o[3]});let h=a.getDateFormatter().get("dateFields",[]),l=a.getNumberFormatter().get("numericFields",[]),u=a.getDurationFormatter().get("durationFields",[]);h.indexOf(o[3])!==-1?s.push({method:"formatDate",params:[]}):l.indexOf(o[3])!==-1?s.push({method:"formatNumber",params:[]}):u.indexOf(o[3])!==-1&&s.push({method:"formatDuration",params:[]})}else{let h=[];if(yi(o[2])!=""){let l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,u;for(;u=l.exec(o[2]),u!==null;)h.push(u[1]||u[2]||u[3])}s.push({method:o[1],params:h})}if(n){i=At(a,s,n._settings),(i==null||Ee(i))&&(i=At(a,s,n));let h=n.dataContext;i==null&&h&&(i=At(a,s,h),i==null&&(i=At(a,[{prop:t}],h)),i==null&&h.dataContext&&(i=At(a,s,h.dataContext))),i==null&&n.component&&n.component.dataItem!==n&&(i=ti(n.component,t,e))}return i==null&&(i=At(a,s,a)),i==null&&a.parent&&(i=ti(a.parent,t,e)),i}function Ss(a,t){let e=a.getPrivate("customData");if(Ee(e))return e[t]}function At(a,t,e,i){let n=e,s=!1;for(let r=0,o=t.length;r<o;r++){let h=t[r];if(h.prop){if(n instanceof N){let l=n.get(h.prop);l==null&&(l=n.getPrivate(h.prop)),l==null&&(l=Ss(n,h.prop)),l==null&&(l=n[h.prop]),n=l}else if(n.get){let l=n.get(h.prop);l==null&&(l=n[h.prop]),n=l}else n=n[h.prop];if(n==null)return}else switch(h.method){case"formatNumber":let l=Le(n);l!=null&&(n=a.getNumberFormatter().format(l,i||h.params[0]||void 0),s=!0);break;case"formatDate":let u=di(n);if(!Me(u)||ui(u.getTime()))return;u!=null&&(n=a.getDateFormatter().format(u,i||h.params[0]||void 0),s=!0);break;case"formatDuration":let f=Le(n);f!=null&&(n=a.getDurationFormatter().format(f,i||h.params[0]||void 0,h.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[h.method]&&n[h.method].apply(e,h.params);break}}if(!s){let r=[{method:"",params:i}];if(i==null)D(n)?(r[0].method="formatNumber",r[0].params=""):Me(n)&&(r[0].method="formatDate",r[0].params="");else{let o=xi(i);o==="number"?r[0].method="formatNumber":o==="date"?r[0].method="formatDate":o==="duration"&&(r[0].method="formatDuration")}r[0].method&&(n=At(a,r,n))}return n}var j=class a extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new ve(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_childrenPrep",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_childrenUpdt",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){ct(this.allChildren(),t=>{t.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(t=>{t.removePrivate("x"),t.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(t=>{t.markDirtyPosition()}),this.isDirty("maskContent")){let t=this._childrenDisplay,e=this._contentMask;this.get("maskContent")?e||(e=yt.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),y(this._percentageSizeChildren,t=>{t._updateSize()}),y(this._percentagePositionChildren,t=>{t.markDirtyPosition(),t._updateSize()}),this.updateBackground()}updateBackground(){let t=this.get("background"),e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,n=e.top,s=e.right-i,r=e.bottom-n,o=this.get("maxWidth"),h=this.get("maxHeight");h&&r>h&&(r=h),o&&s>o&&(s=o);let l=this.width(),u=this.height();t&&(t.setAll({width:s,height:r,x:i,y:n}),this._display.interactive&&(t._display.interactive=!0));let f=this._contentMask;f&&f.setAll({width:l+1,height:u+1});let d=this.get("verticalScrollbar");if(d){d.set("height",u),d.set("x",l-d.width()-d.get("marginRight",0)),d.set("end",d.get("start",0)+u/this._contentHeight);let p=d.get("background");p&&p.setAll({width:d.width(),height:u});let m=!0;this._contentHeight<=u&&(m=!1),d.setPrivate("visible",m)}}}_applyThemes(t=!1){return super._applyThemes(t)?(this.eachChildren(e=>{e._applyThemes(t)}),!0):!1}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren(e=>{e.states.apply(t)})}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(t,e)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),n=this.getPrivate("height"),s={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,h=!1;if((r instanceof vt||r instanceof rt)&&(o=!0),r instanceof xt&&(h=!0),!((t!=null||i!=null)&&(e!=null||n!=null)&&!this.get("verticalScrollbar"))){let l=Number.MAX_VALUE,u=l,f=-l,d=l,p=-l,m=this.get("paddingLeft",0),g=this.get("paddingTop",0),x=this.get("paddingRight",0),b=this.get("paddingBottom",0);this.children.each(O=>{if(O.get("position")!="absolute"&&O.get("isMeasured")){let A=O.adjustedLocalBounds(),M=O.x(),V=O.y(),E=M+A.left,B=M+A.right,L=V+A.top,I=V+A.bottom;o&&(E-=O.get("marginLeft",0),B+=O.get("marginRight",0)),h&&(L-=O.get("marginTop",0),I+=O.get("marginBottom",0)),E<u&&(u=E),B>f&&(f=B),L<d&&(d=L),I>p&&(p=I)}}),u==l&&(u=0),f==-l&&(f=0),d==l&&(d=0),p==-l&&(p=0),s.left=u-m,s.top=d-g,s.right=f+x,s.bottom=p+b;let c=this.get("minWidth");D(c)&&c>0&&s.right-s.left<c&&(s.right>=c?s.left=s.right-c:s.right=s.left+c);let w=this.get("minHeight");D(w)&&w>0&&s.bottom-s.top<w&&(s.bottom>=w?s.top=s.bottom-w:s.bottom=s.top+w)}this._contentWidth=s.right-s.left,this._contentHeight=s.bottom-s.top,D(t)&&(s.left=0,s.right=t),D(i)&&(s.left=0,s.right=i),D(e)&&(s.top=0,s.bottom=e),D(n)&&(s.top=0,s.bottom=n),this._localBounds=s}}_updateBounds(){let t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;let t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),n=!1,s=!1;i&&((i instanceof vt||i instanceof rt)&&(n=!0),i instanceof xt&&(s=!0)),y(this._percentageSizeChildren,r=>{if(!n){let o=r.get("width");o instanceof $&&r.setPrivate("width",o.value*t)}if(!s){let o=r.get("height");o instanceof $&&r.setPrivate("height",o.value*e)}}),y(this._percentagePositionChildren,r=>{r.markDirtyPosition(),r.markDirtyBounds()}),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){let t=this.get("html","");t&&t!==""?this._root._setHTMLContent(this,Ft(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){let e=this.get("verticalScrollbar");if(e){let i=t.y(),n=this.innerHeight(),s=t.height(),r=this._contentHeight,o=1-(n-s/2)/r;if(i+s*.7+this._childrenDisplay.y>n||i-s*.3+this._childrenDisplay.y<0){let h=Math.max(0,Math.min(o,(i-s/2)/r));e.animate({key:"start",to:h,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){let t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",yt.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",i=>{let n=i.originalEvent;if(bi(n,this))n.preventDefault();else return;let s=n.deltaY/5e3,r=t.get("start",0),o=t.get("end",1);r+s<=0&&(s=-r),o+s>=1&&(s=1-o),r+s>=0&&o+s<=1&&(t.set("start",r+s),t.set("end",o+s))}),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",()=>{let i=this._contentHeight,n=this._childrenDisplay,s=this._contentMask;n.y=-t.get("start",0)*i,n.markDirtyLayer(),s&&(s._display.y=-n.y,n.mask=s._display)}),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{let e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();let i=this._childrenDisplay;i.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){let t=this._prevSettings.background;t&&this._display.removeChild(t._display);let e=this.get("background");e instanceof N&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){let t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){let i=t.parent;i&&i.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(t=>{t._processTemplateField()})}walkChildren(t){this.children.each(e=>{e instanceof a&&e.walkChildren(t),t(e)})}eachChildren(t){let e=this.get("background");e&&t(e);let i=this.get("verticalScrollbar");i&&t(i);let n=this.get("mask");n&&t(n),this.children.values.forEach(s=>{t(s)})}allChildren(){let t=[];return this.eachChildren(e=>{t.push(e)}),t}_setDataItem(t){let e=t!==this._dataItem;super._setDataItem(t);let i=this.get("html","");i&&i!==""&&e&&this._root._setHTMLContent(this,Ft(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}};Object.defineProperty(j,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"});Object.defineProperty(j,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([j.className])});var at=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),this.get("role")=="tooltip"&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new Ct(()=>{this._root._removeTooltipElement(this)})),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){let e=this.get("fill"),i=this.get("fillGradient"),n=this.get("fillOpacity");if(i){if(e){let s=i.get("stops",[]);s.length&&y(s,r=>{(!r.color||r.colorInherited)&&e&&(r.color=e,r.colorInherited=!0),(r.opacity==null||r.opacityInherited)&&(r.opacity=n,r.opacityInherited=!0)})}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),y(this._textStyles,e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())}),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&this.get("role")=="tooltip"&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=vi(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?Ft(this,t):t}_getAccessibleText(){let t=this.get("ariaLabel");return t!==void 0?this.get("populateText")?Ft(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),this.get("role")=="tooltip"&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}};Object.defineProperty(at,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"});Object.defineProperty(at,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([at.className])});var K=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),y(this._textKeys,t=>{let e=this.get(t);e!=null&&this._text.set(t,e)}),this.get("html","")!==""&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(at.new(this._root,{}))}_updateChildren(){super._updateChildren();let t=this._text;if(y(this._textKeys,i=>{this._text.set(i,this.get(i))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),this.get("html","")!==""?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){let i=this.get("textAlign"),n;this.get("width")!=null?i=="right"?n=C:i=="center"?n=k:n=0:i=="left"||i=="start"?n=this.get("paddingLeft",0):(i=="right"||i=="end")&&(n=-this.get("paddingRight",0)),t.set("x",n)}let e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){let t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){let t=this.get("rotation"),e=t==90||t==270||t==-90,i=this._text,n=this.get("maxWidth",this.getPrivate("maxWidth",1/0));D(n)?i.set(e?"maxHeight":"maxWidth",n-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);let s=this.get("maxHeight",this.getPrivate("maxHeight",1/0));D(s)?i.set(e?"maxWidth":"maxHeight",s-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");let e=this._text;e.get("populateText")&&e.markDirtyText();let i=this.get("html");i&&i!==""&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([K.className])});var xe=class extends ht{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}},$i=class{constructor(t){Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=t}incrementRef(){}decrementRef(){}};var Xt=class extends Kt{constructor(t,e,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}},wt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new xe}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(t=>{let e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,t.type==="clear")y(e,i=>{i.dispose()}),e.length=0,this._onDataClear();else if(t.type==="push"){let i=new Xt(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if(t.type==="setIndex"){let i=e[t.index],n=this._makeDataItem(t.newValue);i.bullets&&i.bullets.length==0&&(i.bullets=void 0),X(n).forEach(s=>{i.get(s)!=n[s]&&i.animate({key:s,to:n[s],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=t.newValue}else if(t.type==="insertIndex"){let i=new Xt(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if(t.type==="removeIndex")e[t.index].dispose(),e.splice(t.index,1);else if(t.type==="moveIndex"){let i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}else throw new Error("Unknown IStreamEvent type");this._afterDataChange()}))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},y(this.valueFields,t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},y(this.fields,t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")}))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){let e={};return this._valueFields&&y(this._valueFields,i=>{let n=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[n],e[this._valueFieldsF[i].workingKey]=e[i]}),this._fields&&y(this._fields,i=>{let n=this.get(this._fieldsF[i]);e[i]=t[n]}),e}makeDataItem(t,e){let i=new Xt(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){let i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!0)})}hideDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){let t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){let t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return oe(this.dataItems,e=>e.get("id")==t)}};Object.defineProperty(wt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"});Object.defineProperty(wt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([wt.className])});var Mi={};je(Mi,{add:()=>Is,checkChange:()=>ji,chooseInterval:()=>Li,copy:()=>Bs,getDateIntervalDuration:()=>$s,getDuration:()=>et,getIntervalDuration:()=>Bi,getNextUnit:()=>Ai,getTime:()=>As,getUnitValue:()=>Ls,now:()=>Ii,roun:()=>js,round:()=>Bt,sleep:()=>ei,timeUnitDurations:()=>we});function ei(a){return new Promise((t,e)=>{setTimeout(t,a)})}var we={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function Ai(a){switch(a){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function et(a,t){return t==null&&(t=1),we[a]*t}function Bi(a){return a?we[a.timeUnit]*a.count:0}function $s(a,t,e,i,n){let s=a.timeUnit,r=a.count;if(s=="hour"||s=="minute"||s=="second"||s=="millisecond")return we[a.timeUnit]*a.count;{let o=Bt(new Date(t.getTime()),s,r,e,i,void 0,n).getTime(),h=o+r*et(s)*1.05;return h=Bt(new Date(h),s,1,e,i,void 0,n).getTime(),h-o}}function Ii(){return new Date}function As(){return Ii().getTime()}function Bs(a){return new Date(a.getTime())}function ji(a,t,e,i,n){if(t-a>et(e,1.2))return!0;let s=new Date(a),r=new Date(t);n&&(s=n.convertLocal(s),r=n.convertLocal(r));let o=0,h=0;!i&&e!="millisecond"&&(o=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-o),h=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-h));let l=!1;switch(e){case"year":s.getUTCFullYear()!=r.getUTCFullYear()&&(l=!0);break;case"month":(s.getUTCFullYear()!=r.getUTCFullYear()||s.getUTCMonth()!=r.getUTCMonth())&&(l=!0);break;case"day":(s.getUTCMonth()!=r.getUTCMonth()||s.getUTCDate()!=r.getUTCDate())&&(l=!0);break;case"hour":s.getUTCHours()!=r.getUTCHours()&&(l=!0);break;case"minute":s.getUTCMinutes()!=r.getUTCMinutes()&&(l=!0);break;case"second":s.getUTCSeconds()!=r.getUTCSeconds()&&(l=!0);break;case"millisecond":s.getTime()!=r.getTime()&&(l=!0);break}if(l)return l;let u=Ai(e);return u?ji(a,t,u,i,n):!1}function Is(a,t,e,i,n){let s=0;switch(!i&&t!="millisecond"&&(s=a.getTimezoneOffset(),n&&(s-=n.offsetUTC(a)),a.setUTCMinutes(a.getUTCMinutes()-s)),t){case"day":let r=a.getUTCDate();a.setUTCDate(r+e);break;case"second":let o=a.getUTCSeconds();a.setUTCSeconds(o+e);break;case"millisecond":let h=a.getUTCMilliseconds();a.setUTCMilliseconds(h+e);break;case"hour":let l=a.getUTCHours();a.setUTCHours(l+e);break;case"minute":let u=a.getUTCMinutes();a.setUTCMinutes(u+e);break;case"year":let f=a.getUTCFullYear();a.setUTCFullYear(f+e);break;case"month":let d=a.getUTCDate(),p=new Date(a.getUTCFullYear(),a.getUTCMonth(),0).getUTCDate(),m=a.getUTCMonth();d>p?a.setUTCMonth(m+e,p):a.setUTCMonth(m+e);break;case"week":let g=a.getUTCDate();a.setUTCDate(g+e*7);break}if(!i&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+s),t=="day"||t=="week"||t=="month"||t=="year")){let r=a.getTimezoneOffset();if(n&&(r+=n.offsetUTC(a)),r!=s){let o=r-s;a.setUTCMinutes(a.getUTCMinutes()+o),a.getTimezoneOffset()!=r&&a.setUTCMinutes(a.getUTCMinutes()-o)}}return a}function js(a,t,e,i,n){let s;return n!=null&&(s=new Date(n)),Bt(new Date(a),t,e,i.locale.firstDayOfWeek,i.utc,s,i.timezone).getTime()}function Bt(a,t,e,i,n,s,r){if(!r||n){let o=0;switch(!n&&t!="millisecond"&&(o=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-o)),t){case"day":let h=a.getUTCDate();if(e>1){if(s){s=Bt(s,"day",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/et("day")/e),w=et("day",c*e);a.setTime(s.getTime()+w-o*et("minute"))}}else a.setUTCDate(h);a.setUTCHours(0,0,0,0);break;case"second":let l=a.getUTCSeconds();e>1&&(l=Math.floor(l/e)*e),a.setUTCSeconds(l,0);break;case"millisecond":if(e==1)return a;let u=a.getUTCMilliseconds();u=Math.floor(u/e)*e,a.setUTCMilliseconds(u);break;case"hour":let f=a.getUTCHours();e>1&&(f=Math.floor(f/e)*e),a.setUTCHours(f,0,0,0);break;case"minute":let d=a.getUTCMinutes();e>1&&(d=Math.floor(d/e)*e),a.setUTCMinutes(d,0,0);break;case"month":let p=a.getUTCMonth();e>1&&(e==2||e==3||e==4||e==6)&&(p=Math.floor(p/e)*e),a.setUTCMonth(p,1),a.setUTCHours(0,0,0,0);break;case"year":let m=a.getUTCFullYear();e>1&&(m=Math.floor(m/e)*e),a.setUTCFullYear(m,0,1),a.setUTCHours(0,0,0,0);break;case"week":if(e>1&&s){s=Bt(s,"week",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/et("week")/e),w=et("week",c*e);a.setTime(s.getTime()+w-o*et("minute"))}let g=a.getUTCDate(),x=a.getUTCDay();D(i)||(i=1),x>=i?g=g-x+i:g=g-(7+x)+i,a.setUTCDate(g),a.setUTCHours(0,0,0,0);break}if(!n&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+o),t=="day"||t=="week"||t=="month"||t=="year")){let h=a.getTimezoneOffset();if(h!=o){let l=h-o;a.setUTCMinutes(a.getUTCMinutes()+l)}}return a}else{if(isNaN(a.getTime()))return a;let o=a.getTime(),h=r.offsetUTC(a),l=a.getTimezoneOffset(),u=r.parseDate(a),f=u.year,d=u.month,p=u.day,m=u.hour,g=u.minute,x=u.second,b=u.millisecond,c=u.weekday,w=h-l;switch(t){case"day":if(e>1&&s){s=Bt(s,"day",1,i,n,void 0,r);let B=a.getTime()-s.getTime(),L=Math.floor(B/et("day")/e),I=et("day",L*e);a.setTime(s.getTime()+I),u=r.parseDate(a),f=u.year,d=u.month,p=u.day}m=0,g=w,x=0,b=0;break;case"second":g+=w,e>1&&(x=Math.floor(x/e)*e),b=0;break;case"millisecond":g+=w,e>1&&(b=Math.floor(b/e)*e);break;case"hour":e>1&&(m=Math.floor(m/e)*e),g=w,x=0,b=0;break;case"minute":e>1&&(g=Math.floor(g/e)*e),g+=w,x=0,b=0;break;case"month":e>1&&(d=Math.floor(d/e)*e),p=1,m=0,g=w,x=0,b=0;break;case"year":e>1&&(f=Math.floor(f/e)*e),d=0,p=1,m=0,g=w,x=0,b=0;break;case"week":D(i)||(i=1),c>=i?p=p-c+i:p=p-(7+c)+i,m=0,g=w,x=0,b=0;break}a=new Date(f,d,p,m,g,x,b);let O=a.getTime(),A=36e5;t=="hour"&&(A=36e5*e),O+A<=o&&(t=="hour"||t=="minute"||t=="second"||t=="millisecond")&&(a=new Date(O+A));let M=a.getTimezoneOffset(),E=r.offsetUTC(a)-M;return E!=w&&a.setTime(a.getTime()+(E-w)*6e4),a}}function Li(a,t,e,i){let n=i[a],s=Bi(n),r=i.length-1;if(a>=r)return Object.assign({},i[r]);let o=Math.ceil(t/s);return t<s&&a>0?Object.assign({},i[a-1]):o<=e?Object.assign({},i[a]):a+1<i.length?Li(a+1,t,e,i):Object.assign({},i[a])}function Ls(a,t){switch(t){case"day":return a.getDate();case"second":return a.getSeconds();case"millisecond":return a.getMilliseconds();case"hour":return a.getHours();case"minute":return a.getMinutes();case"month":return a.getMonth();case"year":return a.getFullYear();case"week":return wi(a)}}var Zt=class extends wt{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseSeriesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new ht}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(()=>{this._handleBullets(this.dataItems)}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){y(t,e=>{let i=e.bullets;i&&(y(i,n=>{n.dispose()}),e.bullets=void 0)}),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each(e=>{this._makeBullet(t,e)}))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){let n=e(this._root,this,t);return n&&(n._index=i,this._makeBulletReal(t,n)),n}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let t=this.startIndex(),e=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){let n=this.getPrivate("baseValueSeries");n&&this._disposers.push(n.onPrivate("startIndex",()=>{this._baseSeriesDirty=!0,this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,t!=0&&(this._psi=void 0))),(this._psi!=t||this._pei!=e||this.isPrivateDirty("adjustedStartIndex"))&&!this._selectionAggregatesCalculated&&(t===0&&e===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(t,e),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let n=this.get("tooltip");n&&(n.hide(0),n.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let n,s=this.get("legendDataItem");if(s&&(n=s.get("markerRectangle"),n&&this.isVisible())){if(this.isDirty("stroke")){let r=this.get("stroke");n.set("stroke",r)}if(this.isDirty("fill")){let r=this.get("fill");n.set("fill",r)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let n=this.startIndex(),s=this.endIndex();s<this.dataItems.length&&s++;for(let r=n;r<s;r++){let o=this.dataItems[r];o.bullets||this._makeBullets(o)}}}_handleRemoved(){}_adjustStartIndex(t){return t}_calculateAggregates(t,e){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");let n=this.get("excludeFromAggregate");n&&(i=i.filter(x=>n.indexOf(x)==-1));let s={},r={},o={},h={},l={},u={},f={},d={},p={};for(let x=0,b=i.length;x<b;x++){let c=i[x];s[c]=0,r[c]=0,o[c]=0}let m=this.dataItems,g=m.length;for(let x=0,b=i.length;x<b;x++){let c=i[x],w=c+"Change",O=c+"ChangePercent",A=c+"ChangePrevious",M=c+"ChangePreviousPercent",V=c+"ChangeSelection",E=c+"ChangeSelectionPercent",B="valueY";(c==="valueX"||c.endsWith("ValueX"))&&(B="valueX");let L=this.getPrivate("baseValueSeries"),I=this.getPrivate("adjustedStartIndex",t),H=(_,P,R)=>{if(t===0){let ot=u[B],Ot=P-ot;_.setRaw(w,Ot),_.setRaw(O,Ot/ot*100)}let kt=P-p[B],nt=P-u[B];_.setRaw(A,kt),_.setRaw(M,kt/p[B]*100),_.setRaw(V,nt),_.setRaw(E,nt/u[B]*100),p[R]=P};for(let _=I;_<e;_++){let P=m[_];if(P){let R=P.get(c);if(R!=null){h[c]==null&&(h[c]=R),l[c]==null&&(l[c]=R),u[c]==null&&(u[c]=R,p[c]=R,L&&(u[B]=L._getBase(B)));break}}}for(let _=I;_<e;_++){let P=m[_];if(P){let R=P._settings[c];R!=null&&(o[c]++,s[c]+=R,r[c]+=Math.abs(R),h[c]>R&&(h[c]=R),l[c]<R&&(l[c]=R),f[c]=R,H(P,R,c))}}if(d[c]=s[c]/o[c],e<g){let _=m[e];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}if(e+1<g){let _=m[e+1];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}t>0&&t--,delete p[c];for(let _=t;_<I;_++){let P=m[_];if(P){let R=P.get(c);p[c]==null&&(p[c]=R),R!=null&&H(P,R,c)}}}for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"AverageSelection",d[c]),this.setPrivate(c+"CountSelection",o[c]),this.setPrivate(c+"SumSelection",s[c]),this.setPrivate(c+"AbsoluteSumSelection",r[c]),this.setPrivate(c+"LowSelection",h[c]),this.setPrivate(c+"HighSelection",l[c]),this.setPrivate(c+"OpenSelection",u[c]),this.setPrivate(c+"CloseSelection",f[c])}if(t===0&&e===g)for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"Average",d[c]),this.setPrivate(c+"Count",o[c]),this.setPrivate(c+"Sum",s[c]),this.setPrivate(c+"AbsoluteSum",r[c]),this.setPrivate(c+"Low",h[c]),this.setPrivate(c+"High",l[c]),this.setPrivate(c+"Open",u[c]),this.setPrivate(c+"Close",f[c])}}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));let t=this.get("heatRules");if(this._valuesDirty&&t&&t.length>0&&y(t,e=>{let i=e.minValue||this.getPrivate(e.dataField+"Low")||0,n=e.maxValue||this.getPrivate(e.dataField+"High")||0;y(e.target._entities,s=>{let r=s.dataItem.get(e.dataField);if(!D(r)){e.neutral&&s.set(e.key,e.neutral);let o=s.states;if(o){let h=o.lookup("default");h&&e.neutral&&h.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,s,i,n,r);else{let o;e.logarithmic?o=(Math.log(r)*Math.LOG10E-Math.log(i)*Math.LOG10E)/(Math.log(n)*Math.LOG10E-Math.log(i)*Math.LOG10E):o=(r-i)/(n-i),D(r)&&(!D(o)||Math.abs(o)==1/0)&&(o=.5);let h;D(e.min)?h=e.min+(e.max-e.min)*o:e.min instanceof T?h=T.interpolate(o,e.min,e.max):e.min instanceof $&&(h=Di(o,e.min,e.max)),s.set(e.key,h);let l=s.states;if(l){let u=l.lookup("default");u&&u.set(e.key,h)}}})}),this.get("visible")){let e=this.dataItems.length,i=this.startIndex(),n=this.endIndex();n<e&&n++,i>0&&i--;for(let s=0;s<i;s++)this._hideBullets(this.dataItems[s]);for(let s=i;s<n;s++)this._positionBullets(this.dataItems[s]);for(let s=n;s<e;s++)this._hideBullets(this.dataItems[s])}}_positionBullets(t){t.bullets&&y(t.bullets,e=>{this._positionBullet(e);let i=e.get("sprite");e.get("dynamic")&&(i&&(i._markDirtyKey("fill"),i.markDirtySize()),i instanceof j&&i.walkChildren(n=>{n._markDirtyKey("fill"),n.markDirtySize(),n instanceof K&&n.text.markDirtyText()})),i instanceof K&&i.get("populateText")&&i.text.markDirtyText()})}_hideBullets(t){t.bullets&&y(t.bullets,e=>{let i=e.get("sprite");i&&i.setPrivate("visible",!1)})}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){let t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){let e=t.bullets;e&&(y(e,i=>{i.dispose()}),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.showDataItem.call(this,t,e)],s=t.bullets;s&&y(s,r=>{let o=r.get("sprite");o&&n.push(o.show(e))}),yield Promise.all(n)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.hideDataItem.call(this,t,e)],s=t.bullets;s&&y(s,r=>{let o=r.get("sprite");o&&n.push(o.hide(e))}),yield Promise.all(n)})}_sequencedShowHide(t,e){return Y(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(D(e)||(e=this.get("interpolationDuration",0)),e>0){let i=this.startIndex(),n=this.endIndex();yield Promise.all(Ne(this.dataItems,(s,r)=>Y(this,void 0,void 0,function*(){let o=e||0;(r<i-10||r>n+10)&&(o=0);let h=this.get("sequencedDelay",0)+o/(n-i);yield ei(h*(r-i)),t?yield this.showDataItem(s,o):yield this.hideDataItem(s,o)})))}else yield Promise.all(Ne(this.dataItems,i=>t?this.showDataItem(i,0):this.hideDataItem(i,0)))})}updateLegendValue(t){if(t){let e=t.get("legendDataItem");if(e){let i=e.get("valueLabel");if(i){let s=i.text,r="";i._setDataItem(t),r=this.get("legendValueText",s.get("text","")),i.set("text",r),s.markDirtyText()}let n=e.get("label");if(n){let s=n.text,r="";n._setDataItem(t),r=this.get("legendLabelText",s.get("text","")),n.set("text",r),s.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();let t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){let e=this.dataItems[this.startIndex()];return e?e.get(t):0}};Object.defineProperty(Zt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"});Object.defineProperty(Zt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:wt.classNames.concat([Zt.className])});function ii(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];if(n.length>0){let s=n[0];if(s.length>0){let r=s[0];a.moveTo(r.x,r.y);for(let o=0,h=n.length;o<h;o++)Ms(a,n[o])}}}}function Ms(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];a.lineTo(n.x,n.y)}}var Pt=class extends tt{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("points"),e=this.get("segments");if(t&&t.length>0){let i=t[0];this._display.moveTo(i.x,i.y),ii(this._display,[[t]])}else if(e)ii(this._display,e);else if(!this.get("draw")){let i=this.width(),n=this.height();this._display.moveTo(0,0),this._display.lineTo(i,n)}}}};Object.defineProperty(Pt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"});Object.defineProperty(Pt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:tt.classNames.concat([Pt.className])});var It=class extends at{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*St,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}};Object.defineProperty(It,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"});Object.defineProperty(It,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:at.classNames.concat([It.className])});var qt=class extends K{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(It.new(this._root,{}))}baseRadius(){let t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+J(i,t-e)}radius(){let t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){let t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation"),n=mt(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);let s=ut(n),r=dt(n),o=this.baseRadius(),h=this.radius();if(this._display.angle=0,t=="circular")this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",h);else{o==0&&(n=0,h=0);let l=h*r,u=h*s;t=="radial"?(this.setRaw("x",l),this.setRaw("y",u),n<90||n>270||i!="auto"?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):t=="adjusted"?(this.setRaw("centerX",k),this.setRaw("centerY",k),this.setRaw("x",l),this.setRaw("y",u)):t=="regular"&&(this.setRaw("x",l),this.setRaw("y",u))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){let t=this.get("textType","regular"),e=this.get("inside",!1),i=0,n=0,s=this.get("labelAngle",0),r=this.localBounds(),o=r.right-r.left,h=r.bottom-r.top;if(t=="radial"){if(this._flipped){let l=this.get("centerX");l instanceof $&&(o=o*(1-l.value*2)),i=o*dt(s),n=o*ut(s)}}else!e&&t=="adjusted"&&(i=o/2*dt(s),n=h/2*ut(s));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}};Object.defineProperty(qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"});Object.defineProperty(qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.concat([qt.className])});var Dt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(j.new(this._root,{width:C,height:C,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:C,height:C})})}};Object.defineProperty(Dt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"});Object.defineProperty(Dt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([Dt.className])});var Jt=class extends Dt{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new Gt})}_afterNew(){super._afterNew(),this._disposers.push(this.series);let t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(e=>{if(e.type==="clear"){y(e.oldValues,s=>{this._removeSeries(s)});let i=this.get("colors");i&&i.reset();let n=this.get("patterns");n&&n.reset()}else if(e.type==="push")t.moveValue(e.newValue),this._processSeries(e.newValue);else if(e.type==="setIndex")t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="insertIndex")t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="removeIndex")this._removeSeries(e.oldValue);else if(e.type==="moveIndex")t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else if(e.type==="swap"){let i=e.a,n=e.b,s=this.series.indexOf(i),r=this.series.indexOf(n);t.moveValue(i,r),t.moveValue(n,s),this.series.each(o=>{this._processSeries(o),o.markDirtyValues()})}else throw new Error("Unknown IListEvent type")}))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}};Object.defineProperty(Jt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"});Object.defineProperty(Jt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Dt.classNames.concat([Jt.className])});var Qt=class extends Pt{};Object.defineProperty(Qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"});Object.defineProperty(Qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pt.classNames.concat([Qt.className])});var te=class extends U{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);let t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",T.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);let i=this.getPrivate("numColors"),n=0,s=this.get("passOptions"),r=this.get("reuse");for(let o=n;o<i;o++)if(r)e.push(e[o]);else{let h=e[o].toHSL(),l=h.h+(s.hue||0)*t;for(;l>1;)l-=1;let u=h.s+(s.saturation||0)*t;u>1&&(u=1),u<0&&(u=0);let f=h.l+(s.lightness||0)*t;for(;f>1;)f-=1;e.push(T.fromHSL(l,u,f))}}getIndex(t){let e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):i!=null?T.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}};Object.defineProperty(te,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"});Object.defineProperty(te,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([te.className])});function v(a,t,e,i){a.set(t,e.get(i)),e.on(i,n=>{a.set(t,n)})}var Ei=class extends Oi{setupDefaultRules(){super.setupDefaultRules();let t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,n=this._root.verticalLayout,s=this.rule.bind(this);s("InterfaceColors").setAll({stroke:T.fromHex(15066597),fill:T.fromHex(15987699),primaryButton:T.fromHex(6788316),primaryButtonHover:T.fromHex(6779356),primaryButtonDown:T.fromHex(6872182),primaryButtonActive:T.fromHex(6872182),primaryButtonDisabled:T.fromHex(14342874),primaryButtonTextDisabled:T.fromHex(16777215),primaryButtonText:T.fromHex(16777215),primaryButtonStroke:T.fromHex(16777215),secondaryButton:T.fromHex(14277081),secondaryButtonHover:T.fromHex(10724259),secondaryButtonDown:T.fromHex(9276813),secondaryButtonActive:T.fromHex(15132390),secondaryButtonText:T.fromHex(0),secondaryButtonStroke:T.fromHex(16777215),grid:T.fromHex(0),background:T.fromHex(16777215),alternativeBackground:T.fromHex(0),text:T.fromHex(0),alternativeText:T.fromHex(16777215),disabled:T.fromHex(11382189),positive:T.fromHex(5288704),negative:T.fromHex(11730944)});{let r=s("ColorSet");r.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[T.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),r.setPrivate("currentStep",0),r.setPrivate("currentPass",0)}s("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:gt(st)}),s("Component").setAll({interpolationDuration:0,interpolationEasing:gt(st)}),s("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:k,tooltipY:k,tooltipPosition:"fixed",isMeasured:!0}),s("Sprite").states.create("default",{visible:!0,opacity:1}),s("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),s("Graphics").setAll({strokeWidth:1}),s("Chart").setAll({width:C,height:C,interactiveChildren:!1}),s("ZoomableContainer").setAll({width:C,height:C,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:gt(st),animationDuration:600,maxPanOut:.4}),s("Sprite",["horizontal","center"]).setAll({centerX:k,x:k}),s("Sprite",["vertical","center"]).setAll({centerY:k,y:k}),s("Container",["horizontal","layout"]).setAll({layout:i}),s("Container",["vertical","layout"]).setAll({layout:n}),s("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),s("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),s("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),s("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),s("GrainPattern").setAll({width:200,height:200,colors:[T.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{let r=s("PatternSet");r.setAll({step:1}),v(r,"color",e,"stroke")}s("LinearGradient").setAll({rotation:90}),s("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:rt.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),s("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{let r=s("Rectangle",["legend","item","background"]);r.setAll({fillOpacity:0}),v(r,"fill",e,"background")}s("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:k,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),s("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:C,height:C,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{let r=s("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});v(r,"fill",e,"disabled"),v(r,"stroke",e,"disabled")}s("Label",["legend","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{let r=s("Label",["legend","label"]).states.create("disabled",{});v(r,"fill",e,"disabled")}s("Label",["legend","value","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:C,populateText:!0});{let r=s("Label",["legend","value","label"]).states.create("disabled",{});v(r,"fill",e,"disabled")}s("HeatLegend").setAll({stepCount:1}),s("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),s("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:C,width:15}),s("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:C,height:15}),s("HeatLegend",["vertical"]).setAll({height:C}),s("HeatLegend",["horizontal"]).setAll({width:C}),s("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),s("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{let r=s("Label");r.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),v(r,"fill",e,"text")}s("RadialLabel").setAll({textType:"regular",centerY:k,centerX:k,inside:!1,radius:0,baseRadius:C,orientation:"auto",textAlign:"center"}),s("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),s("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:T.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:T.fromHex(0)}),s("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),s("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),s("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),s("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{let r=s("Tick");r.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),v(r,"stroke",e,"grid")}s("Bullet").setAll({locationX:.5,locationY:.5}),s("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:k,centerY:k,animationEasing:gt(st),exportable:!1}),s("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{let r=s("PointedRectangle",["tooltip","system","background"]);r.setAll({strokeOpacity:.3}),v(r,"fill",e,"background"),v(r,"stroke",e,"grid")}s("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),s("Polygon").setAll({animationEasing:gt(st)}),s("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{let r=s("OrthogonalLine",["link","line"]);r.setAll({isMeasured:!1,crisp:!0});let o=r.states.create("active",{strokeWidth:2});v(o,"stroke",e,"negative")}s("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{let r=s("OrthogonalLine");r.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),v(r,"stroke",e,"grid")}{let r=s("Triangle",["link"]);r.setAll({width:14,height:10,centerY:0}),v(r,"fill",e,"grid"),v(r,"stroke",e,"grid"),r.states.create("default",{stateAnimationDuration:0});let o=r.states.create("active",{stateAnimationDuration:0,stroke:Pi(16777215),strokeWidth:2});o.set("draw",h=>{h.arc(0,0,11,0,Math.PI*2),h.moveTo(-4,-4),h.lineTo(4,4),h.moveTo(4,-4),h.lineTo(-4,4)}),v(o,"fill",e,"negative")}s("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:T.fromHex(16777215)});{let r=s("Label",["tooltip"]);r.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),v(r,"fill",e,"alternativeText")}s("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),s("Button").states.create("hover",{}),s("Button").states.create("down",{stateAnimationDuration:0}),s("Button").states.create("active",{}),s("Button").states.create("disabled",{forceInactive:!0});{let r=s("RoundedRectangle",["button","background"]);v(r,"fill",e,"primaryButton"),v(r,"stroke",e,"primaryButtonStroke")}{let r=s("RoundedRectangle",["button","background"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"primaryButtonDown")}{let r=s("RoundedRectangle",["button","background"]).states.create("active",{});v(r,"fill",e,"primaryButtonActive")}{let r=s("RoundedRectangle",["button","background"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonDisabled")}{let r=s("Graphics",["button","icon"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Label",["button"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Graphics",["button","icon"]);r.setAll({forceInactive:!0}),v(r,"stroke",e,"primaryButtonText")}{let r=s("Label",["button"]);v(r,"fill",e,"primaryButtonText")}s("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:K.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})});{let r=s("RoundedRectangle",["button","background","confirm"]).states.create("active",{});v(r,"fill",e,"negative")}s("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),s("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),s("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{let r=s("Graphics",["icon","confirm","button"]);r.setAll({stateAnimationDuration:0}),r.states.create("default",{stateAnimationDuration:0}),v(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2});v(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button","secondary"]).states.create("active",{});v(r,"stroke",e,"primaryButtonText")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1});v(r,"fill",e,"negative")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1});v(r,"fill",e,"negative")}s("Button",["button","confirm"]).states.create("hoverActive",{}),s("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:C,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{let r=s("RoundedRectangle",["background","button","zoom"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),v(r,"fill",e,"primaryButton")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"primaryButtonDown")}{let r=s("Graphics",["icon","button","zoom"]);r.setAll({crisp:!0,strokeOpacity:.7,draw:o=>{o.moveTo(0,0),o.lineTo(12,0)}}),v(r,"stroke",e,"primaryButtonText")}s("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:k,centerY:k,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{let r=s("RoundedRectangle",["background","resize","button"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),v(r,"fill",e,"secondaryButton"),v(r,"stroke",e,"secondaryButtonStroke")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"secondaryButtonDown")}{let r=s("Graphics",["resize","button","icon"]);r.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:o=>{o.moveTo(0,.5),o.lineTo(0,12.5),o.moveTo(4,.5),o.lineTo(4,12.5)}}),v(r,"stroke",e,"secondaryButtonText")}s("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),s("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),s("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{let r=s("RoundedRectangle",["play","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),v(r,"fill",e,"primaryButton")}{let r=s("Graphics",["play","icon"]);r.setAll({stateAnimationDuration:0,dx:1,draw:o=>{o.moveTo(0,-5),o.lineTo(8,0),o.lineTo(0,5),o.lineTo(0,-5)}}),v(r,"fill",e,"primaryButtonText")}s("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),s("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:r=>{r.moveTo(-4,-5),r.lineTo(-1,-5),r.lineTo(-1,5),r.lineTo(-4,5),r.lineTo(-4,-5),r.moveTo(4,-5),r.lineTo(1,-5),r.lineTo(1,5),r.lineTo(4,5),r.lineTo(4,-5)}}),s("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{let r=s("RoundedRectangle",["switch","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["switch","icon"]);r.setAll({radius:8,centerY:0,centerX:0,dx:0}),v(r,"fill",e,"primaryButtonText")}s("Graphics",["switch","icon"]).states.create("active",{dx:16}),s("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:gt(st)}),s("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:C}),s("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:C}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{let r=s("RoundedRectangle",["scrollbar","main","background"]);r.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),v(r,"fill",e,"fill")}{let r=s("RoundedRectangle",["scrollbar","thumb"]);r.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),v(r,"fill",e,"secondaryButton")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"secondaryButtonDown")}s("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:k,width:C,centerX:k,ariaLabel:t.translate("Use up and down arrows to move selection")}),s("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:k,centerY:k,height:C,ariaLabel:t.translate("Use left and right arrows to move selection")});{let r=s("PointedRectangle",["axis","tooltip","background"]);r.setAll({cornerRadius:0}),v(r,"fill",e,"alternativeBackground")}s("Label",["axis","tooltip"]).setAll({role:void 0}),s("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),s("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),s("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),s("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),s("Star").setAll({spikes:5,innerRadius:5,radius:10}),s("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),s("Tooltip",["indicator"]).setAll({forceHidden:!0}),s("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),s("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),s("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),s("Container",["resizer","grip"]).states.create("hover",{});{let r=s("RoundedRectangle",["resizer","grip"]);r.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),v(r,"fill",e,"background"),v(r,"stroke",e,"alternativeBackground")}{let r=s("RoundedRectangle",["resizer","grip","outline"]);r.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),r.states.create("hover",{fillOpacity:.3}),v(r,"fill",e,"alternativeBackground")}s("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),s("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{let r=s("Rectangle",["resizer","rectangle"]);r.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),v(r,"stroke",e,"alternativeBackground")}s("Graphics",["button","plus","icon"]).setAll({x:k,y:k,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0),r.moveTo(0,-4),r.lineTo(0,4)}}),s("Graphics",["button","minus","icon"]).setAll({x:k,y:k,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0)}}),s("Graphics",["button","home","icon"]).setAll({x:k,y:k,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),s("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),s("ZoomTools").setAll({x:C,centerX:C,y:C,centerY:C,paddingRight:10,paddingBottom:10}),s("ProgressPie").setAll({radius:C,width:50,height:50,centerX:ae(-50),centerY:ae(-50),innerRadius:ae(85),numberFormat:"#."});{let r=s("Label",["progresspie"]);r.setAll({centerX:k,centerY:k,fontSize:"0.75em"}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["progresspie"]);r.setAll({fillOpacity:.5}),v(r,"fill",e,"background")}{let r=s("Slice",["progresspie"]);r.setAll({startAngle:-90}),v(r,"fill",e,"primaryButton")}{let r=s("Slice",["progresspie","background"]);r.setAll({fillOpacity:.2,arc:360}),v(r,"fill",e,"primaryButton")}s("EditableLabel",["numericstepper"]).setAll({y:k,centerY:k,multiLine:!1,marginRight:2});{let r=s("Container",["numericstepper","buttons"]);r.setAll({layout:this._root.verticalLayout,centerY:k,y:k,marginRight:10,opacity:0}),r.states.create("active",{opacity:1}),r.states.create("default",{opacity:0})}{let r=s("Triangle",["numericstepper"]);r.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),v(r,"fill",e,"secondaryButton")}s("Triangle",["downbutton"]).setAll({rotation:180})}};function S(a){return function(){return a}}var si=Math.abs,F=Math.atan2,Tt=Math.cos,Hi=Math.max,Pe=Math.min,it=Math.sin,jt=Math.sqrt,W=1e-12,Ut=Math.PI,ee=Ut/2,Ni=2*Ut;function Fi(a){return a>1?0:a<-1?Ut:Math.acos(a)}function ri(a){return a>=1?ee:a<=-1?-ee:Math.asin(a)}var ai=Math.PI,ni=2*ai,Lt=1e-6,Hs=ni-Lt;function Ui(a){this._+=a[0];for(let t=1,e=a.length;t<e;++t)this._+=arguments[t]+a[t]}function Ns(a){let t=Math.floor(a);if(!(t>=0))throw new Error(`invalid digits: ${a}`);if(t>15)return Ui;let e=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*e)/e+i[n]}}var Mt=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ui:Ns(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,n){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,e,i,n,s,r){this._append`C${+t},${+e},${+i},${+n},${this._x1=+s},${this._y1=+r}`}arcTo(t,e,i,n,s){if(t=+t,e=+e,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let r=this._x1,o=this._y1,h=i-t,l=n-e,u=r-t,f=o-e,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Lt)if(!(Math.abs(f*h-l*u)>Lt)||!s)this._append`L${this._x1=t},${this._y1=e}`;else{let p=i-r,m=n-o,g=h*h+l*l,x=p*p+m*m,b=Math.sqrt(g),c=Math.sqrt(d),w=s*Math.tan((ai-Math.acos((g+d-x)/(2*b*c)))/2),O=w/c,A=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*u},${e+O*f}`,this._append`A${s},${s},0,0,${+(f*p>u*m)},${this._x1=t+A*h},${this._y1=e+A*l}`}}arc(t,e,i,n,s,r){if(t=+t,e=+e,i=+i,r=!!r,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),h=i*Math.sin(n),l=t+o,u=e+h,f=1^r,d=r?n-s:s-n;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Lt||Math.abs(this._y1-u)>Lt)&&this._append`L${l},${u}`,i&&(d<0&&(d=d%ni+ni),d>Hs?this._append`A${i},${i},0,1,${f},${t-o},${e-h}A${i},${i},0,1,${f},${this._x1=l},${this._y1=u}`:d>Lt&&this._append`A${i},${i},0,${+(d>=ai)},${f},${this._x1=t+i*Math.cos(s)},${this._y1=e+i*Math.sin(s)}`)}rect(t,e,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function Wi(){return new Mt}Wi.prototype=Mt.prototype;function Wt(a){let t=3;return a.digits=function(e){if(!arguments.length)return t;if(e==null)t=null;else{let i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);t=i}return a},()=>new Mt(t)}function Fs(a){return a.innerRadius}function Us(a){return a.outerRadius}function Ws(a){return a.startAngle}function Vs(a){return a.endAngle}function zs(a){return a&&a.padAngle}function Gs(a,t,e,i,n,s,r,o){var h=e-a,l=i-t,u=r-n,f=o-s,d=f*h-u*l;if(!(d*d<W))return d=(u*(t-s)-f*(a-n))/d,[a+d*h,t+d*l]}function De(a,t,e,i,n,s,r){var o=a-e,h=t-i,l=(r?s:-s)/jt(o*o+h*h),u=l*h,f=-l*o,d=a+u,p=t+f,m=e+u,g=i+f,x=(d+m)/2,b=(p+g)/2,c=m-d,w=g-p,O=c*c+w*w,A=n-s,M=d*g-m*p,V=(w<0?-1:1)*jt(Hi(0,A*A*O-M*M)),E=(M*w-c*V)/O,B=(-M*c-w*V)/O,L=(M*w+c*V)/O,I=(-M*c+w*V)/O,H=E-x,_=B-b,P=L-x,R=I-b;return H*H+_*_>P*P+R*R&&(E=L,B=I),{cx:E,cy:B,x01:-u,y01:-f,x11:E*(n/A-1),y11:B*(n/A-1)}}function Ks(){var a=Fs,t=Us,e=S(0),i=null,n=Ws,s=Vs,r=zs,o=null,h=Wt(l);function l(){var u,f,d=+a.apply(this,arguments),p=+t.apply(this,arguments),m=n.apply(this,arguments)-ee,g=s.apply(this,arguments)-ee,x=si(g-m),b=g>m;if(o||(o=u=h()),p<d&&(f=p,p=d,d=f),!(p>W))o.moveTo(0,0);else if(x>Ni-W)o.moveTo(p*Tt(m),p*it(m)),o.arc(0,0,p,m,g,!b),d>W&&(o.moveTo(d*Tt(g),d*it(g)),o.arc(0,0,d,g,m,b));else{var c=m,w=g,O=m,A=g,M=x,V=x,E=r.apply(this,arguments)/2,B=E>W&&(i?+i.apply(this,arguments):jt(d*d+p*p)),L=Pe(si(p-d)/2,+e.apply(this,arguments)),I=L,H=L,_,P;if(B>W){var R=ri(B/d*it(E)),kt=ri(B/p*it(E));(M-=R*2)>W?(R*=b?1:-1,O+=R,A-=R):(M=0,O=A=(m+g)/2),(V-=kt*2)>W?(kt*=b?1:-1,c+=kt,w-=kt):(V=0,c=w=(m+g)/2)}var nt=p*Tt(c),ot=p*it(c),Ot=d*Tt(A),ie=d*it(A);if(L>W){var se=p*Tt(w),re=p*it(w),Re=d*Tt(O),Se=d*it(O),lt;if(x<Ut)if(lt=Gs(nt,ot,Re,Se,se,re,Ot,ie)){var $e=nt-lt[0],Ae=ot-lt[1],Be=se-lt[0],Ie=re-lt[1],li=1/it(Fi(($e*Be+Ae*Ie)/(jt($e*$e+Ae*Ae)*jt(Be*Be+Ie*Ie)))/2),hi=jt(lt[0]*lt[0]+lt[1]*lt[1]);I=Pe(L,(d-hi)/(li-1)),H=Pe(L,(p-hi)/(li+1))}else I=H=0}V>W?H>W?(_=De(Re,Se,nt,ot,p,H,b),P=De(se,re,Ot,ie,p,H,b),o.moveTo(_.cx+_.x01,_.cy+_.y01),H<L?o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,p,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),!b),o.arc(P.cx,P.cy,H,F(P.y11,P.x11),F(P.y01,P.x01),!b))):(o.moveTo(nt,ot),o.arc(0,0,p,c,w,!b)):o.moveTo(nt,ot),!(d>W)||!(M>W)?o.lineTo(Ot,ie):I>W?(_=De(Ot,ie,se,re,d,-I,b),P=De(nt,ot,Re,Se,d,-I,b),o.lineTo(_.cx+_.x01,_.cy+_.y01),I<L?o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,d,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),b),o.arc(P.cx,P.cy,I,F(P.y11,P.x11),F(P.y01,P.x01),!b))):o.arc(0,0,d,A,O,b)}if(o.closePath(),u)return o=null,u+""||null}return l.centroid=function(){var u=(+a.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Ut/2;return[Tt(f)*u,it(f)*u]},l.innerRadius=function(u){return arguments.length?(a=typeof u=="function"?u:S(+u),l):a},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:S(+u),l):t},l.cornerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:S(+u),l):e},l.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:S(+u),l):i},l.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:S(+u),l):n},l.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:S(+u),l):s},l.padAngle=function(u){return arguments.length?(r=typeof u=="function"?u:S(+u),l):r},l.context=function(u){return arguments.length?(o=u??null,l):o},l}var mn=Array.prototype.slice;function Te(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function Vi(a){this._context=a}Vi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:this._context.lineTo(a,t);break}}};function ke(a){return new Vi(a)}function Oe(a){return a[0]}function Ce(a){return a[1]}function oi(a,t){var e=S(!0),i=null,n=ke,s=null,r=Wt(o);a=typeof a=="function"?a:a===void 0?Oe:S(a),t=typeof t=="function"?t:t===void 0?Ce:S(t);function o(h){var l,u=(h=Te(h)).length,f,d=!1,p;for(i==null&&(s=n(p=r())),l=0;l<=u;++l)!(l<u&&e(f=h[l],l,h))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+a(f,l,h),+t(f,l,h));if(p)return s=null,p+""||null}return o.x=function(h){return arguments.length?(a=typeof h=="function"?h:S(+h),o):a},o.y=function(h){return arguments.length?(t=typeof h=="function"?h:S(+h),o):t},o.defined=function(h){return arguments.length?(e=typeof h=="function"?h:S(!!h),o):e},o.curve=function(h){return arguments.length?(n=h,i!=null&&(s=n(i)),o):n},o.context=function(h){return arguments.length?(h==null?i=s=null:s=n(i=h),o):i},o}function Ys(a,t,e){var i=null,n=S(!0),s=null,r=ke,o=null,h=Wt(l);a=typeof a=="function"?a:a===void 0?Oe:S(+a),t=typeof t=="function"?t:t===void 0?S(0):S(+t),e=typeof e=="function"?e:e===void 0?Ce:S(+e);function l(f){var d,p,m,g=(f=Te(f)).length,x,b=!1,c,w=new Array(g),O=new Array(g);for(s==null&&(o=r(c=h())),d=0;d<=g;++d){if(!(d<g&&n(x=f[d],d,f))===b)if(b=!b)p=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=d-1;m>=p;--m)o.point(w[m],O[m]);o.lineEnd(),o.areaEnd()}b&&(w[d]=+a(x,d,f),O[d]=+t(x,d,f),o.point(i?+i(x,d,f):w[d],e?+e(x,d,f):O[d]))}if(c)return o=null,c+""||null}function u(){return oi().defined(n).curve(r).context(s)}return l.x=function(f){return arguments.length?(a=typeof f=="function"?f:S(+f),i=null,l):a},l.x0=function(f){return arguments.length?(a=typeof f=="function"?f:S(+f),l):a},l.x1=function(f){return arguments.length?(i=f==null?null:typeof f=="function"?f:S(+f),l):i},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:S(+f),e=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:S(+f),l):t},l.y1=function(f){return arguments.length?(e=f==null?null:typeof f=="function"?f:S(+f),l):e},l.lineX0=l.lineY0=function(){return u().x(a).y(t)},l.lineY1=function(){return u().x(a).y(e)},l.lineX1=function(){return u().x(i).y(t)},l.defined=function(f){return arguments.length?(n=typeof f=="function"?f:S(!!f),l):n},l.curve=function(f){return arguments.length?(r=f,s!=null&&(o=r(s)),l):r},l.context=function(f){return arguments.length?(f==null?s=o=null:o=r(s=f),l):s},l}function zi(a,t,e){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-t),a._y2+a._k*(a._y1-e),a._x2,a._y2)}function Gi(a,t){this._context=a,this._k=(1-t)/6}Gi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2,this._x1=a,this._y1=t;break;case 2:this._point=3;default:zi(this,a,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xs=(function a(t){function e(i){return new Gi(i,t)}return e.tension=function(i){return a(+i)},e})(0);function Ki(a,t){this._context=a,this._t=t}Ki.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(a,t);else{var e=this._x*(1-this._t)+a*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,t)}break}}this._x=a,this._y=t}};function Zs(a){return new Ki(a,1)}export{ht as a,Gt as b,Ci as c,St as d,de as e,Yi as f,Xi as g,ce as h,ut as i,Ji as j,dt as k,mt as l,Qi as m,ts as n,is as o,as as p,Et as q,ge as r,$t as s,tr as t,er as u,ir as v,U as w,N as x,_t as y,bt as z,ye as A,Cr as B,tt as C,yt as D,z as E,vt as F,xt as G,rt as H,Nt as I,Ft as J,j as K,at as L,K as M,v as N,Ei as O,xe as P,$i as Q,Xt as R,wt as S,Ai as T,et as U,Bi as V,$s as W,ji as X,js as Y,Bt as Z,Li as _,Ls as $,Mi as aa,Zt as ba,Pt as ca,It as da,qt as ea,Ks as fa,oi as ga,Ys as ha,Xs as ia,Zs as ja,Dt as ka,Jt as la,Qt as ma,te as na};
|
|
3
|
+
v5.0.0-next.92 */
|
|
4
|
+
import{F as wi,Q as Pi,R as T,S as Ve,T as Di,U as Ti,V as he,a as Y,d as _i,g as le,k as We,o as bi,u as J,x as yi,y as vi,z as xi}from"./RV362NX4.js";import{a as $,b as ae,d as C,e as k}from"./WU6RMTYJ.js";import{B as pi,E as X,F as mi,H as G,L as Ct,N as pt,P as gi,Q as Rt,R as ze,S as ki,U as Ge,V as Oi,a as ui,b as Le,c as di,e as Me,g as D,h as Ee,j as He,m as Vt,n as Ne,o as y,p as ct,r as fi,s as q,u as Fe,w as ne,x as Ue,y as oe,z as ci}from"./CFQNKQLP.js";import{a as je}from"./XSHH2JZG.js";function zt(a,t){if(!(a>=0&&a<t))throw new Error("Index out of bounds: "+a)}var ht=class{constructor(t=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),this._values=t}get values(){return this._values}contains(t){return this._values.indexOf(t)!==-1}removeValue(t){let e=0,i=this._values.length;for(;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e}indexOf(t){return Vt(this._values,t)}get length(){return this._values.length}hasIndex(t){return t>=0&&t<this._values.length}getIndex(t){return this._values[t]}_onPush(t){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:t})}_onInsertIndex(t,e){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e})}_onSetIndex(t,e,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:t,oldValue:e,newValue:i})}_onSwap(t,e){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:t,b:e})}_onRemoveIndex(t,e){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e})}_onMoveIndex(t,e,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:t,newIndex:e,value:i})}_onClear(t){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:t})}setIndex(t,e){zt(t,this._values.length);let i=this._values[t];return i!==e&&(this._values[t]=e,this._onSetIndex(t,i,e)),i}insertIndex(t,e){return zt(t,this._values.length+1),ne(this._values,t,e),this._onInsertIndex(t,e),e}swap(t,e){let i=this._values.length;if(zt(t,i),zt(e,i),t!==e){let n=this._values[t],s=this._values[e];this._values[t]=s,this._values[e]=n,this._onSwap(n,s)}}removeIndex(t){zt(t,this._values.length);let e=this._values[t];return Ue(this._values,t),this._onRemoveIndex(t,e),e}moveValue(t,e){let i=this.indexOf(t);if(i!==-1)if(Ue(this._values,i),e==null){let n=this._values.length;this._values.push(t),this._onMoveIndex(i,n,t)}else ne(this._values,e,t),this._onMoveIndex(i,e,t);else e==null?(this._values.push(t),this._onPush(t)):(ne(this._values,e,t),this._onInsertIndex(e,t));return t}push(t){return this._values.push(t),this._onPush(t),t}unshift(t){return this.insertIndex(0,t),t}pushAll(t){y(t,e=>{this.push(e)})}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){let e=this._values;this._values=[],this._onClear(e),y(t,i=>{this._values.push(i),this._onPush(i)})}clear(){this.setAll([])}*[Symbol.iterator](){let t=this._values.length;for(let e=0;e<t;++e)yield this._values[e]}each(t){y(this._values,t)}eachReverse(t){ct(this._values,t)}},Gt=class extends ht{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(t,e){let i=this.autoDispose;this.autoDispose=!1,super.swap(t,e),this.autoDispose=i}_onSetIndex(t,e,i){this.autoDispose&&e.dispose(),super._onSetIndex(t,e,i)}_onRemoveIndex(t,e){this.autoDispose&&e.dispose(),super._onRemoveIndex(t,e)}_onClear(t){this.autoDispose&&y(t,e=>{e.dispose()}),super._onClear(t)}_dispose(){this.autoDispose&&y(this._values,t=>{t.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},Ci=class extends Gt{constructor(t,e){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}};var Et={};je(Et,{DEGREES:()=>de,HALFPI:()=>Ke,PI:()=>fe,RADIANS:()=>St,boundsOverlap:()=>ns,ceil:()=>Xi,circlesOverlap:()=>ls,closest:()=>as,cos:()=>dt,fitAngleToRange:()=>es,fitToRange:()=>ce,getAngle:()=>is,getArcBounds:()=>Qi,getArcPoint:()=>ue,getCubicControlPointA:()=>Zi,getCubicControlPointB:()=>qi,getPointOnLine:()=>rs,getPointOnQuadraticCurve:()=>ss,inBounds:()=>Ye,mergeBounds:()=>ts,normalizeAngle:()=>mt,round:()=>Yi,sin:()=>ut,spiralPoints:()=>os,tan:()=>Ji});var fe=Math.PI,Ke=fe/2,St=fe/180,de=180/fe;function Yi(a,t,e){if(!D(t)||t<=0){let i=Math.round(a);return e&&i-a==.5&&i--,i}else{let i=Math.pow(10,t);return Math.round(a*i)/i}}function Xi(a,t){if(!D(t)||t<=0)return Math.ceil(a);{let e=Math.pow(10,t);return Math.ceil(a*e)/e}}function Zi(a,t,e,i,n){return{x:(-a.x+t.x/i+e.x)*i,y:(-a.y+t.y/n+e.y)*n}}function qi(a,t,e,i,n){return{x:(a.x+t.x/i-e.x)*i,y:(a.y+t.y/n-e.y)*n}}function ce(a,t,e){return Math.min(Math.max(a,t),e)}function ut(a){return Math.sin(St*a)}function Ji(a){return Math.tan(St*a)}function dt(a){return Math.cos(St*a)}function mt(a){return a=a%360,a<0&&(a+=360),a}function Qi(a,t,e,i,n){let s=Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(ue(n,e)),l.push(ue(n,i));let u=Math.min(Math.floor(e/90)*90,Math.floor(i/90)*90),f=Math.max(Math.ceil(e/90)*90,Math.ceil(i/90)*90);for(let d=u;d<=f;d+=90)d>=e&&d<=i&&l.push(ue(n,d));for(let d=0;d<l.length;d++){let p=l[d];p.x<s&&(s=p.x),p.y<r&&(r=p.y),p.x>o&&(o=p.x),p.y>h&&(h=p.y)}return{left:a+s,top:t+r,right:a+o,bottom:t+h}}function ue(a,t){return{x:a*dt(t),y:a*ut(t)}}function ts(a){let t=a.length;if(t>0){let e=a[0],i=e.left,n=e.top,s=e.right,r=e.bottom;if(t>1)for(let o=1;o<t;o++)e=a[o],i=Math.min(e.left,i),s=Math.max(e.right,s),n=Math.min(e.top,n),r=Math.max(e.bottom,r);return{left:i,right:s,top:n,bottom:r}}return{left:0,right:0,top:0,bottom:0}}function es(a,t,e){if(t>e){let r=t;t=e,e=r}a=mt(a);let i=(t-mt(t))/360;a<t&&(a+=360*(i+1));let n=t+(e-t)/2+180,s=t+(e-t)/2-180;return a>e&&(a-360>t?a-=360:a<n?a=e:a=t),a<t&&(a>s?a=t:a=e),a}function Ye(a,t){return a.x>=t.left&&a.y>=t.top&&a.x<=t.right&&a.y<=t.bottom}function is(a,t){t||(t={x:a.x*2,y:a.y*2});let e=t.x-a.x,i=t.y-a.y,n=Math.atan2(i,e)*de;return n<0&&(n+=360),mt(n)}function ss(a,t,e,i){let n=(1-i)*(1-i)*a.x+2*(1-i)*i*e.x+i*i*t.x,s=(1-i)*(1-i)*a.y+2*(1-i)*i*e.y+i*i*t.y;return{x:n,y:s}}function rs(a,t,e){return{x:a.x+(t.x-a.x)*e,y:a.y+(t.y-a.y)*e}}function as(a,t){return a.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function ns(a,t){let e=a.left<t.right&&a.right>t.left,i=a.top<t.bottom&&a.bottom>t.top;return e&&i}function os(a,t,e,i,n,s,r,o,h){let l=n+.01;o=mt(o),h=mt(h);let u=o*St;h<o&&(h+=360);let f=[];for(;l<e+r;){let d=s;d/2>l&&(d=2*l);let p=Math.max(.01,Math.min(1,l/200));d=d*p;let m=u*de,g={x:a+l*Math.cos(u),y:t+l*i/e*Math.sin(u)};if(f.push(g),l=n+.01+(m-o)/360*r,u+=2*Math.asin(d/2/l),u*de>h+360*Math.ceil((e-n)/r))break}return f.shift(),f}function ls(a,t){return Math.hypot(a.x-t.x,a.y-t.y)<=a.radius+t.radius}var ge={};je(ge,{bounce:()=>Ds,circle:()=>cs,cubic:()=>st,elastic:()=>Cs,exp:()=>ds,inOut:()=>ms,linear:()=>me,out:()=>gt,pow:()=>us,quad:()=>hs,sine:()=>fs,yoyo:()=>ps});function me(a){return a}function hs(a){return a*a}function st(a){return a*a*a}function us(a,t){return Math.pow(a,t)}function ds(a){return Math.pow(2,10*a-10)}function fs(a){return 1-Math.cos(a*Ke)}function cs(a){return 1-Math.sqrt(1-a*a)}function ps(a){return function(t){return t<.5?a(t*2):a((1-t)*2)}}function gt(a){return function(t){return 1-a(1-t)}}function ms(a){return function(t){return t<=.5?a(t*2)/2:1-a((1-t)*2)/2}}var Xe=4/11,gs=6/11,_s=8/11,bs=3/4,ys=9/11,vs=10/11,xs=15/16,ws=21/22,Ps=63/64,pe=1/Xe/Xe;function Ds(a){return 1-Ts(1-a)}function Ts(a){return a=a,a<Xe?pe*a*a:a<_s?pe*(a-=gs)*a+bs:a<vs?pe*(a-=ys)*a+xs:pe*(a-=ws)*a+Ps}var ks=2*Math.PI,Ri=1,Si=.3/ks,Os=Math.asin(1/Ri)*Si;function Cs(a){let t=a;return Ri*Math.pow(2,10*--t)*Math.sin((Os-t)/Si)}var Ze=class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.14.4"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!1})}},$t=new Ze;function tr(a){$t.licenses.push(a)}function er(){let a;for(;a=$t.rootElements.pop();)a.dispose()}function ir(a){let t;return $t.rootElements.forEach(e=>{e.dom.id==a&&(t=e)}),t}var qe=class{constructor(t,e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=t,this._settings=e,G(e,i=>{this._userSettings[i]=!0})}get(t,e){let i=this._settings[t];return i!==void 0?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){X(t).forEach(e=>{this.set(e,t[e])})}_eachSetting(t){G(this._settings,t)}apply(){let t={};t.stateAnimationEasing=!0,t.stateAnimationDuration=!0;let e=this._entity.states.lookup("default");this._eachSetting((i,n)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,n))})}applyAnimate(t){t==null&&(t=this._settings.stateAnimationDuration),t==null&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;e==null&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",st)));let i=this._entity.states.lookup("default"),n={};n.stateAnimationEasing=!0,n.stateAnimationDuration=!0;let s={};return this._eachSetting((r,o)=>{if(!n[r]){n[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));let h=this._entity.animate({key:r,to:o,duration:t,easing:e});h&&(s[r]=h)}}),s}},_e=class{constructor(t){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=t}lookup(t){return this._states[t]}create(t,e){let i=this._states[t];if(i)return i.setAll(e),i;{let n=new qe(this._entity,e);return this._states[t]=n,n}}remove(t){delete this._states[t]}apply(t){let e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i,n=this._states[t];return n&&(i=n.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}};var Qe=class{constructor(t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=t}add(t,e){let i=this._callbacks[t];return i===void 0&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new Ct(()=>{q(i,e)&&this._entity._markDirtyKey(t)})}remove(t){let e=this._callbacks[t];e!==void 0&&(delete this._callbacks[t],e.length!==0&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){let i=this._callbacks[t];if(i!==void 0)for(let n=0,s=i.length;n<s;++n)e=i[n](e,this._entity,t)}return e}},Ht=class{constructor(t,e,i,n,s,r,o){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),this._animation=t,this._from=e,this._to=i,this._duration=n,this._easing=s,this._loops=r,this._interpolate=Ti(e,i),this._oldTime=o}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){!this._stopped&&!this._playing&&(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((t,e)=>{if(this._stopped)t();else{let i=()=>{n.dispose(),t()},n=this.events.on("stopped",i)}})}_checkEnded(){return this._loops>1?(--this._loops,!1):!0}_run(t){this._oldTime!==null&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}},Rs=0,Kt=class{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++Rs}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=t}_checkDirty(){X(this._settings).forEach(t=>{this._userProperties[t]=!0,this._markDirtyKey(t)})}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=he.Stopped;if(!this.isDisposed()){let i=!1,n=!1;G(this._animatingSettings,(s,r)=>{if(r.stopped)this._stopAnimation(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this.set(s,r._value(1)):(i=!0,r._reset(t),this._set(s,r._value(1))):(i=!0,this._set(s,r._value(o)))}else n=!0}),G(this._animatingPrivateSettings,(s,r)=>{if(r.stopped)this._stopAnimationPrivate(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this.setPrivate(s,r._value(1)):(i=!0,r._reset(t),this._setPrivate(s,r._value(1))):(i=!0,this._setPrivate(s,r._value(o)))}else n=!0}),i?e=he.Playing:n&&(e=he.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return i===void 0&&(i=this._settingEvents[t]=[]),i.push(e),new Ct(()=>{q(i,e),i.length===0&&delete this._settingEvents[t]})}off(t,e){let i=this._settingEvents[t];i!==void 0&&e!==void 0?q(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return i===void 0&&(i=this._privateSettingEvents[t]=[]),i.push(e),new Ct(()=>{q(i,e),i.length===0&&delete this._privateSettingEvents[t]})}offPrivate(t,e){let i=this._privateSettingEvents[t];i!==void 0&&e!==void 0?q(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){let i=this._settings[t];return i!==void 0?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){let i=this._settingEvents[t];i!==void 0&&y(i,n=>{n(e,this,t)})}_sendPrivateKeyEvent(t,e){let i=this._privateSettingEvents[t];i!==void 0&&y(i,n=>{n(e,this,t)})}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){let e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){y(X(this._settings),t=>{this.remove(t)})}getPrivate(t,e){let i=this._privateSettings[t];return i!==void 0?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){let e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){G(t,(e,i)=>{this.set(e,i)})}animate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.get(e):t.from,o=t.easing===void 0?me:t.easing;if(n===0)this.set(e,i);else if(r===void 0||r===i)this.set(e,i);else{this.set(e,r);let l=this._animatingSettings[e]=new Ht(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ht(this,r,i,n,o,s,null);return h.stop(),h}animatePrivate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.getPrivate(e):t.from,o=t.easing===void 0?me:t.easing;if(n===0)this.setPrivate(e,i);else if(r===void 0||r===i)this.setPrivate(e,i);else{this.setPrivate(e,r);let l=this._animatingPrivateSettings[e]=new Ht(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ht(this,r,i,n,o,s,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}},U=class extends Kt{constructor(t,e,i,n=[]){if(super(e),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new _e(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new Qe(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=n,e.id&&this._registerId(e.id)}static new(t,e,i){let n=new this(t,e,!0);return n._template=i,n._afterNew(),n}static _new(t,e,i=[]){let n=new this(t,e,!0,i);return n._afterNew(),n}_afterNew(){this._checkDirty();let t=!1,e=this._template;e&&(t=!0,e._setObjectTemplate(this)),y(this._internalTemplates,i=>{t=!0,i._setObjectTemplate(this)}),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();let t=this._template;t&&t._setObjectTemplate(this),y(this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new Rt}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){let i=this.get(t);if(i)return i;{let n=e();return this.set(t,n),n}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){X(this._dirty).forEach(t=>{this._dirty[t]=!1}),X(this._dirtyPrivate).forEach(t=>{this._dirtyPrivate[t]=!1})}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return this.classNames.indexOf(t)!==-1}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return i===void 0&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){let e=this._disposerProperties[t];e!==void 0&&(y(e,i=>{i.dispose()}),delete this._disposerProperties[t])}set template(t){let e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){let i=this.adapters.fold(t,this._settings[t]);return i!==void 0?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){if(!this._userProperties[e]){let n=this._findTemplateByKey(e);t===n&&super.set(e,i)}}_setTemplatePrivateProperty(t,e,i){if(!this._userPrivateProperties[e]){let n=this._findTemplateByPrivateKey(e);t===n&&super.setPrivate(e,i)}}_removeTemplateProperty(t){if(!this._userProperties[t]){let e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){let e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){let e=this.states.create(t,{}),i={};this._eachTemplate(n=>{let s=n.states.lookup(t);s&&s._apply(e,i)}),G(e._settings,n=>{!i[n]&&!e._userSettings[n]&&e.remove(n)})}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),G(t._settings,(i,n)=>{!e.settings[i]&&!this._userProperties[i]&&(e.settings[i]=!0,super.set(i,n))}),G(t._privateSettings,(i,n)=>{!e.privateSettings[i]&&!this._userPrivateProperties[i]&&(e.privateSettings[i]=!0,super.setPrivate(i,n))}),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate(e=>(t(e),!1)),ct(this._internalTemplates,t),y(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();let e={settings:{},privateSettings:{},states:{}};this._eachTemplate(i=>{this._applyTemplate(i,e)}),t&&(G(this._settings,i=>{!this._userProperties[i]&&!e.settings[i]&&super.remove(i)}),G(this._privateSettings,i=>{!this._userPrivateProperties[i]&&!e.privateSettings[i]&&super.removePrivate(i)}))}_findTemplate(t){let e=this._findStaticTemplate(t);if(e===void 0){let i=ci(this._internalTemplates,t);return i===void 0?oe(this._templates,t):i}else return e}_findTemplateByKey(t){return this._findTemplate(e=>t in e._settings)}_findTemplateByPrivateKey(t){return this._findTemplate(e=>t in e._privateSettings)}_disposeTemplates(){y(this._templateDisposers,t=>{t.dispose()}),this._templateDisposers.length=0}_removeTemplates(){y(this._templates,t=>{t._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(t=!1){let e=!1,i=[],n=[],s=new Set,r=this.get("themeTagsSelf");return r&&y(r,o=>{s.add(o)}),this._walkParents(o=>{o===this._root._rootContainer&&(e=!0),o._defaultThemes.length>0&&i.push(o._defaultThemes);let h=o.get("themes");h&&n.push(h);let l=o.get("themeTags");l&&y(l,u=>{s.add(u)})}),n=i.concat(n),this._removeTemplates(),(e||t)&&ct(this.classNames,o=>{let h=[];y(n,l=>{y(l,u=>{let f=u._lookupRules(o);f&&ct(f,d=>{if(d.tags.every(m=>s.has(m))){let m=pi(h,g=>{let x=ze(d.tags.length,g.tags.length);return x===0?ki(d.tags,g.tags,ze):x});h.splice(m.index,0,d)}})})}),y(h,l=>{this._templates.push(l.template),l.template._setObjectTemplate(this)})}),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){let t=this.get("id");t&&this._registerId(t);let e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete $t.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,$t.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();let t=this._template;t&&t._removeObjectTemplate(this),y(this._internalTemplates,i=>{i._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(i=>{i.dispose()}),G(this._disposerProperties,(i,n)=>{y(n,s=>{s.dispose()})});let e=this.get("id");e&&(delete this._root.entitiesById[e],delete $t.entitiesById[e])}setTimeout(t,e){let i=setTimeout(()=>{this.removeDispose(n),t()},e),n=new Ct(()=>{clearTimeout(i)});return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=Vt(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return Vt(this.get("themeTags",[]),t)!==-1}addTag(t){if(!this.hasTag(t)){let e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){let e=this.get("themeTags",[]);fi(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]});var be=class a extends Rt{constructor(t){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(i===void 0){let n=this._sprite._display.on(t,s=>{e.call(this,s)});i=this._rendererDisposers[t]=new gi(()=>{delete this._rendererDisposers[t],n.dispose()})}return i.increment()}_on(t,e,i,n,s,r,o){let h=super._on(t,e,i,n,s,r,o),l=a.RENDERER_EVENTS[e];return l!==void 0&&(h.disposer=new pt([h.disposer,this._onRenderer(e,l)])),h}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){let i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}};Object.defineProperty(be,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(a){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",a))&&this.dispatch("click",this._makePointerEvent("click",a))},rightclick:function(a){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",a))},middleclick:function(a){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",a))},dblclick:function(a){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",a))},pointerover:function(a){let t=this._sprite,e=!0;if(t.getPrivate("trustBounds")){t._getBounds();let i=t.globalBounds();if(t.isType("Graphics")){let n=t.get("strokeWidth",1)/2;n>=1&&(i.left-=n,i.right+=n,i.top-=n,i.bottom+=n)}Ye(a.point,i)||(e=!1,t._root._renderer.removeHovering(t._display))}e&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",a))},pointerout:function(a){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",a))},pointerdown:function(a){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",a))},pointerup:function(a){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",a))},globalpointerup:function(a){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",a))},globalpointermove:function(a){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",a))},wheel:function(a){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:a.event,point:a.point})}}});var N=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_virtualParent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),(t=="x"||t=="y"||t=="dx"||t=="dy")&&(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),(t=="x"||t=="y")&&this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new be(this)}_processTemplateField(){let t,e=this.get("templateField");if(e){let i=this.dataItem;if(i){let n=i.dataContext;n&&(t=n[e],!(t instanceof Ge)&&t&&(t=Ge.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){let e=this._dataItem;this._dataItem=t,this._processTemplateField();let i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof $||this.get("height")instanceof $?Fe(t._percentageSizeChildren,this):q(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof $||this.get("y")instanceof $?Fe(t._percentagePositionChildren,this):q(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){let t=this._localBounds;if(t){let e=this.get("centerX");e!=null&&(this._display.pivot.x=t.left+J(e,t.right-t.left));let i=this.get("centerY");i!=null&&(this._display.pivot.y=t.top+J(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){let t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){let t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);let e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),this.get("tooltipPosition")=="pointer"&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})),this._tooltipPointerDp=new pt([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})}),this.events.on("pointerout",()=>{let i=this._tooltipMoveDp;i&&(i.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();let t=this._display,e=this.events;if(this.isDirty("draggable")){let n=this.get("draggable");n?(this.set("interactive",!0),this._dragDp=new pt([e.on("pointerdown",s=>{this.dragStart(s)}),e.on("globalpointermove",s=>{this.dragMove(s)}),e.on("globalpointerup",s=>{this.dragStop(s)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!n}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){let n=this.get("tooltipText"),s=this.get("tooltipHTML"),r=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(n||s)&&(r=="click"?(this._tooltipDp=new pt([e.on("click",()=>{this.setTimeout(()=>{let o=this.getTooltip();o&&!o.isHidden()&&o.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),_i(document,"click",o=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):r=="always"||(this._tooltipDp=new pt([e.on("pointerover",()=>{this.showTooltip()}),e.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let n=this.get("toggleKey");n&&n!="none"?this._toggleDp=e.on("click",()=>{this._isDragging||this.set(n,!this.get(n))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(t.visible=!1,this.hideTooltip()):t.visible=!0,this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();let n=this.parent;n&&(this.isDirty("width")&&this.get("width")instanceof $||this.isDirty("height")&&this.get("height")instanceof $)&&(n.markDirty(),n._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){let n=this.get("wheelable");n&&this.set("interactive",!0),t.wheelable=!!n}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){let n=this.get("blur",0);n!=0&&(i+=" blur("+n+"px)")}if(this.isDirty("saturate")){let n=this.get("saturate",1);n!=1&&(i+=" saturate("+n+")")}if(this.isDirty("brightness")){let n=this.get("brightness",1);n!=1&&(i+=" brightness("+n+")")}if(this.isDirty("contrast")){let n=this.get("contrast",1);n!=1&&(i+=" contrast("+n+")")}if(this.isDirty("sepia")){let n=this.get("sepia",0);n!=0&&(i+=" sepia("+n+")")}if(this.isDirty("hue")){let n=this.get("hue",0);n!=0&&(i+=" hue-rotate("+n+"deg)")}if(this.isDirty("invert")){let n=this.get("invert",0);n!=0&&(i+=" invert("+n+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new pt([e.on("focus",()=>{this.showTooltip()}),e.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(e.once("boundschanged",()=>{this.markDirtyAccessibility()}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){let n=this.events;this.get("interactive")&&!n.isDisposed()?this._hoverDp=new pt([n.on("click",s=>{We(s.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})},10))}),n.on("globalpointerup",s=>{We(s.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})),this._isDown&&this._handleUp(s)}),n.on("pointerover",()=>{this._handleOver()}),n.on("pointerout",()=>{this._handleOut()}),n.on("pointerdown",s=>{this._handleDown(s)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),this.get("showTooltipOn")=="always"&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;let e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;let e=le(t.originalEvent);delete this._downPoints[e],X(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(t){let e=le(t.originalEvent),i=this._downPoints[e];if(i){let n=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return n>5||s>5}return!1}_hasDown(){return X(this._downPoints).length>0}_handleDown(t){let e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;let i=le(t.originalEvent);this._downPoints[i]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,n=this.parent,s=1;for(;n!=null;)i+=n.get("rotation",0),n=n.parent,n&&(s*=n.get("scale",1));let r=(t.point.x-e.point.x)/s,o=(t.point.y-e.point.y)/s,h=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let l=this._dragPoint;this.set("x",l.x+r*dt(i)+o*ut(i)),this.set("y",l.y+o*dt(i)-r*ut(i));let u="dragged";h.isEnabled(u)&&h.dispatch(u,{type:u,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;)if(t)++e,t=t.parent;else return e}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){let t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();let e=this.parent;e&&this.get("position")!="absolute"&&(e.get("width")==null||e.get("height")==null||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){let t=this._adjustedLocalBounds,e;if(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e):(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){let i="boundschanged";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));D(e)&&t.right-t.left<e&&(t.right=t.left+e),D(i)&&t.bottom-t.top<i&&(t.bottom=t.top+i);let n=this.getPrivate("width"),s=this.getPrivate("height");D(n)&&(n>0?t.right=t.left+n:t.left=t.right+n),D(s)&&(s>0?t.bottom=t.top+s:t.top=t.bottom+s)}_removeParent(t){t&&(t.children.removeValue(this),q(t._percentageSizeChildren,this),q(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){let e=this.getTooltip(),i=this.get("tooltipText"),n=this.get("tooltipHTML");if((i||n)&&e){let s=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if((s=="fixed"||!t)&&(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),s=="pointer"){let l=this.getPrivate("lastTooltipCoords");if(l&&l.x==t.x&&l.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),n&&e.label.set("html",n);let o=this.dataItem;if(o&&e.label._setDataItem(o),this.get("showTooltipOn")=="always"&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height())){this.hideTooltip();return}e.label.text.markDirtyText();let h=e.show();return this.setPrivateRaw("showingTooltip",!0),h}}}hideTooltip(){let t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&t.get("stateAnimationDuration",0)==0?400:void 0,i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){let t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+J(this.get("tooltipX",0),t.right-t.left),i=t.top+J(this.get("tooltipY",0),t.bottom-t.top)):(e=J(this.get("tooltipX",0),this.width()),i=J(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){let t=this.parent,e=this.get("dx",0),i=this.get("dy",0),n=this.get("x"),s=this.getPrivate("x"),r=0,o=0,h=this.get("position");n instanceof $&&(t?n=t.innerWidth()*n.value+t.get("paddingLeft",0):n=0),D(n)?r=n+e:s!=null?r=s:t&&h=="relative"&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),u=this.getPrivate("y");l instanceof $&&(t?l=t.innerHeight()*l.value+t.get("paddingTop",0):l=0),D(l)?o=l+i:u!=null?o=u:t&&h=="relative"&&(o=t.get("paddingTop",0)+i);let f=this._display;if(f.x!=r||f.y!=o){f.invalidateBounds(),f.x=r,f.y=o;let d="positionchanged";this.events.isEnabled(d)&&this.events.dispatch(d,{type:d,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x"),i=this.parent;return i?t instanceof $?J(t,i.innerWidth())+i.get("paddingLeft",0):D(t)?t:e??i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(t!=null)return t;let e=this.get("y"),i=this.parent;return i?e instanceof $?J(e,i.innerHeight())+i.get("paddingTop",0):D(e)?e:t??i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);let t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){let t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){let t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),n=this.toGlobal({x:t.right,y:t.bottom}),s=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,n.x,s.x),top:Math.min(e.y,i.y,n.y,s.y),right:Math.max(e.x,i.x,n.x,s.x),bottom:Math.max(e.y,i.y,n.y,s.y)}}_onShow(t){}_onHide(t){}appear(t,e){return Y(this,void 0,void 0,function*(){return yield this.hide(0),e?new Promise((i,n)=>{this.setTimeout(()=>{i(this.show(t))},e)}):this.show(t)})}show(t){return Y(this,void 0,void 0,function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);let e=this.states.applyAnimate("default",t);yield Ve(e),this._isShowing=!1}})}hide(t){return Y(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);let i=this.states.applyAnimate("hidden",t);yield Ve(i),this._isHiding=!1}})}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!!(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){let t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){let t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){let t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),n=this.getPrivate("width"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof $){let r=this.parent;r?s=r.innerWidth()*t.value:s=this._root.width()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(D(t))return t;{let i=this.get("width");if(D(i))return i}let e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(D(t))return t;{let i=this.get("height");if(D(i))return i}let e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),n=this.getPrivate("height"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof $){let r=this.parent;r?s=r.innerHeight()*t.value:s=this._root.height()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent=t,this._applyThemes()}get parent(){return this._parent}_setParent(t,e=!1){let i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){let t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return mi(this._downPoints,(t,e)=>t>e?1:t<e?-1:0)[0]}toFront(){let t=this.parent;t&&t.children.moveValue(this,t.children.length-1)}toBack(){let t=this.parent;t&&t.children.moveValue(this,0)}};Object.defineProperty(N,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"});Object.defineProperty(N,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([N.className])});var _t=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("repetition",""),e=this.get("width",100),i=this.get("height",100),n=this.get("fill"),s=this.get("fillOpacity",1),r=this._backgroundDisplay,o=this._display;o.clear(),r.clear(),n&&s>0&&(r.beginFill(n,s),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}};Object.defineProperty(_t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"});Object.defineProperty(_t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([_t.className])});var bt=class extends _t{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();let t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();let t=this.get("colorOpacity");t!==void 0&&(this._display.alpha=Math.max(0,t));let e=this._image;if(e){let n=this.get("width",100),s=this.get("height",100),r=this.get("fit","image"),o=0,h=0;r=="pattern"?(o=n,h=s,this.markDirty()):(o=e.width,h=e.height,r=="image"&&(this.set("width",o),this.set("height",h)));let l=this.get("centered",!0),u=0,f=0;l&&(u=n/2-o/2,f=s/2-h/2),this._display.image(e,o,h,u,f)}let i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){let t=this.get("src");if(t){let e=new Image;e.src=t,e.decode().then(()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(i=>{})}}};Object.defineProperty(bt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"});Object.defineProperty(bt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_t.classNames.concat([bt.className])});var ye;(function(a){a.ADD="lighter",a.COLOR="color",a.COLOR_BURN="color-burn",a.COLOR_DODGE="color-dodge",a.DARKEN="darken",a.DIFFERENCE="difference",a.DST_OVER="destination-over",a.EXCLUSION="exclusion",a.HARD_LIGHT="hard-light",a.HUE="hue",a.LIGHTEN="lighten",a.LUMINOSITY="luminosity",a.MULTIPLY="multiply",a.NORMAL="source-over",a.OVERLAY="overlay",a.SATURATION="saturation",a.SCREEN="screen",a.SOFT_LIGHT="soft-light",a.SRC_ATOP="source-atop",a.XOR="xor"})(ye||(ye={}));var Cr=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"],tt=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){let t=this.get("fillGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){let t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");D(t)&&(t<.5?t=[0]:t=[t]),this._display.setLineDash(t);let e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);let i=this.get("blendMode",ye.NORMAL);this._display.blendMode=i;let n=this.get("draw");n&&typeof n=="function"&&n(this._display,this);let s=this.get("svgPath");s!=null&&this._display.svgPath(s)}}_afterChanged(){if(super._afterChanged(),this._clear){let t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),s=this.get("stroke"),r=this.get("strokeGradient"),o=this.get("strokePattern"),h=this.get("shadowColor"),l=this.get("shadowBlur"),u=this.get("shadowOffsetX"),f=this.get("shadowOffsetY"),d=this.get("shadowOpacity");if(h&&(l||u||f)&&this._display.shadow(h,l,u,f,d),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){let m=e.get("stops",[]);m.length&&y(m,g=>{(!g.color||g.colorInherited)&&t&&(g.color=t,g.colorInherited=!0),(g.opacity==null||g.opacityInherited)&&(g.opacity=n,g.opacityInherited=!0)})}let p=e.getFill(this);p&&(this._display.beginFill(p,n),this._display.endFill())}if(i){let p=i.pattern;p&&(this._display.beginFill(p,n),this._display.endFill(),i instanceof bt&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(s||r||o){let p=this.get("strokeOpacity"),m=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(m=m/this.get("scale",1)),this.get("crisp")&&(m/=this._root._renderer.resolution);let g=this.get("lineJoin"),x=this.get("lineCap");if(s&&!r&&(this._display.lineStyle(m,s,p,g,x),this._display.endStroke()),r){let b=r.get("stops",[]);b.length&&y(b,w=>{(!w.color||w.colorInherited)&&s&&(w.color=s,w.colorInherited=!0),(w.opacity==null||w.opacityInherited)&&(w.opacity=p,w.opacityInherited=!0)});let c=r.getFill(this);c&&(this._display.lineStyle(m,c,p,g,x),this._display.endStroke())}if(o){let b=o.pattern;b&&(this._display.lineStyle(m,b,p,g,x),this._display.endStroke(),o instanceof bt&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}};Object.defineProperty(tt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"});Object.defineProperty(tt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([tt.className])});var yt=class extends tt{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,n=0,s=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){let o=this.get("strokeWidth",0);t-=o*s,e-=o*r,i+=o/2*s,n+=o/2*r}this._display.drawRect(i,n,t,e)}_updateSize(){this.markDirty(),this._clear=!0}};Object.defineProperty(yt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"});Object.defineProperty(yt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:tt.classNames.concat([yt.className])});function Z(a,t){a.get("reverseChildren",!1)?a.children.eachReverse(t):a.children.each(t)}var z=class extends U{};Object.defineProperty(z,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"});Object.defineProperty(z,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([z.className])});var vt=class extends z{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){n+=o.value;let h=i*o.value,l=r.get("minWidth",r.getPrivate("minWidth",-1/0));l>h&&(i-=l,n-=o.value);let u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h>u&&(i-=u,n-=o.value)}else D(o)||(o=r.width()),i-=o+r.get("marginLeft",0)+r.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){let h=i*o.value/n-r.get("marginLeft",0)-r.get("marginRight",0),l=r.get("minWidth",r.getPrivate("minWidth",-1/0)),u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("width",h)}else r._prevSettings.width instanceof $&&r.setPrivate("width",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginLeft",0),l=r.get("marginRight",0),u=r.get("maxWidth"),f=o.left,d=o.right;u&&d-f>u&&(d=f+u);let p=s+h-f;r.setPrivate("x",p),s=p+d+l}else r.setPrivate("x",void 0)})}};Object.defineProperty(vt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"});Object.defineProperty(vt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([vt.className])});var xt=class extends z{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){n+=o.value;let h=i*o.value,l=r.get("minHeight",r.getPrivate("minHeight",-1/0));l>h&&(i-=l,n-=o.value);let u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h>u&&(i-=u,n-=o.value)}else D(o)||(o=r.height()),i-=o+r.get("marginTop",0)+r.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){let h=i*o.value/n-r.get("marginTop",0)-r.get("marginBottom",0),l=r.get("minHeight",r.getPrivate("minHeight",-1/0)),u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("height",h)}else r._prevSettings.height instanceof $&&r.setPrivate("height",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginTop",0),l=o.top,u=o.bottom,f=r.get("maxHeight");f&&u-l>f&&(u=l+f);let d=r.get("marginBottom",0),p=s+h-l;r.setPrivate("y",p),s=p+u+d}else r.setPrivate("y",void 0)})}};Object.defineProperty(xt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"});Object.defineProperty(xt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([xt.className])});var rt=class extends z{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),s=t.maxWidth()-e-i,r=s,o=1;Z(t,m=>{if(m.get("visible")&&m.getPrivate("visible")&&!m.get("forceHidden")&&m.get("position")!="absolute"){let g=m.width();g<r&&(r=g),g>o&&(o=g)}}),r=ce(r,1,s),o=ce(o,1,s);let h=1;this.get("fixedWidthGrid")?h=s/o:h=s/r,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let l=this.getColumnWidths(t,h,o,s),u=n,f=0,d=0;h=l.length;let p=e;Z(t,m=>{if(m.get("position")=="relative"&&m.isVisible()){let g=m.get("marginTop",0),x=m.get("marginBottom",0),b=m.adjustedLocalBounds(),c=m.get("marginLeft",0),w=m.get("marginRight",0),O=p+c-b.left,A=u+g-b.top;m.setPrivate("x",O),m.setPrivate("y",A),p+=l[f]+w,d=Math.max(d,m.height()+g+x),f++,f>=h&&(f=0,p=e,u+=d,d=0)}})}getColumnWidths(t,e,i,n){let s=0,r=[],o=0;return Z(t,h=>{let l=h.adjustedLocalBounds();h.get("position")!="absolute"&&h.isVisible()&&(this.get("fixedWidthGrid")?r[o]=i:r[o]=Math.max(r[o]|0,l.right-l.left+h.get("marginLeft",0)+h.get("marginRight",0)),o<t.children.length-1&&(o++,o==e&&(o=0)))}),y(r,h=>{s+=h}),s>n?e>2?(e-=1,this.getColumnWidths(t,e,i,n)):[n]:r}};Object.defineProperty(rt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"});Object.defineProperty(rt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([rt.className])});var Nt=class{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let n=[];t=this.escape(t);let s=e?t.split("'"):[t];for(let r=0;r<s.length;r++){let o=s[r];if(o!=="")if(r%2===0){o=o.replace(/\]\[/g,"]"+He+"["),o=o.replace(/\[\]/g,"[ ]");let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==He&&u!==""&&(l%2===0?n.push({type:"value",text:u}):n.push({type:i?"value":"format",text:"["+u+"]"}))}}else{let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==""&&(l%2===0?n.push({type:"text",text:u}):this.isImage(u)?n.push({type:"image",text:"["+u+"]"}):n.push({type:"format",text:"["+u+"]"}))}}}return n}static isImage(t){return!!t.match(/img[ ]?:/)}static getTextStyle(t){let e={};if(t==""||t=="[ ]")return{};let i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(let s=0;s<i.length;s++)t=t.replace(i[s],i[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let n=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!n)return{};for(let s=0;s<n.length;s++)if(n[s].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))e.fontWeight=n[s];else if(n[s].match(/^(underline|line-through)$/i))e.textDecoration=n[s];else if(n[s]!="/")if(!n[s].match(/:/))e.fill=T.fromString(n[s]);else{let r=n[s].replace("+"," ").split(/:[ ]*/);e[r[0]]=r[1]}return e}};Object.defineProperty(Nt,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"});var ve=class extends ht{constructor(t){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=t,this._events=this.events.onAll(e=>{if(e.type==="clear")y(e.oldValues,i=>{this._onRemoved(i)});else if(e.type==="push")this._onInserted(e.newValue);else if(e.type==="setIndex")this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if(e.type==="insertIndex")this._onInserted(e.newValue,e.index);else if(e.type==="removeIndex")this._onRemoved(e.oldValue);else if(e.type==="moveIndex")this._onRemoved(e.value),this._onInserted(e.value,e.newIndex);else throw new Error("Unknown IListEvent type")})}_onInserted(t,e){t._setParent(this._container,!0);let i=this._container._childrenDisplay;e===void 0?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),y(this.values,t=>{t.dispose()}))}};function Ft(a,t){if(t!=null){t=""+t,t=Nt.escape(t);let e=t.match(/\{([^}]+)\}/g),i;if(e)for(i=0;i<e.length;i++){let n=e[i].replace(/\{([^}]+)\}/,"$1"),s=ti(a,n,"");s==null&&(s=""),t=t.split(e[i]).join(s)}t=Nt.unescape(t)}else t="";return t}function ti(a,t,e){let i,n=a.dataItem,s=[],r=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g,o;for(;o=r.exec(t),o!==null;)if(o[3]){s.push({prop:o[3]});let h=a.getDateFormatter().get("dateFields",[]),l=a.getNumberFormatter().get("numericFields",[]),u=a.getDurationFormatter().get("durationFields",[]);h.indexOf(o[3])!==-1?s.push({method:"formatDate",params:[]}):l.indexOf(o[3])!==-1?s.push({method:"formatNumber",params:[]}):u.indexOf(o[3])!==-1&&s.push({method:"formatDuration",params:[]})}else{let h=[];if(yi(o[2])!=""){let l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,u;for(;u=l.exec(o[2]),u!==null;)h.push(u[1]||u[2]||u[3])}s.push({method:o[1],params:h})}if(n){i=At(a,s,n._settings),(i==null||Ee(i))&&(i=At(a,s,n));let h=n.dataContext;i==null&&h&&(i=At(a,s,h),i==null&&(i=At(a,[{prop:t}],h)),i==null&&h.dataContext&&(i=At(a,s,h.dataContext))),i==null&&n.component&&n.component.dataItem!==n&&(i=ti(n.component,t,e))}return i==null&&(i=At(a,s,a)),i==null&&a.parent&&(i=ti(a.parent,t,e)),i}function Ss(a,t){let e=a.getPrivate("customData");if(Ee(e))return e[t]}function At(a,t,e,i){let n=e,s=!1;for(let r=0,o=t.length;r<o;r++){let h=t[r];if(h.prop){if(n instanceof N){let l=n.get(h.prop);l==null&&(l=n.getPrivate(h.prop)),l==null&&(l=Ss(n,h.prop)),l==null&&(l=n[h.prop]),n=l}else if(n.get){let l=n.get(h.prop);l==null&&(l=n[h.prop]),n=l}else n=n[h.prop];if(n==null)return}else switch(h.method){case"formatNumber":let l=Le(n);l!=null&&(n=a.getNumberFormatter().format(l,i||h.params[0]||void 0),s=!0);break;case"formatDate":let u=di(n);if(!Me(u)||ui(u.getTime()))return;u!=null&&(n=a.getDateFormatter().format(u,i||h.params[0]||void 0),s=!0);break;case"formatDuration":let f=Le(n);f!=null&&(n=a.getDurationFormatter().format(f,i||h.params[0]||void 0,h.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[h.method]&&n[h.method].apply(e,h.params);break}}if(!s){let r=[{method:"",params:i}];if(i==null)D(n)?(r[0].method="formatNumber",r[0].params=""):Me(n)&&(r[0].method="formatDate",r[0].params="");else{let o=xi(i);o==="number"?r[0].method="formatNumber":o==="date"?r[0].method="formatDate":o==="duration"&&(r[0].method="formatDuration")}r[0].method&&(n=At(a,r,n))}return n}var j=class a extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new ve(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_childrenPrep",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_childrenUpdt",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){ct(this.allChildren(),t=>{t.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(t=>{t.removePrivate("x"),t.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(t=>{t.markDirtyPosition()}),this.isDirty("maskContent")){let t=this._childrenDisplay,e=this._contentMask;this.get("maskContent")?e||(e=yt.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),y(this._percentageSizeChildren,t=>{t._updateSize()}),y(this._percentagePositionChildren,t=>{t.markDirtyPosition(),t._updateSize()}),this.updateBackground()}updateBackground(){let t=this.get("background"),e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,n=e.top,s=e.right-i,r=e.bottom-n,o=this.get("maxWidth"),h=this.get("maxHeight");h&&r>h&&(r=h),o&&s>o&&(s=o);let l=this.width(),u=this.height();t&&(t.setAll({width:s,height:r,x:i,y:n}),this._display.interactive&&(t._display.interactive=!0));let f=this._contentMask;f&&f.setAll({width:l+1,height:u+1});let d=this.get("verticalScrollbar");if(d){d.set("height",u),d.set("x",l-d.width()-d.get("marginRight",0)),d.set("end",d.get("start",0)+u/this._contentHeight);let p=d.get("background");p&&p.setAll({width:d.width(),height:u});let m=!0;this._contentHeight<=u&&(m=!1),d.setPrivate("visible",m)}}}_applyThemes(t=!1){return super._applyThemes(t)?(this.eachChildren(e=>{e._applyThemes(t)}),!0):!1}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren(e=>{e.states.apply(t)})}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(t,e)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),n=this.getPrivate("height"),s={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,h=!1;if((r instanceof vt||r instanceof rt)&&(o=!0),r instanceof xt&&(h=!0),!((t!=null||i!=null)&&(e!=null||n!=null)&&!this.get("verticalScrollbar"))){let l=Number.MAX_VALUE,u=l,f=-l,d=l,p=-l,m=this.get("paddingLeft",0),g=this.get("paddingTop",0),x=this.get("paddingRight",0),b=this.get("paddingBottom",0);this.children.each(O=>{if(O.get("position")!="absolute"&&O.get("isMeasured")){let A=O.adjustedLocalBounds(),M=O.x(),V=O.y(),E=M+A.left,B=M+A.right,L=V+A.top,I=V+A.bottom;o&&(E-=O.get("marginLeft",0),B+=O.get("marginRight",0)),h&&(L-=O.get("marginTop",0),I+=O.get("marginBottom",0)),E<u&&(u=E),B>f&&(f=B),L<d&&(d=L),I>p&&(p=I)}}),u==l&&(u=0),f==-l&&(f=0),d==l&&(d=0),p==-l&&(p=0),s.left=u-m,s.top=d-g,s.right=f+x,s.bottom=p+b;let c=this.get("minWidth");D(c)&&c>0&&s.right-s.left<c&&(s.right>=c?s.left=s.right-c:s.right=s.left+c);let w=this.get("minHeight");D(w)&&w>0&&s.bottom-s.top<w&&(s.bottom>=w?s.top=s.bottom-w:s.bottom=s.top+w)}this._contentWidth=s.right-s.left,this._contentHeight=s.bottom-s.top,D(t)&&(s.left=0,s.right=t),D(i)&&(s.left=0,s.right=i),D(e)&&(s.top=0,s.bottom=e),D(n)&&(s.top=0,s.bottom=n),this._localBounds=s}}_updateBounds(){let t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;let t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),n=!1,s=!1;i&&((i instanceof vt||i instanceof rt)&&(n=!0),i instanceof xt&&(s=!0)),y(this._percentageSizeChildren,r=>{if(!n){let o=r.get("width");o instanceof $&&r.setPrivate("width",o.value*t)}if(!s){let o=r.get("height");o instanceof $&&r.setPrivate("height",o.value*e)}}),y(this._percentagePositionChildren,r=>{r.markDirtyPosition(),r.markDirtyBounds()}),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){let t=this.get("html","");t&&t!==""?this._root._setHTMLContent(this,Ft(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){let e=this.get("verticalScrollbar");if(e){let i=t.y(),n=this.innerHeight(),s=t.height(),r=this._contentHeight,o=1-(n-s/2)/r;if(i+s*.7+this._childrenDisplay.y>n||i-s*.3+this._childrenDisplay.y<0){let h=Math.max(0,Math.min(o,(i-s/2)/r));e.animate({key:"start",to:h,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){let t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",yt.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",i=>{let n=i.originalEvent;if(bi(n,this))n.preventDefault();else return;let s=n.deltaY/5e3,r=t.get("start",0),o=t.get("end",1);r+s<=0&&(s=-r),o+s>=1&&(s=1-o),r+s>=0&&o+s<=1&&(t.set("start",r+s),t.set("end",o+s))}),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",()=>{let i=this._contentHeight,n=this._childrenDisplay,s=this._contentMask;n.y=-t.get("start",0)*i,n.markDirtyLayer(),s&&(s._display.y=-n.y,n.mask=s._display)}),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{let e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();let i=this._childrenDisplay;i.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){let t=this._prevSettings.background;t&&this._display.removeChild(t._display);let e=this.get("background");e instanceof N&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){let t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){let i=t.parent;i&&i.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(t=>{t._processTemplateField()})}walkChildren(t){this.children.each(e=>{e instanceof a&&e.walkChildren(t),t(e)})}eachChildren(t){let e=this.get("background");e&&t(e);let i=this.get("verticalScrollbar");i&&t(i);let n=this.get("mask");n&&t(n),this.children.values.forEach(s=>{t(s)})}allChildren(){let t=[];return this.eachChildren(e=>{t.push(e)}),t}_setDataItem(t){let e=t!==this._dataItem;super._setDataItem(t);let i=this.get("html","");i&&i!==""&&e&&this._root._setHTMLContent(this,Ft(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}};Object.defineProperty(j,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"});Object.defineProperty(j,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([j.className])});var at=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),this.get("role")=="tooltip"&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new Ct(()=>{this._root._removeTooltipElement(this)})),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){let e=this.get("fill"),i=this.get("fillGradient"),n=this.get("fillOpacity");if(i){if(e){let s=i.get("stops",[]);s.length&&y(s,r=>{(!r.color||r.colorInherited)&&e&&(r.color=e,r.colorInherited=!0),(r.opacity==null||r.opacityInherited)&&(r.opacity=n,r.opacityInherited=!0)})}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),y(this._textStyles,e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())}),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&this.get("role")=="tooltip"&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=vi(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?Ft(this,t):t}_getAccessibleText(){let t=this.get("ariaLabel");return t!==void 0?this.get("populateText")?Ft(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),this.get("role")=="tooltip"&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}};Object.defineProperty(at,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"});Object.defineProperty(at,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([at.className])});var K=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),y(this._textKeys,t=>{let e=this.get(t);e!=null&&this._text.set(t,e)}),this.get("html","")!==""&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(at.new(this._root,{}))}_updateChildren(){super._updateChildren();let t=this._text;if(y(this._textKeys,i=>{this._text.set(i,this.get(i))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),this.get("html","")!==""?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){let i=this.get("textAlign"),n;this.get("width")!=null?i=="right"?n=C:i=="center"?n=k:n=0:i=="left"||i=="start"?n=this.get("paddingLeft",0):(i=="right"||i=="end")&&(n=-this.get("paddingRight",0)),t.set("x",n)}let e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){let t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){let t=this.get("rotation"),e=t==90||t==270||t==-90,i=this._text,n=this.get("maxWidth",this.getPrivate("maxWidth",1/0));D(n)?i.set(e?"maxHeight":"maxWidth",n-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);let s=this.get("maxHeight",this.getPrivate("maxHeight",1/0));D(s)?i.set(e?"maxWidth":"maxHeight",s-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");let e=this._text;e.get("populateText")&&e.markDirtyText();let i=this.get("html");i&&i!==""&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([K.className])});var xe=class extends ht{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}},$i=class{constructor(t){Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=t}incrementRef(){}decrementRef(){}};var Xt=class extends Kt{constructor(t,e,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}},wt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new xe}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(t=>{let e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,t.type==="clear")y(e,i=>{i.dispose()}),e.length=0,this._onDataClear();else if(t.type==="push"){let i=new Xt(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if(t.type==="setIndex"){let i=e[t.index],n=this._makeDataItem(t.newValue);i.bullets&&i.bullets.length==0&&(i.bullets=void 0),X(n).forEach(s=>{i.get(s)!=n[s]&&i.animate({key:s,to:n[s],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=t.newValue}else if(t.type==="insertIndex"){let i=new Xt(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if(t.type==="removeIndex")e[t.index].dispose(),e.splice(t.index,1);else if(t.type==="moveIndex"){let i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}else throw new Error("Unknown IStreamEvent type");this._afterDataChange()}))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},y(this.valueFields,t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},y(this.fields,t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")}))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){let e={};return this._valueFields&&y(this._valueFields,i=>{let n=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[n],e[this._valueFieldsF[i].workingKey]=e[i]}),this._fields&&y(this._fields,i=>{let n=this.get(this._fieldsF[i]);e[i]=t[n]}),e}makeDataItem(t,e){let i=new Xt(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){let i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!0)})}hideDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){let t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){let t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return oe(this.dataItems,e=>e.get("id")==t)}};Object.defineProperty(wt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"});Object.defineProperty(wt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([wt.className])});var Mi={};je(Mi,{add:()=>Is,checkChange:()=>ji,chooseInterval:()=>Li,copy:()=>Bs,getDateIntervalDuration:()=>$s,getDuration:()=>et,getIntervalDuration:()=>Bi,getNextUnit:()=>Ai,getTime:()=>As,getUnitValue:()=>Ls,now:()=>Ii,roun:()=>js,round:()=>Bt,sleep:()=>ei,timeUnitDurations:()=>we});function ei(a){return new Promise((t,e)=>{setTimeout(t,a)})}var we={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function Ai(a){switch(a){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function et(a,t){return t==null&&(t=1),we[a]*t}function Bi(a){return a?we[a.timeUnit]*a.count:0}function $s(a,t,e,i,n){let s=a.timeUnit,r=a.count;if(s=="hour"||s=="minute"||s=="second"||s=="millisecond")return we[a.timeUnit]*a.count;{let o=Bt(new Date(t.getTime()),s,r,e,i,void 0,n).getTime(),h=o+r*et(s)*1.05;return h=Bt(new Date(h),s,1,e,i,void 0,n).getTime(),h-o}}function Ii(){return new Date}function As(){return Ii().getTime()}function Bs(a){return new Date(a.getTime())}function ji(a,t,e,i,n){if(t-a>et(e,1.2))return!0;let s=new Date(a),r=new Date(t);n&&(s=n.convertLocal(s),r=n.convertLocal(r));let o=0,h=0;!i&&e!="millisecond"&&(o=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-o),h=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-h));let l=!1;switch(e){case"year":s.getUTCFullYear()!=r.getUTCFullYear()&&(l=!0);break;case"month":(s.getUTCFullYear()!=r.getUTCFullYear()||s.getUTCMonth()!=r.getUTCMonth())&&(l=!0);break;case"day":(s.getUTCMonth()!=r.getUTCMonth()||s.getUTCDate()!=r.getUTCDate())&&(l=!0);break;case"hour":s.getUTCHours()!=r.getUTCHours()&&(l=!0);break;case"minute":s.getUTCMinutes()!=r.getUTCMinutes()&&(l=!0);break;case"second":s.getUTCSeconds()!=r.getUTCSeconds()&&(l=!0);break;case"millisecond":s.getTime()!=r.getTime()&&(l=!0);break}if(l)return l;let u=Ai(e);return u?ji(a,t,u,i,n):!1}function Is(a,t,e,i,n){let s=0;switch(!i&&t!="millisecond"&&(s=a.getTimezoneOffset(),n&&(s-=n.offsetUTC(a)),a.setUTCMinutes(a.getUTCMinutes()-s)),t){case"day":let r=a.getUTCDate();a.setUTCDate(r+e);break;case"second":let o=a.getUTCSeconds();a.setUTCSeconds(o+e);break;case"millisecond":let h=a.getUTCMilliseconds();a.setUTCMilliseconds(h+e);break;case"hour":let l=a.getUTCHours();a.setUTCHours(l+e);break;case"minute":let u=a.getUTCMinutes();a.setUTCMinutes(u+e);break;case"year":let f=a.getUTCFullYear();a.setUTCFullYear(f+e);break;case"month":let d=a.getUTCDate(),p=new Date(a.getUTCFullYear(),a.getUTCMonth(),0).getUTCDate(),m=a.getUTCMonth();d>p?a.setUTCMonth(m+e,p):a.setUTCMonth(m+e);break;case"week":let g=a.getUTCDate();a.setUTCDate(g+e*7);break}if(!i&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+s),t=="day"||t=="week"||t=="month"||t=="year")){let r=a.getTimezoneOffset();if(n&&(r+=n.offsetUTC(a)),r!=s){let o=r-s;a.setUTCMinutes(a.getUTCMinutes()+o),a.getTimezoneOffset()!=r&&a.setUTCMinutes(a.getUTCMinutes()-o)}}return a}function js(a,t,e,i,n){let s;return n!=null&&(s=new Date(n)),Bt(new Date(a),t,e,i.locale.firstDayOfWeek,i.utc,s,i.timezone).getTime()}function Bt(a,t,e,i,n,s,r){if(!r||n){let o=0;switch(!n&&t!="millisecond"&&(o=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-o)),t){case"day":let h=a.getUTCDate();if(e>1){if(s){s=Bt(s,"day",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/et("day")/e),w=et("day",c*e);a.setTime(s.getTime()+w-o*et("minute"))}}else a.setUTCDate(h);a.setUTCHours(0,0,0,0);break;case"second":let l=a.getUTCSeconds();e>1&&(l=Math.floor(l/e)*e),a.setUTCSeconds(l,0);break;case"millisecond":if(e==1)return a;let u=a.getUTCMilliseconds();u=Math.floor(u/e)*e,a.setUTCMilliseconds(u);break;case"hour":let f=a.getUTCHours();e>1&&(f=Math.floor(f/e)*e),a.setUTCHours(f,0,0,0);break;case"minute":let d=a.getUTCMinutes();e>1&&(d=Math.floor(d/e)*e),a.setUTCMinutes(d,0,0);break;case"month":let p=a.getUTCMonth();e>1&&(e==2||e==3||e==4||e==6)&&(p=Math.floor(p/e)*e),a.setUTCMonth(p,1),a.setUTCHours(0,0,0,0);break;case"year":let m=a.getUTCFullYear();e>1&&(m=Math.floor(m/e)*e),a.setUTCFullYear(m,0,1),a.setUTCHours(0,0,0,0);break;case"week":if(e>1&&s){s=Bt(s,"week",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/et("week")/e),w=et("week",c*e);a.setTime(s.getTime()+w-o*et("minute"))}let g=a.getUTCDate(),x=a.getUTCDay();D(i)||(i=1),x>=i?g=g-x+i:g=g-(7+x)+i,a.setUTCDate(g),a.setUTCHours(0,0,0,0);break}if(!n&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+o),t=="day"||t=="week"||t=="month"||t=="year")){let h=a.getTimezoneOffset();if(h!=o){let l=h-o;a.setUTCMinutes(a.getUTCMinutes()+l)}}return a}else{if(isNaN(a.getTime()))return a;let o=a.getTime(),h=r.offsetUTC(a),l=a.getTimezoneOffset(),u=r.parseDate(a),f=u.year,d=u.month,p=u.day,m=u.hour,g=u.minute,x=u.second,b=u.millisecond,c=u.weekday,w=h-l;switch(t){case"day":if(e>1&&s){s=Bt(s,"day",1,i,n,void 0,r);let B=a.getTime()-s.getTime(),L=Math.floor(B/et("day")/e),I=et("day",L*e);a.setTime(s.getTime()+I),u=r.parseDate(a),f=u.year,d=u.month,p=u.day}m=0,g=w,x=0,b=0;break;case"second":g+=w,e>1&&(x=Math.floor(x/e)*e),b=0;break;case"millisecond":g+=w,e>1&&(b=Math.floor(b/e)*e);break;case"hour":e>1&&(m=Math.floor(m/e)*e),g=w,x=0,b=0;break;case"minute":e>1&&(g=Math.floor(g/e)*e),g+=w,x=0,b=0;break;case"month":e>1&&(d=Math.floor(d/e)*e),p=1,m=0,g=w,x=0,b=0;break;case"year":e>1&&(f=Math.floor(f/e)*e),d=0,p=1,m=0,g=w,x=0,b=0;break;case"week":D(i)||(i=1),c>=i?p=p-c+i:p=p-(7+c)+i,m=0,g=w,x=0,b=0;break}a=new Date(f,d,p,m,g,x,b);let O=a.getTime(),A=36e5;t=="hour"&&(A=36e5*e),O+A<=o&&(t=="hour"||t=="minute"||t=="second"||t=="millisecond")&&(a=new Date(O+A));let M=a.getTimezoneOffset(),E=r.offsetUTC(a)-M;return E!=w&&a.setTime(a.getTime()+(E-w)*6e4),a}}function Li(a,t,e,i){let n=i[a],s=Bi(n),r=i.length-1;if(a>=r)return Object.assign({},i[r]);let o=Math.ceil(t/s);return t<s&&a>0?Object.assign({},i[a-1]):o<=e?Object.assign({},i[a]):a+1<i.length?Li(a+1,t,e,i):Object.assign({},i[a])}function Ls(a,t){switch(t){case"day":return a.getDate();case"second":return a.getSeconds();case"millisecond":return a.getMilliseconds();case"hour":return a.getHours();case"minute":return a.getMinutes();case"month":return a.getMonth();case"year":return a.getFullYear();case"week":return wi(a)}}var Zt=class extends wt{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseSeriesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new ht}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(()=>{this._handleBullets(this.dataItems)}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){y(t,e=>{let i=e.bullets;i&&(y(i,n=>{n.dispose()}),e.bullets=void 0)}),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each(e=>{this._makeBullet(t,e)}))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){let n=e(this._root,this,t);return n&&(n._index=i,this._makeBulletReal(t,n)),n}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let t=this.startIndex(),e=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){let n=this.getPrivate("baseValueSeries");n&&this._disposers.push(n.onPrivate("startIndex",()=>{this._baseSeriesDirty=!0,this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,t!=0&&(this._psi=void 0))),(this._psi!=t||this._pei!=e||this.isPrivateDirty("adjustedStartIndex"))&&!this._selectionAggregatesCalculated&&(t===0&&e===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(t,e),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let n=this.get("tooltip");n&&(n.hide(0),n.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let n,s=this.get("legendDataItem");if(s&&(n=s.get("markerRectangle"),n&&this.isVisible())){if(this.isDirty("stroke")){let r=this.get("stroke");n.set("stroke",r)}if(this.isDirty("fill")){let r=this.get("fill");n.set("fill",r)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let n=this.startIndex(),s=this.endIndex();s<this.dataItems.length&&s++;for(let r=n;r<s;r++){let o=this.dataItems[r];o.bullets||this._makeBullets(o)}}}_handleRemoved(){}_adjustStartIndex(t){return t}_calculateAggregates(t,e){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");let n=this.get("excludeFromAggregate");n&&(i=i.filter(x=>n.indexOf(x)==-1));let s={},r={},o={},h={},l={},u={},f={},d={},p={};for(let x=0,b=i.length;x<b;x++){let c=i[x];s[c]=0,r[c]=0,o[c]=0}let m=this.dataItems,g=m.length;for(let x=0,b=i.length;x<b;x++){let c=i[x],w=c+"Change",O=c+"ChangePercent",A=c+"ChangePrevious",M=c+"ChangePreviousPercent",V=c+"ChangeSelection",E=c+"ChangeSelectionPercent",B="valueY";(c==="valueX"||c.endsWith("ValueX"))&&(B="valueX");let L=this.getPrivate("baseValueSeries"),I=this.getPrivate("adjustedStartIndex",t),H=(_,P,R)=>{if(t===0){let ot=u[B],Ot=P-ot;_.setRaw(w,Ot),_.setRaw(O,Ot/ot*100)}let kt=P-p[B],nt=P-u[B];_.setRaw(A,kt),_.setRaw(M,kt/p[B]*100),_.setRaw(V,nt),_.setRaw(E,nt/u[B]*100),p[R]=P};for(let _=I;_<e;_++){let P=m[_];if(P){let R=P.get(c);if(R!=null){h[c]==null&&(h[c]=R),l[c]==null&&(l[c]=R),u[c]==null&&(u[c]=R,p[c]=R,L&&(u[B]=L._getBase(B)));break}}}for(let _=I;_<e;_++){let P=m[_];if(P){let R=P._settings[c];R!=null&&(o[c]++,s[c]+=R,r[c]+=Math.abs(R),h[c]>R&&(h[c]=R),l[c]<R&&(l[c]=R),f[c]=R,H(P,R,c))}}if(d[c]=s[c]/o[c],e<g){let _=m[e];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}if(e+1<g){let _=m[e+1];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}t>0&&t--,delete p[c];for(let _=t;_<I;_++){let P=m[_];if(P){let R=P.get(c);p[c]==null&&(p[c]=R),R!=null&&H(P,R,c)}}}for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"AverageSelection",d[c]),this.setPrivate(c+"CountSelection",o[c]),this.setPrivate(c+"SumSelection",s[c]),this.setPrivate(c+"AbsoluteSumSelection",r[c]),this.setPrivate(c+"LowSelection",h[c]),this.setPrivate(c+"HighSelection",l[c]),this.setPrivate(c+"OpenSelection",u[c]),this.setPrivate(c+"CloseSelection",f[c])}if(t===0&&e===g)for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"Average",d[c]),this.setPrivate(c+"Count",o[c]),this.setPrivate(c+"Sum",s[c]),this.setPrivate(c+"AbsoluteSum",r[c]),this.setPrivate(c+"Low",h[c]),this.setPrivate(c+"High",l[c]),this.setPrivate(c+"Open",u[c]),this.setPrivate(c+"Close",f[c])}}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));let t=this.get("heatRules");if(this._valuesDirty&&t&&t.length>0&&y(t,e=>{let i=e.minValue||this.getPrivate(e.dataField+"Low")||0,n=e.maxValue||this.getPrivate(e.dataField+"High")||0;y(e.target._entities,s=>{let r=s.dataItem.get(e.dataField);if(!D(r)){e.neutral&&s.set(e.key,e.neutral);let o=s.states;if(o){let h=o.lookup("default");h&&e.neutral&&h.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,s,i,n,r);else{let o;e.logarithmic?o=(Math.log(r)*Math.LOG10E-Math.log(i)*Math.LOG10E)/(Math.log(n)*Math.LOG10E-Math.log(i)*Math.LOG10E):o=(r-i)/(n-i),D(r)&&(!D(o)||Math.abs(o)==1/0)&&(o=.5);let h;D(e.min)?h=e.min+(e.max-e.min)*o:e.min instanceof T?h=T.interpolate(o,e.min,e.max):e.min instanceof $&&(h=Di(o,e.min,e.max)),s.set(e.key,h);let l=s.states;if(l){let u=l.lookup("default");u&&u.set(e.key,h)}}})}),this.get("visible")){let e=this.dataItems.length,i=this.startIndex(),n=this.endIndex();n<e&&n++,i>0&&i--;for(let s=0;s<i;s++)this._hideBullets(this.dataItems[s]);for(let s=i;s<n;s++)this._positionBullets(this.dataItems[s]);for(let s=n;s<e;s++)this._hideBullets(this.dataItems[s])}}_positionBullets(t){t.bullets&&y(t.bullets,e=>{this._positionBullet(e);let i=e.get("sprite");e.get("dynamic")&&(i&&(i._markDirtyKey("fill"),i.markDirtySize()),i instanceof j&&i.walkChildren(n=>{n._markDirtyKey("fill"),n.markDirtySize(),n instanceof K&&n.text.markDirtyText()})),i instanceof K&&i.get("populateText")&&i.text.markDirtyText()})}_hideBullets(t){t.bullets&&y(t.bullets,e=>{let i=e.get("sprite");i&&i.setPrivate("visible",!1)})}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){let t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){let e=t.bullets;e&&(y(e,i=>{i.dispose()}),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.showDataItem.call(this,t,e)],s=t.bullets;s&&y(s,r=>{let o=r.get("sprite");o&&n.push(o.show(e))}),yield Promise.all(n)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.hideDataItem.call(this,t,e)],s=t.bullets;s&&y(s,r=>{let o=r.get("sprite");o&&n.push(o.hide(e))}),yield Promise.all(n)})}_sequencedShowHide(t,e){return Y(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(D(e)||(e=this.get("interpolationDuration",0)),e>0){let i=this.startIndex(),n=this.endIndex();yield Promise.all(Ne(this.dataItems,(s,r)=>Y(this,void 0,void 0,function*(){let o=e||0;(r<i-10||r>n+10)&&(o=0);let h=this.get("sequencedDelay",0)+o/(n-i);yield ei(h*(r-i)),t?yield this.showDataItem(s,o):yield this.hideDataItem(s,o)})))}else yield Promise.all(Ne(this.dataItems,i=>t?this.showDataItem(i,0):this.hideDataItem(i,0)))})}updateLegendValue(t){if(t){let e=t.get("legendDataItem");if(e){let i=e.get("valueLabel");if(i){let s=i.text,r="";i._setDataItem(t),r=this.get("legendValueText",s.get("text","")),i.set("text",r),s.markDirtyText()}let n=e.get("label");if(n){let s=n.text,r="";n._setDataItem(t),r=this.get("legendLabelText",s.get("text","")),n.set("text",r),s.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();let t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){let e=this.dataItems[this.startIndex()];return e?e.get(t):0}};Object.defineProperty(Zt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"});Object.defineProperty(Zt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:wt.classNames.concat([Zt.className])});function ii(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];if(n.length>0){let s=n[0];if(s.length>0){let r=s[0];a.moveTo(r.x,r.y);for(let o=0,h=n.length;o<h;o++)Ms(a,n[o])}}}}function Ms(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];a.lineTo(n.x,n.y)}}var Pt=class extends tt{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("points"),e=this.get("segments");if(t&&t.length>0){let i=t[0];this._display.moveTo(i.x,i.y),ii(this._display,[[t]])}else if(e)ii(this._display,e);else if(!this.get("draw")){let i=this.width(),n=this.height();this._display.moveTo(0,0),this._display.lineTo(i,n)}}}};Object.defineProperty(Pt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"});Object.defineProperty(Pt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:tt.classNames.concat([Pt.className])});var It=class extends at{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*St,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}};Object.defineProperty(It,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"});Object.defineProperty(It,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:at.classNames.concat([It.className])});var qt=class extends K{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(It.new(this._root,{}))}baseRadius(){let t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+J(i,t-e)}radius(){let t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){let t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation"),n=mt(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);let s=ut(n),r=dt(n),o=this.baseRadius(),h=this.radius();if(this._display.angle=0,t=="circular")this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",h);else{o==0&&(n=0,h=0);let l=h*r,u=h*s;t=="radial"?(this.setRaw("x",l),this.setRaw("y",u),n<90||n>270||i!="auto"?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):t=="adjusted"?(this.setRaw("centerX",k),this.setRaw("centerY",k),this.setRaw("x",l),this.setRaw("y",u)):t=="regular"&&(this.setRaw("x",l),this.setRaw("y",u))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){let t=this.get("textType","regular"),e=this.get("inside",!1),i=0,n=0,s=this.get("labelAngle",0),r=this.localBounds(),o=r.right-r.left,h=r.bottom-r.top;if(t=="radial"){if(this._flipped){let l=this.get("centerX");l instanceof $&&(o=o*(1-l.value*2)),i=o*dt(s),n=o*ut(s)}}else!e&&t=="adjusted"&&(i=o/2*dt(s),n=h/2*ut(s));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}};Object.defineProperty(qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"});Object.defineProperty(qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.concat([qt.className])});var Dt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(j.new(this._root,{width:C,height:C,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:C,height:C})})}};Object.defineProperty(Dt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"});Object.defineProperty(Dt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([Dt.className])});var Jt=class extends Dt{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new Gt})}_afterNew(){super._afterNew(),this._disposers.push(this.series);let t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(e=>{if(e.type==="clear"){y(e.oldValues,s=>{this._removeSeries(s)});let i=this.get("colors");i&&i.reset();let n=this.get("patterns");n&&n.reset()}else if(e.type==="push")t.moveValue(e.newValue),this._processSeries(e.newValue);else if(e.type==="setIndex")t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="insertIndex")t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="removeIndex")this._removeSeries(e.oldValue);else if(e.type==="moveIndex")t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else if(e.type==="swap"){let i=e.a,n=e.b,s=this.series.indexOf(i),r=this.series.indexOf(n);t.moveValue(i,r),t.moveValue(n,s),this.series.each(o=>{this._processSeries(o),o.markDirtyValues()})}else throw new Error("Unknown IListEvent type")}))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}};Object.defineProperty(Jt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"});Object.defineProperty(Jt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Dt.classNames.concat([Jt.className])});var Qt=class extends Pt{};Object.defineProperty(Qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"});Object.defineProperty(Qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pt.classNames.concat([Qt.className])});var te=class extends U{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);let t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",T.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);let i=this.getPrivate("numColors"),n=0,s=this.get("passOptions"),r=this.get("reuse");for(let o=n;o<i;o++)if(r)e.push(e[o]);else{let h=e[o].toHSL(),l=h.h+(s.hue||0)*t;for(;l>1;)l-=1;let u=h.s+(s.saturation||0)*t;u>1&&(u=1),u<0&&(u=0);let f=h.l+(s.lightness||0)*t;for(;f>1;)f-=1;e.push(T.fromHSL(l,u,f))}}getIndex(t){let e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):i!=null?T.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}};Object.defineProperty(te,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"});Object.defineProperty(te,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([te.className])});function v(a,t,e,i){a.set(t,e.get(i)),e.on(i,n=>{a.set(t,n)})}var Ei=class extends Oi{setupDefaultRules(){super.setupDefaultRules();let t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,n=this._root.verticalLayout,s=this.rule.bind(this);s("InterfaceColors").setAll({stroke:T.fromHex(15066597),fill:T.fromHex(15987699),primaryButton:T.fromHex(6788316),primaryButtonHover:T.fromHex(6779356),primaryButtonDown:T.fromHex(6872182),primaryButtonActive:T.fromHex(6872182),primaryButtonDisabled:T.fromHex(14342874),primaryButtonTextDisabled:T.fromHex(16777215),primaryButtonText:T.fromHex(16777215),primaryButtonStroke:T.fromHex(16777215),secondaryButton:T.fromHex(14277081),secondaryButtonHover:T.fromHex(10724259),secondaryButtonDown:T.fromHex(9276813),secondaryButtonActive:T.fromHex(15132390),secondaryButtonText:T.fromHex(0),secondaryButtonStroke:T.fromHex(16777215),grid:T.fromHex(0),background:T.fromHex(16777215),alternativeBackground:T.fromHex(0),text:T.fromHex(0),alternativeText:T.fromHex(16777215),disabled:T.fromHex(11382189),positive:T.fromHex(5288704),negative:T.fromHex(11730944)});{let r=s("ColorSet");r.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[T.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),r.setPrivate("currentStep",0),r.setPrivate("currentPass",0)}s("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:gt(st)}),s("Component").setAll({interpolationDuration:0,interpolationEasing:gt(st)}),s("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:k,tooltipY:k,tooltipPosition:"fixed",isMeasured:!0}),s("Sprite").states.create("default",{visible:!0,opacity:1}),s("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),s("Graphics").setAll({strokeWidth:1}),s("Chart").setAll({width:C,height:C,interactiveChildren:!1}),s("ZoomableContainer").setAll({width:C,height:C,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:gt(st),animationDuration:600,maxPanOut:.4}),s("Sprite",["horizontal","center"]).setAll({centerX:k,x:k}),s("Sprite",["vertical","center"]).setAll({centerY:k,y:k}),s("Container",["horizontal","layout"]).setAll({layout:i}),s("Container",["vertical","layout"]).setAll({layout:n}),s("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),s("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),s("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),s("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),s("GrainPattern").setAll({width:200,height:200,colors:[T.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{let r=s("PatternSet");r.setAll({step:1}),v(r,"color",e,"stroke")}s("LinearGradient").setAll({rotation:90}),s("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:rt.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),s("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{let r=s("Rectangle",["legend","item","background"]);r.setAll({fillOpacity:0}),v(r,"fill",e,"background")}s("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:k,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),s("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:C,height:C,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{let r=s("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});v(r,"fill",e,"disabled"),v(r,"stroke",e,"disabled")}s("Label",["legend","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{let r=s("Label",["legend","label"]).states.create("disabled",{});v(r,"fill",e,"disabled")}s("Label",["legend","value","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:C,populateText:!0});{let r=s("Label",["legend","value","label"]).states.create("disabled",{});v(r,"fill",e,"disabled")}s("HeatLegend").setAll({stepCount:1}),s("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),s("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:C,width:15}),s("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:C,height:15}),s("HeatLegend",["vertical"]).setAll({height:C}),s("HeatLegend",["horizontal"]).setAll({width:C}),s("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),s("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{let r=s("Label");r.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),v(r,"fill",e,"text")}s("RadialLabel").setAll({textType:"regular",centerY:k,centerX:k,inside:!1,radius:0,baseRadius:C,orientation:"auto",textAlign:"center"}),s("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),s("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:T.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:T.fromHex(0)}),s("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),s("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),s("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),s("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{let r=s("Tick");r.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),v(r,"stroke",e,"grid")}s("Bullet").setAll({locationX:.5,locationY:.5}),s("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:k,centerY:k,animationEasing:gt(st),exportable:!1}),s("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{let r=s("PointedRectangle",["tooltip","system","background"]);r.setAll({strokeOpacity:.3}),v(r,"fill",e,"background"),v(r,"stroke",e,"grid")}s("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),s("Polygon").setAll({animationEasing:gt(st)}),s("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{let r=s("OrthogonalLine",["link","line"]);r.setAll({isMeasured:!1,crisp:!0});let o=r.states.create("active",{strokeWidth:2});v(o,"stroke",e,"negative")}s("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{let r=s("OrthogonalLine");r.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),v(r,"stroke",e,"grid")}{let r=s("Triangle",["link"]);r.setAll({width:14,height:10,centerY:0}),v(r,"fill",e,"grid"),v(r,"stroke",e,"grid"),r.states.create("default",{stateAnimationDuration:0});let o=r.states.create("active",{stateAnimationDuration:0,stroke:Pi(16777215),strokeWidth:2});o.set("draw",h=>{h.arc(0,0,11,0,Math.PI*2),h.moveTo(-4,-4),h.lineTo(4,4),h.moveTo(4,-4),h.lineTo(-4,4)}),v(o,"fill",e,"negative")}s("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:T.fromHex(16777215)});{let r=s("Label",["tooltip"]);r.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),v(r,"fill",e,"alternativeText")}s("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),s("Button").states.create("hover",{}),s("Button").states.create("down",{stateAnimationDuration:0}),s("Button").states.create("active",{}),s("Button").states.create("disabled",{forceInactive:!0});{let r=s("RoundedRectangle",["button","background"]);v(r,"fill",e,"primaryButton"),v(r,"stroke",e,"primaryButtonStroke")}{let r=s("RoundedRectangle",["button","background"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"primaryButtonDown")}{let r=s("RoundedRectangle",["button","background"]).states.create("active",{});v(r,"fill",e,"primaryButtonActive")}{let r=s("RoundedRectangle",["button","background"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonDisabled")}{let r=s("Graphics",["button","icon"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Label",["button"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Graphics",["button","icon"]);r.setAll({forceInactive:!0}),v(r,"stroke",e,"primaryButtonText")}{let r=s("Label",["button"]);v(r,"fill",e,"primaryButtonText")}s("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:K.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})});{let r=s("RoundedRectangle",["button","background","confirm"]).states.create("active",{});v(r,"fill",e,"negative")}s("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),s("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),s("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{let r=s("Graphics",["icon","confirm","button"]);r.setAll({stateAnimationDuration:0}),r.states.create("default",{stateAnimationDuration:0}),v(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2});v(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button","secondary"]).states.create("active",{});v(r,"stroke",e,"primaryButtonText")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1});v(r,"fill",e,"negative")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1});v(r,"fill",e,"negative")}s("Button",["button","confirm"]).states.create("hoverActive",{}),s("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:C,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{let r=s("RoundedRectangle",["background","button","zoom"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),v(r,"fill",e,"primaryButton")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"primaryButtonDown")}{let r=s("Graphics",["icon","button","zoom"]);r.setAll({crisp:!0,strokeOpacity:.7,draw:o=>{o.moveTo(0,0),o.lineTo(12,0)}}),v(r,"stroke",e,"primaryButtonText")}s("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:k,centerY:k,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{let r=s("RoundedRectangle",["background","resize","button"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),v(r,"fill",e,"secondaryButton"),v(r,"stroke",e,"secondaryButtonStroke")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"secondaryButtonDown")}{let r=s("Graphics",["resize","button","icon"]);r.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:o=>{o.moveTo(0,.5),o.lineTo(0,12.5),o.moveTo(4,.5),o.lineTo(4,12.5)}}),v(r,"stroke",e,"secondaryButtonText")}s("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),s("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),s("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{let r=s("RoundedRectangle",["play","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),v(r,"fill",e,"primaryButton")}{let r=s("Graphics",["play","icon"]);r.setAll({stateAnimationDuration:0,dx:1,draw:o=>{o.moveTo(0,-5),o.lineTo(8,0),o.lineTo(0,5),o.lineTo(0,-5)}}),v(r,"fill",e,"primaryButtonText")}s("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),s("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:r=>{r.moveTo(-4,-5),r.lineTo(-1,-5),r.lineTo(-1,5),r.lineTo(-4,5),r.lineTo(-4,-5),r.moveTo(4,-5),r.lineTo(1,-5),r.lineTo(1,5),r.lineTo(4,5),r.lineTo(4,-5)}}),s("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{let r=s("RoundedRectangle",["switch","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["switch","icon"]);r.setAll({radius:8,centerY:0,centerX:0,dx:0}),v(r,"fill",e,"primaryButtonText")}s("Graphics",["switch","icon"]).states.create("active",{dx:16}),s("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:gt(st)}),s("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:C}),s("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:C}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{let r=s("RoundedRectangle",["scrollbar","main","background"]);r.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),v(r,"fill",e,"fill")}{let r=s("RoundedRectangle",["scrollbar","thumb"]);r.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),v(r,"fill",e,"secondaryButton")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"secondaryButtonDown")}s("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:k,width:C,centerX:k,ariaLabel:t.translate("Use up and down arrows to move selection")}),s("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:k,centerY:k,height:C,ariaLabel:t.translate("Use left and right arrows to move selection")});{let r=s("PointedRectangle",["axis","tooltip","background"]);r.setAll({cornerRadius:0}),v(r,"fill",e,"alternativeBackground")}s("Label",["axis","tooltip"]).setAll({role:void 0}),s("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),s("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),s("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),s("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),s("Star").setAll({spikes:5,innerRadius:5,radius:10}),s("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),s("Tooltip",["indicator"]).setAll({forceHidden:!0}),s("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),s("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),s("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),s("Container",["resizer","grip"]).states.create("hover",{});{let r=s("RoundedRectangle",["resizer","grip"]);r.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),v(r,"fill",e,"background"),v(r,"stroke",e,"alternativeBackground")}{let r=s("RoundedRectangle",["resizer","grip","outline"]);r.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),r.states.create("hover",{fillOpacity:.3}),v(r,"fill",e,"alternativeBackground")}s("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),s("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{let r=s("Rectangle",["resizer","rectangle"]);r.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),v(r,"stroke",e,"alternativeBackground")}s("Graphics",["button","plus","icon"]).setAll({x:k,y:k,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0),r.moveTo(0,-4),r.lineTo(0,4)}}),s("Graphics",["button","minus","icon"]).setAll({x:k,y:k,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0)}}),s("Graphics",["button","home","icon"]).setAll({x:k,y:k,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),s("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),s("ZoomTools").setAll({x:C,centerX:C,y:C,centerY:C,paddingRight:10,paddingBottom:10}),s("ProgressPie").setAll({radius:C,width:50,height:50,centerX:ae(-50),centerY:ae(-50),innerRadius:ae(85),numberFormat:"#."});{let r=s("Label",["progresspie"]);r.setAll({centerX:k,centerY:k,fontSize:"0.75em"}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["progresspie"]);r.setAll({fillOpacity:.5}),v(r,"fill",e,"background")}{let r=s("Slice",["progresspie"]);r.setAll({startAngle:-90}),v(r,"fill",e,"primaryButton")}{let r=s("Slice",["progresspie","background"]);r.setAll({fillOpacity:.2,arc:360}),v(r,"fill",e,"primaryButton")}s("EditableLabel",["numericstepper"]).setAll({y:k,centerY:k,multiLine:!1,marginRight:2});{let r=s("Container",["numericstepper","buttons"]);r.setAll({layout:this._root.verticalLayout,centerY:k,y:k,marginRight:10,opacity:0}),r.states.create("active",{opacity:1}),r.states.create("default",{opacity:0})}{let r=s("Triangle",["numericstepper"]);r.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),v(r,"fill",e,"secondaryButton")}s("Triangle",["downbutton"]).setAll({rotation:180})}};function S(a){return function(){return a}}var si=Math.abs,F=Math.atan2,Tt=Math.cos,Hi=Math.max,Pe=Math.min,it=Math.sin,jt=Math.sqrt,W=1e-12,Ut=Math.PI,ee=Ut/2,Ni=2*Ut;function Fi(a){return a>1?0:a<-1?Ut:Math.acos(a)}function ri(a){return a>=1?ee:a<=-1?-ee:Math.asin(a)}var ai=Math.PI,ni=2*ai,Lt=1e-6,Hs=ni-Lt;function Ui(a){this._+=a[0];for(let t=1,e=a.length;t<e;++t)this._+=arguments[t]+a[t]}function Ns(a){let t=Math.floor(a);if(!(t>=0))throw new Error(`invalid digits: ${a}`);if(t>15)return Ui;let e=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*e)/e+i[n]}}var Mt=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ui:Ns(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,n){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,e,i,n,s,r){this._append`C${+t},${+e},${+i},${+n},${this._x1=+s},${this._y1=+r}`}arcTo(t,e,i,n,s){if(t=+t,e=+e,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let r=this._x1,o=this._y1,h=i-t,l=n-e,u=r-t,f=o-e,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Lt)if(!(Math.abs(f*h-l*u)>Lt)||!s)this._append`L${this._x1=t},${this._y1=e}`;else{let p=i-r,m=n-o,g=h*h+l*l,x=p*p+m*m,b=Math.sqrt(g),c=Math.sqrt(d),w=s*Math.tan((ai-Math.acos((g+d-x)/(2*b*c)))/2),O=w/c,A=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*u},${e+O*f}`,this._append`A${s},${s},0,0,${+(f*p>u*m)},${this._x1=t+A*h},${this._y1=e+A*l}`}}arc(t,e,i,n,s,r){if(t=+t,e=+e,i=+i,r=!!r,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),h=i*Math.sin(n),l=t+o,u=e+h,f=1^r,d=r?n-s:s-n;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Lt||Math.abs(this._y1-u)>Lt)&&this._append`L${l},${u}`,i&&(d<0&&(d=d%ni+ni),d>Hs?this._append`A${i},${i},0,1,${f},${t-o},${e-h}A${i},${i},0,1,${f},${this._x1=l},${this._y1=u}`:d>Lt&&this._append`A${i},${i},0,${+(d>=ai)},${f},${this._x1=t+i*Math.cos(s)},${this._y1=e+i*Math.sin(s)}`)}rect(t,e,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function Wi(){return new Mt}Wi.prototype=Mt.prototype;function Wt(a){let t=3;return a.digits=function(e){if(!arguments.length)return t;if(e==null)t=null;else{let i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);t=i}return a},()=>new Mt(t)}function Fs(a){return a.innerRadius}function Us(a){return a.outerRadius}function Ws(a){return a.startAngle}function Vs(a){return a.endAngle}function zs(a){return a&&a.padAngle}function Gs(a,t,e,i,n,s,r,o){var h=e-a,l=i-t,u=r-n,f=o-s,d=f*h-u*l;if(!(d*d<W))return d=(u*(t-s)-f*(a-n))/d,[a+d*h,t+d*l]}function De(a,t,e,i,n,s,r){var o=a-e,h=t-i,l=(r?s:-s)/jt(o*o+h*h),u=l*h,f=-l*o,d=a+u,p=t+f,m=e+u,g=i+f,x=(d+m)/2,b=(p+g)/2,c=m-d,w=g-p,O=c*c+w*w,A=n-s,M=d*g-m*p,V=(w<0?-1:1)*jt(Hi(0,A*A*O-M*M)),E=(M*w-c*V)/O,B=(-M*c-w*V)/O,L=(M*w+c*V)/O,I=(-M*c+w*V)/O,H=E-x,_=B-b,P=L-x,R=I-b;return H*H+_*_>P*P+R*R&&(E=L,B=I),{cx:E,cy:B,x01:-u,y01:-f,x11:E*(n/A-1),y11:B*(n/A-1)}}function Ks(){var a=Fs,t=Us,e=S(0),i=null,n=Ws,s=Vs,r=zs,o=null,h=Wt(l);function l(){var u,f,d=+a.apply(this,arguments),p=+t.apply(this,arguments),m=n.apply(this,arguments)-ee,g=s.apply(this,arguments)-ee,x=si(g-m),b=g>m;if(o||(o=u=h()),p<d&&(f=p,p=d,d=f),!(p>W))o.moveTo(0,0);else if(x>Ni-W)o.moveTo(p*Tt(m),p*it(m)),o.arc(0,0,p,m,g,!b),d>W&&(o.moveTo(d*Tt(g),d*it(g)),o.arc(0,0,d,g,m,b));else{var c=m,w=g,O=m,A=g,M=x,V=x,E=r.apply(this,arguments)/2,B=E>W&&(i?+i.apply(this,arguments):jt(d*d+p*p)),L=Pe(si(p-d)/2,+e.apply(this,arguments)),I=L,H=L,_,P;if(B>W){var R=ri(B/d*it(E)),kt=ri(B/p*it(E));(M-=R*2)>W?(R*=b?1:-1,O+=R,A-=R):(M=0,O=A=(m+g)/2),(V-=kt*2)>W?(kt*=b?1:-1,c+=kt,w-=kt):(V=0,c=w=(m+g)/2)}var nt=p*Tt(c),ot=p*it(c),Ot=d*Tt(A),ie=d*it(A);if(L>W){var se=p*Tt(w),re=p*it(w),Re=d*Tt(O),Se=d*it(O),lt;if(x<Ut)if(lt=Gs(nt,ot,Re,Se,se,re,Ot,ie)){var $e=nt-lt[0],Ae=ot-lt[1],Be=se-lt[0],Ie=re-lt[1],li=1/it(Fi(($e*Be+Ae*Ie)/(jt($e*$e+Ae*Ae)*jt(Be*Be+Ie*Ie)))/2),hi=jt(lt[0]*lt[0]+lt[1]*lt[1]);I=Pe(L,(d-hi)/(li-1)),H=Pe(L,(p-hi)/(li+1))}else I=H=0}V>W?H>W?(_=De(Re,Se,nt,ot,p,H,b),P=De(se,re,Ot,ie,p,H,b),o.moveTo(_.cx+_.x01,_.cy+_.y01),H<L?o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,p,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),!b),o.arc(P.cx,P.cy,H,F(P.y11,P.x11),F(P.y01,P.x01),!b))):(o.moveTo(nt,ot),o.arc(0,0,p,c,w,!b)):o.moveTo(nt,ot),!(d>W)||!(M>W)?o.lineTo(Ot,ie):I>W?(_=De(Ot,ie,se,re,d,-I,b),P=De(nt,ot,Re,Se,d,-I,b),o.lineTo(_.cx+_.x01,_.cy+_.y01),I<L?o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,d,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),b),o.arc(P.cx,P.cy,I,F(P.y11,P.x11),F(P.y01,P.x01),!b))):o.arc(0,0,d,A,O,b)}if(o.closePath(),u)return o=null,u+""||null}return l.centroid=function(){var u=(+a.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Ut/2;return[Tt(f)*u,it(f)*u]},l.innerRadius=function(u){return arguments.length?(a=typeof u=="function"?u:S(+u),l):a},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:S(+u),l):t},l.cornerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:S(+u),l):e},l.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:S(+u),l):i},l.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:S(+u),l):n},l.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:S(+u),l):s},l.padAngle=function(u){return arguments.length?(r=typeof u=="function"?u:S(+u),l):r},l.context=function(u){return arguments.length?(o=u??null,l):o},l}var mn=Array.prototype.slice;function Te(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function Vi(a){this._context=a}Vi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:this._context.lineTo(a,t);break}}};function ke(a){return new Vi(a)}function Oe(a){return a[0]}function Ce(a){return a[1]}function oi(a,t){var e=S(!0),i=null,n=ke,s=null,r=Wt(o);a=typeof a=="function"?a:a===void 0?Oe:S(a),t=typeof t=="function"?t:t===void 0?Ce:S(t);function o(h){var l,u=(h=Te(h)).length,f,d=!1,p;for(i==null&&(s=n(p=r())),l=0;l<=u;++l)!(l<u&&e(f=h[l],l,h))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+a(f,l,h),+t(f,l,h));if(p)return s=null,p+""||null}return o.x=function(h){return arguments.length?(a=typeof h=="function"?h:S(+h),o):a},o.y=function(h){return arguments.length?(t=typeof h=="function"?h:S(+h),o):t},o.defined=function(h){return arguments.length?(e=typeof h=="function"?h:S(!!h),o):e},o.curve=function(h){return arguments.length?(n=h,i!=null&&(s=n(i)),o):n},o.context=function(h){return arguments.length?(h==null?i=s=null:s=n(i=h),o):i},o}function Ys(a,t,e){var i=null,n=S(!0),s=null,r=ke,o=null,h=Wt(l);a=typeof a=="function"?a:a===void 0?Oe:S(+a),t=typeof t=="function"?t:t===void 0?S(0):S(+t),e=typeof e=="function"?e:e===void 0?Ce:S(+e);function l(f){var d,p,m,g=(f=Te(f)).length,x,b=!1,c,w=new Array(g),O=new Array(g);for(s==null&&(o=r(c=h())),d=0;d<=g;++d){if(!(d<g&&n(x=f[d],d,f))===b)if(b=!b)p=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=d-1;m>=p;--m)o.point(w[m],O[m]);o.lineEnd(),o.areaEnd()}b&&(w[d]=+a(x,d,f),O[d]=+t(x,d,f),o.point(i?+i(x,d,f):w[d],e?+e(x,d,f):O[d]))}if(c)return o=null,c+""||null}function u(){return oi().defined(n).curve(r).context(s)}return l.x=function(f){return arguments.length?(a=typeof f=="function"?f:S(+f),i=null,l):a},l.x0=function(f){return arguments.length?(a=typeof f=="function"?f:S(+f),l):a},l.x1=function(f){return arguments.length?(i=f==null?null:typeof f=="function"?f:S(+f),l):i},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:S(+f),e=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:S(+f),l):t},l.y1=function(f){return arguments.length?(e=f==null?null:typeof f=="function"?f:S(+f),l):e},l.lineX0=l.lineY0=function(){return u().x(a).y(t)},l.lineY1=function(){return u().x(a).y(e)},l.lineX1=function(){return u().x(i).y(t)},l.defined=function(f){return arguments.length?(n=typeof f=="function"?f:S(!!f),l):n},l.curve=function(f){return arguments.length?(r=f,s!=null&&(o=r(s)),l):r},l.context=function(f){return arguments.length?(f==null?s=o=null:o=r(s=f),l):s},l}function zi(a,t,e){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-t),a._y2+a._k*(a._y1-e),a._x2,a._y2)}function Gi(a,t){this._context=a,this._k=(1-t)/6}Gi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2,this._x1=a,this._y1=t;break;case 2:this._point=3;default:zi(this,a,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xs=(function a(t){function e(i){return new Gi(i,t)}return e.tension=function(i){return a(+i)},e})(0);function Ki(a,t){this._context=a,this._t=t}Ki.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(a,t);else{var e=this._x*(1-this._t)+a*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,t)}break}}this._x=a,this._y=t}};function Zs(a){return new Ki(a,1)}export{ht as a,Gt as b,Ci as c,St as d,de as e,Yi as f,Xi as g,ce as h,ut as i,Ji as j,dt as k,mt as l,Qi as m,ts as n,is as o,as as p,Et as q,ge as r,$t as s,tr as t,er as u,ir as v,U as w,N as x,_t as y,bt as z,ye as A,Cr as B,tt as C,yt as D,z as E,vt as F,xt as G,rt as H,Nt as I,Ft as J,j as K,at as L,K as M,v as N,Ei as O,xe as P,$i as Q,Xt as R,wt as S,Ai as T,et as U,Bi as V,$s as W,ji as X,js as Y,Bt as Z,Li as _,Ls as $,Mi as aa,Zt as ba,Pt as ca,It as da,qt as ea,Ks as fa,oi as ga,Ys as ha,Xs as ia,Zs as ja,Dt as ka,Jt as la,Qt as ma,te as na};
|