@esri/solutions-components 1.1.1 → 1.2.0-next.2
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/{LVLT7OO5.js → 22BFHC2I.js} +3 -3
- package/dist/cdn/{B5LYIFIL.js → 22LLS6WR.js} +3 -3
- package/dist/cdn/{RYBVU2SH.js → 24C3TAJY.js} +3 -3
- package/dist/cdn/{PCEDSTLJ.js → 24PILRZT.js} +3 -3
- package/dist/cdn/{GQCNQXN5.js → 26NSAUFX.js} +2 -2
- package/dist/cdn/{AUCQU57I.js → 2AUDRMU3.js} +3 -3
- package/dist/cdn/{JMYTSZCC.js → 2BOM63KQ.js} +3 -3
- package/dist/cdn/{3G7RVBUA.js → 2FFHB27Z.js} +3 -3
- package/dist/cdn/{NQE4EDAU.js → 2IPTMHFY.js} +3 -3
- package/dist/cdn/2JQUC3UP.js +4 -0
- package/dist/cdn/{5SCFBPOD.js → 2KXRE3QQ.js} +3 -3
- package/dist/cdn/2LK2MZZR.js +4 -0
- package/dist/cdn/{KIBCKDDV.js → 2LLZMSJV.js} +3 -3
- package/dist/cdn/{NHLAFRCY.js → 2QP26HSW.js} +3 -3
- package/dist/cdn/2RVVSM5J.js +4 -0
- package/dist/cdn/{KHEFLBXY.js → 2ZUX4PI4.js} +3 -3
- package/dist/cdn/32275IZ5.js +4 -0
- package/dist/cdn/{JR7EO46W.js → 327AKQNH.js} +3 -3
- package/dist/cdn/{3KQWJHJU.js → 32GCN42P.js} +3 -3
- package/dist/cdn/{6SJDAXKU.js → 35KI2UZP.js} +3 -3
- package/dist/cdn/{6ATB2NEI.js → 3AXQAZAI.js} +2 -2
- package/dist/cdn/{KGU6GWRV.js → 3ENATMAV.js} +3 -3
- package/dist/cdn/{DWLML3AH.js → 3MGV3QJV.js} +3 -3
- package/dist/cdn/{TFCCDEFO.js → 3MON3AIB.js} +3 -3
- package/dist/cdn/{HF7PHNIQ.js → 3NETFEHL.js} +3 -3
- package/dist/cdn/{4MOZP7S7.js → 3SH6IZWK.js} +2 -2
- package/dist/cdn/{WHOLLTII.js → 3UMQAY7D.js} +3 -3
- package/dist/cdn/{U5BYVOCV.js → 3VJ5JQ7K.js} +3 -3
- package/dist/cdn/{3SXS6CO7.js → 3VXS23LI.js} +3 -3
- package/dist/cdn/{GFVWUN5D.js → 3YPL6RCD.js} +3 -3
- package/dist/cdn/{HSQOGPUN.js → 45ANCG22.js} +3 -3
- package/dist/cdn/{7PZ4UBDR.js → 4CD2LCWF.js} +2 -2
- package/dist/cdn/{JFECVDJN.js → 4J6A5LH5.js} +2 -2
- package/dist/cdn/{Q4JIF4ME.js → 4JWTHCFT.js} +3 -3
- package/dist/cdn/{CEMXCEBH.js → 4NVR4X3L.js} +2 -2
- package/dist/cdn/{7GCGTHLP.js → 4UUIRHC6.js} +3 -3
- package/dist/cdn/{KLEDYY4Y.js → 4XJKKLD3.js} +2 -2
- package/dist/cdn/{YGBNP67C.js → 4XYYUSUA.js} +2 -2
- package/dist/cdn/{H4APLINN.js → 4YNKTXJZ.js} +3 -3
- package/dist/cdn/{GE4IM3MX.js → 53GNUN6U.js} +5 -5
- package/dist/cdn/56QASSI7.js +4 -0
- package/dist/cdn/{NE2AVEWI.js → 57S3EVKQ.js} +3 -3
- package/dist/cdn/{ZZG6UPJB.js → 5CCXGSYJ.js} +3 -3
- package/dist/cdn/{YXBR66FZ.js → 5E2ADQM6.js} +3 -3
- package/dist/cdn/{B54XVRBZ.js → 5GQ6DHYL.js} +3 -3
- package/dist/cdn/{BTIPZNRW.js → 5GW6VGYE.js} +3 -3
- package/dist/cdn/{AGCNKK6G.js → 5HDW32N3.js} +3 -3
- package/dist/cdn/{CVHQL36X.js → 5J7IGLEN.js} +3 -3
- package/dist/cdn/{G2ZE3JDL.js → 5K2GKQME.js} +3 -3
- package/dist/cdn/{AM7XZYHN.js → 5LNUHS4F.js} +3 -3
- package/dist/cdn/{PL6BITGI.js → 5T6EZRNO.js} +3 -3
- package/dist/cdn/{I226XVK6.js → 5WP2S2ZH.js} +2 -2
- package/dist/cdn/{BKJFP7LT.js → 62JXAZTH.js} +3 -3
- package/dist/cdn/{YNPQP3KG.js → 62NI5UX7.js} +3 -3
- package/dist/cdn/{XF3NVRQZ.js → 62WGZZJQ.js} +3 -3
- package/dist/cdn/{D3U545GO.js → 63PHQLZJ.js} +3 -3
- package/dist/cdn/{EXAPAR3S.js → 64KPWKOZ.js} +3 -3
- package/dist/cdn/{B4SZ3AFB.js → 67H5AKUO.js} +3 -3
- package/dist/cdn/{ENYF3KSA.js → 6FCQB3AG.js} +3 -3
- package/dist/cdn/{XW4B55X6.js → 6GSFOGSD.js} +3 -3
- package/dist/cdn/{IDTCCLPD.js → 6M2T3Q2M.js} +3 -3
- package/dist/cdn/{2YQAGWB4.js → 6QHOYKEI.js} +3 -3
- package/dist/cdn/{JI7NN7UZ.js → 6RJ3S2N4.js} +3 -3
- package/dist/cdn/{D3AONMYK.js → 6RN2G5UX.js} +3 -3
- package/dist/cdn/6Y4X3UOF.js +4 -0
- package/dist/cdn/{XEANXWMN.js → 73RE22QT.js} +3 -3
- package/dist/cdn/{7Q36435D.js → 7GJSEVPA.js} +3 -3
- package/dist/cdn/7L7OMOMR.js +4 -0
- package/dist/cdn/7LML2KAO.js +4 -0
- package/dist/cdn/{UYVKGCIC.js → 7M65VSDO.js} +2 -2
- package/dist/cdn/{ELPOHGJW.js → 7TVK2JZJ.js} +3 -3
- package/dist/cdn/{ZRPNT6EM.js → 7UBRL7BT.js} +3 -3
- package/dist/cdn/{PNOXI4LK.js → 7XNXOLSM.js} +3 -3
- package/dist/cdn/{KGOYOPYR.js → A2D7SAO5.js} +3 -3
- package/dist/cdn/{DAR4Z4PY.js → A54VVFMV.js} +3 -3
- package/dist/cdn/{GKB3OPCC.js → AGNDZTZ6.js} +2 -2
- package/dist/cdn/{3WSKTJKP.js → AMP4ZNCP.js} +3 -3
- package/dist/cdn/{SO5JOFTM.js → AV64MW2C.js} +3 -3
- package/dist/cdn/{WNXJPQ3P.js → AZZRAFZ2.js} +3 -3
- package/dist/cdn/{6TRHSJBA.js → B37JGOGF.js} +3 -3
- package/dist/cdn/B5X7FR3W.js +4 -0
- package/dist/cdn/{AIECUGLA.js → BBLEZ5WS.js} +3 -3
- package/dist/cdn/{RIUFIUZK.js → BCPDT6MV.js} +3 -3
- package/dist/cdn/{HS4O2ERP.js → BGMDKWE7.js} +3 -3
- package/dist/cdn/{35KT5J6L.js → BHXQ7QW6.js} +3 -3
- package/dist/cdn/{GRQT7TEY.js → BJWPKYKV.js} +3 -3
- package/dist/cdn/{MDMOHF6P.js → BL4KF37N.js} +3 -3
- package/dist/cdn/BL7TUTFB.js +4 -0
- package/dist/cdn/{MGYYPLGC.js → BN34E5SA.js} +3 -3
- package/dist/cdn/{ICNZOE62.js → BPB3TNH6.js} +3 -3
- package/dist/cdn/{HOZ3ZGMX.js → BS533JHX.js} +3 -3
- package/dist/cdn/{DK35UKU7.js → BSCXWZZC.js} +2 -2
- package/dist/cdn/{USE6OJ76.js → BTHNNVZX.js} +2 -2
- package/dist/cdn/{7HBTOAR5.js → BVRRREAU.js} +3 -3
- package/dist/cdn/{26YIO67D.js → C42K62PR.js} +3 -3
- package/dist/cdn/{5MMYLEOU.js → C4GYOXKY.js} +3 -3
- package/dist/cdn/{I5LITYX6.js → C5FQOPJR.js} +3 -3
- package/dist/cdn/{AHJZ4NUK.js → CFB6TU6B.js} +3 -3
- package/dist/cdn/{FCF3N62R.js → CHPW5FJW.js} +3 -3
- package/dist/cdn/{5BQ6XBFO.js → CLIXTMET.js} +3 -3
- package/dist/cdn/{DHNEONGR.js → CPC2M7AK.js} +3 -3
- package/dist/cdn/{AEIXUSBT.js → CRGYVR4L.js} +3 -3
- package/dist/cdn/{TGVB6RQB.js → CUBFKAV6.js} +3 -3
- package/dist/cdn/{TLOJATEQ.js → CXJUQMCV.js} +3 -3
- package/dist/cdn/{JWYEWEFN.js → DDP5UCZA.js} +3 -3
- package/dist/cdn/DH3SAWQO.js +4 -0
- package/dist/cdn/{NHT6Z5E2.js → DKRHACVW.js} +3 -3
- package/dist/cdn/{XUGHHYWO.js → DM633MDA.js} +3 -3
- package/dist/cdn/{B2BJU5HS.js → DMECGLC4.js} +3 -3
- package/dist/cdn/{SFGQEQN6.js → DMMMW2BR.js} +3 -3
- package/dist/cdn/{EVL5ENBM.js → DMW55L65.js} +3 -3
- package/dist/cdn/{VT24NQ3G.js → DXGUMM4O.js} +3 -3
- package/dist/cdn/{RKPQ6P4K.js → DZ76G2RX.js} +3 -3
- package/dist/cdn/{QRN72H3R.js → DZHVGBZB.js} +3 -3
- package/dist/cdn/{R2LM4OS3.js → E4V5RLGM.js} +3 -3
- package/dist/cdn/{UNICLOME.js → EALUH4BU.js} +3 -3
- package/dist/cdn/{E4657PTM.js → EBKAKZZU.js} +3 -3
- package/dist/cdn/ECKRAOTK.js +4 -0
- package/dist/cdn/ECVB7DM6.js +4 -0
- package/dist/cdn/{6KGM4ZLO.js → EG2JBWTE.js} +3 -3
- package/dist/cdn/{2BNWBAZJ.js → EM5Z3TCD.js} +3 -3
- package/dist/cdn/{CZG4TQS7.js → ENS7CZX3.js} +3 -3
- package/dist/cdn/{M6O3GAPO.js → EWQ7E45G.js} +3 -3
- package/dist/cdn/{5K76V7K5.js → F23TKPQ3.js} +3 -3
- package/dist/cdn/{PWBUTW4G.js → FDZWMY22.js} +3 -3
- package/dist/cdn/{X4YLMHXT.js → FELH7PBD.js} +3 -3
- package/dist/cdn/{OZ6WFV25.js → FGUX7O4N.js} +3 -3
- package/dist/cdn/{5LFFKDSV.js → FHLHSJYN.js} +3 -3
- package/dist/cdn/{6HHD7W7G.js → FJ5G5F6F.js} +3 -3
- package/dist/cdn/{DQZV5B4U.js → FJYGYKU7.js} +3 -3
- package/dist/cdn/{TBQSNIZB.js → FMF65JWL.js} +3 -3
- package/dist/cdn/{XMKDRPPW.js → FNLWKSSH.js} +2 -2
- package/dist/cdn/{SO2FFKO7.js → FTJZYC6F.js} +3 -3
- package/dist/cdn/{6D4MPGC2.js → FUYHWE6S.js} +3 -3
- package/dist/cdn/{RKMHFE6O.js → FYFIZWH7.js} +3 -3
- package/dist/cdn/{EDQISJN2.js → FYQALD4I.js} +2 -2
- package/dist/cdn/{UFHCRIJM.js → FZW3ZZPU.js} +3 -3
- package/dist/cdn/{5QS55J2V.js → G5MR5SG5.js} +3 -3
- package/dist/cdn/{UKTDQUNY.js → G7UTMYYA.js} +3 -3
- package/dist/cdn/{V46NQFJY.js → GA5KNLFJ.js} +3 -3
- package/dist/cdn/{5Z2FPM3N.js → GK4O6X2B.js} +3 -3
- package/dist/cdn/{QYGNVH4W.js → GRC5KYBB.js} +2 -2
- package/dist/cdn/GU3R45TN.js +4 -0
- package/dist/cdn/{ICHAZGEE.js → GYZWPVGD.js} +3 -3
- package/dist/cdn/{EMJVLMDF.js → H7YFIIKJ.js} +3 -3
- package/dist/cdn/{KX5ZC2OR.js → HAYDHL6E.js} +3 -3
- package/dist/cdn/{P55J63ZU.js → HCEYPHXZ.js} +3 -3
- package/dist/cdn/{UVAXWM4L.js → HJCGCJHG.js} +2 -2
- package/dist/cdn/{YGCKDVK6.js → HKUMRXKS.js} +3 -3
- package/dist/cdn/{3AKF2NFL.js → HN6L7MEZ.js} +2 -2
- package/dist/cdn/{OLARJ53Z.js → HOCJSK24.js} +3 -3
- package/dist/cdn/{LF6IEP2D.js → HR44MJZ4.js} +3 -3
- package/dist/cdn/{ZXNTEBYO.js → HSGU3NPM.js} +3 -3
- package/dist/cdn/{XZL7GBO2.js → HV23NBKM.js} +2 -2
- package/dist/cdn/{5ELVKZK3.js → HWBSZWSI.js} +3 -3
- package/dist/cdn/I3IHBW4I.js +4 -0
- package/dist/cdn/{EIDWGAQS.js → I4E7TVY4.js} +3 -3
- package/dist/cdn/{PDBKU4S2.js → I5X57Y6X.js} +2 -2
- package/dist/cdn/{EO3MW2NL.js → IAMELUPG.js} +2 -2
- package/dist/cdn/{IAAUVKHV.js → IBIR3MNF.js} +3 -3
- package/dist/cdn/{3FP74ZYG.js → IGUMVL7J.js} +3 -3
- package/dist/cdn/{C25PM233.js → II4ZEXAJ.js} +3 -3
- package/dist/cdn/{5OV265N4.js → IIBBHZ5N.js} +3 -3
- package/dist/cdn/{3XU5XGKF.js → IN3OKM7F.js} +3 -3
- package/dist/cdn/{KTABK32D.js → IPIW25QW.js} +3 -3
- package/dist/cdn/{752NXLLE.js → ITIM5MBI.js} +3 -3
- package/dist/cdn/{DQRK65BG.js → IUWPOFEU.js} +3 -3
- package/dist/cdn/{DT2QNJXZ.js → IWN7UDRD.js} +3 -3
- package/dist/cdn/{ORSXUYDL.js → J3AFQ2U2.js} +3 -3
- package/dist/cdn/{FX5ZISLR.js → J5HRIE3W.js} +3 -3
- package/dist/cdn/{2V52VLFJ.js → J5U3NOSX.js} +3 -3
- package/dist/cdn/{X3KX5MLG.js → J6IINHXU.js} +3 -3
- package/dist/cdn/{4P3ZYJQ3.js → JDDI6RWH.js} +3 -3
- package/dist/cdn/{UVOSWHK6.js → JDMCVY5U.js} +3 -3
- package/dist/cdn/JHPYHESZ.js +4 -0
- package/dist/cdn/{CWXIDRS2.js → JKVDTJCD.js} +2 -2
- package/dist/cdn/{XDMBJPAY.js → JOOTU2MN.js} +3 -3
- package/dist/cdn/{VOYVH7QX.js → JSMMX4OW.js} +3 -3
- package/dist/cdn/{OSSABG5C.js → JVHOB5XV.js} +3 -3
- package/dist/cdn/{FFQ3HGQK.js → JWXSAYHC.js} +3 -3
- package/dist/cdn/{K5B6UE4O.js → JYKNVSA4.js} +3 -3
- package/dist/cdn/{X7ZDHHU4.js → JZ2AJ7NV.js} +3 -3
- package/dist/cdn/{O7Z57GLZ.js → K3ZT5FZ2.js} +2 -2
- package/dist/cdn/{NL26TI4R.js → K5U7ZHCS.js} +3 -3
- package/dist/cdn/{5RFM6MUZ.js → KCTOUFKC.js} +3 -3
- package/dist/cdn/{7TPSN3OZ.js → KJEGNTYQ.js} +3 -3
- package/dist/cdn/{E7JSS6TZ.js → KORLC5U7.js} +3 -3
- package/dist/cdn/{G5J7AYET.js → KQHBJ2QB.js} +2 -2
- package/dist/cdn/{NH4S2EP6.js → KQM2NMJJ.js} +3 -3
- package/dist/cdn/{4L7ZMWIA.js → KSKZZDYX.js} +2 -2
- package/dist/cdn/{FIUCHRQF.js → KURD67WP.js} +3 -3
- package/dist/cdn/{26A7IUMW.js → KVSY5222.js} +3 -3
- package/dist/cdn/{AXLUQP4L.js → KXEXXT56.js} +3 -3
- package/dist/cdn/{SOHGAMG2.js → KXKBIVFJ.js} +3 -3
- package/dist/cdn/{HFFRR5LZ.js → KYYMWKPV.js} +3 -3
- package/dist/cdn/{JXWLSI7W.js → KZ2V3URW.js} +3 -3
- package/dist/cdn/L2O6CXOR.js +18 -0
- package/dist/cdn/{2BCLZ6CT.js → LA735BCX.js} +3 -3
- package/dist/cdn/{2BWMHRH4.js → LETYH73H.js} +3 -3
- package/dist/cdn/{NCBU44KK.js → LNOZBYMZ.js} +3 -3
- package/dist/cdn/{XRBYIFHY.js → LPJPNWKA.js} +3 -3
- package/dist/cdn/{53KQQRS4.js → LUKTYB6E.js} +3 -3
- package/dist/cdn/{YHYQGDEU.js → LZIYOPAC.js} +3 -3
- package/dist/cdn/{2CDAKBYX.js → LZUM3H4J.js} +3 -3
- package/dist/cdn/{46ZDALTQ.js → M2TJWZ2F.js} +3 -3
- package/dist/cdn/{OYFNC4U6.js → M46DOI6W.js} +2 -2
- package/dist/cdn/{5JGDNIJU.js → MB2DM6NF.js} +3 -3
- package/dist/cdn/{4ACOSJ2R.js → MDL3GASV.js} +3 -3
- package/dist/cdn/{DG6X6ND5.js → MEM675A5.js} +3 -3
- package/dist/cdn/{4UFKHCT4.js → MGON4SLN.js} +2 -2
- package/dist/cdn/{F7KJ6JU5.js → MK3C2NWT.js} +3 -3
- package/dist/cdn/{IYRAUVEG.js → MNBZZ6G3.js} +3 -3
- package/dist/cdn/{AL6OH2HL.js → MOAD2WOZ.js} +3 -3
- package/dist/cdn/{ONHXUPVG.js → MOKFQR6C.js} +3 -3
- package/dist/cdn/{PSX4TZJP.js → MQDP5X2Y.js} +2 -2
- package/dist/cdn/{KB26CFS5.js → MQE2DTF5.js} +2 -2
- package/dist/cdn/{A7HIU3CH.js → MTQRP42U.js} +2 -2
- package/dist/cdn/MZFDMEQW.js +4 -0
- package/dist/cdn/{JNYHCS6W.js → NAFDFLKN.js} +3 -3
- package/dist/cdn/{DELGK4BU.js → NAWCG6BY.js} +3 -3
- package/dist/cdn/NF5TB4T5.js +4 -0
- package/dist/cdn/{I5ADXZSK.js → NLWFERKV.js} +4 -4
- package/dist/cdn/NM6FSLHS.js +4 -0
- package/dist/cdn/{QE2S7FMO.js → NNT3DJXP.js} +2 -2
- package/dist/cdn/{GKFQSVNR.js → NR4TU43I.js} +3 -3
- package/dist/cdn/{TYB33GBX.js → NSJNK5YX.js} +3 -3
- package/dist/cdn/{65EP7IPW.js → NTN5IKQX.js} +3 -3
- package/dist/cdn/{B4SUA3W7.js → NVBXPDWS.js} +3 -3
- package/dist/cdn/{2WOT62PD.js → NVOMEAQG.js} +3 -3
- package/dist/cdn/{2J4G54AQ.js → NW5D2PXR.js} +3 -3
- package/dist/cdn/{YCOUYTAZ.js → NWAXN6PC.js} +3 -3
- package/dist/cdn/{TPQBOF3P.js → NYH5N4UB.js} +3 -3
- package/dist/cdn/{K36E76AY.js → O3ZWY3L2.js} +3 -3
- package/dist/cdn/{T2ZH3NKY.js → O6WPAEXC.js} +3 -3
- package/dist/cdn/{YETRMAS4.js → O7K2BTNK.js} +3 -3
- package/dist/cdn/{SPLHZ3N7.js → O7KVFY2I.js} +3 -3
- package/dist/cdn/{3Z52A6AW.js → OFMGQCKQ.js} +3 -3
- package/dist/cdn/{MBGCB6OG.js → OGKY3OCB.js} +3 -3
- package/dist/cdn/{ZY4JIOV6.js → OHBU7SZN.js} +3 -3
- package/dist/cdn/{GPMIA743.js → OI7TKT4E.js} +3 -3
- package/dist/cdn/{3I4KGLJ2.js → OLVN3BUK.js} +3 -3
- package/dist/cdn/{2JEEZNQU.js → OS2R7DZG.js} +3 -3
- package/dist/cdn/{T5UO2UPO.js → OWSYDJWA.js} +3 -3
- package/dist/cdn/{7TQGZSOS.js → OXW67XUN.js} +3 -3
- package/dist/cdn/OY2ZL2MH.js +4 -0
- package/dist/cdn/{2BTAF23L.js → P4SJ4TW3.js} +3 -3
- package/dist/cdn/{OTTNFPEO.js → PCXV5WCW.js} +3 -3
- package/dist/cdn/{T53MA6GA.js → PDD2INCO.js} +3 -3
- package/dist/cdn/{XOYKKKBX.js → PDM2TVRE.js} +3 -3
- package/dist/cdn/{27ZTA7Z7.js → PHK7ECEK.js} +3 -3
- package/dist/cdn/{VIGDHAXV.js → PKW5U5JD.js} +3 -3
- package/dist/cdn/{DTPMMVFN.js → PMVAYDID.js} +3 -3
- package/dist/cdn/{2JFRXKUJ.js → PTQNSUMQ.js} +3 -3
- package/dist/cdn/{VUBDTATP.js → PV3NKFWO.js} +10 -5
- package/dist/cdn/{2IG3IMPC.js → Q4ILVP7M.js} +3 -3
- package/dist/cdn/{AMQ6Z4TC.js → Q5JBWZWR.js} +3 -3
- package/dist/cdn/{F6LLK63V.js → Q63YUEPK.js} +3 -3
- package/dist/cdn/{NG46OHWH.js → QAQPOJT3.js} +2 -2
- package/dist/cdn/{U4VWSAWK.js → QDOOFKZT.js} +3 -3
- package/dist/cdn/{4GJOG2F4.js → QHDUDNQB.js} +3 -3
- package/dist/cdn/{6LZA3IU7.js → QK7H3QEZ.js} +2 -2
- package/dist/cdn/{ABKXGOLH.js → QLGVQPSP.js} +3 -3
- package/dist/cdn/{J6ZDDC7T.js → QT7SOK6K.js} +3 -3
- package/dist/cdn/{LV2EHSXJ.js → QTPWQXFC.js} +3 -3
- package/dist/cdn/{QFMJ7ICF.js → QVZEI2LS.js} +3 -3
- package/dist/cdn/{LTCTW5SI.js → QWFYFDGT.js} +2 -2
- package/dist/cdn/{TO563LCJ.js → R3MDKVZV.js} +3 -3
- package/dist/cdn/{BPUJQWHO.js → R5IZJTD3.js} +3 -3
- package/dist/cdn/{CGRUPQKB.js → R5SUWIAX.js} +3 -3
- package/dist/cdn/{ZUP2X5AU.js → RHR64B37.js} +3 -3
- package/dist/cdn/{PQLAT5KP.js → RQXTVQCL.js} +3 -3
- package/dist/cdn/{XIO74BNK.js → RR4VEAAE.js} +3 -3
- package/dist/cdn/{DYU53Y76.js → RWC6IC3I.js} +3 -3
- package/dist/cdn/{A5NORFQ3.js → RY4AM746.js} +3 -3
- package/dist/cdn/{XOQOHYCH.js → S6NACDB2.js} +3 -3
- package/dist/cdn/{2UB4CICT.js → SPZK2YXW.js} +3 -3
- package/dist/cdn/{3ALCYZ3Q.js → SS3YAHMD.js} +3 -3
- package/dist/cdn/{VSI5R4LM.js → T3RNILJN.js} +3 -3
- package/dist/cdn/{NJF4SHQQ.js → T5OCPOMY.js} +3 -3
- package/dist/cdn/{ETND67WR.js → T5SK6ZJW.js} +3 -3
- package/dist/cdn/{Y7UHPKGK.js → TB2NFORT.js} +3 -3
- package/dist/cdn/{IOIU2LQ7.js → TCJAIPWL.js} +3 -3
- package/dist/cdn/{4LWHDNDR.js → TCORLZCI.js} +3 -3
- package/dist/cdn/{MDUZXVAQ.js → TFT2UUZJ.js} +3 -3
- package/dist/cdn/{WPJ4D5AX.js → TJYHQJCY.js} +3 -3
- package/dist/cdn/{BGNGMZZR.js → TMEKDW2G.js} +3 -3
- package/dist/cdn/{B6Z3B7WO.js → TMNFYXWD.js} +3 -3
- package/dist/cdn/{LG4FCYVC.js → TMRDI3WC.js} +3 -3
- package/dist/cdn/{2CZX6QRM.js → TTAAIUU3.js} +3 -3
- package/dist/cdn/{MGSTYEHN.js → U2MIR3HL.js} +3 -3
- package/dist/cdn/U3QZIS3C.js +4 -0
- package/dist/cdn/{GYQWDRLR.js → U3VTY66Y.js} +3 -3
- package/dist/cdn/{7KUJV4HC.js → U5XUYD32.js} +3 -3
- package/dist/cdn/{L4YSSYQH.js → UBTE3LJB.js} +3 -3
- package/dist/cdn/{E2H2TMYA.js → UGI2HCBX.js} +3 -3
- package/dist/cdn/{HFVS4CAO.js → ULELHCUW.js} +2 -2
- package/dist/cdn/{55QFSM4Z.js → ULHGH3CX.js} +3 -3
- package/dist/cdn/{Z263ME6T.js → UNCK4FW5.js} +3 -3
- package/dist/cdn/UQGQFHTP.js +4 -0
- package/dist/cdn/{BFJ3MBJ3.js → URMO7GLW.js} +3 -3
- package/dist/cdn/{4N5DLQ55.js → USO4FEJS.js} +3 -3
- package/dist/cdn/{LKGNNJ5C.js → UVMWA227.js} +3 -3
- package/dist/cdn/{HODMV4M5.js → UXPF53LA.js} +3 -3
- package/dist/cdn/{EQIDO6DW.js → UXZC7IGT.js} +3 -3
- package/dist/cdn/{CY3IW6EI.js → V2II4COO.js} +3 -3
- package/dist/cdn/{56TBWRRO.js → V623WVLR.js} +3 -3
- package/dist/cdn/{4REQUGTX.js → V74LH3IK.js} +3 -3
- package/dist/cdn/{QI3DTK6Y.js → V7H6MEIS.js} +3 -3
- package/dist/cdn/{ELLRXQO4.js → VFRHV2HY.js} +3 -3
- package/dist/cdn/{C5IVPFPI.js → VLRXMBNG.js} +3 -3
- package/dist/cdn/{CDEY6E3D.js → VPFAWHJS.js} +2 -2
- package/dist/cdn/W45EDCYZ.js +18 -0
- package/dist/cdn/WBO3VKCK.js +4 -0
- package/dist/cdn/WDPM64EG.js +4 -0
- package/dist/cdn/{YBH5KSXC.js → WJKAHLIO.js} +3 -3
- package/dist/cdn/{DG7ELQI5.js → WKQNA7HE.js} +3 -3
- package/dist/cdn/{RFQTBJV3.js → WNLGN4CE.js} +3 -3
- package/dist/cdn/{KJNHCW6Z.js → WTU7JILZ.js} +3 -3
- package/dist/cdn/{L4UMBNSK.js → WV4ZCFFT.js} +3 -3
- package/dist/cdn/{7DNPNWRU.js → XFW3K5OF.js} +3 -3
- package/dist/cdn/{4BCG3VKN.js → XFZNGT7C.js} +3 -3
- package/dist/cdn/{6Q3BQ2FC.js → XINUYSXZ.js} +3 -3
- package/dist/cdn/{MRQCKP3E.js → XLHINQDA.js} +3 -3
- package/dist/cdn/{6YCAEYPE.js → XQYYFNOC.js} +2 -2
- package/dist/cdn/{EWNQPSM6.js → XSERGQVD.js} +3 -3
- package/dist/cdn/XUXRXNUV.js +4 -0
- package/dist/cdn/{JQSLLFKL.js → XWYN5XJT.js} +3 -3
- package/dist/cdn/{TOSZWSLH.js → XYIEX7QB.js} +3 -3
- package/dist/cdn/{DZCKXQ37.js → Y2YYJ66T.js} +3 -3
- package/dist/cdn/{YJPQ6I7G.js → Y7U5BQY2.js} +3 -3
- package/dist/cdn/{SL7A3O2M.js → YFJ3R7UO.js} +3 -3
- package/dist/cdn/{H55NCRTY.js → YGKTKWJH.js} +3 -3
- package/dist/cdn/{OY6K2PSA.js → YJUZZNM3.js} +3 -3
- package/dist/cdn/{IJYKJ7U3.js → YOCF54TS.js} +3 -3
- package/dist/cdn/{RDZOTUWI.js → YODKEVX7.js} +3 -3
- package/dist/cdn/{LFR22E5T.js → Z7QQNFJ7.js} +3 -3
- package/dist/cdn/{E26HA4PU.js → ZG7Z2ZV5.js} +2 -2
- package/dist/cdn/{L3O7A2E6.js → ZH5IG5IH.js} +3 -3
- package/dist/cdn/{5RVCGMJ7.js → ZJFAIID3.js} +3 -3
- package/dist/cdn/{3BCMTX5A.js → ZN7CNQRT.js} +3 -3
- package/dist/cdn/{37LSWZCZ.js → ZSPXSDH4.js} +3 -3
- package/dist/cdn/ZTCFEMKZ.js +4 -0
- package/dist/cdn/{L4PGMPKA.js → ZYEOJZ6Z.js} +3 -3
- package/dist/cdn/index.js +3 -3
- package/dist/chunks/Auth.js +2 -2
- package/dist/chunks/CardsFetcher.js +2 -2
- package/dist/chunks/appConfig.js +2 -2
- package/dist/chunks/cardFetchingUtils.js +2 -2
- package/dist/chunks/cardsHelpers.js +2 -2
- package/dist/chunks/common.js +2 -2
- package/dist/chunks/deployAppContexts.js +2 -2
- package/dist/chunks/downloadUtils.js +2 -2
- package/dist/chunks/getItemIcon.js +2 -2
- package/dist/chunks/helpers.js +2 -2
- package/dist/chunks/interfaces.js +2 -2
- package/dist/chunks/loadModules.js +2 -2
- package/dist/chunks/mapViewUtils.js +2 -2
- package/dist/chunks/pciUtils.js +2 -2
- package/dist/chunks/popupUtils.js +2 -2
- package/dist/chunks/prepareDataForSolutionDisplay.js +2 -2
- package/dist/chunks/privilegeUtils.js +2 -2
- package/dist/chunks/publicNotificationContext.js +2 -2
- package/dist/chunks/queryUtils.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/solution-store.js +2 -2
- package/dist/chunks/templates.js +2 -2
- package/dist/chunks/useT9n.js +2 -2
- package/dist/components/arcgis-solutions-assistant/customElement.js +2 -2
- package/dist/components/basemap-gallery/customElement.js +2 -2
- package/dist/components/buffer-tools/customElement.js +2 -2
- package/dist/components/card-manager/customElement.js +2 -2
- package/dist/components/consent-manager/customElement.js +2 -2
- package/dist/components/create-feature/customElement.js +2 -2
- package/dist/components/create-related-feature/customElement.js +2 -2
- package/dist/components/crowdsource-manager/customElement.js +2 -2
- package/dist/components/crowdsource-reporter/customElement.js +2 -2
- package/dist/components/deduct-calculator/customElement.js +2 -2
- package/dist/components/delete-button/customElement.js +2 -2
- package/dist/components/delete-dialog/customElement.js +2 -2
- package/dist/components/edit-card/customElement.js +2 -2
- package/dist/components/feature-details/customElement.js +2 -2
- package/dist/components/feature-list/customElement.js +2 -2
- package/dist/components/field-selection/customElement.js +2 -2
- package/dist/components/floor-filter/customElement.js +2 -2
- package/dist/components/info-card/customElement.js +2 -2
- package/dist/components/json-editor/customElement.js +2 -2
- package/dist/components/layer-list/customElement.js +2 -2
- package/dist/components/layer-table/customElement.js +2 -2
- package/dist/components/map-card/customElement.js +2 -2
- package/dist/components/map-draw-tools/customElement.js +2 -2
- package/dist/components/map-fullscreen/customElement.js +2 -2
- package/dist/components/map-layer-picker/customElement.js +2 -2
- package/dist/components/map-legend/customElement.js +2 -2
- package/dist/components/map-picker/customElement.js +2 -2
- package/dist/components/map-search/customElement.js +2 -2
- package/dist/components/map-select-tools/customElement.js +2 -2
- package/dist/components/map-tools/customElement.js +2 -2
- package/dist/components/pci-calculator/customElement.js +2 -2
- package/dist/components/pdf-download/customElement.js +2 -2
- package/dist/components/public-notification/customElement.js +2 -2
- package/dist/components/refine-selection/customElement.js +2 -2
- package/dist/components/selection-tool/customElement.js +2 -2
- package/dist/components/solution-article-card/customElement.js +2 -2
- package/dist/components/solution-configuration/customElement.js +2 -2
- package/dist/components/solution-configure-dialog/customElement.js +2 -2
- package/dist/components/solution-configure-titles/customElement.js +2 -2
- package/dist/components/solution-contents/customElement.js +2 -2
- package/dist/components/solution-delete-dialog/customElement.js +2 -2
- package/dist/components/solution-deploy-dialog/customElement.js +2 -2
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deploying-dialog/customElement.js +2 -2
- package/dist/components/solution-details-card/customElement.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +2 -2
- package/dist/components/solution-item/customElement.js +2 -2
- package/dist/components/solution-item-accordion/customElement.js +2 -2
- package/dist/components/solution-item-details/customElement.js +2 -2
- package/dist/components/solution-item-diagram/customElement.js +2 -2
- package/dist/components/solution-item-icon/customElement.js +2 -2
- package/dist/components/solution-item-sharing/customElement.js +2 -2
- package/dist/components/solution-organization-variables/customElement.js +2 -2
- package/dist/components/solution-resource-item/customElement.js +2 -2
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
- package/dist/components/solution-social-share/customElement.js +2 -2
- package/dist/components/solution-spatial-ref/customElement.js +2 -2
- package/dist/components/solution-template-data/customElement.js +2 -2
- package/dist/components/solution-variables/customElement.js +2 -2
- package/dist/components/solutions-all-panel/customElement.js +2 -2
- package/dist/components/solutions-all-shell/customElement.js +2 -2
- package/dist/components/solutions-article-panel/customElement.js +2 -2
- package/dist/components/solutions-articles/customElement.js +2 -2
- package/dist/components/solutions-articles-shell/customElement.js +2 -2
- package/dist/components/solutions-deploy-app/customElement.js +9 -8
- package/dist/components/solutions-deploy-app-nav/customElement.js +9 -9
- package/dist/components/solutions-deployed-filter-panel/customElement.js +2 -2
- package/dist/components/solutions-deployed-panel/customElement.js +2 -2
- package/dist/components/solutions-deployed-shell/customElement.js +2 -2
- package/dist/components/solutions-filter-panel/customElement.js +2 -2
- package/dist/components/solutions-searchsort-toolbar/customElement.js +2 -2
- package/dist/components/spatial-ref/customElement.js +2 -2
- package/dist/components/store-manager/customElement.js +2 -2
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +2 -2
- package/dist/loader.js +2 -2
- package/package.json +1 -1
- package/dist/cdn/3NDVWJHY.js +0 -18
- package/dist/cdn/4GP2UQG2.js +0 -4
- package/dist/cdn/6WOQW2IE.js +0 -4
- package/dist/cdn/BUV3Z6DV.js +0 -4
- package/dist/cdn/F3LYA4NW.js +0 -4
- package/dist/cdn/FP7ZWUGT.js +0 -4
- package/dist/cdn/FUUJFLHK.js +0 -4
- package/dist/cdn/FUYZJXZ3.js +0 -4
- package/dist/cdn/HQF37WJP.js +0 -4
- package/dist/cdn/HXU762XJ.js +0 -4
- package/dist/cdn/IL5ASV53.js +0 -4
- package/dist/cdn/KM72PDVP.js +0 -4
- package/dist/cdn/LG5TLQOT.js +0 -4
- package/dist/cdn/NLD43RT5.js +0 -4
- package/dist/cdn/NMMNVZIR.js +0 -4
- package/dist/cdn/NZVAVQXY.js +0 -4
- package/dist/cdn/OGDSICU2.js +0 -4
- package/dist/cdn/OYNCPS5E.js +0 -4
- package/dist/cdn/RFLDN7DB.js +0 -4
- package/dist/cdn/RGWP6ZGP.js +0 -4
- package/dist/cdn/RHRIOV47.js +0 -18
- package/dist/cdn/S6UDZKPG.js +0 -4
- package/dist/cdn/S7PRSYYO.js +0 -4
- package/dist/cdn/SSUW7XWL.js +0 -4
- package/dist/cdn/TC4NP6KF.js +0 -4
- package/dist/cdn/VHUAYRQ7.js +0 -4
- package/dist/cdn/W4GLLZOA.js +0 -4
- package/dist/cdn/ZA4AREPP.js +0 -4
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as yt}from"./MBGCB6OG.js";import{a as L}from"./6ATB2NEI.js";import{a as G}from"./OGDSICU2.js";import{c as J,n as X,t as K,z as Q}from"./3KQWJHJU.js";import{b as q}from"./KM72PDVP.js";import"./4N5DLQ55.js";import"./AUCQU57I.js";import{C as m,D as d,E as j,G as h,h as V,i as c,l as $,o as z}from"./YGBNP67C.js";import{d as vt}from"./4UFKHCT4.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function w(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var v=null;function T(e={}){return v||(e.includeStyleProperties?(v=e.includeStyleProperties,v):(v=w(window.getComputedStyle(document.documentElement)),v))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function F(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function It(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function R(e,t){return`data:${t};base64,${e}`}async function D(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var M={};function $t(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=$t(e,t,i.includeQueryParams);if(M[n]!=null)return M[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await D(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),It(o)));r=R(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return M[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=w(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=w(e.contentDocument.body.childNodes):s=w(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ht(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ht(e,t),Ut(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function jt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function qt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=R(p,a)}else o=await E(s,a,n);return e.replace(jt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(zt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function A(e){return e.search(ot)!==-1}async function k(e,t,i){if(!A(e))return e;let n=Jt(e,i);return qt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=w(e.childNodes).map(r=>B(r,t));await Promise.all(n).then(()=>e)}async function B(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),D(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(x=>ht(x,t)).then(x=>dt(x).forEach(I=>{try{r.insertRule(I,I.startsWith("@import")?o+=1:r.cssRules.length)}catch(xt){console.error("Error inserting rule from remote css",{rule:I,error:xt})}})).catch(x=>{console.error("Error loading remote css",x.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>A(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=w(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
|
|
5
|
-
`)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=F(e,t),r=await P(e,t,!0);return await gt(r,t),await B(r,t),pt(r,t),await et(r,i,n)}async function ft(e,t={}){let{width:i,height:n}=F(e,t),r=await ee(e,t),s=await y(r),a=document.createElement("canvas"),o=a.getContext("2d"),p=t.pixelRatio||N(),f=t.canvasWidth||i,x=t.canvasHeight||n;return a.width=f*p,a.height=x*p,t.skipAutoScale||tt(a),a.style.width=`${f}`,a.style.height=`${x}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function wt(e,t={}){return(await ft(e,t)).toDataURL()}async function
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as yt}from"./OGKY3OCB.js";import{a as L}from"./3AXQAZAI.js";import{a as G}from"./NM6FSLHS.js";import{c as J,n as X,t as K,z as Q}from"./32GCN42P.js";import{b as j}from"./NF5TB4T5.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{C as m,D as d,E as z,G as h,h as V,i as c,l as I,o as q}from"./4XYYUSUA.js";import{d as vt}from"./MGON4SLN.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function w(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var v=null;function T(e={}){return v||(e.includeStyleProperties?(v=e.includeStyleProperties,v):(v=w(window.getComputedStyle(document.documentElement)),v))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function F(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function $t(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function R(e,t){return`data:${t};base64,${e}`}async function D(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var M={};function It(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=It(e,t,i.includeQueryParams);if(M[n]!=null)return M[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await D(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),$t(o)));r=R(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return M[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=w(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=w(e.contentDocument.body.childNodes):s=w(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ut(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ht(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ut(e,t),Ht(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,qt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function zt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function jt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=R(p,a)}else o=await E(s,a,n);return e.replace(zt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(qt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function A(e){return e.search(ot)!==-1}async function k(e,t,i){if(!A(e))return e;let n=Jt(e,i);return jt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=w(e.childNodes).map(r=>B(r,t));await Promise.all(n).then(()=>e)}async function B(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),D(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(x=>ht(x,t)).then(x=>dt(x).forEach($=>{try{r.insertRule($,$.startsWith("@import")?o+=1:r.cssRules.length)}catch(xt){console.error("Error inserting rule from remote css",{rule:$,error:xt})}})).catch(x=>{console.error("Error loading remote css",x.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>A(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=w(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
|
|
5
|
+
`)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=F(e,t),r=await P(e,t,!0);return await gt(r,t),await B(r,t),pt(r,t),await et(r,i,n)}async function ft(e,t={}){let{width:i,height:n}=F(e,t),r=await ee(e,t),s=await y(r),a=document.createElement("canvas"),o=a.getContext("2d"),p=t.pixelRatio||N(),f=t.canvasWidth||i,x=t.canvasHeight||n;return a.width=f*p,a.height=x*p,t.skipAutoScale||tt(a),a.style.width=`${f}`,a.style.height=`${x}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function wt(e,t={}){return(await ft(e,t)).toDataURL()}async function U(e,t={}){return(await ft(e,t)).toDataURL("image/jpeg",t.quality||1)}var O=vt(yt(),1);var ie=`
|
|
6
6
|
@media print {
|
|
7
7
|
@page {
|
|
8
8
|
size: Portrait;
|
|
9
9
|
margin: .25in;
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
background: #fff;
|
|
14
|
+
overflow: unset;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
html, body {
|
|
13
18
|
padding: 0;
|
|
@@ -377,4 +382,4 @@ import{a as yt}from"./MBGCB6OG.js";import{a as L}from"./6ATB2NEI.js";import{a as
|
|
|
377
382
|
|
|
378
383
|
.screenshot-img-container calcite-button {
|
|
379
384
|
margin: 5px;
|
|
380
|
-
}`,re=V`:host{display:block;--instant-apps-export-action-background: var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover: var(--calcite-color-foreground-2);--instant-apps-export-action-background-press: var(--calcite-color-foreground-3);--instant-apps-export-action-height: 100%;--instant-apps-export-action-width: fit-content;--instant-apps-export-action-icon-color: var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-export-background: var(--calcite-color-foreground-1);--instant-apps-export-text-color: var(--calcite-color-text-1);--instant-apps-export-popover-width: 250px;--instant-apps-export-button-text-dark-hover-color: #fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1: var(--instant-apps-export-action-background);--calcite-color-foreground-2: var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3: var(--instant-apps-export-action-background-press);--calcite-color-text-3: var(--instant-apps-export-action-icon-color);--calcite-color-text-1: var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1: var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1: var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1: #fff;--calcite-color-foreground-2: #f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover: #fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1: #2b2b2b;--calcite-color-foreground-2: #202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px #0000004d}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}`,l={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewWrapper:"instant-apps-export-print__view-wrapper",attribution:"instant-apps-export-print__attribution"}},U="instant-app-export-drag",W=class extends j{constructor(){super(...arguments),this._messages=G({name:"instant-apps-export",blocking:!0}),this.compassContainerEl=m(),this.extraContainerEl=m(),this.popoverEl=m(),this.popupContainerEl=m(),this.popupContentEl=m(),this.popupTitleEl=m(),this.printContainerEl=m(),this.printEl=m(),this.scaleBarContainerEl=m(),this.viewWrapperEl=m(),this.viewContainerEl=m(),this.viewEl=m(),this.attributionEl=m(),this.baseClass=l.baseLight,this.exportIsLoading=void 0,this.allowedFileTypes=["PDF","JPG","PNG"],this.beforeExport=async()=>await Promise.resolve(),this.popoverIcon="export",this.headerTitle="",this.logoImage="",this.mapAltText="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.exportOutputUpdated=z()}static{this.properties={baseClass:16,exportIsLoading:16,selectedFileType:16,allowedFileTypes:0,output:0,beforeExport:0,popoverIcon:1,extraContent:0,extraContentLabel:1,headerTitle:1,logoImage:1,logoAltText:1,mapAltText:1,includeExtraContent:5,showExtraContentInImg:5,includeLegend:5,includeMap:5,includePopup:5,includeFileFormat:5,mode:3,popoverPositioning:1,popoverPlacement:1,scale:1,showHeaderTitle:5,showIncludeLegend:5,showIncludeMap:5,showIncludePopup:5,showScaleBar:5,view:0,maskBackground:1,maskBorder:1,defaultFileType:1}}static{this.styles=re}async load(){this.selectedFileType=this.getDefaultFileType(),this.pdfIncludeMap=this.includeMap,this.baseClass=L(this.el)==="dark"?l.baseDark:l.baseLight,await this.initializeModules()}willUpdate(t){t.has("view")?this.handleIncludePopup():t.has("allowedFileTypes")&&(this.allowedFileTypes?.length||(this.allowedFileTypes=["PDF","JPG","PNG"]),this.selectedFileType=this.getDefaultFileType())}loaded(){this.printEl.value&&(this.printContainerEl.value?.prepend(this.printEl.value),this.handleIncludePopup())}getDefaultFileType(){return this.defaultFileType??this.allowedFileTypes?.[0]??"PDF"}async initializeModules(){let t=await Q();this.handles=await J(),this.reactiveUtils=t}optionOnChange(t){let i=t.target,n=i.value;this[n]=i.checked,this.updateExportOutput()}updateHeaderTitle(t){let i=t.target;this.headerTitle=i.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1)}async exportPreviewOnClick(){this.selectedFileType==="PDF"?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1)}exportImg(){if(this.resetPopupVisibility(),!this.dataUrl)return;let t=document.createElement("a");t.id="download-link",t.href=this.dataUrl;let i=this.headerTitle??document.title,n=this.selectedFileType?.toLowerCase()??"jpg";t.download=`${i}.${n}`,t.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){this.view?(this.addPrintStyling(),this.printEl.value&&document.body.prepend(this.printEl.value),this.handleExtraContent(),this.includeMap?(this.updateAttribution(),this.updateScaleBar(),this.viewScreenshot(),this.handleImgLoaded()):this.handleImgLoaded()):this.popoverEl.value&&(this.popoverEl.value.open=!1)}addPrintStyling(){this.printStyleEl||(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML=ie,document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout(()=>{this.selectedFileType==="PDF"&&(this.exportIsLoading=!1),this.setupViewPrintElements()},1500)}handleExtraContent(){if(!this.printEl.value)return;let t=this.printEl.value.querySelector("#export-content");if(t){t.innerHTML="";let i=this.extraContent&&this.includeExtraContent,n=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&i;this.printEl.value.classList.toggle(l.print.imgExtraContent,n),i?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none"}else this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent&&this.printEl.value.classList.toggle(l.print.imgExtraContent,!1)}resetPrintContent(){if(!this.view||!this.printEl.value)return;this.screenshot=null,this.printContainerEl.value?.prepend(this.printEl.value),this.printStyleEl?.remove(),this.tmpPopupTitleEl?.remove(),this.printStyleEl=void 0;let t=this.printEl.value.querySelector("#export-content");t&&(t.innerHTML="")}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl.value||!this.printEl.value)return;this.popupContainerEl.value.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none",this.checkPopupOpen();let t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;if(this.printEl.value.classList.toggle(l.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t),t){let i=document.createElement(`h${this.view?.popup?.headingLevel??2}`);i.innerHTML=this.view?.popup?.title??"",i.className="esri-widget__heading esri-popup__header-title",this.popupTitleEl.value?(this.popupTitleEl.value.style.display=this.view?.popup?.title?"block":"none",this.popupTitleEl.value.innerHTML="",this.popupTitleEl.value.prepend(i)):(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none",this.popupContainerEl.value.prepend(this.tmpPopupTitleEl))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(this.view)if(this.handleLegendSetup(),this.selectedFileType==="PDF"){let t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout(()=>{this.resetPrintContent()},1e3)}else this.convertToImage()}async convertToImage(){/^((?!chrome|android).)*safari/iu.test(navigator?.userAgent)?await this.handleSafariToImage():await this.handleToImage()}async handleSafariToImage(){if(!this.printEl.value)return;let t={allowTaint:!0,logging:!1},i=this.selectedFileType==="PNG"?"image/png":"image/jpeg",n="";try{n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}catch{this.logoImage=void 0;let r=500;await new Promise(s=>setTimeout(s,r)),n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}finally{this.handleSetupImage(n)}}async handleToImage(){if(!this.printEl.value)return;let t={backgroundColor:"#FFF",skipFonts:!0},i="";try{this.selectedFileType==="JPG"?i=await H(this.printEl.value,t):i=await wt(this.printEl.value,t)}catch{this.logoImage=void 0;let n=500;await new Promise(r=>setTimeout(r,n)),i=await H(this.printEl.value,t)}finally{this.handleSetupImage(i)}}handleSetupImage(t){this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null))}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl){let t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup)return;let t="includePopup";this.handles.remove(t),this.reactiveUtils.whenOnce(()=>this.view?.ready).then(()=>{!this.reactiveUtils||!this.handles||this.handles.add(this.reactiveUtils.watch(()=>this.view?.popup?.visible===!0,i=>{this.settingMapArea||(this.includePopup=i)}),t)})}handleLegendContainer(t){this.legendContainerEl=t,this.updateLegend()}handleLegendCreation(){if(this.view&&this.showIncludeLegend&&this.legendContainerEl){let t=this.view.map,i=this.legend?.view?.map;t?.portalItem?.id&&t?.portalItem?.id===i?.portalItem?.id||this.updateLegend()}}updateLegend(){this.view?.when(async t=>{if(!this.legendContainerEl)return;this.legendContainerEl.innerHTML="";let i=document.createElement("div");this.legendContainerEl.append(i),this.legend!=null?(this.legend.container=i,this.legend.view=t):this.legend=await K({container:i,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})})}handleCompassCreation(){if(this.view&&this.compassContainerEl.value){let t=this.view.map,i=this.compass?.view?.map;t?.portalItem?.id===i?.portalItem?.id||this.updateCompass()}}updateCompass(){this.view?.when(async t=>{this.compass&&(this.compass.destroy(),this.compass=null);let i=document.createElement("div");this.compassContainerEl.value?.append(i),this.compass=await X({container:i,view:t})})}updateScaleBar(){if(this.scaleBarContainerEl.value&&this.view&&(this.scaleBarContainerEl.value.innerHTML="",this.showScaleBar)){let t=this.view?.ui?.getComponents()?.find(({container:i})=>i?.className?.includes("esri-scale-bar"));t?.container&&typeof t.container!="string"&&this.scaleBarContainerEl.value.append(t.container.cloneNode(!0))}}updateAttribution(){if(!this.attributionEl.value||!this.view)return;this.attributionEl.value.innerHTML="";let t=this.view.ui.find("attribution");if(!t?.attributionText)return;let i=t.viewModel.items.map(r=>this.getAttributionText(r)).filter((r,s,a)=>!!r&&a.indexOf(r)===s),n=" | ";this.attributionEl.value.innerHTML=i.join(n)}getAttributionText(t){if(!t.text)return"";let i=t.text,n=t.layerView.layer,r="copyright"in n&&n.copyright?n.copyright:"";if("portalItem"in n&&n.portalItem!=null){let s=n.portalItem;if(s.accessInformation&&i===s.accessInformation)return i.replace(s.accessInformation,r)}return i}async viewScreenshot(){if(this.view&&this.includeMap&&(this.screenshot||(this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})),this.handleScaleBarSize(),this.viewEl.value&&this.viewWrapperEl.value)){let{height:t,width:i}=this.screenshot.data;t>i?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.value.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.selectedFileType==="PDF"&&this.printEl.value&&(this.printEl.value.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.value&&(this.viewEl.value.style.height="100%",this.viewEl.value.style.width=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="100%",this.viewWrapperEl.value.style.width="fit-content")}setMaxWidthOnViewContainer(){this.printEl.value&&(this.printEl.value.style.gridTemplateRows=""),this.viewEl.value&&(this.viewEl.value.style.width="100%",this.viewEl.value.style.height=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="fit-content",this.viewWrapperEl.value.style.width="100%")}checkPopupOpen(){if(this.view){let t=this.view?.popup?.container?.querySelector(".esri-popup .esri-feature__main-container");if(t&&this.popupContentEl.value){let i=t.querySelectorAll("canvas");this.popupContentEl.value.innerHTML="",this.popupContentEl.value.append(t.cloneNode(!0));let n=this.popupContentEl.value.querySelectorAll("canvas");i.forEach((r,s)=>{let a=r.toDataURL(),o=document.createElement("img");o.src=a;let p=r.getAttribute("style");p&&o.setAttribute("style",p);let f=n[s];f&&(f.replaceWith(o),L(this.el)==="dark"&&o.parentElement?.parentElement&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))})}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img"),this.screenshotImg.alt=this.mapAltText||"";let t=document.createElement("div"),i=document.createElement("calcite-button"),n=document.createElement("calcite-button");i.innerHTML=this.selectedFileType==="PDF"?this._messages.export:this._messages.downloadImage,n.innerHTML=this._messages.returnToMap,n.appearance="outline-fill",i.onclick=this.exportPreviewOnClick.bind(this),n.onclick=this.screenshotReturn.bind(this),t.append(n,i),this.screenshotImgContainer.append(this.screenshotImg,t),this.screenshotPreview.append(this.screenshotImgContainer),this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML=ne,this.view?.container?.append(this.screenshotStyle),this.view?.container?.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){if(this.view){if(this.settingMapArea=!0,t&&this.view?.popup?.visible){this.popupHiddenByMapArea=!0;let i=this.view?.popup?.container;i&&(i.style.display="none")}this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view?.container?.classList.add("screenshot-cursor","relative"),this.view.addHandles(this.view.on("drag",i=>{this.view&&(i.stopPropagation(),i.action!=="end"?this.updateMaskSize(i):this.maskScreenshot())}),U)}}updateMaskSize(t){if(this.view){let i=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),n=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),r=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),s=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:i,y:r,width:n-i,height:s-r},this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(U);let t=this.area.height,i=this.area.width;if(this.showScaleBar){let n=this.view.width>1e3&&this.view.width*.75<i;this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",n)}this.view.takeScreenshot({area:this.area,width:i*2,height:t*2,format:"jpg"}).then(n=>{this.screenshot=n,this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.selectedFileType==="PDF"?(this.showPreview(n?.dataUrl),this.resetPopupVisibility()):(this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1))})}}setMaskPosition(t){this.maskDivEl&&(t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove())}clamp(t,i,n){return t<i?i:t>n?n:t}showPreview(t){t&&(this.screenshotPreview?.classList.remove("hide"),this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"&&this.scaleBarContainerEl.value){let t=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--top"),i=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top"),this.setScaleBarWidth(i,"bottom")}}setScaleBarWidth(t,i){if(t&&this.screenshot){let n=this.screenshot.data.width/2,r=Number(t.style.width.replace("px",""))/n*100;this.scaleBarContainerEl.value?.style.setProperty(`--instant-apps-scale-bar-${i}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(U),this.screenshotPreview?.remove(),this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){let t=this.view?.popup?.container;t&&(t.style.display="")}this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){let i=t.target;this.selectedFileType=i.value,this.selectedFileType==="PDF"?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel(),i=this.renderCompass();return c`<div class=${h(this.baseClass)} @mouseenter=${this.handleWidgetCreation} @focusin=${this.handleWidgetCreation}>${t}<div class=${h(l.hidden)}>${i}</div></div>`}renderPopover(){let t=this.renderPanel();return[c`<calcite-popover reference-element=export-popover-btn .label=${this._messages.exportPopover} .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close ${d(this.popoverEl)}>${t}</calcite-popover>`,c`<calcite-action id=export-popover-btn alignment=center .icon=${this.popoverIcon} .scale=${this.scale} title=${this._messages.exportBtn??$} .text=${this._messages.exportBtn}></calcite-action>`]}renderPanel(){let t=this.showHeaderTitle?this.renderTitle():null,i=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null,n=this.showIncludeMap?this.renderSwitch("includeMap",void 0,this.selectedFileType!=="PDF"):null,r=this.includeMap?this.renderMapOptions():null,s=this.includeFileFormat?this.renderSelectFileType():null,a=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg(),o=this.mode==="inline"?l.inlineContainer:l.popoverContainer;return c`<div class=${h(o)}>${t}${i}${n}${r}${s}${this.includeMap?c`<calcite-button class=${h(l.setMapArea)} appearance=transparent width=full @click=${this.setMapAreaOnClick.bind(this,!0)} .disabled=${this.exportIsLoading}>${this._messages.setMapArea}</calcite-button>`:null}<calcite-button width=full @click=${this.exportOnClick} .disabled=${this.exportIsLoading}>${this.selectedFileType==="PDF"?this._messages.export:this._messages.preview}</calcite-button>${a}</div>`}renderTitle(){return c`<calcite-label>${this._messages.title}<calcite-input .value=${this.headerTitle} @calciteInputInput=${this.updateHeaderTitle}></calcite-input></calcite-label>`}renderSwitch(t,i,n){let r=this[t],s=t,a=i||this._messages[s];return c`<calcite-label layout=inline-space-between>${a}<calcite-switch .checked=${r} .value=${t} @calciteSwitchChange=${this.optionOnChange} .disabled=${n}></calcite-switch></calcite-label>`}renderSelectFileType(){return c`<calcite-label>${this._messages.fileType}<calcite-select label @calciteSelectChange=${this.handleSelectFileType}>${this.allowedFileTypes.map(t=>c`<calcite-option .value=${t} .selected=${t===this.selectedFileType}>${t}</calcite-option>`)}</calcite-select></calcite-label>`}renderMapOptions(){let t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,i=this.showIncludePopup?this.renderSwitch("includePopup"):null;return c`<div>${t}${i}</div>`}renderPrint(){let t=this.includeMap?this.renderPrintMap():null,i=this.renderExtraContent(),n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,r=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return c`<div ${d(this.printContainerEl)}><div class=${h(l.print.pdfBase)} ${d(this.printEl)}>${t}${n}<div class=${h(l.print.contentContainer)}>${r}${i}</div></div></div>`}renderPrintMap(){return c`<div class=${h(l.print.viewContainer)} ${d(this.viewContainerEl)}><div class=${h(l.print.viewWrapper)} ${d(this.viewWrapperEl)}>${this.headerTitle?c`<instant-apps-header .logoImage=${this.logoImage} .logoImageAltText=${this.logoAltText} logo-scale=s .titleText=${this.headerTitle} background-color=#fff text-color=#323232></instant-apps-header>`:null}<img class=${h(l.print.view)} alt=${this.mapAltText??$} ${d(this.viewEl)}><div class=${h(l.print.scaleBarContainer)} ${d(this.scaleBarContainerEl)}></div></div>${this.renderAttribution()}</div>`}renderAttribution(){return c`<div class=${h(l.print.attribution)} ${d(this.attributionEl)}></div>`}renderLegend(){return c`<div class=${h(l.print.legendContainer)} ${d(this.handleLegendContainer)}></div>`}renderCompass(){return c`<div class=${h(l.print.compassContainer)} ${d(this.compassContainerEl)}></div>`}renderPopup(){return c`<div class=${h(l.print.popupContainer)} ${d(this.popupContainerEl)}><div class=${h(l.print.popupTitle)} ${d(this.popupTitleEl)}></div><div class=${h(l.print.popupContent)} ${d(this.popupContentEl)}></div></div>`}renderExtraContent(){return c`<div class=${h(l.print.extraContainer)} id=export-content ${d(this.extraContainerEl)}></div>`}renderImg(){let t=this.includeMap?this.renderPrintMap():null,i=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,n;return this.includeMap&&this.showIncludePopup?n=this.renderPopup():this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent&&(n=this.renderExtraContent()),c`<div ${d(this.printContainerEl)}><div class=${h(l.print.imgBase)} ${d(this.printEl)}>${t}${i}${n}</div></div>`}};q("instant-apps-export",W);export{W as InstantAppsExport};
|
|
385
|
+
}`,re=V`:host{display:block;--instant-apps-export-action-background: var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover: var(--calcite-color-foreground-2);--instant-apps-export-action-background-press: var(--calcite-color-foreground-3);--instant-apps-export-action-height: 100%;--instant-apps-export-action-width: fit-content;--instant-apps-export-action-icon-color: var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-export-background: var(--calcite-color-foreground-1);--instant-apps-export-text-color: var(--calcite-color-text-1);--instant-apps-export-popover-width: 250px;--instant-apps-export-button-text-dark-hover-color: #fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1: var(--instant-apps-export-action-background);--calcite-color-foreground-2: var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3: var(--instant-apps-export-action-background-press);--calcite-color-text-3: var(--instant-apps-export-action-icon-color);--calcite-color-text-1: var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1: var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1: var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1: #fff;--calcite-color-foreground-2: #f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover: #fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1: #2b2b2b;--calcite-color-foreground-2: #202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px #0000004d}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}`,l={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewWrapper:"instant-apps-export-print__view-wrapper",attribution:"instant-apps-export-print__attribution"}},H="instant-app-export-drag",W=class extends z{constructor(){super(...arguments),this._messages=G({name:"instant-apps-export",blocking:!0}),this.compassContainerEl=m(),this.extraContainerEl=m(),this.legendContainerEl=m(),this.popoverEl=m(),this.popupContainerEl=m(),this.popupContentEl=m(),this.popupTitleEl=m(),this.printContainerEl=m(),this.printEl=m(),this.scaleBarContainerEl=m(),this.viewWrapperEl=m(),this.viewContainerEl=m(),this.viewEl=m(),this.attributionEl=m(),this.baseClass=l.baseLight,this.exportIsLoading=void 0,this.allowedFileTypes=["PDF","JPG","PNG"],this.beforeExport=async()=>await Promise.resolve(),this.popoverIcon="export",this.headerTitle="",this.logoImage="",this.mapAltText="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.exportOutputUpdated=q()}static{this.properties={baseClass:16,exportIsLoading:16,selectedFileType:16,allowedFileTypes:0,output:0,beforeExport:0,popoverIcon:1,extraContent:0,extraContentLabel:1,headerTitle:1,logoImage:1,logoAltText:1,mapAltText:1,includeExtraContent:5,showExtraContentInImg:5,includeLegend:5,includeMap:5,includePopup:5,includeFileFormat:5,mode:3,popoverPositioning:1,popoverPlacement:1,scale:1,showHeaderTitle:5,showIncludeLegend:5,showIncludeMap:5,showIncludePopup:5,showScaleBar:5,view:0,maskBackground:1,maskBorder:1,defaultFileType:1}}static{this.styles=re}async load(){this.selectedFileType=this.getDefaultFileType(),this.pdfIncludeMap=this.includeMap,this.baseClass=L(this.el)==="dark"?l.baseDark:l.baseLight,await this.initializeModules()}willUpdate(t){t.has("view")?this.handleIncludePopup():t.has("allowedFileTypes")&&(this.allowedFileTypes?.length||(this.allowedFileTypes=["PDF","JPG","PNG"]),this.selectedFileType=this.getDefaultFileType())}loaded(){this.printEl.value&&(this.printContainerEl.value?.prepend(this.printEl.value),this.handleIncludePopup())}getDefaultFileType(){return this.defaultFileType??this.allowedFileTypes?.[0]??"PDF"}async initializeModules(){let t=await Q();this.handles=await J(),this.reactiveUtils=t}optionOnChange(t){let i=t.target,n=i.value;this[n]=i.checked,this.updateExportOutput()}updateHeaderTitle(t){let i=t.target;this.headerTitle=i.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}async exportPreviewOnClick(){this.selectedFileType==="PDF"?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}exportImg(){if(this.resetPopupVisibility(),!this.dataUrl)return;let t=document.createElement("a");t.id="download-link",t.href=this.dataUrl;let i=this.headerTitle??document.title,n=this.selectedFileType?.toLowerCase()??"jpg";t.download=`${i}.${n}`,t.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){this.updateExportOutput(),this.view?(this.addPrintStyling(),this.printEl.value&&document.body.prepend(this.printEl.value),this.handleExtraContent(),this.includeMap?(this.updateAttribution(),this.updateScaleBar(),this.viewScreenshot(),this.requestUpdate(),this.handleImgLoaded()):(this.requestUpdate(),this.handleImgLoaded())):this.popoverEl.value&&(this.popoverEl.value.open=!1)}addPrintStyling(){this.printStyleEl||(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML=ie,document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout(()=>{this.selectedFileType==="PDF"&&(this.exportIsLoading=!1),this.setupViewPrintElements()},1500)}handleExtraContent(){if(!this.printEl.value)return;let t=this.printEl.value.querySelector("#export-content");if(t){t.innerHTML="";let i=this.extraContent&&this.includeExtraContent,n=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&i;this.printEl.value.classList.toggle(l.print.imgExtraContent,n),i?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none"}else this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent&&this.printEl.value.classList.toggle(l.print.imgExtraContent,!1)}resetPrintContent(){if(!this.view||!this.printEl.value)return;this.screenshot=null,this.printContainerEl.value?.prepend(this.printEl.value),this.printStyleEl?.remove(),this.tmpPopupTitleEl?.remove(),this.printStyleEl=void 0;let t=this.printEl.value.querySelector("#export-content");t&&(t.innerHTML="")}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl.value||!this.printEl.value)return;this.popupContainerEl.value.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none",this.checkPopupOpen();let t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;if(this.printEl.value.classList.toggle(l.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t),t){let i=document.createElement(`h${this.view?.popup?.headingLevel??2}`);i.innerHTML=this.view?.popup?.title??"",i.className="esri-widget__heading esri-popup__header-title",this.popupTitleEl.value?(this.popupTitleEl.value.style.display=this.view?.popup?.title?"block":"none",this.popupTitleEl.value.innerHTML="",this.popupTitleEl.value.prepend(i)):(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none",this.popupContainerEl.value.prepend(this.tmpPopupTitleEl))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(this.view)if(this.handleLegendSetup(),this.selectedFileType==="PDF"){let t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout(()=>{this.resetPrintContent()},1e3)}else this.convertToImage()}async convertToImage(){/^((?!chrome|android).)*safari/iu.test(navigator?.userAgent)?await this.handleSafariToImage():await this.handleToImage()}async handleSafariToImage(){if(!this.printEl.value)return;let t={allowTaint:!0,logging:!1},i=this.selectedFileType==="PNG"?"image/png":"image/jpeg",n="";try{n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}catch{this.logoImage=void 0;let r=500;await new Promise(s=>setTimeout(s,r)),n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}finally{this.handleSetupImage(n)}}async handleToImage(){if(!this.printEl.value)return;let t={backgroundColor:"#FFF",skipFonts:!0},i="";try{this.selectedFileType==="JPG"?i=await U(this.printEl.value,t):i=await wt(this.printEl.value,t)}catch{this.logoImage=void 0;let n=500;await new Promise(r=>setTimeout(r,n)),i=await U(this.printEl.value,t)}finally{this.handleSetupImage(i)}}handleSetupImage(t){this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null))}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl.value){let t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.value.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup)return;let t="includePopup";this.handles.remove(t),this.reactiveUtils.whenOnce(()=>this.view?.ready).then(()=>{!this.reactiveUtils||!this.handles||this.handles.add(this.reactiveUtils.watch(()=>this.view?.popup?.visible===!0,i=>{this.settingMapArea||(this.includePopup=i)}),t)})}handleLegendCreation(){this.view&&this.showIncludeLegend&&this.legendContainerEl&&this.updateLegend()}updateLegend(){this.view?.when(async t=>{if(!this.legendContainerEl.value)return;this.legend?.destroy(),this.legend=null,this.legendContainerEl.value.innerHTML="";let i=document.createElement("div");this.legendContainerEl.value.append(i),this.legend=await K({container:i,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})})}handleCompassCreation(){if(this.view&&this.compassContainerEl.value){let t=this.view.map,i=this.compass?.view?.map;t?.portalItem?.id===i?.portalItem?.id||this.updateCompass()}}updateCompass(){this.view?.when(async t=>{this.compass&&(this.compass.destroy(),this.compass=null);let i=document.createElement("div");this.compassContainerEl.value?.append(i),this.compass=await X({container:i,view:t})})}updateScaleBar(){if(this.scaleBarContainerEl.value&&this.view&&(this.scaleBarContainerEl.value.innerHTML="",this.showScaleBar)){let t=this.view?.ui?.getComponents()?.find(({container:i})=>i?.className?.includes("esri-scale-bar"));t?.container&&typeof t.container!="string"&&this.scaleBarContainerEl.value.append(t.container.cloneNode(!0))}}updateAttribution(){if(!this.attributionEl.value||!this.view)return;this.attributionEl.value.innerHTML="";let t=this.view.ui.find("attribution");if(!t?.attributionText)return;let i=t.viewModel.items.map(r=>this.getAttributionText(r)).filter((r,s,a)=>!!r&&a.indexOf(r)===s),n=" | ";this.attributionEl.value.innerHTML=i.join(n)}getAttributionText(t){if(!t.text)return"";let i=t.text,n=t.layerView.layer,r="copyright"in n&&n.copyright?n.copyright:"";if("portalItem"in n&&n.portalItem!=null){let s=n.portalItem;if(s.accessInformation&&i===s.accessInformation)return i.replace(s.accessInformation,r)}return i}async viewScreenshot(){if(this.view&&this.includeMap&&(this.screenshot||(this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})),this.handleScaleBarSize(),this.viewEl.value&&this.viewWrapperEl.value)){let{height:t,width:i}=this.screenshot.data;t>i?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.value.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.selectedFileType==="PDF"&&this.printEl.value&&(this.printEl.value.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.value&&(this.viewEl.value.style.height="100%",this.viewEl.value.style.width=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="100%",this.viewWrapperEl.value.style.width="fit-content")}setMaxWidthOnViewContainer(){this.printEl.value&&(this.printEl.value.style.gridTemplateRows=""),this.viewEl.value&&(this.viewEl.value.style.width="100%",this.viewEl.value.style.height=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="fit-content",this.viewWrapperEl.value.style.width="100%")}checkPopupOpen(){if(this.view){let t=this.view?.popup?.container?.querySelector(".esri-popup .esri-feature__main-container");if(t&&this.popupContentEl.value){let i=t.querySelectorAll("canvas");this.popupContentEl.value.innerHTML="",this.popupContentEl.value.append(t.cloneNode(!0));let n=this.popupContentEl.value.querySelectorAll("canvas");i.forEach((r,s)=>{let a=r.toDataURL(),o=document.createElement("img");o.src=a;let p=r.getAttribute("style");p&&o.setAttribute("style",p);let f=n[s];f&&(f.replaceWith(o),L(this.el)==="dark"&&o.parentElement?.parentElement&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))})}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img"),this.screenshotImg.alt=this.mapAltText||"";let t=document.createElement("div"),i=document.createElement("calcite-button"),n=document.createElement("calcite-button");i.innerHTML=this.selectedFileType==="PDF"?this._messages.export:this._messages.downloadImage,n.innerHTML=this._messages.returnToMap,n.appearance="outline-fill",i.onclick=this.exportPreviewOnClick.bind(this),n.onclick=this.screenshotReturn.bind(this),t.append(n,i),this.screenshotImgContainer.append(this.screenshotImg,t),this.screenshotPreview.append(this.screenshotImgContainer),this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML=ne,this.view?.container?.append(this.screenshotStyle),this.view?.container?.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){if(this.view){if(this.settingMapArea=!0,t&&this.view?.popup?.visible){this.popupHiddenByMapArea=!0;let i=this.view?.popup?.container;i&&(i.style.display="none")}this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view?.container?.classList.add("screenshot-cursor","relative"),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.view.addHandles(this.view.on("drag",i=>{this.view&&(i.stopPropagation(),i.action!=="end"?this.updateMaskSize(i):this.maskScreenshot())}),H)}}updateMaskSize(t){if(this.view){let i=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),n=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),r=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),s=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:i,y:r,width:n-i,height:s-r},this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(H);let t=this.area.height,i=this.area.width;if(this.showScaleBar){let n=this.view.width>1e3&&this.view.width*.75<i;this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",n)}this.view.takeScreenshot({area:this.area,width:i*2,height:t*2,format:"jpg"}).then(n=>{this.screenshot=n,this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.selectedFileType==="PDF"?(this.showPreview(n?.dataUrl),this.resetPopupVisibility()):(this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick())})}}setMaskPosition(t){this.maskDivEl&&(t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove())}clamp(t,i,n){return t<i?i:t>n?n:t}showPreview(t){t&&(this.screenshotPreview?.classList.remove("hide"),this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"&&this.scaleBarContainerEl.value){let t=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--top"),i=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top"),this.setScaleBarWidth(i,"bottom")}}setScaleBarWidth(t,i){if(t&&this.screenshot){let n=this.screenshot.data.width/2,r=Number(t.style.width.replace("px",""))/n*100;this.scaleBarContainerEl.value?.style.setProperty(`--instant-apps-scale-bar-${i}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(H),this.screenshotPreview?.remove(),this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){let t=this.view?.popup?.container;t&&(t.style.display="")}this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){let i=t.target;this.selectedFileType=i.value,this.selectedFileType==="PDF"?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel(),i=this.renderCompass();return c`<div class=${h(this.baseClass)} @mouseenter=${this.handleWidgetCreation} @focusin=${this.handleWidgetCreation}>${t}<div class=${h(l.hidden)}>${i}</div></div>`}renderPopover(){let t=this.renderPanel();return[c`<calcite-popover reference-element=export-popover-btn .label=${this._messages.exportPopover} .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close ${d(this.popoverEl)}>${t}</calcite-popover>`,c`<calcite-action id=export-popover-btn alignment=center .icon=${this.popoverIcon} .scale=${this.scale} title=${this._messages.exportBtn??I} .text=${this._messages.exportBtn}></calcite-action>`]}renderPanel(){let t=this.showHeaderTitle?this.renderTitle():null,i=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null,n=this.showIncludeMap?this.renderSwitch("includeMap",void 0,this.selectedFileType!=="PDF"):null,r=this.includeMap?this.renderMapOptions():null,s=this.includeFileFormat?this.renderSelectFileType():null,a=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg(),o=this.mode==="inline"?l.inlineContainer:l.popoverContainer;return c`<div class=${h(o)}>${t}${i}${n}${r}${s}${this.includeMap?c`<calcite-button class=${h(l.setMapArea)} appearance=transparent width=full @click=${this.setMapAreaOnClick.bind(this,!0)} .disabled=${this.exportIsLoading}>${this._messages.setMapArea}</calcite-button>`:null}<calcite-button width=full @click=${this.exportOnClick} .disabled=${this.exportIsLoading}>${this.selectedFileType==="PDF"?this._messages.export:this._messages.preview}</calcite-button>${a}</div>`}renderTitle(){return c`<calcite-label>${this._messages.title}<calcite-input .value=${this.headerTitle} @calciteInputInput=${this.updateHeaderTitle}></calcite-input></calcite-label>`}renderSwitch(t,i,n){let r=this[t],s=t,a=i||this._messages[s];return c`<calcite-label layout=inline-space-between>${a}<calcite-switch .checked=${r} .value=${t} @calciteSwitchChange=${this.optionOnChange} .disabled=${n}></calcite-switch></calcite-label>`}renderSelectFileType(){return c`<calcite-label>${this._messages.fileType}<calcite-select label @calciteSelectChange=${this.handleSelectFileType}>${this.allowedFileTypes.map(t=>c`<calcite-option .value=${t} .selected=${t===this.selectedFileType}>${t}</calcite-option>`)}</calcite-select></calcite-label>`}renderMapOptions(){let t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,i=this.showIncludePopup?this.renderSwitch("includePopup"):null;return c`<div>${t}${i}</div>`}renderPrint(){let t=this.includeMap?this.renderPrintMap():null,i=this.renderExtraContent(),n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,r=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return c`<div ${d(this.printContainerEl)}><div class=${h(l.print.pdfBase)} ${d(this.printEl)}>${t}${n}<div class=${h(l.print.contentContainer)}>${r}${i}</div></div></div>`}renderPrintMap(){return c`<div class=${h(l.print.viewContainer)} ${d(this.viewContainerEl)}><div class=${h(l.print.viewWrapper)} ${d(this.viewWrapperEl)}>${this.headerTitle?c`<instant-apps-header .logoImage=${this.logoImage} .logoImageAltText=${this.logoAltText} logo-scale=s .titleText=${this.headerTitle} background-color=#fff text-color=#323232></instant-apps-header>`:null}<img class=${h(l.print.view)} alt=${this.mapAltText??I} ${d(this.viewEl)}><div class=${h(l.print.scaleBarContainer)} ${d(this.scaleBarContainerEl)}></div></div>${this.renderAttribution()}</div>`}renderAttribution(){return c`<div class=${h(l.print.attribution)} ${d(this.attributionEl)}></div>`}renderLegend(){return c`<div class=${h(l.print.legendContainer)} ${d(this.legendContainerEl)}></div>`}renderCompass(){return c`<div class=${h(l.print.compassContainer)} ${d(this.compassContainerEl)}></div>`}renderPopup(){return c`<div class=${h(l.print.popupContainer)} ${d(this.popupContainerEl)}><div class=${h(l.print.popupTitle)} ${d(this.popupTitleEl)}></div><div class=${h(l.print.popupContent)} ${d(this.popupContentEl)}></div></div>`}renderExtraContent(){return c`<div class=${h(l.print.extraContainer)} id=export-content ${d(this.extraContainerEl)}></div>`}renderImg(){let t=this.includeMap?this.renderPrintMap():null,i=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,n;return this.includeMap&&this.showIncludePopup?n=this.renderPopup():this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent&&(n=this.renderExtraContent()),c`<div ${d(this.printContainerEl)}><div class=${h(l.print.imgBase)} ${d(this.printEl)}>${t}${i}${n}</div></div>`}};j("instant-apps-export",W);export{W as InstantAppsExport};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as e}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as e}from"./FJYGYKU7.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import a from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import a from"./3UMQAY7D.js";export default $arcgis.t(([{k:i}])=>{function h(e,t){let r=[];return e.forEach(n=>{t.has(n.id)&&r.push(n)}),r}function g(e,t,r){if(t<1||e.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:e.length}};let n=Math.min(t+r,e.length+1),s=n<e.length?n:-1;return{cards:e.slice(t-1,n-1),paging:{start:t,num:n-t,nextStart:s,total:e.length}}}function w(e,t){let r=l(e);return u(r,t)}function u(e,t){let r=[];return t.forEach(n=>{let s=c(n);s&&e.indexOf(s)>=0&&n.relatedSolutions&&(r=r.concat(n.relatedSolutions))}),new Set(r)}function c(e){let t="solutionid-",r=e.typeKeywords.filter(s=>s.startsWith(t)),n=null;return Array.isArray(r)&&r.length>0&&(n=r[0].substring(t.length)),n}function l(e){let t=[];return e.forEach(r=>{let n=c(r);n&&t.push(n)}),t=Array.from(new Set(t)),t}function m(e,t,r){let n,s=r==="asc"?1:-1;switch(t){case"created":n=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":n=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":n=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:n=()=>0;break}return e.sort(n),e}function f(e){return e.toLowerCase().replace(/\s+/g,"-")}function p(e,t){return e.find(r=>f(r.title)===t||t===r.id)}function y(e,t){let r="solutionid-";return e.find(n=>i(n.typeKeywords,r)===t)}return{a:h,b:g,c:w,d:m,e:f,f:p,g:y}},a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as S}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as S}from"./SPZK2YXW.js";import{a as U,b as x}from"./LZUM3H4J.js";import{d as j,g as L,h as C,i as N}from"./AZZRAFZ2.js";import{b as f,c as y}from"./3MGV3QJV.js";import{m as v,n as _}from"./TCORLZCI.js";import{a as d}from"./AV64MW2C.js";import{f as M}from"./HN6L7MEZ.js";import"./32275IZ5.js";import"./IAMELUPG.js";import"./QWFYFDGT.js";import"./3SH6IZWK.js";import"./OLVN3BUK.js";import"./GRC5KYBB.js";import{a as O}from"./KSKZZDYX.js";import"./FNLWKSSH.js";import"./LZIYOPAC.js";import"./HCEYPHXZ.js";import{s as I}from"./XLHINQDA.js";import"./QAQPOJT3.js";import"./XQYYFNOC.js";import"./GU3R45TN.js";import"./BSCXWZZC.js";import"./K3ZT5FZ2.js";import"./MGON4SLN.js";var $="Discussion",P={name:"",tags:[],typeKeywords:["Hub Discussion"],permissions:[],catalogs:[],schemaVersion:1,isDiscussable:!0},K={item:{type:$,title:"",description:"",snippet:"",tags:[],typeKeywords:["Hub Discussion"],properties:{slug:"",schemaVersion:1}},data:{catalogs:[],prompt:""}};function h(t){return t.httpMethod="POST",d("/settings",t)}function A(t){return t.httpMethod="PATCH",d(`/settings/${t.id}`,t)}function V(t){return t.httpMethod="DELETE",d(`/settings/${t.id}`,t)}var F={discussions:{allowedChannelIds:null,allowedLocations:null}},w={discussion:{type:M.CONTENT,settings:Object.assign({},F)},site:null,project:null,initiative:null,initiativeTemplate:null,page:null,content:null,organization:null,org:null,group:null,template:null,survey:null,event:null,user:null,channel:null};function T(t){if(!w[t])throw new Error(`no default entity settings defined for ${t}`);return{type:w[t].type,settings:Object.assign({},w[t].settings)}}function E(){let t=U();return t.push({entityKey:"prompt",storeKey:"data.prompt"}),t.push({entityKey:"location",storeKey:"item.properties.location"}),t}function b(t,e,i){let o;return i.authentication&&(o=i.authentication.token),e=x(t.item,e),e.thumbnailUrl=v(t.item,i,o),e}async function dt(t,e){var i,o;let s=Object.assign(Object.assign({},P),t);s.slug||(s.slug=j(s.name,s.orgUrlKey)),await S(s,e),s.typeKeywords=f(s.typeKeywords,s.isDiscussable);let c=new y(E()),r=c.entityToStore(s,O(K));r=await C(r,e);let u=T("discussion"),a=Object.assign(Object.assign({},u.settings),{discussions:Object.assign(Object.assign({},u.settings.discussions),s.discussionSettings)});!((i=a.discussions.allowedChannelIds)===null||i===void 0)&&i.length||(a.discussions.allowedChannelIds=null),!((o=a.discussions.allowedLocations)===null||o===void 0)&&o.length||(a.discussions.allowedLocations=null),r.entitySettings=await h(Object.assign({data:{id:r.item.id,type:u.type,settings:a}},e));let n=c.storeToEntity(r,{});return n=b(r,n,e),n}async function gt(t,e){var i,o,s;await S(t,e),t.typeKeywords=f(t.typeKeywords,t.isDiscussable);let c=await L(t.id,e),r=new y(E()),u=r.entityToStore(t,c),a=await N(u,e),n=r.storeToEntity(a,t);n=b(c,n,e);let g;try{g=((i=n.location.geometries)===null||i===void 0?void 0:i.map(m=>_(m)))||null}catch(m){g=null,console.warn("Esri JSON conversion failed",m)}let p=T("discussion"),l=Object.assign(Object.assign({},p.settings),{discussions:Object.assign(Object.assign(Object.assign({},p.settings.discussions),n.discussionSettings),{allowedLocations:g})});!((o=l.discussions.allowedChannelIds)===null||o===void 0)&&o.length||(l.discussions.allowedChannelIds=null),!((s=l.discussions.allowedLocations)===null||s===void 0)&&s.length||(l.discussions.allowedLocations=null);let D=n.entitySettingsId?await A(Object.assign({id:n.entitySettingsId,data:{settings:l}},e)):await h(Object.assign({data:{id:n.id,type:p.type,settings:l}},e));return n.entitySettingsId=D.id,n.discussionSettings=D.settings.discussions,n}async function pt(t,e){let i=Object.assign(Object.assign({},e),{id:t});try{await V(Object.assign({id:t},e))}catch{}await I(i)}export{dt as createDiscussion,pt as deleteDiscussion,gt as updateDiscussion};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
4
|
function V(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function F(t){return Object.keys(t).some(e=>{let r=t[e];if(!r)return!1;switch(r&&r.toParam&&(r=r.toParam()),r.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(t){let e={};return Object.keys(t).forEach(r=>{var n,o;let s=t[r];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,c;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;c=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":c=JSON.stringify(s);break;case"Date":c=s.valueOf();break;case"Function":c=null;break;case"Boolean":c=s+"";break;default:c=s;break}(c||c===0||typeof c=="string"||Array.isArray(c))&&(e[r]=c)}),e}function Q(t,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(r=>Q(t,r)).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(e)}function T(t){let e=M(t);return Object.keys(e).map(r=>Q(r,e[r])).join("&")}var X=globalThis.FormData,Te=globalThis.File,Se=globalThis.Blob;function Y(t,e){let r=F(t)||e,n=M(t);if(r){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(t)}var k=class extends Error{constructor(e,r,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",r=r||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=r==="UNKNOWN_ERROR_CODE"?e:`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var ge={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},L="ARCGIS_REST_JS_NO_CORS";globalThis[L]||(globalThis[L]=Object.assign({},ge));var w=globalThis[L];function B(t){let e=new URL(t);t=e.origin+e.pathname,e.search.includes("f=json")&&(t+="?f=json");let r=e.origin;return w.pendingNoCorsRequests[r]?w.pendingNoCorsRequests[r]:(w.pendingNoCorsRequests[r]=fetch(t,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r),w.crossOriginNoCorsDomains[r.toLowerCase()]=Date.now(),delete w.pendingNoCorsRequests[r]}).catch(n=>(delete w.pendingNoCorsRequests[r],Promise.reject(new Error(`no-cors request to ${r} failed`)))),w.pendingNoCorsRequests[r])}function Z(t){t.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?z(e):(z("http://"+e),z("https://"+e))})}function z(t){let r=new URL(t).origin;w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r)}function J(t){let e=!1;if(w.noCorsDomains.length){let r=new URL(t).origin.toLowerCase();e=w.noCorsDomains.some(n=>r.includes(n))}return e}function ee(t){let e=!1;if(J(t)){let r=new URL(t).origin.toLowerCase(),n=w.crossOriginNoCorsDomains[r]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(t){console&&console.warn&&console.warn.apply(console,[t])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(t,e){var r;if(!e&&!window||!t)return!1;{e=e||window;let n=(r=e.location)===null||r===void 0?void 0:r.origin;return t.startsWith(n)}}var H="@esri/arcgis-rest-js";function we(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",r="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,r,n,o,s),this.name="ArcGISAuthError",this.message=r==="AUTHENTICATION_ERROR_CODE"?e:`${r}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,r=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(c=>{let u=Object.assign(Object.assign({},this.options),{authentication:c});return oe(this.url,u)}).then(c=>{s(c)}).catch(c=>{c.name==="ArcGISAuthError"&&n<r?o(s,i):c.name===this.name&&c.message===this.message&&n>=r?i(this):i(c)})};return new Promise((s,i)=>{o(s,i)})}};function Ee(t,e,r,n,o){if(t.code>=400){let{message:s,code:i}=t;throw new k(s,i,t,e,n)}if(t.error){let{message:s,code:i,messageCode:c}=t.error,u=c||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,t,e,n):new k(s,u,t,e,n)}if(t.status==="failed"||t.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(t.statusMessage).message,i=JSON.parse(t.statusMessage).code}catch{s=t.statusMessage||t.message}throw new k(s,i,t,e,n)}return t}function oe(t,e){let r=we(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},r),e),{params:Object.assign(Object.assign({},r.params),e.params),headers:Object.assign(Object.assign({},r.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),c=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};J(t)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let x;if(typeof n.authentication=="string"){let a=n.authentication;x={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(a)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AAPT")&&!n.authentication.startsWith("AATK")&&!n.authentication.startsWith("AAST")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else x=n.authentication;let p=t,d=!1;typeof window<"u"&&(d=ne(t));let R=!d&&ee(t);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(t)),S.then(()=>x?x.getToken(t).catch(a=>(a.url=t,a.options=n,c=a,Promise.resolve(""))):Promise.resolve("")).then(a=>{a.length&&(i.token=a),x&&x.getDomainCredentials&&(u.credentials=x.getDomainCredentials(t));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?t:t+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",a.length&&n.hideToken&&(i.token=a,delete l["X-Esri-Authorization"])):t=b}let m=new RegExp("/items/.+/updateResources").test(t);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=H),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(t,u):re().then(({fetch:h})=>h(t,u))}).then(a=>{if(!a.ok)return a.json().then(l=>{let{status:m,statusText:h}=a,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,t,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=a;throw new k(h,`HTTP ${m}`,a,t,n)});if(s)return a;switch(i.f){case"json":return a.json();case"geojson":return a.json();case"html":return a.text();case"text":return a.text();default:return a.blob()}}).then(a=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=Ee(a,p,i,n,c);if(a&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(t)&&Array.isArray(a.authorizedCrossOriginNoCorsDomains)&&Z(a.authorizedCrossOriginNoCorsDomains),c){let m=t.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},c=null}return l}else return a})}function f(t,e={params:{f:"json"}}){let{request:r}=e,n=V(e,["request"]);return r?r(t,n):oe(t,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function xe(t){let[e,r]=t.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(r)}}function se(t){return!t||t.length<=0?{}:t.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,r)=>{let{key:n,value:o}=xe(r);return e[n]=o,e},{})}var ie=300*1e3;function C(t,e){let r=e;return r.rawResponse=!1,f(t,r).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function E(t){return typeof t!="string"||(t=t.trim(),t[t.length-1]==="/"&&(t=t.slice(0,-1))),t}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(t){return q.test(t)}function _e(t){if(!q.test(t))return t;switch(K(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function K(t){if(!q.test(t))return null;let r=t.match(q)[1].split(".").pop();return r.includes("dev")?"dev":r.includes("qa")?"qa":"production"}function ce(t,e){let r=E(_e(e)).replace(/https?:\/\//,""),n=E(t).replace(/https?:\/\//,"");return new RegExp(n,"i").test(r)}function ue(t,e){let r=ae(t),n=ae(e),o=K(t),s=K(e);return!!(r&&n&&o===s)}function le(t,e,r="https://www.arcgis.com/sharing/rest"){let n=`${r}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:t}})}function ot(t,e,r){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},r),t);return o.params=e.reduce((s,i)=>((t[i]||typeof t[i]=="boolean"||typeof t[i]=="number"&&t[i]===0)&&(s[i]=t[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var _;(function(t){t.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",t.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",t.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",t.NOT_FEDERATED="NOT_FEDERATED",t.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(_||(_={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",r=_.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let r=new.target.prototype;Object.setPrototypeOf(this,r),this.name="ArcGISAccessDeniedError"}};var he;(function(t){t.ArcGISRequestError="ArcGISRequestError",t.ArcGISAuthError="ArcGISAuthError",t.ArcGISAccessDeniedError="ArcGISAccessDeniedError",t.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var j=class{constructor(e){this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let r=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(r,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var W;(function(t){t.Success="Succeeded",t.Failed="Failed",t.Waiting="Waiting",t.Cancelled="Cancelled",t.Cancelling="Cancelling",t.New="New",t.Executing="Executing",t.Submitted="Submitted",t.Failure="Failure",t.TimedOut="TimedOut",t.Error="Error",t.Status="Etatus",t.Unknown="Unknown"})(W||(W={}));function fe(t){let e=`${E(t.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,r=t.token,n=t.clientId;delete t.portal,delete t.clientId,delete t.token;let o=Object.assign(Object.assign({},t),{httpMethod:"POST",params:{client_id:n,auth_token:r}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(t,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(t,e=window){if(!e&&window&&(e=window),t&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(t);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function G(t){!t&&window&&(t=window);let e=t.crypto.getRandomValues(new Uint8Array(32));return $(e)}function de(t,e){return typeof t=="string"?t:typeof t=="object"?t.id:G(e)}function me(t,e,r){return JSON.stringify(typeof e=="string"||!e?{id:t,originalUrl:r}:Object.assign({id:t},e))}function ye(t){return typeof t.userId=="string"||typeof t.expires=="number"}var O=class t extends j{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.state=e.state,this.federatedServers={},this.trustedDomains=[],e.server){let r=this.getServerRootUrl(e.server);this.federatedServers[r]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,r){!r&&window&&(r=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:c,popup:u,popupWindowFeatures:x,locale:p,params:d,style:R,pkce:S,state:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=de(a,r),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;r.localStorage.setItem(m,l);let h=`${E(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:c,state:me(l,a,r.location.href),locale:p,style:R};o!=="arcgis"&&(h=`${E(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=G(r),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;r.localStorage.setItem(U,v),D=pe(v,r).then(function(g){b.code_challenge_method=g?"S256":"plain",b.code_challenge=g||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{r.addEventListener(`arcgis-rest-js-popup-auth-${s}`,g=>{if(g.detail.error==="access_denied"){let P=new N;return U(P),P}if(g.detail.errorMessage){let P=new A(g.detail.errorMessage,g.detail.error);return U(P),P}v(new t({clientId:s,portal:n,ssl:g.detail.ssl,token:g.detail.token,tokenExpires:g.detail.expires,username:g.detail.username,refreshToken:g.detail.refreshToken,refreshTokenExpires:g.detail.refreshTokenExpires,redirectUri:c,state:g.detail.state}))},{once:!0}),r.open(h,"oauth-window",x),r.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});r.location.href=h})}static completeOAuth2(e,r){!r&&window&&(r=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,x=r.localStorage.getItem(u),p=se(i?r.location.search.replace(/^\?/,""):r.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(a,l,m){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:a}})),r.close();return}return m&&r.history.replaceState(r.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(a,l))}function S(a,l){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign(Object.assign({},a),{state:l})})),r.close();return}return l.originalUrl&&r.history.replaceState(r.history.state,"",l.originalUrl),new t({clientId:o,portal:n,ssl:a.ssl,token:a.token,tokenExpires:a.expires,username:a.username,refreshToken:a.refreshToken,refreshTokenExpires:a.refreshTokenExpires,redirectUri:c||location.href.replace(location.search,""),state:l})}if(!x||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==x)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let a=p.error,l=p.error_description||"Unknown error";return R(l,a,d.originalUrl)}if(i&&p.code){let a=E(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=r.localStorage.getItem(l);return r.localStorage.removeItem(l),C(a,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:c||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,r){!r&&window&&(r=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===r.parent&&i.data)try{return o(t.parentMessageHandler(i))}catch(c){return s(c)}},r.addEventListener("message",n,!1),r.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(r.removeEventListener("message",n,!1),o))}static authorize(e,r){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:c}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};c&&(u.state=c);let x=`${n}/oauth2/authorize?${T(u)}`;r.writeHead(301,{Location:x}),r.end()}static exchangeAuthorizationCode(e,r){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:r}}).then(i=>new t({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let r=JSON.parse(e);return new t({clientId:r.clientId,refreshToken:r.refreshToken,refreshTokenExpires:r.refreshTokenExpires?new Date(r.refreshTokenExpires):void 0,username:r.username,password:r.password,token:r.token,tokenExpires:r.tokenExpires?new Date(r.tokenExpires):void 0,portal:r.portal,ssl:r.ssl,tokenDuration:r.tokenDuration,redirectUri:r.redirectUri,server:r.server})}static fromCredential(e,r){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return r.hasServer?new t({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new t({portal:E(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let r=e.data.credential;return ye(r)?t.fromCredential(r,{hasPortal:!0,hasServer:!1,server:r.server}):new t(r)}if(e.data.type==="arcgis:auth:error"){let r=new Error(e.data.error.message);throw r.name=e.data.error.name,r}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let r=new t(e);return r.getUser().then(()=>r)}static signIn(e){let r=new t(e);return r.getUser().then(()=>r)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let r=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(r,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,r){return ue(this.portal,e)?this.getFreshToken(r):new RegExp(this.portal,"i").test(e)?this.getFreshToken(r):this.getTokenForServer(e,r)}validateAppAccess(e){return this.getToken(this.portal).then(r=>le(r,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,r){!r&&window&&(r=window),this._hostHandler=this.createPostMessageHandler(e),r.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",_.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[r]=E(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=r.match(/(https?:\/\/)(.+)/),[i,...c]=s.split("/");return`${o}${i.toLowerCase()}/${c.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(r=>e.startsWith(r.toLowerCase()))?"include":"same-origin")}signOut(){return t.destroy(this)}createPostMessageHandler(e){return r=>{let n=e.indexOf(r.origin)>-1,o=r.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let c=this.toCredential();c.server=c.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:c}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};r.source.postMessage(i,r.origin)}}}getTokenForServer(e,r){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,r);throw new y(`${e} is not federated with ${this.portal}.`,_.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,_.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,r){return f(e,{params:{token:this.token,serverUrl:r,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,_.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let r={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:H};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:r},e))):f(`${this.portal}/generateToken`,Object.assign({params:r},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,_.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,_.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,r){return this._token=e,this._tokenExpires=r,this}exchangeRefreshToken(e){let r=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,r).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(r=>!r.startsWith("http://")).map(r=>r.startsWith("https://")?r:`https://${r}`)),this))}};function I(t){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(t)}I.beginOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...t)};I.completeOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),t.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...t)};I.fromParent=function(...t){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...t)};I.authorize=function(...t){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...t)};I.exchangeAuthorizationCode=function(...t){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...t)};I.fromCredential=function(...t){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...t)};I.deserialize=function(...t){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...t)};export{Y as a,te as b,A as c,f as d,ot as e,E as f,O as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as e}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as e}from"./FJYGYKU7.js";var s=["hub:survey:edit","hub:survey:settings"],a=Object.assign(Object.assign({},e),{properties:Object.assign({displayMap:{type:"boolean",enum:[!0,!1],default:!1},hasMapQuestion:{type:"boolean",enum:[!0,!1],default:!1}},e.properties)});export{s as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import"./MGON4SLN.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
4
|
var n;(function(i){i.InPerson="inPerson",i.Online="online",i.Both="both"})(n||(n={}));var o;(function(i){i.Unlimited="unlimited",i.Fixed="fixed"})(o||(o={}));export{n as a,o as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import"./MGON4SLN.js";var e="Du har inte tillr\xE4ckligt m\xE5nga krediter f\xF6r att utf\xF6ra den h\xE4r \xE5tg\xE4rden. Kontakta din ArcGIS-systemadministrat\xF6r f\xF6r att f\xE5 hj\xE4lp.",a="Det h\xE4r verktyget har publicerats fr\xE5n en notebook. \xC5tkomst till ArcGIS Notebooks \xE4r blockerad f\xF6r din organisation. Kontakta din administrat\xF6r f\xF6r att justera inst\xE4llningen.",t="${ dataPath } f\xE5r inte inneh\xE5lla ${ additionalProperty }.",r="${ dataPath } m\xE5ste matcha schemat f\xF6r n\xE5gon av dessa: ${ schemaOptions }.",i="F\xF6rs\xF6k att spara kartan igen.",n="Kreditber\xE4kningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och ber\xE4kna krediterna igen.",s="Ett fel uppstod n\xE4r analysen k\xF6rdes.",l="${ dataPath } m\xE5ste vara lika med ett av dessa till\xE5tna v\xE4rden: ${ allowedValues }.",o="Det gick inte att spara analyshistoriken",d="Historiklagringen \xE4r full. Ta bort n\xE5gra objekt fr\xE5n analyshistoriken och f\xF6rs\xF6k att spara igen.",g="Tj\xE4nstnamnet inneh\xE5ller ett eller flera ogiltiga tecken.",m="Lagring av det tillf\xE4lliga lagret som ett driftat geoobjektlager slutf\xF6rdes inte.",k="Det gick inte att h\xE4mta nyckelegenskaper.",c="Det gick inte att l\xE4sa in lagret.",f="Lagret \xE4r inte tillg\xE4ngligt.",h="${ dataPath } f\xE5r inte ha fler \xE4n ${ limit } objekt.",u="Ett fel uppstod n\xE4r modellen sparades. F\xF6rs\xF6k att spara igen.",p="${ dataPath } f\xE5r inte ha f\xE4rre \xE4n ${ limit } objekt.",y="${ dataPath } f\xE5r inte vara kortare \xE4n ${ limit } tecken.",v="Kunde inte l\xE4sa in modellobjektet. Kontrollera att modellen finns och att \xE5tkomstbeh\xF6righet har beviljats.",b="Det gick inte att slutf\xF6ra f\xF6rfr\xE5gan.",E="Du saknar beh\xF6righet att k\xF6ra det h\xE4r verktyget. <calcite-link target='_blank' href='${ docLink }'>L\xE4s mer</calcite-link>",P="Det gick inte att logga in p\xE5 portalen.",S="Det gick inte att l\xE4sa indata.",$="${ dataPath } saknar egenskapen ${ missingProperty }.",F="Det finns redan ett resultatlager med det h\xE4r namnet. Resultatlager m\xE5ste ha unika namn i hela organisationen. Anv\xE4nd ett annat namn.",I="Utdatanamnet inneh\xE5ller ett eller flera ogiltiga tecken. <a href='${docLink}' target='_blank'>L\xE4s mer.</a>",L="Publicering av det tillf\xE4lliga lagret som ett driftat geoobjektlager misslyckades p\xE5 grund av ett eller flera ogiltiga f\xE4lt. K\xF6r verktyget igen f\xF6r att skapa ett lager med giltiga f\xE4lt.",T="Jobbinl\xE4mningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och k\xF6r analysen igen.",D="${ dataPath } m\xE5ste ha minst ett tecken som inte \xE4r ett blanksteg.",j={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:i,creditEstimationError:n,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:g,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:k,layerLoadFailure:c,layerUnavailable:f,maxItems:h,mbFailedToSave:u,minItems:p,minLength:y,modelNotFound:v,networkError:b,noPermissionToAccessTool:E,portalLoadError:P,queryFeaturesError:S,requiredProperty:$,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:T,whiteSpacePattern:D};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,i as cannotWriteToItemResource,n as creditEstimationError,j as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,g as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,k as keyPropertiesError,c as layerLoadFailure,f as layerUnavailable,h as maxItems,u as mbFailedToSave,p as minItems,y as minLength,v as modelNotFound,b as networkError,E as noPermissionToAccessTool,P as portalLoadError,S as queryFeaturesError,$ as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,T as toolValidationError,D as whiteSpacePattern};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as v}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as v}from"./HJCGCJHG.js";import{b as f}from"./24PILRZT.js";import{a as w,b as I,d as y}from"./OFMGQCKQ.js";import"./MQDP5X2Y.js";import"./M46DOI6W.js";import{a as L}from"./ECVB7DM6.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{b as u}from"./7LML2KAO.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./4XYYUSUA.js";import"./MGON4SLN.js";var $=b`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{k as a}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{k as a}from"./OLVN3BUK.js";var n={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function d(t,p,o,e,l){var i;let r=(i=n[e])!==null&&i!==void 0?i:n.content,c=a(r,l),s;return e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${t}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}},[{labelKey:e==="group"?`${t}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:o,defaultImgUrl:c,maxWidth:727,maxHeight:484},s)}]}export{d as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as i}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as i}from"./GU3R45TN.js";var c=class e extends Error{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(r),this.operation=o,this.name="OperationError",this.rootCause=t,Object.setPrototypeOf(this,e.prototype),this.stack=i(t,"stack",new Error().stack)}};var p=class extends c{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(o,r,t),this.name="HubError",this.stack=i(t,"stack",new Error().stack)}};export{p as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
4
|
function O(t){return t.indexOf("|")>-1&&(t=t.replace("|","::")),t}function S(t){return t[0]==="{"&&(t=t.substring(1,t.length-1)),/^(\{){0,1}[0-9a-fA-F]{8}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{12}(\}){0,1}$/gi.test(t)}var _="~",n=256,r="slug";function G(t,e="",o=0){let R=[r];return e&&R.push(e.toLowerCase()),R.push(t),R.join("|").substring(0,n-o).replace(/-+$/,"").replace(new RegExp(`^${r}\\|`),"")}function i(t){let e=`${r}|${t}|`;return n-e.length}var c=(t,e)=>`${t.split("|").pop()}${_}${e}`;export{S as a,O as b,r as c,G as d,i as e,c as f};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{c as m}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{c as m}from"./4XJKKLD3.js";import{b as g}from"./24PILRZT.js";import{a as u}from"./ECVB7DM6.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{b as p}from"./7LML2KAO.js";import{C as s,E as h,h as c,i as t,o as d}from"./4XYYUSUA.js";import"./MGON4SLN.js";var b=c`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import"./MGON4SLN.js";var a="Sinulla ei ole riitt\xE4v\xE4sti krediittej\xE4 t\xE4m\xE4n toiminnon toteuttamiseen. Pyyd\xE4 apua ArcGIS-j\xE4rjestelm\xE4n p\xE4\xE4k\xE4ytt\xE4j\xE4lt\xE4.",t="T\xE4m\xE4 ty\xF6kalu on julkaistu muistikirjasta. Organisaatiosi ArcGIS Notebooks -k\xE4ytt\xF6oikeus on ev\xE4tty. Ota yhteys p\xE4\xE4k\xE4ytt\xE4j\xE4\xE4n asetuksen muuttamista varten.",e="Kohteessa ${ dataPath } ei saa olla kohdetta ${ additionalProperty }.",i="Kohteen ${ dataPath } on vastattava jotakin n\xE4ist\xE4 skeemoista: ${ schemaOptions }.",s="Yrit\xE4 tallentaa kartta uudelleen.",o="Krediitin arviointi ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja arvioi krediitit uudelleen.",n="Analyysia suorittaessa tapahtui virhe.",r="Kohteen ${ dataPath } tulee olla yht\xE4 suuri kuin jokin n\xE4ist\xE4 sallituista arvoista: ${ allowedValues }.",l="Analyysihistorian tallennus ep\xE4onnistui",u="Historian tallennustila on t\xE4ynn\xE4. Poista joitain kohteita analyysihistoriasta ja yrit\xE4 tallentaa uudelleen.",d="Palvelun nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin.",k="Tilap\xE4isen karttatason tallennusta is\xE4nn\xF6ityn\xE4 karttatasona ei suoritettu loppuun.",m="Avainominaisuuksien nouto ep\xE4onnistui.",y="Karttatason lataus ep\xE4onnistui.",h="Karttataso ei ole k\xE4ytett\xE4viss\xE4.",v="Kohteessa ${ dataPath } ei saa olla yli ${ limit } kohdetta.",c="Mallia tallennettaessa tapahtui virhe. Yrit\xE4 tallentaa uudelleen.",p="Kohteessa ${ dataPath } ei saa olla alle ${ limit } kohdetta.",P="${ dataPath } ei saa olla alle ${ limit } merkki\xE4 pitk\xE4.",E="Mallikohteen lataus ep\xE4onnistui. Varmista, ett\xE4 malli on olemassa ja ett\xE4 k\xE4ytt\xF6oikeus on my\xF6nnetty.",j="Pyynn\xF6n suorittaminen ep\xE4onnistui.",S="Sinulla ei ole t\xE4m\xE4n ty\xF6kalun suoritusoikeutta. <calcite-link target='_blank' href='${ docLink }'>Lis\xE4tietoja</calcite-link>",T="Portaaliin kirjautuminen ep\xE4onnistui.",$="L\xE4ht\xF6tietojen luku ep\xE4onnistui.",f="Kohteesta ${ dataPath } puuttuu ominaisuus ${ missingProperty }.",F="T\xE4m\xE4n niminen tuloskarttataso on jo olemassa. Tuloskarttatasot on nimett\xE4v\xE4 yksil\xF6llisesti koko organisaatiossa. K\xE4yt\xE4 toista nime\xE4.",I="Tulosaineiston nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin. <a href='${docLink}' target='_blank'>Lue lis\xE4\xE4.</a>",L="Tilap\xE4isen karttatason julkaiseminen is\xE4nn\xF6ityn\xE4 karttatasona ei onnistunut v\xE4hint\xE4\xE4n yhden virheellisen kent\xE4n vuoksi. Suorita ty\xF6kalu uudelleen, jos haluat luoda karttatason kelvollisilla kentill\xE4.",K="Ty\xF6n l\xE4hetys ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja suorita analyysi uudelleen.",V="Kohteessa ${ dataPath } on oltava v\xE4hint\xE4\xE4n yksi muu kuin v\xE4limerkki.",g={InsufficientCreditsError:a,accessBlocked:t,additionalProperty:e,anyOfValues:i,cannotWriteToItemResource:s,creditEstimationError:o,defaultError:n,enumValues:r,failedToSaveHistory:l,fullSessionStorage:u,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:m,layerLoadFailure:y,layerUnavailable:h,maxItems:v,mbFailedToSave:c,minItems:p,minLength:P,modelNotFound:E,networkError:j,noPermissionToAccessTool:S,portalLoadError:T,queryFeaturesError:$,requiredProperty:f,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:K,whiteSpacePattern:V};export{a as InsufficientCreditsError,t as accessBlocked,e as additionalProperty,i as anyOfValues,s as cannotWriteToItemResource,o as creditEstimationError,g as default,n as defaultError,r as enumValues,l as failedToSaveHistory,u as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,y as layerLoadFailure,h as layerUnavailable,v as maxItems,c as mbFailedToSave,p as minItems,P as minLength,E as modelNotFound,j as networkError,S as noPermissionToAccessTool,T as portalLoadError,$ as queryFeaturesError,f as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,K as toolValidationError,V as whiteSpacePattern};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as c,b as n,c as y}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as c,b as n,c as y}from"./VPFAWHJS.js";import{b as d}from"./7LML2KAO.js";import{C as a,D as s,E as m,h as u,i as t,o as p}from"./4XYYUSUA.js";import"./MGON4SLN.js";var h=u`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{a as l}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{a as l}from"./QDOOFKZT.js";import{a as e}from"./EALUH4BU.js";import{a as v}from"./5WP2S2ZH.js";import{a as y}from"./MNBZZ6G3.js";import{a as t}from"./JSMMX4OW.js";import{a as i}from"./GK4O6X2B.js";import{a as p}from"./ZN7CNQRT.js";import{a as d}from"./CRGYVR4L.js";import{a as E}from"./Q4ILVP7M.js";import{a as s}from"./NAFDFLKN.js";import{a as n}from"./TMNFYXWD.js";import{a}from"./BCPDT6MV.js";import{a as r}from"./IWN7UDRD.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/1.
|
|
3
|
-
v1.
|
|
4
|
-
import{g as s}from"./
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.2 */
|
|
4
|
+
import{g as s}from"./32GCN42P.js";async function S(i,y,o){let e=y?.layer;if(!i)return e?.effect?e.effect:e?.featureEffect?o==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let n=await s(),l=new n({includedEffect:i}).toJSON().includedEffect,u=l,m=e.effect,h=e.featureEffect,r=null;h?r=o==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:r=m;let p=r?l:null;if(!p)return n.fromJSON({includedEffect:l}).includedEffect;let f=[...p];return u&&u.forEach(d=>{f.forEach(t=>{let{value:E}=t;if(E)E.forEach((a,c)=>{a.type===d.type?E[c]=d:!t.value.find(v=>v.type===u[0].type)&&(t.value=[...t.value,...u])});else{let a=!f.find(c=>c.type===t.type);!f.find(c=>c.type===d.type)&&(f=[...f,d]),a&&(f=[...f,t])}})}),n.fromJSON({includedEffect:f}).includedEffect}export{S as a};
|