@arcgis/map-components 5.0.0-next.136 → 5.0.0-next.138
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/{H3UNNZOF.js → 2IYQCDBU.js} +2 -2
- package/dist/cdn/{RJHXVS4X.js → 2JFWZM7Z.js} +2 -2
- package/dist/cdn/{V2BIP73K.js → 2LMBNJ75.js} +2 -2
- package/dist/cdn/{XH6CAETA.js → 2P7HJH56.js} +2 -2
- package/dist/cdn/2XRFRDXB.js +4 -0
- package/dist/cdn/{SEVVMTZA.js → 2XW3YWSQ.js} +1 -1
- package/dist/cdn/{KPASTANZ.js → 2Y32FOSG.js} +2 -2
- package/dist/cdn/2ZCUSMGB.js +4 -0
- package/dist/cdn/{X3PD54LT.js → 34JJHVMJ.js} +2 -2
- package/dist/cdn/{LUM6VR37.js → 3AK57VER.js} +2 -2
- package/dist/cdn/3BKHRH6X.js +4 -0
- package/dist/cdn/{HFVSNY3R.js → 3BLDSTNB.js} +2 -2
- package/dist/cdn/{RANVOBIM.js → 3CDPNWSV.js} +2 -2
- package/dist/cdn/{4EHQGQYS.js → 3MTB2ATG.js} +1 -1
- package/dist/cdn/{R7LFYC6M.js → 3QAOC6Q4.js} +2 -2
- package/dist/cdn/{A5AMV4UE.js → 3RCBB4YE.js} +2 -2
- package/dist/cdn/{OQTJT4VM.js → 3U4VUYFA.js} +2 -2
- package/dist/cdn/{3DRQSR7L.js → 3UZYHJ5Z.js} +2 -2
- package/dist/cdn/{BXADL2C3.js → 3ZPNS7FZ.js} +2 -2
- package/dist/cdn/{546X4B5W.js → 43Y3AWMY.js} +2 -2
- package/dist/cdn/{W3W6LNI2.js → 4JC3W4F2.js} +2 -2
- package/dist/cdn/{TKGAQAL4.js → 4M3HXG6P.js} +2 -2
- package/dist/cdn/{KKMDQ5KQ.js → 4R25XPOT.js} +2 -2
- package/dist/cdn/{VDF7OXNN.js → 4VWBJK73.js} +2 -2
- package/dist/cdn/{2AHYL6YF.js → 53QVXNLQ.js} +2 -2
- package/dist/cdn/{YZM6UNMI.js → 5744PB3X.js} +2 -2
- package/dist/cdn/{E3GKFDE6.js → 5AYUGPSJ.js} +2 -2
- package/dist/cdn/5JBEK2WA.js +4 -0
- package/dist/cdn/{GVCHXKG4.js → 5LTXASJW.js} +1 -1
- package/dist/cdn/{LHZGS7WL.js → 5PWJA34H.js} +2 -2
- package/dist/cdn/{RXGM45FQ.js → 5ULLP64H.js} +2 -2
- package/dist/cdn/{NPRMV7V3.js → 5WFMYGRG.js} +2 -2
- package/dist/cdn/{H37SS4YN.js → 5WTHWSUH.js} +2 -2
- package/dist/cdn/5ZTS5UBH.js +10 -0
- package/dist/cdn/{NNR7VPGO.js → 67OSBLYQ.js} +2 -2
- package/dist/cdn/6HFFAN4S.js +6 -0
- package/dist/cdn/6JUVKJD6.js +6 -0
- package/dist/cdn/{FK5IBX4U.js → 6KTJRHMM.js} +2 -2
- package/dist/cdn/{NEFGB2DD.js → 6M6Y5DFN.js} +2 -2
- package/dist/cdn/{OASBMBLA.js → 6O3OL44D.js} +1 -1
- package/dist/cdn/{FDQAZVWL.js → 6PNQT7BD.js} +2 -2
- package/dist/cdn/73O2372K.js +4 -0
- package/dist/cdn/{HV2N3H4C.js → 73YKZIHF.js} +2 -2
- package/dist/cdn/7DOWPUZ5.js +4 -0
- package/dist/cdn/7QQAN55C.js +4 -0
- package/dist/cdn/{GTMWGHJE.js → A2LPA7NM.js} +2 -2
- package/dist/cdn/{SXMUYC7L.js → ACBNTTLN.js} +2 -2
- package/dist/cdn/{ZJ4QVHUX.js → AMLJ62ZD.js} +2 -2
- package/dist/cdn/{M4PUJC6W.js → AOWWXJWB.js} +2 -2
- package/dist/cdn/{WH5CKH3E.js → ARDBL7A4.js} +2 -2
- package/dist/cdn/{ANFDUBRV.js → ASXUOLRO.js} +2 -2
- package/dist/cdn/{LJIC7WY5.js → B3IKOSGU.js} +2 -2
- package/dist/cdn/{4ZNRDOR6.js → B6R2GAP4.js} +2 -2
- package/dist/cdn/{E6HLYTEE.js → B746M4QX.js} +2 -2
- package/dist/cdn/{SXZ2V3SE.js → BEXQ7SXG.js} +2 -2
- package/dist/cdn/{HVW7Q3HP.js → BFHKTM5V.js} +2 -2
- package/dist/cdn/{EEMGRZMQ.js → BG4P5RS3.js} +2 -2
- package/dist/cdn/{IPGM5OA7.js → BIXR7UEJ.js} +2 -2
- package/dist/cdn/BLXSWBKB.js +4 -0
- package/dist/cdn/{UY5O4Y5C.js → BSIF6QE6.js} +2 -2
- package/dist/cdn/{E3RNYGGL.js → BUNX7E7Q.js} +2 -2
- package/dist/cdn/{S4CHQOGH.js → BXGZ5X4A.js} +2 -2
- package/dist/cdn/{XMSWO7JT.js → BZSTP65L.js} +2 -2
- package/dist/cdn/{2UDZPN3B.js → BZTRTSU6.js} +2 -2
- package/dist/cdn/{ASYJTYGA.js → C2YT3KUI.js} +2 -2
- package/dist/cdn/{A7273GVR.js → CBI5KR7Z.js} +2 -2
- package/dist/cdn/{A6QAMX2F.js → CMVCQFCG.js} +2 -2
- package/dist/cdn/{TTXWGST4.js → COB4LOFR.js} +2 -2
- package/dist/cdn/{U5JQ5GWG.js → CPYPEGUY.js} +2 -2
- package/dist/cdn/{6EDK5KNJ.js → CRKR6TP6.js} +2 -2
- package/dist/cdn/{W7BZJD5G.js → CTPT5XNX.js} +2 -2
- package/dist/cdn/{FU4V7QLJ.js → CYXDALVG.js} +2 -2
- package/dist/cdn/{MRXULOZ3.js → D575L4PN.js} +2 -2
- package/dist/cdn/{MIEQTHQH.js → D5SYAFCN.js} +2 -2
- package/dist/cdn/D6UOJXXF.js +4 -0
- package/dist/cdn/{U4TW7H4K.js → DCPT3TCE.js} +2 -2
- package/dist/cdn/{B4MVGSSJ.js → DDXFWVBY.js} +1 -1
- package/dist/cdn/{X4AVPKI4.js → DNEZLUK4.js} +1 -1
- package/dist/cdn/{DUSH4FKO.js → DSK2YNJY.js} +2 -2
- package/dist/cdn/{ZS5DT6TS.js → DTCYQTTW.js} +2 -2
- package/dist/cdn/{5HYMQT6J.js → E2HMTRJ4.js} +2 -2
- package/dist/cdn/{JK77V5W5.js → E3UNTID4.js} +2 -2
- package/dist/cdn/EA6UEFTJ.js +4 -0
- package/dist/cdn/EF6PKUI6.js +4 -0
- package/dist/cdn/{6QQ47I56.js → ELSQNNWO.js} +2 -2
- package/dist/cdn/{2NSBSUPE.js → ESXKITWY.js} +2 -2
- package/dist/cdn/{62O2WJE5.js → F5HSL4VR.js} +2 -2
- package/dist/cdn/{75KIC5KY.js → FADEGQVH.js} +2 -2
- package/dist/cdn/{RW4VMA4Z.js → FDQEVLFZ.js} +2 -2
- package/dist/cdn/{EBJWOUTZ.js → FIBZTTWB.js} +2 -2
- package/dist/cdn/{YSHN4YVZ.js → FVORTTMP.js} +2 -2
- package/dist/cdn/{TTVLOIXC.js → G4SMMKLD.js} +2 -2
- package/dist/cdn/G4Z2J53Q.js +4 -0
- package/dist/cdn/{XBLPGP6W.js → GJKSQN7C.js} +2 -2
- package/dist/cdn/{JLFR5ZND.js → GNJWDVLF.js} +2 -2
- package/dist/cdn/{5ZRYOXV4.js → GW5ZO37A.js} +2 -2
- package/dist/cdn/{BMMD7IUA.js → GXVOUHHV.js} +2 -2
- package/dist/cdn/{66MCQZHQ.js → H5H5RV5H.js} +2 -2
- package/dist/cdn/{TXVAPCGX.js → H7KACH6T.js} +2 -2
- package/dist/cdn/{MWRQZKZ3.js → HCLAFE3H.js} +2 -2
- package/dist/cdn/HDU5KHWW.js +4 -0
- package/dist/cdn/{QNZ6OJOC.js → HILLF3AU.js} +1 -1
- package/dist/cdn/{L7DSGQD5.js → HKMLSFQ2.js} +2 -2
- package/dist/cdn/{R3OYHWJ2.js → HLVUH5YZ.js} +2 -2
- package/dist/cdn/{VNWADC4I.js → HPX2LLO2.js} +2 -2
- package/dist/cdn/{NWSPSV6Q.js → HQWGBXUD.js} +2 -2
- package/dist/cdn/{TSQ6JRLF.js → HVCDD2GB.js} +2 -2
- package/dist/cdn/{2L3KC36B.js → HWAUOGP4.js} +2 -2
- package/dist/cdn/{6LGZH44P.js → IAILCA7B.js} +2 -2
- package/dist/cdn/IKBOIROE.js +4 -0
- package/dist/cdn/{PSVUSXM2.js → ILLMGVLA.js} +2 -2
- package/dist/cdn/{BQ54MPIL.js → INCT6Q5T.js} +2 -2
- package/dist/cdn/{ZGO4FKJR.js → IOW72ZBU.js} +2 -2
- package/dist/cdn/{HY7P367U.js → IRUECTJD.js} +1 -1
- package/dist/cdn/{L76XCVDP.js → IU22PCB4.js} +2 -2
- package/dist/cdn/{FNUNSW4S.js → IUU34IL6.js} +2 -2
- package/dist/cdn/{3CUPGCWF.js → J43FSRND.js} +2 -2
- package/dist/cdn/{OW5XWFPT.js → J67KFMEW.js} +2 -2
- package/dist/cdn/{7YOTPIAY.js → JD6B4E5C.js} +2 -2
- package/dist/cdn/{QMUVCESU.js → JFQPWXCE.js} +2 -2
- package/dist/cdn/{U7XS2VBM.js → JIMONEP7.js} +2 -2
- package/dist/cdn/{43YQBH6S.js → JRCK4HR4.js} +2 -2
- package/dist/cdn/{6R5AM357.js → JXFJI4FN.js} +2 -2
- package/dist/cdn/{E4AGE74B.js → JXPSMQRG.js} +2 -2
- package/dist/cdn/{J7H7VCA5.js → K2ROOJ35.js} +2 -2
- package/dist/cdn/{X2EJMYET.js → K7LW4SQA.js} +2 -2
- package/dist/cdn/{5PFOG4A6.js → K7YVD4NT.js} +2 -2
- package/dist/cdn/{YMSNXWDM.js → KBGVX5GK.js} +2 -2
- package/dist/cdn/{YTFTM7FZ.js → KCG4J2TQ.js} +1 -1
- package/dist/cdn/{NZLQHHU6.js → KCHSBGYW.js} +2 -2
- package/dist/cdn/{E75WQYJB.js → KTFQVOEC.js} +2 -2
- package/dist/cdn/{KI4VAGTL.js → KVATA43Q.js} +2 -2
- package/dist/cdn/{3G5ZV5II.js → KY4NEPR2.js} +1 -1
- package/dist/cdn/{66ROMONW.js → KZOX6OFS.js} +2 -2
- package/dist/cdn/{B4TIIMOH.js → L45XRGH4.js} +2 -2
- package/dist/cdn/{RFL3S7QT.js → LDN4EX7L.js} +2 -2
- package/dist/cdn/{TH7VSBUU.js → LDOILTG4.js} +2 -2
- package/dist/cdn/{XTB4UDZM.js → LGKJYV3Q.js} +2 -2
- package/dist/cdn/LHNWTUPJ.js +4 -0
- package/dist/cdn/{YJBP7OWD.js → LILBMTGB.js} +2 -2
- package/dist/cdn/{JSVJ3UJR.js → LLKLOMAG.js} +2 -2
- package/dist/cdn/{EHQDJUKM.js → LOZFXZCC.js} +2 -2
- package/dist/cdn/{DMFL4J3D.js → LS2PSO6U.js} +2 -2
- package/dist/cdn/{IMYHL37Q.js → LUF6OOUJ.js} +2 -2
- package/dist/cdn/{YHQLKLVI.js → LVPM4V4H.js} +2 -2
- package/dist/cdn/{DQWW2QJR.js → LVY2EUEI.js} +2 -2
- package/dist/cdn/{UG3KDUP4.js → M2CJTNKL.js} +2 -2
- package/dist/cdn/{Y2UI7MFA.js → M2DJBC23.js} +2 -2
- package/dist/cdn/{KEE2FR26.js → MBCPUNJP.js} +2 -2
- package/dist/cdn/{YVTOELOZ.js → MCWWDGAO.js} +2 -2
- package/dist/cdn/{GR55RV3Q.js → MEXSFFVK.js} +2 -2
- package/dist/cdn/{PUWICJ5W.js → MHUSFZDW.js} +1 -1
- package/dist/cdn/{ATT73ZTH.js → MJ3VOIM4.js} +2 -2
- package/dist/cdn/{AZJAXWTK.js → MNETYQFP.js} +2 -2
- package/dist/cdn/{3FJHDE75.js → N5XRVURR.js} +2 -2
- package/dist/cdn/{34NYDQQF.js → NI3B4Z35.js} +1 -1
- package/dist/cdn/{3WLA7SRN.js → NMM2NGWZ.js} +2 -2
- package/dist/cdn/{YAMJB4SE.js → NNQTFADP.js} +2 -2
- package/dist/cdn/{E6X7PWRA.js → NNTQEHGE.js} +2 -2
- package/dist/cdn/{RDOJCF2K.js → NPN22VLQ.js} +2 -2
- package/dist/cdn/{QFEE6RQC.js → NRQUEBT3.js} +2 -2
- package/dist/cdn/NUGWKRUU.js +4 -0
- package/dist/cdn/{IKNNVZZ7.js → NWPWPEV6.js} +2 -2
- package/dist/cdn/{OKQ7SDW6.js → NWT6KVNH.js} +2 -2
- package/dist/cdn/{MED4W6N6.js → NX6ZRAUN.js} +2 -2
- package/dist/cdn/{XWCRNRUE.js → NYGQKE7A.js} +2 -2
- package/dist/cdn/{SOPW7YHO.js → O33AMLCU.js} +2 -2
- package/dist/cdn/{X6UB44UV.js → O4VK7K53.js} +2 -2
- package/dist/cdn/{NQBZFC5B.js → OBBF2QYU.js} +2 -2
- package/dist/cdn/{TJZ3VIBQ.js → OCCPQDO6.js} +2 -2
- package/dist/cdn/{QSHNRKIO.js → ON44N3IU.js} +2 -2
- package/dist/cdn/{5KEZ46NA.js → P2DZEE5Y.js} +2 -2
- package/dist/cdn/{DGZZCLY3.js → P3RHTGU4.js} +1 -1
- package/dist/cdn/{N7EGXIMT.js → P7IZ63CV.js} +2 -2
- package/dist/cdn/{E47I4RZC.js → PMHIWFEN.js} +1 -1
- package/dist/cdn/PT2JSAAV.js +4 -0
- package/dist/cdn/{RCGFB444.js → PU64BCJS.js} +2 -2
- package/dist/cdn/{MLG4LFQZ.js → QA2RGA6O.js} +2 -2
- package/dist/cdn/{CMQPXKEX.js → QBHQKVFG.js} +2 -2
- package/dist/cdn/{ARYTJSIZ.js → QCB3BL4R.js} +2 -2
- package/dist/cdn/{XCKRJL5C.js → QD3WFPSS.js} +2 -2
- package/dist/cdn/{E2KNTTCK.js → QGROZ7BP.js} +2 -2
- package/dist/cdn/{GINRPBGM.js → QJ3O4BD5.js} +2 -2
- package/dist/cdn/{QBLYWATZ.js → QKZDUTQM.js} +2 -2
- package/dist/cdn/{4ZGGK5V5.js → QNWV257W.js} +2 -2
- package/dist/cdn/{6AAQRBY5.js → QOZDEABI.js} +2 -2
- package/dist/cdn/{KCM42IWF.js → QREDB7X2.js} +2 -2
- package/dist/cdn/{SNMYXJMM.js → R5Y4GI6C.js} +2 -2
- package/dist/cdn/{K7LWJEJ2.js → R77WSVU3.js} +2 -2
- package/dist/cdn/{4U7JYPHT.js → RCSGPIYI.js} +2 -2
- package/dist/cdn/{SEX5N5ME.js → RGT6X2UH.js} +2 -2
- package/dist/cdn/{HMH36GWO.js → RIUPILZT.js} +2 -2
- package/dist/cdn/{V43D45FM.js → RJVSNCGB.js} +2 -2
- package/dist/cdn/{7WB3JHCT.js → RKB4WJSU.js} +2 -2
- package/dist/cdn/{RK7E4Z4S.js → RKDW3BQP.js} +2 -2
- package/dist/cdn/RKHBG6FC.js +4 -0
- package/dist/cdn/{ZI3IGIGH.js → RKOWU3HA.js} +2 -2
- package/dist/cdn/{4KK2GCEK.js → RU3CPDXI.js} +2 -2
- package/dist/cdn/{W37TEKD4.js → S4FG2IL5.js} +2 -2
- package/dist/cdn/{Z4ZDMQEN.js → S4RVQKJJ.js} +2 -2
- package/dist/cdn/{NPMB46JB.js → S57CQYPI.js} +2 -2
- package/dist/cdn/{YJDJFWSZ.js → SGDNDNT5.js} +2 -2
- package/dist/cdn/{MFUYESWA.js → SKEHOARP.js} +2 -2
- package/dist/cdn/{YJMDA223.js → SLPNG7WZ.js} +2 -2
- package/dist/cdn/{JRPUYNHK.js → STVQE6SH.js} +2 -2
- package/dist/cdn/T2I3AKFP.js +4 -0
- package/dist/cdn/T4D6NIEZ.js +4 -0
- package/dist/cdn/{ACWZS37Z.js → TBVJXHKO.js} +2 -2
- package/dist/cdn/{O55Y6BUX.js → TD2ZOCO2.js} +2 -2
- package/dist/cdn/{FHTYYXUM.js → TD4GHNRZ.js} +2 -2
- package/dist/cdn/{43IHJ7TN.js → TIMSHIGK.js} +2 -2
- package/dist/cdn/{KOGGQTBX.js → TLZFRVMV.js} +2 -2
- package/dist/cdn/{NBFR5OQ3.js → TMJFKOBE.js} +2 -2
- package/dist/cdn/{N3I3I5JH.js → TPB5KBZV.js} +2 -2
- package/dist/cdn/{5H7UJEYI.js → U2W3CNBT.js} +2 -2
- package/dist/cdn/{KH46T72Q.js → U4L62A7V.js} +2 -2
- package/dist/cdn/{3S4YXQ4G.js → UBTVPMYQ.js} +2 -2
- package/dist/cdn/{7H6CT7TO.js → UDXWJE5I.js} +2 -2
- package/dist/cdn/{DY2E4AVN.js → UG453DXZ.js} +2 -2
- package/dist/cdn/{TM3OSO5Q.js → UJH4ZHP4.js} +2 -2
- package/dist/cdn/{EUNTKDVV.js → UT76T2FD.js} +2 -2
- package/dist/cdn/{GEDJ4HB5.js → UV5AWPSH.js} +2 -2
- package/dist/cdn/{V24OFPLR.js → UXWXPOR6.js} +2 -2
- package/dist/cdn/V6UKEO7V.js +4 -0
- package/dist/cdn/{FSXJGJZ4.js → VH2OBW6Z.js} +2 -2
- package/dist/cdn/{RBNZXIOL.js → VKB2U7YT.js} +2 -2
- package/dist/cdn/{73OILPWT.js → VL4W4VQS.js} +2 -2
- package/dist/cdn/{AF23SFFK.js → VMP2UJKQ.js} +2 -2
- package/dist/cdn/{TZTNOS3N.js → VN4D6MLT.js} +2 -2
- package/dist/cdn/VR6QYJYV.js +4 -0
- package/dist/cdn/{SG7GB3CT.js → VRLHFB7D.js} +2 -2
- package/dist/cdn/{B2ZJE2AM.js → VROF5RUX.js} +2 -2
- package/dist/cdn/{GCBTAT7K.js → W4AZNF37.js} +2 -2
- package/dist/cdn/{QDGBNNGC.js → WC2S4S3Z.js} +2 -2
- package/dist/cdn/{GVCMJTTL.js → WCLGR466.js} +2 -2
- package/dist/cdn/{IB2SWDBZ.js → WHJZRP46.js} +2 -2
- package/dist/cdn/{U2V7K6DR.js → WJPUUYM3.js} +2 -2
- package/dist/cdn/{ZMVI66F2.js → WM6HD5FV.js} +1 -1
- package/dist/cdn/{I634K7DM.js → X2XI5SFO.js} +2 -2
- package/dist/cdn/{R2E5H6Q7.js → XCRYEGY2.js} +2 -2
- package/dist/cdn/{QYDMS7HX.js → XMIHSWVK.js} +2 -2
- package/dist/cdn/{AIRZZREU.js → XNRW3QDZ.js} +2 -2
- package/dist/cdn/{2R24V5WO.js → YB7IPWLP.js} +2 -2
- package/dist/cdn/{AAGH7CND.js → YDDRN6RX.js} +2 -2
- package/dist/cdn/{TKXVCYSU.js → YERJ2FNM.js} +2 -2
- package/dist/cdn/{AY2T6FR3.js → YIIFFZVC.js} +2 -2
- package/dist/cdn/{C7FSQRAU.js → YL6NAPQB.js} +2 -2
- package/dist/cdn/{REDYLRAL.js → YNZA3LNC.js} +2 -2
- package/dist/cdn/{LIPLRYVY.js → YV6PQGNI.js} +1 -1
- package/dist/cdn/Z5225PIA.js +5 -0
- package/dist/cdn/{YT6Z374M.js → ZAKXOWT6.js} +2 -2
- package/dist/cdn/ZGWFK6JR.js +4 -0
- package/dist/cdn/{MQDT6RS7.js → ZIMP6JDJ.js} +2 -2
- package/dist/cdn/{SST5DDRN.js → ZLYNCDIU.js} +2 -2
- package/dist/cdn/{2ZB3CHV7.js → ZMAPKAVU.js} +2 -2
- package/dist/cdn/{JCTHD5NI.js → ZWQW6H5D.js} +2 -2
- package/dist/cdn/{TWPG2TCN.js → ZZ5N3MQH.js} +2 -2
- package/dist/cdn/assets/clipboard/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-title/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/paste/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +2 -2
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/building-layer-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +106 -0
- package/dist/chunks/component-utils.js +3 -3
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +6 -6
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +68 -77
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.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/layer-utils.js +23 -0
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +5 -5
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +6 -7
- package/dist/chunks/svgUtils.js +6 -6
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +8 -8
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.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 +85 -46
- package/dist/chunks/utils2.js +46 -85
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +152 -124
- package/dist/components/arcgis-area-measurement-2d/customElement.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/index.d.ts +0 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +142 -123
- package/dist/components/arcgis-area-measurement-3d/customElement.js +3 -3
- package/dist/components/arcgis-area-measurement-3d/index.d.ts +0 -3
- package/dist/components/arcgis-attachments/customElement.d.ts +148 -175
- package/dist/components/arcgis-attachments/customElement.js +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +148 -144
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/index.d.ts +0 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +387 -407
- package/dist/components/arcgis-basemap-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +85 -85
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/index.d.ts +0 -3
- package/dist/components/arcgis-bookmarks/BookmarksViewModel.d.ts +92 -103
- package/dist/components/arcgis-bookmarks/customElement.d.ts +418 -331
- package/dist/components/arcgis-bookmarks/customElement.js +2 -2
- package/dist/components/arcgis-bookmarks/index.d.ts +0 -21
- package/dist/components/arcgis-bookmarks/types.d.ts +58 -70
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +235 -182
- package/dist/components/arcgis-building-explorer/customElement.js +2 -2
- package/dist/components/arcgis-building-explorer/index.d.ts +0 -4
- package/dist/components/arcgis-building-level-item/customElement.d.ts +21 -22
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.js +2 -2
- package/dist/components/arcgis-building-phase-picker/customElement.js +2 -2
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +291 -311
- package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-clipboard/customElement.d.ts +50 -0
- package/dist/components/arcgis-clipboard/customElement.js +74 -0
- package/dist/components/{arcgis-layer-list-item/index.d.ts → arcgis-clipboard/index.js} +5 -6
- package/dist/components/arcgis-color-select/customElement.d.ts +29 -21
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-color-select/index.d.ts +0 -4
- package/dist/components/arcgis-compass/customElement.d.ts +106 -105
- package/dist/components/arcgis-compass/customElement.js +2 -2
- package/dist/components/arcgis-compass/index.d.ts +0 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +349 -286
- package/dist/components/arcgis-coordinate-conversion/customElement.js +2 -2
- package/dist/components/arcgis-coordinate-conversion/index.d.ts +0 -7
- package/dist/components/arcgis-coordinate-conversion/types.d.ts +2 -20
- package/dist/components/arcgis-daylight/customElement.d.ts +229 -193
- package/dist/components/arcgis-daylight/customElement.js +2 -2
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +7 -27
- package/dist/components/arcgis-daylight/index.d.ts +0 -9
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +146 -123
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +3 -3
- package/dist/components/arcgis-direct-line-measurement-3d/index.d.ts +0 -3
- package/dist/components/arcgis-directional-pad/customElement.d.ts +134 -124
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/index.d.ts +0 -5
- package/dist/components/arcgis-directions/customElement.d.ts +202 -264
- package/dist/components/arcgis-directions/customElement.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +149 -123
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +3 -3
- package/dist/components/arcgis-distance-measurement-2d/index.d.ts +0 -3
- package/dist/components/arcgis-editor/customElement.d.ts +321 -340
- package/dist/components/arcgis-editor/customElement.js +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +432 -281
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/index.d.ts +0 -5
- 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/ExpandViewModel.d.ts +43 -47
- package/dist/components/arcgis-expand/customElement.d.ts +206 -207
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-expand/index.d.ts +0 -4
- package/dist/components/arcgis-feature/customElement.d.ts +429 -320
- package/dist/components/arcgis-feature/customElement.js +2 -2
- package/dist/components/arcgis-feature/index.d.ts +0 -12
- package/dist/components/arcgis-feature-attachments/customElement.js +10 -10
- package/dist/components/arcgis-feature-content/customElement.js +23 -23
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +69 -185
- package/dist/components/arcgis-feature-fields/customElement.js +7 -6
- package/dist/components/arcgis-feature-form/customElement.d.ts +202 -217
- package/dist/components/arcgis-feature-form/customElement.js +3 -3
- package/dist/components/arcgis-feature-image/customElement.d.ts +51 -0
- package/dist/components/arcgis-feature-image/customElement.js +145 -0
- package/dist/components/arcgis-feature-media/customElement.js +6 -6
- package/dist/components/arcgis-feature-relationship/customElement.js +2 -2
- package/dist/components/arcgis-feature-table/customElement.d.ts +950 -958
- package/dist/components/arcgis-feature-table/customElement.js +2 -2
- package/dist/components/arcgis-feature-templates/customElement.d.ts +201 -220
- package/dist/components/arcgis-feature-templates/customElement.js +8 -8
- package/dist/components/arcgis-feature-title/customElement.d.ts +32 -0
- package/dist/components/arcgis-feature-title/customElement.js +99 -0
- 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.d.ts +728 -674
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features/index.d.ts +0 -13
- package/dist/components/arcgis-floor-filter/customElement.d.ts +87 -111
- package/dist/components/arcgis-floor-filter/customElement.js +2 -2
- package/dist/components/arcgis-fullscreen/customElement.d.ts +60 -59
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/index.d.ts +0 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +328 -301
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/index.d.ts +0 -9
- package/dist/components/arcgis-grid-controls/types.d.ts +1 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +352 -376
- package/dist/components/arcgis-histogram-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-home/customElement.d.ts +130 -131
- package/dist/components/arcgis-home/customElement.js +2 -2
- package/dist/components/arcgis-home/index.d.ts +0 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +405 -424
- package/dist/components/arcgis-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +372 -259
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend/index.d.ts +0 -2
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +3 -3
- package/dist/components/arcgis-legend-card-element/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-element/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +2 -2
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +149 -131
- package/dist/components/arcgis-line-of-sight/customElement.js +2 -2
- package/dist/components/arcgis-line-of-sight/index.d.ts +0 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +899 -916
- package/dist/components/arcgis-link-chart/customElement.js +2 -2
- package/dist/components/arcgis-link-chart/index.d.ts +0 -2
- package/dist/components/arcgis-link-chart/index.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +163 -150
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +2 -2
- package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +0 -6
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +67 -76
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +2 -2
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/index.d.ts +0 -1
- package/dist/components/arcgis-locate/LocateViewModel.d.ts +1 -20
- package/dist/components/arcgis-locate/customElement.d.ts +147 -135
- package/dist/components/arcgis-locate/customElement.js +2 -2
- package/dist/components/arcgis-locate/index.d.ts +0 -2
- package/dist/components/arcgis-map/customElement.d.ts +1251 -1266
- package/dist/components/arcgis-map/customElement.js +2 -2
- package/dist/components/arcgis-map/index.d.ts +0 -2
- package/dist/components/arcgis-map/index.js +1 -1
- package/dist/components/arcgis-measurement/customElement.d.ts +153 -181
- package/dist/components/arcgis-measurement/customElement.js +2 -2
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +92 -0
- package/dist/components/arcgis-multi-feature-form/customElement.js +52 -0
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +99 -96
- package/dist/components/arcgis-navigation-toggle/customElement.js +2 -2
- package/dist/components/arcgis-navigation-toggle/index.d.ts +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +161 -201
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +25 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +303 -0
- package/dist/components/arcgis-paste/customElement.d.ts +275 -0
- package/dist/components/arcgis-paste/customElement.js +1295 -0
- package/dist/components/arcgis-paste/index.js +23 -0
- package/dist/components/arcgis-popup/customElement.d.ts +635 -621
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-popup/index.d.ts +0 -1
- package/dist/components/arcgis-popup/types.d.ts +18 -34
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +35 -32
- package/dist/components/arcgis-presentation/customElement.d.ts +58 -51
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-presentation/index.d.ts +0 -1
- package/dist/components/arcgis-print/customElement.d.ts +509 -435
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print/index.d.ts +0 -5
- package/dist/components/arcgis-print/types.d.ts +2 -39
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/arcgis-print-template-selector/customElement.js +2 -2
- package/dist/components/arcgis-scale-bar/customElement.d.ts +70 -76
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +138 -160
- package/dist/components/arcgis-scale-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-scene/customElement.d.ts +1146 -1160
- package/dist/components/arcgis-scene/customElement.js +2 -2
- package/dist/components/arcgis-scene/index.d.ts +0 -2
- package/dist/components/arcgis-scene/index.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +475 -457
- package/dist/components/arcgis-search/customElement.js +2 -2
- package/dist/components/arcgis-search/index.d.ts +0 -9
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +24 -26
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/index.d.ts +0 -4
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +372 -311
- package/dist/components/arcgis-shadow-cast/customElement.js +81 -86
- package/dist/components/arcgis-shadow-cast/index.d.ts +0 -9
- package/dist/components/arcgis-shadow-cast/index.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +453 -470
- package/dist/components/arcgis-sketch/customElement.js +2 -2
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +3 -50
- package/dist/components/arcgis-slice/customElement.d.ts +238 -189
- package/dist/components/arcgis-slice/customElement.js +2 -2
- package/dist/components/arcgis-slice/index.d.ts +0 -4
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +141 -171
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +164 -194
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +152 -182
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +139 -167
- package/dist/components/arcgis-slider-color-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +151 -179
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +106 -131
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +157 -184
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +166 -196
- package/dist/components/arcgis-slider-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +164 -166
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +292 -313
- package/dist/components/arcgis-table-list/customElement.js +2 -2
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +32 -35
- package/dist/components/arcgis-time-of-day-slider/customElement.js +7 -7
- package/dist/components/arcgis-time-of-day-slider/index.d.ts +0 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +496 -517
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +75 -74
- package/dist/components/arcgis-time-zone-label/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/index.d.ts +0 -4
- package/dist/components/arcgis-track/customElement.d.ts +225 -217
- package/dist/components/arcgis-track/customElement.js +2 -2
- package/dist/components/arcgis-track/index.d.ts +0 -2
- 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.d.ts +230 -253
- package/dist/components/arcgis-utility-network-associations/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.d.ts +17 -8
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +223 -246
- package/dist/components/arcgis-utility-network-trace/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +210 -135
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/index.d.ts +0 -10
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +111 -67
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/index.d.ts +0 -13
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +129 -69
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/index.d.ts +0 -3
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +28 -11
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/index.d.ts +0 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +134 -57
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/index.d.ts +0 -11
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +81 -110
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +2 -2
- package/dist/components/arcgis-value-picker/customElement.d.ts +294 -323
- package/dist/components/arcgis-value-picker/customElement.js +2 -2
- package/dist/components/arcgis-version-management/customElement.d.ts +231 -190
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management/index.d.ts +0 -6
- 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.d.ts +59 -60
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video/index.d.ts +0 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +186 -158
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player/index.d.ts +0 -8
- 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.d.ts +317 -258
- package/dist/components/arcgis-volume-measurement/customElement.js +3 -3
- package/dist/components/arcgis-volume-measurement/index.d.ts +0 -10
- package/dist/components/arcgis-weather/WeatherViewModel.d.ts +1 -41
- package/dist/components/arcgis-weather/customElement.d.ts +207 -168
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-weather/index.d.ts +0 -5
- package/dist/components/arcgis-webgl-error/customElement.d.ts +20 -11
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/index.d.ts +0 -2
- package/dist/components/arcgis-zoom/customElement.d.ts +94 -92
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/arcgis-zoom/index.d.ts +0 -1
- package/dist/components/support/goTo.d.ts +32 -24
- package/dist/components/types.d.ts +1 -5
- package/dist/controllers/useArcgisLoadError.d.ts +8 -26
- package/dist/docs/api.json +1 -72767
- package/dist/docs/docs.json +1 -65418
- package/dist/docs/vscode.css-custom-data.json +1 -87
- package/dist/docs/vscode.html-custom-data.json +1 -7909
- package/dist/docs/web-types.json +1 -19962
- package/dist/index.d.ts +65 -89
- package/dist/index.js +1 -1
- package/dist/loader.js +87 -82
- package/dist/support/heading.d.ts +1 -13
- package/dist/support/measurementUtils.d.ts +1 -40
- package/dist/types/lumina.d.ts +502 -466
- package/dist/types/preact.d.ts +507 -466
- package/dist/types/react.d.ts +512 -466
- package/dist/types/stencil.d.ts +502 -466
- package/dist/utils/action-utils.d.ts +3 -35
- package/dist/utils/component-utils.d.ts +5 -74
- package/package.json +6 -5
- package/dist/cdn/4RR7C6H7.js +0 -4
- package/dist/cdn/CGGF6CDR.js +0 -4
- package/dist/cdn/CMGBVLC6.js +0 -4
- package/dist/cdn/CVCMRQ7O.js +0 -5
- package/dist/cdn/HHKLHHFW.js +0 -4
- package/dist/cdn/LKEJY44T.js +0 -4
- package/dist/cdn/MCPQFELM.js +0 -4
- package/dist/cdn/QO27RXSA.js +0 -6
- package/dist/cdn/QOSXJOFH.js +0 -4
- package/dist/cdn/STRUG7UY.js +0 -4
- package/dist/cdn/T2KFHR4P.js +0 -4
- package/dist/cdn/UFLIRFQV.js +0 -4
- package/dist/cdn/V6A5AIMW.js +0 -4
- package/dist/cdn/VVY5D762.js +0 -4
- package/dist/cdn/WREI3VIA.js +0 -4
- package/dist/cdn/XMDJQG2P.js +0 -4
- package/dist/cdn/YYYEEJ6Q.js +0 -4
- package/dist/cdn/ZA5DZNSW.js +0 -4
- package/dist/cdn/ZC57L7DS.js +0 -4
- package/dist/components/arcgis-area-measurement-2d/AreaMeasurement2dViewModel.d.ts +0 -40
- package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +0 -39
- package/dist/components/arcgis-basemap-gallery/basemap-gallery-resources.d.ts +0 -15
- package/dist/components/arcgis-basemap-gallery-item/customElement.d.ts +0 -18
- package/dist/components/arcgis-basemap-gallery-item/index.d.ts +0 -3
- package/dist/components/arcgis-basemap-toggle/css.d.ts +0 -11
- package/dist/components/arcgis-bookmarks/css.d.ts +0 -22
- package/dist/components/arcgis-bookmarks/user-state.d.ts +0 -26
- package/dist/components/arcgis-building-discipline-tree/building-discipline-view-model.d.ts +0 -76
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -15
- package/dist/components/arcgis-building-discipline-tree/index.d.ts +0 -5
- package/dist/components/arcgis-building-discipline-tree/layer-tree-node.d.ts +0 -80
- package/dist/components/arcgis-building-explorer/building-filter/BuildingFilterController.d.ts +0 -14
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -15
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -119
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -28
- package/dist/components/arcgis-building-explorer/support/building-layer-utils.d.ts +0 -61
- package/dist/components/arcgis-building-explorer/support/filter-utils.d.ts +0 -60
- package/dist/components/arcgis-building-explorer/support/layer-utils.d.ts +0 -8
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -25
- package/dist/components/arcgis-building-explorer/support/validation.d.ts +0 -30
- package/dist/components/arcgis-building-level-picker/constants.d.ts +0 -48
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -4
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -2
- package/dist/components/arcgis-coordinate-conversion/css.d.ts +0 -26
- package/dist/components/arcgis-daylight/animation.d.ts +0 -15
- package/dist/components/arcgis-daylight/daylight-time-slider.d.ts +0 -10
- package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +0 -41
- package/dist/components/arcgis-directional-pad/constants.d.ts +0 -10
- package/dist/components/arcgis-directional-pad/css.d.ts +0 -10
- package/dist/components/arcgis-directional-pad/utils.d.ts +0 -25
- package/dist/components/arcgis-distance-measurement-2d/DistanceMeasurement2dViewModel.d.ts +0 -39
- package/dist/components/arcgis-elevation-profile/ElevationProfileViewModel.d.ts +0 -84
- package/dist/components/arcgis-elevation-profile/geometryUtils.d.ts +0 -8
- package/dist/components/arcgis-elevation-profile/types.d.ts +0 -162
- package/dist/components/arcgis-elevation-profile-legend/customElement.d.ts +0 -18
- package/dist/components/arcgis-elevation-profile-legend/index.d.ts +0 -2
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.d.ts +0 -26
- package/dist/components/arcgis-elevation-profile-legend-item/index.d.ts +0 -5
- package/dist/components/arcgis-elevation-profile-settings/customElement.d.ts +0 -28
- package/dist/components/arcgis-elevation-profile-settings/index.d.ts +0 -6
- package/dist/components/arcgis-elevation-profile-statistics/customElement.d.ts +0 -20
- package/dist/components/arcgis-elevation-profile-statistics/index.d.ts +0 -2
- package/dist/components/arcgis-feature-attachments/customElement.d.ts +0 -25
- package/dist/components/arcgis-feature-attachments/index.d.ts +0 -8
- package/dist/components/arcgis-feature-content/customElement.d.ts +0 -11
- package/dist/components/arcgis-feature-content/index.d.ts +0 -2
- package/dist/components/arcgis-feature-element-info/customElement.d.ts +0 -11
- package/dist/components/arcgis-feature-expression/customElement.d.ts +0 -21
- package/dist/components/arcgis-feature-expression/index.d.ts +0 -5
- package/dist/components/arcgis-feature-fields/customElement.d.ts +0 -21
- package/dist/components/arcgis-feature-fields/index.d.ts +0 -2
- package/dist/components/arcgis-feature-media/chartCommon.d.ts +0 -1
- package/dist/components/arcgis-feature-media/customElement.d.ts +0 -36
- package/dist/components/arcgis-feature-media/index.d.ts +0 -3
- package/dist/components/arcgis-feature-relationship/customElement.d.ts +0 -87
- package/dist/components/arcgis-feature-relationship/index.d.ts +0 -10
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.d.ts +0 -24
- package/dist/components/arcgis-feature-utility-network-association-list/index.d.ts +0 -8
- package/dist/components/arcgis-feature-utility-network-associations/customElement.d.ts +0 -73
- package/dist/components/arcgis-feature-utility-network-associations/index.d.ts +0 -8
- package/dist/components/arcgis-features/css.d.ts +0 -20
- package/dist/components/arcgis-grid-controls/gridUtils.d.ts +0 -16
- package/dist/components/arcgis-labeled-switch/customElement.d.ts +0 -43
- package/dist/components/arcgis-labeled-switch/index.d.ts +0 -5
- package/dist/components/arcgis-layer-list/css.d.ts +0 -22
- package/dist/components/arcgis-layer-list-item/customElement.d.ts +0 -70
- package/dist/components/arcgis-legend/support/svgGlobalState.d.ts +0 -7
- package/dist/components/arcgis-legend/support/svgUtils.d.ts +0 -173
- package/dist/components/arcgis-legend/support/titleUtils.d.ts +0 -6
- package/dist/components/arcgis-legend/support/univariateUtils.d.ts +0 -33
- package/dist/components/arcgis-legend/support/utils.d.ts +0 -10
- package/dist/components/arcgis-legend/types.d.ts +0 -0
- package/dist/components/arcgis-legend-card-color-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-element/customElement.d.ts +0 -18
- package/dist/components/arcgis-legend-card-element/index.d.ts +0 -7
- package/dist/components/arcgis-legend-card-size-ramp/customElement.d.ts +0 -14
- package/dist/components/arcgis-legend-card-size-ramp/index.d.ts +0 -2
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-view/customElement.d.ts +0 -23
- package/dist/components/arcgis-legend-card-view/index.d.ts +0 -4
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-classic-element/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-classic-element/index.d.ts +0 -7
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.d.ts +0 -10
- package/dist/components/arcgis-legend-classic-size-ramp/index.d.ts +0 -2
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-classic-view/customElement.d.ts +0 -15
- package/dist/components/arcgis-legend-classic-view/index.d.ts +0 -2
- package/dist/components/arcgis-legend-relationship-ramp/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-spike-ramp/customElement.d.ts +0 -10
- package/dist/components/arcgis-legend-spike-ramp/index.d.ts +0 -1
- package/dist/components/arcgis-line-of-sight/LineOfSightViewModel.d.ts +0 -14
- package/dist/components/arcgis-line-of-sight/css.d.ts +0 -9
- package/dist/components/arcgis-measurement-content/customElement.d.ts +0 -22
- package/dist/components/arcgis-measurement-content/index.d.ts +0 -2
- package/dist/components/arcgis-popup/css.d.ts +0 -31
- package/dist/components/arcgis-print/utils.d.ts +0 -12
- package/dist/components/arcgis-print-custom-text-elements/customElement.d.ts +0 -8
- package/dist/components/arcgis-print-custom-text-elements/index.d.ts +0 -3
- package/dist/components/arcgis-print-dpi-input/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-dpi-input/index.d.ts +0 -3
- package/dist/components/arcgis-print-export-button/customElement.d.ts +0 -12
- package/dist/components/arcgis-print-export-button/index.d.ts +0 -2
- package/dist/components/arcgis-print-exports-panel/customElement.d.ts +0 -15
- package/dist/components/arcgis-print-exports-panel/index.d.ts +0 -7
- package/dist/components/arcgis-print-format-select/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-format-select/index.d.ts +0 -4
- package/dist/components/arcgis-print-layout-advanced-options/customElement.d.ts +0 -12
- package/dist/components/arcgis-print-layout-advanced-options/index.d.ts +0 -10
- package/dist/components/arcgis-print-layout-panel/customElement.d.ts +0 -16
- package/dist/components/arcgis-print-layout-panel/index.d.ts +0 -9
- package/dist/components/arcgis-print-main-panel/customElement.d.ts +0 -20
- package/dist/components/arcgis-print-main-panel/index.d.ts +0 -9
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-map-only-advanced-options/index.d.ts +0 -7
- package/dist/components/arcgis-print-map-only-panel/customElement.d.ts +0 -13
- package/dist/components/arcgis-print-map-only-panel/index.d.ts +0 -10
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-out-spatial-reference-input/index.d.ts +0 -4
- package/dist/components/arcgis-print-preview-input/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-preview-input/index.d.ts +0 -3
- package/dist/components/arcgis-print-scale-section/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-scale-section/index.d.ts +0 -5
- package/dist/components/arcgis-print-template-select/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-template-select/index.d.ts +0 -3
- package/dist/components/arcgis-print-template-selector/customElement.d.ts +0 -13
- package/dist/components/arcgis-print-template-selector/index.d.ts +0 -8
- package/dist/components/arcgis-scale-bar/css.d.ts +0 -17
- package/dist/components/arcgis-search/css.d.ts +0 -8
- package/dist/components/arcgis-search-result-renderer/css.d.ts +0 -4
- package/dist/components/arcgis-shadow-cast/ShadowCastViewModel.d.ts +0 -45
- package/dist/components/arcgis-shadow-cast/constants.d.ts +0 -2
- package/dist/components/arcgis-shadow-cast/types.d.ts +0 -55
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.d.ts +0 -20
- package/dist/components/arcgis-shadow-cast-discrete-config/index.d.ts +0 -5
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.d.ts +0 -31
- package/dist/components/arcgis-shadow-cast-min-duration-config/index.d.ts +0 -6
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.d.ts +0 -20
- package/dist/components/arcgis-shadow-cast-total-duration-config/index.d.ts +0 -5
- package/dist/components/arcgis-slice/css.d.ts +0 -14
- package/dist/components/arcgis-spinner/customElement.d.ts +0 -17
- package/dist/components/arcgis-spinner/index.d.ts +0 -2
- package/dist/components/arcgis-unit-select/customElement.d.ts +0 -33
- package/dist/components/arcgis-unit-select/index.d.ts +0 -4
- package/dist/components/arcgis-utility-network-association-list/customElement.d.ts +0 -27
- package/dist/components/arcgis-utility-network-association-list/index.d.ts +0 -4
- package/dist/components/arcgis-utility-network-association-list/types.d.ts +0 -2
- package/dist/components/arcgis-version-management-service-item/customElement.d.ts +0 -52
- package/dist/components/arcgis-version-management-service-item/index.d.ts +0 -8
- package/dist/components/arcgis-version-management-version-list/customElement.d.ts +0 -51
- package/dist/components/arcgis-version-management-version-list/index.d.ts +0 -13
- package/dist/components/arcgis-version-management-version-properties/customElement.d.ts +0 -37
- package/dist/components/arcgis-version-management-version-properties/index.d.ts +0 -11
- package/dist/components/arcgis-video-player-action-bar/customElement.d.ts +0 -15
- package/dist/components/arcgis-video-player-action-bar/index.d.ts +0 -4
- package/dist/components/arcgis-video-player-actions-group/customElement.d.ts +0 -12
- package/dist/components/arcgis-video-player-actions-group/index.d.ts +0 -3
- package/dist/components/arcgis-video-player-controls-group/customElement.d.ts +0 -11
- package/dist/components/arcgis-video-player-controls-group/index.d.ts +0 -9
- package/dist/components/arcgis-video-player-metadata/customElement.d.ts +0 -10
- package/dist/components/arcgis-video-player-metadata/index.d.ts +0 -5
- package/dist/components/arcgis-video-player-settings/customElement.d.ts +0 -17
- package/dist/components/arcgis-video-player-settings/index.d.ts +0 -12
- package/dist/components/arcgis-video-player-slider/customElement.d.ts +0 -10
- package/dist/components/arcgis-video-player-slider/index.d.ts +0 -2
- package/dist/components/arcgis-volume-measurement/VolumeMeasurementViewModel.d.ts +0 -95
- package/dist/components/arcgis-volume-measurement/volume-measurement-test-utils.d.ts +0 -1
- package/dist/components/arcgis-weather/LabeledSlider.d.ts +0 -8
- package/dist/components/arcgis-zoom/css.d.ts +0 -7
- package/dist/components/arcgis-zoom/utils.d.ts +0 -4
- package/dist/components/support/utility-components/component-wrapper.d.ts +0 -10
- package/dist/components/support/utility-components/visible-element.d.ts +0 -5
- package/dist/controllers/Handles.d.ts +0 -72
- package/dist/controllers/screenLocation.d.ts +0 -21
- package/dist/controllers/uiController.d.ts +0 -37
- package/dist/controllers/useArcgisViewReadyError.d.ts +0 -17
- package/dist/controllers/useCloseEvent.d.ts +0 -6
- package/dist/controllers/useHandles.d.ts +0 -88
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/controllers/useView.d.ts +0 -37
- package/dist/controllers/useViewModel.d.ts +0 -57
- package/dist/controllers/useWidget.d.ts +0 -71
- package/dist/geolocation/GeolocationPositioning.d.ts +0 -55
- package/dist/runtime.d.ts +0 -6
- package/dist/support/AnalysisViewModel.d.ts +0 -164
- package/dist/support/basemapUtils.d.ts +0 -3
- package/dist/support/earth-utils.d.ts +0 -9
- package/dist/support/handle.d.ts +0 -1
- package/dist/support/maybe.d.ts +0 -10
- package/dist/support/resources.d.ts +0 -31
- package/dist/support/slotArgs.d.ts +0 -8
- package/dist/support/slots.d.ts +0 -10
- package/dist/support/sun-calc-lib/SunCalc.d.ts +0 -25
- package/dist/support/time-utils.d.ts +0 -43
- package/dist/types.d.ts +0 -31
- package/dist/utils/actions.d.ts +0 -7
- package/dist/utils/async-utils.d.ts +0 -85
- package/dist/utils/attachment-utils.d.ts +0 -2
- package/dist/utils/chart-utils.d.ts +0 -6
- package/dist/utils/disconnected.d.ts +0 -3
- package/dist/utils/feature-form-utils.d.ts +0 -6
- package/dist/utils/feature-utils.d.ts +0 -48
- package/dist/utils/geolocation-utils.d.ts +0 -14
- package/dist/utils/geometry-utils.d.ts +0 -5
- package/dist/utils/globalCss.d.ts +0 -43
- package/dist/utils/highlight-utils.d.ts +0 -22
- package/dist/utils/layer-list-utils.d.ts +0 -42
- package/dist/utils/layer-utils.d.ts +0 -4
- package/dist/utils/legacyIcon.d.ts +0 -100
- package/dist/utils/math-utils.d.ts +0 -6
- package/dist/utils/related-feature-utils.d.ts +0 -6
- package/dist/utils/screen-utils.d.ts +0 -2
- package/dist/utils/signal-utils.d.ts +0 -17
- package/dist/utils/types.d.ts +0 -5
- package/dist/utils/uri-utils.d.ts +0 -4
- /package/dist/components/{arcgis-feature-element-info → arcgis-clipboard}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-card-color-ramp → arcgis-feature-image}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-card-univariate-above-and-below-ramp/index.d.ts → arcgis-feature-image/index.js} +0 -0
- /package/dist/components/{arcgis-legend-card-univariate-color-size-ramp → arcgis-feature-title}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-classic-color-ramp/index.d.ts → arcgis-feature-title/index.js} +0 -0
- /package/dist/components/{arcgis-legend-classic-univariate-above-and-below-ramp → arcgis-multi-feature-form}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-classic-univariate-color-size-ramp/index.d.ts → arcgis-multi-feature-form/index.js} +0 -0
- /package/dist/components/{arcgis-legend-relationship-ramp → arcgis-paste}/index.d.ts +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
|
+
var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}},It=s=>new k(typeof s=="string"?s:s+"",void 0,gt),vt=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,i)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[i+1],s[0]);return new k(e,s,gt)},kt=(s,t)=>{if(Z)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=Y.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},Et=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return It(e)})(s):s;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,tt=globalThis,jt=tt.trustedTypes,Se=jt?jt.emptyScript:"",Pe=tt.reactiveElementPolyfillSupport,j=(s,t)=>s,X={toAttribute(s,t){switch(t){case Boolean:s=s?Se:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},H=(s,t)=>!_e(s,t),Ht={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,o=[...we(e),...Oe(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift(Et(r))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:X).toAttribute(e,o.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),o??=n.getPropertyOptions(t),!((o.hasChanged??H)(i,e)||o.useDefault&&o.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:i},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,i]of o){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Pe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,zt=s=>s,et=bt.trustedTypes,Vt=et?et.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Ne=`<${At}>`,T=document,V=()=>T.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Kt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
|
|
5
|
+
\f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=s.createElement(l,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=zt(t).nextSibling;zt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=lt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var{I:qe}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),Xs=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},to=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,eo=s=>s._$AH,so=s=>{s._$AR(),s._$AA.remove()};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Je(t)}};function Ke(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Je=s=>{s.type==m.CHILD&&(s._$AP??=Qe,s._$AQ??=Ke)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var uo=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Dt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}var Ze=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(Xe):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,Xe=s=>{let t=s.split(":");return t.length===1?[t[0],ht(t[0])]:t},ts=globalThis.HTMLElement??Ut,xt=class extends ts{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ss(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(es,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function es([s,t]){this[s]=t}var ss=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ae(t,os)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,yt="autoDestroyDisabled";var ge=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ve="important",rs=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let i=typeof r=="string"&&r.endsWith(rs);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var is=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://jsdev.arcgis.com/5.0.0-next/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Ze as C,m as D,E,v as F,Xs as G,to as H,fe as I,eo as J,so as K,uo as L,Nt as M,$e as N,Lr as O,Ur as P,Mr as Q,Ir as R,J as S,Br as T,Wr as U};
|
|
@@ -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"./
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
|
+
import"./DNEZLUK4.js";var r={firstDayOfWeek:1,_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"\u044F\u043D\u0443\u0430\u0440\u0438",February:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",March:"\u043C\u0430\u0440\u0442",April:"\u0430\u043F\u0440\u0438\u043B",May:"\u043C\u0430\u0439",June:"\u044E\u043D\u0438",July:"\u044E\u043B\u0438",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",October:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",November:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",December:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Jan:"\u044F\u043D\u0443\u0430\u0440\u0438",Feb:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",Mar:"\u043C\u0430\u0440\u0442",Apr:"\u0430\u043F\u0440\u0438\u043B","May (short)":"\u043C\u0430\u0439",Jun:"\u044E\u043D\u0438",Jul:"\u044E\u043B\u0438",Aug:"\u0430\u0432\u0433\u0443\u0441\u0442",Sep:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",Oct:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",Nov:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",Dec:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Sunday:"\u043D\u0435\u0434\u0435\u043B\u044F",Monday:"\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A",Tuesday:"\u0432\u0442\u043E\u0440\u043D\u0438\u043A",Wednesday:"\u0441\u0440\u044F\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A",Friday:"\u043F\u0435\u0442\u044A\u043A",Saturday:"\u0441\u044A\u0431\u043E\u0442\u0430",Sun:"\u043D\u0434",Mon:"\u043F\u043D",Tues:"\u0432\u0442",Wed:"\u0441\u0440",Thu:"\u0447\u0442",Fri:"\u043F\u0442",Sat:"\u0441\u0431",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"\u041E\u0442\u0434\u0430\u043B\u0435\u0447\u0430\u0432\u0430\u043D\u0435",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u041E\u0442 %1 \u0434\u043E %2","From %1":"\u041E\u0442 %1","To %1":"\u0414\u043E %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
|
|
@@ -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 e from"./
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
|
+
import e from"./ILLMGVLA.js";import{a as y,b as p}from"./3BKHRH6X.js";import{a as u}from"./DCPT3TCE.js";import b from"./2JFWZM7Z.js";import"./BFHKTM5V.js";import"./JXFJI4FN.js";import{d,e as g}from"./IRUECTJD.js";import"./ZIMP6JDJ.js";import{L as h,M as n,N as c,O as o,T as v,b as a,x as r}from"./6JUVKJD6.js";import"./DNEZLUK4.js";export default $arcgis.t(([{watch:s},E,C,A,{a:e,b:w,f:m},{a:b,b:f,c:V}])=>{var D=w(C,{}),_=w(E,{}),l=class extends c{constructor(){super(),this._containerRef=h(),this._mapRef=h(),this._uiController=new b(this),this.extraContent=new A,this.arcgisLoadError=f(this),this.arcgisViewReadyError=V(this),this._map=D(this),this.view=_(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupWidgetDisabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=e(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=e(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupWidgetDisabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[u,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,t){this.map?.add(i,t)}async addLayers(i,t){this.map?.addMany(i,t)}async addTable(i){this.map?.tables.add(i)}async addTables(i,t){this.map?.tables.addMany(i,t)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)})])}renderMain(){return a`<div class=${o(p.base)} ${n(this._mapRef)}></div>`}render(){return a`<section class=${o(p.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",l);return l},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,e)
|
|
@@ -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.
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
4
|
var e={disabled:"esri-disabled",empty:"esri-widget__content--empty",heading:"esri-widget__heading",loaderAnimation:"esri-widget__loader-animation",panel:"esri-widget--panel",widget:"esri-widget",widgetButton:"esri-widget--button",widgetDisabled:"esri-widget--disabled"};export{e as a};
|
|
@@ -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{a as ve}from"./6QQ47I56.js";import{D as de,E as q,M as re,O as fe,P as _e,c as R,da as ue,ga as xe,i as P,j as v,k as A,l as me,m as he,n as be,na as ce,o as te,oa as ae,pa as we}from"./4KK2GCEK.js";import{N as O,a as H,u as k}from"./FNUNSW4S.js";import{a as ge,b as ee,d as T,e as f}from"./LIPLRYVY.js";import{U as j,V as ye,g as X,o as w}from"./TSQ6JRLF.js";import"./X4AVPKI4.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",T),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
|
+
import{a as ve}from"./ELSQNNWO.js";import{D as de,E as q,M as re,O as fe,P as _e,c as R,da as ue,ga as xe,i as P,j as v,k as A,l as me,m as he,n as be,na as ce,o as te,oa as ae,pa as we}from"./RU3CPDXI.js";import{N as O,a as H,u as k}from"./IUU34IL6.js";import{a as ge,b as ee,d as T,e as f}from"./YV6PQGNI.js";import{U as j,V as ye,g as X,o as w}from"./HVCDD2GB.js";import"./DNEZLUK4.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}_applyThemes(t=!1){let e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",T),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
+
v5.0.0-next.138 */
|
|
4
|
+
import f from"./2ZCUSMGB.js";import e from"./PT2JSAAV.js";import"./KCG4J2TQ.js";import{b as E}from"./G4Z2J53Q.js";import{a as u}from"./LS2PSO6U.js";import d from"./4M3HXG6P.js";import c from"./IAILCA7B.js";import{a as D}from"./B746M4QX.js";import b from"./2JFWZM7Z.js";import a from"./RCSGPIYI.js";import"./BFHKTM5V.js";import"./JXFJI4FN.js";import"./IRUECTJD.js";import"./ZIMP6JDJ.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./6JUVKJD6.js";import"./DNEZLUK4.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
|